
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}!function(){var e=(_createClass(t,null,[{key:"register",value:function(e,t){return window.Zeroseven=window.Zeroseven||{},window.Zeroseven.Blog=window.Zeroseven.Blog||{},window.Zeroseven.Blog[e]=t}},{key:"removeChilds",value:function(e){for(var t;t=e.firstElementChild;)e.removeChild(t);return e}},{key:"appendChilds",value:function(e,t){for(var r,n=[];r=e.firstElementChild;)n.push(t.appendChild(r));return n}},{key:"trigger",value:function(e,t){var r;return"function"==typeof window.CustomEvent?r=new CustomEvent("z7_blog:"+e,{detail:t}):(r=document.createEvent("CustomEvent")).initCustomEvent("z7_blog:"+e,!0,!0,t),document.dispatchEvent(r),t}},{key:"loadContents",value:function(e,t,r){for(var n=this,o=arguments.length,s=new Array(3<o?o-3:0),a=3;a<o;a++)s[a-3]=arguments[a];var i={},l=new XMLHttpRequest;l.onreadystatechange=function(){var t;n.trigger("ajax:statechange",{state:l.readyState,url:e,selectors:s,request:l}),4===l.readyState&&(n.trigger("ajax:done",{url:e,selectors:s,request:l}),200===l.status?(t=(new DOMParser).parseFromString(l.responseText,"text/html"),s.forEach(function(e){i[e]=t.querySelector(e)}),n.trigger("ajax:success",{url:e,selectors:s,request:l,contents:i}),"function"==typeof r&&r(i,l.status)):n.trigger("ajax:error",{url:e,selectors:s,request:l,callback:r}))};var u="";t&&"object"===_typeof(t)&&Object.keys(t).forEach(function(e){u+=(u?"&":"")+e+(t[e]?"="+encodeURI(t[e]):"")}),l.open("POST",e,!0),l.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),l.send(u),this.trigger("ajax:send",{url:e,selectors:s})}}]),t);function t(){_classCallCheck(this,t)}e.register("Utility",e)}();
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){function s(e,t){if(!0===t||"number"==typeof t&&0<t){t=!0===t?.77:1-t;return e.substr(0,Math.max(1,Math.ceil(e.length/2*t)))+"..."+e.substr(Math.min(-1,Math.floor(0-e.length/2*t)))}return e}function e(e,t,n){return"string"==typeof e&&"function"==typeof t&&(y[e]={callback:t,options:n})}var g=!1,d={},y={};document.addEventListener("DOMContentLoaded",function(){e("google-analytics-gtag",function(e,t,n,o){return"function"==typeof gtag&&gtag("event",t,{event_category:e,event_label:n,value:o})}),e("google-analytics-ga",function(e,t,n,o){return"function"==typeof ga&&ga("send","event",e,t,n,o)}),e("google-analytics-gaq",function(e,t,n,o){return"object"===("undefined"==typeof _gaq?"undefined":_typeof(_gaq))&&_gaq.push(["_trackEvent",e,t,n,o])}),e("google-analytics-pageTracker",function(e,t,n,o){return"undefined"!=typeof pageTracker&&pageTracker._trackEvent(e,t,n,o)}),e("local-tracking",function(e,t,n,o){var r=new XMLHttpRequest,a={category:e,action:t,label:n,value:o,referer:document.location.href,touch:"ontouchstart"in window?1:0};r.open("POST","/-/event/send/",!0),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.send(Object.keys(a).map(function(e){return e+"="+decodeURI(a[e])}).join("&"))},{disguise:!1,throttle:100})}),window.Zeroseven=window.Zeroseven||{},window.Zeroseven.Eventtracking={track:function(e,t,n,o,r){function a(e){return"string"!=typeof e&&"number"!=typeof e}var c,i,u,l,f;return(a(e)||a(t)||a(n))&&"function"==typeof console.warn?console.warn('The aruments "category", "action" and "label are necessary to track the event!',1615930932):(e=e.toString(),t=t.toString(),n=n.toString(),o=parseInt(o)||0,g?(console.log('%cA new event was triggered. Call up the function "Zeroseven.Eventtracking.debug(false)" to activate the events.',"font-size:0.8em;color:#3498db"),console.info({category:e,action:t,label:r?s(n,r):n,value:o})):(c=e,i=t,u=n,l=o,f=r,void Object.keys(y).forEach(function(e){var t,n=y[e],o=n.options||{},r=s(u,void 0!==o.disguise?o.disguise:f);o.throttle?(d[t=e+c+i+u]&&clearTimeout(d[t]),d[t]=setTimeout(function(){n.callback(c,i,r,l),delete d[t]},o.throttle)):n.callback(c,i,r,l)})))},add:e,remove:function(e){return"string"==typeof e&&y[e]&&delete y[e]},debug:function(e){console.log("Debug mode %c"+(e?"enabled":"disabled"),"font-weight:bold;color:"+(e?"green":"inherit")),g=!!e},list:function(){return y}}}();
"use strict";function _typeof(n){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}!function(){function r(n){return n.substr(7,(0<n.indexOf("?")?n.indexOf("?"):n.length)-7)}function i(n,t){return n="object"===_typeof(n)?n:{label:n},Zeroseven.Eventtracking.track(n.category||t,n.action||"click",n.label,n.value,n.disguise)}function n(n){for(var t=n.target;t.parentNode&&t.parentNode.tagName;t=t.parentNode)if("a"===t.tagName.toLowerCase())return function(n){var t=n&&n.href?decodeURIComponent(n.href):null;if(t){var e,o=n.dataset[c];if(o&&a[o])return i(a[o].callback(t,n),o);for(e in a){var r=a[e].callback(t,n);if(r)return n.dataset[c]=r?e:"false",i(r,e)}}}(t)}function t(n,t){return"string"==typeof n&&"function"==typeof t&&(a[n]={callback:t})}function e(){return window.addEventListener("click",n,{capture:!0})}var a={},c="trackerI"+Math.random().toString(36).slice(2),o=window.decryptString;window.decryptString=function(){var n=o.apply(void 0,arguments);return i({category:"mailto-link",label:r(n),disguise:.7}),n},document.addEventListener("DOMContentLoaded",function(){!function(){t("phone-link",function(n,t){if(0===n.indexOf("tel:"))return{label:n.substring(4).replace(/[^0-9+]/gi,""),disguise:.3}}),t("mailto-link",function(n,t){if(0===n.indexOf("mailto:"))return{label:r(n),disguise:.7}});var e=new RegExp("(https?:)?//(?!"+location.host+")");t("external-link",function(n,t){if(e.test(n))return n});var o=new RegExp("(?:(?:https:)?//"+location.host+")?/?fileadmin/(.*)");t("local-file-link",function(n,t){n=n.match(o);if(n)return n[1]})}(),e()}),window.Zeroseven=window.Zeroseven||{},window.Zeroseven.Eventtracking=window.Zeroseven.Eventtracking||{},window.Zeroseven.Eventtracking.LinkTracker={start:e,stop:function(){return window.removeEventListener("click",n,!0)},add:t,remove:function(n){return"string"==typeof n&&a[n]&&delete a[n]},list:function(){return a}}}();
"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(){var e=function(){function t(e){_classCallCheck(this,t),this.querySelector=e||".js-lazy-image-wrap",this.styles=null,this.elements=[],this.observe=this.observe.bind(this),this.refresh=this.refresh.bind(this),this.destroy=this.destroy.bind(this),this.trigger=this.trigger.bind(this),this.init()}return _createClass(t,[{key:"trigger",value:function(e,t,n){var s;return t="lazy-images:"+t,"function"==typeof window.CustomEvent?s=new CustomEvent(t,{detail:n}):((s=document.createEvent("HTMLEvents")).initEvent(t,!0,!0),s.eventName=t,n&&(s.detail={},Object.keys(n).forEach(function(e){s.detail[e]=n[e]}))),e.dispatchEvent(s),s}},{key:"destroy",value:function(){for(this.trigger(document,"destroy",{elements:this.elements}),this.elements.forEach(function(e){e.stopObserving(),e.removePlaceholder(),e.wrap.dataset.lazy=""}),this.elements.length=0;this.styles.sheet.cssRules.length;)this.styles.sheet.deleteRule(0)}},{key:"observe",value:function(){var t=this;Array.prototype.slice.call(document.querySelectorAll(this.querySelector)).forEach(function(e){"true"!==e.dataset.lazy&&(e.dataset.lazy="true",t.elements.push(new n(e,t)))}),this.trigger(document,"observe",{elements:this.elements})}},{key:"refresh",value:function(){this.destroy(),this.observe()}},{key:"init",value:function(){return this.styles=document.getElementById("lazy-image-styles")||document.head.insertBefore(document.createElement("style"),document.head.firstChild),this.styles.id="lazy-image-styles",this}}]),t}(),n=function(){function n(e,t){_classCallCheck(this,n),this.wrap=e,this.parent=t,this.parentNode=null,this.content=null,this.placeholder=null,this.observer=null,this.init()}return _createClass(n,[{key:"startObserving",value:function(e){var t=this;this.observer=new IntersectionObserver(function(e){e.forEach(function(e){0<e.intersectionRatio&&(t.stopObserving(),t.load())})}),this.observer.observe(e)}},{key:"stopObserving",value:function(){this.observer&&this.observer.disconnect()}},{key:"load",value:function(e){var t=this;this.parent.trigger(document,"load",{wrap:this.wrap,content:this.content}),this.placeholder.insertAdjacentHTML("afterend",this.content),this.parentNode.removeChild(this.wrap);var n,s,i=this.parentNode.querySelector("img");i&&!e?(n=i.getAttribute("style")||"",s={opacity:0,position:"absolute",maxWidth:"1px",maxHeight:"1px",pointerEvents:"none"},Object.keys(s).forEach(function(e){i.style[e]=s[e]}),i.addEventListener("load",function(){i.setAttribute("style",n),t.switch(i),t.parent.trigger(document,"loaded",{image:i})},{capture:!1,once:!0})):this.removePlaceholder()}},{key:"switch",value:function(e){var t=this,n=this.placeholder;n.style.position="absolute",n.style.height=e.offsetHeight+"px",n.style.width=e.offsetWidth+"px",n.style.zIndex=1,n.style.opacity=1,n.style.pointerEvents="none",n.offsetHeight,n.style.transition="opacity 300ms linear",n.style.opacity=0,setTimeout(function(){t.removePlaceholder()},300)}},{key:"createPlaceholder",value:function(){var e=document.createElement("span"),n="lazy-image-"+Math.random().toString(36).slice(2),s=this.parent.styles.sheet,i=this.wrap.dataset;e.id=n,e.className=i.class||"lazy-image-placeholder",this.parentNode.insertBefore(e,this.parentNode.firstChild),this.placeholder=e;var r=i.ratio?JSON.parse(i.ratio):{0:"16:9"};Object.keys(r).forEach(function(e){var t=r[e]?r[e].match(/(\d+):(\d+)/):null;t&&(t="#"+n+":before {padding-top:"+t[2]/t[1]*100+"%;}",0<parseInt(e)?s.insertRule("@media (min-width:"+e+"px){"+t+"}",s.cssRules.length):(i.fallback?(s.insertRule("#"+n+"{display: block; width: 100%; background: url("+i.fallback+"); background-size: 100% 100%; background-size: cover;}",s.cssRules.length),s.insertRule("#"+n+":before {content: ''; display: block; width: 100%; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);}",s.cssRules.length)):(s.insertRule("#"+n+"{display: block; width: 100%; background: #bbb;}",s.cssRules.length),s.insertRule("#"+n+":before {content: ''; display: block; width: 100%;}",s.cssRules.length)),s.insertRule(t,s.cssRules.length)))})}},{key:"removePlaceholder",value:function(){this.placeholder&&(this.parentNode.removeChild(this.placeholder),this.placeholder=null)}},{key:"decodeHTML",value:function(e){var t=document.createElement("textarea");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue}},{key:"init",value:function(){var e,t,n=this;this.parentNode=this.wrap.parentNode,this.content=this.decodeHTML(this.wrap.innerHTML),"IntersectionObserver"in window&&"function"==typeof document.createElement("img").addEventListener?(this.createPlaceholder(),this.startObserving(this.placeholder)):((e=document.createElement("div")).insertAdjacentHTML("beforeEnd",this.content),this.parentNode.insertBefore(e.firstElementChild,this.wrap),this.parentNode.removeChild(this.wrap),["skip","load"].forEach(function(e){return n.parent.trigger(document,e,{wrap:n.wrap,content:n.content})}),(t=this.parentNode.querySelector("img"))&&t.addEventListener("load",function(){n.parent.trigger(document,"loaded",{image:t})},{capture:!1,once:!0}))}}]),n}(),t=new e;window.z7=window.z7||{},window.z7.LazyImages={getInstance:function(){return"function"==typeof console.warn&&console.warn('Deprecated call "z7.LazyImages.getInstance()". Please use "Zeroseven.LazyImages" instead.',1618261350),t}},window.Zeroseven=window.Zeroseven||{},window.Zeroseven.LazyImages=t}(),document.addEventListener("DOMContentLoaded",function(){Zeroseven.LazyImages.observe()});

