Your IP : 216.73.216.158


Current Path : /home/megadansyp/www/media/com_eventgallery/dist/
Upload File :
Current File : /home/megadansyp/www/media/com_eventgallery/dist/eventgallery-debug.js

/*! For license information please see eventgallery-debug.js.LICENSE.txt */
(function(){var __webpack_modules__={"./common/js/Helpers.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function removeElement(t,e){var i=t.indexOf(e);i>-1&&t.splice(i,1)}function mergeObjects(t,e){if(null===e||null===t)return t;for(var i in e)t[i]=e[i];return t}function getElementWidth(t){return t?parseFloat(getComputedStyle(t,null).width.replace("px","")):0}function getElementHeight(t){return t?parseFloat(getComputedStyle(t,null).height.replace("px","")):0}function calcBorderWidth(t,e){for(var i=0,n=0;n<t.length;n++)for(var o=getComputedStyle(t[n],null),r=0;r<e.length;r++){var s=parseFloat(o[e[r]]);isNaN(s)||(i+=s)}return i}function addUrlHashParameter(t,e,i){var n=removeUrlHashParameter(t,e).split("#"),o=n[0],r=n.length>1?n[1].split("&"):[];return r.push(encodeURIComponent(e)+"="+encodeURIComponent(i)),r.length>0?o+"#"+r.join("&"):o}function getUrlHashParameterValue(t,e){var i,n=t.split("#"),o=n.length>1?n[1].split("&"):[];if(o.length>0)for(var r=encodeURIComponent(e)+"=",s=0;s<o.length;s++)0===o[s].indexOf(r,0)&&(i=o[s].replace(r,""));return i}function removeUrlHashParameter(t,e){var i=t.split("#"),n=i[0],o=i.length>1?i[1].split("&"):[];if(o.length>0){for(var r=encodeURIComponent(e)+"=",s=[],a=0;a<o.length;a++)0===o[a].indexOf(r,0)||s.push(o[a]);o=s}return o.length>0?n+"#"+o.join("&"):n}function addUrlParameter(t,e,i){var n,o=removeUrlParameter(t,e).split("#"),r=o[0].split("?");return n=1===r.length?r[0]+"?"+encodeURIComponent(e)+"="+encodeURIComponent(i):r.join("?")+"&"+encodeURIComponent(e)+"="+encodeURIComponent(i),o.length>1?n+"#"+o[1]:n}function removeUrlParameter(t,e){var i,n=t.split("#"),o=n[0].split("?");if(o.length>1){for(var r=encodeURIComponent(e)+"=",s=o[1].split("&"),a=0;a<s.length;a++)0===s[a].indexOf(r,0)&&s.splice(a,1);i=s.length>0?o[0]+"?"+s.join("&"):o[0]}else i=o[0];return n.length>1?i+"#"+n[1]:i}function setCSSStyle(t,e,i){for(var n=0;n<t.length;n++)t[n].style[e]=i}function getOuterHeight(t){var e=t.offsetHeight,i=getComputedStyle(t);return e+(parseInt(i.marginTop)+parseInt(i.marginBottom))}function getParents(t){var e=[];if(null===t)return e;for(;null!=t.parentElement;){var i=t.parentElement;e.push(i),t=i}return e}function getParent(t,e){for(var i=getParents(t),n=0;n<i.length;n++)if(i[n].matches(e))return i[n];return null}function insertAndExecute(htmlElement,newContent){htmlElement.innerHTML=newContent;for(var scripts=Array.prototype.slice.call(htmlElement.getElementsByTagName("script")),i=0;i<scripts.length;i++)if(""!==scripts[i].src){var tag=document.createElement("script");tag.src=scripts[i].src,document.getElementsByTagName("head")[0].appendChild(tag)}else try{eval(scripts[i].innerHTML)}catch(t){console.error(t)}}function forEach(t,e){if(!t)return 0;for(var i=0;i<t.length;i++)e(t[i],i);return t.length}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{addUrlHashParameter:function(){return addUrlHashParameter},addUrlParameter:function(){return addUrlParameter},calcBorderWidth:function(){return calcBorderWidth},forEach:function(){return forEach},getElementHeight:function(){return getElementHeight},getElementWidth:function(){return getElementWidth},getOuterHeight:function(){return getOuterHeight},getParent:function(){return getParent},getParents:function(){return getParents},getUrlHashParameterValue:function(){return getUrlHashParameterValue},insertAndExecute:function(){return insertAndExecute},mergeObjects:function(){return mergeObjects},removeElement:function(){return removeElement},removeUrlHashParameter:function(){return removeUrlHashParameter},removeUrlParameter:function(){return removeUrlParameter},serializeForm:function(){return serializeForm},setCSSStyle:function(){return setCSSStyle}});var serializeForm=function(t){for(var e=[],i=t.querySelectorAll("input,select,textarea"),n=0;n<i.length;n++){var o=i[n];if(o.name&&!o.disabled&&"file"!==o.type&&"reset"!==o.type&&"submit"!==o.type&&"button"!==o.type)if("select-multiple"===o.type)for(var r=0;r<o.options.length;r++)o.options[r].selected&&e.push(encodeURIComponent(o.name)+"="+encodeURIComponent(o.options[r].value));else("checkbox"!==o.type&&"radio"!==o.type||o.checked)&&e.push(encodeURIComponent(o.name)+"="+encodeURIComponent(o.value))}return e.join("&")}},"./frontend/js/EventgalleryBehavior.js":function(t,e,i){"use strict";i.r(e);var n=i("./frontend/js/photoswipe/PhotoSwipeGallery.js"),o=i("./frontend/js/Overlay.js"),r=i("./frontend/js/slider/SliderStarter.js"),s=i("./frontend/js/Polyfill.ts"),a=i("./frontend/js/EventgalleryLazyload.js"),l=i("./common/js/Helpers.js"),u=i("./frontend/js/EventgalleryEventsList.js"),c=i("./frontend/js/EventgalleryImageList.js"),h=i("./frontend/js/EventgalleryEventsTiles.js"),d=i("./frontend/js/EventgallerySquareList.js"),p=i("./frontend/js/EventgalleryTilesCollection.js"),f=i("./frontend/js/EventgalleryGooglePhotosProcessor.js");!function(t){document.addEventListener("DOMContentLoaded",(function(){function e(){a.default.watchImages()}(0,l.forEach)(document.querySelectorAll(".eventgallery-events-gridlist"),(function(t){var i=t.querySelectorAll(".event-thumbnails .event-thumbnail"),n={rowHeightPercentage:100,imagesetContainer:t.querySelector(".event-thumbnails"),imageset:i,initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(s.default.createNewEvent("scroll",null))}};i.length>0&&new u.default(n)})),(0,l.forEach)(document.querySelectorAll(".eventgallery-events-tiles-list"),(function(t){var i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),eventgalleryTilesCollection:null,initComplete:function(){e();var n={tiles:t.querySelectorAll(".eventgallery-tiles .eventgallery-tile"),tilesContainer:t.querySelector(".eventgallery-tiles")};i.eventgalleryTilesCollection=new p.default(n),i.eventgalleryTilesCollection.calculate(),window.addEventListener("load",(function(){i.eventgalleryTilesCollection.calculate()}))},resizeStart:function(){},resizeComplete:function(){i.eventgalleryTilesCollection.calculate(),document.dispatchEvent(s.default.createNewEvent("scroll",null))}};new h.default(i)})),(0,l.forEach)(document.querySelectorAll(".eventgallery-event-tiles-list"),(function(t){var i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),adjustMode:"width",eventgalleryTilesCollection:null,initComplete:function(){var n={tiles:t.querySelectorAll(".eventgallery-tiles .eventgallery-tile"),tilesContainer:t.querySelector(".eventgallery-tiles")};i.eventgalleryTilesCollection=new p.default(n),i.eventgalleryTilesCollection.calculate(),window.addEventListener("load",(function(){i.eventgalleryTilesCollection.calculate()})),e()},resizeStart:function(){},resizeComplete:function(){i.eventgalleryTilesCollection.calculate(),document.dispatchEvent(s.default.createNewEvent("scroll",null))}};new h.default(i)})),(0,l.forEach)(document.querySelectorAll(".eventgallery-event-gridlist"),(function(t){var i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),adjustMode:"height",initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(s.default.createNewEvent("scroll",null))}};new h.default(i)})),(0,l.forEach)(document.querySelectorAll(".eventgallery-imagelist"),(function(t){var i={rowHeight:parseInt(t.getAttribute("data-rowheight")),rowHeightJitter:parseInt(t.getAttribute("data-rowheightjitter")),firstImageRowHeight:parseInt(t.getAttribute("data-firstimagerowheight")),doFillLastRow:"true"===t.getAttribute("data-dofilllastrow"),imagesetContainer:t,imageset:t.querySelectorAll(".thumbnail"),initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(s.default.createNewEvent("scroll",null))}};new c.default(i)})),(0,l.forEach)(document.querySelectorAll(".eventgallery-event-square-list"),(function(t){var i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),adjustMode:"width",initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(s.default.createNewEvent("scroll",null))}};new d.default(i)})),t.lightbox=new n.default,t.lightbox.initPhotoSwipe(),(0,l.forEach)(document.querySelectorAll(".singleimage-zoom"),(function(t){t.addEventListener("click",(function(t){t.preventDefault(),document.getElementById("bigimagelink").click()}))})),(0,l.forEach)(document.querySelectorAll("a[data-eventgallery-overlay]"),(function(t){var e=t.getAttribute("href");t.addEventListener("click",(function(t){t.preventDefault(),(new o.default).openOverlay(document.getElementById(e.replace("#","")).innerHTML)}))})),new f.default,document.dispatchEvent(s.default.createNewEvent("eventgallery-images-added"));for(var i=document.querySelectorAll('div[data-slider="1"]'),m=function(){var t=new r.default(i[v]),e=null;t.start(),window.addEventListener("resize",(function(){null!=e&&clearTimeout(e),e=setTimeout((function(){return t.start()}),1e3)}),!1)},v=0;v<i.length;v++)m()}))}(Eventgallery)},"./frontend/js/EventgalleryEventsList.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return c}});var n=i("./frontend/js/EventgalleryImageList.js"),o=i("./common/js/Helpers.js");function r(t){return r="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},r(t)}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===r(o)?o:String(o)),n)}var o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function l(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=function(t){!function(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(h,t);var e,i,n,r,c=(n=h,r=function(){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(){var t,e=u(n);if(r){var i=u(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return l(this,t)});function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),c.call(this,t)}return e=h,(i=[{key:"processList",value:function(){var t=this,e=this.width;(0,o.forEach)(this.images,(function(i){var n=Math.ceil(e*t.options.rowHeightPercentage/100);i.setSize(e,n)}))}}])&&s(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),h}(n.default)},"./frontend/js/EventgalleryEventsTiles.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return c}});var n=i("./frontend/js/EventgalleryImageList.js"),o=i("./common/js/Helpers.js");function r(t){return r="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},r(t)}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===r(o)?o:String(o)),n)}var o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function l(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=function(t){!function(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(h,t);var e,i,n,r,c=(n=h,r=function(){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(){var t,e=u(n);if(r){var i=u(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return l(this,t)});function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),c.call(this,t)}return e=h,(i=[{key:"processList",value:function(){var t=this,e=this.width;(0,o.forEach)(this.images,(function(i){var n=Math.round(i.height/i.width*e),o=e;"height"==t.options.adjustMode&&i.height>i.width&&(n=e,o=Math.round(i.width/i.height*n)),i.setSize(o,n)}))}}])&&s(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),h}(n.default)},"./frontend/js/EventgalleryGooglePhotosProcessor.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return w}});var n=i("./frontend/js/URLHelper.js");function o(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}function s(t){var e=function(){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}}();return function(){var i,n=l(t);if(e){var o=l(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return a(this,i)}}function a(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function u(t){return u="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},u(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var n,o,r,s,a=[],l=!0,u=!1;try{if(r=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=r.call(i)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(t,e)||p(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=p(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function d(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){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 p(t,e){if(t){if("string"==typeof t)return f(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==u(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===u(o)?o:String(o)),n)}var o}function g(t,e,i){return e&&v(t.prototype,e),i&&v(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}var y="gp.svg",b="data-eg-gp-processing",w=function(){function t(){var e=this;m(this,t),this.albumUrl="",this.albumsUrl="",window.EventGalleryGooglePhotosConfiguration&&(this.albumUrl=window.EventGalleryGooglePhotosConfiguration.albumUrl,this.albumsUrl=window.EventGalleryGooglePhotosConfiguration.albumsUrl),this.imageAddedCallback=function(t){return e.processImages(t)},document.addEventListener("eventgallery-images-added",this.imageAddedCallback,!0)}return g(t,[{key:"destroy",value:function(){document.removeEventListener("eventgallery-images-added",this.imageAddedCallback,!0)}},{key:"processImages",value:function(t){var e,i=!0;null!=t&&null!==(e=t.detail)&&void 0!==e&&e.isOverlay&&(i=!1);var n=this._groupByAlbum(this._collectHTMLElements());this._markImagesAsInProgress(n),this._getMainImageDataFromServer(n,i)}},{key:"_collectHTMLElements",value:function(){var t=document.getElementsByTagName("IMG"),e=d(t).filter((function(t){var e=t.getAttribute("srcset"),i=t.getAttribute("data-src"),n=t.src;return"1"!==t.getAttribute(b)&&(e&&e.indexOf(y)>0||i&&i.indexOf(y)>0||n&&n.indexOf(y)>0)})),i=d(t=document.getElementsByTagName("A"));return e.concat(i.filter((function(t){var e=t.getAttribute("data-src"),i=t.getAttribute("rel"),n=t.getAttribute("href");return"1"!==t.getAttribute(b)&&(n&&n.indexOf(y)>0||e&&e.indexOf(y)>0||i&&i.indexOf(y)>0)})))}},{key:"_markImagesAsInProgress",value:function(t){var e,i=h(t);try{for(i.s();!(e=i.n()).done;){var n=c(e.value,2);n[0],n[1].forEach((function(t){t.getHTMLElement().setAttribute(b,1)}))}}catch(t){i.e(t)}finally{i.f()}}},{key:"_groupByAlbum",value:function(t){var e=this,i=new Map;return t.forEach((function(t){var n=e._parseHTMLElement(t);n.updateParameters();var o=n.parameters.get("folder");i.get(o)||i.set(o,[]),i.get(o).push(n)})),i}},{key:"_parseHTMLElement",value:function(t){return"IMG"===t.tagName?new C(t):new S(t)}},{key:"_getAlbumDataFromServer",value:function(t,e){var i,n=h(t);try{for(n.s();!(i=n.n()).done;){var o=c(i.value,2),r=o[0],s=o[1];this._doAlbumRequest(r,s,e)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_doAlbumRequest",value:function(t,e,i){var n=this;this.albumUrl&&t&&fetch(this.albumUrl+"&folder="+t).then((function(t){return t.json()})).then((function(t){return n._processAlbumResult(e,t,i)}))}},{key:"_processAlbumResult",value:function(t,e,i){this._replaceImages(t,e,i)}},{key:"_getMainImageDataFromServer",value:function(t,e){var i=this._filterForAlbumsWithMainImageOnly(t);if(i.size>0){this._doAlbumsRequest(i,t,e);var n,o=h(i);try{for(o.s();!(n=o.n()).done;){var r=c(n.value,2),s=r[0];r[1],t.delete(s)}}catch(t){o.e(t)}finally{o.f()}}this._getAlbumDataFromServer(t,e)}},{key:"_doAlbumsRequest",value:function(t,e,i){var n=this;this.albumsUrl&&fetch(this.albumsUrl).then((function(t){return t.json()})).then((function(o){return n._processAlbumsResult(t,e,o,i)}))}},{key:"_processAlbumsResult",value:function(t,e,i,n){var o,r=h(t);try{for(r.s();!(o=r.n()).done;){var s=c(o.value,2),a=s[0],l=s[1];this._replaceImages(l,i[a],n)}}catch(t){r.e(t)}finally{r.f()}this._getAlbumDataFromServer(e,n)}},{key:"_filterForAlbumsWithMainImageOnly",value:function(t){var e,i=new Map,n=h(t);try{for(n.s();!(e=n.n()).done;){var o=c(e.value,2),r=o[0],s=o[1],a=s.filter((function(t){return t.isMainImage()}));a.length>0&&a.length===s.length&&i.set(r,s)}}catch(t){n.e(t)}finally{n.f()}return i}},{key:"_replaceImages",value:function(t,e,i){var n;if(void 0!==t&&void 0!==e&&(t.forEach((function(t){var i=e[t.getFile()];if(void 0===i)return!1;t.updateParameters(),t.replaceElementLinks(i),t.getHTMLElement().setAttribute(b,0)})),i&&null!==(n=window.Eventgallery)&&void 0!==n&&n.lightbox&&Eventgallery.lightbox.isOpen())){var o=Eventgallery.lightbox.getCurrentSlide().thumbEl;Eventgallery.lightbox._gallery.close(),setTimeout((function(){return o.click()}),500)}}}]),t}(),_=function(){function t(e){m(this,t),this.htmlElement=e,this.parameters=null,this.attributeNames=new Set}return g(t,[{key:"updateParametersWithUrl",value:function(t){var e=t.substring(t.indexOf("#")+1);this.parameters=n.default.parseURLParameter(e)}},{key:"updateParameters",value:function(){var t,e=h(this.attributeNames);try{for(e.s();!(t=e.n()).done;){var i=t.value,n=this.getHTMLElement().getAttribute(i);if(n&&n.indexOf(y)>0)return void this.updateParametersWithUrl(n)}}catch(t){e.e(t)}finally{e.f()}}},{key:"replaceElementLinks",value:function(t){var e,i=h(this.attributeNames);try{for(i.s();!(e=i.n()).done;){var n=e.value,o=this.getHTMLElement().getAttribute(n);o&&o.indexOf(y)>0&&this.getHTMLElement().setAttribute(n,this.getImageUrl(t,this.getWidth(o)))}}catch(t){i.e(t)}finally{i.f()}}},{key:"getHTMLElement",value:function(){return this.htmlElement}},{key:"getFolder",value:function(){return this.parameters.get("folder")}},{key:"getFile",value:function(){return this.parameters.get("file")}},{key:"getWidth",value:function(t){return n.default.parseURLParameter(t).get("width")}},{key:"getImageUrl",value:function(t,e){return t+"=w"+e}},{key:"isMainImage",value:function(){return"1"===this.parameters.get("m")}}]),t}(),S=function(t){o(i,t);var e=s(i);function i(t){var n;return m(this,i),(n=e.call(this,t)).attributeNames=new Set(["href","data-src","rel"]),n}return g(i)}(_),C=function(t){o(i,t);var e=s(i);function i(t){var n;return m(this,i),(n=e.call(this,t)).attributeNames=new Set(["src","data-src","srcset"]),n}return g(i)}(_)},"./frontend/js/EventgalleryImage.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return a}});var n=i("./common/js/Helpers.js"),o=i("./frontend/js/EventgallerySizeCalculator.js");function r(t){return r="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},r(t)}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===r(o)?o:String(o)),n)}var o}var a=function(){function t(e,i,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=(0,n.mergeObjects)(this.options,o),this.imageTagContainer=e,this.index=i,this.calculatedWidth=0,this.calcSize()}var e,i;return e=t,(i=[{key:"calcSize",value:function(){var t=this.imageTagContainer.querySelector("img");if(t){var e=[this.imageTagContainer,t];this.glueLeft=(0,n.calcBorderWidth)(e,["paddingLeft","marginLeft","borderLeftWidth"]),this.glueRight=(0,n.calcBorderWidth)(e,["paddingRight","marginRight","borderRightWidth"]),this.glueTop=(0,n.calcBorderWidth)(e,["paddingTop","marginTop","borderTopWidth"]),this.glueBottom=(0,n.calcBorderWidth)(e,["paddingBottom","marginBottom","borderBottomWidth"]),this.width=parseInt(t.getAttribute("data-width")),this.height=parseInt(t.getAttribute("data-height")),void 0===this.width&&(this.width=(0,n.getElementWidth)(this.imageTagContainer)-this.glueLeft-this.glueRight),void 0===this.height&&(this.height=(0,n.getElementHeight)(this.imageTagContainer)-this.glueTop-this.glueBottom)}}},{key:"getImageTagHeight",value:function(){return parseFloat(window.getComputedStyle(this.imageTagContainer).height)+this.glueTop+this.glueBottom}},{key:"setSize",value:function(t,e){var i=t-this.glueLeft-this.glueRight,n=e-this.glueTop-this.glueBottom,r=this.width/this.height,s=this.imageTagContainer.querySelector("img");if(s){var a=new o.default,l=s.getAttribute("data-src");l||(l="");var u=s.getAttribute("data-secret");if(null!==u){var c=s.getAttribute("data-secret_o"),h=s.getAttribute("data-secret_h"),d=s.getAttribute("data-secret_k"),p=s.getAttribute("data-farm"),f=s.getAttribute("data-server"),m=s.getAttribute("data-id");l=a.getFlickrURL(p,f,u,h,d,c,m,i,n,this.width,this.height)}else{var v=a.getSize(i,n,r);l=a.adjustImageURL(l,v)}s.setAttribute("data-src",l),s.setAttribute("srcset",l),s.style.display="block",s.style.margin="auto",i>0&&(s.style.width=i+"px"),n>0&&(s.style.height=n+"px")}}},{key:"hide",value:function(){this.imageTagContainer.style.display="none"}},{key:"show",value:function(){this.imageTagContainer.style.display="block"}}])&&s(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/EventgalleryImageList.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return l}});var n=i("./common/js/Helpers.js"),o=i("./frontend/js/EventgalleryImage.js"),r=i("./frontend/js/EventgalleryRow.js");function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==s(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===s(o)?o:String(o)),n)}var o}var l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={rowHeightPercentage:100,rowHeight:150,rowHeightJitter:0,minImageWidth:150,doFillLastRow:!1,imagesetContainer:null,imageset:null,firstImageRowHeight:2,initComplete:function(){},resizeStart:function(){},resizeComplete:function(){}},this.images=[],this.eventgalleryPageWidth=0,this.width=null,this.options=(0,n.mergeObjects)(this.options,e),void 0!==e&&this.initialize()}var e,i;return e=t,(i=[{key:"initialize",value:function(){var t=this;this.width=(0,n.getElementWidth)(this.options.imagesetContainer),this.eventgalleryPageWidth=this.width,this.images=[],(0,n.forEach)(this.options.imageset,(function(e,i){t.images.push(new o.default(e,i))})),window.addEventListener("resize",(function(){window.clearTimeout(t.eventgalleryTimer),t.eventgalleryTimer=setTimeout((function(){var e=(0,n.getElementWidth)(t.options.imagesetContainer);t.width=e,t.eventgalleryPageWidth!==e&&(t.options.resizeStart(),t.eventgalleryPageWidth=e,t.options.imagesetContainer.style.minHeight=t.options.rowHeight*t.images.length+"px",t.processList(),t.options.imagesetContainer.style.minHeight="0px",t.options.resizeComplete())}),500)})),this.options.imagesetContainer.style.minHeight=this.options.rowHeight*this.images.length+"px",this.processList(),this.options.imagesetContainer.style.minHeight="0px",window.setTimeout(this.options.initComplete,1)}},{key:"getRowWidth",value:function(){var t=this.width;return window.getComputedStyle?t=Math.floor(parseFloat(window.getComputedStyle(this.options.imagesetContainer).width))-1:t-=1,t}},{key:"processList",value:function(){var t,e=this.getRowWidth(),i=this.images.slice(0);if(0!==i.length){if(this.options.firstImageRowHeight>1){var n=i.shift();n.hide(),e=this.getRowWidth(),n.show();var o=this.options.firstImageRowHeight*this.options.rowHeight,r=Math.floor(n.width/n.height*o);r+this.options.minImageWidth>=e&&(r=e),n.setSize(r,o);var s=this.options.rowHeight;s=(o+.05)/this.options.firstImageRowHeight,o>n.getImageTagHeight()&&(s=(o+1)/this.options.firstImageRowHeight),(t={maxWidth:e-r,maxHeight:s,adjustHeight:!1}).maxWidth>0&&this.generateRows(i,this.options.firstImageRowHeight,t,!1)}t={maxWidth:e,maxHeight:this.options.rowHeight,heightJitter:this.options.rowHeightJitter,doFillLastRow:this.options.doFillLastRow},this.generateRows(i,99999,t,!0)}}},{key:"generateRows",value:function(t,e,i,n){for(var o=new r.default(i);t.length>0&&e>0;)if(o.add(t[0]))t.shift();else{if(o.processRow(),0==--e)break;o=new r.default(i)}n&&(o.isLastRow=!0),o.processRow()}}])&&a(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/EventgalleryLazyload.js":function(t,e,i){"use strict";function n(t){return n="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},n(t)}function o(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}function r(t,e,i){return(e=s(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===n(e)?e:String(e)}i.r(e),i.d(e,{default:function(){return a}});var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={elementSelector:"img.eventgallery-lazyme",classForLoaded:"eventgallery-lazyload-loaded",classForLoading:"eventgallery-lazyload-loading"},"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),this.imageObserver=new IntersectionObserver((function(e,i){e.forEach((function(e){if(e.isIntersecting){var i=e.target;if(i.dataset.src&&(i.setAttribute("srcset",i.dataset.src),!t.knownImageUrls.includes(i.dataset.src))){t.knownImageUrls.push(i.dataset.src),i.classList.add("eventgallery-lazyload-loading"),i.classList.remove("eventgallery-lazyload-loaded");var n=document.createElement("img");n.src=i.dataset.src,n.onload=function(){i.classList.remove("eventgallery-lazyload-loading"),i.classList.add("eventgallery-lazyload-loaded")}}}}))})))}var e,i;return e=t,i=[{key:"watchImages",value:function(){if(!t.instance){t.instance=new t;for(var e=document.querySelectorAll(t.instance.options.elementSelector),i=0;i<e.length;i++){var n=e[i];n.dataset.src&&(t.instance.imageObserver?t.instance.imageObserver.observe(n):n.setAttribute("srcset",n.dataset.src))}}}}],null&&o(e.prototype,null),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();r(a,"instance",null),r(a,"knownImageUrls",[])},"./frontend/js/EventgalleryRow.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return s}});var n=i("./common/js/Helpers.js");function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(r)?r:String(r)),n)}var r}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={maxWidth:960,maxHeight:250,heightJitter:0,adjustHeight:!0,doFillLastRow:!0},this.options=(0,n.mergeObjects)(this.options,e),this.isLastRow=!1,this.images=[],this.width=0,this.options.heightJitter>0&&(this.options.maxHeight=Math.floor(this.options.maxHeight+2*Math.random()*this.options.heightJitter-this.options.heightJitter))}var e,i;return e=t,(i=[{key:"add",value:function(t){var e=Math.floor(t.width/t.height*this.options.maxHeight),i=this.width+e<=this.options.maxWidth||0===this.images.length;return i||Math.abs(this.options.maxWidth-this.width-e)/this.options.maxWidth<.2&&(i=!0),!!i&&(this.images.push(t),t.calculatedWidth=e,this.width=this.width+e,!0)}},{key:"processRow",value:function(){var t,e,i;for(t=this.options.maxWidth-this.width,this.isLastRow&&!1===this.options.doFillLastRow&&t>=0?(t>=0&&(t=0),e=this.options.maxHeight):e=this.options.maxHeight/(this.width/this.options.maxWidth),!1===this.options.adjustHeight&&(e=this.options.maxHeight),i=0;i<this.images.length;i++){var n=this.images[i],o=n.calculatedWidth,r=o/this.width*t;n.setSize(o+r,e)}}}])&&r(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/EventgallerySizeCalculator.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return s}});var n=i("./common/js/Helpers.js");function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(r)?r:String(r)),n)}var r}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={availableSizes:[48,104,160,288,320,400,512,640,720,800,1024,1280,1440],flickrSizes:{100:"t",240:"m",320:"n",500:"-",640:"z",800:"c",1024:"b",1600:"h",2048:"k"}},this.options=(0,n.mergeObjects)(this.options,e)}var e,i;return e=t,(i=[{key:"adjustImageURL",value:function(t,e){return(t=(t=(t=(t=(t=t.replace(/=w(\d+)$/,"=w"+e)).replace(/\/s(\d*)\//,"/s"+e+"/")).replace(/\/s(\d*)-c\//,"/s"+e+"-c/")).replace(/width=(\d+)/,"width="+e)).replace(/\/mainimage_nocrop_(\d+)_/,"/mainimage_nocrop_"+e+"_")).replace(/\/nocrop_(\d+)_/,"/nocrop_"+e+"_")}},{key:"getFlickrURL",value:function(t,e,i,n,o,r,s,a,l,u,c){var h,d,p,f,m=this.getMinSizes(a,l,u,c);if(m.width>m.height?(h=m.width,d=u):(h=m.height,d=c),p="o",d>=h)for(var v in this.options.flickrSizes)if(v>h){p=this.options.flickrSizes[v];break}switch("o"===p&&""===r&&(p="k"),"k"===p&&""===o&&(p="h"),"h"===p&&""===n&&(p="b"),p){case"o":f=r;break;case"h":f=n;break;case"k":f=o;break;default:f=i}return"https://farm"+t+".staticflickr.com/"+e+"/"+s+"_"+f+("-"==p?"":"_"+p)+".jpg"}},{key:"getSize",value:function(t,e,i){for(var n=this.options.availableSizes[0],o=0;o<this.options.availableSizes.length;o++){var r=this.options.availableSizes[o],s=void 0;if(n>this.options.availableSizes[0])break;var a=o==this.options.availableSizes.length-1;i>=1?(s=r/i>e,(r>t&&s||a)&&(n=r)):(s=r>e,(r*i>t&&s||a)&&(n=r))}return n}},{key:"getMinSizes",value:function(t,e,i,n){var o,r,s=i/n;return i>n?t>e?(r=t,(o=t/s)<e&&(o=e,r=e*s)):(o=e,(r=e*s)<t&&(r=t,o=e*s)):t>e?(r=t,(o=t/s)<e&&(o=e,r=e*s)):(o=e,(r=e*s)<t&&(r=t,o=t/s)),{width:Math.ceil(r),height:Math.ceil(o)}}}])&&r(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/EventgallerySquareList.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return c}});var n=i("./frontend/js/EventgalleryImageList.js"),o=i("./common/js/Helpers.js");function r(t){return r="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},r(t)}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===r(o)?o:String(o)),n)}var o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function l(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var c=function(t){!function(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(h,t);var e,i,n,r,c=(n=h,r=function(){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(){var t,e=u(n);if(r){var i=u(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return l(this,t)});function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),c.call(this,t)}return e=h,(i=[{key:"processList",value:function(){var t=this.width;(0,o.forEach)(this.images,(function(e){e.setSize(t,t)}))}}])&&s(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),h}(n.default)},"./frontend/js/EventgalleryTilesCollection.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return s}});var n=i("./common/js/Helpers.js");function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(r)?r:String(r)),n)}var r}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={tiles:null,tilesContainer:[]},this.options=(0,n.mergeObjects)(this.options,e),this.tiles=this.options.tiles,this.tilesContainer=this.options.tilesContainer}var e,i;return e=t,(i=[{key:"calculate",value:function(){var t=this,e=1;(0,n.forEach)(this.tiles,(function(t){t.style.visibility="hidden",t.style.position="static",t.style.float="left"}));for(var i=this.tiles[0],o=i.offsetWidth,r=i.offsetTop,s=1;s<this.tiles.length&&this.tiles[s].offsetTop===r;s++)e++;for(var a=[],l=0;l<e;l++)a.push(0);(0,n.forEach)(this.tiles,(function(e){var i=t.getSmallestColumn(a);e.style.left=i*o+"px",e.style.top=a[i]+"px",a[i]=a[i]+e.offsetHeight,e.style.visibility="visible",e.style.position="absolute",e.style.float="none"})),this.tilesContainer.style.height=a[this.getHighestColumn(a)]+"px"}},{key:"getSmallestColumn",value:function(t){for(var e=t[0],i=0,n=0;n<t.length;n++)e>t[n]&&(e=t[n],i=n);return i}},{key:"getHighestColumn",value:function(t){for(var e=t[0],i=0,n=0;n<t.length;n++)e<t[n]&&(e=t[n],i=n);return i}}])&&r(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/Overlay.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return a}});var n=i("./frontend/js/Polyfill.ts"),o=i("./common/js/Helpers.js");function r(t){return r="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},r(t)}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==r(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===r(o)?o:String(o)),n)}var o}var a=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.isOpen=!1,this.myDiv=null,this.background=null,this.body=document.body,this.onClosed=void 0,this.onLoad=void 0,this.repositionTimer=null,this.windowWidth=0,this.onResizeOverlay=function(){e._setRositionTimer(!1)}}var e,i,r;return e=t,r=[{key:"_getRemoteData",value:function(t,e){fetch(t).then((function(t){return t.text()})).then((function(t){return e(t)}))}}],(i=[{key:"openOverlay",value:function(e){var i=this;this.isOpen=!0,this.myDiv=document.createElement("div"),this.myDiv.id="eventgallery-overlay",this.myDiv.innerHTML='<i class="egfa egfa-2x egfa-cog egfa-spin"></i>',this.myDiv.style.opacity="1 !important",this.myDiv.style.position="absolute",this.myDiv.style.maxWidth="100%",this.background=document.createElement("div"),this.background.id="eventgallery-overlay-background",this.background.addEventListener("click",(function(){i.closeOverlay()})),this.body.append(this.background),this.body.append(this.myDiv),this.reposition(!0),e.startsWith("http")||e.startsWith("/")?t._getRemoteData(e,(function(t){i._addContent(t)})):this._addContent('<button class="btn-close-overlay eventgallery-close-overlay"><i class="egfa egfa-2x egfa-times-circle"></i></button>'+e),window.addEventListener("resize",this.onResizeOverlay)}},{key:"_setRositionTimer",value:function(t){var e=this;this.repositionTimer&&clearTimeout(this.repositionTimer),this.repositionTimer=setTimeout((function(){return e.reposition(t)}),500)}},{key:"_addContent",value:function(t){var e=this;(0,o.insertAndExecute)(this.myDiv,t);for(var i=this.myDiv.getElementsByClassName("eventgallery-close-overlay"),r=0;r<i.length;r++)i[r].addEventListener("click",(function(t){t.preventDefault(),e.closeOverlay()}));this.reposition(!0),void 0!==this.onLoad&&this.onLoad(),document.dispatchEvent(n.default.createNewEvent("eventgallery-images-added",{isOverlay:!0}))}},{key:"closeOverlay",value:function(){this.isOpen=!1,window.removeEventListener("resize",this.onResizeOverlay),n.default.removeHtmlElementNode(this.myDiv),n.default.removeHtmlElementNode(this.background),void 0!==this.onClosed&&this.onClosed()}},{key:"reposition",value:function(t){null!==this.repositionTimer&&clearTimeout(this.repositionTimer);var e=document.body.clientWidth;if(t||this.windowWidth!==e){this.windowWidth=e,this.myDiv.style.opacity=0,this.myDiv.style.top=0,this.myDiv.style.left=0;var i=window.innerHeight,n=this.myDiv.offsetWidth,o=this.myDiv.offsetHeight,r=window.pageYOffset,s=0,a=r;e-n>0&&(s=(e-n)/2),i-o>0&&(a=r+(i-o)/2),this.myDiv.style.top=a+"px",s>3&&(this.myDiv.style.left=s+"px"),this.myDiv.style.opacity=1}}}])&&s(e.prototype,i),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/SlideShow.js":function(t,e,i){"use strict";function n(t){return n="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},n(t)}function o(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===n(r)?r:String(r)),o)}var r}i.r(e),i.d(e,{default:function(){return r}}),i("./frontend/js/photoswipe/PhotoSwipeGallery.js");var r=function(){function t(e){var i,n,o=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),window.EventGalleryLightboxConfiguration&&window.EventGalleryLightboxConfiguration.doUseSlideshow&&(this._photoSwipe=e,this._SlideShow_Running=!1,this._currentTimer=null,this._SlideShow_Delay=(null===(i=window)||void 0===i||null===(n=i.EventGalleryLightboxConfiguration)||void 0===n?void 0:n.slideshowSpeed)||2e3,this._SlideShow_Button=null,this._photoSwipe.ui.registerElement({name:"playpause-button",order:9,isButton:!0,html:"",onInit:function(t){o._SlideShow_Button=t,o._adjustNavigation()},onClick:function(t,e){return o.toggleSlideShowState()}}),this._photoSwipe.on("change",(function(){o._planNextSwitch(!1)})),this._photoSwipe.on("destroy",(function(){return o._photoSwipeGallery=null})),this._photoSwipe.on("keydown",(function(t){t.originalEvent.target!==o._SlideShow_Button&&o._stopSlideshow()})),this._photoSwipe.on("pointerDown",(function(t){t.originalEvent.target!==o._SlideShow_Button&&o._stopSlideshow()})),window.EventGalleryLightboxConfiguration.doUseAutoplay&&this.toggleSlideShowState())}var e,i;return e=t,(i=[{key:"setDelay",value:function(t){this._SlideShow_Delay=t}},{key:"toggleSlideShowState",value:function(){this._SlideShow_Running?this._stopSlideshow():this._startSlideshow()}},{key:"_stopSlideshow",value:function(){this._SlideShow_Running=!1,this._adjustNavigation()}},{key:"_startSlideshow",value:function(){this._SlideShow_Running=!0,this._planNextSwitch(!0),this._adjustNavigation()}},{key:"_adjustNavigation",value:function(){this._SlideShow_Button&&(this._SlideShow_Button.classList.remove(this._SlideShow_Running?"play":"pause"),this._SlideShow_Button.classList.add(this._SlideShow_Running?"pause":"play"))}},{key:"_planNextSwitch",value:function(t){var e=this;clearTimeout(this._currentTimer),this._currentTimer=setTimeout((function(){return e._nextSlide()}),t?this._SlideShow_Delay/2:this._SlideShow_Delay)}},{key:"_nextSlide",value:function(){null!==this._photoSwipe&&this._SlideShow_Running&&this._photoSwipe.next()}}])&&o(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/URLHelper.js":function(t,e,i){"use strict";function n(t){return n="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},n(t)}function o(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===n(r)?r:String(r)),o)}var r}i.r(e),i.d(e,{default:function(){return r}});var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i;return e=t,i=[{key:"parseURLParameter",value:function(t){var e=t.split("&"),i=new Map;return e.forEach((function(t){var e=t.split("=");2===e.length&&i.set(e[0],e[1])})),i}},{key:"getParameters",value:function(e){var i=e.split("?");if(i.length<2)return new Map;var n=i[1].split("#");return t.parseURLParameter(n[0])}},{key:"extractBackgroudUrl",value:function(t){return t.replace(/(url\(|\)|"|')/g,"")}}],null&&o(e.prototype,null),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/glide_modules/anchor.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return o}});var n=i("./frontend/js/utils/eventshandler.js");function o(t,e,i){var o=new n.default,r=!1,s={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a,span,img"),this.bind()},bind:function(){o.on("click",e.Html.wrapper,this.click,!0)},unbind:function(){o.off("click",e.Html.wrapper)},click:function(t){r&&(t.stopPropagation(),t.preventDefault())},detach:function(){return r=!0,this},attach:function(){return r=!1,this}};return Object.defineProperty(s,"items",{get:function(){return s._a}}),i.on("swipe.move",(function(){s.detach()})),i.on("swipe.end",(function(){e.Transition.after((function(){s.attach()}))})),i.on("destroy",(function(){s.attach(),s.unbind(),o.destroy()})),s}},"./frontend/js/jsgallery/EventgalleryJSGallery2.js":function(t,e,i){"use strict";i.r(e),i.d(e,{JSGallery2:function(){return h}});var n=i("./frontend/js/Polyfill.ts"),o=i("./frontend/js/minicart/CartEvents.ts"),r=i("./frontend/js/touch/Touch.ts"),s=i("./frontend/js/Overlay.js"),a=i("./common/js/Helpers.js"),l=i("./frontend/js/EventgallerySizeCalculator.js");function u(t){return u="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},u(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==u(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===u(o)?o:String(o)),n)}var o}var h=function(){function t(e,i,n,o,r){var s=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={prevHandle:null,nextHandle:null,countHandle:null,titleTarget:null,initialIndex:-1,maxOpacity:.8,showSocialMediaButton:!0,showCartButton:!0,showCartConnector:!1,cartConnectorLinkRel:"",activeClass:"thumbnail-active",lightboxRel:"lightbo2",touchContainerSelector:"#bigimageContainer"},this.galleryElement=e,this.nav=e.querySelector(".navigation"),this.image=e.querySelector(".image"),this.options=(0,a.mergeObjects)(this.options,r);var l=o.children;this.running=!1,this.currentPageNumber=0,this.blockKeys=!1,this.imagesPerFirstPage=l[0].querySelectorAll("div.ajax-thumbnail-container").length,this.imagesPerPage=this.imagesPerFirstPage,l.length>1&&l[1].querySelectorAll("div.ajax-thumbnail-container").length>0&&(this.imagesPerPage=l[1].querySelectorAll("div.ajax-thumbnail-container").length),this.thumbs=[];for(var u=0;u<i.length;u++)this.thumbs.push(i[u]);this.bigImageContainer=n,this.bigImage=n.querySelector("img"),this.pageContainer=o,this.convertThumbs(),this.lastPage=Math.ceil((this.thumbs.length-this.imagesPerFirstPage)/this.imagesPerPage)+1;var c=document.location.href;this.initialIndex=parseInt((0,a.getUrlHashParameterValue)(c,"imageno")),isNaN(this.initialIndex)&&(this.initialIndex=0),this.createControls(),this.createGallerySlides(),this.adjustWidth(),this.adjustPageHeight(),this.adjustImageSize(),this.gotoPage(0),-1!==this.options.initialIndex?(this.unBlockKeys(),this.selectByIndex(this.options.initialIndex)):0!==this.initialIndex&&(this.unBlockKeys(),this.selectByIndex(this.initialIndex)),window.addEventListener("load",(function(){s.resizePage()})),window.addEventListener("resize",(function(){s.resizePage()}))}var e,i;return e=t,(i=[{key:"adjustWidth",value:function(){var t=this.nav.offsetWidth;(0,a.forEach)(this.galleryElement.querySelectorAll(".navigation .page"),(function(e){e.style.width=t+2+"px"}))}},{key:"adjustImageSize",value:function(){var t=new l.default,e=(0,a.getElementWidth)(this.bigImageContainer);(0,a.forEach)(this.nav.querySelectorAll("#thumbs .ajax-thumbnail"),(function(i,n){var o,r=i.getAttribute("data-width"),s=i.getAttribute("data-height"),a=r/s,l=Math.round(e/a),u=i.getAttribute("data-secret");if(null!==u){var c=i.getAttribute("data-secret_o"),h=i.getAttribute("data-secret_h"),d=i.getAttribute("data-secret_k"),p=i.getAttribute("data-farm"),f=i.getAttribute("data-server"),m=i.getAttribute("data-file");o=t.getFlickrURL(p,f,u,h,d,c,m,e,l,r,s)}else{var v=t.getSize(e,l,a);o=t.adjustImageURL(i.getAttribute("rel"),v)}i.setAttribute("rel",o)}))}},{key:"resizePage",value:function(){var t=this;window.clearTimeout(this.eventgalleryAjaxResizeTimer),this.eventgalleryAjaxResizeTimer=setTimeout((function(){t.adjustWidth(),t.adjustImageSize(),t.resetThumbs(),t.gotoPage(t.currentPageNumber),t.adjustPageHeight()}),500)}},{key:"createGallerySlides",value:function(){var t=this;this.slides=[],(0,a.forEach)(this.thumbs,(function(e){var i=e.getElementsByTagName("A")[0],n=decodeURIComponent(i.getAttribute("data-description")),o={w:i.getAttribute("data-width"),h:i.getAttribute("data-height"),src:i.getAttribute("href"),title:n};t.slides.push(o)}))}},{key:"createControls",value:function(){var t=this;if(this.prevLink=document.createElement("a"),this.prevLink.href="#",this.prevLink.classList.add("link","jsgallery-prev"),this.prevLink.addEventListener("click",(function(e){return t.prevImage(e)})),this.prevLink.addEventListener("mouseleave",(function(){return t.mouseLeaveHandler()})),this.prevLink.addEventListener("mouseover",(function(e){return t.focusControl(e,t.prevLink)})),this.zoomLink=document.createElement("a"),this.zoomLink.href="#",this.zoomLink.classList.add("link","jsgallery-zoom"),this.zoomLink.addEventListener("click",(function(e){return t.bigImageClickHandler(e)})),this.zoomLink.addEventListener("mouseleave",(function(e){return t.mouseLeaveHandler()})),this.zoomLink.addEventListener("mouseover",(function(e){return t.focusControl(e,t.zoomLink)})),this.nextLink=document.createElement("a"),this.nextLink.href="#",this.nextLink.classList.add("link","jsgallery-next"),this.nextLink.addEventListener("click",(function(e){return t.nextImage(e)})),this.nextLink.addEventListener("mouseleave",(function(){return t.mouseLeaveHandler()})),this.nextLink.addEventListener("mouseover",(function(e){return t.focusControl(e,t.nextLink)})),this.bigImage.parentElement.appendChild(this.prevLink),this.bigImage.parentElement.appendChild(this.zoomLink),this.bigImage.parentElement.appendChild(this.nextLink),this.bigImage.addEventListener("load",(function(){return t.showBigImage()})),this.options.showCartButton&&(this.add2cartLink=document.createElement("a"),this.add2cartLink.href="#",this.add2cartLink.classList.add("eventgallery-add2cart","eventgallery-openAdd2cart","jsgallery-add2cart"),this.add2cartLink.innerHTML='<i class="egfa egfa-2x egfa-cart-plus"></i>',this.bigImage.parentElement.appendChild(this.add2cartLink),document.dispatchEvent(n.default.createNewEvent(o.Events.rebindAdd2CartButtons,null))),this.options.showCartConnector&&(this.cartConnectorLink=document.createElement("a"),this.cartConnectorLink.href="#",this.cartConnectorLink.id="ajax-cartconnector",this.cartConnectorLink.classList.add("button-cart-connector","jsgallery-cartconnector"),this.cartConnectorLink.innerHTML='<i class="egfa egfa-2x egfa-cart-plus"></i>',this.cartConnectorLink.setAttribute("rel",this.options.cartConnectorLinkRel),this.bigImage.parentElement.appendChild(this.cartConnectorLink)),this.options.showSocialMediaButton){var e=document.createElement("div");e.innerHTML='<a id="ajax-social-media-button" class="social-share-button jsgallery-socialmedia" rel="nofollow" href="#"><i class="egfa egfa-2x egfa-share-alt-square"></i></a>',this.socialmediabutton=e.firstChild,this.socialmediabutton.addEventListener("click",(function(e){e.preventDefault();var i=t.socialmediabutton.getAttribute("data-href");(new s.default).openOverlay(i)})),this.bigImage.parentElement.appendChild(this.socialmediabutton)}document.addEventListener("keydown",(function(e){return t.keyboardHandler(e)})),(0,r.addTouch)(document.querySelector(this.options.touchContainerSelector),(function(e){t.prevImage(e)}),(function(e){t.nextImage(e)}),(function(e){t.bigImage.click()}),null),this.mouseLeaveHandler()}},{key:"focusControl",value:function(t,e){e.style.opacity="1"}},{key:"mouseLeaveHandler",value:function(){this.nextLink.style.opacity="0",this.prevLink.style.opacity="0",this.zoomLink.style.opacity="0"}},{key:"keyboardHandler",value:function(t){var e;this.blockKeys||!0===(null===(e=Eventgallery.lightbox)||void 0===e?void 0:e.isOpen())||(t.keyCode>=49&&t.keyCode<=57?this.gotoPage(t.key-1):37==t.keyCode?this.prevImage(t):39==t.keyCode&&this.nextImage(t))}},{key:"adjustPageHeight",value:function(){var t=0;(0,a.forEach)(this.pageContainer.children,(function(e){var i=e.offsetHeight;i>t&&(t=i)})),this.pageContainer.style.height=t+"px",this.nav.style.opacity=1}},{key:"resetThumbs",value:function(){this.running=!1,this.convertThumbs(),this.select(this.selectedContainer,!0)}},{key:"convertThumbs",value:function(){var t=this;(0,a.forEach)(this.thumbs,(function(e,i){t.convertThumb(e,i)}))}},{key:"convertThumb",value:function(t,e){var i=this;void 0!==t&&(t.addEventListener("click",(function(e){e.preventDefault(),i.select(t)})),t.style.position="relative",t.setAttribute("data-counter",e),t.setAttribute("href","#"))}},{key:"unBlockKeys",value:function(){this.blockKeys=!1}},{key:"select",value:function(t,e){if(e=void 0!==e&&e,this.blockKeys||null===t)return!1;if(this.blockKeys=!0,void 0!==this.selectedContainer){if(t==this.selectedContainer&&!e)return this.unBlockKeys(),!1;this.deselect(this.selectedContainer)}history&&history.pushState&&history.pushState("","",(0,a.addUrlHashParameter)(window.location.href,"imageno",this.thumbs.indexOf(t)));var i=Math.floor((t.getAttribute("data-counter")-this.imagesPerFirstPage)/this.imagesPerPage)+1;this.currentPageNumber!=i&&this.gotoPage(i,t),this.selectedContainer=t,t.classList.add(this.options.activeClass);var r=t.children[0];this.options.showCartButton&&this.add2cartLink.setAttribute("data-id",r.getAttribute("data-id")),this.options.showCartConnector&&(this.cartConnectorLink.setAttribute("data-folder",r.getAttribute("data-folder")),this.cartConnectorLink.setAttribute("data-file",r.getAttribute("data-file")),this.cartConnectorLink.setAttribute("href",decodeURIComponent(r.getAttribute("data-cart-connector-link")))),this.options.showSocialMediaButton&&this.socialmediabutton.setAttribute("data-href",decodeURIComponent(r.getAttribute("data-social-sharing-link"))),document.dispatchEvent(n.default.createNewEvent(o.Events.rebindAdd2CartButtons,null)),this.setImage(r)}},{key:"selectByIndex",value:function(t){(t<0||this.thumbs.length<=t)&&(t=0),this.select(this.thumbs[t])}},{key:"deselect",value:function(t){t.classList.remove(this.options.activeClass)}},{key:"bigImageClickHandler",value:function(t){var e=this;this.createGallerySlides();var i=this.thumbs.indexOf(this.selectedContainer);Eventgallery.lightbox.openPhotoSwipe(i,this.slides,!0,!1,!1),Eventgallery.lightbox.setAfterChangeEventListener((function(){var t=Eventgallery.lightbox.getCurrentSlide().gid;e.slides.length>0&&t===e.slides[0].gid&&e.selectByIndex(Eventgallery.lightbox.getCurrentIndex())}))}},{key:"setImage",value:function(t){var e;this.bigImage.style.opacity="0.1";var i=t.getAttribute("rel"),n=decodeURIComponent(t.getAttribute("data-description")),o=this.thumbs.indexOf(this.selectedContainer);!0===(null===(e=Eventgallery.lightbox)||void 0===e?void 0:e.isOpen())&&Eventgallery.lightbox.gotoSlide(o),this.galleryElement.querySelector(this.options.titleTarget).innerHTML=n,this.bigImage.setAttribute("src",i),this.unBlockKeys()}},{key:"showBigImage",value:function(){this.image.style.opacity=1,this.bigImage.style.opacity=1}},{key:"prevPage",value:function(){this.gotoPage(this.currentPageNumber-1)}},{key:"nextPage",value:function(){this.gotoPage(this.currentPageNumber+1)}},{key:"prevImage",value:function(t){void 0!==t&&t.preventDefault(),this.selectByIndex(this.thumbs.indexOf(this.selectedContainer)-1)}},{key:"nextImage",value:function(t){void 0!==t&&t.preventDefault(),this.selectByIndex(this.thumbs.indexOf(this.selectedContainer)+1)}},{key:"zoomImage",value:function(t){void 0!==t&&t.preventDefault()}},{key:"gotoPage",value:function(t,e){if(0===t)e=void 0===e?this.thumbs[0]:e;else{var i=(t-1)*this.imagesPerPage+this.imagesPerFirstPage;e=void 0===this.thumbs[i]?e:this.thumbs[i]}t>=0&&t<this.lastPage&&(this.pageContainer.style.marginLeft=(0,a.getElementWidth)(this.pageContainer.children[0])*t*-1+"px",this.currentPageNumber=t,this.select(e),this.updateHandles())}},{key:"updateHandles",value:function(){this.options.prevHandle&&(0===this.currentPageNumber?this.options.prevHandle.style.opacity=0:this.options.prevHandle.style.opacity=1),this.options.nextHandle&&(this.currentPageNumber==this.lastPage-1?this.options.nextHandle.style.opacity=0:this.options.nextHandle.style.opacity=1),this.options.countHandle&&this.updatePagingBar(this.currentPageNumber,this.lastPage)}},{key:"updatePagingBar",value:function(t,e){if(!(e<=1)){if(e>1&&""===this.options.countHandle.innerHTML)for(var i=0;i<e;i++)this.createCountLink(i);if(this.options.pageSpeed,e>9){for(var n=0;n<e;n++)this.galleryElement.querySelector("#count"+n).style.display=inline;var o=e,r=0,s=e-t-1;t>4&&s>4?(r=t-4,o=t+5):(t<=4&&(r=0,o=t+5+(4-t)),s<=4&&(r=t-4-(4-s),o=e));for(var l=0;l<r;l++)this.galleryElement.querySelector("#count"+l).style.display="none";for(var u=o;u<e;u++)this.galleryElement.querySelector("#count"+u).style.display="none"}(0,a.forEach)(this.options.countHandle.children,(function(t){return t.classList.remove("active")})),this.galleryElement.querySelector("#count"+t).classList.add("active")}}},{key:"createCountLink",value:function(t){var e=this,i=document.createElement("A");i.href="#",i.classList.add("page-link"),i.innerText=t+1,i.addEventListener("click",(function(i){return i.preventDefault(),e.gotoPage(t,null),!1}));var n=document.createElement("LI");n.classList.add("count"),n.classList.add("page-item"),n.id="count"+t,n.appendChild(i),this.options.countHandle.appendChild(n)}}])&&c(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/jsgallery/index.js":function(t,e,i){i("./common/js/Helpers.js").forEach;var n=i("./frontend/js/jsgallery/EventgalleryJSGallery2.js").JSGallery2;document.addEventListener("DOMContentLoaded",(function(){for(var t=document.querySelectorAll(".ajaxpaging"),e=0;e<t.length;e++){var i=t[e];new n(i,i.querySelectorAll(".ajax-thumbnail-container"),i.querySelector("#bigimageContainer"),i.querySelector("#pageContainer"),{prevHandle:i.querySelector("#prev"),nextHandle:i.querySelector("#next"),countHandle:i.querySelector("#count"),titleTarget:"#bigImageDescription",showSocialMediaButton:"true"==i.getAttribute("data-showSocialMediaButton"),showCartButton:"true"==i.getAttribute("data-showCartButton"),showCartConnector:"true"==i.getAttribute("data-showCartConnector"),cartConnectorLinkRel:i.getAttribute("data-cartConnectorLinkRel"),lightboxRel:"gallery"})}}))},"./frontend/js/photoswipe/HistoryHandler.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return l}});var n=i("./common/js/Helpers.js");function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function s(t,e,i){return(e=a(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function a(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===o(e)?e:String(e)}var l=function(){function t(e){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,"browserBackHappened",!1),s(this,"_close",(function(){i.browserBackHappened=!0,i.options.onClose()})),this.options={onClose:function(){},window:window,history:history},this.options=(0,n.mergeObjects)(this.options,e)}var e,i;return e=t,(i=[{key:"startUrlHistory",value:function(){if(this.options.history){this.options.window.addEventListener("popstate",this._close),this.browserBackHappened=!1;var t=this.options.window.location.href;t=(0,n.removeUrlHashParameter)(t,"gid"),t=(0,n.removeUrlHashParameter)(t,"pid"),this.options.history.replaceState(null,"",t),this.options.history.pushState(null,"",null)}}},{key:"endUrlHistory",value:function(){this.options.history&&(this.options.window.removeEventListener("popstate",this._close),this.browserBackHappened||this.options.history.go(-1))}},{key:"adjustUrlHistory",value:function(t){if(this.options.history){var e=this.options.window.location.href;e=(0,n.addUrlHashParameter)(e,"gid",t.gid),e=(0,n.addUrlHashParameter)(e,"pid",t.pid),this.options.history.replaceState(null,"",e)}}}])&&r(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/photoswipe/PhotoSwipeGallery.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return v}});var n=i("./node_modules/photoswipe/dist/photoswipe.esm.js"),o=(i("./node_modules/photoswipe/dist/photoswipe.css"),i("./common/js/Helpers.js")),r=i("./frontend/js/Polyfill.ts"),s=i("./frontend/js/Overlay.js"),a=i("./frontend/js/SlideShow.js"),l=i("./frontend/js/photoswipe/UrlHandling.js"),u=i("./frontend/js/photoswipe/SlideGenerator.js"),c=i("./frontend/js/minicart/CartEvents.ts"),h=i("./frontend/js/photoswipe/HistoryHandler.js");function d(t){return d="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},d(t)}function p(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return f(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 r,s=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){a=!0,r=t},f:function(){try{s||null==i.return||i.return()}finally{if(a)throw r}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function m(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==d(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===d(o)?o:String(o)),n)}var o}var v=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._isOpen=!1,this._gallery=null,this.options=(0,o.mergeObjects)({doOverlapToolbar:!1,imagePadding:0,doOverlapImageWithCaption:!1,showHideAnimationType:"zoom"},e)}var e,i;return e=t,i=[{key:"initPhotoSwipe",value:function(){this.translations=this._translate(),this._registerClickEvents();var t=(0,l.parseHash)();t.pid&&t.gid&&this.openPhotoSwipe(t.pid,this.getGalleries().get(t.gid),!0,!0)}},{key:"_translate",value:function(){return window.EventGalleryLightboxConfiguration?{closeTitle:EventGalleryLightboxConfiguration.KEY_CLOSE,zoomTitle:EventGalleryLightboxConfiguration.KEY_ZOOM,arrowPrevTitle:EventGalleryLightboxConfiguration.KEY_PREVIOUS,arrowNextTitle:EventGalleryLightboxConfiguration.KEY_NEXT,errorMsg:"The image cannot be loaded",indexIndicatorSep:" / ",share:EventGalleryLightboxConfiguration.KEY_SHARE,download:EventGalleryLightboxConfiguration.KEY_DOWNLOAD,buy:EventGalleryLightboxConfiguration.KEY_BUY,"playpause-buttonTitle":EventGalleryLightboxConfiguration.KEY_PLAYSLIDESHOW,pause:EventGalleryLightboxConfiguration.KEY_PAUSESLIDESHOW}:{}}},{key:"onThumbnailsClick",value:function(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1;var e=t.target||t.srcElement;if(null===(0,u.closest)(e,(function(t){return t.classList&&t.classList.contains("eventgallery-icon-container")}))){var i=(0,u.closest)(e,(function(t){return t.tagName&&"A"===t.tagName.toUpperCase()}));if(i){var n=this.getSlideBy(i),o=this.getIndexOfSlide(n),r=this.getGalleries().get(n.gid);return o>=0&&this.openPhotoSwipe(o,r),!1}}}},{key:"openPhotoSwipe",value:function(t,e,i,s){var a=this,l=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(void 0!==e&&0!==e.length){var u=(0,o.mergeObjects)({pswpModule:n.default,galleryPIDs:!0,bgOpacity:1,showHideAnimationType:this.options.showHideAnimationType,galleryUID:e[0].gid,tapAction:function(){a._gallery.element.classList.toggle("pswp--ui-visible"),a._gallery.element.classList.contains("pswp--ui-visible")?a._gallery.element.classList.remove("pswp--ui-invisible"):a._gallery.element.classList.add("pswp--ui-invisible"),a._gallery.updateSize(!0)},paddingFn:function(t,e,i){var n=0,s=0;if(!a._gallery.element.classList.contains("pswp--ui-invisible")&&(!1===a.options.doOverlapToolbar&&(n=(0,o.getElementHeight)(document.querySelector(".pswp__top-bar"))),n+=a.options.imagePadding,!a.options.doOverlapImageWithCaption&&e.title)){var l=document.createElement("div");l.className="pswp__custom-caption",l.innerHTML=e.title,a._gallery.element.appendChild(l),s=(0,o.getElementHeight)(l);var u=getComputedStyle(l);u.bottom&&(s+=parseInt(u.bottom,10),s+=Math.max(0,4-a.options.imagePadding)),r.default.removeHtmlElementNode(l)}return{top:n,bottom:0+s,left:0,right:0}}},this.translations);if(u.pinchToClose=!u.add2cartEl,u.closeOnVerticalDrag=!u.add2cartEl,u.closeOnScroll=!u.add2cartEl,window.EventGalleryLightboxConfiguration&&parseInt(window.EventGalleryLightboxConfiguration.navigationFadeDelay)>0&&(u.timeToIdle=parseInt(window.EventGalleryLightboxConfiguration.navigationFadeDelay),u.timeToIdleOutside=parseInt(window.EventGalleryLightboxConfiguration.navigationFadeDelay)),s)if(u.galleryPIDs){t=parseInt(t,10);for(var c=0;c<e.length;c++)if(e[c].pid===t){u.index=c;break}}else u.index=parseInt(t,10)-1;else u.index=parseInt(t,10);if(!isNaN(u.index)){i&&(u.showAnimationDuration=0),u.dataSource=e,this._gallery=new n.default(u),this._gallery.addFilter("thumbEl",(function(t,e,i){if(e.thumbEl){var n=e.thumbEl.querySelector("img");if(n)return n}return t})),this._gallery.on("close",(function(){return a._isOpen=!1})),this._gallery.on("change",(function(){var t;null===(t=a.overlay)||void 0===t||t.closeOverlay()}));var d=new h.default({onClose:function(){return a._gallery.close()},history:l?history:null});this._gallery.on("afterInit",(function(){d.startUrlHistory(),d.adjustUrlHistory(a.getCurrentSlide())})),this._gallery.on("change",(function(){d.adjustUrlHistory(a.getCurrentSlide())})),this._gallery.on("close",(function(){d.endUrlHistory()})),this._gallery.on("keydown",(function(t){var e;null!==(e=a.overlay)&&void 0!==e&&e.isOpen&&(t.defaultPrevented=!0)})),this._gallery.on("close",(function(){var t;null===(t=a.overlay)||void 0===t||t.closeOverlay()})),this._gallery.on("change",(function(){document.dispatchEvent(r.default.createNewEvent("eventgallery-lightbox-changed"))})),this._registerUIElements(),this._gallery.init(),this._isOpen=!0,document.dispatchEvent(r.default.createNewEvent("eventgallery-lightbox-opened"))}}}},{key:"_registerUIElements",value:function(){var t=this;this._gallery.on("uiRegister",(function(){t._gallery.ui.registerElement({name:"custom-caption",order:9,isButton:!1,appendTo:"root",html:"Caption text",onInit:function(e,i){i.on("change",(function(){var i=t.getCurrentSlide(),n="";i&&(n=i.title),e.innerHTML=n||"",n.length>0?e.style.display="block":e.style.display="none"}))}}),t._gallery.ui.registerElement({name:"share-button",ariaLabel:t.translations.share,title:t.translations.share,order:10,isButton:!0,html:"",onInit:function(e,i){i.on("change",(function(i){t.getCurrentSlide().shareUrl?e.style.display="block":e.style.display="none"}))},onClick:function(e,i,n){t.overlay=new s.default;var o=t.getCurrentSlide().shareUrl;return t.overlay.openOverlay(o),!1}}),t._gallery.ui.registerElement({name:"add2cart-button",ariaLabel:t.translations.buy,title:t.translations.buy,order:11,isButton:!0,html:"",onInit:function(e,i){i.on("change",(function(i){t.getCurrentSlide().add2cartUrl?e.style.display="block":e.style.display="none"}))},onClick:function(e,i){t.overlay=new s.default,t.overlay.onLoad=function(){document.dispatchEvent(r.default.createNewEvent(c.Events.prepareAdd2cartDialogContent,null))};var n=t.getCurrentSlide().add2cartUrl;return t.overlay.openOverlay(n),!1}}),t._gallery.ui.registerElement({name:"download-button",ariaLabel:t.translations.download,title:t.translations.download,order:12,isButton:!0,html:"",onInit:function(e,i){i.on("change",(function(i){t.getCurrentSlide().directDownloadButton?e.style.display="block":e.style.display="none"}))},onClick:function(e,i){var n;return null===(n=t.getCurrentSlide().directDownloadButton)||void 0===n||n.click(),!1}}),new a.default(t._gallery)}))}},{key:"_registerClickEvents",value:function(){var t,e=this,i=p(this.getGalleries().values());try{for(i.s();!(t=i.n()).done;)for(var n=t.value,o=0,r=n.length;o<r;o++)n[o].thumbEl.onclick=function(t){e.onThumbnailsClick(t)}}catch(t){i.e(t)}finally{i.f()}}},{key:"getSlideBy",value:function(t){var e,i=p(this.getGalleries().values());try{for(i.s();!(e=i.n()).done;)for(var n=e.value,o=0,r=n.length;o<r;o++)if(n[o].thumbEl===t)return n[o]}catch(t){i.e(t)}finally{i.f()}return null}},{key:"getIndexOfSlide",value:function(t){return this.getGalleries().get(t.gid).map((function(t){return t.hash()})).indexOf(t.hash())}},{key:"getGalleries",value:function(){for(var t=new Map,e=(0,u.getThumbnailContainers)(),i=0;i<e.length;i++){var n=e[i],o=void 0,r=(0,u.parseThumbnailElement)(n);null!==r&&(void 0===t.get(r.gid)&&t.set(r.gid,[]),(o=t.get(r.gid)).push(r),t.set(r.gid,o))}return t}},{key:"getCurrentSlide",value:function(){return this._gallery.currSlide.data}},{key:"getCurrentIndex",value:function(){return this._gallery.currIndex}},{key:"reload",value:function(){this._registerClickEvents()}},{key:"isOpen",value:function(){return this._isOpen}},{key:"setAfterChangeEventListener",value:function(t){this._gallery.on("change",t)}},{key:"gotoSlide",value:function(t){this._gallery.goTo(t)}}],i&&m(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/photoswipe/PhotoSwipeGallerySlide.js":function(t,e,i){"use strict";function n(t){return n="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},n(t)}function o(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===n(r)?r:String(r)),o)}var r}i.r(e),i.d(e,{default:function(){return r}});var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.width=0,this.height=0,this.src="",this.alt="",this.title="",this.pid="",this.gid="",this.thumbEl=null,this.msrc="",this.shareUrl="",this.add2cartUrl="",this.directDownloadButton=""}var e,i;return e=t,(i=[{key:"hash",value:function(){return this.gid+this.src}}])&&o(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/photoswipe/SlideGenerator.js":function(t,e,i){"use strict";i.r(e),i.d(e,{closest:function(){return s},getThumbnailContainers:function(){return r},parseThumbnailElement:function(){return a}});var n=i("./common/js/Helpers.js"),o=i("./frontend/js/photoswipe/PhotoSwipeGallerySlide.js");function r(){var t=document.querySelectorAll("a[data-eg-lightbox]");return Array.from(t).filter((function(t){var e=(0,n.getParents)(t),i=!0;return e.forEach((function(t){i&&t.classList.contains("glide__slide--clone")&&(i=!1)})),i}))}function s(t,e){return t&&(e(t)?t:s(t.parentNode,e))}function a(t){var e,i,n,r,s;if(1!==t.nodeType)return null;if(void 0===t.getElementsByTagName("IMG")[0])return null;if(i=t.getAttribute("data-height"),n=t.getAttribute("data-width"),r=t.getAttribute("data-pid"),s=t.getAttribute("data-gid"),null===i||null===n||null===r)return null;(e=new o.default).src=t.getAttribute("href"),e.width=parseInt(n,10),e.height=parseInt(i,10),e.title=decodeURIComponent(t.getAttribute("data-title")?t.getAttribute("data-title"):""),e.pid=parseInt(r,10),e.gid=s,e.thumbEl=t;var a=t.querySelector(".social-share-button");a&&(e.shareUrl=a.getAttribute("data-href")),e.directDownloadButton=t.querySelector(".eg-download");var l,u=t.querySelector(".eventgallery-add2cart");return u&&(e.add2cartUrl=(null===(l=window.EventGalleryCartConfiguration)||void 0===l?void 0:l.add2cartdialogurl)+"&"+u.getAttribute("data-id")),e}},"./frontend/js/photoswipe/UrlHandling.js":function(t,e,i){"use strict";function n(t){var e={};if(t.length<5)return e;for(var i=t.split("&"),n=0;n<i.length;n++)if(i[n]){var o=i[n].split("=");o.length<2||(e[o[0]]=o[1])}return e}function o(){return n(window.location.hash.substring(1))}i.r(e),i.d(e,{_parseHashString:function(){return n},parseHash:function(){return o}})},"./frontend/js/slider/SliderOptions.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return a}});var n=i("./frontend/js/utils/camelCaseConverter.js");function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(r)?r:String(r)),n)}var r}var s="data-slider-",a=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.options=Object.assign({autoplay:!1,slidesElementsSelector:"",numberOfRowsPerSlide:1,showNav:"true"},t._parseOptions(e))}var e,i,o;return e=t,o=[{key:"_parseOptions",value:function(t){for(var e={},i=t.attributes,o=0;o<i.length;o++)0===i[o].name.indexOf(s)&&(e[n.default.toCamelCase(i[o].name.replace(s,""))]=i[o].value);return e}}],(i=[{key:"getAutoPlay",value:function(){return!1!==this.options.autoplay&&parseInt(this.options.autoplay)}},{key:"getSlidesElementsSelector",value:function(){return this.options.slidesElementsSelector}},{key:"doShowNav",value:function(){return"true"===this.options.showNav}},{key:"getNumberOfRowsPerSlide",value:function(){return parseInt(this.options.numberOfRowsPerSlide)}}])&&r(e.prototype,i),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/slider/SliderStarter.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return h}});var n=i("./frontend/js/glide_modules/anchor.js"),o=i("./node_modules/@glidejs/glide/dist/glide.modular.esm.js"),r=i("./frontend/js/slider/SliderTransformator.js"),s=i("./frontend/js/slider/SliderOptions.js"),a=i("./frontend/js/utils/ElementSize.js"),l=i("./frontend/js/EventgalleryLazyload.js");function u(t){return u="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},u(t)}function c(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==u(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===u(o)?o:String(o)),n)}var o}var h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.sourceGroupElement=e,this.sliderTransformator=null}var e,i,u;return e=t,u=[{key:"_loadOptions",value:function(t){return new s.default(t)}}],(i=[{key:"start",value:function(){this.sliderOptions=t._loadOptions(this.sourceGroupElement);var e=this.sliderOptions.getSlidesElementsSelector(),i=this.sliderOptions.getAutoPlay(),s=this.sliderOptions.doShowNav(),u=a.default.calclateNumberOfFittingItemsPerSlide(this.sourceGroupElement,this.sourceGroupElement.querySelector(e),this.sliderOptions.getNumberOfRowsPerSlide());null==this.sliderTransformator&&(this.sliderTransformator=new r.default(this.sourceGroupElement,e,s));var c=this.sliderTransformator.transform(u);null!==c&&(l.default.watchImages(),new o.default(c,{type:"carousel",perView:1,gap:15,keyboard:!1,autoplay:i}).mount({Swipe:o.Swipe,Controls:o.Controls,Breakpoints:o.Breakpoints,Autoplay:o.Autoplay,Anchor:n.default,Images:o.Images}))}}])&&c(e.prototype,i),u&&c(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/slider/SliderTransformator.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return a}});var n=i("./frontend/js/Polyfill.ts");function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(r)?r:String(r)),n)}var r}var s=".glide",a=function(){function t(e,i,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.elementSelector=i,this.sourceGroupElement=e,this.doShowNav=n,this.sourceElements=this.getSourceElements()}var e,i;return e=t,(i=[{key:"getSourceElements",value:function(){return null===this.sourceGroupElement?null:this.sourceGroupElement.querySelectorAll(this.elementSelector)}},{key:"transform",value:function(t){if(null===this.sourceGroupElement||null===this.sourceElements)return null;if(0===this.sourceElements.length)return null;var e=this.sourceGroupElement.querySelector(s);null!==e&&e.remove();var i=document.createRange().createContextualFragment('\n<div class="glide">\n    <div class="glide__track" data-glide-el="track">\n        <ul class="glide__slides">            \n        </ul>\n    </div>\n    <div class="glide__arrows" data-glide-el="controls">\n        <button class="glide__arrow glide__arrow--left" data-glide-dir="<">prev</button>\n        <button class="glide__arrow glide__arrow--right" data-glide-dir=">">next</button>\n    </div>\n</div>');if(!this.doShowNav){var o=i.querySelector(".glide__arrows");n.default.removeHtmlElementNode(o)}for(var r=i.querySelector(".glide__slides"),a=null,l=0;l<this.sourceElements.length;l++){var u=this.sourceElements[l];l%t==0&&((a=document.createElement("li")).className="glide__slide",r.appendChild(a)),a.appendChild(u)}return this.sourceGroupElement.appendChild(i),this.sourceGroupElement.querySelector(s)}}])&&r(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/utils/ElementSize.js":function(t,e,i){"use strict";function n(t){return n="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},n(t)}function o(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===n(r)?r:String(r)),o)}var r}i.r(e),i.d(e,{default:function(){return r}});var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i;return e=t,i=[{key:"getOuterWidth",value:function(t){var e=t.getBoundingClientRect(),i=getComputedStyle(t),n=parseFloat(i.marginLeft),o=parseFloat(i.marginRight);return e.width+n+o}},{key:"calclateNumberOfFittingItemsPerSlide",value:function(e,i,n){if(null==i||null==e)return 1;var o=e.getBoundingClientRect(),r=Math.floor(o.width/t.getOuterWidth(i))*n;return r<1&&(r=1*n),r}}],null&&o(e.prototype,null),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/utils/camelCaseConverter.js":function(t,e,i){"use strict";function n(t){return n="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},n(t)}function o(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==n(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,"string");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(o.key),"symbol"===n(r)?r:String(r)),o)}var r}i.r(e),i.d(e,{default:function(){return r}});var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,i;return e=t,i=[{key:"toCamelCase",value:function(t){return t.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()}))}}],null&&o(e.prototype,null),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/js/utils/eventshandler.js":function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return a}});var n=i("./frontend/js/utils/units.ts");function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,r=function(t,e){if("object"!==o(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===o(r)?r:String(r)),n)}var r}var a=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this.listeners=e}var e,i;return e=t,i=[{key:"on",value:function(t,e,i){var o=this,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];(0,n.isString)(t)&&(t=[t]),(0,n.isNodeList)(e)||(0,n.isArray)(e)||(e=[e]),t.forEach((function(t){o.listeners[t]={closure:i,options:{capture:r,passive:s}};for(var n=0;n<e.length;n++)e[n].addEventListener(t,o.listeners[t].closure,o.listeners[t].options)}))}},{key:"off",value:function(t,e){var i=this;(0,n.isString)(t)&&(t=[t]),(0,n.isNodeList)(e)||(0,n.isArray)(e)||(e=[e]),t.forEach((function(t){for(var n=0;n<e.length;n++){var o=i.listeners[t];void 0!==o&&e[n].removeEventListener(t,o.closure,o.options)}}))}},{key:"destroy",value:function(){delete this.listeners}}],i&&s(e.prototype,i),Object.defineProperty(e,"prototype",{writable:!1}),t}()},"./frontend/less/eventgallery.less":function(t,e,i){"use strict";i.r(e)},"./frontend/less/font-awesome/font-awesome.less":function(t,e,i){"use strict";i.r(e)},"./node_modules/photoswipe/dist/photoswipe.css":function(t,e,i){"use strict";i.r(e)},"./frontend/sass/glide/glide.theme.scss":function(t,e,i){"use strict";i.r(e)},"./node_modules/@glidejs/glide/src/assets/sass/glide.core.scss":function(t,e,i){"use strict";i.r(e)},"./frontend/js/Polyfill.ts":function(t,e,i){"use strict";i.r(e);var n=function(){function t(){}return t.removeHtmlElementNode=function(t){null!==t.parentNode&&t.parentNode.removeChild(t)},t.createNewEvent=function(t,e){var i=null;return"function"==typeof CustomEvent?i=new CustomEvent(t,{detail:e}):((i=document.createEvent("Event")).initEvent(t,!0,!0),i.detail=e),i},t}();e.default=n},"./frontend/js/minicart/Add2CartButtonHandler.ts":function(t,e,i){"use strict";i.r(e),i.d(e,{Add2CartButtonHandler:function(){return a}});var n=i("./frontend/js/minicart/Add2CartDialogContent.ts"),o=i("./frontend/js/Overlay.js"),r=i("./frontend/js/utils/eventshandler.js"),s=i("./frontend/js/minicart/CartEvents.ts"),a=function(){function t(t,e){var i=this;this.eventHandler=new r.default,this.cartProcessor=t,this.add2cartdialogurl=e,this.initializeCartButtons(),document.addEventListener(s.Events.rebindAdd2CartButtons,(function(){i.initializeCartButtons()}))}return t.prototype.initializeCartButtons=function(){var t=this,e=document.getElementsByClassName("eventgallery-openAdd2cart");Array.prototype.forEach.call(e,(function(e){t.eventHandler.off("click",e),t.eventHandler.on("click",e,(function(e){t.openAdd2CartDialog(e)}))}))},t.prototype.openAdd2CartDialog=function(t){var e=this;t.preventDefault(),t.stopPropagation();var i=t.target;i.getAttribute("data-id")||(i=i.parentElement);var r=new o.default;return r.onLoad=function(){new n.Add2CartDialogContent(e.cartProcessor)},r.openOverlay(this.add2cartdialogurl+"&"+i.getAttribute("data-id")),!1},t}()},"./frontend/js/minicart/Add2CartDialogContent.ts":function(t,e,i){"use strict";i.r(e),i.d(e,{Add2CartDialogContent:function(){return n}});var n=function(){function t(t){this.cartProcessor=t,this.initialize()}return t.prototype.initialize=function(){for(var t=this,e=document.getElementsByClassName("eventgallery-cartquantity"),i=0;i<e.length;i++)e[i].addEventListener("change",(function(e){return t.updateQuantity(e)}));var n=document.getElementsByClassName("eventgallery-qtyplus");for(i=0;i<n.length;i++)n[i].addEventListener("click",(function(e){return t.quantityPlus(e)}),{capture:!0});var o=document.getElementsByClassName("eventgallery-qtyminus");for(i=0;i<o.length;i++)o[i].addEventListener("click",(function(e){return t.quantityMinus(e)}),{capture:!0});document.querySelector("#eg-single-image-type-action-needed")&&this.cartProcessor.loadCart()},t.prototype.updateQuantity=function(t){t.preventDefault();var e=t.target,i=parseInt(e.value);isNaN(i)&&(i=1);var n=e.getAttribute("data-id");this.cartProcessor.add(n,i)},t.prototype.quantityPlus=function(t){t.preventDefault();var e=t.target.getAttribute("field"),i=document.getElementsByName(e)[0],n=parseInt(i.value);if(isNaN(n))i.value="0";else{var o=parseInt(i.getAttribute("data-maxorderquantity"));(0===o||n<o)&&(i.value=String(n+1));var r=new Event("change");i.dispatchEvent(r)}},t.prototype.quantityMinus=function(t){t.preventDefault();var e=t.target.getAttribute("field"),i=document.getElementsByName(e)[0],n=parseInt(i.value);if(!isNaN(n)&&n>0){i.value=String(n-1);var o=new Event("change");i.dispatchEvent(o)}else i.value="0"},t}()},"./frontend/js/minicart/CartConnectorButtonHandler.ts":function(t,e,i){"use strict";i.r(e),i.d(e,{CartConnectorButtonHandler:function(){return s}});var n=i("./frontend/js/utils/eventshandler.js"),o=i("./frontend/js/minicart/CartEvents.ts"),r=i("./common/js/Helpers.js"),s=function(){function t(){var t=this;this.eventHandler=new n.default,this.initializeCartConnectorButtons(),document.addEventListener(o.Events.rebindAdd2CartButtons,(function(){t.initializeCartConnectorButtons()}))}return t.prototype.initializeCartConnectorButtons=function(){var t=this,e=document.getElementsByClassName("eventgallery-cart-connector");Array.prototype.forEach.call(e,(function(e){t.eventHandler.off("click",e),t.eventHandler.on("click",e,(function(e){t.openLink(e)}))}))},t.prototype.openLink=function(t){t.preventDefault(),t.stopPropagation();var e=t.target;e.getAttribute("data-href")||(e=(0,r.getParent)(e,"SPAN")),window.location.href=e.getAttribute("data-href")},t}()},"./frontend/js/minicart/CartEvents.ts":function(t,e,i){"use strict";var n;i.r(e),i.d(e,{Events:function(){return n}}),function(t){t.reload="eventgallery-minicart-reload",t.prepareAdd2cartDialogContent="eventgallery-prepare-add2cartdialogcontent",t.rebindAdd2CartButtons="eventgallery-rebind-add2cart-buttons"}(n||(n={}))},"./frontend/js/minicart/CartProcessor.ts":function(t,e,i){"use strict";i.r(e),i.d(e,{CartProcessor:function(){return l}});var n=i("./frontend/js/Polyfill.ts"),o=i("./frontend/js/minicart/Add2CartButtonHandler.ts"),r=i("./frontend/js/minicart/CartEvents.ts"),s=i("./frontend/js/minicart/CartConnectorButtonHandler.ts"),a=function(){this.removeUrl="",this.add2cartUrl="",this.getCartUrl="",this.add2cartdialogurl=""},l=function(){function t(){var t;this.urls=window.EventGalleryCartConfiguration||a,this.add2CartButtonHandler=new o.Add2CartButtonHandler(this,null===(t=this.urls)||void 0===t?void 0:t.add2cartdialogurl),this.cartConnectorButtonHandler=new s.CartConnectorButtonHandler}return t.prototype.add=function(t,e){var i=this;fetch(this.urls.add2cartUrl+"&"+t+"&quantity="+e).then((function(t){return t.json()})).then((function(t){return i.dispatchCartData(t)}))},t.prototype.remove=function(t){var e=this;fetch(this.urls.removeUrl+"&"+t).then((function(t){return t.json()})).then((function(t){return e.dispatchCartData(t)}))},t.prototype.loadCart=function(){var t=this;fetch(this.urls.getCartUrl).then((function(t){return t.json()})).then((function(e){return t.dispatchCartData(e)}))},t.prototype.dispatchCartData=function(t){document.dispatchEvent(n.default.createNewEvent(r.Events.reload,{cart:t}))},t}()},"./frontend/js/minicart/MiniCart.ts":function(t,e,i){"use strict";i.r(e),i.d(e,{MiniCart:function(){return l}});var n,o=i("./common/js/Helpers.js"),r=i("./frontend/js/Polyfill.ts"),s=i("./frontend/js/minicart/CartEvents.ts");!function(t){t[t.short=0]="short",t[t.long=1]="long"}(n||(n={}));var a=function(){this.buttonShowType="inline",this.emptyCartSelector=".eventgallery-empty-minicart",this.cartSelector=".eventgallery-minicart",this.cartItemContainerSelector=".cart-items-container",this.cartItemsSelector=".cart-items",this.cartItemSelector=".cart-items .cart-item",this.cartCountSelector=".itemscount",this.buttonDownSelector=".toggle-down",this.buttonUpSelector=".toggle-up",this.cartItemsMinHeight=null,this.removeLinkTitle="Remove"},l=function(){function t(t,e,i){var r=this;this.minicartMode=n.short,this.containerElement=e,this.cartProcessor=t,this.lineItems=[],this.options=(0,o.mergeObjects)(new a,i);var l=window.EventGalleryCartConfiguration;this.options=(0,o.mergeObjects)(this.options,l),this.initUI(),document.addEventListener(s.Events.reload,(function(t){return r.updateCartData(t.detail)})),document.addEventListener(s.Events.rebindAdd2CartButtons,(function(){r.updateAdd2CartIcons()}))}return t.prototype.initUI=function(){var t,e,i,o,r,s=this;this.cartElement=null===(t=this.containerElement)||void 0===t?void 0:t.querySelector(this.options.cartSelector),this.cartItemsElement=null===(e=this.cartElement)||void 0===e?void 0:e.querySelector(this.options.cartItemsSelector),this.emptyCartElement=null===(i=this.containerElement)||void 0===i?void 0:i.querySelector(this.options.emptyCartSelector),this.buttonToShort=null===(o=this.cartElement)||void 0===o?void 0:o.querySelector(this.options.buttonUpSelector),this.buttonToLong=null===(r=this.cartElement)||void 0===r?void 0:r.querySelector(this.options.buttonDownSelector),this.buttonToLong.addEventListener("click",(function(){s.resizeCartArea(n.long)})),this.buttonToShort.addEventListener("click",(function(){s.resizeCartArea(n.short)}))},t.prototype._generateId=function(t){return"folder="+encodeURIComponent(t.folder)+"&file="+encodeURIComponent(t.file)},t.prototype.updateAdd2CartIcons=function(){for(var t=document.querySelectorAll(".eventgallery-add2cart i.egfa"),e=0;e<t.length;e++)t[e].classList.remove("egfa-shopping-cart"),t[e].classList.add("egfa-cart-plus");for(e=0;e<this.lineItems.length;e++)for(var i=this._generateId(this.lineItems[e]),n=document.querySelectorAll(".eventgallery-add2cart[data-id*='".concat(i,"'] i.egfa")),o=0;o<n.length;o++)n[o].classList.add("egfa-shopping-cart"),n[o].classList.remove("egfa-cart-plus")},t.prototype.resizeCartArea=function(t){this.minicartMode=t;for(var e=1,i=-1,r=-1,s=this.cartItemsElement.querySelectorAll(this.options.cartItemSelector),a=0;a<s.length;a++){var l=s[a];i<0&&(i=(0,o.getOuterHeight)(l)),r>-1&&r!=l.offsetTop&&e++,r=l.offsetTop}var u=1;1===e?(this.buttonToShort.style.display="none",this.buttonToLong.style.display="none"):this.minicartMode==n.short?(this.buttonToShort.style.display="none",this.buttonToLong.style.display="inline"):(this.buttonToShort.style.display="inline",this.buttonToLong.style.display="none",u=e),this.cartItemsElement.style.height=u*i+"px"},t.prototype.updateCartData=function(t){var e=this;this.lineItems=t.cart,this.lineItems.length>0?(this.cartElement.style.display="block",this.emptyCartElement&&(this.emptyCartElement.style.display="none")):(this.cartElement.style.display="none",this.emptyCartElement&&(this.emptyCartElement.style.display="block"));for(var i="",n=this.lineItems.length-1;n>=0;n--)i+='<div>\n                    <div class="cart-item">\n                        <span class="badge badge-pill badge-info">'.concat(this.lineItems[n].count,"</span>\n                        ").concat(this.lineItems[n].imagetag,'\n                        <a href="#" title="').concat(this.options.removeLinkTitle,'" \n                            class="button-removeFromCart eventgallery-removeFromCart" \n                            data-id="lineitemid=').concat(this.lineItems[n].lineitemid,'">\n                            <i class="egfa egfa-2x egfa-remove"></i>\n                        </a>\n                    </div>\n                </div>');this.cartItemsElement.innerHTML=i;var o=this.cartItemsElement.querySelectorAll(".eventgallery-removeFromCart");for(n=0;n<o.length;n++)o[n].addEventListener("click",(function(t){return e.remove(t)}));this.updateAdd2CartIcons(),this.resizeCartArea(this.minicartMode),this.cartElement.querySelector(".itemscount").innerHTML=this.lineItems.length,void 0!==Eventgallery&&void 0!==Eventgallery.lightbox&&Eventgallery.lightbox.reload(),document.dispatchEvent(r.default.createNewEvent("eventgallery-images-added",{isOverlay:!0}))},t.prototype.remove=function(t){t.preventDefault();var e,i=t.target;e=i.getAttribute("data-id")?i.getAttribute("data-id"):i.parentElement.getAttribute("data-id"),this.cartProcessor.remove(e)},t}()},"./frontend/js/minicart/index.ts":function(t,e,i){"use strict";i.r(e);var n=i("./frontend/js/minicart/MiniCart.ts"),o=i("./frontend/js/minicart/Add2CartDialogContent.ts"),r=i("./frontend/js/minicart/CartProcessor.ts"),s=i("./frontend/js/minicart/CartEvents.ts");document.addEventListener("DOMContentLoaded",(function(){try{var t=new r.CartProcessor,e=document.getElementsByClassName("eventgallery-minicart-container");if(0==e.length)return;for(var i=0;i<e.length;i++)new n.MiniCart(t,e[i],null);t.loadCart(),document.addEventListener(s.Events.prepareAdd2cartDialogContent,(function(){new o.Add2CartDialogContent(t)}))}catch(t){console.log(t)}})),document.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector(".orderimages-container");if(t){var e="true"===t.getAttribute("data-sticky-image-type-selection"),i=t.querySelector(".orderimages-hide"),n=t.querySelector(".orderimages-show"),o=t.querySelector(".orderimages-help");n.addEventListener("click",(function(t){t&&t.preventDefault(),i.style.display="block",o.style.display="block",n.style.display="none",s(!0)})),i.addEventListener("click",r),e?(n.style.display="none",i.style.display="none",s(!0)):r(null)}function r(t){t&&t.preventDefault(),i.style.display="none",o.style.display="none",n.style.display="block",s(!1)}function s(t){for(var e=document.querySelectorAll(".eventgallery-add2cart"),i=0;i<e.length;i++)e[i].style.display=t?"inline-block":"none"}}))},"./frontend/js/socialbutton/index.ts":function(t,e,i){"use strict";i.r(e);var n=i("./frontend/js/socialbutton/socialbutton.ts"),o=i("./frontend/js/Overlay.js");document.addEventListener("DOMContentLoaded",(function(){for(var t=document.querySelectorAll(".social-share-button-open"),e=function(e){var i=t[e].getAttribute("data-href");t[e].addEventListener("click",(function(t){t.preventDefault(),(new o.default).openOverlay(i)}),!0)},i=0;i<t.length;i++)e(i);t=document.querySelectorAll(".eg-download");var r=function(e){var i=t[e],o=i.getAttribute("data-href"),r=i.getAttribute("data-download");null!=r?i.addEventListener("click",(function(t){n.DownloadButton.download(t,o,r)}),!0):i.addEventListener("click",(function(t){n.ClickableButton.click(t,o)}),!0)};for(i=0;i<t.length;i++)r(i)}))},"./frontend/js/socialbutton/socialbutton.ts":function(t,e,i){"use strict";i.r(e),i.d(e,{ClickableButton:function(){return o},DownloadButton:function(){return n}});var n=function(){function t(){}return t.download=function(t,e,i){t.preventDefault();var n=document.createElement("a");n.href=e,n.setAttribute("target","_blank"),n.download=i,document.body.appendChild(n),n.click(),document.body.removeChild(n)},t}(),o=function(){function t(){}return t.click=function(t,e){t.preventDefault(),document.location.href=e},t}()},"./frontend/js/touch/Touch.ts":function(t,e,i){"use strict";i.r(e),i.d(e,{addTouch:function(){return o}});var n=new(i("./frontend/js/utils/eventshandler.js").default);function o(t,e,i,o,r){var s,a,l,u,c=!1,h=!1;n.off("touchstart",t),n.off("touchend",t),n.on("touchstart",t,(function(t){l=t.targetTouches[0]}),!1,!0),n.on("touchend",t,(function(t){return!!(u=t.changedTouches[0])&&(u.pageY,l.pageY,u.pageX,l.pageX,a=u.pageY-l.pageY,Math.abs(a)>=50&&(c=!0),s=u.pageX-l.pageX,!c&&Math.abs(s)>=50&&(h=!0),c?(c=!1,Math.abs(a)>=100&&r&&r()):h?(h=!1,s>=50?e&&e():s<=-50&&i&&i()):Math.abs(a)<5&&Math.abs(s)<5&&(void 0!==o?o():t.target.click()),!0)}),!1,!0)}},"./frontend/js/utils/units.ts":function(t,e,i){"use strict";function n(t){return"string"==typeof t}function o(t){return Array.isArray(t)}function r(t){return NodeList.prototype.isPrototypeOf(t)}i.r(e),i.d(e,{isArray:function(){return o},isNodeList:function(){return r},isString:function(){return n}})},"./node_modules/@glidejs/glide/dist/glide.modular.esm.js":function(t,e,i){"use strict";function n(t){return n="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},n(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,i){return e&&r(t.prototype,e),i&&r(t,i),t}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function u(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=a(t)););return t}function h(){return h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=c(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:i):o.value}},h.apply(this,arguments)}i.r(e),i.d(e,{Anchors:function(){return Y},Autoplay:function(){return et},Breakpoints:function(){return nt},Controls:function(){return Q},Images:function(){return K},Keyboard:function(){return tt},Swipe:function(){return V},default:function(){return rt}});var d={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function p(t){console.error("[Glide warn]: ".concat(t))}function f(t){return parseInt(t)}function m(t){return"string"==typeof t}function v(t){var e=n(t);return"function"===e||"object"===e&&!!t}function g(t){return"function"==typeof t}function y(t){return void 0===t}function b(t){return t.constructor===Array}function w(t,e,i){var n={};for(var o in e)g(e[o])?n[o]=e[o](t,n,i):p("Extension must be a function");for(var r in n)g(n[r].mount)&&n[r].mount();return n}function _(t,e,i){Object.defineProperty(t,e,i)}function S(t,e){var i=Object.assign({},t,e);return e.hasOwnProperty("classes")&&(i.classes=Object.assign({},t.classes,e.classes),e.classes.hasOwnProperty("direction")&&(i.classes.direction=Object.assign({},t.classes.direction,e.classes.direction)),e.classes.hasOwnProperty("type")&&(i.classes.type=Object.assign({},t.classes.type,e.classes.type)),e.classes.hasOwnProperty("slide")&&(i.classes.slide=Object.assign({},t.classes.slide,e.classes.slide)),e.classes.hasOwnProperty("arrow")&&(i.classes.arrow=Object.assign({},t.classes.arrow,e.classes.arrow)),e.classes.hasOwnProperty("nav")&&(i.classes.nav=Object.assign({},t.classes.nav,e.classes.nav))),e.hasOwnProperty("breakpoints")&&(i.breakpoints=Object.assign({},t.breakpoints,e.breakpoints)),i}var C=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),this.events=e,this.hop=e.hasOwnProperty}return s(t,[{key:"on",value:function(t,e){if(!b(t)){this.hop.call(this.events,t)||(this.events[t]=[]);var i=this.events[t].push(e)-1;return{remove:function(){delete this.events[t][i]}}}for(var n=0;n<t.length;n++)this.on(t[n],e)}},{key:"emit",value:function(t,e){if(b(t))for(var i=0;i<t.length;i++)this.emit(t[i],e);else this.hop.call(this.events,t)&&this.events[t].forEach((function(t){t(e||{})}))}}]),t}(),E=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this._c={},this._t=[],this._e=new C,this.disabled=!1,this.selector=e,this.settings=S(d,i),this.index=this.settings.startAt}return s(t,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),v(t)?this._c=w(this,t,this._e):p("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return b(t)?this._t=t:p("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=S(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,e){return this._e.on(t,e),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){v(t)?this._o=t:p("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=f(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),t}();function P(){return(new Date).getTime()}function x(t,e,i){var n,o,r,s,a=0;i||(i={});var l=function(){a=!1===i.leading?0:P(),n=null,s=t.apply(o,r),n||(o=r=null)},u=function(){var u=P();a||!1!==i.leading||(a=u);var c=e-(u-a);return o=this,r=arguments,c<=0||c>e?(n&&(clearTimeout(n),n=null),a=u,s=t.apply(o,r),n||(o=r=null)):n||!1===i.trailing||(n=setTimeout(l,c)),s};return u.cancel=function(){clearTimeout(n),a=0,n=o=r=null},u}var k={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function j(t){if(t&&t.parentNode){for(var e=t.parentNode.firstChild,i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}return[]}function L(t){return!!(t&&t instanceof window.HTMLElement)}function A(t){return Array.prototype.slice.call(t)}var T='[data-glide-el="track"]',O=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t),this.listeners=e}return s(t,[{key:"on",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];m(t)&&(t=[t]);for(var o=0;o<t.length;o++)this.listeners[t[o]]=i,e.addEventListener(t[o],this.listeners[t[o]],n)}},{key:"off",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];m(t)&&(t=[t]);for(var n=0;n<t.length;n++)e.removeEventListener(t[n],this.listeners[t[n]],i)}},{key:"destroy",value:function(){delete this.listeners}}]),t}(),I=["ltr","rtl"],z={">":"<","<":">","=":"="};function H(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function D(t,e){return{modify:function(t){var i=Math.floor(t/e.Sizes.slideWidth);return t+e.Gaps.value*i}}}function R(t,e){return{modify:function(t){return t+e.Clones.grow/2}}}function M(t,e){return{modify:function(i){if(t.settings.focusAt>=0){var n=e.Peek.value;return v(n)?i-n.before:i-n}return i}}}function B(t,e){return{modify:function(i){var n=e.Gaps.value,o=e.Sizes.width,r=t.settings.focusAt,s=e.Sizes.slideWidth;return"center"===r?i-(o/2-s/2):i-s*r-n*r}}}var q=!1;try{var N=Object.defineProperty({},"passive",{get:function(){q=!0}});window.addEventListener("testPassive",null,N),window.removeEventListener("testPassive",null,N)}catch(t){}var Z=q,F=["touchstart","mousedown"],U=["touchmove","mousemove"],W=["touchend","touchcancel","mouseup","mouseleave"],G=["mousedown","mousemove","mouseup","mouseleave"];function V(t,e,i){var n=new O,o=0,r=0,s=0,a=!1,l=!!Z&&{passive:!0},u={mount:function(){this.bindSwipeStart()},start:function(e){if(!a&&!t.disabled){this.disable();var n=this.touches(e);o=null,r=f(n.pageX),s=f(n.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),i.emit("swipe.start")}},move:function(n){if(!t.disabled){var a=t.settings,l=a.touchAngle,u=a.touchRatio,c=a.classes,h=this.touches(n),d=f(h.pageX)-r,p=f(h.pageY)-s,m=Math.abs(d<<2),v=Math.abs(p<<2),g=Math.sqrt(m+v),y=Math.sqrt(v);if(!(180*(o=Math.asin(y/g))/Math.PI<l))return!1;n.stopPropagation(),e.Move.make(d*parseFloat(u)),e.Html.root.classList.add(c.dragging),i.emit("swipe.move")}},end:function(n){if(!t.disabled){var s=t.settings,a=s.perSwipe,l=s.touchAngle,u=s.classes,c=this.touches(n),h=this.threshold(n),d=c.pageX-r,p=180*o/Math.PI;this.enable(),d>h&&p<l?e.Run.make(e.Direction.resolve("".concat(a,"<"))):d<-h&&p<l?e.Run.make(e.Direction.resolve("".concat(a,">"))):e.Move.make(),e.Html.root.classList.remove(u.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),i.emit("swipe.end")}},bindSwipeStart:function(){var i=this,o=t.settings,r=o.swipeThreshold,s=o.dragThreshold;r&&n.on(F[0],e.Html.wrapper,(function(t){i.start(t)}),l),s&&n.on(F[1],e.Html.wrapper,(function(t){i.start(t)}),l)},unbindSwipeStart:function(){n.off(F[0],e.Html.wrapper,l),n.off(F[1],e.Html.wrapper,l)},bindSwipeMove:function(){var i=this;n.on(U,e.Html.wrapper,x((function(t){i.move(t)}),t.settings.throttle),l)},unbindSwipeMove:function(){n.off(U,e.Html.wrapper,l)},bindSwipeEnd:function(){var t=this;n.on(W,e.Html.wrapper,(function(e){t.end(e)}))},unbindSwipeEnd:function(){n.off(W,e.Html.wrapper)},touches:function(t){return G.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var i=t.settings;return G.indexOf(e.type)>-1?i.dragThreshold:i.swipeThreshold},enable:function(){return a=!1,e.Transition.enable(),this},disable:function(){return a=!0,e.Transition.disable(),this}};return i.on("build.after",(function(){e.Html.root.classList.add(t.settings.classes.swipeable)})),i.on("destroy",(function(){u.unbindSwipeStart(),u.unbindSwipeMove(),u.unbindSwipeEnd(),n.destroy()})),u}function K(t,e,i){var n=new O,o={mount:function(){this.bind()},bind:function(){n.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){n.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return i.on("destroy",(function(){o.unbind(),n.destroy()})),o}function Y(t,e,i){var n=new O,o=!1,r=!1,s={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){n.on("click",e.Html.wrapper,this.click)},unbind:function(){n.off("click",e.Html.wrapper)},click:function(t){r&&(t.stopPropagation(),t.preventDefault())},detach:function(){if(r=!0,!o){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!1;o=!0}return this},attach:function(){if(r=!1,o){for(var t=0;t<this.items.length;t++)this.items[t].draggable=!0;o=!1}return this}};return _(s,"items",{get:function(){return s._a}}),i.on("swipe.move",(function(){s.detach()})),i.on("swipe.end",(function(){e.Transition.after((function(){s.attach()}))})),i.on("destroy",(function(){s.attach(),s.unbind(),n.destroy()})),s}var X='[data-glide-el^="controls"]',J="".concat(X,' [data-glide-dir*="<"]'),$="".concat(X,' [data-glide-dir*=">"]');function Q(t,e,i){var n=new O,o=!!Z&&{passive:!0},r={mount:function(){this._n=e.Html.root.querySelectorAll('[data-glide-el="controls[nav]"]'),this._c=e.Html.root.querySelectorAll(X),this._arrowControls={previous:e.Html.root.querySelectorAll(J),next:e.Html.root.querySelectorAll($)},this.addBindings()},setActive:function(){for(var t=0;t<this._n.length;t++)this.addClass(this._n[t].children)},removeActive:function(){for(var t=0;t<this._n.length;t++)this.removeClass(this._n[t].children)},addClass:function(e){var i=t.settings,n=e[t.index];n&&n&&(n.classList.add(i.classes.nav.active),j(n).forEach((function(t){t.classList.remove(i.classes.nav.active)})))},removeClass:function(e){var i=e[t.index];i&&i.classList.remove(t.settings.classes.nav.active)},setArrowState:function(){if(!t.settings.rewind){var i=r._arrowControls.next,n=r._arrowControls.previous;this.resetArrowState(i,n),0===t.index&&this.disableArrow(n),t.index===e.Run.length&&this.disableArrow(i)}},resetArrowState:function(){for(var e=t.settings,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];n.forEach((function(t){A(t).forEach((function(t){t.classList.remove(e.classes.arrow.disabled)}))}))},disableArrow:function(){for(var e=t.settings,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];n.forEach((function(t){A(t).forEach((function(t){t.classList.add(e.classes.arrow.disabled)}))}))},addBindings:function(){for(var t=0;t<this._c.length;t++)this.bind(this._c[t].children)},removeBindings:function(){for(var t=0;t<this._c.length;t++)this.unbind(this._c[t].children)},bind:function(t){for(var e=0;e<t.length;e++)n.on("click",t[e],this.click),n.on("touchstart",t[e],this.click,o)},unbind:function(t){for(var e=0;e<t.length;e++)n.off(["click","touchstart"],t[e])},click:function(t){Z||"touchstart"!==t.type||t.preventDefault();var i=t.currentTarget.getAttribute("data-glide-dir");e.Run.make(e.Direction.resolve(i))}};return _(r,"items",{get:function(){return r._c}}),i.on(["mount.after","move.after"],(function(){r.setActive()})),i.on(["mount.after","run"],(function(){r.setArrowState()})),i.on("destroy",(function(){r.removeBindings(),r.removeActive(),n.destroy()})),r}function tt(t,e,i){var n=new O,o={mount:function(){t.settings.keyboard&&this.bind()},bind:function(){n.on("keyup",document,this.press)},unbind:function(){n.off("keyup",document)},press:function(i){var n=t.settings.perSwipe;"ArrowRight"===i.code&&e.Run.make(e.Direction.resolve("".concat(n,">"))),"ArrowLeft"===i.code&&e.Run.make(e.Direction.resolve("".concat(n,"<")))}};return i.on(["destroy","update"],(function(){o.unbind()})),i.on("update",(function(){o.mount()})),i.on("destroy",(function(){n.destroy()})),o}function et(t,e,i){var n=new O,o={mount:function(){this.enable(),this.start(),t.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var n=this;this._e&&(this.enable(),t.settings.autoplay&&y(this._i)&&(this._i=setInterval((function(){n.stop(),e.Run.make(">"),n.start(),i.emit("autoplay")}),this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;n.on("mouseover",e.Html.root,(function(){t._e&&t.stop()})),n.on("mouseout",e.Html.root,(function(){t._e&&t.start()}))},unbind:function(){n.off(["mouseover","mouseout"],e.Html.root)}};return _(o,"time",{get:function(){return f(e.Html.slides[t.index].getAttribute("data-glide-autoplay")||t.settings.autoplay)}}),i.on(["destroy","update"],(function(){o.unbind()})),i.on(["run.before","swipe.start","update"],(function(){o.stop()})),i.on(["pause","destroy"],(function(){o.disable(),o.stop()})),i.on(["run.after","swipe.end"],(function(){o.start()})),i.on(["play"],(function(){o.enable(),o.start()})),i.on("update",(function(){o.mount()})),i.on("destroy",(function(){n.destroy()})),o}function it(t){return v(t)?(e=t,Object.keys(e).sort().reduce((function(t,i){return t[i]=e[i],t[i],t}),{})):(p("Breakpoints option must be an object"),{});var e}function nt(t,e,i){var n=new O,o=t.settings,r=it(o.breakpoints),s=Object.assign({},o),a={match:function(t){if(void 0!==window.matchMedia)for(var e in t)if(t.hasOwnProperty(e)&&window.matchMedia("(max-width: ".concat(e,"px)")).matches)return t[e];return s}};return Object.assign(o,a.match(r)),n.on("resize",window,x((function(){t.settings=S(o,a.match(r))}),t.settings.throttle)),i.on("update",(function(){r=it(r),s=Object.assign({},o)})),i.on("destroy",(function(){n.off("resize",window)})),a}var ot={Html:function(t,e,i){var n={mount:function(){this.root=t.selector,this.track=this.root.querySelector(T),this.collectSlides()},collectSlides:function(){this.slides=A(this.wrapper.children).filter((function(e){return!e.classList.contains(t.settings.classes.slide.clone)}))}};return _(n,"root",{get:function(){return n._r},set:function(t){m(t)&&(t=document.querySelector(t)),L(t)?n._r=t:p("Root element must be a existing Html node")}}),_(n,"track",{get:function(){return n._t},set:function(t){L(t)?n._t=t:p("Could not find track element. Please use ".concat(T," attribute."))}}),_(n,"wrapper",{get:function(){return n.track.children[0]}}),i.on("update",(function(){n.collectSlides()})),n},Translate:function(t,e,i){var n={set:function(i){var n=function(t,e,i){var n=[D,R,M,B].concat(t._t,[H]);return{mutate:function(i){for(var o=0;o<n.length;o++){var r=n[o];g(r)&&g(r().modify)?i=r(t,e,undefined).modify(i):p("Transformer should be a function that returns an object with `modify()` method")}return i}}}(t,e).mutate(i),o="translate3d(".concat(-1*n,"px, 0px, 0px)");e.Html.wrapper.style.mozTransform=o,e.Html.wrapper.style.webkitTransform=o,e.Html.wrapper.style.transform=o},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var i=e.Sizes.length,n=t.index,o=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?i+(n-o):(n+o)%i},getTravelDistance:function(){var i=e.Sizes.slideWidth*t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?-1*i:i}};return i.on("move",(function(o){if(!t.isType("carousel")||!e.Run.isOffset())return n.set(o.movement);e.Transition.after((function(){i.emit("translate.jump"),n.set(e.Sizes.slideWidth*t.index)}));var r=e.Sizes.slideWidth*e.Translate.getStartIndex();return n.set(r-e.Translate.getTravelDistance())})),i.on("destroy",(function(){n.remove()})),n},Transition:function(t,e,i){var n=!1,o={compose:function(e){var i=t.settings;return n?"".concat(e," 0ms ").concat(i.animationTimingFunc):"".concat(e," ").concat(this.duration,"ms ").concat(i.animationTimingFunc)},set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(t)},remove:function(){e.Html.wrapper.style.transition=""},after:function(t){setTimeout((function(){t()}),this.duration)},enable:function(){n=!1,this.set()},disable:function(){n=!0,this.set()}};return _(o,"duration",{get:function(){var i=t.settings;return t.isType("slider")&&e.Run.offset?i.rewindDuration:i.animationDuration}}),i.on("move",(function(){o.set()})),i.on(["build.before","resize","translate.jump"],(function(){o.disable()})),i.on("run",(function(){o.enable()})),i.on("destroy",(function(){o.remove()})),o},Direction:function(t,e,i){var n={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(z[e]):t},is:function(t){return this.value===t},addClass:function(){e.Html.root.classList.add(t.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(t.settings.classes.direction[this.value])}};return _(n,"value",{get:function(){return n._v},set:function(t){I.indexOf(t)>-1?n._v=t:p("Direction value must be `ltr` or `rtl`")}}),i.on(["destroy","update"],(function(){n.removeClass()})),i.on("update",(function(){n.mount()})),i.on(["build.before","update"],(function(){n.addClass()})),n},Peek:function(t,e,i){var n={mount:function(){this.value=t.settings.peek}};return _(n,"value",{get:function(){return n._v},set:function(t){v(t)?(t.before=f(t.before),t.after=f(t.after)):t=f(t),n._v=t}}),_(n,"reductor",{get:function(){var e=n.value,i=t.settings.perView;return v(e)?e.before/i+e.after/i:2*e/i}}),i.on(["resize","update"],(function(){n.mount()})),n},Sizes:function(t,e,i){var n={setupSlides:function(){for(var t="".concat(this.slideWidth,"px"),i=e.Html.slides,n=0;n<i.length;n++)i[n].style.width=t},setupWrapper:function(){e.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var t=e.Html.slides,i=0;i<t.length;i++)t[i].style.width="";e.Html.wrapper.style.width=""}};return _(n,"length",{get:function(){return e.Html.slides.length}}),_(n,"width",{get:function(){return e.Html.track.offsetWidth}}),_(n,"wrapperSize",{get:function(){return n.slideWidth*n.length+e.Gaps.grow+e.Clones.grow}}),_(n,"slideWidth",{get:function(){return n.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),i.on(["build.before","resize","update"],(function(){n.setupSlides(),n.setupWrapper()})),i.on("destroy",(function(){n.remove()})),n},Gaps:function(t,e,i){var n={apply:function(t){for(var i=0,n=t.length;i<n;i++){var o=t[i].style,r=e.Direction.value;o[k[r][0]]=0!==i?"".concat(this.value/2,"px"):"",i!==t.length-1?o[k[r][1]]="".concat(this.value/2,"px"):o[k[r][1]]=""}},remove:function(t){for(var e=0,i=t.length;e<i;e++){var n=t[e].style;n.marginLeft="",n.marginRight=""}}};return _(n,"value",{get:function(){return f(t.settings.gap)}}),_(n,"grow",{get:function(){return n.value*e.Sizes.length}}),_(n,"reductor",{get:function(){var e=t.settings.perView;return n.value*(e-1)/e}}),i.on(["build.after","update"],x((function(){n.apply(e.Html.wrapper.children)}),30)),i.on("destroy",(function(){n.remove(e.Html.wrapper.children)})),n},Move:function(t,e,i){var n={mount:function(){this._o=0},make:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=n,i.emit("move",{movement:this.value}),e.Transition.after((function(){i.emit("move.after",{movement:t.value})}))}};return _(n,"offset",{get:function(){return n._o},set:function(t){n._o=y(t)?0:f(t)}}),_(n,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),_(n,"value",{get:function(){var t=this.offset,i=this.translate;return e.Direction.is("rtl")?i+t:i-t}}),i.on(["build.before","run"],(function(){n.make()})),n},Clones:function(t,e,i){var n={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=e.Html.slides,o=t.settings,r=o.perView,s=o.classes,a=o.cloningRatio;if(0!==n.length)for(var l=+!!t.settings.peek,u=r+l+Math.round(r/2),c=n.slice(0,u).reverse(),h=n.slice(-1*u),d=0;d<Math.max(a,Math.floor(r/n.length));d++){for(var p=0;p<c.length;p++){var f=c[p].cloneNode(!0);f.classList.add(s.slide.clone),i.push(f)}for(var m=0;m<h.length;m++){var v=h[m].cloneNode(!0);v.classList.add(s.slide.clone),i.unshift(v)}}return i},append:function(){for(var t=this.items,i=e.Html,n=i.wrapper,o=i.slides,r=Math.floor(t.length/2),s=t.slice(0,r).reverse(),a=t.slice(-1*r).reverse(),l="".concat(e.Sizes.slideWidth,"px"),u=0;u<a.length;u++)n.appendChild(a[u]);for(var c=0;c<s.length;c++)n.insertBefore(s[c],o[0]);for(var h=0;h<t.length;h++)t[h].style.width=l},remove:function(){for(var t=this.items,i=0;i<t.length;i++)e.Html.wrapper.removeChild(t[i])}};return _(n,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*n.items.length}}),i.on("update",(function(){n.remove(),n.mount(),n.append()})),i.on("build.before",(function(){t.isType("carousel")&&n.append()})),i.on("destroy",(function(){n.remove()})),n},Resize:function(t,e,i){var n=new O,o={mount:function(){this.bind()},bind:function(){n.on("resize",window,x((function(){i.emit("resize")}),t.settings.throttle))},unbind:function(){n.off("resize",window)}};return i.on("destroy",(function(){o.unbind(),n.destroy()})),o},Build:function(t,e,i){var n={mount:function(){i.emit("build.before"),this.typeClass(),this.activeClass(),i.emit("build.after")},typeClass:function(){e.Html.root.classList.add(t.settings.classes.type[t.settings.type])},activeClass:function(){var i=t.settings.classes,n=e.Html.slides[t.index];n&&(n.classList.add(i.slide.active),j(n).forEach((function(t){t.classList.remove(i.slide.active)})))},removeClasses:function(){var i=t.settings.classes,n=i.type,o=i.slide;e.Html.root.classList.remove(n[t.settings.type]),e.Html.slides.forEach((function(t){t.classList.remove(o.active)}))}};return i.on(["destroy","update"],(function(){n.removeClasses()})),i.on(["resize","update"],(function(){n.mount()})),i.on("move.after",(function(){n.activeClass()})),n},Run:function(t,e,i){var n={mount:function(){this._o=!1},make:function(n){var o=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=n,i.emit("run.before",this.move),this.calculate(),i.emit("run",this.move),e.Transition.after((function(){o.isStart()&&i.emit("run.start",o.move),o.isEnd()&&i.emit("run.end",o.move),o.isOffset()&&(o._o=!1,i.emit("run.offset",o.move)),i.emit("run.after",o.move),t.enable()})))},calculate:function(){var e=this.move,i=this.length,o=e.steps,r=e.direction,s=1;if("="===r)return t.settings.bound&&f(o)>i?void(t.index=i):void(t.index=o);if(">"!==r||">"!==o)if("<"!==r||"<"!==o){if("|"===r&&(s=t.settings.perView||1),">"===r||"|"===r&&">"===o){var a=function(e){var i=t.index;return t.isType("carousel")?i+e:i+(e-i%e)}(s);return a>i&&(this._o=!0),void(t.index=function(e,i){var o=n.length;return e<=o?e:t.isType("carousel")?e-(o+1):t.settings.rewind?n.isBound()&&!n.isEnd()?o:0:n.isBound()?o:Math.floor(o/i)*i}(a,s))}if("<"===r||"|"===r&&"<"===o){var l=function(e){var i=t.index;return t.isType("carousel")?i-e:(Math.ceil(i/e)-1)*e}(s);return l<0&&(this._o=!0),void(t.index=function(e,i){var o=n.length;return e>=0?e:t.isType("carousel")?e+(o+1):t.settings.rewind?n.isBound()&&n.isStart()?o:Math.floor(o/i)*i:0}(l,s))}p("Invalid direction pattern [".concat(r).concat(o,"] has been used"))}else t.index=0;else t.index=i},isStart:function(){return t.index<=0},isEnd:function(){return t.index>=this.length},isOffset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?!!this._o&&("|>"===t?"|"===this.move.direction&&">"===this.move.steps:"|<"===t?"|"===this.move.direction&&"<"===this.move.steps:this.move.direction===t):this._o},isBound:function(){return t.isType("slider")&&"center"!==t.settings.focusAt&&t.settings.bound}};return _(n,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?f(e)?f(e):e:0}}}),_(n,"length",{get:function(){var i=t.settings,n=e.Html.slides.length;return this.isBound()?n-1-(f(i.perView)-1)+f(i.focusAt):n-1}}),_(n,"offset",{get:function(){return this._o}}),n}},rt=function(t){!function(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&&l(t,e)}(r,t);var e,i,n=(e=r,i=function(){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(){var t,n=a(e);if(i){var o=a(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return u(this,t)});function r(){return o(this,r),n.apply(this,arguments)}return s(r,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h(a(r.prototype),"mount",this).call(this,Object.assign({},ot,t))}}]),r}(E)},"./node_modules/photoswipe/dist/photoswipe.esm.js":function(t,e,i){"use strict";function n(t,e,i){const n=document.createElement(e||"div");return t&&(n.className=t),i&&i.appendChild(n),n}function o(t,e){return t.x=e.x,t.y=e.y,void 0!==e.id&&(t.id=e.id),t}function r(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function s(t,e){const i=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return Math.sqrt(i*i+n*n)}function a(t,e){return t.x===e.x&&t.y===e.y}function l(t,e,i){return Math.min(Math.max(t,e),i)}function u(t,e,i){let n="translate3d("+t+"px,"+(e||0)+"px,0)";return void 0!==i&&(n+=" scale3d("+i+","+i+",1)"),n}function c(t,e,i,n){t.style.transform=u(e,i,n)}function h(t,e,i,n){t.style.transition=e?e+" "+i+"ms "+(n||"cubic-bezier(.4,0,.22,1)"):"none"}function d(t,e,i){t.style.width="number"==typeof e?e+"px":e,t.style.height="number"==typeof i?i+"px":i}i.r(e),i.d(e,{default:function(){return ot}});const p="loading",f="loaded",m="error";function v(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}let g=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{g=!0}}))}catch(t){}class y{constructor(){this._pool=[]}add(t,e,i,n){this._toggleListener(t,e,i,n)}remove(t,e,i,n){this._toggleListener(t,e,i,n,!0)}removeAll(){this._pool.forEach((t=>{this._toggleListener(t.target,t.type,t.listener,t.passive,!0,!0)})),this._pool=[]}_toggleListener(t,e,i,n,o,r){if(!t)return;const s=o?"removeEventListener":"addEventListener";e.split(" ").forEach((e=>{if(e){r||(o?this._pool=this._pool.filter((n=>n.type!==e||n.listener!==i||n.target!==t)):this._pool.push({target:t,type:e,listener:i,passive:n}));const a=!!g&&{passive:n||!1};t[s](e,i,a)}}))}}function b(t,e){if(t.getViewportSizeFn){const i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function w(t,e,i,n,o){let r;if(e.paddingFn)r=e.paddingFn(i,n,o)[t];else if(e.padding)r=e.padding[t];else{const i="padding"+t[0].toUpperCase()+t.slice(1);e[i]&&(r=e[i])}return r||0}function _(t,e,i,n){return{x:e.x-w("left",t,e,i,n)-w("right",t,e,i,n),y:e.y-w("top",t,e,i,n)-w("bottom",t,e,i,n)}}class S{constructor(t){this.slide=t,this.currZoomLevel=1,this.center={},this.max={},this.min={},this.reset()}update(t){this.currZoomLevel=t,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(t){const{pswp:e}=this.slide,i=this.slide["x"===t?"width":"height"]*this.currZoomLevel,n=w("x"===t?"left":"top",e.options,e.viewportSize,this.slide.data,this.slide.index),o=this.slide.panAreaSize[t];this.center[t]=Math.round((o-i)/2)+n,this.max[t]=i>o?Math.round(o-i)+n:this.center[t],this.min[t]=i>o?n:this.center[t]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(t,e){return l(e,this.max[t],this.min[t])}}class C{constructor(t,e,i,n){this.pswp=n,this.options=t,this.itemData=e,this.index=i}update(t,e,i){this.elementSize={x:t,y:e},this.panAreaSize=i;const n=this.panAreaSize.x/this.elementSize.x,o=this.panAreaSize.y/this.elementSize.y;this.fit=Math.min(1,n<o?n:o),this.fill=Math.min(1,n>o?n:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(t){const e=t+"ZoomLevel",i=this.options[e];if(i)return"function"==typeof i?i(this):"fill"===i?this.fill:"fit"===i?this.fit:Number(i)}_getSecondary(){let t=this._parseZoomLevelOption("secondary");return t||(t=Math.min(1,3*this.fit),t*this.elementSize.x>4e3&&(t=4e3/this.elementSize.x),t)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}class E{constructor(t,e,i){this.data=t,this.index=e,this.pswp=i,this.isActive=e===i.currIndex,this.currentResolution=0,this.panAreaSize={},this.isFirstSlide=this.isActive&&!i.opener.isOpen,this.zoomLevels=new C(i.options,t,e,i),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:e}),this.pan={x:0,y:0},this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=n("pswp__zoom-wrap"),this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.bounds=new S(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(t){t&&!this.isActive?this.activate():!t&&this.isActive&&this.deactivate()}append(t){this.holderElement=t,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:t}=this;!this.heavyAppended&&t.opener.isOpen&&!t.mainScroll.isShifted()&&(this.isActive,1)&&(this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this})))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(t){const e=this.currentResolution||this.zoomLevels.initial;if(!e)return;const i=Math.round(this.width*e)||this.pswp.viewportSize.x,n=Math.round(this.height*e)||this.pswp.viewportSize.y;(this.sizeChanged(i,n)||t)&&this.content.setDisplayedSize(i,n)}sizeChanged(t,e){return(t!==this.prevDisplayedWidth||e!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=t,this.prevDisplayedHeight=e,!0)}getPlaceholderElement(){if(this.content.placeholder)return this.content.placeholder.element}zoomTo(t,e,i,n){const{pswp:o}=this;if(!this.isZoomable()||o.mainScroll.isShifted())return;o.dispatch("beforeZoomTo",{destZoomLevel:t,centerPoint:e,transitionDuration:i}),o.animations.stopAllPan();const s=this.currZoomLevel;n||(t=l(t,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(t),this.pan.x=this.calculateZoomToPanOffset("x",e,s),this.pan.y=this.calculateZoomToPanOffset("y",e,s),r(this.pan);const a=()=>{this._setResolution(t),this.applyCurrentZoomPan()};i?o.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:a,duration:i,easing:o.options.easing}):a()}toggleZoom(t){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,t,this.pswp.options.zoomAnimationDuration)}setZoomLevel(t){this.currZoomLevel=t,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(t,e,i){if(0==this.bounds.max[t]-this.bounds.min[t])return this.bounds.center[t];e||(e=this.pswp.getViewportCenterPoint());const n=this.currZoomLevel/i;return this.bounds.correctPan(t,(this.pan[t]-e[t])*n+e[t])}panTo(t,e){this.pan.x=this.bounds.correctPan("x",t),this.pan.y=this.bounds.correctPan("y",e),this.applyCurrentZoomPan()}isPannable(){return this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),o(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(t,e,i){i/=this.currentResolution||this.zoomLevels.initial,c(this.container,t,e,i)}calculateSize(){const{pswp:t}=this;o(this.panAreaSize,_(t.options,t.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),t.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const t=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return u(this.pan.x,this.pan.y,t)}_setResolution(t){t!==this.currentResolution&&(this.currentResolution=t,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}class P{constructor(t){this.gestures=t,this.pswp=t.pswp,this.startPan={}}start(){o(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:t,prevP1:e,dragAxis:i,pswp:n}=this.gestures,{currSlide:o}=n;if("y"===i&&n.options.closeOnVerticalDrag&&o.currZoomLevel<=o.zoomLevels.fit&&!this.gestures.isMultitouch){const i=o.pan.y+(t.y-e.y);if(!n.dispatch("verticalDrag",{panY:i}).defaultPrevented){this._setPanWithFriction("y",i,.6);const t=1-Math.abs(this._getVerticalDragRatio(o.pan.y));n.applyBgOpacity(t),o.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),r(o.pan),o.applyCurrentZoomPan())}end(){const{pswp:t,velocity:e}=this.gestures,{mainScroll:i}=t;let n=0;if(t.animations.stopAll(),i.isShifted()){const o=(i.x-i.getCurrSlideX())/t.viewportSize.x;e.x<-.5&&o<0||e.x<.1&&o<-.5?(n=1,e.x=Math.min(e.x,0)):(e.x>.5&&o>0||e.x>-.1&&o>.5)&&(n=-1,e.x=Math.max(e.x,0)),i.moveIndexBy(n,!0,e.x)}t.currSlide.currZoomLevel>t.currSlide.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(t){const{pswp:e}=this,{currSlide:i}=e,{velocity:n}=this.gestures,{pan:o,bounds:r}=i,s=o[t],a=e.bgOpacity<1&&"y"===t,u=s+.995*n[t]/(1-.995);if(a){const t=this._getVerticalDragRatio(s),i=this._getVerticalDragRatio(u);if(t<0&&i<-.4||t>0&&i>.4)return void e.close()}const c=r.correctPan(t,u);if(s===c)return;const h=c===u?1:.82,d=e.bgOpacity,p=c-s;e.animations.startSpring({name:"panGesture"+t,isPan:!0,start:s,end:c,velocity:n[t],dampingRatio:h,onUpdate:n=>{if(a&&e.bgOpacity<1){const t=1-(c-n)/p;e.applyBgOpacity(l(d+(1-d)*t,0,1))}o[t]=Math.floor(n),i.applyCurrentZoomPan()}})}_panOrMoveMainScroll(t){const{p1:e,pswp:i,dragAxis:n,prevP1:o,isMultitouch:r}=this.gestures,{currSlide:s,mainScroll:a}=i,l=e[t]-o[t],u=a.x+l;if(!l)return;if("x"===t&&!s.isPannable()&&!r)return a.moveTo(u,!0),!0;const{bounds:c}=s,h=s.pan[t]+l;if(i.options.allowPanToNext&&"x"===n&&"x"===t&&!r){const e=a.getCurrSlideX(),i=a.x-e,n=l>0,o=!n;if(h>c.min[t]&&n){if(c.min[t]<=this.startPan[t])return a.moveTo(u,!0),!0;this._setPanWithFriction(t,h)}else if(h<c.max[t]&&o){if(this.startPan[t]<=c.max[t])return a.moveTo(u,!0),!0;this._setPanWithFriction(t,h)}else if(0!==i){if(i>0)return a.moveTo(Math.max(u,e),!0),!0;if(i<0)return a.moveTo(Math.min(u,e),!0),!0}else this._setPanWithFriction(t,h)}else"y"===t&&(a.isShifted()||c.min.y===c.max.y)||this._setPanWithFriction(t,h)}_getVerticalDragRatio(t){return(t-this.pswp.currSlide.bounds.center.y)/(this.pswp.viewportSize.y/3)}_setPanWithFriction(t,e,i){const{pan:n,bounds:o}=this.pswp.currSlide;if(o.correctPan(t,e)!==e||i){const o=Math.round(e-n[t]);n[t]+=o*(i||.35)}else n[t]=e}}function x(t,e,i){return t.x=(e.x+i.x)/2,t.y=(e.y+i.y)/2,t}class k{constructor(t){this.gestures=t,this.pswp=this.gestures.pswp,this._startPan={},this._startZoomPoint={},this._zoomPoint={}}start(){this._startZoomLevel=this.pswp.currSlide.currZoomLevel,o(this._startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:t,startP1:e,p2:i,startP2:n,pswp:o}=this.gestures,{currSlide:r}=o,a=r.zoomLevels.min,l=r.zoomLevels.max;if(!r.isZoomable()||o.mainScroll.isShifted())return;x(this._startZoomPoint,e,n),x(this._zoomPoint,t,i);let u=1/s(e,n)*s(t,i)*this._startZoomLevel;if(u>r.zoomLevels.initial+r.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),u<a)if(o.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=r.zoomLevels.initial){const t=1-(a-u)/(a/1.2);o.dispatch("pinchClose",{bgOpacity:t}).defaultPrevented||o.applyBgOpacity(t)}else u=a-.15*(a-u);else u>l&&(u=l+.05*(u-l));r.pan.x=this._calculatePanForZoomLevel("x",u),r.pan.y=this._calculatePanForZoomLevel("y",u),r.setZoomLevel(u),r.applyCurrentZoomPan()}end(){const{pswp:t}=this,{currSlide:e}=t;e.currZoomLevel<e.zoomLevels.initial&&!this._wasOverFitZoomLevel&&t.options.pinchToClose?t.close():this.correctZoomPan()}_calculatePanForZoomLevel(t,e){const i=e/this._startZoomLevel;return this._zoomPoint[t]-(this._startZoomPoint[t]-this._startPan[t])*i}correctZoomPan(t){const{pswp:e}=this,{currSlide:i}=e;if(!i.isZoomable())return;void 0===this._zoomPoint.x&&(t=!0);const n=i.currZoomLevel;let r,s=!0;n<i.zoomLevels.initial?r=i.zoomLevels.initial:n>i.zoomLevels.max?r=i.zoomLevels.max:(s=!1,r=n);const u=e.bgOpacity,c=e.bgOpacity<1,h=o({},i.pan);let d=o({},h);t&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=n,o(this._startPan,h)),s&&(d={x:this._calculatePanForZoomLevel("x",r),y:this._calculatePanForZoomLevel("y",r)}),i.setZoomLevel(r),d={x:i.bounds.correctPan("x",d.x),y:i.bounds.correctPan("y",d.y)},i.setZoomLevel(n);let p=!0;if(a(d,h)&&(p=!1),!p&&!s&&!c)return i._setResolution(r),void i.applyCurrentZoomPan();e.animations.stopAllPan(),e.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:t=>{if(t/=1e3,p||s){if(p&&(i.pan.x=h.x+(d.x-h.x)*t,i.pan.y=h.y+(d.y-h.y)*t),s){const e=n+(r-n)*t;i.setZoomLevel(e)}i.applyCurrentZoomPan()}c&&e.bgOpacity<1&&e.applyBgOpacity(l(u+(1-u)*t,0,1))},onComplete:()=>{i._setResolution(r),i.applyCurrentZoomPan()}})}}function j(t){return!!t.target.closest(".pswp__container")}class L{constructor(t){this.gestures=t}click(t,e){const i=e.target.classList,n=i.contains("pswp__img"),o=i.contains("pswp__item")||i.contains("pswp__zoom-wrap");n?this._doClickOrTapAction("imageClick",t,e):o&&this._doClickOrTapAction("bgClick",t,e)}tap(t,e){j(e)&&this._doClickOrTapAction("tap",t,e)}doubleTap(t,e){j(e)&&this._doClickOrTapAction("doubleTap",t,e)}_doClickOrTapAction(t,e,i){const{pswp:n}=this.gestures,{currSlide:o}=n,r=t+"Action",s=n.options[r];if(!n.dispatch(r,{point:e,originalEvent:i}).defaultPrevented)if("function"!=typeof s)switch(s){case"close":case"next":n[s]();break;case"zoom":o.toggleZoom(e);break;case"zoom-or-close":o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(e):n.options.clickToCloseNonZoomable&&n.close();break;case"toggle-controls":this.gestures.pswp.element.classList.toggle("pswp--ui-visible")}else s.call(n,e,i)}}class A{constructor(t){this.pswp=t,this.dragAxis=void 0,this.p1={},this.p2={},this.prevP1={},this.prevP2={},this.startP1={},this.startP2={},this.velocity={},this._lastStartP1={},this._intervalP1={},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this.supportsTouch||(t.options.allowPanToNext=!1),this.drag=new P(this),this.zoomLevels=new k(this),this.tapHandler=new L(this),t.on("bindEvents",(()=>{t.events.add(t.scrollWrap,"click",(t=>this._onClick(t))),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),t.scrollWrap.ontouchmove=()=>{},t.scrollWrap.ontouchend=()=>{}):this._bindEvents("mouse","down","up")}))}_bindEvents(t,e,i,n){const{pswp:o}=this,{events:r}=o,s=n?t+n:"";r.add(o.scrollWrap,t+e,this.onPointerDown.bind(this)),r.add(window,t+"move",this.onPointerMove.bind(this)),r.add(window,t+i,this.onPointerUp.bind(this)),s&&r.add(o.scrollWrap,s,this.onPointerUp.bind(this))}onPointerDown(t){let e;if("mousedown"!==t.type&&"mouse"!==t.pointerType||(e=!0),e&&t.button>0)return;const{pswp:i}=this;i.opener.isOpen?i.dispatch("pointerDown",{originalEvent:t}).defaultPrevented||(e&&(i.mouseDetected(),this._preventPointerEventBehaviour(t)),i.animations.stopAll(),this._updatePoints(t,"down"),this.pointerDown=!0,1===this._numActivePoints&&(this.dragAxis=null,o(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):t.preventDefault()}onPointerMove(t){t.preventDefault(),this._numActivePoints&&(this._updatePoints(t,"move"),this.pswp.dispatch("pointerMove",{originalEvent:t}).defaultPrevented||(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,o(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(t){this._numActivePoints&&(this._updatePoints(t,"up"),this.pswp.dispatch("pointerUp",{originalEvent:t}).defaultPrevented||(0===this._numActivePoints&&(this.pointerDown=!1,this._rafStopLoop(),this.isDragging?this._finishDrag():this.isZooming||this.isMultitouch||this._finishTap(t)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?a(this.p1,this.prevP1)||this.drag.change():a(this.p1,this.prevP1)&&a(this.p2,this.prevP2)||this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(t){const e=Date.now(),i=e-this._intervalTime;i<50&&!t||(this.velocity.x=this._getVelocity("x",i),this.velocity.y=this._getVelocity("y",i),this._intervalTime=e,o(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(t){const{mainScroll:e}=this.pswp;if(e.isShifted())return void e.moveIndexBy(0,!0);if(t.type.indexOf("cancel")>0)return;if("mouseup"===t.type||"mouse"===t.pointerType)return void this.tapHandler.click(this.startP1,t);const i=this.pswp.options.doubleTapAction?300:0;this._tapTimer?(this._clearTapTimer(),s(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,t)):(o(this._lastStartP1,this.startP1),this._tapTimer=setTimeout((()=>{this.tapHandler.tap(this.startP1,t),this._clearTapTimer()}),i))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(t,e){const i=this.p1[t]-this._intervalP1[t];return Math.abs(i)>1&&e>5?i/e:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(t){return t.preventDefault(),!0}_updatePoints(t,e){if(this._pointerEventEnabled){const i=t,n=this._ongoingPointers.findIndex((t=>t.id===i.pointerId));"up"===e&&n>-1?this._ongoingPointers.splice(n,1):"down"===e&&-1===n?this._ongoingPointers.push(this._convertEventPosToPoint(i,{})):n>-1&&this._convertEventPosToPoint(i,this._ongoingPointers[n]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&o(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&o(this.p2,this._ongoingPointers[1])}else{const i=t;this._numActivePoints=0,i.type.indexOf("touch")>-1?i.touches&&i.touches.length>0&&(this._convertEventPosToPoint(i.touches[0],this.p1),this._numActivePoints++,i.touches.length>1&&(this._convertEventPosToPoint(i.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(t,this.p1),"up"===e?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){o(this.prevP1,this.p1),o(this.prevP2,this.p2)}_updateStartPoints(){o(this.startP1,this.p1),o(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const t=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==t){const e=t>0?"x":"y";Math.abs(this.p1[e]-this.startP1[e])>=10&&(this.dragAxis=e)}}}_convertEventPosToPoint(t,e){return e.x=t.pageX-this.pswp.offset.x,e.y=t.pageY-this.pswp.offset.y,"pointerId"in t?e.id=t.pointerId:void 0!==t.identifier&&(e.id=t.identifier),e}_onClick(t){this.pswp.mainScroll.isShifted()&&(t.preventDefault(),t.stopPropagation())}}class T{constructor(t){this.pswp=t,this.x=0,this.slideWidth=void 0,this.itemHolders=void 0,this.resetPosition()}resize(t){const{pswp:e}=this,i=Math.round(e.viewportSize.x+e.viewportSize.x*e.options.spacing),n=i!==this.slideWidth;n&&(this.slideWidth=i,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach(((e,i)=>{n&&c(e.el,(i+this._containerShiftIndex)*this.slideWidth),t&&e.slide&&e.slide.resize()}))}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let t=0;t<3;t++){const e=n("pswp__item",!1,this.pswp.container);e.setAttribute("role","group"),e.setAttribute("aria-roledescription","slide"),e.setAttribute("aria-hidden","true"),e.style.display=1===t?"block":"none",this.itemHolders.push({el:e})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(t,e,i){const{pswp:n}=this;let o=n.potentialIndex+t;const r=n.getNumItems();if(n.canLoop()){o=n.getLoopedIndex(o);const e=(t+r)%r;t=e<=r/2?e:e-r}else o<0?o=0:o>=r&&(o=r-1),t=o-n.potentialIndex;n.potentialIndex=o,this._currPositionIndex-=t,n.animations.stopMainScroll();const s=this.getCurrSlideX();if(e){n.animations.startSpring({isMainScroll:!0,start:this.x,end:s,velocity:i||0,naturalFrequency:30,dampingRatio:1,onUpdate:t=>{this.moveTo(t)},onComplete:()=>{this.updateCurrItem(),n.appendHeavy()}});let t=n.potentialIndex-n.currIndex;if(n.canLoop()){const e=(t+r)%r;t=e<=r/2?e:e-r}Math.abs(t)>1&&this.updateCurrItem()}else this.moveTo(s),this.updateCurrItem();if(t)return!0}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){const{pswp:t}=this,e=this._prevPositionIndex-this._currPositionIndex;if(!e)return;this._prevPositionIndex=this._currPositionIndex,t.currIndex=t.potentialIndex;let i,n=Math.abs(e);n>=3&&(this._containerShiftIndex+=e+(e>0?-3:3),n=3);for(let o=0;o<n;o++)e>0?(i=this.itemHolders.shift(),this.itemHolders[2]=i,this._containerShiftIndex++,c(i.el,(this._containerShiftIndex+2)*this.slideWidth),t.setContent(i,t.currIndex-n+o+2)):(i=this.itemHolders.pop(),this.itemHolders.unshift(i),this._containerShiftIndex--,c(i.el,this._containerShiftIndex*this.slideWidth),t.setContent(i,t.currIndex+n-o-2));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),t.animations.stopAllPan(),this.itemHolders.forEach(((t,e)=>{t.slide&&t.slide.setIsActive(1===e)})),t.currSlide=this.itemHolders[1].slide,t.contentLoader.updateLazy(e),t.currSlide&&t.currSlide.applyCurrentZoomPan(),t.dispatch("change")}moveTo(t,e){let i,n;!this.pswp.canLoop()&&e&&(i=(this.slideWidth*this._currPositionIndex-t)/this.slideWidth,i+=this.pswp.currIndex,n=Math.round(t-this.x),(i<0&&n>0||i>=this.pswp.getNumItems()-1&&n<0)&&(t=this.x+.35*n)),this.x=t,c(this.pswp.container,t),this.pswp.dispatch("moveMainScroll",{x:t,dragging:e})}}class O{constructor(t){this.pswp=t,t.on("bindEvents",(()=>{t.options.initialPointerPos||this._focusRoot(),t.events.add(document,"focusin",this._onFocusIn.bind(this)),t.events.add(document,"keydown",this._onKeyDown.bind(this))}));const e=document.activeElement;t.on("destroy",(()=>{t.options.returnFocus&&e&&this._wasFocused&&e.focus()}))}_focusRoot(){this._wasFocused||(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(t){const{pswp:e}=this;if(e.dispatch("keydown",{originalEvent:t}).defaultPrevented)return;if(function(t){if(2===t.which||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey)return!0}(t))return;let i,n,o;switch(t.keyCode){case 27:e.options.escKey&&(i="close");break;case 90:i="toggleZoom";break;case 37:n="x";break;case 38:n="y";break;case 39:n="x",o=!0;break;case 40:o=!0,n="y";break;case 9:this._focusRoot()}if(n){t.preventDefault();const{currSlide:r}=e;e.options.arrowKeys&&"x"===n&&e.getNumItems()>1?i=o?"next":"prev":r&&r.currZoomLevel>r.zoomLevels.fit&&(r.pan[n]+=o?-80:80,r.panTo(r.pan.x,r.pan.y))}i&&(t.preventDefault(),e[i]())}_onFocusIn(t){const{template:e}=this.pswp;document===t.target||e===t.target||e.contains(t.target)||e.focus()}}class I{constructor(t){this.props=t;const{target:e,onComplete:i,transform:n,onFinish:o}=t;let{duration:r,easing:s}=t;this.onFinish=o;const a=n?"transform":"opacity",l=t[a];this._target=e,this._onComplete=i,r=r||333,s=s||"cubic-bezier(.4,0,.22,1)",this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout((()=>{h(e,a,r,s),this._helperTimeout=setTimeout((()=>{e.addEventListener("transitionend",this._onTransitionEnd,!1),e.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout((()=>{this._finalizeAnimation()}),r+500),e.style[a]=l}),30)}),0)}_onTransitionEnd(t){t.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),h(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}class z{constructor(t,e,i){this.velocity=1e3*t,this._dampingRatio=e||.75,this._naturalFrequency=i||12,this._dampingRatio<1&&(this._dampedFrequency=this._naturalFrequency*Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(t,e){let i,n=0;e/=1e3;const o=Math.E**(-this._dampingRatio*this._naturalFrequency*e);if(1===this._dampingRatio)i=this.velocity+this._naturalFrequency*t,n=(t+i*e)*o,this.velocity=n*-this._naturalFrequency+i*o;else if(this._dampingRatio<1){i=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*t+this.velocity);const r=Math.cos(this._dampedFrequency*e),s=Math.sin(this._dampedFrequency*e);n=o*(t*r+i*s),this.velocity=n*-this._naturalFrequency*this._dampingRatio+o*(-this._dampedFrequency*t*s+this._dampedFrequency*i*r)}return n}}class H{constructor(t){this.props=t;const{start:e,end:i,velocity:n,onUpdate:o,onComplete:r,onFinish:s,dampingRatio:a,naturalFrequency:l}=t;this.onFinish=s;const u=new z(n,a,l);let c=Date.now(),h=e-i;const d=()=>{this._raf&&(h=u.easeFrame(h,Date.now()-c),Math.abs(h)<1&&Math.abs(u.velocity)<50?(o(i),r&&r(),this.onFinish()):(c=Date.now(),o(h+i),this._raf=requestAnimationFrame(d)))};this._raf=requestAnimationFrame(d)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=null}}class D{constructor(){this.activeAnimations=[]}startSpring(t){this._start(t,!0)}startTransition(t){this._start(t)}_start(t,e){let i;return i=e?new H(t):new I(t),this.activeAnimations.push(i),i.onFinish=()=>this.stop(i),i}stop(t){t.destroy();const e=this.activeAnimations.indexOf(t);e>-1&&this.activeAnimations.splice(e,1)}stopAll(){this.activeAnimations.forEach((t=>{t.destroy()})),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter((t=>!t.props.isPan||(t.destroy(),!1)))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter((t=>!t.props.isMainScroll||(t.destroy(),!1)))}isPanRunning(){return this.activeAnimations.some((t=>t.props.isPan))}}class R{constructor(t){this.pswp=t,t.events.add(t.element,"wheel",this._onWheel.bind(this))}_onWheel(t){t.preventDefault();const{currSlide:e}=this.pswp;let{deltaX:i,deltaY:n}=t;if(e&&!this.pswp.dispatch("wheel",{originalEvent:t}).defaultPrevented)if(t.ctrlKey||this.pswp.options.wheelToZoom){if(e.isZoomable()){let i=-n;1===t.deltaMode?i*=.05:i*=t.deltaMode?1:.002,i=2**i;const o=e.currZoomLevel*i;e.zoomTo(o,{x:t.clientX,y:t.clientY})}}else e.isPannable()&&(1===t.deltaMode&&(i*=18,n*=18),e.panTo(e.pan.x-i,e.pan.y-n))}}class M{constructor(t,e){const i=e.name||e.className;let o=e.html;if(!1===t.options[i])return;"string"==typeof t.options[i+"SVG"]&&(o=t.options[i+"SVG"]),t.dispatch("uiElementCreate",{data:e});let r,s="";e.isButton?(s+="pswp__button ",s+=e.className||`pswp__button--${e.name}`):s+=e.className||`pswp__${e.name}`;let a=e.isButton?e.tagName||"button":e.tagName||"div";if(a=a.toLowerCase(),r=n(s,a),e.isButton){r=n(s,a),"button"===a&&(r.type="button");let{title:o}=e;const{ariaLabel:l}=e;"string"==typeof t.options[i+"Title"]&&(o=t.options[i+"Title"]),o&&(r.title=o),(l||o)&&r.setAttribute("aria-label",l||o)}r.innerHTML=function(t){if("string"==typeof t)return t;if(!t||!t.isCustomSVG)return"";const e=t;let i='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return i=i.split("%d").join(e.size||32),e.outlineID&&(i+='<use class="pswp__icn-shadow" xlink:href="#'+e.outlineID+'"/>'),i+=e.inner,i+="</svg>",i}(o),e.onInit&&e.onInit(r,t),e.onClick&&(r.onclick=i=>{"string"==typeof e.onClick?t[e.onClick]():e.onClick(i,r,t)});const l=e.appendTo||"bar";let u;"bar"===l?(t.topBar||(t.topBar=n("pswp__top-bar pswp__hide-on-close","div",t.scrollWrap)),u=t.topBar):(r.classList.add("pswp__hide-on-close"),u="wrapper"===l?t.scrollWrap:t.element),u.appendChild(t.applyFilters("uiElement",r,e))}}function B(t,e,i){t.classList.add("pswp__button--arrow"),t.setAttribute("aria-controls","pswp__items"),e.on("change",(()=>{e.options.loop||(t.disabled=i?!(e.currIndex<e.getNumItems()-1):!(e.currIndex>0))}))}const q={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:B},N={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(t,e)=>{B(t,e,!0)}},Z={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},F={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},U={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(t,e)=>{let i,n;const o=e=>{var n;i!==e&&(i=e,"active",n=e,t.classList[n?"add":"remove"]("pswp__preloader--active"))},r=()=>{if(!e.currSlide.content.isLoading())return o(!1),void(n&&(clearTimeout(n),n=null));n||(n=setTimeout((()=>{o(e.currSlide.content.isLoading()),n=null}),e.options.preloaderDelay))};e.on("change",r),e.on("loadComplete",(t=>{e.currSlide===t.slide&&r()})),e.ui.updatePreloaderVisibility=r}},W={name:"counter",order:5,onInit:(t,e)=>{e.on("change",(()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()}))}};function G(t,e){t.classList[e?"add":"remove"]("pswp--zoomed-in")}class V{constructor(t){this.pswp=t,this.updatePreloaderVisibility=void 0,this._lastUpdatedZoomLevel=void 0}init(){const{pswp:t}=this;this.isRegistered=!1,this.uiElementsData=[Z,q,N,F,U,W],t.dispatch("uiRegister"),this.uiElementsData.sort(((t,e)=>(t.order||0)-(e.order||0))),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach((t=>{this.registerElement(t)})),t.on("change",(()=>{t.element.classList[1===t.getNumItems()?"add":"remove"]("pswp--one-slide")})),t.on("zoomPanUpdate",(()=>this._onZoomPanUpdate()))}registerElement(t){this.isRegistered?this.items.push(new M(this.pswp,t)):this.uiElementsData.push(t)}_onZoomPanUpdate(){const{template:t,currSlide:e,options:i}=this.pswp;let{currZoomLevel:n}=e;if(this.pswp.opener.isClosing)return;if(this.pswp.opener.isOpen||(n=e.zoomLevels.initial),n===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=n;const o=e.zoomLevels.initial-e.zoomLevels.secondary;if(Math.abs(o)<.01||!e.isZoomable())return G(t,!1),void t.classList.remove("pswp--zoom-allowed");t.classList.add("pswp--zoom-allowed"),G(t,(n===e.zoomLevels.initial?e.zoomLevels.secondary:e.zoomLevels.initial)<=n),"zoom"!==i.imageClickAction&&"zoom-or-close"!==i.imageClickAction||t.classList.add("pswp--click-to-zoom")}}class K{constructor(t,e){this.type=t,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class Y{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){this._filters[t]||(this._filters[t]=[]),this._filters[t].push({fn:e,priority:i}),this._filters[t].sort(((t,e)=>t.priority-e.priority)),this.pswp&&this.pswp.addFilter(t,e,i)}removeFilter(t,e){this._filters[t]&&(this._filters[t]=this._filters[t].filter((t=>t.fn!==e))),this.pswp&&this.pswp.removeFilter(t,e)}applyFilters(t,...e){return this._filters[t]&&this._filters[t].forEach((t=>{e[0]=t.fn.apply(this,e)})),e[0]}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e),this.pswp&&this.pswp.on(t,e)}off(t,e){this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter((t=>e!==t))),this.pswp&&this.pswp.off(t,e)}dispatch(t,e){if(this.pswp)return this.pswp.dispatch(t,e);const i=new K(t,e);return this._listeners?(this._listeners[t]&&this._listeners[t].forEach((t=>{t.call(this,i)})),i):i}}class X{constructor(t,e){this.element=n("pswp__img pswp__img--placeholder",t?"img":"",e),t&&(this.element.decoding="async",this.element.alt="",this.element.src=t,this.element.setAttribute("role","presentation")),this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?(d(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=u(0,0,t/250)):d(this.element,t,e))}destroy(){this.element.parentNode&&this.element.remove(),this.element=null}}class J{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.state="idle",this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout((()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=null)}),1e3)}load(t,e){if(this.slide&&this.usePlaceholder())if(this.placeholder){const t=this.placeholder.element;t&&!t.parentElement&&this.slide.container.prepend(t)}else{const t=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new X(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=n("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=n("pswp__content"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){const e=this.element;this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented||(this.updateSrcsetSizes(),this.data.srcset&&(e.srcset=this.data.srcset),e.src=this.data.src,e.alt=this.data.alt||"",this.state=p,e.complete?this.onLoaded():(e.onload=()=>{this.onLoaded()},e.onerror=()=>{this.onError()}))}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=f,this.slide&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==f&&this.state!==m||this.removePlaceholder())}onError(){this.state=m,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===p,this)}isError(){return this.state===m}isImageContent(){return"image"===this.type}setDisplayedSize(t,e){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(t,e),!this.instance.dispatch("contentResize",{content:this,width:t,height:e}).defaultPrevented&&(d(this.element,t,e),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&t;this.displayedImageWidth=t,this.displayedImageHeight=e,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:t,height:e,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==m,this)}updateSrcsetSizes(){if(this.data.srcset){const t=this.element,e=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!t.dataset.largestUsedSize||e>parseInt(t.dataset.largestUsedSize,10))&&(t.sizes=e+"px",t.dataset.largestUsedSize=String(e))}}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=null,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=null),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=null))}displayError(){if(this.slide){let t=n("pswp__error-msg");t.innerText=this.instance.options.errorMsg,t=this.instance.applyFilters("contentErrorElement",t,this),this.element=n("pswp__content pswp__error-msg-container"),this.element.appendChild(t),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached)return;if(this.isAttached=!0,this.state===m)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const t="decode"in this.element;this.isImageContent()?t&&this.slide&&(!this.slide.isActive||v())?(this.isDecoding=!0,this.element.decode().catch((()=>{})).finally((()=>{this.isDecoding=!1,this.appendImage()}))):this.appendImage():this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||this.slide&&(this.isImageContent()&&this.isDecoding&&!v()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==f&&this.state!==m||this.removePlaceholder()))}}function $(t,e,i){const n=e.createContentFromData(t,i);if(!n||!n.lazyLoad)return;const{options:o}=e,r=_(o,e.viewportSize||b(o,e),t,i),s=new C(o,t,-1);return s.update(n.width,n.height,r),n.lazyLoad(),n.setDisplayedSize(Math.ceil(n.width*s.initial),Math.ceil(n.height*s.initial)),n}class Q{constructor(t){this.pswp=t,this.limit=Math.max(t.options.preload[0]+t.options.preload[1]+1,5),this._cachedItems=[]}updateLazy(t){const{pswp:e}=this;if(e.dispatch("lazyLoad").defaultPrevented)return;const{preload:i}=e.options,n=void 0===t||t>=0;let o;for(o=0;o<=i[1];o++)this.loadSlideByIndex(e.currIndex+(n?o:-o));for(o=1;o<=i[0];o++)this.loadSlideByIndex(e.currIndex+(n?-o:o))}loadSlideByIndex(t){t=this.pswp.getLoopedIndex(t);let e=this.getContentByIndex(t);e||(e=function(t,e){const i=e.getItemData(t);if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return $(i,e,t)}(t,this.pswp),e&&this.addToCache(e))}getContentBySlide(t){let e=this.getContentByIndex(t.index);return e||(e=this.pswp.createContentFromData(t.data,t.index),e&&this.addToCache(e)),e&&e.setSlide(t),e}addToCache(t){if(this.removeByIndex(t.index),this._cachedItems.push(t),this._cachedItems.length>this.limit){const t=this._cachedItems.findIndex((t=>!t.isAttached&&!t.hasSlide));-1!==t&&this._cachedItems.splice(t,1)[0].destroy()}}removeByIndex(t){const e=this._cachedItems.findIndex((e=>e.index===t));-1!==e&&this._cachedItems.splice(e,1)}getContentByIndex(t){return this._cachedItems.find((e=>e.index===t))}destroy(){this._cachedItems.forEach((t=>t.destroy())),this._cachedItems=null}}class tt extends Y{getNumItems(){let t;const{dataSource:e}=this.options;e?"length"in e?t=e.length:"gallery"in e&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),e.items&&(t=e.items.length)):t=0;const i=this.dispatch("numItems",{dataSource:e,numItems:t});return this.applyFilters("numItems",i.numItems,e)}createContentFromData(t,e){return new J(t,this,e)}getItemData(t){const{dataSource:e}=this.options;let i;Array.isArray(e)?i=e[t]:e&&e.gallery&&(e.items||(e.items=this._getGalleryDOMElements(e.gallery)),i=e.items[t]);let n=i;n instanceof Element&&(n=this._domElementToItemData(n));const o=this.dispatch("itemData",{itemData:n||{},index:t});return this.applyFilters("itemData",o.itemData,t)}_getGalleryDOMElements(t){return this.options.children||this.options.childSelector?function(t,e,i=document){let n=[];if(t instanceof Element)n=[t];else if(t instanceof NodeList||Array.isArray(t))n=Array.from(t);else{const o="string"==typeof t?t:e;o&&(n=Array.from(i.querySelectorAll(o)))}return n}(this.options.children,this.options.childSelector,t)||[]:[t]}_domElementToItemData(t){const e={element:t},i="A"===t.tagName?t:t.querySelector("a");if(i){e.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(e.srcset=i.dataset.pswpSrcset),e.width=parseInt(i.dataset.pswpWidth,10),e.height=parseInt(i.dataset.pswpHeight,10),e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const n=t.querySelector("img");n&&(e.msrc=n.currentSrc||n.src,e.alt=n.getAttribute("alt")),(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return $(t,this,e)}}const et=.003;class it{constructor(t){this.pswp=t,this.isClosed=!0,this._prepareOpen=this._prepareOpen.bind(this),this._thumbBounds=void 0,t.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return!1;const t=this.pswp.currSlide;return this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,t&&t.currZoomLevel*t.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout((()=>{this._start()}),this._croppedZoom?30:0),!0}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const t=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,t&&t.zoomLevels.initial*t.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:t}=this,e=this.pswp.currSlide,{options:i}=t;if("fade"===i.showHideAnimationType?(i.showHideOpacity=!0,this._thumbBounds=!1):"none"===i.showHideAnimationType?(i.showHideOpacity=!1,this._duration=0,this._thumbBounds=!1):this.isOpening&&t._initialThumbBounds?this._thumbBounds=t._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=e.getPlaceholderElement(),t.animations.stopAll(),this._useAnimation=this._duration>50,this._animateZoom=Boolean(this._thumbBounds)&&e.content&&e.content.usePlaceholder()&&(!this.isClosing||!t.mainScroll.isShifted()),this._animateZoom?this._animateRootOpacity=i.showHideOpacity:(this._animateRootOpacity=!0,this.isOpening&&(e.zoomAndPanToInitial(),e.applyCurrentZoomPan())),this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>et,this._opacityElement=this._animateRootOpacity?t.element:t.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(t.element.style.opacity=String(et),t.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=this.pswp.currSlide.holderElement,t.container.style.overflow="hidden",t.container.style.width=t.viewportSize.x+"px"):this._croppedZoom=!1,this.isOpening?(this._animateRootOpacity?(t.element.style.opacity=String(et),t.applyBgOpacity(1)):(this._animateBgOpacity&&(t.bg.style.opacity=String(et)),t.element.style.opacity="1"),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(et)))):this.isClosing&&(t.mainScroll.itemHolders[0].el.style.display="none",t.mainScroll.itemHolders[2].el.style.display="none",this._croppedZoom&&0!==t.mainScroll.x&&(t.mainScroll.resetPosition(),t.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise((t=>{let e=!1,i=!0;var n;(n=this._placeholder,"decode"in n?n.decode().catch((()=>{})):n.complete?Promise.resolve(n):new Promise(((t,e)=>{n.onload=()=>t(n),n.onerror=e}))).finally((()=>{e=!0,i||t()})),setTimeout((()=>{i=!1,e&&t()}),50),setTimeout(t,250)})).finally((()=>this._initiate())):this._initiate()}_initiate(){this.pswp.element.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),this.pswp.element.classList[this.isOpening?"add":"remove"]("pswp--ui-visible"),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:t}=this;this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,t.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),t.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed?t.destroy():this.isOpen&&(this._animateZoom&&(t.container.style.overflow="visible",t.container.style.width="100%"),t.currSlide.applyCurrentZoomPan())}_animateToOpenState(){const{pswp:t}=this;this._animateZoom&&(this._croppedZoom&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),t.currSlide.zoomAndPanToInitial(),this._animateTo(t.currSlide.container,"transform",t.currSlide.getCurrentTransform())),this._animateBgOpacity&&this._animateTo(t.bg,"opacity",String(t.options.bgOpacity)),this._animateRootOpacity&&this._animateTo(t.element,"opacity","1")}_animateToClosedState(){const{pswp:t}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&t.bgOpacity>.01&&this._animateTo(t.bg,"opacity","0"),this._animateRootOpacity&&this._animateTo(t.element,"opacity","0")}_setClosedStateZoomPan(t){if(!this._thumbBounds)return;const{pswp:e}=this,{innerRect:i}=this._thumbBounds,{currSlide:n,viewportSize:r}=e;if(this._croppedZoom){const e=-r.x+(this._thumbBounds.x-i.x)+i.w,n=-r.y+(this._thumbBounds.y-i.y)+i.h,o=r.x-i.w,s=r.y-i.h;t?(this._animateTo(this._cropContainer1,"transform",u(e,n)),this._animateTo(this._cropContainer2,"transform",u(o,s))):(c(this._cropContainer1,e,n),c(this._cropContainer2,o,s))}o(n.pan,i||this._thumbBounds),n.currZoomLevel=this._thumbBounds.w/n.width,t?this._animateTo(n.container,"transform",n.getCurrentTransform()):n.applyCurrentZoomPan()}_animateTo(t,e,i){if(!this._duration)return void(t.style[e]=i);const{animations:n}=this.pswp,o={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{n.activeAnimations.length||this._onAnimationComplete()},target:t};o[e]=i,n.startTransition(o)}}const nt={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class ot extends tt{constructor(t){super(),this._prepareOptions(t),this.offset={},this._prevViewportSize={},this.viewportSize={},this.bgOpacity=1,this.topBar=void 0,this.events=new y,this.animations=new D,this.mainScroll=new T(this),this.gestures=new A(this),this.opener=new it(this),this.keyboard=new O(this),this.contentLoader=new Q(this)}init(){if(this.isOpen||this.isDestroying)return;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let t="pswp--open";return this.gestures.supportsTouch&&(t+=" pswp--touch"),this.options.mainClass&&(t+=" "+this.options.mainClass),this.element.className+=" "+t,this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new R(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",(()=>{this.mainScroll.itemHolders[0].el.style.display="block",this.mainScroll.itemHolders[2].el.style.display="block",this.setContent(this.mainScroll.itemHolders[0],this.currIndex-1),this.setContent(this.mainScroll.itemHolders[2],this.currIndex+1),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")})),this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(t){const e=this.getNumItems();return this.options.loop&&(t>e-1&&(t-=e),t<0&&(t+=e)),l(t,0,e-1)}appendHeavy(){this.mainScroll.itemHolders.forEach((t=>{t.slide&&t.slide.appendHeavy()}))}goTo(t){this.mainScroll.moveIndexBy(this.getLoopedIndex(t)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...t){this.currSlide.zoomTo(...t)}toggleZoom(){this.currSlide.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this.listeners=null,this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null,this.element.remove(),this.mainScroll.itemHolders.forEach((t=>{t.slide&&t.slide.destroy()})),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(t){this.contentLoader.removeByIndex(t),this.mainScroll.itemHolders.forEach(((e,i)=>{let n=this.currSlide.index-1+i;this.canLoop()&&(n=this.getLoopedIndex(n)),n===t&&(this.setContent(e,t,!0),1===i&&(this.currSlide=e.slide,e.slide.setIsActive(!0)))})),this.dispatch("change")}setContent(t,e,i){if(this.canLoop()&&(e=this.getLoopedIndex(e)),t.slide){if(t.slide.index===e&&!i)return;t.slide.destroy(),t.slide=null}if(!this.canLoop()&&(e<0||e>=this.getNumItems()))return;const n=this.getItemData(e);t.slide=new E(n,e,this),e===this.currIndex&&(this.currSlide=t.slide),t.slide.append(t.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(t){if(this.isDestroying)return;const e=b(this.options,this);!t&&a(e,this._prevViewportSize)||(o(this._prevViewportSize,e),this.dispatch("beforeResize"),o(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(t){this.bgOpacity=Math.max(t,0),this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity)}mouseDetected(){this.hasMouse||(this.hasMouse=!0,this.element.classList.add("pswp--has_mouse"))}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout((()=>{this.updateSize()}),500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(t,e){this.offset.x=t,this.offset.y=e,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=n("pswp"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=n("pswp__bg",!1,this.element),this.scrollWrap=n("pswp__scroll-wrap","section",this.element),this.container=n("pswp__container",!1,this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new V(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(t,e,i){const n=i.dispatch("thumbBounds",{index:t,itemData:e,instance:i});if(n.thumbBounds)return n.thumbBounds;const{element:o}=e;let r,s;if(o&&!1!==i.options.thumbSelector){const t=i.options.thumbSelector||"img";s=o.matches(t)?o:o.querySelector(t)}return s=i.applyFilters("thumbEl",s,e,t),s&&(r=e.thumbCropped?function(t,e,i){const n=t.getBoundingClientRect(),o=n.width/e,r=n.height/i,s=o>r?o:r,a=(n.width-e*s)/2,l=(n.height-i*s)/2,u={x:n.left+a,y:n.top+l,w:e*s};return u.innerRect={w:n.width,h:n.height,x:a,y:l},u}(s,e.width||e.w,e.height||e.h):function(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}(s)),i.applyFilters("thumbBounds",r,e,t)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(t){window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(t.showHideAnimationType="none",t.zoomAnimationDuration=0),this.options={...nt,...t}}}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](i,i.exports,__webpack_require__),i.exports}__webpack_require__.d=function(t,e){for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};!function(){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__("./node_modules/@glidejs/glide/src/assets/sass/glide.core.scss"),__webpack_require__("./frontend/sass/glide/glide.theme.scss"),window.Eventgallery=window.Eventgallery||{},__webpack_require__("./frontend/js/EventgalleryBehavior.js"),__webpack_require__("./frontend/js/photoswipe/PhotoSwipeGallery.js"),__webpack_require__("./frontend/js/photoswipe/PhotoSwipeGallerySlide.js"),__webpack_require__("./frontend/less/eventgallery.less"),__webpack_require__("./frontend/less/font-awesome/font-awesome.less"),__webpack_require__("./frontend/js/minicart/index.ts"),__webpack_require__("./frontend/js/socialbutton/index.ts"),__webpack_require__("./frontend/js/jsgallery/index.js")}()})();
//# sourceMappingURL=eventgallery-debug.js.map