"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var e=".🚀-lightbox-image";document.addEventListener("page:ready",function(){new window.hfh.Lightbox(e)}),document.addEventListener("DOMContentLoaded",function(){window.pjax=new Pjax({elements:'a:not([data-no-ajax]):not([target="_blank"]):not('+e+")",selectors:["#content"],cacheBust:!1}),hfh.GeneralUtility.initializeContent(content),function(){var t=hfh.GeneralUtility;t.triggerEvent("page:ready"),document.addEventListener("pjax:send",function(){t.triggerEvent("page:ajax:send")}),document.addEventListener("pjax:complete",function(){t.triggerEvent("page:ajax:loading")}),document.addEventListener("pjax:success",function(){t.triggerEvent("page:ajax:complete"),t.triggerEvent("page:ready")}),document.addEventListener("pjax:error",function(){"object"===_typeof(window.pjax.request)&&400<=window.pjax.request.status&&t.triggerEvent("page:ajax:error")});var n=document.body.offsetWidth;window.addEventListener("resize",function(){hfh.GeneralUtility.throttleEvent(function(){t.triggerEvent("page:resize");var e=document.body.offsetWidth;e!==n&&(t.triggerEvent("page:resizex"),n=e)})})}(),hfh.GeneralUtility.prefersReducedMotion()&&hfh.GeneralUtility.log("♿️ Based on your system preferences the amount of animation or motion will be reduced on this website",null,"info")},{once:!0})}();
"use strict";function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(){var n=function(){function l(){_classCallCheck(this,l)}return _createClass(l,null,[{key:"prefersReducedMotion",value:function(){return!!window.matchMedia("(prefers-reduced-motion: reduce)").matches}},{key:"triggerEvent",value:function(e,t){var n;"function"==typeof window.CustomEvent?n=new CustomEvent(e,{detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,t),document.dispatchEvent(n)}},{key:"parseJson",value:function(e){try{return JSON.parse(e)}catch(e){l.log(e,1579186270,"error")}}},{key:"appendQueryString",value:function(e,t){var n="";return t&&(Object.keys(t).forEach(function(e){n+="&"+e+(t[e]?"="+encodeURI(t[e]):"")}),n=n.substring(1)),e?e+(n?(e.indexOf("?")<0?"?":"&")+n:""):n}},{key:"loadJavaScript",value:function(e,t){var n=new Date,r=Math.ceil(((n-new Date(Date.UTC(n.getUTCFullYear(),0,1)))/864e5+1)/7).toString()+n.getMonth()+n.getFullYear(),o="script"+(e=l.appendQueryString(e,_defineProperty({},r,null))).split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0),i=document.getElementById(o)||null,a="data-loading-complete";if(i&&"function"==typeof t&&(i.getAttribute(a)?t(e,o):i.addEventListener("load",function(){t(e,o)})),!i){var u=document.createElement("script");u.type="text/javascript",u.id=o,u.src=e,u.addEventListener("load",function(){this.setAttribute(a,"true"),"function"==typeof t&&t(e,o)}),document.head.appendChild(u)}}},{key:"loadJson",value:function(e,n,t,r){return l.load(e,function(e){var t=l.parseJson(e);"function"==typeof n&&n(t)},t,r)}},{key:"loadContent",value:function(e,i,a,t,n){return l.load(e,function(e,t,n){var r={code:t,text:n};if("function"==typeof a)if(i){var o=(new DOMParser).parseFromString(e,"text/html");a(o.querySelector(i),r,o)}else a(null,r,null)},t,n)}},{key:"load",value:function(e,t,n,r){var o=new XMLHttpRequest;return o.onreadystatechange=function(){4===o.readyState&&"function"==typeof t&&(200===o.status?t(o.responseText,o.status,o.statusText):o.status&&(l.log(o.status+" "+o.statusText+" ("+e+")",1580222301,"error"),t(null,o.status,o.statusText)))},r?(o.open("POST",e,!0),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),o.send(l.appendQueryString(null,n))):(o.open("GET",l.appendQueryString(e,n),!0),o.send()),o}},{key:"randomString",value:function(e){return(e||"id")+"-"+Math.random().toString(36).slice(2)}},{key:"log",value:function(e,t,n){var r=console.hasOwnProperty(n)?console[n]:console.log;return"function"==typeof r&&(t?r(e,parseInt(t)):r(e)),e}},{key:"throttleEvent",value:function(e,t,n){var r=this;t=t||"throttle",this.resizeAction=this.resizeAction||{},this.resizeAction[t]&&window.clearTimeout(this.resizeAction[t]),this.resizeAction[t]=window.setTimeout(function(){e(),r.resizeAction[t]=null},n||200)}},{key:"removeChilds",value:function(e){for(var t;t=e.firstElementChild;)e.removeChild(t);return e}},{key:"getClosest",value:function(e,t){for(var n=e,r=null;(n=n.parentNode)&&null===r;)r=n.querySelector(t)||null;return r}},{key:"initializeContent",value:function(e){return e=e&&e.nodeName?e:document,"undefined"!=typeof pjax&&pjax.refresh(e),"undefined"!=typeof picturefill&&e.getElementsByTagName("img").length&&picturefill(),e.getElementsByTagName("select").length&&(hfh.InlineSelect.refresh(e),hfh.OverlaySelect.init()),(e.getElementsByTagName("select").length||e.getElementsByTagName("input").length||e.getElementsByTagName("textarea").length)&&hfh.Form.init(e),e}}]),l}(),e=function(){function l(){_classCallCheck(this,l)}return _createClass(l,null,[{key:"set",value:function(t,n){return t&&n&&Object.keys(n).forEach(function(e){t.style[e]=n[e]}),t}},{key:"remove",value:function(t,e){return t&&Array.isArray(e)&&e.forEach(function(e){t.style.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase())}),t}},{key:"animate",value:function(r,o,i,e,a,u){var t=e||(n.prefersReducedMotion()?1500:300);return r&&(l.set(r,o),o&&i&&(r.offsetHeight,r.style.transitionProperty="all",r.style.transitionDuration=t+"ms"),l.set(r,i)),setTimeout(function(){if(!0!==a){var t={transition:!0,display:!0};for(var e in o)t[e]=o[e];for(var n in i)t[n]=i[n];Array.isArray(a)&&a.forEach(function(e){return t[e]&&delete t[e]}),l.remove(r,Object.keys(t))}"function"==typeof u&&u()},t),r}}]),l}();window.hfh=window.hfh||{},window.hfh.GeneralUtility=n,window.hfh.GeneralUtility.Styles=e}();
!function(e,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("jquery")):e.jQueryBridget=i(e,e.jQuery)}(window,function(t,e){"use strict";var i=Array.prototype.slice,n=t.console,d=void 0===n?function(){}:function(t){n.error(t)};function s(h,s,c){(c=c||e||t.jQuery)&&(s.prototype.option||(s.prototype.option=function(t){c.isPlainObject(t)&&(this.options=c.extend(!0,this.options,t))}),c.fn[h]=function(t){return"string"==typeof t?function(t,o,r){var a,l="$()."+h+'("'+o+'")';return t.each(function(t,e){var i=c.data(e,h);if(i){var n=i[o];if(n&&"_"!=o.charAt(0)){var s=n.apply(i,r);a=void 0===a?s:a}else d(l+" is not a valid method")}else d(h+" not initialized. Cannot call methods, i.e. "+l)}),void 0!==a?a:t}(this,t,i.call(arguments,1)):(function(t,n){t.each(function(t,e){var i=c.data(e,h);i?(i.option(n),i._init()):(i=new s(e,n),c.data(e,h,i))})}(this,t),this)},o(c))}function o(t){!t||t&&t.bridget||(t.bridget=s)}return o(e||t.jQuery),s}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function m(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var i="undefined"==typeof console?function(){}:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],b=y.length;function E(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var S,C=!1;function x(t){if(!function(){if(!C){C=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=E(t);S=200==Math.round(m(i.width)),x.isBoxSizeOuter=S,e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=E(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<b;e++){t[y[e]]=0}return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,s=0;s<b;s++){var o=y[s],r=e[o],a=parseFloat(r);i[o]=isNaN(a)?0:a}var l=i.paddingLeft+i.paddingRight,h=i.paddingTop+i.paddingBottom,c=i.marginLeft+i.marginRight,d=i.marginTop+i.marginBottom,u=i.borderLeftWidth+i.borderRightWidth,f=i.borderTopWidth+i.borderBottomWidth,p=n&&S,g=m(e.width);!1!==g&&(i.width=g+(p?0:l+u));var v=m(e.height);return!1!==v&&(i.height=v+(p?0:h+f)),i.innerWidth=i.width-(l+u),i.innerHeight=i.height-(h+f),i.outerWidth=i.width+c,i.outerHeight=i.height+d,i}}return x}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(t,e){return t[i](e)}}),function(e,i){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("desandro-matches-selector")):e.fizzyUIUtils=i(e,e.matchesSelector)}(window,function(h,o){var c={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},e=Array.prototype.slice;c.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?e.call(t):[t]},c.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},c.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,o(t,e))return t},c.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},c.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},c.filterFindElements=function(t,n){t=c.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){o(t,n)&&s.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)s.push(e[i])}else s.push(t)}),s},c.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,i=this;this[o]=setTimeout(function(){s.apply(i,e),delete i[o]},n)}},c.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},c.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var d=h.console;return c.htmlInit=function(a,l){c.docReady(function(){var t=c.toDashed(l),s="data-"+t,e=document.querySelectorAll("["+s+"]"),i=document.querySelectorAll(".js-"+t),n=c.makeArray(e).concat(c.makeArray(i)),o=s+"-options",r=h.jQuery;n.forEach(function(t){var e,i=t.getAttribute(s)||t.getAttribute(o);try{e=i&&JSON.parse(i)}catch(i){return void(d&&d.error("Error parsing "+s+" on "+t.className+": "+i))}var n=new a(t,e);r&&r.data(t,l,n)})})},c}),function(e,i){"function"==typeof define&&define.amd?define("flickity/js/cell",["get-size/get-size"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("get-size")):(e.Flickity=e.Flickity||{},e.Flickity.Cell=i(e,e.getSize))}(window,function(t,e){function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0,this.element.style[this.parent.originSide]=0},n.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]="",this.element.style.transform="",this.element.removeAttribute("aria-hidden")},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e="left"===this.parent.originSide?1:-1,i=this.parent.options.percentPosition?t*e*(this.parent.size.innerWidth/this.size.width):t*e;this.element.style.transform="translateX("+this.parent.getPositionValue(i)+")"},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/slide",e):"object"==typeof module&&module.exports?module.exports=e():(t.Flickity=t.Flickity||{},t.Flickity.Slide=e())}(window,function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.cells.forEach(function(t){t.select()})},e.unselect=function(){this.cells.forEach(function(t){t.unselect()})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t}),function(e,i){"function"==typeof define&&define.amd?define("flickity/js/animate",["fizzy-ui-utils/utils"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("fizzy-ui-utils")):(e.Flickity=e.Flickity||{},e.Flickity.animatePrototype=i(e,e.fizzyUIUtils))}(window,function(t,e){var i={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame(function(){e.animate()})}},positionSlider:function(){var t=this.x;this.options.wrapAround&&1<this.cells.length&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var t=this.slides[0];if(t){var e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n],o=0<e?i:0;s.wrapShift(o),e-=s.size.outerWidth}},_unshiftCells:function(t){if(t&&t.length)for(var e=0;e<t.length;e++)t[e].wrapShift(0)},integratePhysics:function(){this.x+=this.velocity,this.velocity*=this.getFrictionFactor()},applyForce:function(t){this.velocity+=t},getFrictionFactor:function(){return 1-this.options[this.isFreeScrolling?"freeScrollFriction":"friction"]},getRestingPosition:function(){return this.x+this.velocity/(1-this.getFrictionFactor())},applyDragForce:function(){if(this.isDraggable&&this.isPointerDown){var t=this.dragX-this.x-this.velocity;this.applyForce(t)}},applySelectedAttraction:function(){if(!(this.isDraggable&&this.isPointerDown)&&!this.isFreeScrolling&&this.slides.length){var t=(-1*this.selectedSlide.target-this.x)*this.options.selectedAttraction;this.applyForce(t)}}};return i}),function(r,a){if("function"==typeof define&&define.amd)define("flickity/js/flickity",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./cell","./slide","./animate"],function(t,e,i,n,s,o){return a(r,t,e,i,n,s,o)});else if("object"==typeof module&&module.exports)module.exports=a(r,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./cell"),require("./slide"),require("./animate"));else{var t=r.Flickity;r.Flickity=a(r,r.EvEmitter,r.getSize,r.fizzyUIUtils,t.Cell,t.Slide,t.animatePrototype)}}(window,function(n,t,e,a,i,r,s){var l=n.jQuery,o=n.getComputedStyle,h=n.console;function c(t,e){for(t=a.makeArray(t);t.length;)e.appendChild(t.shift())}var d=0,u={};function f(t,e){var i=a.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var n=u[this.element.flickityGUID];return n&&n.option(e),n}l&&(this.$element=l(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(e),this._create()}else h&&h.error("Bad element for Flickity: "+(i||t))}f.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},f.createMethods=[];var p=f.prototype;a.extend(p,t.prototype),p._create=function(){var t=this.guid=++d;for(var e in this.element.flickityGUID=t,(u[t]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&n.addEventListener("resize",this),this.options.on){var i=this.options.on[e];this.on(e,i)}f.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t){a.extend(this.options,t)},p.activate=function(){this.isActive||(this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize(),c(this._filterFindCellElements(this.element.children),this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready"))},p._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},p._filterFindCellElements=function(t){return a.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){return this._filterFindCellElements(t).map(function(t){return new i(t,this)},this)},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(0<t){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,s=t;s<n;s++){var o=this.cells[s];o.setPosition(e),e+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(t){t.forEach(function(t){t.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var n=new r(this);this.slides.push(n);var s="left"==this.originSide?"marginRight":"marginLeft",o=this._getCanCellFit();this.cells.forEach(function(t,e){if(n.cells.length){var i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[s]);o.call(this,e,i)||(n.updateTarget(),n=new r(this),this.slides.push(n)),n.addCell(t)}else n.addCell(t)},this),n.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(\d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=e(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var g={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var t=g[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},p._getGapCells=function(t,e,i){for(var n=[];0<t;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],s=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],r=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){s?t.target=n*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,r))},this)}},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),l&&this.$element){var s=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var o=new l.Event(e);o.type=t,s=o}this.$element.trigger(s,i)}},p.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=a.modulo(t,this.slides.length)),this.slides[t])){var n=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=n&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&1<e))return t;var i=a.modulo(t,e),n=Math.abs(i-this.selectedIndex),s=Math.abs(i+e-this.selectedIndex),o=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&s<n?t+=e:!this.isDragSelect&&o<n&&(t-=e),t<0?this.x-=this.slideableWidth:e<=t&&(this.x+=this.slideableWidth)},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),(this.selectedSlide=t).select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t)if(this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},p.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var s=this.getCellSlideIndex(n);this.select(s,e,i)}},p.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++){if(-1!=this.slides[e].cells.indexOf(t))return e}},p.getCell=function(t){for(var e=0;e<this.cells.length;e++){var i=this.cells[e];if(i.element==t)return i}},p.getCells=function(t){t=a.makeArray(t);var i=[];return t.forEach(function(t){var e=this.getCell(t);e&&i.push(e)},this),i},p.getCellElements=function(){return this.cells.map(function(t){return t.element})},p.getParentCell=function(t){var e=this.getCell(t);return e||(t=a.getParent(t,".flickity-slider > *"),this.getCell(t))},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(i<=1+2*t)return this.getCellElements();for(var n=[],s=e-t;s<=e+t;s++){var o=this.options.wrapAround?a.modulo(s,i):s,r=this.slides[o];r&&(n=n.concat(r.getCellElements()))}return n},p.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[\d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},p.onresize=function(){this.watchCSS(),this.resize()},a.debounceMethod(f,"onresize",150),p.resize=function(){if(this.isActive&&!this.isAnimating&&!this.isDragging){this.getSize(),this.options.wrapAround&&(this.x=a.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},p.watchCSS=function(){this.options.watchCSS&&(-1!=o(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=f.keyboardHandlers[t.keyCode];i&&i.call(this)}},f.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},p.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:!0}),n.pageYOffset!=t&&n.scrollTo(n.pageXOffset,t)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),c(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),n.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),l&&this.$element&&l.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete u[this.guid]},a.extend(p,s),f.data=function(t){var e=(t=a.getQueryElement(t))&&t.flickityGUID;return e&&u[e]},a.htmlInit(f,"flickity"),l&&l.bridget&&l.bridget("flickity",f),f.setJQuery=function(t){l=t},f.Cell=i,f.Slide=r,f}),function(e,i){"function"==typeof define&&define.amd?define("unipointer/unipointer",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.Unipointer=i(e,e.EvEmitter)}(window,function(s,t){function e(){}var i=e.prototype=Object.create(t.prototype);i.bindStartEvent=function(t){this._bindStartEvent(t,!0)},i.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},i._bindStartEvent=function(t,e){var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n="mousedown";"ontouchstart"in s?n="touchstart":s.PointerEvent&&(n="pointerdown"),t[i](n,this)},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},i.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},i.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},i.onpointerdown=function(t){this._pointerDown(t,t)},i._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},i.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var n={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return i._bindPostStartEvents=function(t){if(t){var e=n[t.type];e.forEach(function(t){s.addEventListener(t,this)},this),this._boundPointerEvents=e}},i._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){s.removeEventListener(t,this)},this),delete this._boundPointerEvents)},i.onmousemove=function(t){this._pointerMove(t,t)},i.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},i.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},i._pointerMove=function(t,e){this.pointerMove(t,e)},i.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},i.onmouseup=function(t){this._pointerUp(t,t)},i.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},i.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},i._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},i._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},i._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},i.pointerDone=function(){},i.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},i.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},i._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},i.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},e.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},e}),function(e,i){"function"==typeof define&&define.amd?define("unidragger/unidragger",["unipointer/unipointer"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("unipointer")):e.Unidragger=i(e,e.Unipointer)}(window,function(o,t){function e(){}var i=e.prototype=Object.create(t.prototype);i.bindHandles=function(){this._bindHandles(!0)},i.unbindHandles=function(){this._bindHandles(!1)},i._bindHandles=function(t){for(var e=(t=void 0===t||t)?"addEventListener":"removeEventListener",i=t?this._touchActionValue:"",n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,t),s[e]("click",this),o.PointerEvent&&(s.style.touchAction=i)}},i._touchActionValue="none",i.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},r={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return i.okayPointerDown=function(t){var e=s[t.target.nodeName],i=r[t.target.type],n=!e||i;return n||this._pointerReset(),n},i.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},i.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},i._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},i.hasDragStarted=function(t){return 3<Math.abs(t.x)||3<Math.abs(t.y)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},i._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},i._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},i.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},i._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},i.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},i._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},i.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},i.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},i._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},i.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},e.getPointerPoint=t.getPointerPoint,e}),function(n,s){"function"==typeof define&&define.amd?define("flickity/js/drag",["./flickity","unidragger/unidragger","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)}):"object"==typeof module&&module.exports?module.exports=s(n,require("./flickity"),require("unidragger"),require("fizzy-ui-utils")):n.Flickity=s(n,n.Flickity,n.Unidragger,n.fizzyUIUtils)}(window,function(i,t,e,a){a.extend(t.defaults,{draggable:">1",dragThreshold:3}),t.createMethods.push("_createDrag");var n=t.prototype;a.extend(n,e.prototype),n._touchActionValue="pan-y",n._createDrag=function(){this.on("activate",this.onActivateDrag),this.on("uiChange",this._uiChangeDrag),this.on("deactivate",this.onDeactivateDrag),this.on("cellChange",this.updateDraggable)},n.onActivateDrag=function(){this.handles=[this.viewport],this.bindHandles(),this.updateDraggable()},n.onDeactivateDrag=function(){this.unbindHandles(),this.element.classList.remove("is-draggable")},n.updateDraggable=function(){">1"==this.options.draggable?this.isDraggable=1<this.slides.length:this.isDraggable=this.options.draggable,this.isDraggable?this.element.classList.add("is-draggable"):this.element.classList.remove("is-draggable")},n.bindDrag=function(){this.options.draggable=!0,this.updateDraggable()},n.unbindDrag=function(){this.options.draggable=!1,this.updateDraggable()},n._uiChangeDrag=function(){delete this.isFreeScrolling},n.pointerDown=function(t,e){this.isDraggable?this.okayPointerDown(t)&&(this._pointerDownPreventDefault(t),this.pointerDownFocus(t),document.activeElement!=this.element&&this.pointerDownBlur(),this.dragX=this.x,this.viewport.classList.add("is-pointer-down"),this.pointerDownScroll=o(),i.addEventListener("scroll",this),this._pointerDownDefault(t,e)):this._pointerDownDefault(t,e)},n._pointerDownDefault=function(t,e){this.pointerDownPointer={pageX:e.pageX,pageY:e.pageY},this._bindPostStartEvents(t),this.dispatchEvent("pointerDown",t,[e])};var s={INPUT:!0,TEXTAREA:!0,SELECT:!0};function o(){return{x:i.pageXOffset,y:i.pageYOffset}}return n.pointerDownFocus=function(t){s[t.target.nodeName]||this.focus()},n._pointerDownPreventDefault=function(t){var e="touchstart"==t.type,i="touch"==t.pointerType,n=s[t.target.nodeName];e||i||n||t.preventDefault()},n.hasDragStarted=function(t){return Math.abs(t.x)>this.options.dragThreshold},n.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove("is-pointer-down"),this.dispatchEvent("pointerUp",t,[e]),this._dragPointerUp(t,e)},n.pointerDone=function(){i.removeEventListener("scroll",this),delete this.pointerDownScroll},n.dragStart=function(t,e){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),i.removeEventListener("scroll",this),this.dispatchEvent("dragStart",t,[e]))},n.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent("pointerMove",t,[e,i]),this._dragMove(t,e,i)},n.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x%=this.slideableWidth);var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);s=o<s?.5*(s+o):s;var r=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=s<r?.5*(s+r):s}this.dragX=s,this.dragMoveTime=new Date,this.dispatchEvent("dragMove",t,[e,i])}},n.dragEnd=function(t,e){if(this.isDraggable){this.options.freeScroll&&(this.isFreeScrolling=!0);var i=this.dragEndRestingSelect();if(this.options.freeScroll&&!this.options.wrapAround){var n=this.getRestingPosition();this.isFreeScrolling=-n>this.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},n.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index},n._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,s)&&(n+=i,s=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:s,index:n-i}},n.getSlideDistance=function(t,e){var i=this.slides.length,n=this.options.wrapAround&&1<i,s=n?a.modulo(e,i):e,o=this.slides[s];if(!o)return null;var r=n?this.slideableWidth*Math.floor(e/i):0;return t-(o.target+r)},n.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return 0<t&&0<e?1:t<0&&e<0?-1:0},n.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])},n.onscroll=function(){var t=o(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(3<Math.abs(e)||3<Math.abs(i))&&this._pointerDone()},t}),function(n,s){"function"==typeof define&&define.amd?define("flickity/js/prev-next-button",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)}):"object"==typeof module&&module.exports?module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}(window,function(t,e,i,n){"use strict";var s="http://www.w3.org/2000/svg";function o(t,e){this.direction=t,this.parent=e,this._create()}(o.prototype=Object.create(i.prototype))._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(s,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(s,"path"),i=function(t){return"string"!=typeof t?"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50  L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z":t}(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.handleEvent=n.handleEvent,o.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&1<t.length)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e;this[this.parent.selectedIndex==i?"disable":"enable"]()}},o.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var r=e.prototype;return r._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},r.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},r.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}),function(n,s){"function"==typeof define&&define.amd?define("flickity/js/page-dots",["./flickity","unipointer/unipointer","fizzy-ui-utils/utils"],function(t,e,i){return s(n,t,e,i)}):"object"==typeof module&&module.exports?module.exports=s(n,require("./flickity"),require("unipointer"),require("fizzy-ui-utils")):s(n,n.Flickity,n.Unipointer,n.fizzyUIUtils)}(window,function(t,e,i,n){function s(t){this.parent=t,this._create()}(s.prototype=Object.create(i.prototype))._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;0<t?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){this.dots.splice(this.dots.length-t,t).forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.prototype.onTap=s.prototype.onClick=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},s.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}),function(t,n){"function"==typeof define&&define.amd?define("flickity/js/player",["ev-emitter/ev-emitter","fizzy-ui-utils/utils","./flickity"],function(t,e,i){return n(t,e,i)}):"object"==typeof module&&module.exports?module.exports=n(require("ev-emitter"),require("fizzy-ui-utils"),require("./flickity")):n(t.EvEmitter,t.fizzyUIUtils,t.Flickity)}(window,function(t,e,i){function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}(n.prototype=Object.create(t.prototype)).play=function(){"playing"!=this.state&&(document.hidden?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick()))},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){this[document.hidden?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}),function(i,n){"function"==typeof define&&define.amd?define("flickity/js/add-remove-cell",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)}):"object"==typeof module&&module.exports?module.exports=n(i,require("./flickity"),require("fizzy-ui-utils")):n(i,i.Flickity,i.fizzyUIUtils)}(window,function(t,e,n){var i=e.prototype;return i.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var s=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(i),o=e==n;if(o)this.slider.appendChild(s);else{var r=this.cells[e].element;this.slider.insertBefore(s,r)}if(0===e)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var a=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i),this.cellChange(e,!0)}},i.append=function(t){this.insert(t,this.cells.length)},i.prepend=function(t){this.insert(t,0)},i.remove=function(t){var e=this.getCells(t);if(e&&e.length){var i=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i),n.removeFrom(this.cells,t)},this),this.cellChange(i,!0)}},i.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},i.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}),function(i,n){"function"==typeof define&&define.amd?define("flickity/js/lazyload",["./flickity","fizzy-ui-utils/utils"],function(t,e){return n(i,t,e)}):"object"==typeof module&&module.exports?module.exports=n(i,require("./flickity"),require("fizzy-ui-utils")):n(i,i.Flickity,i.fizzyUIUtils)}(window,function(t,e,o){"use strict";e.createMethods.push("_createLazyload");var i=e.prototype;function s(t,e){this.img=t,this.flickity=e,this.load()}return i._createLazyload=function(){this.on("select",this.lazyLoad)},i.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),n=[];i.forEach(function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),i=t.getAttribute("data-flickity-lazyload-src"),n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n)return[t]}var s=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return o.makeArray(s)}(t);n=n.concat(e)}),n.forEach(function(t){new s(t,this)},this)}},s.prototype.handleEvent=o.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=s,e}),function(t,e){"function"==typeof define&&define.amd?define("flickity/js/index",["./flickity","./drag","./prev-next-button","./page-dots","./player","./add-remove-cell","./lazyload"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./flickity"),require("./drag"),require("./prev-next-button"),require("./page-dots"),require("./player"),require("./add-remove-cell"),require("./lazyload")))}(window,function(t){return t}),function(t,e){"function"==typeof define&&define.amd?define("flickity-as-nav-for/as-nav-for",["flickity/js/index","fizzy-ui-utils/utils"],e):"object"==typeof module&&module.exports?module.exports=e(require("flickity"),require("fizzy-ui-utils")):t.Flickity=e(t.Flickity,t.fizzyUIUtils)}(window,function(n,s){n.createMethods.push("_createAsNavFor");var t=n.prototype;return t._createAsNavFor=function(){this.on("activate",this.activateAsNavFor),this.on("deactivate",this.deactivateAsNavFor),this.on("destroy",this.destroyAsNavFor);var t=this.options.asNavFor;if(t){var e=this;setTimeout(function(){e.setNavCompanion(t)})}},t.setNavCompanion=function(t){t=s.getQueryElement(t);var e=n.data(t);if(e&&e!=this){this.navCompanion=e;var i=this;this.onNavCompanionSelect=function(){i.navCompanionSelect()},e.on("select",this.onNavCompanionSelect),this.on("staticClick",this.onNavStaticClick),this.navCompanionSelect(!0)}},t.navCompanionSelect=function(t){var e=this.navCompanion&&this.navCompanion.selectedCells;if(e){var i=e[0],n=this.navCompanion.cells.indexOf(i),s=n+e.length-1,o=Math.floor(function(t,e,i){return(e-t)*i+t}(n,s,this.navCompanion.cellAlign));if(this.selectCell(o,!1,t),this.removeNavSelectedElements(),!(o>=this.cells.length)){var r=this.cells.slice(n,1+s);this.navSelectedElements=r.map(function(t){return t.element}),this.changeNavSelectedClass("add")}}},t.changeNavSelectedClass=function(e){this.navSelectedElements.forEach(function(t){t.classList[e]("is-nav-selected")})},t.activateAsNavFor=function(){this.navCompanionSelect(!0)},t.removeNavSelectedElements=function(){this.navSelectedElements&&(this.changeNavSelectedClass("remove"),delete this.navSelectedElements)},t.onNavStaticClick=function(t,e,i,n){"number"==typeof n&&this.navCompanion.selectCell(n)},t.deactivateAsNavFor=function(){this.removeNavSelectedElements()},t.destroyAsNavFor=function(){this.navCompanion&&(this.navCompanion.off("select",this.onNavCompanionSelect),this.off("staticClick",this.onNavStaticClick),delete this.navCompanion)},n}),function(e,i){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(t){return i(e,t)}):"object"==typeof module&&module.exports?module.exports=i(e,require("ev-emitter")):e.imagesLoaded=i(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){var s=e.jQuery,o=e.console;function r(t,e){for(var i in e)t[i]=e[i];return t}var a=Array.prototype.slice;function l(t,e,i){if(!(this instanceof l))return new l(t,e,i);var n=t;"string"==typeof t&&(n=document.querySelectorAll(t)),n?(this.elements=function(t){return Array.isArray(t)?t:"object"==typeof t&&"number"==typeof t.length?a.call(t):[t]}(n),this.options=r({},this.options),"function"==typeof e?i=e:r(this.options,e),i&&this.on("always",i),this.getImages(),s&&(this.jqDeferred=new s.Deferred),setTimeout(this.check.bind(this))):o.error("Bad element for imagesLoaded "+(n||t))}(l.prototype=Object.create(t.prototype)).options={},l.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},l.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&h[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background){var o=t.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}}};var h={1:!0,9:!0,11:!0};function i(t){this.img=t}function n(t,e){this.url=t,this.element=e,this.img=new Image}return l.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,t),n=i.exec(e.backgroundImage)}},l.prototype.addImage=function(t){var e=new i(t);this.images.push(e)},l.prototype.addBackground=function(t,e){var i=new n(t,e);this.images.push(i)},l.prototype.check=function(){var n=this;function e(t,e,i){setTimeout(function(){n.progress(t,e,i)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},l.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&o&&o.log("progress: "+i,t,e)},l.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},(i.prototype=Object.create(t.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(n.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},n.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},n.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},l.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((s=t).fn.imagesLoaded=function(t,e){return new l(this,t,e).jqDeferred.promise(s(this))})},l.makeJQueryPlugin(),l}),function(i,n){"function"==typeof define&&define.amd?define(["flickity/js/index","imagesloaded/imagesloaded"],function(t,e){return n(i,t,e)}):"object"==typeof module&&module.exports?module.exports=n(i,require("flickity"),require("imagesloaded")):i.Flickity=n(i,i.Flickity,i.imagesLoaded)}(window,function(t,e,i){"use strict";e.createMethods.push("_createImagesLoaded");var n=e.prototype;return n._createImagesLoaded=function(){this.on("activate",this.imagesLoaded)},n.imagesLoaded=function(){if(this.options.imagesLoaded){var n=this;i(this.slider).on("progress",function(t,e){var i=n.getParentCell(e.img);n.cellSizeChange(i&&i.element),n.options.freeScroll||n.positionSliderAtSelected()})}},e});
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Pjax=f()}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r}()({1:[function(require,module,exports){var executeScripts=require("./lib/execute-scripts");var forEachEls=require("./lib/foreach-els");var parseOptions=require("./lib/parse-options");var switches=require("./lib/switches");var newUid=require("./lib/uniqueid");var on=require("./lib/events/on");var trigger=require("./lib/events/trigger");var clone=require("./lib/util/clone");var contains=require("./lib/util/contains");var extend=require("./lib/util/extend");var noop=require("./lib/util/noop");var Pjax=function(options){this.state={numPendingSwitches:0,href:null,options:null};this.options=parseOptions(options);this.log("Pjax options",this.options);if(this.options.scrollRestoration&&"scrollRestoration"in history){history.scrollRestoration="manual"}this.maxUid=this.lastUid=newUid();this.parseDOM(document);on(window,"popstate",function(st){if(st.state){var opt=clone(this.options);opt.url=st.state.url;opt.title=st.state.title;opt.history=false;opt.scrollPos=st.state.scrollPos;if(st.state.uid<this.lastUid){opt.backward=true}else{opt.forward=true}this.lastUid=st.state.uid;this.loadUrl(st.state.url,opt)}}.bind(this))};Pjax.switches=switches;Pjax.prototype={log:require("./lib/proto/log"),getElements:function(el){return el.querySelectorAll(this.options.elements)},parseDOM:function(el){var parseElement=require("./lib/proto/parse-element");forEachEls(this.getElements(el),parseElement,this)},refresh:function(el){this.parseDOM(el||document)},reload:function(){window.location.reload()},attachLink:require("./lib/proto/attach-link"),attachForm:require("./lib/proto/attach-form"),forEachSelectors:function(cb,context,DOMcontext){return require("./lib/foreach-selectors").bind(this)(this.options.selectors,cb,context,DOMcontext)},switchSelectors:function(selectors,fromEl,toEl,options){return require("./lib/switches-selectors").bind(this)(this.options.switches,this.options.switchesOptions,selectors,fromEl,toEl,options)},latestChance:function(href){window.location=href},onSwitch:function(){trigger(window,"resize scroll");this.state.numPendingSwitches--;if(this.state.numPendingSwitches===0){this.afterAllSwitches()}},loadContent:function(html,options){if(typeof html!=="string"){trigger(document,"pjax:complete pjax:error",options);return}var tmpEl=document.implementation.createHTMLDocument("pjax");var htmlRegex=/<html[^>]+>/gi;var htmlAttribsRegex=/\s?[a-z:]+(?:=['"][^'">]+['"])*/gi;var matches=html.match(htmlRegex);if(matches&&matches.length){matches=matches[0].match(htmlAttribsRegex);if(matches.length){matches.shift();matches.forEach(function(htmlAttrib){var attr=htmlAttrib.trim().split("=");if(attr.length===1){tmpEl.documentElement.setAttribute(attr[0],true)}else{tmpEl.documentElement.setAttribute(attr[0],attr[1].slice(1,-1))}})}}tmpEl.documentElement.innerHTML=html;this.log("load content",tmpEl.documentElement.attributes,tmpEl.documentElement.innerHTML.length);if(document.activeElement&&contains(document,this.options.selectors,document.activeElement)){try{document.activeElement.blur()}catch(e){}}this.switchSelectors(this.options.selectors,tmpEl,document,options)},abortRequest:require("./lib/abort-request"),doRequest:require("./lib/send-request"),handleResponse:require("./lib/proto/handle-response"),loadUrl:function(href,options){options=typeof options==="object"?extend({},this.options,options):clone(this.options);this.log("load href",href,options);this.abortRequest(this.request);trigger(document,"pjax:send",options);this.request=this.doRequest(href,options,this.handleResponse.bind(this))},afterAllSwitches:function(){var autofocusEl=Array.prototype.slice.call(document.querySelectorAll("[autofocus]")).pop();if(autofocusEl&&document.activeElement!==autofocusEl){autofocusEl.focus()}this.options.selectors.forEach(function(selector){forEachEls(document.querySelectorAll(selector),function(el){executeScripts(el)})});var state=this.state;if(state.options.history){if(!window.history.state){this.lastUid=this.maxUid=newUid();window.history.replaceState({url:window.location.href,title:document.title,uid:this.maxUid,scrollPos:[0,0]},document.title)}this.lastUid=this.maxUid=newUid();window.history.pushState({url:state.href,title:state.options.title,uid:this.maxUid,scrollPos:[0,0]},state.options.title,state.href)}this.forEachSelectors(function(el){this.parseDOM(el)},this);trigger(document,"pjax:complete pjax:success",state.options);if(typeof state.options.analytics==="function"){state.options.analytics()}if(state.options.history){var a=document.createElement("a");a.href=this.state.href;if(a.hash){var name=a.hash.slice(1);name=decodeURIComponent(name);var curtop=0;var target=document.getElementById(name)||document.getElementsByName(name)[0];if(target){if(target.offsetParent){do{curtop+=target.offsetTop;target=target.offsetParent}while(target)}}window.scrollTo(0,curtop)}else if(state.options.scrollTo!==false){if(state.options.scrollTo.length>1){window.scrollTo(state.options.scrollTo[0],state.options.scrollTo[1])}else{window.scrollTo(0,state.options.scrollTo)}}}else if(state.options.scrollRestoration&&state.options.scrollPos){window.scrollTo(state.options.scrollPos[0],state.options.scrollPos[1])}this.state={numPendingSwitches:0,href:null,options:null}}};Pjax.isSupported=require("./lib/is-supported");if(Pjax.isSupported()){module.exports=Pjax}else{var stupidPjax=noop;for(var key in Pjax.prototype){if(Pjax.prototype.hasOwnProperty(key)&&typeof Pjax.prototype[key]==="function"){stupidPjax[key]=noop}}module.exports=stupidPjax}},{"./lib/abort-request":2,"./lib/events/on":4,"./lib/events/trigger":5,"./lib/execute-scripts":6,"./lib/foreach-els":7,"./lib/foreach-selectors":8,"./lib/is-supported":9,"./lib/parse-options":10,"./lib/proto/attach-form":11,"./lib/proto/attach-link":12,"./lib/proto/handle-response":13,"./lib/proto/log":14,"./lib/proto/parse-element":15,"./lib/send-request":16,"./lib/switches":18,"./lib/switches-selectors":17,"./lib/uniqueid":19,"./lib/util/clone":20,"./lib/util/contains":21,"./lib/util/extend":22,"./lib/util/noop":23}],2:[function(require,module,exports){var noop=require("./util/noop");module.exports=function(request){if(request&&request.readyState<4){request.onreadystatechange=noop;request.abort()}}},{"./util/noop":23}],3:[function(require,module,exports){module.exports=function(el){var code=el.text||el.textContent||el.innerHTML||"";var src=el.src||"";var parent=el.parentNode||document.querySelector("head")||document.documentElement;var script=document.createElement("script");if(code.match("document.write")){if(console&&console.log){console.log("Script contains document.write. Can’t be executed correctly. Code skipped ",el)}return false}script.type="text/javascript";script.id=el.id;if(src!==""){script.src=src;script.async=false}if(code!==""){try{script.appendChild(document.createTextNode(code))}catch(e){script.text=code}}parent.appendChild(script);if((parent instanceof HTMLHeadElement||parent instanceof HTMLBodyElement)&&parent.contains(script)){parent.removeChild(script)}return true}},{}],4:[function(require,module,exports){var forEachEls=require("../foreach-els");module.exports=function(els,events,listener,useCapture){events=typeof events==="string"?events.split(" "):events;events.forEach(function(e){forEachEls(els,function(el){el.addEventListener(e,listener,useCapture)})})}},{"../foreach-els":7}],5:[function(require,module,exports){var forEachEls=require("../foreach-els");module.exports=function(els,events,opts){events=typeof events==="string"?events.split(" "):events;events.forEach(function(e){var event;event=document.createEvent("HTMLEvents");event.initEvent(e,true,true);event.eventName=e;if(opts){Object.keys(opts).forEach(function(key){event[key]=opts[key]})}forEachEls(els,function(el){var domFix=false;if(!el.parentNode&&el!==document&&el!==window){domFix=true;document.body.appendChild(el)}el.dispatchEvent(event);if(domFix){el.parentNode.removeChild(el)}})})}},{"../foreach-els":7}],6:[function(require,module,exports){var forEachEls=require("./foreach-els");var evalScript=require("./eval-script");module.exports=function(el){if(el.tagName.toLowerCase()==="script"){evalScript(el)}forEachEls(el.querySelectorAll("script"),function(script){if(!script.type||script.type.toLowerCase()==="text/javascript"){if(script.parentNode){script.parentNode.removeChild(script)}evalScript(script)}})}},{"./eval-script":3,"./foreach-els":7}],7:[function(require,module,exports){module.exports=function(els,fn,context){if(els instanceof HTMLCollection||els instanceof NodeList||els instanceof Array){return Array.prototype.forEach.call(els,fn,context)}return fn.call(context,els)}},{}],8:[function(require,module,exports){var forEachEls=require("./foreach-els");module.exports=function(selectors,cb,context,DOMcontext){DOMcontext=DOMcontext||document;selectors.forEach(function(selector){forEachEls(DOMcontext.querySelectorAll(selector),cb,context)})}},{"./foreach-els":7}],9:[function(require,module,exports){module.exports=function(){return window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)}},{}],10:[function(require,module,exports){var defaultSwitches=require("./switches");module.exports=function(options){options=options||{};options.elements=options.elements||"a[href], form[action]";options.selectors=options.selectors||["title",".js-Pjax"];options.switches=options.switches||{};options.switchesOptions=options.switchesOptions||{};options.history=typeof options.history==="undefined"?true:options.history;options.analytics=typeof options.analytics==="function"||options.analytics===false?options.analytics:defaultAnalytics;options.scrollTo=typeof options.scrollTo==="undefined"?0:options.scrollTo;options.scrollRestoration=typeof options.scrollRestoration!=="undefined"?options.scrollRestoration:true;options.cacheBust=typeof options.cacheBust==="undefined"?true:options.cacheBust;options.debug=options.debug||false;options.timeout=options.timeout||0;options.currentUrlFullReload=typeof options.currentUrlFullReload==="undefined"?false:options.currentUrlFullReload;if(!options.switches.head){options.switches.head=defaultSwitches.switchElementsAlt}if(!options.switches.body){options.switches.body=defaultSwitches.switchElementsAlt}return options};function defaultAnalytics(){if(window._gaq){_gaq.push(["_trackPageview"])}if(window.ga){ga("send","pageview",{page:location.pathname,title:document.title})}}},{"./switches":18}],11:[function(require,module,exports){var on=require("../events/on");var clone=require("../util/clone");var attrState="data-pjax-state";var formAction=function(el,event){if(isDefaultPrevented(event)){return}var options=clone(this.options);options.requestOptions={requestUrl:el.getAttribute("action")||window.location.href,requestMethod:el.getAttribute("method")||"GET"};var virtLinkElement=document.createElement("a");virtLinkElement.setAttribute("href",options.requestOptions.requestUrl);var attrValue=checkIfShouldAbort(virtLinkElement,options);if(attrValue){el.setAttribute(attrState,attrValue);return}event.preventDefault();if(el.enctype==="multipart/form-data"){options.requestOptions.formData=new FormData(el)}else{options.requestOptions.requestParams=parseFormElements(el)}el.setAttribute(attrState,"submit");options.triggerElement=el;this.loadUrl(virtLinkElement.href,options)};function parseFormElements(el){var requestParams=[];var formElements=el.elements;for(var i=0;i<formElements.length;i++){var element=formElements[i];var tagName=element.tagName.toLowerCase();if(!!element.name&&element.attributes!==undefined&&tagName!=="button"){var type=element.attributes.type;if(!type||type.value!=="checkbox"&&type.value!=="radio"||element.checked){var values=[];if(tagName==="select"){var opt;for(var j=0;j<element.options.length;j++){opt=element.options[j];if(opt.selected&&!opt.disabled){values.push(opt.hasAttribute("value")?opt.value:opt.text)}}}else{values.push(element.value)}for(var k=0;k<values.length;k++){requestParams.push({name:encodeURIComponent(element.name),value:encodeURIComponent(values[k])})}}}}return requestParams}function checkIfShouldAbort(virtLinkElement,options){if(virtLinkElement.protocol!==window.location.protocol||virtLinkElement.host!==window.location.host){return"external"}if(virtLinkElement.hash&&virtLinkElement.href.replace(virtLinkElement.hash,"")===window.location.href.replace(location.hash,"")){return"anchor"}if(virtLinkElement.href===window.location.href.split("#")[0]+"#"){return"anchor-empty"}if(options.currentUrlFullReload&&virtLinkElement.href===window.location.href.split("#")[0]){return"reload"}}var isDefaultPrevented=function(event){return event.defaultPrevented||event.returnValue===false};module.exports=function(el){var that=this;el.setAttribute(attrState,"");on(el,"submit",function(event){formAction.call(that,el,event)})}},{"../events/on":4,"../util/clone":20}],12:[function(require,module,exports){var on=require("../events/on");var clone=require("../util/clone");var attrState="data-pjax-state";var linkAction=function(el,event){if(isDefaultPrevented(event)){return}var options=clone(this.options);var attrValue=checkIfShouldAbort(el,event);if(attrValue){el.setAttribute(attrState,attrValue);return}event.preventDefault();if(this.options.currentUrlFullReload&&el.href===window.location.href.split("#")[0]){el.setAttribute(attrState,"reload");this.reload();return}el.setAttribute(attrState,"load");options.triggerElement=el;this.loadUrl(el.href,options)};function checkIfShouldAbort(el,event){if(event.which>1||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey){return"modifier"}if(el.protocol!==window.location.protocol||el.host!==window.location.host){return"external"}if(el.hash&&el.href.replace(el.hash,"")===window.location.href.replace(location.hash,"")){return"anchor"}if(el.href===window.location.href.split("#")[0]+"#"){return"anchor-empty"}}var isDefaultPrevented=function(event){return event.defaultPrevented||event.returnValue===false};module.exports=function(el){var that=this;el.setAttribute(attrState,"");on(el,"click",function(event){linkAction.call(that,el,event)});on(el,"keyup",function(event){if(event.keyCode===13){linkAction.call(that,el,event)}}.bind(this))}},{"../events/on":4,"../util/clone":20}],13:[function(require,module,exports){var clone=require("../util/clone");var newUid=require("../uniqueid");var trigger=require("../events/trigger");module.exports=function(responseText,request,href,options){options=clone(options||this.options);options.request=request;if(responseText===false){trigger(document,"pjax:complete pjax:error",options);return}var currentState=window.history.state||{};window.history.replaceState({url:currentState.url||window.location.href,title:currentState.title||document.title,uid:currentState.uid||newUid(),scrollPos:[document.documentElement.scrollLeft||document.body.scrollLeft,document.documentElement.scrollTop||document.body.scrollTop]},document.title,window.location.href);var oldHref=href;if(request.responseURL){if(href!==request.responseURL){href=request.responseURL}}else if(request.getResponseHeader("X-PJAX-URL")){href=request.getResponseHeader("X-PJAX-URL")}else if(request.getResponseHeader("X-XHR-Redirected-To")){href=request.getResponseHeader("X-XHR-Redirected-To")}var a=document.createElement("a");a.href=oldHref;var oldHash=a.hash;a.href=href;if(oldHash&&!a.hash){a.hash=oldHash;href=a.href}this.state.href=href;this.state.options=options;try{this.loadContent(responseText,options)}catch(e){trigger(document,"pjax:error",options);if(!this.options.debug){if(console&&console.error){console.error("Pjax switch fail: ",e)}return this.latestChance(href)}else{throw e}}}},{"../events/trigger":5,"../uniqueid":19,"../util/clone":20}],14:[function(require,module,exports){module.exports=function(){if(this.options.debug&&console){if(typeof console.log==="function"){console.log.apply(console,arguments)}else if(console.log){console.log(arguments)}}}},{}],15:[function(require,module,exports){var attrState="data-pjax-state";module.exports=function(el){switch(el.tagName.toLowerCase()){case"a":if(!el.hasAttribute(attrState)){this.attachLink(el)}break;case"form":if(!el.hasAttribute(attrState)){this.attachForm(el)}break;default:throw"Pjax can only be applied on <a> or <form> submit"}}},{}],16:[function(require,module,exports){var updateQueryString=require("./util/update-query-string");module.exports=function(location,options,callback){options=options||{};var queryString;var requestOptions=options.requestOptions||{};var requestMethod=(requestOptions.requestMethod||"GET").toUpperCase();var requestParams=requestOptions.requestParams||null;var formData=requestOptions.formData||null;var requestPayload=null;var request=new XMLHttpRequest;var timeout=options.timeout||0;request.onreadystatechange=function(){if(request.readyState===4){if(request.status===200){callback(request.responseText,request,location,options)}else if(request.status!==0){callback(null,request,location,options)}}};request.onerror=function(e){console.log(e);callback(null,request,location,options)};request.ontimeout=function(){callback(null,request,location,options)};if(requestParams&&requestParams.length){queryString=requestParams.map(function(param){return param.name+"="+param.value}).join("&");switch(requestMethod){case"GET":location=location.split("?")[0];location+="?"+queryString;break;case"POST":requestPayload=queryString;break}}else if(formData){requestPayload=formData}if(options.cacheBust){location=updateQueryString(location,"t",Date.now())}request.open(requestMethod,location,true);request.timeout=timeout;request.setRequestHeader("X-Requested-With","XMLHttpRequest");request.setRequestHeader("X-PJAX","true");request.setRequestHeader("X-PJAX-Selectors",JSON.stringify(options.selectors));if(requestPayload&&requestMethod==="POST"&&!formData){request.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}request.send(requestPayload);return request}},{"./util/update-query-string":24}],17:[function(require,module,exports){var forEachEls=require("./foreach-els");var defaultSwitches=require("./switches");module.exports=function(switches,switchesOptions,selectors,fromEl,toEl,options){var switchesQueue=[];selectors.forEach(function(selector){var newEls=fromEl.querySelectorAll(selector);var oldEls=toEl.querySelectorAll(selector);if(this.log){this.log("Pjax switch",selector,newEls,oldEls)}if(newEls.length!==oldEls.length){throw"DOM doesn’t look the same on new loaded page: ’"+selector+"’ - new "+newEls.length+", old "+oldEls.length}forEachEls(newEls,function(newEl,i){var oldEl=oldEls[i];if(this.log){this.log("newEl",newEl,"oldEl",oldEl)}var callback=switches[selector]?switches[selector].bind(this,oldEl,newEl,options,switchesOptions[selector]):defaultSwitches.outerHTML.bind(this,oldEl,newEl,options);switchesQueue.push(callback)},this)},this);this.state.numPendingSwitches=switchesQueue.length;switchesQueue.forEach(function(queuedSwitch){queuedSwitch()})}},{"./foreach-els":7,"./switches":18}],18:[function(require,module,exports){var on=require("./events/on");module.exports={outerHTML:function(oldEl,newEl){oldEl.outerHTML=newEl.outerHTML;this.onSwitch()},innerHTML:function(oldEl,newEl){oldEl.innerHTML=newEl.innerHTML;if(newEl.className===""){oldEl.removeAttribute("class")}else{oldEl.className=newEl.className}this.onSwitch()},switchElementsAlt:function(oldEl,newEl){oldEl.innerHTML=newEl.innerHTML;if(newEl.hasAttributes()){var attrs=newEl.attributes;for(var i=0;i<attrs.length;i++){oldEl.attributes.setNamedItem(attrs[i].cloneNode())}}this.onSwitch()},replaceNode:function(oldEl,newEl){oldEl.parentNode.replaceChild(newEl,oldEl);this.onSwitch()},sideBySide:function(oldEl,newEl,options,switchOptions){var forEach=Array.prototype.forEach;var elsToRemove=[];var elsToAdd=[];var fragToAppend=document.createDocumentFragment();var animationEventNames="animationend webkitAnimationEnd MSAnimationEnd oanimationend";var animatedElsNumber=0;var sexyAnimationEnd=function(e){if(e.target!==e.currentTarget){return}animatedElsNumber--;if(animatedElsNumber<=0&&elsToRemove){elsToRemove.forEach(function(el){if(el.parentNode){el.parentNode.removeChild(el)}});elsToAdd.forEach(function(el){el.className=el.className.replace(el.getAttribute("data-pjax-classes"),"");el.removeAttribute("data-pjax-classes")});elsToAdd=null;elsToRemove=null;this.onSwitch()}}.bind(this);switchOptions=switchOptions||{};forEach.call(oldEl.childNodes,function(el){elsToRemove.push(el);if(el.classList&&!el.classList.contains("js-Pjax-remove")){if(el.hasAttribute("data-pjax-classes")){el.className=el.className.replace(el.getAttribute("data-pjax-classes"),"");el.removeAttribute("data-pjax-classes")}el.classList.add("js-Pjax-remove");if(switchOptions.callbacks&&switchOptions.callbacks.removeElement){switchOptions.callbacks.removeElement(el)}if(switchOptions.classNames){el.className+=" "+switchOptions.classNames.remove+" "+(options.backward?switchOptions.classNames.backward:switchOptions.classNames.forward)}animatedElsNumber++;on(el,animationEventNames,sexyAnimationEnd,true)}});forEach.call(newEl.childNodes,function(el){if(el.classList){var addClasses="";if(switchOptions.classNames){addClasses=" js-Pjax-add "+switchOptions.classNames.add+" "+(options.backward?switchOptions.classNames.forward:switchOptions.classNames.backward)}if(switchOptions.callbacks&&switchOptions.callbacks.addElement){switchOptions.callbacks.addElement(el)}el.className+=addClasses;el.setAttribute("data-pjax-classes",addClasses);elsToAdd.push(el);fragToAppend.appendChild(el);animatedElsNumber++;on(el,animationEventNames,sexyAnimationEnd,true)}});oldEl.className=newEl.className;oldEl.appendChild(fragToAppend)}}},{"./events/on":4}],19:[function(require,module,exports){module.exports=function(){var counter=0;return function(){var id="pjax"+(new Date).getTime()+"_"+counter;counter++;return id}}()},{}],20:[function(require,module,exports){module.exports=function(obj){if(null===obj||"object"!==typeof obj){return obj}var copy=obj.constructor();for(var attr in obj){if(obj.hasOwnProperty(attr)){copy[attr]=obj[attr]}}return copy}},{}],21:[function(require,module,exports){module.exports=function contains(doc,selectors,el){for(var i=0;i<selectors.length;i++){var selectedEls=doc.querySelectorAll(selectors[i]);for(var j=0;j<selectedEls.length;j++){if(selectedEls[j].contains(el)){return true}}}return false}},{}],22:[function(require,module,exports){module.exports=function(target){if(target==null){return null}var to=Object(target);for(var i=1;i<arguments.length;i++){var source=arguments[i];if(source!=null){for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){to[key]=source[key]}}}}return to}},{}],23:[function(require,module,exports){module.exports=function(){}},{}],24:[function(require,module,exports){module.exports=function(uri,key,value){var re=new RegExp("([?&])"+key+"=.*?(&|$)","i");var separator=uri.indexOf("?")!==-1?"&":"?";if(uri.match(re)){return uri.replace(re,"$1"+key+"="+value+"$2")}else{return uri+separator+key+"="+value}}},{}]},{},[1])(1)});
!function s(a,r,l){function d(e,t){if(!r[e]){if(!a[e]){var o="function"==typeof require&&require;if(!t&&o)return o(e,!0);if(c)return c(e,!0);var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}var n=r[e]={exports:{}};a[e][0].call(n.exports,function(t){return d(a[e][1][t]||t)},n,n.exports,s,a,r,l)}return r[e].exports}for(var c="function"==typeof require&&require,t=0;t<l.length;t++)d(l[t]);return d}({1:[function(t,e,a){(function(i){(function(){"use strict";function h(t,e){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=function(t,e){if(t){if("string"==typeof t)return l(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,r=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return a=t.done,t},e:function(t){r=!0,s=t},f:function(){try{a||null==o.return||o.return()}finally{if(r)throw s}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e=(t(s.prototype,[{key:"createDomNodes",value:function(){this.domNodes.overlay=document.createElement("div"),this.domNodes.overlay.classList.add("sl-overlay"),this.domNodes.overlay.dataset.opacityTarget=".7",this.domNodes.closeButton=document.createElement("button"),this.domNodes.closeButton.classList.add("sl-close"),this.domNodes.closeButton.innerHTML=this.options.closeText,this.domNodes.spinner=document.createElement("div"),this.domNodes.spinner.classList.add("sl-spinner"),this.domNodes.spinner.innerHTML="<div></div>",this.domNodes.navigation=document.createElement("div"),this.domNodes.navigation.classList.add("sl-navigation"),this.domNodes.navigation.innerHTML='<button class="sl-prev">'.concat(this.options.navText[0],'</button><button class="sl-next">').concat(this.options.navText[1],"</button>"),this.domNodes.counter=document.createElement("div"),this.domNodes.counter.classList.add("sl-counter"),this.domNodes.counter.innerHTML='<span class="sl-current"></span>/<span class="sl-total"></span>',this.domNodes.caption=document.createElement("div"),this.domNodes.caption.classList.add("sl-caption","pos-"+this.options.captionPosition),this.options.captionClass&&this.domNodes.caption.classList.add(this.options.captionClass),this.domNodes.image=document.createElement("div"),this.domNodes.image.classList.add("sl-image"),this.domNodes.wrapper=document.createElement("div"),this.domNodes.wrapper.classList.add("sl-wrapper"),this.domNodes.wrapper.setAttribute("tabindex",-1),this.domNodes.wrapper.setAttribute("role","dialog"),this.domNodes.wrapper.setAttribute("aria-hidden",!1),this.options.className&&this.domNodes.wrapper.classList.add(this.options.className),this.options.rtl&&this.domNodes.wrapper.classList.add("sl-dir-rtl")}},{key:"throttle",value:function(t,e){var o;return function(){o||(t.apply(this,arguments),o=!0,setTimeout(function(){return o=!1},e))}}},{key:"isValidLink",value:function(t){return!this.options.fileExt||"pathname"in t&&new RegExp("("+this.options.fileExt+")$","i").test(t.pathname)}},{key:"calculateTransitionPrefix",value:function(){var t=(document.body||document.documentElement).style;return"transition"in t?"":"WebkitTransition"in t?"-webkit-":"MozTransition"in t?"-moz-":"OTransition"in t&&"-o"}},{key:"toggleScrollbar",value:function(t){var i=0,e=[].slice.call(document.querySelectorAll("."+this.options.fixedClass));if("hide"===t){var o=window.innerWidth;if(!o){var n=document.documentElement.getBoundingClientRect();o=n.right-Math.abs(n.left)}if(document.body.clientWidth<o){var s=document.createElement("div"),a=parseInt(document.body.style.paddingRight||0,10);s.classList.add("sl-scrollbar-measure"),document.body.appendChild(s),i=s.offsetWidth-s.clientWidth,document.body.removeChild(s),document.body.dataset.originalPaddingRight=a,0<i&&(document.body.classList.add("hidden-scroll"),document.body.style.paddingRight=a+i+"px",e.forEach(function(t){var e=t.style.paddingRight,o=window.getComputedStyle(t)["padding-right"];t.dataset.originalPaddingRight=e,t.style.paddingRight="".concat(parseFloat(o)+i,"px")}))}}else document.body.classList.remove("hidden-scroll"),document.body.style.paddingRight=document.body.dataset.originalPaddingRight,e.forEach(function(t){var e=t.dataset.originalPaddingRight;void 0!==e&&(t.style.paddingRight=e)});return i}},{key:"close",value:function(){var t=this;if(!this.isOpen||this.isAnimating||this.isClosing)return!1;this.isClosing=!0;var e=this.relatedElements[this.currentImageIndex];for(var o in e.dispatchEvent(new Event("close.simplelightbox")),this.options.history&&(this.historyHasChanges=!1,this.hashReseted||this.resetHash()),this.removeEventListener(document,"focusin."+this.eventNamespace),this.fadeOut(document.querySelectorAll(".sl-image img, .sl-overlay, .sl-close, .sl-navigation, .sl-image .sl-caption, .sl-counter"),this.options.fadeSpeed,function(){t.options.disableScroll&&t.toggleScrollbar("show"),t.options.htmlClass&&""!==t.options.htmlClass&&document.querySelector("html").classList.remove(t.options.htmlClass),document.body.removeChild(t.domNodes.wrapper),document.body.removeChild(t.domNodes.overlay),t.domNodes.additionalHtml=null,e.dispatchEvent(new Event("closed.simplelightbox")),t.isClosing=!1}),this.currentImage=null,this.isOpen=!1,this.isAnimating=!1,this.controlCoordinates)this.controlCoordinates[o]=0;this.controlCoordinates.mousedown=!1,this.controlCoordinates.zoomed=!1,this.controlCoordinates.capture=!1,this.controlCoordinates.initialScale=this.minMax(1,1,this.options.maxZoom),this.controlCoordinates.doubleTapped=!1}},{key:"preload",value:function(){var o=this,i=this.currentImageIndex,t=this.relatedElements.length,e=i+1<0?t-1:t-1<=i+1?0:i+1,n=i-1<0?t-1:t-1<=i-1?0:i-1,s=new Image,a=new Image;s.addEventListener("load",function(t){var e=t.target.getAttribute("src");-1===o.loadedImages.indexOf(e)&&o.loadedImages.push(e),o.relatedElements[i].dispatchEvent(new Event("nextImageLoaded."+o.eventNamespace))}),s.setAttribute("src",this.relatedElements[e].getAttribute(this.options.sourceAttr)),a.addEventListener("load",function(t){var e=t.target.getAttribute("src");-1===o.loadedImages.indexOf(e)&&o.loadedImages.push(e),o.relatedElements[i].dispatchEvent(new Event("prevImageLoaded."+o.eventNamespace))}),a.setAttribute("src",this.relatedElements[n].getAttribute(this.options.sourceAttr))}},{key:"loadImage",value:function(t){var e=this,o=t;this.options.rtl&&(t=-t),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event("change."+this.eventNamespace)),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event((1===t?"next":"prev")+"."+this.eventNamespace));var i=this.currentImageIndex+t;if(this.isAnimating||(i<0||i>=this.relatedElements.length)&&!1===this.options.loop)return!1;this.currentImageIndex=i<0?this.relatedElements.length-1:i>this.relatedElements.length-1?0:i,this.domNodes.counter.querySelector(".sl-current").innerHTML=this.currentImageIndex+1,this.options.animationSlide&&this.slide(this.options.animationSpeed/1e3,-100*o-this.controlCoordinates.swipeDiff+"px"),this.fadeOut(this.domNodes.image,this.options.fadeSpeed,function(){e.isAnimating=!0,e.isClosing?e.isAnimating=!1:setTimeout(function(){var t=e.relatedElements[e.currentImageIndex];e.currentImage.setAttribute("src",t.getAttribute(e.options.sourceAttr)),-1===e.loadedImages.indexOf(t.getAttribute(e.options.sourceAttr))&&e.show(e.domNodes.spinner),e.domNodes.image.contains(e.domNodes.caption)&&e.domNodes.image.removeChild(e.domNodes.caption),e.adjustImage(o),e.options.preloading&&e.preload()},100)})}},{key:"adjustImage",value:function(a){var r=this;if(!this.currentImage)return!1;var t=new Image,l=window.innerWidth*this.options.widthRatio,d=window.innerHeight*this.options.heightRatio;t.setAttribute("src",this.currentImage.getAttribute("src")),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,this.zoomPanElement(0,0,1),t.addEventListener("error",function(t){r.relatedElements[r.currentImageIndex].dispatchEvent(new Event("error."+r.eventNamespace)),r.isAnimating=!1,r.isOpen=!1,r.domNodes.spinner.style.display="none";var e=1===a||-1===a;if(r.initialImageIndex===r.currentImageIndex&&e)return r.close();r.options.alertError&&alert(r.options.alertErrorMessage),r.loadImage(e?a:1)}),t.addEventListener("load",function(t){void 0!==a&&(r.relatedElements[r.currentImageIndex].dispatchEvent(new Event("changed."+r.eventNamespace)),r.relatedElements[r.currentImageIndex].dispatchEvent(new Event((1===a?"nextDone":"prevDone")+"."+r.eventNamespace))),r.options.history&&r.updateURL(),-1===r.loadedImages.indexOf(r.currentImage.getAttribute("src"))&&r.loadedImages.push(r.currentImage.getAttribute("src"));var e,o,i=t.target.width,n=t.target.height;if(r.options.scaleImageToRatio||l<i||d<n){var s=l/d<i/n?i/l:n/d;i/=s,n/=s}r.domNodes.image.style.top=(window.innerHeight-n)/2+"px",r.domNodes.image.style.left=(window.innerWidth-i-r.globalScrollbarWidth)/2+"px",r.domNodes.image.style.width=i+"px",r.domNodes.image.style.height=n+"px",r.domNodes.spinner.style.display="none",r.options.focus&&r.forceFocus(),r.fadeIn(r.currentImage,r.options.fadeSpeed,function(){r.options.focus&&r.domNodes.wrapper.focus()}),r.isOpen=!0,"string"==typeof r.options.captionSelector?e="self"===r.options.captionSelector?r.relatedElements[r.currentImageIndex]:r.relatedElements[r.currentImageIndex].querySelector(r.options.captionSelector):"function"==typeof r.options.captionSelector&&(e=r.options.captionSelector(r.relatedElements[r.currentImageIndex])),r.options.captions&&e&&(o="data"===r.options.captionType?e.dataset[r.options.captionsData]:"text"===r.options.captionType?e.innerHTML:e.getAttribute(r.options.captionsData)),r.options.loop||(0===r.currentImageIndex&&r.hide(r.domNodes.navigation.querySelector(".sl-prev")),r.currentImageIndex>=r.relatedElements.length-1&&r.hide(r.domNodes.navigation.querySelector(".sl-next")),0<r.currentImageIndex&&r.show(r.domNodes.navigation.querySelector(".sl-prev")),r.currentImageIndex<r.relatedElements.length-1&&r.show(r.domNodes.navigation.querySelector(".sl-next"))),1===r.relatedElements.length?r.hide(r.domNodes.navigation.querySelectorAll(".sl-prev, .sl-next")):r.show(r.domNodes.navigation.querySelectorAll(".sl-prev, .sl-next")),1===a||-1===a?(r.options.animationSlide&&(r.slide(0,100*a+"px"),setTimeout(function(){r.slide(r.options.animationSpeed/1e3,"0px")},50)),r.fadeIn(r.domNodes.image,r.options.fadeSpeed,function(){r.isAnimating=!1,r.setCaption(o,i)})):(r.isAnimating=!1,r.setCaption(o,i)),r.options.additionalHtml&&!r.domNodes.additionalHtml&&(r.domNodes.additionalHtml=document.createElement("div"),r.domNodes.additionalHtml.classList.add("sl-additional-html"),r.domNodes.additionalHtml.innerHTML=r.options.additionalHtml,r.domNodes.image.appendChild(r.domNodes.additionalHtml))})}},{key:"zoomPanElement",value:function(t,e,o){this.currentImage.style[this.transitionPrefix+"transform"]="translate("+t+","+e+") scale("+o+")"}},{key:"minMax",value:function(t,e,o){return t<e?e:o<t?o:t}},{key:"setZoomData",value:function(t,e,o){this.currentImage.dataset.scale=t,this.currentImage.dataset.translateX=e,this.currentImage.dataset.translateY=o}},{key:"hashchangeHandler",value:function(){this.isOpen&&this.hash===this.initialLocationHash&&(this.hashReseted=!0,this.close())}},{key:"addEvents",value:function(){var o=this;this.addEventListener(window,"resize."+this.eventNamespace,function(t){o.isOpen&&o.adjustImage()}),this.addEventListener(this.domNodes.closeButton,["click."+this.eventNamespace,"touchstart."+this.eventNamespace],this.close.bind(this)),this.options.history&&setTimeout(function(){o.addEventListener(window,"hashchange."+o.eventNamespace,function(t){o.isOpen&&o.hashchangeHandler()})},40),this.addEventListener(this.domNodes.navigation.getElementsByTagName("button"),"click."+this.eventNamespace,function(t){if(!t.currentTarget.tagName.match(/button/i))return!0;t.preventDefault(),o.controlCoordinates.swipeDiff=0,o.loadImage(t.currentTarget.classList.contains("sl-next")?1:-1)}),this.addEventListener(this.domNodes.image,["touchstart."+this.eventNamespace,"mousedown."+this.eventNamespace],function(t){if("A"===t.target.tagName&&"touchstart"===t.type)return!0;if(t.preventDefault(),"mousedown"===t.type)o.controlCoordinates.initialPointerOffsetX=t.clientX,o.controlCoordinates.initialPointerOffsetY=t.clientY,o.controlCoordinates.containerHeight=o.getDimensions(o.domNodes.image).height,o.controlCoordinates.containerWidth=o.getDimensions(o.domNodes.image).width,o.controlCoordinates.imgHeight=o.getDimensions(o.currentImage).height,o.controlCoordinates.imgWidth=o.getDimensions(o.currentImage).width,o.controlCoordinates.containerOffsetX=o.domNodes.image.offsetLeft,o.controlCoordinates.containerOffsetY=o.domNodes.image.offsetTop,o.controlCoordinates.initialOffsetX=parseFloat(o.currentImage.dataset.translateX),o.controlCoordinates.initialOffsetY=parseFloat(o.currentImage.dataset.translateY),o.controlCoordinates.capture=!0;else{if(o.controlCoordinates.touchCount=t.touches.length,o.controlCoordinates.initialPointerOffsetX=t.touches[0].clientX,o.controlCoordinates.initialPointerOffsetY=t.touches[0].clientY,o.controlCoordinates.containerHeight=o.getDimensions(o.domNodes.image).height,o.controlCoordinates.containerWidth=o.getDimensions(o.domNodes.image).width,o.controlCoordinates.imgHeight=o.getDimensions(o.currentImage).height,o.controlCoordinates.imgWidth=o.getDimensions(o.currentImage).width,o.controlCoordinates.containerOffsetX=o.domNodes.image.offsetLeft,o.controlCoordinates.containerOffsetY=o.domNodes.image.offsetTop,1===o.controlCoordinates.touchCount){if(o.controlCoordinates.doubleTapped)return o.currentImage.classList.add("sl-transition"),o.controlCoordinates.zoomed?(o.controlCoordinates.initialScale=1,o.setZoomData(o.controlCoordinates.initialScale,0,0),o.zoomPanElement("0px","0px",o.controlCoordinates.initialScale),o.controlCoordinates.zoomed=!1):(o.controlCoordinates.initialScale=o.options.doubleTapZoom,o.setZoomData(o.controlCoordinates.initialScale,0,0),o.zoomPanElement("0px","0px",o.controlCoordinates.initialScale),o.domNodes.caption.style.opacity||"none"===o.domNodes.caption.style.display||o.fadeOut(o.domNodes.caption,o.options.fadeSpeed),o.controlCoordinates.zoomed=!0),setTimeout(function(){o.currentImage&&o.currentImage.classList.remove("sl-transition")},200),!1;o.controlCoordinates.doubleTapped=!0,setTimeout(function(){o.controlCoordinates.doubleTapped=!1},300),o.controlCoordinates.initialOffsetX=parseFloat(o.currentImage.dataset.translateX),o.controlCoordinates.initialOffsetY=parseFloat(o.currentImage.dataset.translateY)}else 2===o.controlCoordinates.touchCount&&(o.controlCoordinates.initialPointerOffsetX2=t.touches[1].clientX,o.controlCoordinates.initialPointerOffsetY2=t.touches[1].clientY,o.controlCoordinates.initialOffsetX=parseFloat(o.currentImage.dataset.translateX),o.controlCoordinates.initialOffsetY=parseFloat(o.currentImage.dataset.translateY),o.controlCoordinates.pinchOffsetX=(o.controlCoordinates.initialPointerOffsetX+o.controlCoordinates.initialPointerOffsetX2)/2,o.controlCoordinates.pinchOffsetY=(o.controlCoordinates.initialPointerOffsetY+o.controlCoordinates.initialPointerOffsetY2)/2,o.controlCoordinates.initialPinchDistance=Math.sqrt((o.controlCoordinates.initialPointerOffsetX-o.controlCoordinates.initialPointerOffsetX2)*(o.controlCoordinates.initialPointerOffsetX-o.controlCoordinates.initialPointerOffsetX2)+(o.controlCoordinates.initialPointerOffsetY-o.controlCoordinates.initialPointerOffsetY2)*(o.controlCoordinates.initialPointerOffsetY-o.controlCoordinates.initialPointerOffsetY2)));o.controlCoordinates.capture=!0}return!!o.controlCoordinates.mousedown||(o.transitionCapable&&(o.controlCoordinates.imageLeft=parseInt(o.domNodes.image.style.left,10)),o.controlCoordinates.mousedown=!0,o.controlCoordinates.swipeDiff=0,o.controlCoordinates.swipeYDiff=0,o.controlCoordinates.swipeStart=t.pageX||t.touches[0].pageX,o.controlCoordinates.swipeYStart=t.pageY||t.touches[0].pageY,!1)}),this.addEventListener(this.domNodes.image,["touchmove."+this.eventNamespace,"mousemove."+this.eventNamespace,"MSPointerMove"],function(t){if(!o.controlCoordinates.mousedown)return!0;if(t.preventDefault(),"touchmove"===t.type){if(!1===o.controlCoordinates.capture)return!1;o.controlCoordinates.pointerOffsetX=t.touches[0].clientX,o.controlCoordinates.pointerOffsetY=t.touches[0].clientY,o.controlCoordinates.touchCount=t.touches.length,o.controlCoordinates.touchmoveCount++,1<o.controlCoordinates.touchCount?(o.controlCoordinates.pointerOffsetX2=t.touches[1].clientX,o.controlCoordinates.pointerOffsetY2=t.touches[1].clientY,o.controlCoordinates.targetPinchDistance=Math.sqrt((o.controlCoordinates.pointerOffsetX-o.controlCoordinates.pointerOffsetX2)*(o.controlCoordinates.pointerOffsetX-o.controlCoordinates.pointerOffsetX2)+(o.controlCoordinates.pointerOffsetY-o.controlCoordinates.pointerOffsetY2)*(o.controlCoordinates.pointerOffsetY-o.controlCoordinates.pointerOffsetY2)),null===o.controlCoordinates.initialPinchDistance&&(o.controlCoordinates.initialPinchDistance=o.controlCoordinates.targetPinchDistance),1<=Math.abs(o.controlCoordinates.initialPinchDistance-o.controlCoordinates.targetPinchDistance)&&(o.controlCoordinates.targetScale=o.minMax(o.controlCoordinates.targetPinchDistance/o.controlCoordinates.initialPinchDistance*o.controlCoordinates.initialScale,1,o.options.maxZoom),o.controlCoordinates.limitOffsetX=(o.controlCoordinates.imgWidth*o.controlCoordinates.targetScale-o.controlCoordinates.containerWidth)/2,o.controlCoordinates.limitOffsetY=(o.controlCoordinates.imgHeight*o.controlCoordinates.targetScale-o.controlCoordinates.containerHeight)/2,o.controlCoordinates.scaleDifference=o.controlCoordinates.targetScale-o.controlCoordinates.initialScale,o.controlCoordinates.targetOffsetX=o.controlCoordinates.imgWidth*o.controlCoordinates.targetScale<=o.controlCoordinates.containerWidth?0:o.minMax(o.controlCoordinates.initialOffsetX-(o.controlCoordinates.pinchOffsetX-o.controlCoordinates.containerOffsetX-o.controlCoordinates.containerWidth/2-o.controlCoordinates.initialOffsetX)/(o.controlCoordinates.targetScale-o.controlCoordinates.scaleDifference)*o.controlCoordinates.scaleDifference,-1*o.controlCoordinates.limitOffsetX,o.controlCoordinates.limitOffsetX),o.controlCoordinates.targetOffsetY=o.controlCoordinates.imgHeight*o.controlCoordinates.targetScale<=o.controlCoordinates.containerHeight?0:o.minMax(o.controlCoordinates.initialOffsetY-(o.controlCoordinates.pinchOffsetY-o.controlCoordinates.containerOffsetY-o.controlCoordinates.containerHeight/2-o.controlCoordinates.initialOffsetY)/(o.controlCoordinates.targetScale-o.controlCoordinates.scaleDifference)*o.controlCoordinates.scaleDifference,-1*o.controlCoordinates.limitOffsetY,o.controlCoordinates.limitOffsetY),o.zoomPanElement(o.controlCoordinates.targetOffsetX+"px",o.controlCoordinates.targetOffsetY+"px",o.controlCoordinates.targetScale),1<o.controlCoordinates.targetScale&&(o.controlCoordinates.zoomed=!0,o.domNodes.caption.style.opacity||"none"===o.domNodes.caption.style.display||o.fadeOut(o.domNodes.caption,o.options.fadeSpeed)),o.controlCoordinates.initialPinchDistance=o.controlCoordinates.targetPinchDistance,o.controlCoordinates.initialScale=o.controlCoordinates.targetScale,o.controlCoordinates.initialOffsetX=o.controlCoordinates.targetOffsetX,o.controlCoordinates.initialOffsetY=o.controlCoordinates.targetOffsetY)):(o.controlCoordinates.targetScale=o.controlCoordinates.initialScale,o.controlCoordinates.limitOffsetX=(o.controlCoordinates.imgWidth*o.controlCoordinates.targetScale-o.controlCoordinates.containerWidth)/2,o.controlCoordinates.limitOffsetY=(o.controlCoordinates.imgHeight*o.controlCoordinates.targetScale-o.controlCoordinates.containerHeight)/2,o.controlCoordinates.targetOffsetX=o.controlCoordinates.imgWidth*o.controlCoordinates.targetScale<=o.controlCoordinates.containerWidth?0:o.minMax(o.controlCoordinates.pointerOffsetX-(o.controlCoordinates.initialPointerOffsetX-o.controlCoordinates.initialOffsetX),-1*o.controlCoordinates.limitOffsetX,o.controlCoordinates.limitOffsetX),o.controlCoordinates.targetOffsetY=o.controlCoordinates.imgHeight*o.controlCoordinates.targetScale<=o.controlCoordinates.containerHeight?0:o.minMax(o.controlCoordinates.pointerOffsetY-(o.controlCoordinates.initialPointerOffsetY-o.controlCoordinates.initialOffsetY),-1*o.controlCoordinates.limitOffsetY,o.controlCoordinates.limitOffsetY),Math.abs(o.controlCoordinates.targetOffsetX)===Math.abs(o.controlCoordinates.limitOffsetX)&&(o.controlCoordinates.initialOffsetX=o.controlCoordinates.targetOffsetX,o.controlCoordinates.initialPointerOffsetX=o.controlCoordinates.pointerOffsetX),Math.abs(o.controlCoordinates.targetOffsetY)===Math.abs(o.controlCoordinates.limitOffsetY)&&(o.controlCoordinates.initialOffsetY=o.controlCoordinates.targetOffsetY,o.controlCoordinates.initialPointerOffsetY=o.controlCoordinates.pointerOffsetY),o.setZoomData(o.controlCoordinates.initialScale,o.controlCoordinates.targetOffsetX,o.controlCoordinates.targetOffsetY),o.zoomPanElement(o.controlCoordinates.targetOffsetX+"px",o.controlCoordinates.targetOffsetY+"px",o.controlCoordinates.targetScale))}if("mousemove"===t.type&&o.controlCoordinates.mousedown){if("touchmove"==t.type)return!0;if(!1===o.controlCoordinates.capture)return!1;o.controlCoordinates.pointerOffsetX=t.clientX,o.controlCoordinates.pointerOffsetY=t.clientY,o.controlCoordinates.targetScale=o.controlCoordinates.initialScale,o.controlCoordinates.limitOffsetX=(o.controlCoordinates.imgWidth*o.controlCoordinates.targetScale-o.controlCoordinates.containerWidth)/2,o.controlCoordinates.limitOffsetY=(o.controlCoordinates.imgHeight*o.controlCoordinates.targetScale-o.controlCoordinates.containerHeight)/2,o.controlCoordinates.targetOffsetX=o.controlCoordinates.imgWidth*o.controlCoordinates.targetScale<=o.controlCoordinates.containerWidth?0:o.minMax(o.controlCoordinates.pointerOffsetX-(o.controlCoordinates.initialPointerOffsetX-o.controlCoordinates.initialOffsetX),-1*o.controlCoordinates.limitOffsetX,o.controlCoordinates.limitOffsetX),o.controlCoordinates.targetOffsetY=o.controlCoordinates.imgHeight*o.controlCoordinates.targetScale<=o.controlCoordinates.containerHeight?0:o.minMax(o.controlCoordinates.pointerOffsetY-(o.controlCoordinates.initialPointerOffsetY-o.controlCoordinates.initialOffsetY),-1*o.controlCoordinates.limitOffsetY,o.controlCoordinates.limitOffsetY),Math.abs(o.controlCoordinates.targetOffsetX)===Math.abs(o.controlCoordinates.limitOffsetX)&&(o.controlCoordinates.initialOffsetX=o.controlCoordinates.targetOffsetX,o.controlCoordinates.initialPointerOffsetX=o.controlCoordinates.pointerOffsetX),Math.abs(o.controlCoordinates.targetOffsetY)===Math.abs(o.controlCoordinates.limitOffsetY)&&(o.controlCoordinates.initialOffsetY=o.controlCoordinates.targetOffsetY,o.controlCoordinates.initialPointerOffsetY=o.controlCoordinates.pointerOffsetY),o.setZoomData(o.controlCoordinates.initialScale,o.controlCoordinates.targetOffsetX,o.controlCoordinates.targetOffsetY),o.zoomPanElement(o.controlCoordinates.targetOffsetX+"px",o.controlCoordinates.targetOffsetY+"px",o.controlCoordinates.targetScale)}o.controlCoordinates.zoomed||(o.controlCoordinates.swipeEnd=t.pageX||t.touches[0].pageX,o.controlCoordinates.swipeYEnd=t.pageY||t.touches[0].pageY,o.controlCoordinates.swipeDiff=o.controlCoordinates.swipeStart-o.controlCoordinates.swipeEnd,o.controlCoordinates.swipeYDiff=o.controlCoordinates.swipeYStart-o.controlCoordinates.swipeYEnd,o.options.animationSlide&&o.slide(0,-o.controlCoordinates.swipeDiff+"px"))}),this.addEventListener(this.domNodes.image,["touchend."+this.eventNamespace,"mouseup."+this.eventNamespace,"touchcancel."+this.eventNamespace,"mouseleave."+this.eventNamespace,"pointerup","pointercancel","MSPointerUp","MSPointerCancel"],function(t){if(o.isTouchDevice&&"touchend"===t.type&&(o.controlCoordinates.touchCount=t.touches.length,0===o.controlCoordinates.touchCount?(o.currentImage&&o.setZoomData(o.controlCoordinates.initialScale,o.controlCoordinates.targetOffsetX,o.controlCoordinates.targetOffsetY),1===o.controlCoordinates.initialScale&&(o.controlCoordinates.zoomed=!1,"none"===o.domNodes.caption.style.display&&o.fadeIn(o.domNodes.caption,o.options.fadeSpeed)),o.controlCoordinates.initialPinchDistance=null,o.controlCoordinates.capture=!1):1===o.controlCoordinates.touchCount?(o.controlCoordinates.initialPointerOffsetX=t.touches[0].clientX,o.controlCoordinates.initialPointerOffsetY=t.touches[0].clientY):1<o.controlCoordinates.touchCount&&(o.controlCoordinates.initialPinchDistance=null)),o.controlCoordinates.mousedown){var e=!(o.controlCoordinates.mousedown=!1);o.options.loop||(0===o.currentImageIndex&&o.controlCoordinates.swipeDiff<0&&(e=!1),o.currentImageIndex>=o.relatedElements.length-1&&0<o.controlCoordinates.swipeDiff&&(e=!1)),Math.abs(o.controlCoordinates.swipeDiff)>o.options.swipeTolerance&&e?o.loadImage(0<o.controlCoordinates.swipeDiff?1:-1):o.options.animationSlide&&o.slide(o.options.animationSpeed/1e3,"0px"),o.options.swipeClose&&50<Math.abs(o.controlCoordinates.swipeYDiff)&&Math.abs(o.controlCoordinates.swipeDiff)<o.options.swipeTolerance&&o.close()}}),this.addEventListener(this.domNodes.image,["dblclick"],function(t){if(!o.isTouchDevice)return o.controlCoordinates.initialPointerOffsetX=t.clientX,o.controlCoordinates.initialPointerOffsetY=t.clientY,o.controlCoordinates.containerHeight=o.getDimensions(o.domNodes.image).height,o.controlCoordinates.containerWidth=o.getDimensions(o.domNodes.image).width,o.controlCoordinates.imgHeight=o.getDimensions(o.currentImage).height,o.controlCoordinates.imgWidth=o.getDimensions(o.currentImage).width,o.controlCoordinates.containerOffsetX=o.domNodes.image.offsetLeft,o.controlCoordinates.containerOffsetY=o.domNodes.image.offsetTop,o.currentImage.classList.add("sl-transition"),o.controlCoordinates.zoomed?(o.controlCoordinates.initialScale=1,o.setZoomData(o.controlCoordinates.initialScale,0,0),o.zoomPanElement("0px","0px",o.controlCoordinates.initialScale),o.controlCoordinates.zoomed=!1,"none"===o.domNodes.caption.style.display&&o.fadeIn(o.domNodes.caption,o.options.fadeSpeed)):(o.controlCoordinates.initialScale=o.options.doubleTapZoom,o.setZoomData(o.controlCoordinates.initialScale,0,0),o.zoomPanElement("0px","0px",o.controlCoordinates.initialScale),o.domNodes.caption.style.opacity||"none"===o.domNodes.caption.style.display||o.fadeOut(o.domNodes.caption,o.options.fadeSpeed),o.controlCoordinates.zoomed=!0),setTimeout(function(){o.currentImage&&o.currentImage.classList.remove("sl-transition")},200),!(o.controlCoordinates.capture=!0)})}},{key:"getDimensions",value:function(t){var e=window.getComputedStyle(t),o=t.offsetHeight,i=t.offsetWidth,n=parseFloat(e.borderTopWidth);return{height:o-parseFloat(e.borderBottomWidth)-n-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom),width:i-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)}}},{key:"updateHash",value:function(){var t="pid="+(this.currentImageIndex+1),e=window.location.href.split("#")[0]+"#"+t;this.hashReseted=!1,this.pushStateSupport?window.history[this.historyHasChanges?"replaceState":"pushState"]("",document.title,e):this.historyHasChanges?window.location.replace(e):window.location.hash=t,this.historyHasChanges||(this.urlChangedOnce=!0),this.historyHasChanges=!0}},{key:"resetHash",value:function(){this.hashReseted=!0,this.urlChangedOnce?history.back():this.pushStateSupport?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.hash="",clearTimeout(this.historyUpdateTimeout)}},{key:"updateURL",value:function(){clearTimeout(this.historyUpdateTimeout),this.historyHasChanges?this.historyUpdateTimeout=setTimeout(this.updateHash.bind(this),800):this.updateHash()}},{key:"setCaption",value:function(t,e){var o=this;this.options.captions&&t&&""!==t&&void 0!==t&&(this.hide(this.domNodes.caption),this.domNodes.caption.style.width=e+"px",this.domNodes.caption.innerHTML=t,this.domNodes.image.appendChild(this.domNodes.caption),setTimeout(function(){o.fadeIn(o.domNodes.caption,o.options.fadeSpeed)},this.options.captionDelay))}},{key:"slide",value:function(t,e){if(!this.transitionCapable)return this.domNodes.image.style.left=e;this.domNodes.image.style[this.transitionPrefix+"transform"]="translateX("+e+")",this.domNodes.image.style[this.transitionPrefix+"transition"]=this.transitionPrefix+"transform "+t+"s linear"}},{key:"getRelated",value:function(e){return e&&!1!==e&&"nofollow"!==e?Array.from(this.elements).filter(function(t){return t.getAttribute("rel")===e}):this.elements}},{key:"openImage",value:function(t){var e=this;t.dispatchEvent(new Event("show."+this.eventNamespace)),this.options.disableScroll&&(this.globalScrollbarWidth=this.toggleScrollbar("hide")),this.options.htmlClass&&""!==this.options.htmlClass&&document.querySelector("html").classList.add(this.options.htmlClass),document.body.appendChild(this.domNodes.wrapper),this.domNodes.wrapper.appendChild(this.domNodes.image),this.options.overlay&&document.body.appendChild(this.domNodes.overlay),this.relatedElements=this.getRelated(t.rel),this.options.showCounter&&(1==this.relatedElements.length&&this.domNodes.wrapper.contains(this.domNodes.counter)?this.domNodes.wrapper.removeChild(this.domNodes.counter):1<this.relatedElements.length&&!this.domNodes.wrapper.contains(this.domNodes.counter)&&this.domNodes.wrapper.appendChild(this.domNodes.counter)),this.isAnimating=!0,this.currentImageIndex=this.relatedElements.indexOf(t);var o=t.getAttribute(this.options.sourceAttr);this.currentImage=document.createElement("img"),this.currentImage.style.display="none",this.currentImage.setAttribute("src",o),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,-1===this.loadedImages.indexOf(o)&&this.loadedImages.push(o),this.domNodes.image.innerHTML="",this.domNodes.image.setAttribute("style",""),this.domNodes.image.appendChild(this.currentImage),this.fadeIn(this.domNodes.overlay,this.options.fadeSpeed),this.fadeIn([this.domNodes.counter,this.domNodes.navigation,this.domNodes.closeButton],this.options.fadeSpeed),this.show(this.domNodes.spinner),this.domNodes.counter.querySelector(".sl-current").innerHTML=this.currentImageIndex+1,this.domNodes.counter.querySelector(".sl-total").innerHTML=this.relatedElements.length,this.adjustImage(),this.options.preloading&&this.preload(),setTimeout(function(){t.dispatchEvent(new Event("shown."+e.eventNamespace))},this.options.animationSpeed)}},{key:"forceFocus",value:function(){var e=this;this.removeEventListener(document,"focusin."+this.eventNamespace),this.addEventListener(document,"focusin."+this.eventNamespace,function(t){document===t.target||e.domNodes.wrapper===t.target||e.domNodes.wrapper.contains(t.target)||e.domNodes.wrapper.focus()})}},{key:"addEventListener",value:function(t,e,o,i){t=this.wrap(t),e=this.wrap(e);var n,s=h(t);try{for(s.s();!(n=s.n()).done;){var a=n.value;a.namespaces||(a.namespaces={});var r,l=h(e);try{for(l.s();!(r=l.n()).done;){var d=r.value,c=i||!1;a.namespaces[d]=o,a.addEventListener(d.split(".")[0],o,c)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){s.e(t)}finally{s.f()}}},{key:"removeEventListener",value:function(t,e){t=this.wrap(t),e=this.wrap(e);var o,i=h(t);try{for(i.s();!(o=i.n()).done;){var n,s=o.value,a=h(e);try{for(a.s();!(n=a.n()).done;){var r=n.value;s.namespaces&&s.namespaces[r]&&(s.removeEventListener(r.split(".")[0],s.namespaces[r]),delete s.namespaces[r])}}catch(t){a.e(t)}finally{a.f()}}}catch(t){i.e(t)}finally{i.f()}}},{key:"fadeOut",value:function(r,t,l){var e,d=this,o=h(r=this.wrap(r));try{for(o.s();!(e=o.n()).done;)e.value.style.opacity=1}catch(t){o.e(t)}finally{o.f()}this.isFadeIn=!1;var c=16.66666/(t||this.options.fadeSpeed);!function t(){var e=parseFloat(r[0].style.opacity);if((e-=c)<0){var o,i=h(r);try{for(i.s();!(o=i.n()).done;){var n=o.value;n.style.display="none",n.style.opacity=""}}catch(t){i.e(t)}finally{i.f()}l&&l.call(d,r)}else{var s,a=h(r);try{for(a.s();!(s=a.n()).done;)s.value.style.opacity=e}catch(t){a.e(t)}finally{a.f()}requestAnimationFrame(t)}}()}},{key:"fadeIn",value:function(a,t,r,e){var o,l=this,i=h(a=this.wrap(a));try{for(i.s();!(o=i.n()).done;){var n=o.value;n.style.opacity=0,n.style.display=e||"block"}}catch(t){i.e(t)}finally{i.f()}this.isFadeIn=!0;var d=parseFloat(a[0].dataset.opacityTarget||1),c=16.66666*d/(t||this.options.fadeSpeed);!function t(){var e=parseFloat(a[0].style.opacity);if((e+=c)>d){var o,i=h(a);try{for(i.s();!(o=i.n()).done;)o.value.style.opacity=""}catch(t){i.e(t)}finally{i.f()}r&&r.call(l,a)}else{var n,s=h(a);try{for(s.s();!(n=s.n()).done;)n.value.style.opacity=e}catch(t){s.e(t)}finally{s.f()}if(!l.isFadeIn)return;requestAnimationFrame(t)}}()}},{key:"hide",value:function(t){var e,o=h(t=this.wrap(t));try{for(o.s();!(e=o.n()).done;){var i=e.value;i.dataset.initialDisplay=i.style.display,i.style.display="none"}}catch(t){o.e(t)}finally{o.f()}}},{key:"show",value:function(t,e){var o,i=h(t=this.wrap(t));try{for(i.s();!(o=i.n()).done;){var n=o.value;n.style.display=n.dataset.initialDisplay||e||"block"}}catch(t){i.e(t)}finally{i.f()}}},{key:"wrap",value:function(t){return"function"==typeof t[Symbol.iterator]&&"string"!=typeof t?t:[t]}},{key:"on",value:function(t,e){t=this.wrap(t);var o,i=h(this.elements);try{for(i.s();!(o=i.n()).done;){var n=o.value;n.fullyNamespacedEvents||(n.fullyNamespacedEvents={});var s,a=h(t);try{for(a.s();!(s=a.n()).done;){var r=s.value;n.fullyNamespacedEvents[r]=e,n.addEventListener(r,e)}}catch(t){a.e(t)}finally{a.f()}}}catch(t){i.e(t)}finally{i.f()}return this}},{key:"off",value:function(t){t=this.wrap(t);var e,o=h(this.elements);try{for(o.s();!(e=o.n()).done;){var i,n=e.value,s=h(t);try{for(s.s();!(i=s.n()).done;){var a=i.value;void 0!==n.fullyNamespacedEvents&&a in n.fullyNamespacedEvents&&n.removeEventListener(a,n.fullyNamespacedEvents[a])}}catch(t){s.e(t)}finally{s.f()}}}catch(t){o.e(t)}finally{o.f()}return this}},{key:"open",value:function(t){t=t||this.elements[0],"undefined"!=typeof jQuery&&t instanceof jQuery&&(t=t.get(0)),this.initialImageIndex=this.elements.indexOf(t),-1<this.initialImageIndex&&this.openImage(t)}},{key:"next",value:function(){this.loadImage(1)}},{key:"prev",value:function(){this.loadImage(-1)}},{key:"destroy",value:function(){this.off(["close."+this.eventNamespace,"closed."+this.eventNamespace,"nextImageLoaded."+this.eventNamespace,"prevImageLoaded."+this.eventNamespace,"change."+this.eventNamespace,"nextDone."+this.eventNamespace,"prevDone."+this.eventNamespace,"error."+this.eventNamespace,"changed."+this.eventNamespace,"next."+this.eventNamespace,"prev."+this.eventNamespace,"show."+this.eventNamespace,"shown."+this.eventNamespace]),this.removeEventListener(this.elements,"click."+this.eventNamespace),this.removeEventListener(document,"focusin."+this.eventNamespace),this.removeEventListener(document.body,"contextmenu."+this.eventNamespace),this.removeEventListener(document.body,"keyup."+this.eventNamespace),this.removeEventListener(this.domNodes.navigation.getElementsByTagName("button"),"click."+this.eventNamespace),this.removeEventListener(this.domNodes.closeButton,"click."+this.eventNamespace),this.removeEventListener(window,"resize."+this.eventNamespace),this.removeEventListener(window,"hashchange."+this.eventNamespace),this.close(),this.isOpen&&(document.body.removeChild(this.domNodes.wrapper),document.body.removeChild(this.domNodes.overlay)),this.elements=null}},{key:"refresh",value:function(){if(!this.initialSelector)throw"refreshing only works when you initialize using a selector!";var t=this.options,e=this.initialSelector;return this.destroy(),this.constructor(e,t),this}},{key:"hash",get:function(){return window.location.hash.substring(1)}}]),s),o=e;function s(t,e){var o=this;if(function(t){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}(this),n(this,"defaultOptions",{sourceAttr:"href",overlay:!0,spinner:!0,nav:!0,navText:["&lsaquo;","&rsaquo;"],captions:!0,captionDelay:0,captionSelector:"img",captionType:"attr",captionsData:"title",captionPosition:"bottom",captionClass:"",close:!0,closeText:"&times;",swipeClose:!0,showCounter:!0,fileExt:"png|jpg|jpeg|gif|webp",animationSlide:!0,animationSpeed:250,preloading:!0,enableKeyboard:!0,loop:!0,rel:!1,docClose:!0,swipeTolerance:50,className:"simple-lightbox",widthRatio:.8,heightRatio:.9,scaleImageToRatio:!1,disableRightClick:!1,disableScroll:!0,alertError:!0,alertErrorMessage:"Image not found, next image will be loaded",additionalHtml:!1,history:!0,throttleInterval:0,doubleTapZoom:2,maxZoom:10,htmlClass:"has-lightbox",rtl:!1,fixedClass:"sl-fixed",fadeSpeed:300,uniqueImages:!0,focus:!0}),n(this,"transitionPrefix",void 0),n(this,"transitionCapable",!1),n(this,"isTouchDevice","ontouchstart"in window),n(this,"initialLocationHash",void 0),n(this,"pushStateSupport","pushState"in history),n(this,"isOpen",!1),n(this,"isAnimating",!1),n(this,"isClosing",!1),n(this,"isFadeIn",!1),n(this,"urlChangedOnce",!1),n(this,"hashReseted",!1),n(this,"historyHasChanges",!1),n(this,"historyUpdateTimeout",null),n(this,"currentImage",void 0),n(this,"eventNamespace","simplelightbox"),n(this,"domNodes",{}),n(this,"loadedImages",[]),n(this,"initialImageIndex",0),n(this,"currentImageIndex",0),n(this,"initialSelector",null),n(this,"globalScrollbarWidth",0),n(this,"controlCoordinates",{swipeDiff:0,swipeYDiff:0,swipeStart:0,swipeEnd:0,swipeYStart:0,swipeYEnd:0,mousedown:!1,imageLeft:0,zoomed:!1,containerHeight:0,containerWidth:0,containerOffsetX:0,containerOffsetY:0,imgHeight:0,imgWidth:0,capture:!1,initialOffsetX:0,initialOffsetY:0,initialPointerOffsetX:0,initialPointerOffsetY:0,initialPointerOffsetX2:0,initialPointerOffsetY2:0,initialScale:1,initialPinchDistance:0,pointerOffsetX:0,pointerOffsetY:0,pointerOffsetX2:0,pointerOffsetY2:0,targetOffsetX:0,targetOffsetY:0,targetScale:0,pinchOffsetX:0,pinchOffsetY:0,limitOffsetX:0,limitOffsetY:0,scaleDifference:0,targetPinchDistance:0,touchCount:0,doubleTapped:!1,touchmoveCount:0}),this.options=Object.assign(this.defaultOptions,e),"string"==typeof t?(this.initialSelector=t,this.elements=Array.from(document.querySelectorAll(t))):this.elements=void 0!==t.length&&0<t.length?Array.from(t):[t],this.relatedElements=[],this.transitionPrefix=this.calculateTransitionPrefix(),this.transitionCapable=!1!==this.transitionPrefix,this.initialLocationHash=this.hash,this.options.rel&&(this.elements=this.getRelated(this.options.rel)),this.options.uniqueImages){var i=[];this.elements=Array.from(this.elements).filter(function(t){var e=t.getAttribute(o.options.sourceAttr);return-1===i.indexOf(e)&&(i.push(e),!0)})}this.createDomNodes(),this.options.close&&this.domNodes.wrapper.appendChild(this.domNodes.closeButton),this.options.nav&&this.domNodes.wrapper.appendChild(this.domNodes.navigation),this.options.spinner&&this.domNodes.wrapper.appendChild(this.domNodes.spinner),this.addEventListener(this.elements,"click."+this.eventNamespace,function(t){if(o.isValidLink(t.currentTarget)){if(t.preventDefault(),o.isAnimating)return!1;o.initialImageIndex=o.elements.indexOf(t.currentTarget),o.openImage(t.currentTarget)}}),this.options.docClose&&this.addEventListener(this.domNodes.wrapper,["click."+this.eventNamespace,"touchstart."+this.eventNamespace],function(t){o.isOpen&&t.target===t.currentTarget&&o.close()}),this.options.disableRightClick&&this.addEventListener(document.body,"contextmenu."+this.eventNamespace,function(t){t.target.classList.contains("sl-overlay")&&t.preventDefault()}),this.options.enableKeyboard&&this.addEventListener(document.body,"keyup."+this.eventNamespace,this.throttle(function(t){if(o.controlCoordinates.swipeDiff=0,o.isAnimating&&"Escape"===t.key)return o.currentImage.setAttribute("src",""),o.isAnimating=!1,o.close();o.isOpen&&(t.preventDefault(),"Escape"===t.key&&o.close(),!o.isAnimating&&-1<["ArrowLeft","ArrowRight"].indexOf(t.key)&&o.loadImage("ArrowRight"===t.key?1:-1))},this.options.throttleInterval)),this.addEvents()}a.default=o,i.SimpleLightbox=e}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _createSuper(n){var o=_isNativeReflectConstruct();return function(){var t,e=_getPrototypeOf(n);if(o){var r=_getPrototypeOf(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return _possibleConstructorReturn(this,t)}}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),t}!function(){var s=function(){function e(t){return _classCallCheck(this,e),this.parent=t,this.element=null,this.progress=null,this.autoPlay="number"==typeof t.options.autoPlay?t.options.autoPlay:3e3,this.attributeMap={transform:"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform",transition:"string"==typeof document.documentElement.style.transition?"transition":"WebkitTransition",transitionDuration:"string"==typeof document.documentElement.style.transitionDuration?"transitionDuration":"WebkitTransitionDuration",transitionDelay:"string"==typeof document.documentElement.style.transitionDelay?"transitionDelay":"WebkitTransitionDelay"},this.forward=this.forward.bind(this),this.stop=this.stop.bind(this),this.pause=this.pause.bind(this),this.play=this.play.bind(this),this}return _createClass(e,[{key:"create",value:function(){if(!this.element||!this.progress){var t=this.parent,e=t.options&&t.options.progressBarSelector?document.querySelector(t.options.progressBarSelector):t.element.insertBefore(document.createElement("div"),this.parent.element.firstElementChild);e.classList.add("flickity-progress");var r=document.createElement("div");r.className="flickity-progress-state",e.appendChild(r),this.element=e,this.progress=r}return this}},{key:"destroy",value:function(){var t=this.element;return t&&(hfh.GeneralUtility.removeChilds(t).parentNode.removeChild(t),this.element=null,this.progress=null),this}},{key:"animateProgress",value:function(e,r){var n=this,o=this.progress;return o&&(e&&Object.keys(e).forEach(function(t){o.style[n.attributeMap[t]||t]=e[t]}),e&&r&&o.offsetHeight,r&&Object.keys(r).forEach(function(t){o.style[n.attributeMap[t]||t]=r[t]})),this}},{key:"handleNextAction",value:function(t,e){this.nextAction&&(clearTimeout(this.nextAction),this.nextAction=null),t&&"function"==typeof e&&(this.nextAction=setTimeout(e,t))}},{key:"forward",value:function(){return this.handleNextAction(),this.animateProgress({transition:"all 350ms linear",transform:"translateX(100%)"})}},{key:"stop",value:function(){return this.handleNextAction(),this.animateProgress({transition:"all 350ms linear",transform:"translateX(-101%)"})}},{key:"pause",value:function(){return this.handleNextAction(),this.animateProgress({transition:"all 3600s linear",transform:"translateX(-100%)"})}},{key:"play",value:function(){var t=this.autoPlay;return this.handleNextAction(t,this.forward),this.animateProgress({transition:"none",transform:"translateX(-100%)"},{transition:"all "+t+"ms linear",transform:"translateX(0%)"})}}]),e}(),t=function(){_inherits(a,Flickity);var i=_createSuper(a);function a(t,e){var r;_classCallCheck(this,a);var n=_toConsumableArray((r=i.call(this,t,e)).slider.getElementsByTagName("a"));if(r.on("dragStart",function(){return n.forEach(function(t){return t.style.pointerEvents="none"})}),r.on("dragEnd",function(){return setTimeout(function(){return n.forEach(function(t){return t.style.pointerEvents="auto"})})},200),e.autoPlay){var o=new s(_assertThisInitialized(r));r.isActive&&o.create().play(),r.on("activate",function(){o.create().play()}),r.on("deactivate",function(){o.stop().destroy()}),r.on("dragStart",function(){r.stopPlayer(),o.pause()}),r.on("dragEnd",function(){o.stop()}),r.on("select",function(){r.stopPlayer(),r.playPlayer()}),r.on("settle",function(){r.stopPlayer(),r.playPlayer(),o.play()}),r.progress=o}return a.list.push(_assertThisInitialized(r)),r}return a}();t.defaults.cellAlign="left",t.defaults.wrapAround=!0,t.defaults.percentPosition=!0,t.defaults.contain=!0,t.defaults.imagesLoaded=!1,t.defaults.prevNextButtons=!1,t.defaults.pageDots=!1,t.defaults.pauseAutoPlayOnHover=!1,t.destroyList=function(){t.list.forEach(function(t){t&&t.destroy()}),t.list.length=0},t.list=[],document.addEventListener("page:ajax:loading",t.destroyList),window.hfh=window.hfh||{},window.hfh.Slider=t}();
"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(){function r(){var e=document.getElementById(t);return e||((e=document.createElement("a")).className="js-overlay-background",e.id=t,e.href="javascript:void(0)",e.addEventListener("click",n.closeAll),document.body.appendChild(e)),e}var s={},t=hfh.GeneralUtility.randomString("background"),n=function(){function a(e,t,n){return _classCallCheck(this,a),this.id=e,this.link=t,this.overlay=null,this.opened=!1,this.content=null,this.contentParent=null,this.init(n)}return _createClass(a,[{key:"transformOverlay",value:function(e,t,n,i){var l=e.getBoundingClientRect(),o=t.getBoundingClientRect();hfh.GeneralUtility.Styles.animate(r(),{top:l.top+"px",right:window.innerWidth-l.left-e.offsetWidth+"px",bottom:window.innerHeight-l.top-e.offsetHeight+"px",left:l.left+"px",borderRadius:getComputedStyle(e).getPropertyValue("border-radius"),width:"auto",height:"auto",transitionTimingFunction:"ease-in"},{top:o.top+"px",right:window.innerWidth-o.left-t.offsetWidth+"px",bottom:window.innerHeight-o.top-t.offsetHeight+"px",left:o.left+"px",borderRadius:getComputedStyle(t).getPropertyValue("border-radius")},null,n,i)}},{key:"replaceTarget",value:function(e){return this.link=e||this.link,this}},{key:"open",value:function(){var e=this;if(this.opened)return this;var t=r(),n=this.overlay;return t.style.display="block",n.style.display="none",this.opened=!0,this.transformOverlay(this.link,t,!1,function(){hfh.GeneralUtility.Styles.animate(n,{display:"block",opacity:0},{opacity:1},null,["display"],e.callback)}),this}},{key:"close",value:function(){var e=this;if(!this.opened)return this;var t=this.overlay,n=r();return this.transformOverlay(n,this.link,!0,function(){hfh.GeneralUtility.Styles.animate(n,{opacity:1},{opacity:0},null,!1,function(){e.opened=!1,n.setAttribute("style","display: none")})}),hfh.GeneralUtility.Styles.animate(t,{opacity:1},{opacity:0},null,!1,function(){t.style.display="none"}),this}},{key:"destroy",value:function(){r().style.display="none",this.contentParent.appendChild(this.content),this.content.style.display="none",hfh.GeneralUtility.removeChilds(this.overlay).parentNode.removeChild(this.overlay),delete s[this.id],this.id=null,this.link=null,this.overlay=null,this.opened=!1,this.content=null,this.contentParent=null}},{key:"init",value:function(e){var t=this;if(s[this.id])["overlay","opened","content","contentParent"].forEach(function(e){t[e]=s[t.id][e]});else{var n=document.getElementById(this.id);n.style.display="block",this.contentParent=n.parentNode,this.content=n;var i=document.createElement("a");i.className="js-overlay-close",i.href="javascript:void(0)",i.addEventListener("click",a.closeAll);var l=document.createElement("div");l.className="js-overlay-inner",l.appendChild(i),l.appendChild(n);var o=document.createElement("div");o.className="js-overlay",o.dataset.id=this.id,o.setAttribute("role","dialog"),o.setAttribute("aria-model","true"),o.setAttribute("aria-label",this.link.dataset.label||this.link.title||this.link.innerText.trim()),o.addEventListener("click",function(e){o.isEqualNode(e.target)&&a.closeAll()}),o.appendChild(l),document.body.appendChild(o),this.overlay=o,"function"==typeof e&&e(this)}return(s[this.id]=this).open(),this}}]),a}();n.destroyAll=function(){var e=r();e.parentNode.removeChild(e),Object.keys(s).forEach(function(e){s[e].destroy()})},n.closeAll=function(){Object.keys(s).forEach(function(e){s[e].close()})},document.addEventListener("page:ajax:complete",n.closeAll),document.addEventListener("keydown",function(e){("key"in e&&("Escape"===e.key||"Esc"===e.key)||27===e.keyCode)&&n.closeAll()}),window.hfh=window.hfh||{},window.hfh.Overlay=n}();
"use strict";function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var i=n[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),e}!function(){var n=function(){function t(e,n){_classCallCheck(this,t),this.options={selector:"string"==typeof e?e:"js-lightbox-image",related:!0,elements:"string"==typeof e?document.querySelectorAll(e):e,nextBtnCaption:"",prevBtnCaption:""},this.mergeOptions(n),this.init()}return _createClass(t,[{key:"warn",value:function(e,n){return e&&"function"==typeof console.warn&&console.warn(e,n||null),e}},{key:"mergeOptions",value:function(e){this.options=[this.options,e||{}].reduce(function(n,t){return Object.keys(t).forEach(function(e){n[e]=t[e]}),n},{})}},{key:"init",value:function(){if("undefined"==typeof SimpleLightbox)return this.warn("Lightbox not loaded.",1556799981);this.options.items&&this.options.items.length?new SimpleLightbox.open(this.options):new SimpleLightbox(this.options.selector,{history:!1})}}]),t}();n.open=function(e){new n(null,{items:[e]})},window.hfh=window.hfh||{},window.hfh.Lightbox=n}();
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}!function(){function t(){return document.getElementById("content")}document.addEventListener("page:ajax:complete",function(){var e="";try{e=t().dataset.title}catch(e){window.console&&console.warn(e)}e&&(document.title=e)}),document.addEventListener("page:ajax:complete",function(){var r={};try{r=JSON.parse(t().dataset.languages)}catch(e){window.console&&console.warn(e)}r&&Object.keys(r).length&&_toConsumableArray(document.getElementsByClassName("🚀-language-menu")).forEach(function(o){if("select"===o.tagName.toLowerCase()){for(;o.length;)o.remove(0);Object.keys(r).forEach(function(e){var t=document.createElement("option"),n=r[e];t.disabled=!n.available,t.selected=!!n.active,t.value=n.link,t.innerText=n.navigationTitle,o.appendChild(t)})}})}),document.addEventListener("page:ajax:complete",function(){var e={};try{e=JSON.parse(t().dataset.breadcrumb)}catch(e){window.console&&console.warn(e)}_toConsumableArray(document.links).forEach(function(t){t.dataset.active&&delete t.dataset.active,_toConsumableArray(e).forEach(function(e){parseInt(t.dataset.uid)===parseInt(e.data.uid)&&(t.dataset.active="true")})})}),document.addEventListener("page:ajax:complete",function(){var e=t();hfh.GeneralUtility.initializeContent(e)}),document.addEventListener("page:ajax:complete",function(){document.getElementById("top")&&document.getElementById("top").focus()}),document.addEventListener("page:ajax:error",function(){var e="object"===_typeof(window.pjax.request)?window.pjax.request:{};e.responseURL&&confirm("The requested site could not be loaded:\n"+e.statusText+" (code:"+e.status+").\n\nDo you want to try again?")&&(window.location.href=e.responseURL)})}();
"use strict";!function(){var e=window.z7.LazyImages.getInstance();document.addEventListener("page:ajax:send",function(){e.destroy()}),document.addEventListener("page:ajax:complete",function(){e.observe()}),document.addEventListener("lazy-images:load",function(e){picturefill()})}();
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){function f(t,n,o){n&&Object.keys(n).forEach(function(e){t.style[e]=n[e]}),n&&o&&t.offsetHeight,o&&Object.keys(o).forEach(function(e){t.style[e]=o[e]})}function c(e){for(var t=["before","after"],n=0;n<t.length;n++){var o=getComputedStyle(e,":"+t[n]);if(i(e,o)||l(e,o))return o}return null}function n(e){for(var t=e.tagName.toLowerCase(),n=["a","button"],o=0;o<n.length;o++)if(n[o]===t)return!0;return!1}function o(e){var t=c(e);if(t)return i(e,t);var n=0;n="inline"===getComputedStyle(e,null).getPropertyValue("display")?-1:1;var o=e.getBoundingClientRect();return n+=Math.min(o.height,o.width)<40?-1:1,0<(n+=0<e.getElementsByTagName("img").length?1:0)}function r(e,t,n){var o=c(e),r=o&&-1<o.getPropertyValue("content").indexOf("🚀-ripple-dark")?"#000":"#fff",i=n&&0<n?n:200,l={overflow:"hidden"};"inline"===getComputedStyle(e,null).getPropertyValue("position")&&(l.display="inline-block"),"absolute"!==getComputedStyle(e,null).getPropertyValue("position")&&(l.position="relative"),f(e,l);var a=document.createElement("span"),u=2*Math.max(e.offsetHeight,e.offsetWidth);e.appendChild(a),f(a,{position:"absolute",top:t.pageY-(window.scrollY+e.getBoundingClientRect().top)-u/2+"px",left:t.pageX-(window.scrollX+e.getBoundingClientRect().left)-u/2+"px",width:u+"px",height:u+"px",borderRadius:"50%",backgroundColor:r,opacity:.2,zIndex:1e3,clip:"unset",webkitTransform:"scale3d(0, 0, 1)",transform:"scale3d(0, 0, 1)"},{webkitTransform:"scale3d(1,1,1)",transform:"scale3d(1,1,1)",webkitTransition:"all "+i+"ms ease-in",transition:"all "+i+"ms ease-in",opacity:0}),setTimeout(function(){!function(e,t){if(e&&document.body.contains(e)){var n=e.parentNode;n.removeChild(e),t.forEach(function(e){n.style.removeProperty(e)})}}(a,Object.keys(l))},2*i)}var i=function(e,t){var n=t||c(e);return null!==n&&"object"===_typeof(n)&&-1<n.getPropertyValue("content").indexOf("🚀-ripple")},l=function(e,t){var n=t||c(e);return null!==n&&"object"===_typeof(n)&&-1<n.getPropertyValue("content").indexOf("🚀-no-ripple")};"function"==typeof getComputedStyle&&document.addEventListener("click",function(e){for(var t=e.target;t.parentNode.tagName;t=t.parentNode)if(i(t)||n(t)&&o(t))return void r(t,e)})}();
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}!function(){function t(e){return n=_toConsumableArray((e&&e.nodeName?e:document).getElementsByClassName("🚀-inline-select"))}function a(e){var t=document.createElement("select"),r=document.createElement("option");r.selected="selected",r.text=e.options[e.selectedIndex].text,t.add(r),t.className=e.className,e.parentNode.insertBefore(t,e);var n=t.offsetWidth;n&&(e.style.width=n+"px",e.style.minWidth=n+"px",e.style.maxWidth=n+"px"),t.parentNode.removeChild(t),e.dataset.watchChange||(e.dataset.watchChange="true",e.addEventListener("change",function(){a(e)}))}function e(e){(e||t()).forEach(function(e){a(e)})}function r(e){t(e).forEach(function(e){return delete e.dataset.watchChange&&a(e)})}var n=[];document.addEventListener("page:resizex",function(){e(n)}),document.addEventListener("navigation:contentready",function(e){r(e.detail)}),window.hfh=window.hfh||{},window.hfh.InlineSelect={refresh:r,set:e}}();
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(){function d(e){var t=0<arguments.length&&void 0!==e?e:"",n=document.getElementsByClassName("frm__state");0<n.length&&("United States"===t?_toConsumableArray(n).forEach(function(e){e.style.display="block"}):""===t&&"9"===document.getElementsByClassName("🚀-location-data")[0].value?_toConsumableArray(n).forEach(function(e){e.style.display="block"}):_toConsumableArray(n).forEach(function(e){e.style.display="none"}))}function c(t,e){var n=[];return _toConsumableArray(e.children).forEach(function(e){"optgroup"===e.nodeName.toLowerCase()?_toConsumableArray(e.children).forEach(function(e){return n.push(e)}):e.disabled||n.push(e)}),n.filter(function(e){return e.text.substring(0,1)===t})}function a(t){return _toConsumableArray(document.getElementsByTagName("label")).find(function(e){return e.htmlFor===t.id})}function u(r,e,t){var n=1<arguments.length&&void 0!==e?e:[],a=2<arguments.length&&void 0!==t?t:"",o="overlayresults";if(null!==document.getElementById(o)){var l=document.getElementById(o);l.parentNode.removeChild(l)}var i=document.createElement("ul");i.id=o,i.className="overlay-result-list";var s=document.getElementsByClassName("select-overlay__letters")[0];function c(n){if(""===a||function(e,t){return-1!==e.toLowerCase().indexOf(t.toLowerCase())}(n.textContent,a)){var e=document.createElement("li"),t=e.appendChild(document.createElement("button"));t.className="select-overlay__result",i.appendChild(e),t.innerText=n.textContent,t.addEventListener("click",function(){r.link.value=n.value,hfh.OverlaySelectList.filter(function(e){return e===r})[0].close();var e=document.getElementsByClassName("js-subOverlay");e[0]&&(e[0].style.display="block",e[0].classList.add("js-overlay-background"),e[0].classList.remove("js-subOverlay"));var t=new Event("change");r.link.dispatchEvent(t),r.link.classList.contains("🚀-location-data")&&d(n.textContent)})}}if(s&&(s.style.display=""===a?"block":"none"),0===n.length&&(n=_toConsumableArray(r.link)),n.forEach(function(e){"optgroup"===e.nodeName?e.children.forEach(function(e){return c(e)}):e.disabled||""===e.value||c(e)}),r.content.appendChild(i),0===i.children.length){var u=document.createElement("li");u.textContent="No Results found",u.className="overlay-result-error",i.appendChild(u)}}function r(i,e){var t=_toConsumableArray(document.getElementsByClassName("js-overlay")).filter(function(e){return"block"===e.style.display})[0];t&&(t.classList.add("js-subOverlay"),t.style.display="none"),function(e){var t=document.getElementById(e);if(t)return t;var n=document.createElement("div");return n.style.display="none",n.id=e,document.body.appendChild(n),n}(e).innerHTML="";var s=new hfh.Overlay(e,i);hfh.OverlaySelectList.push(s);var n=s.content.appendChild(document.createElement("span"));n.className="select-overlay__headline",a(i)?n.textContent=a(i).textContent:n.textContent=i.firstElementChild.textContent,s.content.appendChild(document.createElement("button")).className="select-overlay__search-icon";var r=s.content.appendChild(document.createElement("input"));r.className="select-overlay__search",r.placeholder="Search by name",i.blur(),r.tabIndex=0,function(e,t){new MutationObserver(function(){"none"!==e.style.display&&t()}).observe(e,{attributes:!0,childList:!0})}(s.overlay,function(){r.focus()}),r.addEventListener("keyup",function(){return u(s,[],r.value)}),i.classList.contains("🚀-select-overlay-filter")?function(){var o=document.createElement("ul");o.className="select-overlay__letters",s.content.appendChild(o);for(var l=null,e=function(e){var t,n,r,a;o.appendChild((t=String.fromCharCode(e),n=document.createElement("li"),r=n.appendChild(document.createElement("button")),a=c(t,i),r.innerText=t,r.className="select-overlay__letter",a.length?(r.addEventListener("mouseover",function(){return u(s,a)}),r.addEventListener("keydown",function(e){"Enter"===e.key&&u(s,a)}),l=l||t):r.disabled=!0,n))},t=64;++t<91;)e(t);u(s,c(l,i))}():u(s)}var o="data_select_overlay_ready";window.hfh=window.hfh||{},window.hfh.OverlaySelect={init:function(e){_toConsumableArray(function(t){return _toConsumableArray(document.getElementsByTagName("select")).filter(function(e){return t||!e.dataset[o]})}(0<arguments.length&&void 0!==e&&e)).forEach(function(t){var n=hfh.GeneralUtility.randomString("overlay-select");t.dataset[o]="ready",t.addEventListener("mousedown",function(e){return e.preventDefault()}),t.addEventListener("click",function(){r(t,n)}),t.addEventListener("keydown",function(e){"ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"Enter"!==e.key||(e.preventDefault(),r(t,n))})})},toggleStates:d},window.hfh.OverlaySelectList=[]}();
"use strict";function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){if(r){if("string"==typeof r)return _arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=r[t];return a}hfh.GeneralUtility.prefersReducedMotion()||document.addEventListener("page:ready",function(){_toConsumableArray(document.getElementsByClassName("🚀-tiles")).forEach(function(r){var e=new hfh.Slider(r,{cellSelector:".🚀-tile",watchCSS:!0,imagesLoaded:!0,autoPlay:!0});imagesLoaded(e).on("done",function(){setTimeout(hfh.BackgroundEdge.update,500)})})});
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}!function(){function a(e){var r=e.value.trim(),t="filled";r||"0"===r?e.dataset[t]="true":delete e.dataset[t]}function n(e,r){_toConsumableArray(e.querySelectorAll("input, textarea, select")).forEach(function(e){a(e),!r&&e.dataset.formListener||(e.dataset.formListener="active",e.addEventListener("blur",function(){a(e)}),e.addEventListener("change",function(){a(e)}))})}function o(e,t){_toConsumableArray(e.getElementsByClassName("🚀-form-specialist")).forEach(function(r){r.value?r.disabled=!1:!t&&r.dataset.formSpecialist||(r.dataset.formSpecialist="loaded",hfh.GeneralUtility.load(window.location.href,function(e){r.disabled=!1,e&&(r.value=parseInt(e),a(r))},{type:1584708099},!1))})}function i(e,r){_toConsumableArray(e.getElementsByClassName("🚀-current-url")).forEach(function(e){e.value&&!r||(e.value=window.location.href)})}window.hfh=window.hfh||{},window.hfh.Form={init:function(e,r){var t=e.nodeName?e:document,a=!!r;n(t,a),o(t,a),i(t,a)},checkFieldContents:n,setSpecialist:o,setCurrentUrl:i}}();
"use strict";document.addEventListener("z7_cookiemanager:renderservices",function(e){if(2<e.detail.level&&"de"===document.querySelector("html").lang){var n=document.createElement("script");n.type="text/javascript",n.innerHTML='!function(s,a,l,e,sv,i,ew,er){try{a=s[a]||s[l]||function(){throw"no_xhr"},sv=i="//salesviewer.org",l=s.SV_XHR=function(d){return er=new a,er.onerror=function(){if(sv!=i)throw"load_err"; sv="//www.salesviewer.com",setTimeout(l.bind(null,d),0)},er.onload=function(){(s.execScript||s.eval).call(er,er.responseText)},er.open("POST",sv,!0),er.withCredentials=true,er.send(d),er},l("h_json="+1*("JSON"in s&&void 0!==JSON.parse)+"&h_wc=1&h_event="+1*("addEventListener"in s)+"&sva="+e)}catch(x){s=new Image,s.src="//salesviewer.org/tle.gif?sva=LE-002142-004&e="+encodeURIComponent(x)}}(window,"XDomainRequest","XMLHttpRequest","LE-002142-004")',document.body.appendChild(n)}});
"use strict";!function(){function i(e,n){for(var t=e,o=null;(t=t.parentNode)&&null===o;)o=t.querySelector(n)||null;return o}window.Zeroseven=window.Zeroseven||{},window.Zeroseven.EmbedVideo=window.Zeroseven.EmbedVideo||{loadVideo:function(e,n,t){n=n||window.event,t=t||n.target;void 0!==n&&n.preventDefault(),"function"==typeof embedvideoHook&&!embedvideoHook(e,n,t)||(t.parentNode.insertAdjacentHTML("afterbegin",e),t.parentNode.removeChild(t))},openOverlay:function(o,e,n){var t,r,d,e=e||window.event,a=n||e.target;void 0!==e&&e.preventDefault(),t=a.href,r=function(e){var n=(new DOMParser).parseFromString(e,"text/html"),t=o?i(a,o):a.parentNode;n&&n.body?Array.prototype.slice.call(n.body.children).forEach(function(e){return t.append(e)}):t.insertAdjacentHTML("beforeend",e)},(d=new XMLHttpRequest).onreadystatechange=function(){4===d.readyState&&(200===d.status&&"function"==typeof r?r(d.responseText,d.status,d.statusText):d.status&&(window.location=decodeURI(t)))},d.open("GET",t,!0),d.send()},closeOverlay:function(e,n,t){n=n||window.event,t=t||n.target,t=e?i(t,e):t.parentNode;void 0!==n&&n.preventDefault(),t.parentNode.removeChild(t)}}}();
"use strict";window.Zeroseven=window.Zeroseven||{},window.Zeroseven.Events=window.Zeroseven.Events||{},window.Zeroseven.Events.triggerEvent=function(e,n){var t;"function"==typeof window.CustomEvent?t=new CustomEvent("z7_events:"+e,{detail:n}):(t=document.createEvent("CustomEvent")).initCustomEvent("z7_events:"+e,!0,!0,n),document.dispatchEvent(t)};
"use strict";window.Zeroseven=window.Zeroseven||{},window.Zeroseven.Events=window.Zeroseven.Events||{},window.Zeroseven.Events.loadContents=function(e,t){for(var n=arguments.length,o=new Array(2<n?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var s={},a=new XMLHttpRequest;a.onreadystatechange=function(){if(4===a.readyState){if(200===a.status){var n=(new DOMParser).parseFromString(a.responseText,"text/html");o.forEach(function(e){s[e]=n.querySelector(e)})}"function"==typeof t&&t(s,a.status)}},a.open("Get",e),a.send()};
"use strict";!function(){function i(e,t){for(var n;n=e.firstElementChild;)t.append(n);return t}window.Zeroseven=window.Zeroseven||{},window.Zeroseven.Events=window.Zeroseven.Events||{},window.Zeroseven.Events.addToList=function(n,o,e){var t=e||window.event,r={button:t.target,list:document.querySelector(n),control:document.querySelector(o)};t.preventDefault(),r.button.href="javascript:void(0)",r.button.removeAttribute("onclick"),r.button.style.cursor="no-drop",Object.keys(r).forEach(function(e){return r[e].dataset.loading="true"}),Zeroseven.Events.triggerEvent("ajax:send",r),Zeroseven.Events.loadContents(r.button.dataset.href,function(e,t){t<400?(Object.keys(r).forEach(function(e){return delete r[e].dataset.loading}),i(e[n],r.list),i(e[o],function(e){for(var t;t=e.firstElementChild;)e.removeChild(t);return e}(r.control)),Zeroseven.Events.triggerEvent("ajax:complete",{elements:r,contents:e})):confirm("The requested site could not be loaded:\n"+t+").\n\nDo you want to try again?")&&(window.location.href=r.button.href)},n,o)}}();
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(){var CookieUtility=function(){function t(e){_classCallCheck(this,t),this.parent=e}return _createClass(t,[{key:"name",get:function(){return this.parent.options.cookie.name}},{key:"expiration",get:function(){return parseInt(this.parent.options.cookie.expiration)}},{key:"createExpiration",value:function(){var e=new Date;return e.setTime(e.getTime()+this.expiration),e.toGMTString()}},{key:"clear",value:function(){document.cookie=this.name+"=-1;path=/;expires=Thu, 01 Jan 1970 00:00:00 GMT"}},{key:"setLevels",value:function(e){for(var t=[];0<=parseInt(e);)t.push(e),e--;document.cookie=this.name+"="+t.toString()+";path=/;expires="+this.createExpiration()}},{key:"getLevels",value:function(){var e=document.cookie.match("(^|;) ?"+this.name+"=([^;]*)(;|$)");return e&&e[2]?e[2]:""}},{key:"getHighestLevel",value:function(){var t=this.getLevels();try{return t?Math.max.apply(Math,_toConsumableArray(t.split(","))):-1}catch(e){var n=parseInt(t.substring(0,1));return isFinite(n)?n:-1}}},{key:"triggerEvent",value:function(e,t){var n;"function"==typeof window.CustomEvent?n=new CustomEvent("z7_cookiemanager:"+e,{detail:t}):(n=document.createEvent("CustomEvent")).initCustomEvent("z7_cookiemanager:"+e,!0,!0,t),document.dispatchEvent(n)}}]),t}(),Module=function(){function Module(e,t,n,i){_classCallCheck(this,Module),this.selectedLevel=parseInt(-1<e.level?e.level:e.options.defaultLevel),this.parent=e||new CookieManager,this.module=i&&0<i.childElementCount?i.firstElementChild:null,this.wrapper=i||document.body,this.spacer=null,this.url=t,this.styles=n,this.attributes={set:"data-level-set",close:"data-module-close",acceptAll:"data-module-accept-all",save:"data-module-save",visibility:"data-level-visibility",activation:"data-level-activation",activationClassName:"data-level-activation-class"},this.module?(this.addEventListener(),this.toggleLevelConditions()):t||e.warn("The module can't be loaded.",1558602577),this.addToWrap=this.addToWrap.bind(this),this.open=this.open.bind(this),this.close=this.close.bind(this),this.toggleLevelConditions=this.toggleLevelConditions.bind(this),this.addSpacer=this.addSpacer.bind(this),this.saveAndClose=this.saveAndClose.bind(this),this.acceptAll=this.acceptAll.bind(this)}return _createClass(Module,[{key:"load",value:function(n){function e(){var t=new XMLHttpRequest;t.onload=function(){if(4===t.readyState&&200===t.status){var e=(new DOMParser).parseFromString(t.responseText,"text/html");a.module=e.body?e.body.firstElementChild:e.documentElement,"function"==typeof n&&n()}else a.parent.warn("Request failed.",1557305601)},t.open("GET",a.url,!0),t.send(null)}var i,o,a=this;return this.styles?(i=e,(o=new XMLHttpRequest).onload=function(){if(4===o.readyState&&200===o.status){var e=document.createElement("style");e.innerHTML="/* Cookiemanager module styling */\n"+o.responseText,e.type="text/css";var t=document.head||document.getElementsByTagName("head")[0];t.insertBefore(e,t.firstElementChild),"function"==typeof i&&i()}},o.open("GET",a.styles,!0),void o.send(null)):e()}},{key:"addToWrap",value:function(){this.module.style.display="none",this.wrapper.insertBefore(this.module,this.wrapper.firstElementChild),this.addEventListener(),this.toggleLevelConditions(),this.open()}},{key:"open",value:function(){var e=this;if(this.module){var t="animate-in",n=this.parent.options.animationDuration;this.module.style.display="block",this.module.style.animationDuration=n+"ms",this.module.classList.add(t),setTimeout(function(){e.module.style.animationDuration=null,e.module.classList.remove(t),e.addSpacer(),window.addEventListener("resize",e.addSpacer)},n)}else this.load(this.addToWrap)}},{key:"close",value:function(){var e=this;if(this.module){this.hideSpacer(),window.removeEventListener("resize",this.addSpacer);var t="animate-out",n=this.parent.options.animationDuration;this.module.style.animationDuration=n+"ms",this.module.classList.add(t),setTimeout(function(){e.module.style.animationDuration=null,e.module.style.display="none",e.module.classList.remove(t)},n)}}},{key:"addSpacer",value:function(){var e=window.getComputedStyle(this.module),t="fixed"===e.getPropertyValue("position"),n="auto"===e.getPropertyValue("top")?99:parseInt(e.getPropertyValue("top")),i="auto"===e.getPropertyValue("bottom")?99:parseInt(e.getPropertyValue("bottom")),o=document.body,a=t&&0===n&&0<i?this.module.offsetHeight:0,r=t&&0===i&&0<n?this.module.offsetHeight:0;a||r?(this.spacer=this.spacer||o.appendChild(document.createElement("div")),this.spacer.innerHTML="\x3c!-- gives place for the banner of the cookie manager--\x3e",this.spacer.style.display="block",this.spacer.style.height=(a||r)+"px",a?o.insertBefore(this.spacer,o.firstElementChild):r&&o.appendChild(this.spacer)):this.hideSpacer()}},{key:"hideSpacer",value:function(){this.spacer&&(this.spacer.style.display="none")}},{key:"toggleLevelConditions",value:function toggleLevelConditions(){var level=this.selectedLevel,module=this.module,attributes=this.attributes;_toConsumableArray(module.querySelectorAll("["+attributes.visibility+"]")).forEach(function(element){eval(level+element.getAttribute(attributes.visibility))?element.style.display=null:element.style.display="none"}),_toConsumableArray(module.querySelectorAll("["+attributes.activation+"]")).forEach(function(element){var activationClassName=element.getAttribute(attributes.activationClassName)||"active";eval(level+element.getAttribute(attributes.activation))?element.classList.add(activationClassName):element.classList.remove(activationClassName)})}},{key:"acceptAll",value:function(){this.selectedLevel<3?(this.selectedLevel++,this.toggleLevelConditions(),setTimeout(this.acceptAll,150)):this.saveAndClose()}},{key:"saveAndClose",value:function(){var e=this.parent;e.removeAnchor(),e.saveLevel(this.selectedLevel,"submit"),e.closeBanner(),e.closeOverlay()}},{key:"addEventListener",value:function(){var n=this,e=this.module,i=this.attributes;_toConsumableArray(e.querySelectorAll("["+i.set+"]")).forEach(function(e){var t=parseInt(e.getAttribute(i.set)||e.value);e.addEventListener("click",function(){n.selectedLevel=t<=n.selectedLevel?Math.max(t-1,0):t,n.toggleLevelConditions()})}),_toConsumableArray(e.querySelectorAll("["+i.close+"]")).forEach(function(e){e.addEventListener("click",function(){n.close(),n.parent.removeAnchor()})}),_toConsumableArray(e.querySelectorAll("["+i.save+"]")).forEach(function(e){e.addEventListener("click",function(){return n.saveAndClose()})}),_toConsumableArray(e.querySelectorAll("["+i.acceptAll+"]")).forEach(function(e){e.addEventListener("click",function(){return n.acceptAll()})})}}]),Module}(),CookieManager=function(){function e(){_classCallCheck(this,e),this.options={animationDuration:300,bannerUrl:"",overlayUrl:"",overlayHash:"",logUrl:"",wrapId:"",defaultLevel:0,cookie:{name:"cookie-level",expiration:68328e6},services:{initial:[],async:[],html:[]}},this.overrideOptions(window.cookieManagerConfig||null),this.cookie=new CookieUtility(this),this.level=null,this.banner=null,this.overlay=null,this.showBanner=this.showBanner.bind(this),this.showOverlay=this.showOverlay.bind(this),this.reviveServices=this.reviveServices.bind(this)}return _createClass(e,[{key:"overrideOptions",value:function(t,n){var i=this;return n||(n=this.options),t&&"object"===_typeof(t)&&"object"===_typeof(n)&&Object.keys(t).forEach(function(e){"object"===_typeof(n[e])&&null!==n[e]?i.overrideOptions(t[e],n[e]):n[e]=t[e]}),this}},{key:"warn",value:function(e,t){if(e&&"function"==typeof console.warn)return console.warn("Cookie manager: "+e,t||null),e}},{key:"executeJavaScriptGlobal",value:function(e){var t=document.createElement("script");t.innerHTML=e,document.head.appendChild(t).parentNode.removeChild(t)}},{key:"reviveServices",value:function(){var t=this,n={async:0};return this.cookie.triggerEvent("reviveservices",{level:this.level,services:this.options.services}),_toConsumableArray(this.options.services.async).forEach(function(e){e.level<=t.level&&(t.executeJavaScriptGlobal(atob(e.content)),n.async++)},this),n}},{key:"renderServices",value:function(){var n=this;this.cookie.triggerEvent("renderservices",{level:this.level,services:this.options.services});var i={initial:0,html:0};return _toConsumableArray(this.options.services.html).forEach(function(e){if(e.level<=n.level){var t=document.createElement("div");t.innerHTML=atob(e.content),_toConsumableArray(t.childNodes).forEach(function(e){if("script"===e.nodeName.toLowerCase()){var t=document.createElement("script");e.innerHTML&&!e.src?t.innerHTML=e.innerHTML:(t.type="text/javascript",t.src=e.src),document.head.appendChild(t)}else document.body.appendChild(e)})}i.html++},this),_toConsumableArray(this.options.services.initial).forEach(function(e){e.level<=n.level&&(n.executeJavaScriptGlobal(atob(e.content)),i.initial++)},this),i}},{key:"showOverlay",value:function(){return this.overlay=this.overlay||new Module(this,this.options.overlayUrl,this.options.overlayStyles),this.cookie.triggerEvent("showoverlay",{level:this.level,overlay:this.overlay}),this.overlay.open(),this.overlay}},{key:"showBanner",value:function(){var e=document.getElementById(this.options.wrapId)||null;return this.banner=this.banner||new Module(this,this.options.bannerUrl,this.options.bannerStyles,e),this.cookie.triggerEvent("showbanner",{level:this.level,banner:this.banner}),this.banner.open(),this.banner}},{key:"closeOverlay",value:function(){null!==this.overlay&&(this.cookie.triggerEvent("closeoverlay"),this.overlay.close())}},{key:"closeBanner",value:function(){null!==this.banner&&(this.cookie.triggerEvent("closebanner"),this.banner.close())}},{key:"removeAnchor",value:function(){if(location.hash===this.options.overlayHash){var e=location.href,t=e.substr(0,e.length-location.hash.length);history.replaceState(history.state,document.title,t)}}},{key:"saveLevel",value:function(e,t){var n=this.level;return parseInt(e)!==parseInt(n)&&(this.cookie.triggerEvent("savelevel",{level:e,action:t}),this.level=e,this.log(e,t),e<0?this.cookie.clear():this.cookie.setLevels(e),n<0?this.renderServices():window.location.reload(),!0)}},{key:"clearLevel",value:function(){return this.saveLevel(-1,"clear")}},{key:"log",value:function(e,t){var n=new XMLHttpRequest;n.open("POST",this.options.logUrl,!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),n.send("level="+(e||0)+"&action="+(t||0))}},{key:"init",value:function(){var e=this;return"function"!=typeof atob?this.warn("Your browser does not support required functions. Sorry!",1557304348):(this.level=this.cookie.getHighestLevel(),this.level<0?this.showBanner():(this.renderServices(),document.getElementById(this.options.wrapId)&&document.getElementById(this.options.wrapId).firstElementChild&&(document.getElementById(this.options.wrapId).firstElementChild.style.display="none")),this.options.overlayHash?(document.location.hash===this.options.overlayHash&&this.showOverlay(),window.addEventListener("hashchange",function(){document.location.hash===e.options.overlayHash&&e.showOverlay()})):this.warn("The url hash, to toggle the overlay is not defined!",1557522679),this)}}]),e}(),instance=new CookieManager;window.Zeroseven=window.Zeroseven||{},window.Zeroseven.CookieManager=instance,window.Zeroseven.CookieManager.getInstance=function(){return instance.warn('Deprecated function call "Zeroseven.CookieManager.getInstance()" use "Zeroseven.CookieManager" instead.',1618215573),instance}}();
/*! picturefill - v3.0.2 - 2016-02-12
 * https://scottjehl.github.io/picturefill/
 * Copyright (c) 2016 https://github.com/scottjehl/picturefill/blob/master/Authors.txt; Licensed MIT
 */
!function(a){var b=navigator.userAgent;a.HTMLPictureElement&&/ecko/.test(b)&&b.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",function(){var b,c=document.createElement("source"),d=function(a){var b,d,e=a.parentNode;"PICTURE"===e.nodeName.toUpperCase()?(b=c.cloneNode(),e.insertBefore(b,e.firstElementChild),setTimeout(function(){e.removeChild(b)})):(!a._pfLastSize||a.offsetWidth>a._pfLastSize)&&(a._pfLastSize=a.offsetWidth,d=a.sizes,a.sizes+=",100vw",setTimeout(function(){a.sizes=d}))},e=function(){var a,b=document.querySelectorAll("picture > img, img[srcset][sizes]");for(a=0;a<b.length;a++)d(b[a])},f=function(){clearTimeout(b),b=setTimeout(e,99)},g=a.matchMedia&&matchMedia("(orientation: landscape)"),h=function(){f(),g&&g.addListener&&g.addListener(f)};return c.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?h():document.addEventListener("DOMContentLoaded",h),f}())}(window),function(a,b,c){"use strict";function d(a){return" "===a||"	"===a||"\n"===a||"\f"===a||"\r"===a}function e(b,c){var d=new a.Image;return d.onerror=function(){A[b]=!1,ba()},d.onload=function(){A[b]=1===d.width,ba()},d.src=c,"pending"}function f(){M=!1,P=a.devicePixelRatio,N={},O={},s.DPR=P||1,Q.width=Math.max(a.innerWidth||0,z.clientWidth),Q.height=Math.max(a.innerHeight||0,z.clientHeight),Q.vw=Q.width/100,Q.vh=Q.height/100,r=[Q.height,Q.width,P].join("-"),Q.em=s.getEmValue(),Q.rem=Q.em}function g(a,b,c,d){var e,f,g,h;return"saveData"===B.algorithm?a>2.7?h=c+1:(f=b-c,e=Math.pow(a-.6,1.5),g=f*e,d&&(g+=.1*e),h=a+g):h=c>1?Math.sqrt(a*b):a,h>c}function h(a){var b,c=s.getSet(a),d=!1;"pending"!==c&&(d=r,c&&(b=s.setRes(c),s.applySetCandidate(b,a))),a[s.ns].evaled=d}function i(a,b){return a.res-b.res}function j(a,b,c){var d;return!c&&b&&(c=a[s.ns].sets,c=c&&c[c.length-1]),d=k(b,c),d&&(b=s.makeUrl(b),a[s.ns].curSrc=b,a[s.ns].curCan=d,d.res||aa(d,d.set.sizes)),d}function k(a,b){var c,d,e;if(a&&b)for(e=s.parseSet(b),a=s.makeUrl(a),c=0;c<e.length;c++)if(a===s.makeUrl(e[c].url)){d=e[c];break}return d}function l(a,b){var c,d,e,f,g=a.getElementsByTagName("source");for(c=0,d=g.length;d>c;c++)e=g[c],e[s.ns]=!0,f=e.getAttribute("srcset"),f&&b.push({srcset:f,media:e.getAttribute("media"),type:e.getAttribute("type"),sizes:e.getAttribute("sizes")})}function m(a,b){function c(b){var c,d=b.exec(a.substring(m));return d?(c=d[0],m+=c.length,c):void 0}function e(){var a,c,d,e,f,i,j,k,l,m=!1,o={};for(e=0;e<h.length;e++)f=h[e],i=f[f.length-1],j=f.substring(0,f.length-1),k=parseInt(j,10),l=parseFloat(j),X.test(j)&&"w"===i?((a||c)&&(m=!0),0===k?m=!0:a=k):Y.test(j)&&"x"===i?((a||c||d)&&(m=!0),0>l?m=!0:c=l):X.test(j)&&"h"===i?((d||c)&&(m=!0),0===k?m=!0:d=k):m=!0;m||(o.url=g,a&&(o.w=a),c&&(o.d=c),d&&(o.h=d),d||c||a||(o.d=1),1===o.d&&(b.has1x=!0),o.set=b,n.push(o))}function f(){for(c(T),i="",j="in descriptor";;){if(k=a.charAt(m),"in descriptor"===j)if(d(k))i&&(h.push(i),i="",j="after descriptor");else{if(","===k)return m+=1,i&&h.push(i),void e();if("("===k)i+=k,j="in parens";else{if(""===k)return i&&h.push(i),void e();i+=k}}else if("in parens"===j)if(")"===k)i+=k,j="in descriptor";else{if(""===k)return h.push(i),void e();i+=k}else if("after descriptor"===j)if(d(k));else{if(""===k)return void e();j="in descriptor",m-=1}m+=1}}for(var g,h,i,j,k,l=a.length,m=0,n=[];;){if(c(U),m>=l)return n;g=c(V),h=[],","===g.slice(-1)?(g=g.replace(W,""),e()):f()}}function n(a){function b(a){function b(){f&&(g.push(f),f="")}function c(){g[0]&&(h.push(g),g=[])}for(var e,f="",g=[],h=[],i=0,j=0,k=!1;;){if(e=a.charAt(j),""===e)return b(),c(),h;if(k){if("*"===e&&"/"===a[j+1]){k=!1,j+=2,b();continue}j+=1}else{if(d(e)){if(a.charAt(j-1)&&d(a.charAt(j-1))||!f){j+=1;continue}if(0===i){b(),j+=1;continue}e=" "}else if("("===e)i+=1;else if(")"===e)i-=1;else{if(","===e){b(),c(),j+=1;continue}if("/"===e&&"*"===a.charAt(j+1)){k=!0,j+=2;continue}}f+=e,j+=1}}}function c(a){return k.test(a)&&parseFloat(a)>=0?!0:l.test(a)?!0:"0"===a||"-0"===a||"+0"===a?!0:!1}var e,f,g,h,i,j,k=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,l=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(f=b(a),g=f.length,e=0;g>e;e++)if(h=f[e],i=h[h.length-1],c(i)){if(j=i,h.pop(),0===h.length)return j;if(h=h.join(" "),s.matchesMedia(h))return j}return"100vw"}b.createElement("picture");var o,p,q,r,s={},t=!1,u=function(){},v=b.createElement("img"),w=v.getAttribute,x=v.setAttribute,y=v.removeAttribute,z=b.documentElement,A={},B={algorithm:""},C="data-pfsrc",D=C+"set",E=navigator.userAgent,F=/rident/.test(E)||/ecko/.test(E)&&E.match(/rv\:(\d+)/)&&RegExp.$1>35,G="currentSrc",H=/\s+\+?\d+(e\d+)?w/,I=/(\([^)]+\))?\s*(.+)/,J=a.picturefillCFG,K="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",L="font-size:100%!important;",M=!0,N={},O={},P=a.devicePixelRatio,Q={px:1,"in":96},R=b.createElement("a"),S=!1,T=/^[ \t\n\r\u000c]+/,U=/^[, \t\n\r\u000c]+/,V=/^[^ \t\n\r\u000c]+/,W=/[,]+$/,X=/^\d+$/,Y=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,Z=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)},$=function(a){var b={};return function(c){return c in b||(b[c]=a(c)),b[c]}},_=function(){var a=/^([\d\.]+)(em|vw|px)$/,b=function(){for(var a=arguments,b=0,c=a[0];++b in a;)c=c.replace(a[b],a[++b]);return c},c=$(function(a){return"return "+b((a||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"});return function(b,d){var e;if(!(b in N))if(N[b]=!1,d&&(e=b.match(a)))N[b]=e[1]*Q[e[2]];else try{N[b]=new Function("e",c(b))(Q)}catch(f){}return N[b]}}(),aa=function(a,b){return a.w?(a.cWidth=s.calcListLength(b||"100vw"),a.res=a.w/a.cWidth):a.res=a.d,a},ba=function(a){if(t){var c,d,e,f=a||{};if(f.elements&&1===f.elements.nodeType&&("IMG"===f.elements.nodeName.toUpperCase()?f.elements=[f.elements]:(f.context=f.elements,f.elements=null)),c=f.elements||s.qsa(f.context||b,f.reevaluate||f.reselect?s.sel:s.selShort),e=c.length){for(s.setupRun(f),S=!0,d=0;e>d;d++)s.fillImg(c[d],f);s.teardownRun(f)}}};o=a.console&&console.warn?function(a){console.warn(a)}:u,G in v||(G="src"),A["image/jpeg"]=!0,A["image/gif"]=!0,A["image/png"]=!0,A["image/svg+xml"]=b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),s.ns=("pf"+(new Date).getTime()).substr(0,9),s.supSrcset="srcset"in v,s.supSizes="sizes"in v,s.supPicture=!!a.HTMLPictureElement,s.supSrcset&&s.supPicture&&!s.supSizes&&!function(a){v.srcset="data:,a",a.src="data:,a",s.supSrcset=v.complete===a.complete,s.supPicture=s.supSrcset&&s.supPicture}(b.createElement("img")),s.supSrcset&&!s.supSizes?!function(){var a="data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw==",c="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d=b.createElement("img"),e=function(){var a=d.width;2===a&&(s.supSizes=!0),q=s.supSrcset&&!s.supSizes,t=!0,setTimeout(ba)};d.onload=e,d.onerror=e,d.setAttribute("sizes","9px"),d.srcset=c+" 1w,"+a+" 9w",d.src=c}():t=!0,s.selShort="picture>img,img[srcset]",s.sel=s.selShort,s.cfg=B,s.DPR=P||1,s.u=Q,s.types=A,s.setSize=u,s.makeUrl=$(function(a){return R.href=a,R.href}),s.qsa=function(a,b){return"querySelector"in a?a.querySelectorAll(b):[]},s.matchesMedia=function(){return a.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?s.matchesMedia=function(a){return!a||matchMedia(a).matches}:s.matchesMedia=s.mMQ,s.matchesMedia.apply(this,arguments)},s.mMQ=function(a){return a?_(a):!0},s.calcLength=function(a){var b=_(a,!0)||!1;return 0>b&&(b=!1),b},s.supportsType=function(a){return a?A[a]:!0},s.parseSize=$(function(a){var b=(a||"").match(I);return{media:b&&b[1],length:b&&b[2]}}),s.parseSet=function(a){return a.cands||(a.cands=m(a.srcset,a)),a.cands},s.getEmValue=function(){var a;if(!p&&(a=b.body)){var c=b.createElement("div"),d=z.style.cssText,e=a.style.cssText;c.style.cssText=K,z.style.cssText=L,a.style.cssText=L,a.appendChild(c),p=c.offsetWidth,a.removeChild(c),p=parseFloat(p,10),z.style.cssText=d,a.style.cssText=e}return p||16},s.calcListLength=function(a){if(!(a in O)||B.uT){var b=s.calcLength(n(a));O[a]=b?b:Q.width}return O[a]},s.setRes=function(a){var b;if(a){b=s.parseSet(a);for(var c=0,d=b.length;d>c;c++)aa(b[c],a.sizes)}return b},s.setRes.res=aa,s.applySetCandidate=function(a,b){if(a.length){var c,d,e,f,h,k,l,m,n,o=b[s.ns],p=s.DPR;if(k=o.curSrc||b[G],l=o.curCan||j(b,k,a[0].set),l&&l.set===a[0].set&&(n=F&&!b.complete&&l.res-.1>p,n||(l.cached=!0,l.res>=p&&(h=l))),!h)for(a.sort(i),f=a.length,h=a[f-1],d=0;f>d;d++)if(c=a[d],c.res>=p){e=d-1,h=a[e]&&(n||k!==s.makeUrl(c.url))&&g(a[e].res,c.res,p,a[e].cached)?a[e]:c;break}h&&(m=s.makeUrl(h.url),o.curSrc=m,o.curCan=h,m!==k&&s.setSrc(b,h),s.setSize(b))}},s.setSrc=function(a,b){var c;a.src=b.url,"image/svg+xml"===b.set.type&&(c=a.style.width,a.style.width=a.offsetWidth+1+"px",a.offsetWidth+1&&(a.style.width=c))},s.getSet=function(a){var b,c,d,e=!1,f=a[s.ns].sets;for(b=0;b<f.length&&!e;b++)if(c=f[b],c.srcset&&s.matchesMedia(c.media)&&(d=s.supportsType(c.type))){"pending"===d&&(c=d),e=c;break}return e},s.parseSets=function(a,b,d){var e,f,g,h,i=b&&"PICTURE"===b.nodeName.toUpperCase(),j=a[s.ns];(j.src===c||d.src)&&(j.src=w.call(a,"src"),j.src?x.call(a,C,j.src):y.call(a,C)),(j.srcset===c||d.srcset||!s.supSrcset||a.srcset)&&(e=w.call(a,"srcset"),j.srcset=e,h=!0),j.sets=[],i&&(j.pic=!0,l(b,j.sets)),j.srcset?(f={srcset:j.srcset,sizes:w.call(a,"sizes")},j.sets.push(f),g=(q||j.src)&&H.test(j.srcset||""),g||!j.src||k(j.src,f)||f.has1x||(f.srcset+=", "+j.src,f.cands.push({url:j.src,d:1,set:f}))):j.src&&j.sets.push({srcset:j.src,sizes:null}),j.curCan=null,j.curSrc=c,j.supported=!(i||f&&!s.supSrcset||g&&!s.supSizes),h&&s.supSrcset&&!j.supported&&(e?(x.call(a,D,e),a.srcset=""):y.call(a,D)),j.supported&&!j.srcset&&(!j.src&&a.src||a.src!==s.makeUrl(j.src))&&(null===j.src?a.removeAttribute("src"):a.src=j.src),j.parsed=!0},s.fillImg=function(a,b){var c,d=b.reselect||b.reevaluate;a[s.ns]||(a[s.ns]={}),c=a[s.ns],(d||c.evaled!==r)&&((!c.parsed||b.reevaluate)&&s.parseSets(a,a.parentNode,b),c.supported?c.evaled=r:h(a))},s.setupRun=function(){(!S||M||P!==a.devicePixelRatio)&&f()},s.supPicture?(ba=u,s.fillImg=u):!function(){var c,d=a.attachEvent?/d$|^c/:/d$|^c|^i/,e=function(){var a=b.readyState||"";f=setTimeout(e,"loading"===a?200:999),b.body&&(s.fillImgs(),c=c||d.test(a),c&&clearTimeout(f))},f=setTimeout(e,b.body?9:99),g=function(a,b){var c,d,e=function(){var f=new Date-d;b>f?c=setTimeout(e,b-f):(c=null,a())};return function(){d=new Date,c||(c=setTimeout(e,b))}},h=z.clientHeight,i=function(){M=Math.max(a.innerWidth||0,z.clientWidth)!==Q.width||z.clientHeight!==h,h=z.clientHeight,M&&s.fillImgs()};Z(a,"resize",g(i,99)),Z(b,"readystatechange",e)}(),s.picturefill=ba,s.fillImgs=ba,s.teardownRun=u,ba._=s,a.picturefillCFG={pf:s,push:function(a){var b=a.shift();"function"==typeof s[b]?s[b].apply(s,a):(B[b]=a[0],S&&s.fillImgs({reselect:!0}))}};for(;J&&J.length;)a.picturefillCFG.push(J.shift());a.picturefill=ba,"object"==typeof module&&"object"==typeof module.exports?module.exports=ba:"function"==typeof define&&define.amd&&define("picturefill",function(){return ba}),s.supPicture||(A["image/webp"]=e("image/webp","data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA=="))}(window,document);
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}!function(){function e(){a.forEach(function(e){e.parent.style.backgroundSize="100% "+Math.floor(e.marker.getBoundingClientRect().top-e.parent.getBoundingClientRect().top)+"px"})}function r(){_toConsumableArray(document.getElementsByClassName("🚀-background-edge")).forEach(function(e){var r=document.getElementById(e.dataset.id);r&&a.push({marker:e,parent:r})})}function t(){a.length=0}function n(){r(),e()}var a=[];document.addEventListener("page:ready",n),document.addEventListener("page:ajax:send",t),document.addEventListener("page:resizex",e),window.addEventListener("load",e),window.hfh=window.hfh||{},window.hfh.BackgroundEdge={init:n,update:e,reset:t,collect:r}}();
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}!function(){function e(){var r=0;_toConsumableArray(document.getElementsByClassName("🚀-mnsld-description")).forEach(function(e){e.style.height="inherit",e.clientHeight>r&&(r=e.clientHeight)}),_toConsumableArray(document.getElementsByClassName("🚀-mnsld-description")).forEach(function(e){e.style.height=r+"px"})}function r(){_toConsumableArray(document.getElementsByClassName("🚀-mnsld-slider")).forEach(function(e){if(3<e.childElementCount)new hfh.Slider(e,{cellSelector:".🚀-mnsld-item",watchCSS:!1,autoPlay:!1,imagesLoaded:!0});else e.style.display="flex"}),e()}document.addEventListener("DOMContentLoaded",r),document.addEventListener("page:ajax:complete",r),window.addEventListener("resize",e)}();
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}!function(){if(!hfh.GeneralUtility.prefersReducedMotion()){var n=[],e="🚀-teaser",o="🚀-teaser-page",i="🚀-teaser-media",s="🚀-teaser-content",l="🚀-teaser-progress",c=function(e,r){var t=_toConsumableArray(e),a=t[0],n=hfh.GeneralUtility.randomString();return t.forEach(function(e,r){var t=document.createElement("div");for(t.className=n,t.style.width="100%",t.style.overflow="hidden";0<e.childNodes.length;)t.appendChild(e.childNodes[0]);a.appendChild(t)}),new hfh.Slider(a,function(e,r,t,a,n){var o={};return[e,r,t,a,n].forEach(function(e){if(e)for(var r in e)o[r]=e[r]}),o}({cellSelector:"."+n},r))};document.addEventListener("page:ready",function(){_toConsumableArray(document.getElementsByClassName(e)).forEach(function(e){var r=hfh.GeneralUtility.randomString();e.getElementsByClassName(l)[0].className+=" "+r;var t=c(e.getElementsByClassName(i),{imagesLoaded:!0,adaptiveHeight:!1,progressBarSelector:"."+r,autoPlay:!0}),a=c(e.getElementsByClassName(s),{imagesLoaded:!0,draggable:!0});t.on("change",function(e){a.select(e)}),a.on("change",function(e){t.select(e)}),t.progress&&(a.on("dragStart",function(){t.stopPlayer(),t.progress.pause()}),a.on("dragEnd",function(){t.progress.stop()}),a.on("settle",function(){t.playPlayer(),t.progress.play()})),_toConsumableArray(e.getElementsByClassName(o)).forEach(function(e,r){return r&&e.parentNode.removeChild(e)}),n.push(t,a)})})}}();
"use strict";function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(r,e){if(r){if("string"==typeof r)return _arrayLikeToArray(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,e):void 0}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(r))return Array.from(r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}!function(){function r(){_toConsumableArray(document.getElementsByClassName("🚀-tstmnl-slider")).forEach(function(r){new hfh.Slider(r,{cellSelector:".🚀-tstmnl-item",watchCSS:!1,autoPlay:!0})})}document.addEventListener("DOMContentLoaded",r),document.addEventListener("page:ajax:complete",r)}();
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(a){var i=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(a);if(i){var n=_getPrototypeOf(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _possibleConstructorReturn(this,e)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}!function(){var t=hfh.GeneralUtility.prefersReducedMotion(),l={general:{},small:{},large:{}},e=function(){function e(){_classCallCheck(this,e),this.baseClass="",this.classNames={toggle:"🚀-navigation-toggle",content:"🚀-navigation-content"},this.options={duration:t?1500:300},l.general.inProcess=0,this.closeAllLevel=this.closeAllLevel.bind(this)}return _createClass(e,[{key:"refreshPjax",value:function(e,t){var n=this;t&&_toConsumableArray(e.getElementsByTagName("a")).forEach(function(e){return e.className.indexOf(n.classNames.toggle)<0&&delete e.dataset.pjaxState}),"undefined"!=typeof pjax&&pjax.refresh(e)}},{key:"isContentLevel",value:function(e){return-1<e.className.indexOf(this.classNames.content)}},{key:"addEventListener",value:function(t,e,n,a){var i=!1;e.split(" ").forEach(function(e){t.addEventListener(e.trim(),function(e){i||(i=!0,n(e),setTimeout(function(){return i=!1},100))},a)})}},{key:"createClassname",value:function(e){var a=this,n=[];this.baseClass&&e&&(!function t(e){e.nodeValue||(n.push(e),_toConsumableArray(e.childNodes).forEach(function(e){return t(e)}))}(e),n.forEach(function(t){var e=t.dataset.navigationClass;if(e){delete t.dataset.navigationClass;var n=t.className.split(" ");t.className=e.replace(/\{baseClass\}/g,a.baseClass),n.forEach(function(e){(-1<e.indexOf("🚀")||-1<e.indexOf(a.baseClass))&&(t.className+=" "+e)})}}))}},{key:"getLevel",value:function(e,t){var n=t||e&&document.getElementById(0===e.indexOf("#")?e.substr(1):e);if(n){var a="8923hriuljk";_toConsumableArray(n.getElementsByTagName("input")).forEach(function(e){return e.dataset[a]=e.value}),_toConsumableArray(n.getElementsByTagName("select")).forEach(function(e){return e.dataset[a]=e.selectedIndex});var i=n.cloneNode(!0);return i.style.display="block",_toConsumableArray(i.getElementsByTagName("li")).forEach(function(e){return _toConsumableArray(e.getElementsByTagName("ul")).forEach(function(e){return e.parentNode.removeChild(e)})}),this.createClassname(i),this.refreshPjax(i,!0),_toConsumableArray(i.getElementsByTagName("input")).forEach(function(e){return e.value=e.dataset[a]}),_toConsumableArray(i.getElementsByTagName("select")).forEach(function(e){return e.selectedIndex=e.dataset[a]}),i}return null}},{key:"getDimensions",value:function(e){var t=window.getComputedStyle(e,null),n=e.getAttribute("style")||"",a={};return e.removeAttribute("style"),e.style.display="block",a.height=e.offsetHeight,a.width=e.offsetWidth,["padding-top","padding-right","padding-bottom","padding-left","margin-top","margin-right","margin-bottom","margin-left"].forEach(function(e){a[e]=parseInt(t.getPropertyValue(e))}),e.setAttribute("style",n),a}},{key:"animateStyles",value:function(e,t,n,a,i,r){l.general.inProcess++,hfh.GeneralUtility.Styles.animate(e,t,n,a||this.options.duration,i,function(){l.general.inProcess--,"function"==typeof r&&r()})}},{key:"slideRight",value:function(e,t,n,a,i){var r=this.getDimensions(e);this.animateStyles(e,{display:"block",transform:"translateX("+(n?0:r.width/-1)+"px)"},{transform:"translateX("+(n?r.width/-1:0)+"px)"},t,a,i)}},{key:"blindDown",value:function(e,t,n,a,i){var r={overflow:"hidden",display:"block"},s={},l=this.getDimensions(e);["height","padding-top","padding-bottom","margin-top","margin-bottom"].forEach(function(e){r[e]=(n?l[e]:0)+"px",s[e]=(n?0:l[e])+"px"}),this.animateStyles(e,r,s,t,a,i)}},{key:"animateListItems",value:function(n,a){var i=this;t||(n.style.overflow="hidden",_toConsumableArray(n.getElementsByTagName("li")).forEach(function(e,t){i.animateStyles(e,{transform:"translateX("+(a?"":"-")+"20%)",opacity:0},{"transition-delay":t*i.options.duration/5+"ms",transform:"translateX(0%)",opacity:1},null,!0,function(){n.style.removeProperty("overflow")})}))}},{key:"undefinedMethode",value:function(e){return hfh.GeneralUtility.log('The function "'+e+'" have to be defined in the class "'+this.constructor.name+'".',1573729196,"warn")}},{key:"showLevel",value:function(){return this.undefinedMethode("showLevel")}},{key:"closeAllLevel",value:function(){return this.undefinedMethode("closeAllLevel")}},{key:"init",value:function(){return this.undefinedMethode("init")}}]),e}(),n=function(){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).baseClass="snv",e.classNames.back="🚀-navigation-back",e.classNames.pageWrap="🚀-page-wrap",e.classNames.search="🚀-header-search",e.classNames.l10n="🚀-header-l10n",l.small={opened:{}},e.prepareToggles=e.prepareToggles.bind(_assertThisInitialized(e)),e.showLevel=e.showLevel.bind(_assertThisInitialized(e)),e.closeLevel=e.closeLevel.bind(_assertThisInitialized(e)),e.init(),e}return _createClass(n,[{key:"prepareToggles",value:function(e,t){var a=this;_toConsumableArray((e||document).getElementsByClassName(t||this.classNames.toggle)).forEach(function(n){n.addEventListener("click",function(e){if(e.preventDefault(),!l.general.inProcess){var t=a.getLevel(n.hash);a.prepareToggles(t),a.showLevel(t,n)}})})}},{key:"addBackLink",value:function(t,e){var n=this,a=document.createElement("button");a.className=this.baseClass+"__backlink",a.lang="en",a.title="back",this.addEventListener(a,"touchstart click",function(e){e.preventDefault(),l.general.inProcess||n.closeLevel(t)});var i=document.createElement("a");i.className=this.baseClass+"__titlelink",i.innerHTML=e.innerHTML,i.href=e.href,i.hash=e.hash;var r=document.createElement("li");r.appendChild(a);var s=document.createElement("li");s.appendChild(i),t.insertBefore(s,t.firstElementChild),t.insertBefore(r,s),this.refreshPjax(t,!1)}},{key:"movePageWrap",value:function(a,i){var r=this,s=this.overlay||null;_toConsumableArray(document.getElementsByClassName(this.classNames.pageWrap)).forEach(function(e){var t=r.getDimensions(i),n=e.parentNode;r.animateStyles(e,{position:"relative",transform:"translateX("+(a?0:t.width)+"px)",zIndex:"100"},{transform:"translateX("+(a?t.width:0)+"px)"},null,!!a),a?(hfh.GeneralUtility.Styles.set(n,{overflow:"hidden"}),s||((s=document.createElement("button")).type="button",s.className=r.baseClass+"__overlay",r.addEventListener(s,"touchstart click",function(e){e.preventDefault(),r.closeAllLevel()}),r.animateStyles(s,{opacity:"0.1"},{opacity:"1"},2*r.options.duration,!0),e.appendChild(s),r.overlay=s)):(hfh.GeneralUtility.Styles.remove(n,["overflow"]),s&&r.animateStyles(s,{},{opacity:"0"},null,!0,function(){e.removeChild(s),r.overlay=null}))})}},{key:"showLevel",value:function(e,t){var n=Object.keys(l.small.opened).length;if(0===n){var a=document.getElementsByClassName(this.classNames.search)[0];e.insertBefore(this.getLevel(null,a),e.firstElementChild);var i=document.getElementsByClassName(this.classNames.l10n)[0];e.appendChild(this.getLevel(null,i))}else this.addBackLink(e,t);document.body.insertBefore(e,document.body.firstElementChild),hfh.GeneralUtility.triggerEvent("navigation:contentready",e),hfh.OverlaySelect.init(!0),0===n?this.movePageWrap(!0,e):(this.slideRight(e),this.animateListItems(e)),l.small.opened[n]=e}},{key:"closeLevel",value:function(e){function t(){e.parentNode.removeChild(e)}var n=Object.keys(l.small.opened).length-1;n?this.slideRight(e,null,!0,!1,t):(this.movePageWrap(!1,e),setTimeout(t,this.options.duration)),delete l.small.opened[n]}},{key:"closeAllLevel",value:function(){var a=this;Object.keys(l.small.opened).forEach(function(e,t){var n=l.small.opened[t];0===t&&a.movePageWrap(!1,n),setTimeout(function(){n.parentNode.removeChild(n)},a.options.duration),delete l.small.opened[t]})}},{key:"init",value:function(){this.prepareToggles(null,"🚀-snv-toggle")}}]),n}(),a=function(){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).baseClass="lnv",e.options.data={selected:"selected"},l.large={level1Links:[],level2Links:[],level2Opened:!1,level3Opened:!1,teaserDummyContent:null,currentTeaserUid:null},e.container={layer:null,teaser:null,level2:null,level3:null,content:null,overlay:null},e.openLevel2=e.openLevel2.bind(_assertThisInitialized(e)),e.closeLevel2=e.closeLevel2.bind(_assertThisInitialized(e)),e.openLevel3=e.openLevel3.bind(_assertThisInitialized(e)),e.closeLevel3=e.closeLevel3.bind(_assertThisInitialized(e)),e.loadTeaser=e.loadTeaser.bind(_assertThisInitialized(e)),e.init(),e}return _createClass(n,[{key:"addToggleEvents",value:function(r,s,l){var o=this;r.forEach(function(i){i.setAttribute("aria-expanded","false"),i.setAttribute("aria-controls",i.hash.substr(1)),o.addEventListener(i,"touchstart click",function(e){e.preventDefault();var t=i.dataset,n=o.options.data.selected,a=!!t[n];r.forEach(function(e){return delete e.dataset[n]}),i.setAttribute("aria-expanded",(!a).toString()),a?l():(t[n]="true",s(i))})})}},{key:"addHoverEvents",value:function(e,n){var a=this;e.forEach(function(e){a.addEventListener(e,"touchstart mouseenter",function(e){var t=e.target.dataset;n&&!t[a.options.data.selected]||a.loadTeaser(t.uid)})})}},{key:"openLevel2",value:function(e){var t=this.getLevel(e.hash),n=this.container.level2;this.closeLevel3(),this.openOverlay(),hfh.GeneralUtility.removeChilds(n).appendChild(t),hfh.GeneralUtility.triggerEvent("navigation:contentready",n),this.isContentLevel(t)?(this.container.teaser.style.display="none",this.container.level2.dataset.fullContentWidth="true"):(this.container.teaser.style.display="block",delete this.container.level2.dataset.fullContentWidth,l.large.level2Links=_toConsumableArray(t.getElementsByTagName("a")),this.addToggleEvents(_toConsumableArray(t.getElementsByClassName(this.classNames.toggle)),this.openLevel3,this.closeLevel3),this.addHoverEvents(l.large.level2Links,!1)),l.large.level2Opened?this.animateListItems(n,!0):this.blindDown(this.container.layer,this.options.duration,!1,["display"]),l.large.level2Opened=!0,this.loadTeaser(e.dataset.uid)}},{key:"closeLevel2",value:function(){this.closeAllLevel()}},{key:"openLevel3",value:function(e){var t=this.getLevel(e.hash),n=this.container.level3;this.loadTeaser(e.dataset.uid),hfh.GeneralUtility.removeChilds(n).appendChild(t),hfh.GeneralUtility.triggerEvent("navigation:contentready",n);var a=_toConsumableArray(t.getElementsByTagName("a"));this.addHoverEvents(a,!1),l.large.level3Opened||this.slideRight(n,this.options.duration,!1,["display"]),this.animateListItems(n),l.large.level3Opened=!0}},{key:"closeLevel3",value:function(){l.large.level3Opened&&this.slideRight(this.container.level3,this.options.duration,!0),l.large.level3Opened=!1}},{key:"loadTeaser",value:function(t){var n=this;if(!l.large.level2Opened||l.large.currentTeaserUid===t)return!1;var e=hfh.Navigation.navigationTeaserJSONRequest;l.large.currentXhrRequest&&(l.large.currentXhrRequest.abort(),l.large.currentXhrRequest=null),l.large.currentXhrRequest=hfh.GeneralUtility.loadJson(e,function(e){n.drawTeaser(e),l.large.currentTeaserUid=t},{id:t})}},{key:"resetTeaser",value:function(){hfh.GeneralUtility.removeChilds(this.container.teaser).appendChild(l.large.teaserDummyContent),l.large.currentTeaserUid=null}},{key:"drawTeaser",value:function(t){hfh.GeneralUtility.removeChilds(this.container.teaser);var n,a="";a+='<a class="'+this.baseClass+'__teaser-imagewrap" href="'+t.link+'" style="background-image:url('+t.image[0]+')">',a+="<picture>",Object.keys(t.image).reverse().forEach(function(e){0<e&&(a+='<source srcset="'+t.image[e]+'" media="(min-width: '+e+'px)" />',n=e)}),a+='<img src="'+t.image[n]+'" class="'+this.baseClass+'__teaser-image" alt="" style="opacity: 0; transition: opacity 0.8s ease-out" onload="this.style.opacity=1" />',a+="</picture>",a+="</a>",a+='<span class="'+this.baseClass+'__teaser-title">'+t.title+"</span>",a+='<p class="'+this.baseClass+'__teaser-description">'+t.description+"</p>",a+='<a class="'+this.baseClass+'__teaser-link" href="'+t.link+'" lang="en"><span>See more</span></a>',this.container.teaser.insertAdjacentHTML("beforeend",a),hfh.GeneralUtility.initializeContent(this.container.teaser)}},{key:"openOverlay",value:function(){this.overlayOpened||(this.overlayOpened=!0,this.animateStyles(this.container.overlay,{display:"block",opacity:"0"},{opacity:"1"},null,["display"]))}},{key:"closeOverlay",value:function(){var e=this;this.overlayOpened&&(this.overlayOpened=!1,this.animateStyles(this.container.overlay,{display:"block",opacity:"1"},{opacity:"0"},null,null,function(){hfh.GeneralUtility.Styles.set(e.container.overlay,{display:"none"})}))}},{key:"closeAllLevel",value:function(){var t=this;l.large.level1Links.forEach(function(e){return delete e.dataset[t.options.data.selected]&&e.setAttribute("aria-expanded","false")}),l.large.level2Opened&&this.blindDown(this.container.layer,null,!0,null,function(){l.large.level2Opened=!1,t.resetTeaser()}),this.closeOverlay()}},{key:"init",value:function(){if(this.container.overlay=document.getElementById("🚀-lnv-overlay"),this.container.layer=document.getElementById("🚀-lnv-layer"),this.container.teaser=document.getElementById("🚀-lnv-teaser"),this.container.level2=document.getElementById("🚀-lnv-wrap-2"),this.container.level3=document.getElementById("🚀-lnv-wrap-3"),this.container.layer&&this.container.teaser){var e=document.createElement("div");e.insertAdjacentHTML("beforeend",this.container.teaser.innerHTML),l.large.teaserDummyContent=e;var t=document.getElementById("🚀-lnv-level-1"),n=this.getLevel("#navigation-0");hfh.GeneralUtility.removeChilds(t).appendChild(n),l.large.level1Links=_toConsumableArray(n.getElementsByClassName(this.classNames.toggle)),this.addToggleEvents(l.large.level1Links,this.openLevel2,this.closeLevel2),this.addHoverEvents(l.large.level1Links,!0),this.addEventListener(this.container.overlay,"touchstart click",this.closeAllLevel)}}}]),n}(),i=function(){function e(){_classCallCheck(this,e),this.navgations=[],this.close=this.close.bind(this),this.init()}return _createClass(e,[{key:"close",value:function(){this.navgations.forEach(function(e){e.closeAllLevel()})}},{key:"init",value:function(){var t=this;this.navgations.push(new n),this.navgations.push(new a),document.addEventListener("keydown",function(e){("key"in e&&("Escape"===e.key||"Esc"===e.key)||27===e.keyCode)&&t.close()})}}]),e}(),r=new i;i.getInstance=function(){return r},document.addEventListener("page:ajax:complete",r.close),document.addEventListener("page:resizex",r.close),window.hfh=window.hfh||{},window.hfh.Navigation=i}();
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}!function(){if("IntersectionObserver"in window&&!hfh.GeneralUtility.prefersReducedMotion()){var e=function(){for(var e=[],t=1;t<=200;t++){var r=t/200;e.push(r)}return e.push(0),e}(),t=new IntersectionObserver(function(e){e.forEach(function(e){var t=e.isIntersecting&&e.boundingClientRect.y<window.scrollY?1-e.intersectionRatio:0;e.target.style[r]="translateY("+t*e.boundingClientRect.height/3+"px)"})},{root:null,rootMargin:"0px",threshold:e}),r="string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform";document.addEventListener("page:ready",function(){_toConsumableArray(document.getElementsByClassName("🚀-hero-media-wrap")).forEach(function(e){e.parentNode.style.overflow="hidden",t.observe(e)})}),document.addEventListener("page:ajax:send",function(){t.takeRecords()&&t.disconnect()})}function n(){var e=document.getElementsByClassName("🚀-hero-videos")[0],t=new hfh.Slider(e,{cellSelector:".🚀-hrovdo-item",watchCSS:!1,draggable:!1,autoPlay:1e3*e.dataset.interval,prevNextButtons:!0});t.on("change",function(e){!function(e,t){var r=t.cells[e].element.getElementsByClassName("🚀-hrovdo-preview")[0];if(r){var n=document.createElement("video");n.className="🚀-hrovdo-media hrovdo__media",n.poster=r.attributes.src.value,n.autoplay=!0,n.muted=!0,n.loop=!0,n.playsInline=!0;var o=document.createElement("source");o.src=-1!==r.dataset.video.indexOf("/fileadmin")?r.dataset.video:"/fileadmin"+r.dataset.video,o.type="video/mp4",n.appendChild(o),r.parentNode.appendChild(n),r.parentNode.removeChild(r)}}(e,t)}),t.on("settle",function(e){!function(e,t){e=0===e?t.cells.length-1:e-1;var r=t.cells[e].element.getElementsByClassName("🚀-hrovdo-media")[0];if(r){var n=document.createElement("img");n.className="🚀-hrovdo-preview hrovdo__preview",n.src=r.poster,n.dataset.video=r.firstElementChild.src,r.parentNode.appendChild(n),r.parentNode.removeChild(r)}}(e,t)}),document.getElementsByClassName("🚀-hero-controls")[0].appendChild(t.prevButton.element),document.getElementsByClassName("🚀-hero-controls")[0].appendChild(t.nextButton.element)}document.addEventListener("DOMContentLoaded",n),document.addEventListener("page:ajax:complete",n)}();
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(){function e(){function n(){return i.style.removeProperty("display")}o.setAttribute("aria-controls",i.id),o.setAttribute("aria-expanded","false"),o.addEventListener("click",function(e){e.preventDefault();var t=i.offsetHeight;return o.setAttribute("aria-expanded",(!t).toString()),!(t?n():i.style.display="block")}),_toConsumableArray(i.getElementsByTagName("a")).forEach(function(e){return e.addEventListener("click",n)})}var o=document.getElementById("🚀-sidebar-toggle"),i=document.getElementById("🚀-sidebar-list"),n=_toConsumableArray(document.getElementsByClassName("🚀-sidebar-shoplink")),t=_toConsumableArray(document.getElementsByClassName("🚀-sidebar-link")),l=function(t,e){hfh.GeneralUtility.removeChilds(t),_toConsumableArray(e.children).forEach(function(e){return t.appendChild(e)}),hfh.GeneralUtility.initializeContent(t);var n=[].concat(_toConsumableArray(t.getElementsByTagName("form")),"form"===t.nodeName.toLowerCase()?t:[]);n.length&&function(e){_toConsumableArray(e).forEach(function(n){hfh.Form.init(n),hfh.Location.update(),n.addEventListener("submit",function(e){e.preventDefault();var t={};[].concat(_toConsumableArray(n.getElementsByTagName("input")),_toConsumableArray(n.getElementsByTagName("textarea")),_toConsumableArray(n.getElementsByTagName("select")),_toConsumableArray(n.getElementsByTagName("button"))).forEach(function(e){e.name&&(t[e.name]=e.value)}),hfh.GeneralUtility.Styles.set(n,{opacity:"0.5",pointerEvents:"none"}),hfh.GeneralUtility.loadContent(n.action,"#"+n.id,function(e,t){if(!e)return confirm("The form could not be send:\n"+t.text+" (code:"+t.code+").\n\nDo you want to reload the page?")&&window.location.reload();l(n.parentNode,e.parentNode)},t,!0)})})}(n)};document.addEventListener("locations:update",function(e){var t=e.detail.country.isoCodeA2;t&&"DE"!==t&&"US"!==t?n.forEach(function(e){e.style.display="none",i.setAttribute("data-shop","0")}):n.forEach(function(e){e.style.display="block",e.href="DE"===t?"https://shop.helmut-fischer.de":"https://shop.fischer-technology.com",i.setAttribute("data-shop","1")})}),document.addEventListener("page:ready",function(){t.forEach(function(t){var r=hfh.GeneralUtility.randomString("sidebar"),a=document.createElement("div");a.style.display="none",a.id=r,a.insertAdjacentHTML("beforeEnd",'<span class="js-sidebar-overlay-loading" lang="en">loading …</span>'),document.body.appendChild(a),t.addEventListener("click",function(e){e.preventDefault();var n=new hfh.Overlay(r,t,function(){hfh.GeneralUtility.loadContent(t.dataset.href,"#content",function(e,t){e?l(a,e):(alert("Oops, an error occurred :(\n\n(code:"+t.code+")\n"+t.text),n.destroy())})});setTimeout(function(){!i.offsetHeight&&o.offsetHeight&&n.replaceTarget(o)},100)})}),e()},{once:!0})}();
"use strict";function _defineProperty(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var location,selector="🚀-location-data",getKeyValue=function(e){if(e){for(var t,o=e.trim().split("."),n=location;t=o.shift();)n=n[t];if(n)return"object"===_typeof(n)?JSON.stringify(n):n.toString().replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1<br />$2")}return null},getLocationValue=function(e){var t=e.match(/^\[(.*%s.*)\],(.{2,})$/);if(t){var o=t[1];return t[2].split(",").forEach(function(e){o=o.replace("%s",getKeyValue(e))}),o}return getKeyValue(e)},updateLocations=function updateLocations(){location&&(hfh.GeneralUtility.triggerEvent("locations:update",location),_toConsumableArray(document.getElementsByClassName(selector)).forEach(function(element){var dataset=element.dataset;if(dataset.value){var value=getLocationValue(dataset.value);"select"===element.nodeName.toLowerCase()?(element.value=value,"function"==typeof hfh.InlineSelect.set&&(hfh.InlineSelect.set(),hfh.OverlaySelect.toggleStates())):element.innerHTML=value}if("a"===element.nodeName.toLowerCase()&&dataset.href){var href=getLocationValue(dataset.href)||"";element.href=href.indexOf("javascript:linkTo_UnCryptMailto")<0?encodeURI(href):href}if(dataset.condition){var elementStyle=element.style;eval(!!getLocationValue(dataset.condition))?elementStyle.removeProperty("display"):elementStyle.display="none"}}))},loadLocation=function(e,t,o){hfh.GeneralUtility.loadJson(hfh.Location.getUrl(),function(e){location=e,"function"==typeof o&&o(e)},_defineProperty({},t||"hyper_hyper",e||0),!0)},setLocation=function(e,t){document.body.style.opacity="0.6",loadLocation(e,t,function(){document.body.style.removeProperty("opacity"),updateLocations()})};document.addEventListener("page:ready",function(){loadLocation(null,null,updateLocations)},{once:!0}),document.addEventListener("page:ajax:complete",updateLocations),window.hfh=window.hfh||{},window.hfh.Location=window.hfh.Location||{},window.hfh.Location.set=setLocation,window.hfh.Location.load=loadLocation,window.hfh.Location.update=updateLocations,window.hfh.Location.get=function(){return location}}();
"use strict";function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}!function(){function a(t){return hfh.GeneralUtility.loadJavaScript("/typo3conf/ext/hfh_products/Resources/Public/JavaScript/Class/Class.Filter.dist.js",t)}function t(t,n){_toConsumableArray((t instanceof HTMLElement?t:document).getElementsByClassName("🚀-product-list")).forEach(function(r){!n&&r.dataset[o]||function(t){hfh.GeneralUtility.loadJavaScript("/typo3conf/ext/hfh_products/Resources/Public/JavaScript/Class/Class.List.dist.js",t)}(function(){r.dataset[o]="true";var t=hfh.GeneralUtility.getClosest(r,".🚀-product-filter"),e=new hfh.Products.List(r,".🚀-product-list",".🚀-product-pagination");e.initPagination(),!t||!n&&t.dataset[o]||a(function(){t.dataset[o]="true",new hfh.Products.Filter(t,e)})})})}function e(t,e){_toConsumableArray((t instanceof HTMLElement?t:document).getElementsByClassName("🚀-takeoff-form")).forEach(function(t){!e&&t.dataset[o]||a(function(){t.dataset[o]="true",new hfh.Products.Takeoff(t)})})}function r(t){_toConsumableArray((t instanceof HTMLElement?t:document).getElementsByClassName("🚀-product-search")).forEach(function(r){r.addEventListener("click",function(t){if(t.preventDefault(),i&&i.id)i.replaceTarget(r).open(),setTimeout(function(){i.overlay.getElementsByClassName("🚀-filter-input")[0].select()},500);else{var e=hfh.GeneralUtility.randomString("product-search"),n=hfh.GeneralUtility.getClosest(r,".🚀-product-search-overlay");n.id=e,i=new hfh.Overlay(e,r,function(){!function(t){hfh.GeneralUtility.loadJavaScript("/typo3conf/ext/hfh_products/Resources/Public/JavaScript/Class/Class.Search.dist.js",t)}(function(){var e=n.getElementsByClassName("🚀-filter-input")[0],r=n.getElementsByClassName("🚀-filter-dummy")[0],t=e.dataset.products;r.insertAdjacentHTML("beforeEnd",'<a class="prdsrh__link" href="{url}">{title}</a>'),e.select(),hfh.GeneralUtility.loadJson(t,function(t){new hfh.Products.Search(e,r,t)})})})}})})}var o="initialized",i=null;document.addEventListener("navigation:contentready",function(t){e(t.detail,!0),r(t.detail)}),document.addEventListener("locations:update",function(t){var r=t.detail.country.isoCodeA2;r&&"DE"!==r&&"US"!==r?_toConsumableArray(document.getElementsByClassName("🚀-product-shoplink")).forEach(function(t){t.style.display="none"}):_toConsumableArray(document.getElementsByClassName("🚀-product-shoplink")).forEach(function(t){t.style.display="block";var e=new URL(t.querySelector(".prdcthro__shoplink").href);t.querySelector(".prdcthro__shoplink").href="DE"===r?"https://shop.helmut-fischer.de"+e.pathname:"https://shop.fischer-technology.com"+e.pathname})}),document.addEventListener("page:ready",function(){_toConsumableArray(document.getElementsByClassName("🚀-navigation-content")).forEach(function(t){_toConsumableArray(t.getElementsByClassName("🚀-takeoff-form")).forEach(function(t){return t.dataset[o]="true"})})},{once:!0}),document.addEventListener("page:ready",function(){t(),e(),r()})}();
"use strict";Zeroseven.Blog.Utility.register("addToList",function(i,s,e,t,o){var n=o||window.event,a={button:t||n.target,list:document.querySelector(i),control:document.querySelector(s)};window.history.replaceState(null,null,a.button.href),void 0!==n&&n.preventDefault(),a.button.href="javascript:void(0)",a.button.removeAttribute("onclick"),a.button.style.cursor="no-drop",e&&(a.button.innerText=e),Object.keys(a).forEach(function(e){return a[e].dataset.loading="true"}),Zeroseven.Blog.Utility.loadContents(a.button.dataset.href,null,function(e,t){var o,n,r,l;t<400?(Object.keys(a).forEach(function(e){return delete a[e].dataset.loading}),o=Zeroseven.Blog.Utility.appendChilds(e[i],a.list),n=Zeroseven.Blog.Utility.appendChilds(e[s],Zeroseven.Blog.Utility.removeChilds(a.control)),r=window.scrollY,l=window.scrollX,((!o[0]||"a"!==o[0].nodeName.toLowerCase())&&o[0].querySelector("a")||o[0]).focus(),window.scroll(l,r),Zeroseven.Blog.Utility.trigger("addToList:complete",{elements:a,items:o,controls:n})):confirm("The requested site could not be loaded:\n"+t+").\n\nDo you want to try again?")&&(window.location.href=a.button.href)},i,s)});
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,r):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}Zeroseven.Blog.Utility.register("ajaxSubmit",function(e,r){var t=r||window.event,o=e||t.target,n=Zeroseven.Blog.Utility;void 0!==t&&t.preventDefault();var a={};[].concat(_toConsumableArray(o.getElementsByTagName("input")),_toConsumableArray(o.getElementsByTagName("textarea")),_toConsumableArray(o.getElementsByTagName("select")),_toConsumableArray(o.getElementsByTagName("button"))).forEach(function(e){e.name&&(a[e.name]=e.value)}),o.style.opacity="0.5",o.style.pointerEvents="none",n.loadContents(o.action,a,function(r,e){return e<400&&r?void Object.keys(r).forEach(function(e){return n.appendChilds(r[e].parentNode,n.removeChilds(o.parentNode))}):confirm("The form could not be send:\n"+e.text+" (code:"+e.code+").\n\nDo you want to reload the page?")&&window.location.reload()},"#"+o.id)});
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),e}!function(){var s=(_createClass(i,[{key:"destroy",value:function(){this.unset(!0),this.field=null,this.form=null,this.formWrap=null,this.formWrapNextSibling=null,this.titleWrap=null}},{key:"unset",value:function(e){this.field.value=0,this.titleWrap.parentNode.removeChild(this.titleWrap),this.titleWrap=null,e&&this.formWrap&&this.formWrapNextSibling.parentNode.insertBefore(this.formWrap,this.formWrapNextSibling)}},{key:"set",value:function(e,t,i){var r,o,n=this,l=parseInt(e);this.field.value=l,i&&this.formWrap&&t.parentNode.appendChild(this.formWrap),t.title&&((r=this.titleWrap?Zeroseven.Blog.Utility.removeChilds(this.titleWrap):document.createElement("h3")).setAttribute("role","status"),r.className="js-comment-reply-title",r.textContent=t.title+" ",(o=r.appendChild(document.createElement("a"))).className="js-comment-reply-clear",o.textContent="×",o.tabIndex=0,o.href="javascript:void(0)",o.addEventListener("click",function(){n.unset(i)}),this.titleWrap||this.field.parentNode.insertBefore(r,this.field),this.titleWrap=r);var s=this.form||this.field.parentNode;"function"==typeof _typeof(Element.prototype.scrollIntoView)?s.scrollIntoView({behavior:"smooth"}):window.scrollTo({top:s.getBoundingClientRect().top+window.scrollY,left:0,behavior:"smooth"})}}]),i);function i(e,t){_classCallCheck(this,i),this.field=e,this.form=t||(Element.prototype.closest?e.closest("form"):null),this.formWrap=this.form?this.form.parentNode:null,this.formWrapNextSibling=this.formWrap.nextElementSibling||this.formWrap.parentNode.appendChild(document.createElement("div")),this.titleWrap=null}var a=null;Zeroseven.Blog.Utility.register("reply",function(e,t,i,r,o){var n=o||window.event,l=a=a||new s(document.querySelector(e));void 0!==n&&n.preventDefault(),l.set(t,r||n.target,i)}),Zeroseven.Blog.Utility.register("resetReply",function(){a&&a.destroy(),a=null})}();
"use strict";document.addEventListener("z7_blog:ajax:complete",function(e){e.detail&&e.detail.contents&&Object.keys(e.detail.contents).forEach(function(t){hfh.GeneralUtility.initializeContent(e.detail.contents[t])})});
"use strict";document.addEventListener("z7_events:ajax:complete",function(e){e.detail.elements&&e.detail.elements.list&&hfh.GeneralUtility.initializeContent(e.detail.elements.list)});
"use strict";document.addEventListener("z7_file_gorilla:action",function(e){pjax.request.abort()}),document.addEventListener("z7_file_gorilla:overlay:complete",function(e){hfh.GeneralUtility.initializeContent(e.detail)});
"use strict";function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(o){var r=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(o);if(r){var n=_getPrototypeOf(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _possibleConstructorReturn(this,e)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}document.addEventListener("DOMContentLoaded",function(){"undefined"!=typeof GoogleMapsFalRenderer&&GoogleMapsFalRenderer.renderAll()}),function(){var n=[],i=function(){function t(e){return _classCallCheck(this,t),this.options={lat:0,lng:0,infowindow:null,marker:null,zoom:50},n.push(this),this.wrapper="string"!=typeof e&&document.body.contains(e)?e:this.querySelector(e),this.infowindow=null,this.marker=null,this.cookieString="mapApproved",this.wrapper?(this.overrideOptions=this.overrideOptions.bind(this),this):this.warn("Map can not be created, because the wrapper is not available",1546949968)}return _createClass(t,[{key:"querySelector",value:function(e){return"function"==typeof document.querySelector?document.querySelector(e)||null:"#"===e.substr(0,1)?document.getElementById(e.substr(1))||null:"."===e.substr(0,1)&&document.getElementsByClassName(e.substr(1))[0]||null}},{key:"overrideOptions",value:function(n,o){var r=this;return o||(o=this.options),n&&"object"===_typeof(n)&&"object"===_typeof(o)&&Object.keys(n).forEach(function(e,t){"object"===_typeof(o[e])&&null!==o[e]?r.overrideOptions(n[e],o[e]):o[e]=n[e]}),this}},{key:"parseJson",value:function(e){try{return JSON.parse(e)}catch(e){return this.warn(e,1546949992)}}},{key:"addJavaScript",value:function(e,t){var n="script"+e.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0),o=document.getElementById(n)||null,r="data-loading-complete";if(o&&"function"==typeof t&&(o.getAttribute(r)?t(e,n):o.addEventListener("load",function(){t(e,n)})),!o){var i=document.createElement("script");i.type="text/javascript",i.id=n,i.src=e,i.addEventListener("load",function(){this.setAttribute(r,"true"),"function"==typeof t&&t(e,n)}),document.getElementsByTagName("head")[0].appendChild(i)}}},{key:"loadJson",value:function(e,t){var n=this,o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&200===o.status&&"function"==typeof t&&t(n.parseJson(o.responseText))},o.open("Get",e),o.send()}},{key:"warn",value:function(e,t){if(e&&"function"==typeof console.warn)return console.warn("z7_falmap: "+e,t||null),e}},{key:"log",value:function(e,t){if(e&&"function"==typeof console.log)return console.log("z7_falmap: "+e,t||null),e}},{key:"setCookie",value:function(e){document.cookie=(e||this.cookieString)+"=1; max-age=172800; path=/"}},{key:"cookieIsSet",value:function(e){return 0<=document.cookie.search(e||this.cookieString)}},{key:"getSafe",value:function(e){return"object"===_typeof(e)&&(e=-1!==document.documentElement.lang.indexOf("en")?e[0].source:e[0].target),e}},{key:"requireApproval",value:function(t){if(this.wrapper.dataset.mapApproved="false",this.cookieIsSet())return this.wrapper.dataset.mapApproved="true",t();var e=document.createElement("div");e.classList.add("z7flmp__container");var n=document.createElement("div");n.classList.add("z7flmp__inner");var o=document.createElement("a");o.classList.add("z7flmp__button"),o.innerText=this.getSafe(TYPO3.lang["z7_falmap.overlay.link"]),o.href="#accept-connection",o.addEventListener("click",function(e){return e.preventDefault(),this.setCookie(),this.wrapper.dataset.mapApproved="true",a.approveAll(),t()}.bind(this));var r=document.createElement("p");r.classList.add("z7flmp__text"),r.innerHTML=this.getSafe(TYPO3.lang["z7_falmap.overlay.text"]);var i=document.createElement("p");return i.classList.add("z7flmp__hint"),i.innerHTML=this.getSafe(TYPO3.lang["z7_falmap.overlay.hint"]),this.wrapper.appendChild(e),e.appendChild(n),n.appendChild(o),n.appendChild(r),n.appendChild(i),!1}},{key:"init",value:function(){var e=this;if(this.overrideOptions(this.parseJson(this.wrapper.getAttribute("data-map-options"))),this.infowindow=this.querySelector(this.options.infowindow)||null,this.marker=this.querySelector(this.options.marker)||null,"function"==typeof falmapConnectionApproval&&!falmapConnectionApproval(this.constructor.name,this,this.init))return this.log("Connection to Google Maps is waiting for approval.",1546949947);this.requireApproval(function(){e.init(!0)})}}]),t}(),a=function(e){_inherits(r,i);var o=_createSuper(r);function r(e,t){var n;return _classCallCheck(this,r),(n=o.call(this,e)).overrideOptions({apikey:null,styling:null,zoom:14,mapConfig:{mapTypeId:"roadmap",zoomControl:1,mapTypeControl:0,streetViewControl:0,zoomControlOptions:{style:1,position:9}}}),n.overrideOptions(t),n.init=n.init.bind(_assertThisInitialized(n)),n.init(),n}return _createClass(r,[{key:"renderMarker",value:function(e){var t=null;if(this.marker){var n=this.marker.getAttribute("width"),o=this.marker.getAttribute("height");t={url:this.marker.getAttribute("srcset")&&this.marker.getAttribute("srcset").match(/^(.*)\s2x$/)[1]||this.marker.getAttribute("src"),size:new google.maps.Size(n,o),scaledSize:new google.maps.Size(n,o)}}return new google.maps.Marker({position:new google.maps.LatLng(this.options.lng,this.options.lat),map:e,icon:t})}},{key:"renderInfoWindow",value:function(e,t){var n=this;if(!this.infowindow)return null;var o=!1,r=new google.maps.InfoWindow({content:this.infowindow.innerHTML,disableAutoPan:!1});return google.maps.event.addListener(t,"click",function(){o=o||"function"==typeof falmapOpenInfowindow&&!falmapOpenInfowindow(r,n)?(r.close(),!1):(r.open(e,t),!0)}),r}},{key:"renderMap",value:function(e){var t=this.options.mapConfig;t.center=new google.maps.LatLng(this.options.lng,this.options.lat),t.zoom=Math.round((t.maxZoom||18)/100*this.options.zoom),"function"==typeof falmapBeforeMapRendering&&falmapBeforeMapRendering("googlemaps",this);var n=new google.maps.Map(this.wrapper,t);e&&(n.mapTypes.set("styled_map",new google.maps.StyledMapType(e)),n.setMapTypeId("styled_map"));var o=this.renderMarker(n);this.renderInfoWindow(n,o);return this.wrapper.setAttribute("data-map-rendering","complete"),n}},{key:"init",value:function(e){var t=this;e?this.addJavaScript("https://maps.googleapis.com/maps/api/js?key="+this.options.apikey,function(){return"undefined"==typeof google?t.warn("Google Maps is not available!",1546949939):(t.options.styling&&t.loadJson(t.options.styling,function(e){if(e)return t.renderMap(e)}),t.renderMap(null))}):i.prototype.init.call(this)}}]),r}();a.renderAll=function(e){Array.prototype.slice.call(document.querySelectorAll(e||".js-z7gglmp")).forEach(function(e){var t="data-map-loaded";e.getAttribute(t)||(new a(e),e.setAttribute(t,"true"))})},a.approveAll=function(){[].concat(n).forEach(function(e){"false"===e.wrapper.dataset.mapApproved&&(e.wrapper.dataset.mapApproved="true",e.init(!0))})},window.GoogleMapsFalRenderer={approveAll:a.approveAll,renderAll:a.renderAll}}();
    /*hfh_header_setup*/
    window.hfh=window.hfh||{};
    window.hfh.Navigation=window.hfh.Navigation||{};window.hfh.Navigation.navigationTeaserJSONRequest='https://www.helmut-fischer.com/?L=2&type=1576101562';    /*hfh_locations_setup*/
    window.hfh=window.hfh||{};
    window.hfh.Location=window.hfh.Location||{};window.hfh.Location.getUrl=function(){return 'https://www.helmut-fischer.com/de/?tx_hfhlocations_pi1%5Baction%5D=update&type=74858860&cHash=ed22ae8a33e6a1442229b682b43b113d'};