1(()=>{var __webpack_modules__={1767:(t,e,i)=>{"use strict";var s;i.d(e,{s:()=>s}),function(t){t.reload="eventgallery-minicart-reload",t.prepareAdd2cartDialogContent="eventgallery-prepare-add2cartdialogcontent",t.rebindAdd2CartButtons="eventgallery-rebind-add2cart-buttons"}(s||(s={}))},2495:(t,e,i)=>{"use strict";var s=i(8409),n=i(3417),o=i(5296);function r(t,e,i){const s=new o.A;let n=!1,r=!1;const a={mount(){this._a=e.Html.wrapper.querySelectorAll("a,span,img"),this.bind(),r=!1},bind(){s.on("click",e.Html.wrapper,this.click,!0)},unbind(){s.off("click",e.Html.wrapper)},click(t){n&&(t.stopPropagation(),t.preventDefault())},detach(){return n=!0,this},attach(){return n=!1,this}};return Object.defineProperty(a,"items",{get:()=>a._a}),i.on("swipe.move",()=>{a.detach()}),i.on("swipe.end",()=>{e.Transition.after(()=>{a.attach()})}),i.on("destroy",()=>{a.attach(),a.unbind(),s.destroy()}),a}function a(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?a(Object(i),!0).forEach(function(e){p(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function h(t){return h="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},h(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}function u(t,e,i){return e&&d(t.prototype,e),i&&d(t,i),t}function p(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e){return g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},g(t,e)}function v(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 f(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,s=m(t);if(e){var n=m(this).constructor;i=Reflect.construct(s,arguments,n)}else i=s.apply(this,arguments);return v(this,i)}}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var s=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(s){var n=Object.getOwnPropertyDescriptor(s,e);return n.get?n.get.call(arguments.length<3?t:i):n.value}},y.apply(this,arguments)}var w={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 _(t){}function b(t){return parseInt(t)}function S(t){return"string"==typeof t}function C(t){var e=h(t);return"function"===e||"object"===e&&!!t}function x(t){return"function"==typeof t}function E(t){return void 0===t}function P(t){return t.constructor===Array}function A(t,e,i){Object.defineProperty(t,e,i)}function L(t,e){var i=Object.assign({},t,e);if(e.hasOwnProperty("classes")){i.classes=Object.assign({},t.classes,e.classes);["direction","type","slide","arrow","nav"].forEach(function(s){e.classes.hasOwnProperty(s)&&(i.classes[s]=l(l({},t.classes[s]),e.classes[s]))})}return e.hasOwnProperty("breakpoints")&&(i.breakpoints=Object.assign({},t.breakpoints,e.breakpoints)),i}var I=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,t),this.events=e,this.hop=e.hasOwnProperty}return u(t,[{key:"on",value:function(t,e){if(!P(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 s=0;s<t.length;s++)this.on(t[s],e)}},{key:"emit",value:function(t,e){if(P(t))for(var i=0;i<t.length;
vendor: 5,614 bytes, line 1
1i++)this.emit(t[i],e);else this.hop.call(this.events,t)&&this.events[t].forEach(function(t){t(e||{})})}}]),t}(),T=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,t),this._c={},this._t=[],this._e=new I,this.disabled=!1,this.selector=e,this.settings=L(w,i),this.index=this.settings.startAt}return u(t,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._e.emit("mount.before"),C(t)&&(this._c=function(t,e,i){var s={};for(var n in e)x(e[n])?s[n]=e[n](t,s,i):_();for(var o in s)x(s[o].mount)&&s[o].mount();return s}(this,t,this._e)),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return P(t)&&(this._t=t),this}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.settings=L(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){C(t)&&(this._o=t)}},{key:"index",get:function(){return this._i},set:function(t){this._i=b(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),t}();function k(){return(new Date).getTime()}function O(t,e){var i,s,n,o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=0,l=function(){a=!1===r.leading?0:k(),i=null,o=t.apply(s,n),i||(s=n=null)},h=function(){var h=k();a||!1!==r.leading||(a=h);var c=e-(h-a);return s=this,n=arguments,c<=0||c>e?(i&&(clearTimeout(i),i=null),a=h,o=t.apply(s,n),i||(s=n=null)):i||!1===r.trailing||(i=setTimeout(l,c)),o};return h.cancel=function(){clearTimeout(i),a=0,i=s=n=null},h}var z={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function H(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 M(t){return Array.prototype.slice.call(t)}var D=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,t),this.listeners=e}return u(t,[{key:"on",value:function(t,e,i){var s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];S(t)&&(t=[t]);for(var n=0;n<t.length;n++)this.listeners[t[n]]=i,e.addEventListener(t[n],this.listeners[t[n]],s)}},{key:"off",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];S(t)&&(t=[t]);for(var s=0;s<t.length;s++)e.removeEventListener(t[s],this.listeners[t[s]],i)}},{key:"destroy",value:function(){delete this.listeners}}]),t}();var R=["ltr","rtl"],B={">":"<","<":">","=":"="};function F(t,e){return{modify:function(t){return e.Direction.is("rtl")?-t:t}}}function N(t,e){return{modify:function(t){var i=Math.floor(t/e.Sizes.slideWidth);return t+e.Gaps.value*i}}}function Z(t,e){return{modify:function(t){return t+e.Clones.grow/2}}}function q(t,e){return{modify:function(i){if(t.settings.focusAt>=0){var s=e.Peek.value;return C(s)?i-s.before:i-s}return i}}}function U(t,e){return{modify:function(i){var s=e.Gaps.value,n=e.Sizes.width,o=t.settings.focusAt,r=e.Sizes.slideWidth;return"center"===o?i-(n/2-r/2):i-r*o-s*o}}}var W=!1;try{var j=Object.defineProperty({},"passive",{get:function(){W=!0}});window.addEventListener("testPassive",null,j),window.removeEventListener("testPassive",null,j)}catch(t){}var G=W,V=["touchstart","mousedown"],K=["touchmove","mousemove"],Y=["touchend","touchcancel","mouseup","mouseleave"],X=["mousedown","mousemove","mouseup","mouseleave"];function J(t,e,i){var s=new D,n=0,o=0,r=0,a=!1,l=!!G&&{passive:!0},h={mount:function(){this.bindSwipeStart()},start:function(e){if(!a&&!t.disabled){this.disable();var s=this.touches(e);n=null,o=b(s.pageX),r=b(s.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),i.emit("swipe.start")}},move:function(s){if(!t.disabled){var a=t.settings,l=a.touchAngle,h=a.touchRatio,c=a.classes,d=this.touches(s),u=b(d.pageX)-o,p=b(d.pageY)-r,m=Math.abs(u<<2),g=Math.abs(p<<2),v=Math.sqrt(m+g),f=Math.sqrt(g);if(!(180*(n=Math.asin(f/v))/Math.PI<l))return!1;s.stopPropagation(),e.Move.make(u*parseFloat(h)),e.Html.root.classList.add(c.dragging),i.emit("swipe.move")}},end:function(s){if(!t.disabled){var r=t.settings,a=r.perSwipe,l=r.touchAngle,h=r.classes,c=this.touches(s),d=this.threshold(s),u=c.pageX-o,p=180*n/Math.PI;this.enable(),u>d&&p<l?e.Run.make(e.Direction.resolve("".concat(a,"<"))):u<-d&&p<l?e.Run.make(e.Direction.resolve("".concat(a,">"))):e.Move.make(),e.Html.root.classList.remove(h.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),i.emit("swipe.end")}},bindSwipeStart:function(){var i=this,n=t.settings,o=n.swipeThreshold,r=n.dragThreshold;o&&s.on(V[0],e.Html.wrapper,function(t){i.start(t)},l),r&&s.on(V[1],e.Html.wrapper,function(t){i.start(t)},l)},unbindSwipeStart:function(){s.off(V[0],e.Html.wrapper,l),s.off(V[1],e.Html.wrapper,l)}
1,bindSwipeMove:function(){var i=this;s.on(K,e.Html.wrapper,O(function(t){i.move(t)},t.settings.throttle),l)},unbindSwipeMove:function(){s.off(K,e.Html.wrapper,l)},bindSwipeEnd:function(){var t=this;s.on(Y,e.Html.wrapper,function(e){t.end(e)})},unbindSwipeEnd:function(){s.off(Y,e.Html.wrapper)},touches:function(t){return X.indexOf(t.type)>-1?t:t.touches[0]||t.changedTouches[0]},threshold:function(e){var i=t.settings;return X.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(){h.unbindSwipeStart(),h.unbindSwipeMove(),h.unbindSwipeEnd(),s.destroy()}),h}function $(t,e,i){var s=new D,n={mount:function(){this.bind()},bind:function(){s.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){s.off("dragstart",e.Html.wrapper)},dragstart:function(t){t.preventDefault()}};return i.on("destroy",function(){n.unbind(),s.destroy()}),n}var Q='[data-glide-el^="controls"]',tt="".concat(Q,' [data-glide-dir*="<"]'),et="".concat(Q,' [data-glide-dir*=">"]');function it(t,e,i){var s=new D,n=!!G&&{passive:!0},o={mount:function(){this._n=e.Html.root.querySelectorAll('[data-glide-el="controls[nav]"]'),this._c=e.Html.root.querySelectorAll(Q),this._arrowControls={previous:e.Html.root.querySelectorAll(tt),next:e.Html.root.querySelectorAll(et)},this.addBindings()}
1,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,s=e[t.index];s&&(s.classList.add(i.classes.nav.active),H(s).forEach(function(t){t.classList.remove(i.classes.nav.active)}))},removeClass:function(e){var i=e[t.index];null==i||i.classList.remove(t.settings.classes.nav.active)},setArrowState:function(){if(!t.settings.rewind){var i=o._arrowControls.next,s=o._arrowControls.previous;this.resetArrowState(i,s),0===t.index&&this.disableArrow(s),t.index===e.Run.length&&this.disableArrow(i)}},resetArrowState:function(){for(var e=t.settings,i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];s.forEach(function(t){M(t).forEach(function(t){t.classList.remove(e.classes.arrow.disabled)})})},disableArrow:function(){for(var e=t.settings,i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];s.forEach(function(t){M(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++)s.on("click",t[e],this.click),s.on("touchstart",t[e],this.click,n)},unbind:function(t){for(var e=0;e<t.length;e++)s.off(["click","touchstart"],t[e])},click:function(t){G||"touchstart"!==t.type||t.preventDefault();var i=t.currentTarget.getAttribute("data-glide-dir");e.Run.make(e.Direction.resolve(i))}};return A(o,"items",{get:function(){return o._c}}),i.on(["mount.after","move.after"],function(){o.setActive()}),i.on(["mount.after","run"],function(){o.setArrowState()}),i.on("destroy",function(){o.removeBindings(),o.removeActive(),s.destroy()}),o}function st(t,e,i){var s=new D,n={mount:function(){this.enable(),this.start(),t.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var s=this;this._e&&(this.enable(),t.settings.autoplay&&E(this._i)&&(this._i=setInterval(function(){s.stop(),e.Run.make(">"),s.start(),i.emit("autoplay")},this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var t=this;s.on("mouseover",e.Html.root,function(){t._e&&t.stop()}),s.on("mouseout",e.Html.root,function(){t._e&&t.start()})},unbind:function(){s.off(["mouseover","mouseout"],e.Html.root)}};return A(n,"time",{get:function(){var i=e.Html.slides[t.index].getAttribute("data-glide-autoplay");return b(i||t.settings.autoplay)}}),i.on(["destroy","update"],function(){n.unbind()}),i.on(["run.before","swipe.start","update"],function(){n.stop()}),i.on(["pause","destroy"],function(){n.disable(),n.stop()}),i.on(["run.after","swipe.end"],function(){n.start()}),i.on(["play"],function(){n.enable(),n.start()}),i.on("update",function(){n.mount()}),i.on("destroy",function(){s.destroy()}),n}function nt(t){return C(t)?(e=t,Object.keys(e).sort().reduce(function(t,i){return t[i]=e[i],t[i],t},{})):{};var e}function ot(t,e,i){var s=new D,n=t.settings,o=nt(n.breakpoints),r=Object.assign({},n),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 r}};return Object.assign(n,a.match(o)),s.on("resize",window,O(function(){t.settings=L(n,a.match(o))},t.settings.throttle)),i.on("update",function(){o=nt(o),r=Object.assign({},n)}),i.on("destroy",function(){s.off("resize",window)}),a}var rt={Html:function(t,e,i){var s={mount:function(){this.root=t.selector,this.track=this.root.querySelector('[data-glide-el="track"]'),this.collectSlides()},collectSlides:function(){this.slides=M(this.wrapper.children).filter(function(e){return!e.classList.contains(t.settings.classes.slide.clone)})}};return A(s,"root",{get:function(){return s._r},set:function(t){S(t)&&(t=document.querySelector(t)),null!==t&&(s._r=t)}}),A(s,"track",{get:function(){return s._t},set:function(t){s._t=t}}),A(s,"wrapper",{get:function(){return s.track.children[0]}}),i.on("update",function(){s.collectSlides()}),s}
vendor: 4,401 bytes, line 1
1,Translate:function(t,e,i){var s={set:function(i){var s=function(t,e,i){var s=[N,Z,q,U].concat(t._t,[F]);return{mutate:function(n){for(var o=0;o<s.length;o++){var r=s[o];x(r)&&x(r().modify)?n=r(t,e,i).modify(n):_()}return n}}}(t,e).mutate(i),n="translate3d(".concat(-1*s,"px, 0px, 0px)");e.Html.wrapper.style.mozTransform=n,e.Html.wrapper.style.webkitTransform=n,e.Html.wrapper.style.transform=n},remove:function(){e.Html.wrapper.style.transform=""},getStartIndex:function(){var i=e.Sizes.length,s=t.index,n=t.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?i+(s-n):(s+n)%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(n){if(!t.isType("carousel")||!e.Run.isOffset())return s.set(n.movement);e.Transition.after(function(){i.emit("translate.jump"),s.set(e.Sizes.slideWidth*t.index)});var o=e.Sizes.slideWidth*e.Translate.getStartIndex();return s.set(o-e.Translate.getTravelDistance())}),i.on("destroy",function(){s.remove()}),s},Transition:function(t,e,i){var s=!1,n={compose:function(e){var i=t.settings;return s?"".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(){s=!1,this.set()},disable:function(){s=!0,this.set()}};return A(n,"duration",{get:function(){var i=t.settings;return t.isType("slider")&&e.Run.offset?i.rewindDuration:i.animationDuration}}),i.on("move",function(){n.set()}),i.on(["build.before","resize","translate.jump"],function(){n.disable()}),i.on("run",function(){n.enable()}),i.on("destroy",function(){n.remove()}),n},Direction:function(t,e,i){var s={mount:function(){this.value=t.settings.direction},resolve:function(t){var e=t.slice(0,1);return this.is("rtl")?t.split(e).join(B[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 A(s,"value",{get:function(){return s._v},set:function(t){R.indexOf(t)>-1&&(s._v=t)}}),i.on(["destroy","update"],function(){s.removeClass()}),i.on("update",function(){s.mount()}),i.on(["build.before","update"],function(){s.addClass()}),s},Peek:function(t,e,i){var s={mount:function(){this.value=t.settings.peek}};return A(s,"value",{get:function(){return s._v},set:function(t){C(t)?(t.before=b(t.before),t.after=b(t.after)):t=b(t),s._v=t}}),A(s,"reductor",{get:function(){var e=s.value,i=t.settings.perView;return C(e)?e.before/i+e.after/i:2*e/i}}),i.on(["resize","update"],function(){s.mount()}),s},Sizes:function(t,e,i){var s={setupSlides:function(){for(var t="".concat(this.slideWidth,"px"),i=e.Html.slides,s=0;s<i.length;s++)i[s].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 A(s,"length",{get:function(){return e.Html.slides.length}}),A(s,"width",{get:function(){return e.Html.track.offsetWidth}}),A(s,"wrapperSize",{get:function(){return s.slideWidth*s.length+e.Gaps.grow+e.Clones.grow}}),A(s,"slideWidth",{get:function(){return s.width/t.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),i.on(["build.before","resize","update"],function(){s.setupSlides(),s.setupWrapper()}),i.on("destroy",function(){s.remove()}),s},Gaps:function(t,e,i){var s={apply:function(t){for(var i=0,s=t.length;i<s;i++){var n=t[i].style,o=e.Direction.value;n[z[o][0]]=0!==i?"".concat(this.value/2,"px"):"",i!==t.length-1?n[z[o][1]]="".concat(this.value/2,"px"):n[z[o][1]]=""}},remove:function(t){for(var e=0,i=t.length;e<i;e++){var s=t[e].style;s.marginLeft="",s.marginRight=""}}};return A(s,"value",{get:function(){return b(t.settings.gap)}}),A(s,"grow",{get:function(){return s.value*e.Sizes.length}}),A(s,"reductor",{get:function(){var e=t.settings.perView;return s.value*(e-1)/e}}),i.on(["build.after","update"],O(function(){s.apply(e.Html.wrapper.children)},30)),i.on("destroy",function(){s.remove(e.Html.wrapper.children)}),s}
1,Move:function(t,e,i){var s={mount:function(){this._o=0},make:function(){var t=this,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.offset=s,i.emit("move",{movement:this.value}),e.Transition.after(function(){i.emit("move.after",{movement:t.value})})}};return A(s,"offset",{get:function(){return s._o},set:function(t){s._o=E(t)?0:b(t)}}),A(s,"translate",{get:function(){return e.Sizes.slideWidth*t.index}}),A(s,"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(){s.make()}),s},Clones:function(t,e,i){var s={mount:function(){this.items=[],t.isType("carousel")&&(this.items=this.collect())},collect:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=e.Html.slides,n=t.settings,o=n.perView,r=n.classes,a=n.cloningRatio;if(s.length>0)for(var l=o+ +!!t.settings.peek+Math.round(o/2),h=s.slice(0,l).reverse(),c=s.slice(-1*l),d=0;d<Math.max(a,Math.floor(o/s.length));d++){for(var u=0;u<h.length;u++){var p=h[u].cloneNode(!0);p.classList.add(r.slide.clone),i.push(p)}for(var m=0;m<c.length;m++){var g=c[m].cloneNode(!0);g.classList.add(r.slide.clone),i.unshift(g)}}return i},append:function(){for(var t=this.items,i=e.Html,s=i.wrapper,n=i.slides,o=Math.floor(t.length/2),r=t.slice(0,o).reverse(),a=t.slice(-1*o).reverse(),l="".concat(e.Sizes.slideWidth,"px"),h=0;h<a.length;h++)s.appendChild(a[h]);for(var c=0;c<r.length;c++)s.insertBefore(r[c],n[0]);for(var d=0;d<t.length;d++)t[d].style.width=l},remove:function(){for(var t=this.items,i=0;i<t.length;i++)e.Html.wrapper.removeChild(t[i])}};return A(s,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*s.items.length}}),i.on("update",function(){s.remove(),s.mount(),s.append()}),i.on("build.before",function(){t.isType("carousel")&&s.append()}),i.on("destroy",function(){s.remove()}),s},Resize:function(t,e,i){var s=new D,n={mount:function(){this.bind()},bind:function(){s.on("resize",window,O(function(){i.emit("resize")},t.settings.throttle))},unbind:function(){s.off("resize",window)}};return i.on("destroy",function(){n.unbind(),s.destroy()}),n},Build:function(t,e,i){var s={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,s=e.Html.slides[t.index];
1s&&(s.classList.add(i.slide.active),H(s).forEach(function(t){t.classList.remove(i.slide.active)}))},removeClasses:function(){var i=t.settings.classes,s=i.type,n=i.slide;e.Html.root.classList.remove(s[t.settings.type]),e.Html.slides.forEach(function(t){t.classList.remove(n.active)})}};return i.on(["destroy","update"],function(){s.removeClasses()}),i.on(["resize","update"],function(){s.mount()}),i.on("move.after",function(){s.activeClass()}),s},Run:function(t,e,i){var s={mount:function(){this._o=!1},make:function(s){var n=this;t.disabled||(!t.settings.waitForTransition||t.disable(),this.move=s,i.emit("run.before",this.move),this.calculate(),i.emit("run",this.move),e.Transition.after(function(){n.isStart()&&i.emit("run.start",n.move),n.isEnd()&&i.emit("run.end",n.move),n.isOffset()&&(n._o=!1,i.emit("run.offset",n.move)),i.emit("run.after",n.move),t.enable()}))},calculate:function(){var e=this.move,i=this.length,n=e.steps,o=e.direction,r=1;if("="===o)return t.settings.bound&&b(n)>i?void(t.index=i):void(t.index=n);if(">"!==o||">"!==n)if("<"!==o||"<"!==n){if("|"===o&&(r=t.settings.perView||1),">"===o||"|"===o&&">"===n){var a=function(e){var i=t.index;if(t.isType("carousel"))return i+e;return i+(e-i%e)}(r);return a>i&&(this._o=!0),void(t.index=function(e,i){var n=s.length;if(e<=n)return e;if(t.isType("carousel"))return e-(n+1);if(t.settings.rewind)return s.isBound()&&!s.isEnd()?n:0;if(s.isBound())return n;return Math.floor(n/i)*i}(a,r))}if("<"===o||"|"===o&&"<"===n){var l=function(e){var i=t.index;if(t.isType("carousel"))return i-e;var s=Math.ceil(i/e);return(s-1)*e}(r);return l<0&&(this._o=!0),void(t.index=function(e,i){var n=s.length;if(e>=0)return e;if(t.isType("carousel"))return e+(n+1);if(t.settings.rewind)return s.isBound()&&s.isStart()?n:Math.floor(n/i)*i;return 0}(l,r))}"Invalid direction pattern [".concat(o).concat(n,"] 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 A(s,"move",{get:function(){return this._m},set:function(t){var e=t.substr(1);this._m={direction:t.substr(0,1),steps:e?b(e)?b(e):e:0}}}),A(s,"length",{get:function(){var i=t.settings,s=e.Html.slides.length;return this.isBound()?s-1-(b(i.perView)-1)+b(i.focusAt):s-1}}),A(s,"offset",{get:function(){return this._o}}),s}},at=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&&g(t,e)}(i,t);var e=f(i);function i(){return c(this,i),e.apply(this,arguments)}return u(i,[{key:"mount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return y(m(i.prototype),"mount",this).call(this,Object.assign({},rt,t))}}]),i}(T),lt=i(5331);const ht=".glide";class ct{constructor(t,e,i){this.elementSelector=e,this.sourceGroupElement=t,this.doShowNav=i,this.sourceElements=this.getSourceElements()}getSourceElements(){return null===this.sourceGroupElement?null:this.sourceGroupElement.querySelectorAll(this.elementSelector)}transform(t){if(null===this.sourceGroupElement||null===this.sourceElements)return null;if(0===this.sourceElements.length)return null;let e=this.sourceGroupElement.querySelector(ht);null!==e&&e.remove();let 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){let t=i.querySelector(".glide__arrows");lt.A.removeHtmlElementNode(t)}let s=i.querySelector(".glide__slides"),n=null;for(let e=0;e<this.sourceElements.length;e++){let i=this.sourceElements[e];e%t===0&&(n=document.createElement("li"),n.className="glide__slide",s.appendChild(n)),n.appendChild(i)}return this.sourceGroupElement.appendChild(i),this.sourceGroupElement.querySelector(ht)}}class dt{static toCamelCase(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})}}
1const ut="data-slider-";class pt{constructor(t){this.element=t,this.options=Object.assign({autoplay:!1,slidesElementsSelector:"",numberOfRowsPerSlide:1,showNav:"true"},pt._parseOptions(t))}static _parseOptions(t){let e={},i=t.attributes;for(let t=0;t<i.length;t++)0===i[t].name.indexOf(ut)&&(e[dt.toCamelCase(i[t].name.replace(ut,""))]=i[t].value);return e}getAutoPlay(){return!1!==this.options.autoplay&&parseInt(this.options.autoplay)}getSlidesElementsSelector(){return this.options.slidesElementsSelector}doShowNav(){return"true"===this.options.showNav}getNumberOfRowsPerSlide(){return parseInt(this.options.numberOfRowsPerSlide)}}class mt{static getOuterWidth(t){var e=t.getBoundingClientRect();let i=getComputedStyle(t),s=parseFloat(i.marginLeft),n=parseFloat(i.marginRight);return e.width+s+n}static calclateNumberOfFittingItemsPerSlide(t,e,i){if(null==e||null==t)return 1;var s=t.getBoundingClientRect();let n=Math.floor(s.width/mt.getOuterWidth(e))*i;return n<1&&(n=1*i),n}}function gt(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class vt{constructor(){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((t,e)=>{t.forEach(t=>{if(t.isIntersecting){const e=t.target;if(e.dataset.src&&!vt.knownImageUrls.includes(e.dataset.src)){e.setAttribute("srcset",e.dataset.src),vt.knownImageUrls.push(e.dataset.src),e.classList.remove("eventgallery-lazyload-unloaded"),e.classList.add("eventgallery-lazyload-loading"),e.classList.remove("eventgallery-lazyload-loaded");let t=document.createElement("img");t.src=e.dataset.src,t.onload=()=>{e.classList.remove("eventgallery-lazyload-loading"),e.classList.add("eventgallery-lazyload-loaded")}}}})}))}static watchImages(){if(vt.instance)return;vt.instance=new vt;let t=document.querySelectorAll(vt.instance.options.elementSelector);for(let e=0;e<t.length;e++){let i=t[e];i.dataset.src&&(vt.instance.imageObserver?vt.instance.imageObserver.observe(i):i.setAttribute("srcset",i.dataset.src))}}}gt(vt,"instance",null),gt(vt,"knownImageUrls",[]);class ft{constructor(t){this.sourceGroupElement=t,this.sliderTransformator=null}start(){this.sliderOptions=ft._loadOptions(this.sourceGroupElement);let t=this.sliderOptions.getSlidesElementsSelector(),e=this.sliderOptions.getAutoPlay(),i=this.sliderOptions.doShowNav(),s=mt.calclateNumberOfFittingItemsPerSlide(this.sourceGroupElement,this.sourceGroupElement.querySelector(t),this.sliderOptions.getNumberOfRowsPerSlide());null==this.sliderTransformator&&(this.sliderTransformator=new ct(this.sourceGroupElement,t,i));let n=this.sliderTransformator.transform(s);null!==n&&(vt.watchImages(),new at(n,{type:"carousel",perView:1,gap:15,keyboard:!1,autoplay:e}).mount({Swipe:J,Controls:it,Breakpoints:ot,Autoplay:st,Anchor:r,Images:$}))}static _loadOptions(t){return new pt(t)}}var yt=i(9259),wt=i(5598);class _t{constructor(t,e,i){this.options=yt.M.mergeObjects(this.options,i),this.imageTagContainer=t,this.index=e,this.calculatedWidth=0,this.calcSize()}calcSize(){let t=this.imageTagContainer.querySelector("img");if(!t)return;let e=[this.imageTagContainer,t];this.glueLeft=yt.M.calcBorderWidth(e,["paddingLeft","marginLeft","borderLeftWidth"]),this.glueRight=yt.M.calcBorderWidth(e,["paddingRight","marginRight","borderRightWidth"]),this.glueTop=yt.M.calcBorderWidth(e,["paddingTop","marginTop","borderTopWidth"]),this.glueBottom=yt.M.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=yt.M.getElementWidth(this.imageTagContainer)-this.glueLeft-this.glueRight),void 0===this.height&&(this.height=yt.M.getElementHeight(this.imageTagContainer)-this.glueTop-this.glueBottom)}getImageTagHeight(){return parseFloat(window.getComputedStyle(this.imageTagContainer).height)+this.glueTop+this.glueBottom}setSize(t,e){this.calcSize();let i=t-this.glueLeft-this.glueRight,s=e-this.glueTop-this.glueBottom,n=this.width/this.height,o=this.imageTagContainer.querySelector("img");if(!o)return;let r=new wt.A,a=o.getAttribute("data-src");a||(a="");let l=o.getAttribute("data-secret");if(null!==l){let t=o.getAttribute("data-secret_o"),e=o.getAttribute("data-secret_h"),n=o.getAttribute("data-secret_k"),h=o.getAttribute("data-farm"),c=o.getAttribute("data-server"),d=o.getAttribute("data-id");a=r.getFlickrURL(h,c,l,e,n,t,d,i,s,this.width,this.height)}else{let t=r.getSize(i,s,n);a=r.adjustImageURL(a,t)}o.setAttribute("data-src",a),o.setAttribute("srcset",a),o.style.display="block",o.style.margin="auto",i>0&&(o.style.width=i+"px"),s>0&&(o.style.height=s+"px")}hide(){this.imageTagContainer.style.display="none"}show(){this.imageTagContainer.style.display="block"}}class bt{constructor(t){this.options={maxWidth:960,maxHeight:250,heightJitter:0,adjustHeight:!0,doFillLastRow:!0},this.options=yt.M.mergeObjects(this.options,t),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))}add(t){let e=Math.floor(t.width/t.height*this.options.maxHeight),i=this.width+e<=this.options.maxWidth||0===this.images.length;if(!i){Math.abs(this.options.maxWidth-this.width-e)/this.options.maxWidth<.2&&(i=!0)}return!!i&&(this.images.push(t),t.calculatedWidth=e,this.width=this.width+e,!0)}processRow(){let 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 s=this.images[i],n=s.calculatedWidth,o=n/this.width*t;s.setSize(n+o,e)}}}class St{constructor(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=yt.M.mergeObjects(this.options,t),void 0!==t&&this.initialize()}initialize(){this.width=yt.M.getElementWidth(this.options.imagesetContainer),this.eventgalleryPageWidth=this.width,this.images=[],yt.M.forEach(this.options.imageset,(t,e)=>{this.images.push(new _t(t,e))}),window.addEventListener("resize",()=>{window.clearTimeout(this.eventgalleryTimer),this.eventgalleryTimer=setTimeout(()=>{let t=yt.M.getElementWidth(this.options.imagesetContainer);this.width=t,this.eventgalleryPageWidth!==t&&(this.options.resizeStart(),this.eventgalleryPageWidth=t,this.options.imagesetContainer.style.minHeight=this.options.rowHeight*this.images.length+"px",this.processList(),this.options.imagesetContainer.style.minHeight="0px",this.options.resizeComplete())},500)}),this.options.imagesetContainer&&(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)}getRowWidth(){var t=this.width;if(window.getComputedStyle){let e=window.getComputedStyle(this.options.imagesetContainer);if("border-box"===e.boxSizing){let i=parseFloat(e.paddingLeft),s=parseFloat(e.paddingRight),n=parseFloat(e.borderLeftWidth),o=parseFloat(e.borderRightWidth);t=Math.floor(parseFloat(e.width)-i-s-n-o)-1}else t=Math.floor(parseFloat(e.width))-1}else t-=1;return t}processList(){let t,e=this.getRowWidth(),i=this.images.slice(0);if(0!==i.length){if(this.options.firstImageRowHeight>1){let s=i.shift();s.hide(),e=this.getRowWidth(),s.show();let n=this.options.firstImageRowHeight*this.options.rowHeight,o=Math.floor(s.width/s.height*n);o+this.options.minImageWidth>=e&&(o=e),s.setSize(o,n);let r=this.options.rowHeight;r=(n+.05)/this.options.firstImageRowHeight,n>s.getImageTagHeight()&&(r=(n+1)/this.options.firstImageRowHeight),t={maxWidth:e-o,maxHeight:r,adjustHeight:!1},t.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)}}generateRows(t,e,i,s){let n=new bt(i);for(;t.length>0&&e>0;){if(n.add(t[0]))t.shift();else{if(n.processRow(),0===--e)break;n=new bt(i)}}s&&(n.isLastRow=!0),n.processRow()}}class Ct extends St{constructor(t){super(t)}processList(){let t=this.width;yt.M.forEach(this.images,e=>{let i=Math.ceil(t*this.options.rowHeightPercentage/100);e.setSize(t,i)})}}class xt extends St{constructor(t){super(t)}processList(){let t=this.width;yt.M.forEach(this.images,e=>{let i=Math.round(e.height/e.width*t),s=t;"height"==this.options.adjustMode&&e.height>e.width&&(i=t,s=Math.round(e.width/e.height*i)),e.setSize(s,i)})}}class Et extends St{constructor(t){super(t)}processList(){var t=this.width;yt.M.forEach(this.images,e=>
1{e.setSize(t,t)})}}class Pt{constructor(t){this.options={tiles:null,tilesContainer:[]},this.options=yt.M.mergeObjects(this.options,t),this.tiles=this.options.tiles,this.tilesContainer=this.options.tilesContainer}calculate(){let t=1;if(yt.M.forEach(this.tiles,t=>{t.style.visibility="hidden",t.style.position="static",t.style.float="left"}),!this.tiles.length)return;let e=this.tiles[0],i=e.offsetWidth,s=e.offsetTop;for(let e=1;e<this.tiles.length&&this.tiles[e].offsetTop===s;e++)t++;let n=[];for(let e=0;e<t;e++)n.push(0);yt.M.forEach(this.tiles,t=>{let e=this.getSmallestColumn(n);t.style.left=e*i+"px",t.style.top=n[e]+"px",n[e]=n[e]+t.offsetHeight,t.style.visibility="visible",t.style.position="absolute",t.style.float="none"}),this.tilesContainer.style.height=n[this.getHighestColumn(n)]+"px"}getSmallestColumn(t){let e=t[0],i=0;for(let s=0;s<t.length;s++)e>t[s]&&(e=t[s],i=s);return i}getHighestColumn(t){let e=t[0],i=0;for(let s=0;s<t.length;s++)e<t[s]&&(e=t[s],i=s);return i}}class At{constructor(){}static parseURLParameter(t){let e=t.split("&"),i=new Map;return e.forEach(t=>{let e=t.split("=");2===e.length&&i.set(e[0],e[1])}),i}static getParameters(t){let e=t.split("?");if(e.length<2)return new Map;let i=e[1].split("#");return At.parseURLParameter(i[0])}static extractBackgroudUrl(t){return t.replace(/(url\(|\)|"|')/g,"")}}const Lt="gp.svg",It="data-eg-gp-processing";class Tt{constructor(){this.albumUrl="",this.albumsUrl="",window.EventGalleryGooglePhotosConfiguration&&(this.albumUrl=window.EventGalleryGooglePhotosConfiguration.albumUrl,this.albumsUrl=window.EventGalleryGooglePhotosConfiguration.albumsUrl),this.imageAddedCallback=t=>this.processImages(t),document.addEventListener("eventgallery-images-added",this.imageAddedCallback,!0)}destroy(){document.removeEventListener("eventgallery-images-added",this.imageAddedCallback,!0)}processImages(t){let e=!0;t?.detail?.isOverlay&&(e=!1);let i=this._groupByAlbum(this._collectHTMLElements());this._markImagesAsInProgress(i),this._getMainImageDataFromServer(i,e)}_collectHTMLElements(){let t=document.getElementsByTagName("IMG"),e=[...t].filter(t=>{let e=t.getAttribute("srcset"),i=t.getAttribute("data-src"),s=t.src;return"1"!==t.getAttribute(It)&&(e&&e.indexOf(Lt)>0||i&&i.indexOf(Lt)>0||s&&s.indexOf(Lt)>0)});t=document.getElementsByTagName("A");let i=[...t];return e=e.concat(i.filter(t=>{let e=t.getAttribute("data-src"),i=t.getAttribute("rel"),s=t.getAttribute("href");return"1"!==t.getAttribute(It)&&(s&&s.indexOf(Lt)>0||e&&e.indexOf(Lt)>0||i&&i.indexOf(Lt)>0)})),e}_markImagesAsInProgress(t){for(let[e,i]of t)i.forEach(t=>{t.getHTMLElement().setAttribute(It,1)})}_groupByAlbum(t){let e=new Map;return t.forEach(t=>{let i=this._parseHTMLElement(t);i.updateParameters();let s=i.parameters.get("folder");e.get(s)||e.set(s,[]),e.get(s).push(i)}),e}_parseHTMLElement(t){return"IMG"===t.tagName?new zt(t):new Ot(t)}_getAlbumDataFromServer(t,e){for(let[i,s]of t)this._doAlbumRequest(i,s,e)}_doAlbumRequest(t,e,i){this.albumUrl&&t&&fetch(this.albumUrl+"&folder="+t).then(t=>t.json()).then(t=>this._processAlbumResult(e,t,i))}_processAlbumResult(t,e,i){this._replaceImages(t,e,i)}_getMainImageDataFromServer(t,e){let i=this._filterForAlbumsWithMainImageOnly(t);if(i.size>0){this._doAlbumsRequest(i,t,e);for(let[e]of i)t.delete(e)}this._getAlbumDataFromServer(t,e)}_doAlbumsRequest(t,e,i){this.albumsUrl&&fetch(this.albumsUrl).then(t=>t.json()).then(s=>this._processAlbumsResult(t,e,s,i))}_processAlbumsResult(t,e,i,s){for(let[e,n]of t)this._replaceImages(n,i[e],s);this._getAlbumDataFromServer(e,s)}_filterForAlbumsWithMainImageOnly(t){let e=new Map;for(let[i,s]of t){let t=s.filter(t=>t.isMainImage());t.length>0&&t.length===s.length&&e.set(i,s)}return e}_replaceImages(t,e,i){if(void 0!==t&&void 0!==e&&(t.forEach(t=>{let i=e[t.getFile()];if(void 0===i)return!1;t.updateParameters(),t.replaceElementLinks(i),t.getHTMLElement().setAttribute(It,0)}),i&&window.Eventgallery?.lightbox&&window.Eventgallery.lightbox.isOpen())){let t=window.Eventgallery.lightbox.getCurrentSlide().thumbEl;window.Eventgallery.lightbox._gallery.close(),setTimeout(()=>t.click(),500)}}}class kt{constructor(t){this.htmlElement=t,this.parameters=null,this.attributeNames=new Set}updateParametersWithUrl(t){let e=t.substring(t.indexOf("#")+1);this.parameters=At.parseURLParameter(e)}updateParameters(){for(let t of this.attributeNames){let e=this.getHTMLElement().getAttribute(t);if(e&&e.indexOf(Lt)>0)return void this.updateParametersWithUrl(e)}}replaceElementLinks(t){for(let e of this.attributeNames){let i=this.getHTMLElement().getAttribute(e);i&&i.indexOf(Lt)>0&&this.getHTMLElement().setAttribute(e,this.getImageUrl(t,this.getWidth(i)))}}getHTMLElement(){return this.htmlElement}getFolder(){return this.parameters.get("folder")}getFile(){return this.parameters.get("file")}getWidth(t){return At.parseURLParameter(t).get("width")}getImageUrl(t,e){return t+"=w"+e}isMainImage(){return"1"===this.parameters.get("m")}}class Ot extends kt{constructor(t){super(t),this.attributeNames=new Set(["href","data-src","rel"])}}class zt extends kt{constructor(t){super(t),this.attributeNames=new Set(["src","data-src","srcset"])}}!function(t){document.addEventListener("DOMContentLoaded",()=>{function e(){vt.watchImages()}yt.M.forEach(document.querySelectorAll(".eventgallery-events-gridlist"),t=>{let i=t.querySelectorAll(".event-thumbnails .event-thumbnail"),s={rowHeightPercentage:100,imagesetContainer:t.querySelector(".event-thumbnails"),imageset:i,initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};i.length>0&&new Ct(s)}),yt.M.forEach(document.querySelectorAll(".eventgallery-events-tiles-list"),t=>{var i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),eventgalleryTilesCollection:null,initComplete:function(){e();var s={tiles:t.querySelectorAll(".eventgallery-tiles .eventgallery-tile"),tilesContainer:t.querySelector(".eventgallery-tiles")};i.eventgalleryTilesCollection=new Pt(s),i.eventgalleryTilesCollection.calculate(),window.addEventListener("load",function(){i.eventgalleryTilesCollection.calculate()})},resizeStart:function(){},resizeComplete:function(){i.eventgalleryTilesCollection.calculate(),document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};new xt(i)}),yt.M.forEach(document.querySelectorAll(".eventgallery-event-tiles-list"),t=>{let i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),adjustMode:"width",eventgalleryTilesCollection:null,initComplete:function(){let s={tiles:t.querySelectorAll(".eventgallery-tiles .eventgallery-tile"),tilesContainer:t.querySelector(".eventgallery-tiles")};i.eventgalleryTilesCollection=new Pt(s),i.eventgalleryTilesCollection.calculate(),window.addEventListener("load",function(){i.eventgalleryTilesCollection.calculate()}),e()},resizeStart:function(){},resizeComplete:function(){i.eventgalleryTilesCollection.calculate(),document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};new xt(i)}),yt.M.forEach(document.querySelectorAll(".eventgallery-event-gridlist"),t=>{let i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),adjustMode:"height",initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};new xt(i)}),yt.M.forEach(document.querySelectorAll(".eventgallery-imagelist"),t=>{let 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(lt.A.createNewEvent("scroll",null))}};new St(i)}),yt.M.forEach(document.querySelectorAll(".eventgallery-event-square-list"),t=>{let i={imagesetContainer:t.querySelector(".event-thumbnails"),imageset:t.querySelectorAll(".event-thumbnail"),adjustMode:"width",initComplete:function(){e()},resizeStart:function(){},resizeComplete:function(){document.dispatchEvent(lt.A.createNewEvent("scroll",null))}};new Et(i)}),t.lightbox=new s.default,t.lightbox.initPhotoSwipe(),window.EventGalleryLightboxConfiguration&&window.EventGalleryLightboxConfiguration.doTrackImageHits&&document.addEventListener("eventgallery-lightbox-changed",t=>{const e=window.EventGalleryLightboxConfiguration.trackImageHitsUrl;fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t.detail.id})}).catch(t=>{})}),yt.M.forEach(document.querySelectorAll(".singleimage-zoom"),t=>{t.addEventListener("click",t=>{t.preventDefault(),document.getElementById("bigimagelink").click()})}),yt.M.forEach(document.querySelectorAll("a[data-eventgallery-overlay]"),t=>{let e=t.getAttribute("href");t.addEventListener("click",t=>{t.preventDefault(),(new n.A).openOverlay(document.getElementById(e.replace("#","")).innerHTML)})}),new Tt,document.dispatchEvent(lt.A.createNewEvent("eventgallery-images-added"));
1let i=document.querySelectorAll('div[data-slider="1"]');for(let t=0;t<i.length;t++){let e=new ft(i[t]),s=null;e.start(),window.addEventListener("resize",()=>{null!=s&&clearTimeout(s),s=setTimeout(()=>e.start(),1e3)},!1)}let o=document.querySelectorAll("*[data-eg-link]");for(let t=0;t<o.length;t++){o[t].addEventListener("click",t=>{if("A"===t.target.nodeName)return;t.stopPropagation(),t.preventDefault();let e=t.currentTarget.getAttribute("data-eg-link");e&&(window.location.href=e)},!1)}})}(window.Eventgallery)},2846:(t,e,i)=>{"use strict";i.r(e),i.d(e,{JSGallery2:()=>h});var s=i(5331),n=i(1767),o=new(i(5296).A);var r=i(3417),a=i(9259),l=i(5598);class h{constructor(t,e,i,s,n){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=t,this.nav=t.querySelector(".navigation"),this.image=t.querySelector(".image"),this.options=a.M.mergeObjects(this.options,n);let o=s.children;this.running=!1,this.currentPageNumber=0,this.blockKeys=!1,this.imagesPerFirstPage=o[0].querySelectorAll("div.ajax-thumbnail-container").length,this.imagesPerPage=this.imagesPerFirstPage,o.length>1&&o[1].querySelectorAll("div.ajax-thumbnail-container").length>0&&(this.imagesPerPage=o[1].querySelectorAll("div.ajax-thumbnail-container").length),this.thumbs=[];for(let t=0;t<e.length;t++)this.thumbs.push(e[t]);this.bigImageContainer=i,this.bigImage=i.querySelector("img"),this.pageContainer=s,this.convertThumbs(),this.lastPage=Math.ceil((this.thumbs.length-this.imagesPerFirstPage)/this.imagesPerPage)+1;let r=document.location.href;this.initialIndex=parseInt(a.M.getUrlHashParameterValue(r,"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",()=>{this.resizePage()}),window.addEventListener("resize",()=>{this.resizePage()})}adjustWidth(){let t=this.nav.offsetWidth;a.M.forEach(this.galleryElement.querySelectorAll(".navigation .page"),e=>{e.style.width=t+2+"px"})}adjustImageSize(){let t=new l.A,e=a.M.getElementWidth(this.bigImageContainer);a.M.forEach(this.nav.querySelectorAll("#thumbs .ajax-thumbnail"),i=>{let s,n=i.getAttribute("data-width"),o=i.getAttribute("data-height"),r=n/o,a=Math.round(e/r),l=i.getAttribute("data-secret");if(null!==l){let r=i.getAttribute("data-secret_o"),h=i.getAttribute("data-secret_h"),c=i.getAttribute("data-secret_k"),d=i.getAttribute("data-farm"),u=i.getAttribute("data-server"),p=i.getAttribute("data-file");s=t.getFlickrURL(d,u,l,h,c,r,p,e,a,n,o)}else{let n=t.getSize(e,a,r);s=t.adjustImageURL(i.getAttribute("rel"),n)}i.setAttribute("rel",s)})}resizePage(){window.clearTimeout(this.eventgalleryAjaxResizeTimer),this.eventgalleryAjaxResizeTimer=setTimeout(()=>{this.adjustWidth(),this.adjustImageSize(),this.resetThumbs(),this.gotoPage(this.currentPageNumber),this.adjustPageHeight()},500)}createGallerySlides(){this.slides=[],a.M.forEach(this.thumbs,t=>{let e=t.getElementsByTagName("A")[0],i=decodeURIComponent(e.getAttribute("data-description")),s={w:e.getAttribute("data-width"),h:e.getAttribute("data-height"),src:e.getAttribute("href"),title:i,type:e.getAttribute("data-type")};"video"===s.type&&e&&(e.dataset.pswpVideoSources?s.videoSources=JSON.parse(e.dataset.pswpVideoSources):e.dataset.pswpVideoSrc?s.videoSrc=e.dataset.pswpVideoSrc:s.videoSrc=e.getAttribute("href")),this.slides.push(s)})}createControls(){if(this.prevLink=document.createElement("a"),this.prevLink.href="#",this.prevLink.classList.add("link","jsgallery-prev"),this.prevLink.addEventListener("click",t=>this.prevImage(t)),this.prevLink.addEventListener("mouseleave",()=>this.mouseLeaveHandler()),this.prevLink.addEventListener("mouseover",t=>this.focusControl(t,this.prevLink)),this.zoomLink=document.createElement("a"),this.zoomLink.href="#",this.zoomLink.classList.add("link","jsgallery-zoom"),this.zoomLink.addEventListener("click",()=>this.bigImageClickHandler()),this.zoomLink.addEventListener("mouseleave",()=>this.mouseLeaveHandler()),this.zoomLink.addEventListener("mouseover",t=>this.focusControl(t,this.zoomLink)),this.nextLink=document.createElement("a"),this.nextLink.href="#",this.nextLink.classList.add("link","jsgallery-next"),this.nextLink.addEventListener("click",t=>this.nextImage(t)),this.nextLink.addEventListener("mouseleave",()=>this.mouseLeaveHandler()),this.nextLink.addEventListener("mouseover",t=>this.focusControl(t,this.nextLink)),this.bigImage.parentElement.appendChild(this.prevLink),this.bigImage.parentElement.appendChild(this.zoomLink),this.bigImage.parentElement.appendChild(this.nextLink),this.bigImage.addEventListener("load",()=>this.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(s.A.createNewEvent(n.s.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){let t=document.createElement("div");t.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=t.firstChild,this.socialmediabutton.addEventListener("click",t=>{t.preventDefault();let e=this.socialmediabutton.getAttribute("data-href");(new r.A).openOverlay(e)}),this.bigImage.parentElement.appendChild(this.socialmediabutton)}document.addEventListener("keydown",t=>this.keyboardHandler(t));var t,e,i,a,l,h,c,d,u,p,m;t=document.querySelector(this.options.touchContainerSelector),e=t=>{this.prevImage(t)},i=t=>{this.nextImage(t)},a=()=>{this.bigImage.click()},l=null,p=!1,m=!1,o.off("touchstart",t),o.off("touchend",t),o.on("touchstart",t,function(t){d=t.targetTouches[0]},!1,!0),o.on("touchend",t,function(t){return!!(u=t.changedTouches[0])&&(u.pageY,d.pageY,u.pageX,d.pageX,c=u.pageY-d.pageY,Math.abs(c)>=50&&(p=!0),h=u.pageX-d.pageX,!p&&Math.abs(h)>=50&&(m=!0),p?(p=!1,Math.abs(c)>=100&&l&&l()):m?(m=!1,h>=50?e&&e():h<=-50&&i&&i()):Math.abs(c)<5&&Math.abs(h)<5&&(void 0!==a?a():t.target.click()),!0)},!1,!0),this.mouseLeaveHandler()}focusControl(t,e){e.style.opacity="1"}mouseLeaveHandler(){this.nextLink.style.opacity="0",this.prevLink.style.opacity="0",this.zoomLink.style.opacity="0"}keyboardHandler(t){this.blockKeys||!0===window.Eventgallery.lightbox?.isOpen()||(t.keyCode>=49&&t.keyCode<=57?this.gotoPage(t.key-1):37==t.keyCode?this.prevImage(t):39==t.keyCode&&this.nextImage(t))}adjustPageHeight(){let t=0;a.M.forEach(this.pageContainer.children,e=>{let i=e.offsetHeight;i>t&&(t=i)}),this.pageContainer.style.height=t+"px",this.nav.style.opacity=1}resetThumbs(){this.running=!1,this.convertThumbs(),this.select(this.selectedContainer,!0)}convertThumbs(){a.M.forEach(this.thumbs,(t,e)=>{this.convertThumb(t,e)})}convertThumb(t,e){void 0!==t&&(t.addEventListener("click",e=>{e.preventDefault(),this.select(t)}),t.style.position="relative",t.setAttribute("data-counter",e),t.setAttribute("href","#"))}unBlockKeys(){this.blockKeys=!1}select(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("","",a.M.addUrlHashParameter(window.location.href,"imageno",this.thumbs.indexOf(t)));let 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);let o=t.children[0];this.options.showCartButton&&("image"===t.getElementsByTagName("A")[0]?.getAttribute("data-type")?(this.add2cartLink.setAttribute("data-id",o.getAttribute("data-id")),this.add2cartLink.style.display="block"):this.add2cartLink.style.display="none"),this.options.showCartConnector&&(this.cartConnectorLink.setAttribute("data-folder",o.getAttribute("data-folder")),this.cartConnectorLink.setAttribute("data-file",o.getAttribute("data-file")),this.cartConnectorLink.setAttribute("href",decodeURIComponent(o.getAttribute("data-cart-connector-link")))),this.options.showSocialMediaButton&&this.socialmediabutton.setAttribute("data-href",decodeURIComponent(o.getAttribute("data-social-sharing-link"))),document.dispatchEvent(s.A.createNewEvent(n.s.rebindAdd2CartButtons,null)),this.setImage(o)}selectByIndex(t){(t<0||this.thumbs.length<=t)&&(t=0),this.select(this.thumbs[t])}deselect(t){t.classList.remove(this.options.activeClass)}bigImageClickHandler(){this.createGallerySlides();let t=this.thumbs.indexOf(this.selectedContainer);window.Eventgallery.lightbox.openPhotoSwipe(t,this.slides,!0,!1,
1!1),window.Eventgallery.lightbox.setAfterChangeEventListener(()=>{let t=window.Eventgallery.lightbox.getCurrentSlide().gid;this.slides.length>0&&t===this.slides[0].gid&&this.selectByIndex(window.Eventgallery.lightbox.getCurrentIndex())})}setImage(t){this.bigImage.style.opacity="0.1";let e=t.getAttribute("rel"),i=decodeURIComponent(t.getAttribute("data-description")),s=this.thumbs.indexOf(this.selectedContainer);!0===window.Eventgallery.lightbox?.isOpen()&&window.Eventgallery.lightbox.gotoSlide(s),this.galleryElement.querySelector(this.options.titleTarget).innerHTML=i,this.bigImage.setAttribute("src",e),this.unBlockKeys()}showBigImage(){this.image.style.opacity=1,this.bigImage.style.opacity=1}prevPage(){this.gotoPage(this.currentPageNumber-1)}nextPage(){this.gotoPage(this.currentPageNumber+1)}prevImage(t){void 0!==t&&t.preventDefault(),this.selectByIndex(this.thumbs.indexOf(this.selectedContainer)-1)}nextImage(t){void 0!==t&&t.preventDefault(),this.selectByIndex(this.thumbs.indexOf(this.selectedContainer)+1)}zoomImage(t){void 0!==t&&t.preventDefault()}gotoPage(t,e){if(0===t)e=void 0===e?this.thumbs[0]:e;else{let 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=a.M.getElementWidth(this.pageContainer.children[0])*t*-1+"px",this.currentPageNumber=t,this.select(e),this.updateHandles())}updateHandles(){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)}
1updatePagingBar(t,e){if(!(e<=1)){if(e>1&&""===this.options.countHandle.innerHTML)for(let t=0;t<e;t++)this.createCountLink(t);if(e>9){for(let t=0;t<e;t++)this.galleryElement.querySelector("#count"+t).style.display="inline";let i=e,s=0,n=e-t-1;t>4&&n>4?(s=t-4,i=t+5):(t<=4&&(s=0,i=t+5+(4-t)),n<=4&&(s=t-4-(4-n),i=e));for(let t=0;t<s;t++)this.galleryElement.querySelector("#count"+t).style.display="none";for(let t=i;t<e;t++)this.galleryElement.querySelector("#count"+t).style.display="none"}a.M.forEach(this.options.countHandle.children,t=>t.classList.remove("active")),this.galleryElement.querySelector("#count"+t).classList.add("active")}}createCountLink(t){let e=document.createElement("A");e.href="#",e.classList.add("page-link"),e.innerText=t+1,e.addEventListener("click",e=>(e.preventDefault(),this.gotoPage(t,null),!1));let i=document.createElement("LI");i.classList.add("count"),i.classList.add("page-item"),i.id="count"+t,i.appendChild(e),this.options.countHandle.appendChild(i)}}},3036:(t,e,i)=>{"use strict";var s,n=i(9259),o=i(5331),r=i(1767);!function(t){t[t.short=0]="short",t[t.long=1]="long"}(s||(s={}));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 o=this;this.minicartMode=s.short,this.containerElement=e,this.cartProcessor=t,this.lineItems=[],this.options=n.M.mergeObjects(new a,i);var l=window.EventGalleryCartConfiguration;this.options=n.M.mergeObjects(this.options,l),this.initUI(),document.addEventListener(r.s.reload,function(t){return o.updateCartData(t.detail)}),document.addEventListener(r.s.rebindAdd2CartButtons,function(){o.updateAdd2CartIcons()})}return t.prototype.initUI=function(){var t,e,i,n,o,r=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===(n=this.cartElement)||void 0===n?void 0:n.querySelector(this.options.buttonUpSelector),this.buttonToLong=null===(o=this.cartElement)||void 0===o?void 0:o.querySelector(this.options.buttonDownSelector),this.buttonToLong.addEventListener("click",function(){r.resizeCartArea(s.long)}),this.buttonToShort.addEventListener("click",function(){r.resizeCartArea(s.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]),s=document.querySelectorAll(".eventgallery-add2cart[data-id*='".concat(i,"'] i.egfa")),n=0;n<s.length;n++)s[n].classList.add("egfa-shopping-cart"),s[n].classList.remove("egfa-cart-plus")},t.prototype.resizeCartArea=function(t){this.minicartMode=t;for(var e=1,i=-1,o=-1,r=this.cartItemsElement.querySelectorAll(this.options.cartItemSelector),a=0;a<r.length;a++){var l=r[a];i<0&&(i=n.M.getOuterHeight(l)),o>-1&&o!=l.offsetTop&&e++,o=l.offsetTop}var h=1;1===e?(this.buttonToShort.style.display="none",this.buttonToLong.style.display="none"):this.minicartMode==s.short?(this.buttonToShort.style.display="none",this.buttonToLong.style.display="inline"):(this.buttonToShort.style.display="inline",this.buttonToLong.style.display="none",h=e),this.cartItemsElement.style.height=h*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="",s=this.lineItems.length-1;s>=0;s--)i+='<div>\n <div class="cart-item">
1\n <span class="badge badge-pill badge-info">'.concat(this.lineItems[s].count,"</span>\n ").concat(this.lineItems[s].imagetag,'\n <a href="#" title="').concat(this.options.removeLinkTitle,'" \n class="button-removeFromCart eventgallery-removeFromCart" \n data-id="lineitemid=').concat(this.lineItems[s].lineitemid,'">\n <i class="egfa egfa-2x egfa-remove"></i>\n </a>\n </div>\n </div>');this.cartItemsElement.innerHTML=i;var n=this.cartItemsElement.querySelectorAll(".eventgallery-removeFromCart");for(s=0;s<n.length;s++)n[s].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(o.A.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}(),h=function(){function t(t){this.inputFields=[],this.plusButtons=[],this.minusButtons=[],this.cartProcessor=t,this.initialize()}return t.prototype.initialize=function(){var e=this;this.cartButton=document.querySelector(t.CART_BUTTON_QUERY_SELECTOR);for(var i=document.getElementsByClassName("eventgallery-cartquantity"),s=0;s<i.length;s++)i[s].addEventListener("change",function(t){return e.updateQuantity(t)}),this.inputFields.push(i[s]);var n=document.getElementsByClassName("eventgallery-qtyplus");for(s=0;s<n.length;s++)n[s].addEventListener("click",function(t){return e.quantityPlus(t)},{capture:!0}),this.plusButtons.push(n[s]);var o=document.getElementsByClassName("eventgallery-qtyminus");for(s=0;s<o.length;s++)o[s].addEventListener("click",function(t){return e.quantityMinus(t)},{capture:!0}),this.minusButtons.push(o[s]);document.querySelector("#eg-single-image-type-action-needed")&&this.cartProcessor.loadCart(),this.updateToCartButton()},t.prototype.updateToCartButton=function(){var t=0;this.inputFields.forEach(function(e){t+=parseInt(e.value)}),t>0||0===this.inputFields.length?this.cartButton.disabled=!1:this.cartButton.disabled=!0},t.prototype.updateQuantity=function(t){t.preventDefault();var e=t.target,i=parseInt(e.value);isNaN(i)&&(i=1);var s=e.getAttribute("data-id");this.cartProcessor.add(s,i),this.updateToCartButton()},t.prototype.quantityPlus=function(t){t.preventDefault();var e=t.target.getAttribute("field"),i=document.getElementsByName(e)[0],s=parseInt(i.value);if(isNaN(s))i.value="0";else{var n=parseInt(i.getAttribute("data-maxorderquantity"));(0===n||s<n)&&(i.value=String(s+1));var o=new Event("change");i.dispatchEvent(o)}this.updateToCartButton()},t.prototype.quantityMinus=function(t){t.preventDefault();var e=t.target.getAttribute("field"),i=document.getElementsByName(e)[0],s=parseInt(i.value);if(!isNaN(s)&&s>0){i.value=String(s-1);var n=new Event("change");i.dispatchEvent(n)}else i.value="0";this.updateToCartButton()},t.CART_BUTTON_QUERY_SELECTOR=".eventgallery-opencart",t}(),c=i(3417),d=i(5296),u=function(){function t(t,e){var i=this;this.eventHandler=new d.A,this.cartProcessor=t,this.add2cartdialogurl=e,this.initializeCartButtons(),document.addEventListener(r.s.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 s=new c.A;return s.onLoad=function(){new h(e.cartProcessor)},s.openOverlay(this.add2cartdialogurl+"&"+i.getAttribute("data-id")),!1},t}(),p=function(){function t(){var t=this;this.eventHandler=new d.A,this.initializeCartConnectorButtons(),document.addEventListener(r.s.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=n.M.getParent(e,"SPAN")),window.location.href=e.getAttribute("data-href")},t}(),m=function(){this.removeUrl="",this.add2cartUrl="",this.getCartUrl="",this.add2cartdialogurl=""},g=function(){function t(){var t;this.urls=window.EventGalleryCartConfiguration||m,this.add2CartButtonHandler=new u(this,null===(t=this.urls)||void 0===t?void 0:t.add2cartdialogurl),this.cartConnectorButtonHandler=new p}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(o.A.createNewEvent(r.s.reload,{cart:t}))},t}();document.addEventListener("DOMContentLoaded",function(){try{var t=new g;document.addEventListener(r.s.prepareAdd2cartDialogContent,function(){new h(t)});var e=document.getElementsByClassName("eventgallery-minicart-container");if(0==e.length)return;for(var i=0;i<e.length;i++)new l(t,e[i],null);t.loadCart()}catch(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"),s=t.querySelector(".orderimages-show"),n=t.querySelector(".orderimages-help");s.addEventListener("click",function(t){t&&t.preventDefault(),i.style.display="block",n.style.display="block",s.style.display="none",r(!0)}),i.addEventListener("click",o),e?(s.style.display="none",i.style.display="none",r(!0)):o(null)}function o(t){t&&t.preventDefault(),i.style.display="none",n.style.display="none",s.style.display="block",r(!1)}function r(t){for(var e=document.querySelectorAll(".eventgallery-add2cart"),i=0;i<e.length;i++)e[i].style.display=t?"inline-block":"none"}})},3417:(t,e,i)=>{"use strict";i.d(e,{A:()=>
1o});var s=i(5331),n=i(9259);class o{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;this.isOpen=!1,this.myDiv=null,this.background=null,this.parent=t,this.onClosed=void 0,this.onLoad=void 0,this.repositionTimer=null,this.windowWidth=0,this.onResizeOverlay=()=>{this._setRositionTimer(!1)}}openOverlay(t){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",()=>{this.closeOverlay()}),this.parent.append(this.background),this.parent.append(this.myDiv),this.reposition(!0),t.startsWith("http")||t.startsWith("/")?o._getRemoteData(t,t=>{this._addContent(t)}):this._addContent('<button class="btn-close-overlay eventgallery-close-overlay"><i class="egfa egfa-2x egfa-times-circle"></i></button>'+t),window.addEventListener("resize",this.onResizeOverlay)}_setRositionTimer(t){this.repositionTimer&&clearTimeout(this.repositionTimer),this.repositionTimer=setTimeout(()=>this.reposition(t),500)}static _getRemoteData(t,e){fetch(t).then(t=>t.text()).then(t=>e(t))}_addContent(t){n.M.insertAndExecute(this.myDiv,t);let e=this.myDiv.getElementsByClassName("eventgallery-close-overlay");for(let t=0;t<e.length;t++)e[t].addEventListener("click",t=>{t.preventDefault(),this.closeOverlay()});this.reposition(!0),void 0!==this.onLoad&&this.onLoad(),document.dispatchEvent(s.A.createNewEvent("eventgallery-images-added",{isOverlay:!0}))}closeOverlay(){this.isOpen=!1,window.removeEventListener("resize",this.onResizeOverlay),s.A.removeHtmlElementNode(this.myDiv),s.A.removeHtmlElementNode(this.background),void 0!==this.onClosed&&this.onClosed()}reposition(t){null!==this.repositionTimer&&clearTimeout(this.repositionTimer);let e=document.body.clientWidth;if(!t&&this.windowWidth===e)return;this.windowWidth=e,this.myDiv.style.opacity=0,this.myDiv.style.top=0,this.myDiv.style.left=0;let i=window.innerHeight,s=this.myDiv.offsetWidth,n=this.myDiv.offsetHeight,o=0,r=0;this.parent==document.body&&(o=window.pageYOffset);let a=o;e-s>0&&(r=(e-s)/2),i-n>0&&(a=o+(i-n)/2),this.myDiv.style.top=a+"px",r>3&&(this.myDiv.style.left=r+"px"),this.myDiv.style.opacity=1}}},4163:(t,e,i)=>{"use strict";i.r(e)},4354:(t,e,i)=>{"use strict";var s=function(){function t(){}return t.download=function(t,e,i){t.preventDefault();var s=document.createElement("a");s.href=e,s.setAttribute("target","_blank"),s.download=i,document.body.appendChild(s),s.click(),document.body.removeChild(s)},t}(),n=function(){function t(){}return t.click=function(t,e){t.preventDefault(),document.location.href=e},t}(),o=i(3417);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.A).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){s.download(t,o,r)},!0):i.addEventListener("click",function(t){n.click(t,o)},!0)};for(i=0;i<t.length;i++)r(i)})},5296:(t,e,i)=>{"use strict";function s(t){return"string"==typeof t}function n(t){return Array.isArray(t)}function o(t){return NodeList.prototype.isPrototypeOf(t)}i.d(e,{A:()=>r});class r{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.listeners=t}on(t,e,i){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];s(t)&&(t=[t]),o(e)||n(e)||(e=[e]),t.forEach(t=>{this.listeners[t]={closure:i,options:{capture:r,passive:a}};for(let i=0;i<e.length;i++)e[i].addEventListener(t,this.listeners[t].closure,this.listeners[t].options)})}off(t,e){s(t)&&(t=[t]),o(e)||n(e)||(e=[e]),t.forEach(t=>{for(let i=0;i<e.length;i++){let s=this.listeners[t];void 0!==s&&e[i].removeEventListener(t,s.closure,s.options)}})}destroy(){delete this.listeners}}}
1,5331:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});const s=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}()},5598:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var s=i(9259);class n{constructor(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=s.M.mergeObjects(this.options,t)}adjustImageURL(t,e){return t=(t=(t=(t=(t=(t=(t=t.replace(/=w(\d+)$/,"=w"+e)).replace(/=w(\d+)-nu$/,"=w"+e+"-nu")).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+"_")}getFlickrURL(t,e,i,s,n,o,r,a,l,h,c){let d,u,p,m,g,v=this.getMinSizes(a,l,h,c);if(v.width>v.height?(d=v.width,u=h):(d=v.height,u=c),p="o",u>=d)for(let t in this.options.flickrSizes)if(t>d){p=this.options.flickrSizes[t];break}switch("o"===p&&""===o&&(p="k"),"k"===p&&""===n&&(p="h"),"h"===p&&""===s&&(p="b"),p){case"o":m=o;break;case"h":m=s;break;case"k":m=n;break;default:m=i}return g="-"==p?"":"_"+p,"https://live.staticflickr.com/"+e+"/"+r+"_"+m+g+".jpg"}getSize(t,e,i){let s=this.options.availableSizes[0];for(let n=0;n<this.options.availableSizes.length;n++){let o,r,a=this.options.availableSizes[n];if(s>this.options.availableSizes[0])break;let l=n==this.options.availableSizes.length-1;i>=1?(o=a>t,r=a/i>e,(o&&r||l)&&(s=a)):(r=a>e,o=a*i>t,(o&&r||l)&&(s=a))}return s}getMinSizes(t,e,i,s){let n,o,r=i/s;return i>s?t>e?(o=t,n=t/r,n<e&&(n=e,o=e*r)):(n=e,o=e*r,o<t&&(o=t,n=e*r)):t>e?(o=t,n=t/r,n<e&&(n=e,o=e*r)):(n=e,o=e*r,o<t&&(o=t,n=t/r)),{width:Math.ceil(o),height:Math.ceil(n)}}}},8409:(t,e,i)=>{"use strict";function s(t,e,i){const s=document.createElement(e);return t&&(s.className=t),i&&i.appendChild(s),s}function n(t,e){return t.x=e.x,t.y=e.y,void 0!==e.id&&(t.id=e.id),t}function o(t){t.x=Math.round(t.x),t.y=Math.round(t.y)}function r(t,e){const i=Math.abs(t.x-e.x),s=Math.abs(t.y-e.y);return Math.sqrt(i*i+s*s)}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 h(t,e,i){let s=`translate3d(${t}px,${e||0}px,0)`;return void 0!==i&&(s+=` scale3d(${i},${i},1)`),s}function c(t,e,i,s){t.style.transform=h(e,i,s)}i.r(e),i.d(e,{default:()=>Ct});function d(t,e,i,s){t.style.transition=e?`${e} ${i}ms ${s||"cubic-bezier(.4,0,.22,1)"}`:"none"}function u(t,e,i){t.style.width="number"==typeof e?`${e}px`:e,t.style.height="number"==typeof i?`${i}px`:i}const p="idle",m="loading",g="loaded",v="error";function f(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}let y=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{y=!0}}))}catch(t){}class w{constructor(){this._pool=[]}add(t,e,i,s){this._toggleListener(t,e,i,s)}remove(t,e,i,s){this._toggleListener(t,e,i,s,!0)}removeAll(){this._pool.forEach(t=>{this._toggleListener(t.target,t.type,t.listener,t.passive,!0,!0)}),this._pool=[]}_toggleListener(t,e,i,s,n,o){if(!t)return;const r=n?"removeEventListener":"addEventListener";e.split(" ").forEach(e=>{if(e){o||(n?this._pool=this._pool.filter(s=>s.type!==e||s.listener!==i||s.target!==t):this._pool.push({target:t,type:e,listener:i,passive:s}));const a=!!y&&{passive:s||!1};t[r](e,i,a)}})}}function _(t,e){if(t.getViewportSizeFn){const i=t.getViewportSizeFn(t,e);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function b(t,e,i,s,n){let o=0;if(e.paddingFn)o=e.paddingFn(i,s,n)[t];else if(e.padding)o=e.padding[t];else{const i="padding"+t[0].toUpperCase()+t.slice(1);e[i]&&(o=e[i])}return Number(o)||0}function S(t,e,i,s){return{x:e.x-b("left",t,e,i,s)-b("right",t,e,i,s),y:e.y-b("top",t,e,i,s)-b("bottom",t,e,i,s)}}class C{constructor(t){this.slide=t,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}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,s=b("x"===t?"left":"top",e.options,e.viewportSize,this.slide.data,this.slide.index),n=this.slide.panAreaSize[t];this.center[t]=Math.round((n-i)/2)+s,this.max[t]=i>n?Math.round(n-i)+s:this.center[t],this.min[t]=i>n?s: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 x{constructor(t,e,i,s){this.pswp=s,this.options=t,this.itemData=e,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(t,e,i){const s={x:t,y:e};this.elementSize=s,this.panAreaSize=i;const n=i.x/s.x,o=i.y/s.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),this.elementSize&&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={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!i.opener.isOpen,this.zoomLevels=new x(i.options,t,e,i),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:e}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=s("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new C(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(!1),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,s=Math.round(this.height*e)||this.pswp.viewportSize.y;(this.sizeChanged(i,s)||t)&&this.content.setDisplayedSize(i,s)}sizeChanged(t,e){return(t!==this.prevDisplayedWidth||e!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=t,this.prevDisplayedHeight=e,!0)}getPlaceholderElement(){var t;return null===(t=this.content.placeholder)||void 0===t?void 0:t.element}
vendor: 15,585 bytes, line 1
1zoomTo(t,e,i,s){const{pswp:n}=this;if(!this.isZoomable()||n.mainScroll.isShifted())return;n.dispatch("beforeZoomTo",{destZoomLevel:t,centerPoint:e,transitionDuration:i}),n.animations.stopAllPan();const r=this.currZoomLevel;s||(t=l(t,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(t),this.pan.x=this.calculateZoomToPanOffset("x",e,r),this.pan.y=this.calculateZoomToPanOffset("y",e,r),o(this.pan);const a=()=>{this._setResolution(t),this.applyCurrentZoomPan()};i?n.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:a,duration:i,easing:n.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()),i||(i=this.zoomLevels.initial);const s=this.currZoomLevel/i;return this.bounds.correctPan(t,(this.pan[t]-e[t])*s+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 Boolean(this.width)&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return Boolean(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),n(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;n(this.panAreaSize,S(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 h(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={x:0,y:0}}start(){this.pswp.currSlide&&n(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:t,prevP1:e,dragAxis:i}=this.gestures,{currSlide:s}=this.pswp;if("y"===i&&this.pswp.options.closeOnVerticalDrag&&s&&s.currZoomLevel<=s.zoomLevels.fit&&!this.gestures.isMultitouch){const i=s.pan.y+(t.y-e.y);if(!this.pswp.dispatch("verticalDrag",{panY:i}).defaultPrevented){this._setPanWithFriction("y",i,.6);const t=1-Math.abs(this._getVerticalDragRatio(s.pan.y));this.pswp.applyBgOpacity(t),s.applyCurrentZoomPan()}}else{this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),s&&(o(s.pan),s.applyCurrentZoomPan()))}}end(){const{velocity:t}=this.gestures,{mainScroll:e,currSlide:i}=this.pswp;let s=0;if(this.pswp.animations.stopAll(),e.isShifted()){const i=(e.x-e.getCurrSlideX())/this.pswp.viewportSize.x;t.x<-.5&&i<0||t.x<.1&&i<-.5?(s=1,t.x=Math.min(t.x,0)):(t.x>.5&&i>0||t.x>-.1&&i>.5)&&(s=-1,t.x=Math.max(t.x,0)),e.moveIndexBy(s,!0,t.x)}i&&i.currZoomLevel>i.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(t){const{velocity:e}=this.gestures,{currSlide:i}=this.pswp;if(!i)return;const{pan:s,bounds:n}=i,o=s[t],r=this.pswp.bgOpacity<1&&"y"===t,a=o+function(t,e){return t*e/(1-e)}(e[t],.995);if(r){const t=this._getVerticalDragRatio(o),e=this._getVerticalDragRatio(a);if(t<0&&e<-.4||t>0&&e>.4)return void this.pswp.close()}const h=n.correctPan(t,a);if(o===h)return;const c=h===a?1:.82,d=this.pswp.bgOpacity,u=h-o;this.pswp.animations.startSpring({name:"panGesture"+t,isPan:!0,start:o,end:h,velocity:e[t],dampingRatio:c,onUpdate:e=>{if(r&&this.pswp.bgOpacity<1){const t=1-(h-e)/u;this.pswp.applyBgOpacity(l(d+(1-d)*t,0,1))}s[t]=Math.floor(e),i.applyCurrentZoomPan()}})}_panOrMoveMainScroll(t){const{p1:e,dragAxis:i,prevP1:s,isMultitouch:n}=this.gestures,{currSlide:o,mainScroll:r}=this.pswp,a=e[t]-s[t],l=r.x+a;if(!a||!o)return!1;if("x"===t&&!o.isPannable()&&!n)return r.moveTo(l,!0),!0;const{bounds:h}=o,c=o.pan[t]+a;if(this.pswp.options.allowPanToNext&&"x"===i&&"x"===t&&!n){const e=r.getCurrSlideX(),i=r.x-e,s=a>0,n=!s;if(c>h.min[t]&&s){if(h.min[t]<=this.startPan[t])return r.moveTo(l,!0),!0;this._setPanWithFriction(t,c)}else if(c<h.max[t]&&n){if(this.startPan[t]<=h.max[t])return r.moveTo(l,!0),!0;this._setPanWithFriction(t,c)}else if(0!==i){if(i>0)return r.moveTo(Math.max(l,e),!0),!0;if(i<0)return r.moveTo(Math.min(l,e),!0),!0}else this._setPanWithFriction(t,c)}else"y"===t&&(r.isShifted()||h.min.y===h.max.y)||this._setPanWithFriction(t,c);return!1}_getVerticalDragRatio(t){var e,i;return(t-(null!==(e=null===(i=this.pswp.currSlide)||void 0===i?void 0:i.bounds.center.y)&&void 0!==e?e:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(t,e,i){const{currSlide:s}=this.pswp;if(!s)return;const{pan:n,bounds:o}=s;if(o.correctPan(t,e)!==e||i){const s=Math.round(e-n[t]);n[t]+=s*(i||.35)}else n[t]=e}}function A(t,e,i){return t.x=(e.x+i.x)/2,t.y=(e.y+i.y)/2,t}class L{constructor(t){this.gestures=t,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:t}=this.gestures.pswp;t&&(this._startZoomLevel=t.currZoomLevel,n(this._startPan,t.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:t,startP1:e,p2:i,startP2:s,pswp:n}=this.gestures,{currSlide:o}=n;if(!o)return;const a=o.zoomLevels.min,l=o.zoomLevels.max;if(!o.isZoomable()||n.mainScroll.isShifted())return;A(this._startZoomPoint,e,s),A(this._zoomPoint,t,i);let h=1/r(e,s)*r(t,i)*this._startZoomLevel;if(h>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),h<a)if(n.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=o.zoomLevels.initial){const t=1-(a-h)/(a/1.2);n.dispatch("pinchClose",{bgOpacity:t}).defaultPrevented||n.applyBgOpacity(t)}else h=a-.15*(a-h);else h>l&&(h=l+.05*(h-l));o.pan.x=this._calculatePanForZoomLevel("x",h),o.pan.y=this._calculatePanForZoomLevel("y",h),o.setZoomLevel(h),o.applyCurrentZoomPan()}end(){const{pswp:t}=this.gestures,{currSlide:e}=t;(!e||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.gestures,{currSlide:i}=e;if(null==i||!i.isZoomable())return;0===this._zoomPoint.x&&(t=!0);const s=i.currZoomLevel;let o,r=!0;s<i.zoomLevels.initial?o=i.zoomLevels.initial:s>i.zoomLevels.max?o=i.zoomLevels.max:(r=!1,o=s);const h=e.bgOpacity,c=e.bgOpacity<1,d=n({x:0,y:0},i.pan);let u=n({x:0,y:0},d);t&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=s,n(this._startPan,d)),r&&(u={x:this._calculatePanForZoomLevel("x",o),y:this._calculatePanForZoomLevel("y",o)}),i.setZoomLevel(o),u={x:i.bounds.correctPan("x",u.x),y:i.bounds.correctPan("y",u.y)},i.setZoomLevel(s);const p=!a(u,d);if(!p&&!r&&!c)return i._setResolution(o),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||r){if(p&&(i.pan.x=d.x+(u.x-d.x)*t,i.pan.y=d.y+(u.y-d.y)*t),r){const e=s+(o-s)*t;i.setZoomLevel(e)}i.applyCurrentZoomPan()}c&&e.bgOpacity<1&&e.applyBgOpacity(l(h+(1-h)*t,0,1))},onComplete:()=>{i._setResolution(o),i.applyCurrentZoomPan()}})}}function I(t){return!!t.target.closest(".pswp__container")}class T{constructor(t){this.gestures=t}click(t,e){const i=e.target.classList,s=i.contains("pswp__img"),n=i.contains("pswp__item")||i.contains("pswp__zoom-wrap");s?this._doClickOrTapAction("imageClick",t,e):n&&this._doClickOrTapAction("bgClick",t,e)}tap(t,e){I(e)&&this._doClickOrTapAction("tap",t,e)}doubleTap(t,e){I(e)&&this._doClickOrTapAction("doubleTap",t,e)}_doClickOrTapAction(t,e,i){var s;const{pswp:n}=this.gestures,{currSlide:o}=n,r=t+"Action",a=n.options[r];if(!n.dispatch(r,{point:e,originalEvent:i}).defaultPrevented)if("function"!=typeof a)switch(a){case"close":case"next":n[a]();break;case"zoom":null==o||o.toggleZoom(e);break;case"zoom-or-close":null!=o&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(e):n.options.clickToCloseNonZoomable&&n.close();break;case"toggle-controls":null===(s=this.gestures.pswp.element)||void 0===s||s.classList.toggle("pswp--ui-visible")}else a.call(n,e,i)}}class k{constructor(t){this.pswp=t,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(t.options.allowPanToNext=!1),this.drag=new P(this),this.zoomLevels=new L(this),this.tapHandler=new T(this),t.on("bindEvents",()=>{t.events.add(t.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),t.scrollWrap&&(t.scrollWrap.ontouchmove=()=>{},t.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(t,e,i,s){const{pswp:n}=this,{events:o}=n,r=s?t+s:"";o.add(n.scrollWrap,t+e,this.onPointerDown.bind(this)),o.add(window,t+"move",this.onPointerMove.bind(this)),o.add(window,t+i,this.onPointerUp.bind(this)),r&&o.add(n.scrollWrap,r,this.onPointerUp.bind(this))}onPointerDown(t){const e="mousedown"===t.type||"mouse"===t.pointerType;if(e&&t.button>0)return;const{pswp:i}=this;i.opener.isOpen?i.dispatch("pointerDown",{originalEvent:t}).defaultPrevented||(e&&(i.mouseDetected(),this._preventPointerEventBehaviour(t,"down")),i.animations.stopAll(),this._updatePoints(t,"down"),1===this._numActivePoints&&(this.dragAxis=null,n(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):t.preventDefault()}onPointerMove(t){this._preventPointerEventBehaviour(t,"move"),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,n(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._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,n(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(),r(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,t)):(n(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,e){this.pswp.applyFilters("preventPointerEvent",!0,t,e)&&t.preventDefault()}_updatePoints(t,e){if(this._pointerEventEnabled){const i=t,s=this._ongoingPointers.findIndex(t=>t.id===i.pointerId);"up"===e&&s>-1?this._ongoingPointers.splice(s,1):"down"===e&&-1===s?this._ongoingPointers.push(this._convertEventPosToPoint(i,{x:0,y:0})):s>-1&&this._convertEventPosToPoint(i,this._ongoingPointers[s]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&n(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&n(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(){n(this.prevP1,this.p1),n(this.prevP2,this.p2)}_updateStartPoints(){n(this.startP1,this.p1),n(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 O{constructor(t){this.pswp=t,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(t){const{pswp:e}=this,i=Math.round(e.viewportSize.x+e.viewportSize.x*e.options.spacing),s=i!==this.slideWidth;s&&(this.slideWidth=i,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEac
vendor: 7,208 bytes, line 1
1h((e,i)=>{s&&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=s("pswp__item","div",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:s}=this;let n=s.potentialIndex+t;const o=s.getNumItems();if(s.canLoop()){n=s.getLoopedIndex(n);const e=(t+o)%o;t=e<=o/2?e:e-o}else n<0?n=0:n>=o&&(n=o-1),t=n-s.potentialIndex;s.potentialIndex=n,this._currPositionIndex-=t,s.animations.stopMainScroll();const r=this.getCurrSlideX();if(e){s.animations.startSpring({isMainScroll:!0,start:this.x,end:r,velocity:i||0,naturalFrequency:30,dampingRatio:1,onUpdate:t=>{this.moveTo(t)},onComplete:()=>{this.updateCurrItem(),s.appendHeavy()}});let t=s.potentialIndex-s.currIndex;if(s.canLoop()){const e=(t+o)%o;t=e<=o/2?e:e-o}Math.abs(t)>1&&this.updateCurrItem()}else this.moveTo(r),this.updateCurrItem();return Boolean(t)}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var t;const{pswp:e}=this,i=this._prevPositionIndex-this._currPositionIndex;if(!i)return;this._prevPositionIndex=this._currPositionIndex,e.currIndex=e.potentialIndex;let s,n=Math.abs(i);n>=3&&(this._containerShiftIndex+=i+(i>0?-3:3),n=3,this.itemHolders.forEach(t=>{var e;null===(e=t.slide)||void 0===e||e.destroy(),t.slide=void 0}));for(let t=0;t<n;t++)i>0?(s=this.itemHolders.shift(),s&&(this.itemHolders[2]=s,this._containerShiftIndex++,c(s.el,(this._containerShiftIndex+2)*this.slideWidth),e.setContent(s,e.currIndex-n+t+2))):(s=this.itemHolders.pop(),s&&(this.itemHolders.unshift(s),this._containerShiftIndex--,c(s.el,this._containerShiftIndex*this.slideWidth),e.setContent(s,e.currIndex+n-t-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),e.animations.stopAllPan(),this.itemHolders.forEach((t,e)=>{t.slide&&t.slide.setIsActive(1===e)}),e.currSlide=null===(t=this.itemHolders[1])||void 0===t?void 0:t.slide,e.contentLoader.updateLazy(i),e.currSlide&&e.currSlide.applyCurrentZoomPan(),e.dispatch("change")}moveTo(t,e){if(!this.pswp.canLoop()&&e){let e=(this.slideWidth*this._currPositionIndex-t)/this.slideWidth;e+=this.pswp.currIndex;const i=Math.round(t-this.x);(e<0&&i>0||e>=this.pswp.getNumItems()-1&&i<0)&&(t=this.x+.35*i)}this.x=t,this.pswp.container&&c(this.pswp.container,t),this.pswp.dispatch("moveMainScroll",{x:t,dragging:null!=e&&e})}}const z={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},H=(t,e)=>e?t:z[t];class M{constructor(t){this.pswp=t,this._wasFocused=!1,t.on("bindEvents",()=>{t.options.trapFocus&&(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&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(t){const{pswp:e}=this;if(e.dispatch("keydown",{originalEvent:t}).defaultPrevented)return;if(function(t){return"button"in t&&1===t.button||t.ctrlKey||t.metaKey||t.altKey||t.shiftKey}(t))return;let i,s,n=!1;const o="key"in t;switch(o?t.key:t.keyCode){case H("Escape",o):e.options.escKey&&(i="close");break;case H("z",o):i="toggleZoom";break;case H("ArrowLeft",o):s="x";break;case H("ArrowUp",o):s="y";break;case H("ArrowRight",o):s="x",n=!0;break;case H("ArrowDown",o):n=!0,s="y";break;case H("Tab",o):this._focusRoot()}if(s){t.preventDefault();const{currSlide:o}=e;e.options.arrowKeys&&"x"===s&&e.getNumItems()>1?i=n?"next":"prev":o&&o.currZoomLevel>o.zoomLevels.fit&&(o.pan[s]+=n?-80:80,o.panTo(o.pan.x,o.pan.y))}i&&(t.preventDefault(),e[i]())}_onFocusIn(t){const{template:e}=this.pswp;e&&document!==t.target&&e!==t.target&&!e.contains(t.target)&&e.focus()}}const D="cubic-bezier(.4,0,.22,1)";class R{constructor(t){var e;this.props=t;const{target:i,onComplete:s,transform:n,onFinish:o=()=>{},duration:r=333,easing:a=D}=t;this.onFinish=o;const l=n?"transform":"opacity",h=null!==(e=t[l])&&void 0!==e?e:"";this._target=i,this._onComplete=s,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{d(i,l,r,a),this._helperTimeout=setTimeout(()=>{i.addEventListener("transitionend",this._onTransitionEnd,!1),i.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},r+500),i.style[l]=h},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),d(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}class B{constructor(t,e,i){this.velocity=1e3*t,this._dampingRatio=e||.75,this._naturalFrequency=i||12,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(t,e){let i,s=0;e/=1e3;const n=Math.E**(-this._dampingRatio*this._naturalFrequency*e);if(1===this._dampingRatio)i=this.velocity+this._naturalFrequency*t,s=(t+i*e)*n,this.velocity=s*-this._naturalFrequency+i*n;else if(this._dampingRatio<1){i=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*t+this.velocity);const o=Math.cos(this._dampedFrequency*e),r=Math.sin(this._dampedFrequency*e);s=n*(t*o+i*r),this.velocity=s*-this._naturalFrequency*this._dampingRatio+n*(-this._dampedFrequency*t*r+this._dampedFrequency*i*o)}return s}}class F{constructor(t){this.props=t,this._raf=0;const{start:e,end:i,velocity:s,onUpdate:n,onComplete:o,onFinish:r=()=>{},dampingRatio:a,naturalFrequency:l}=t;this.onFinish=r;const h=new B(s,a,l);let c=Date.now(),d=e-i;const u=()=>{this._raf&&(d=h.easeFrame(d,Date.now()-c),Math.abs(d)<1&&Math.abs(h.velocity)<50?(n(i),o&&o(),this.onFinish()):(c=Date.now(),n(d+i),this._raf=requestAnimationFrame(u)))};this._raf=requestAnimationFrame(u)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class N{constructor(){this.activeAnimations=[]}startSpring(t){this._start(t,!0)}startTransition(t){this._start(t)}_start(t,e){const i=e?new F(t):new R(t);return 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=>
vendor: 5,572 bytes, line 1
1!t.props.isMainScroll||(t.destroy(),!1))}isPanRunning(){return this.activeAnimations.some(t=>t.props.isPan)}}class Z{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:s}=t;if(e&&!this.pswp.dispatch("wheel",{originalEvent:t}).defaultPrevented)if(t.ctrlKey||this.pswp.options.wheelToZoom){if(e.isZoomable()){let i=-s;1===t.deltaMode?i*=.05:i*=t.deltaMode?1:.002,i=2**i;const n=e.currZoomLevel*i;e.zoomTo(n,{x:t.clientX,y:t.clientY})}}else e.isPannable()&&(1===t.deltaMode&&(i*=18,s*=18),e.panTo(e.pan.x-i,e.pan.y-s))}}class q{constructor(t,e){var i;const n=e.name||e.className;let o=e.html;if(!1===t.options[n])return;"string"==typeof t.options[n+"SVG"]&&(o=t.options[n+"SVG"]),t.dispatch("uiElementCreate",{data:e});let r="";e.isButton?(r+="pswp__button ",r+=e.className||`pswp__button--${e.name}`):r+=e.className||`pswp__${e.name}`;let a=e.isButton?e.tagName||"button":e.tagName||"div";a=a.toLowerCase();const l=s(r,a);if(e.isButton){"button"===a&&(l.type="button");let{title:i}=e;const{ariaLabel:s}=e;"string"==typeof t.options[n+"Title"]&&(i=t.options[n+"Title"]),i&&(l.title=i);const o=s||i;o&&l.setAttribute("aria-label",o)}l.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(l,t),e.onClick&&(l.onclick=i=>{"string"==typeof e.onClick?t[e.onClick]():"function"==typeof e.onClick&&e.onClick(i,l,t)});const h=e.appendTo||"bar";let c=t.element;"bar"===h?(t.topBar||(t.topBar=s("pswp__top-bar pswp__hide-on-close","div",t.scrollWrap)),c=t.topBar):(l.classList.add("pswp__hide-on-close"),"wrapper"===h&&(c=t.scrollWrap)),null===(i=c)||void 0===i||i.appendChild(t.applyFilters("uiElement",l,e))}}function U(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 W={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:U},j={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)=>{U(t,e,!0)}},G={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"},V={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"},K={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,s=null;const n=e=>{var s,n;i!==e&&(i=e,s="active",n=e,t.classList.toggle("pswp__preloader--"+s,n))},o=()=>{var t;if(null===(t=e.currSlide)||void 0===t||!t.content.isLoading())return n(!1),void(s&&(clearTimeout(s),s=null));s||(s=setTimeout(()=>{var t;n(Boolean(null===(t=e.currSlide)||void 0===t?void 0:t.content.isLoading())),s=null},e.options.preloaderDelay))};e.on("change",o),e.on("loadComplete",t=>{e.currSlide===t.slide&&o()}),e.ui&&(e.ui.updatePreloaderVisibility=o)}},Y={name:"counter",order:5,onInit:(t,e)=>{e.on("change",()=>{t.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})}};function X(t,e){t.classList.toggle("pswp--zoomed-in",e)}class J{constructor(t){this.pswp=t,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:t}=this;this.isRegistered=!1,this.uiElementsData=[G,W,j,V,K,Y],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",()=>{var e;null===(e=t.element)||void 0===e||e.classList.toggle("pswp--one-slide",1===t.getNumItems())}),t.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(t){this.isRegistered?this.items.push(new q(this.pswp,t)):this.uiElementsData.push(t)}_onZoomPanUpdate(){const{template:t,currSlide:e,options:i}=this.pswp;if(this.pswp.opener.isClosing||!t||!e)return;let{currZoomLevel:s}=e;if(this.pswp.opener.isOpen||(s=e.zoomLevels.initial),s===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=s;const n=e.zoomLevels.initial-e.zoomLevels.secondary;if(Math.abs(n)<.01||!e.isZoomable())return X(t,!1),void t.classList.remove("pswp--zoom-allowed");t.classList.add("pswp--zoom-allowed");X(t,(s===e.zoomLevels.initial?e.zoomLevels.secondary:e.zoomLevels.initial)<=s),"zoom"!==i.imageClickAction&&"zoom-or-close"!==i.imageClickAction||t.classList.add("pswp--cl
1ick-to-zoom")}}class ${constructor(t,e){this.type=t,this.defaultPrevented=!1,e&&Object.assign(this,e)}preventDefault(){this.defaultPrevented=!0}}class Q{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(t,e,i=100){var s,n,o;this._filters[t]||(this._filters[t]=[]),null===(s=this._filters[t])||void 0===s||s.push({fn:e,priority:i}),null===(n=this._filters[t])||void 0===n||n.sort((t,e)=>t.priority-e.priority),null===(o=this.pswp)||void 0===o||o.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){var i;return null===(i=this._filters[t])||void 0===i||i.forEach(t=>{e[0]=t.fn.apply(this,e)}),e[0]}on(t,e){var i,s;this._listeners[t]||(this._listeners[t]=[]),null===(i=this._listeners[t])||void 0===i||i.push(e),null===(s=this.pswp)||void 0===s||s.on(t,e)}off(t,e){var i;this._listeners[t]&&(this._listeners[t]=this._listeners[t].filter(t=>e!==t)),null===(i=this.pswp)||void 0===i||i.off(t,e)}dispatch(t,e){var i;if(this.pswp)return this.pswp.dispatch(t,e);const s=new $(t,e);return null===(i=this._listeners[t])||void 0===i||i.forEach(t=>{t.call(this,s)}),s}}class tt{constructor(t,e){if(this.element=s("pswp__img pswp__img--placeholder",t?"img":"div",e),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(t,e){this.element&&("IMG"===this.element.tagName?(u(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=h(0,0,t/250)):u(this.element,t,e))}destroy(){var t;null!==(t=this.element)&&void 0!==t&&t.parentNode&&this.element.remove(),this.element=null}}class et{constructor(t,e,i){this.instance=e,this.data=t,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=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.isDecoding=!1,this.state=p,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=void 0)},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 tt(t,this.slide.container)}this.element&&!e||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=s("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=s("pswp__content","div"),this.element.innerHTML=this.data.html||""),e&&this.slide&&this.slide.updateContentSize(!0))}loadImage(t){var e,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:t}).defaultPrevented)return;const s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=null!==(e=this.data.src)&&void 0!==e?e:"",s.alt=null!==(i=this.data.alt)&&void 0!==i?i:"",this.state=m,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(t){this.slide=t,this.hasSlide=!0,this.instance=t.pswp}onLoaded(){this.state=g,this.slide&&this.element&&(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!==g&&this.state!==v||this.removePlaceholder())}onError(){this.state=v,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===m,this)}isError(){return this.state===v}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&&(u(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!==v,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;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=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,e;let i=s("pswp__error-msg","div");i.innerText=null!==(t=null===(e=this.instance.options)||void 0===e?void 0:e.errorMsg)&&void 0!==t?t:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=s("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===v)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||f())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!f()?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!==g&&this.state!==v||this.removePlaceholder()))}}function it(t,e,i){const s=e.createContentFromData(t,i);let n;const{options:o}=e;if(o){let r;n=new x(o,t,-1),r=e.pswp?e.pswp.viewportSize:_(o,e);const a=S(o,r,t,i);n.update(s.width,s.height,a)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}class st{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,s=void 0===t||t>=0;let n;for(n=0;n<=i[1];n++)this.loadSlideByIndex(e.currIndex+(s?n:-n));for(n=1;n<=i[0];n++)this.loadSlideByIndex(e.currIndex+(s?-n:n))}loadSlideByIndex(t){const e=this.pswp.getLoopedIndex(t);let i=this.getContentByIndex(e);i||(i=function(t,e){const i=e.getItemData(t);
vendor: 7,632 bytes, line 1
1if(!e.dispatch("lazyLoadSlide",{index:t,itemData:i}).defaultPrevented)return it(i,e,t)}(e,this.pswp),i&&this.addToCache(i))}getContentBySlide(t){let e=this.getContentByIndex(t.index);return e||(e=this.pswp.createContentFromData(t.data,t.index),this.addToCache(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);if(-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=[]}}class nt extends Q{getNumItems(){var t;let e=0;const i=null===(t=this.options)||void 0===t?void 0:t.dataSource;i&&"length"in i?e=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(e=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:e});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(t,e){return new et(t,this,e)}getItemData(t){var e;const i=null===(e=this.options)||void 0===e?void 0:e.dataSource;let s={};Array.isArray(i)?s=i[t]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[t]);let n=s;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){var e,i;return null!==(e=this.options)&&void 0!==e&&e.children||null!==(i=this.options)&&void 0!==i&&i.childSelector?function(t,e,i=document){let s=[];if(t instanceof Element)s=[t];else if(t instanceof NodeList||Array.isArray(t))s=Array.from(t);else{const n="string"==typeof t?t:e;n&&(s=Array.from(i.querySelectorAll(n)))}return s}(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=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,e.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,e.w=e.width,e.h=e.height,i.dataset.pswpType&&(e.type=i.dataset.pswpType);const n=t.querySelector("img");var s;if(n)e.msrc=n.currentSrc||n.src,e.alt=null!==(s=n.getAttribute("alt"))&&void 0!==s?s:"";(i.dataset.pswpCropped||i.dataset.cropped)&&(e.thumbCropped=!0)}return this.applyFilters("domItemData",e,t,i)}lazyLoadData(t,e){return it(t,this,e)}}const ot=.003;class rt{constructor(t){this.pswp=t,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),t.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const t=this.pswp.currSlide;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)}_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;var s,n;("fade"===i.showHideAnimationType?(i.showHideOpacity=!0,this._thumbBounds=void 0):"none"===i.showHideAnimationType?(i.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&t._initialThumbBounds?this._thumbBounds=t._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=null==e?void 0:e.getPlaceholderElement(),t.animations.stopAll(),this._useAnimation=Boolean(this._duration&&this._duration>50),this._animateZoom=Boolean(this._thumbBounds)&&(null==e?void 0:e.content.usePlaceholder())&&(!this.isClosing||!t.mainScroll.isShifted()),this._animateZoom)?this._animateRootOpacity=null!==(s=i.showHideOpacity)&&void 0!==s&&s:(this._animateRootOpacity=!0,this.isOpening&&e&&(e.zoomAndPanToInitial(),e.applyCurrentZoomPan()));if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>ot,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&&(t.element.style.opacity=String(ot)),t.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=null===(n=this.pswp.currSlide)||void 0===n?void 0:n.holderElement,t.container&&(t.container.style.overflow="hidden",t.container.style.width=t.viewportSize.x+"px")):this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(t.element&&(t.element.style.opacity=String(ot)),t.applyBgOpacity(1)):(this._animateBgOpacity&&t.bg&&(t.bg.style.opacity=String(ot)),t.element&&(t.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(ot)))):this.isClosing&&(t.mainScroll.itemHolders[0]&&(t.mainScroll.itemHolders[0].el.style.display="none"),t.mainScroll.itemHolders[2]&&(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 s;(s=this._placeholder,"decode"in s?s.decode().catch(()=>{}):s.complete?Promise.resolve(s):new Promise((t,e)=>{s.onload=()=>t(s),s.onerror=e})).finally(()=>{e=!0,i||t(!0)}),setTimeout(()=>{i=!1,e&&t(!0)},50),setTimeout(t,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var t,e;null===(t=this.pswp.element)||void 0===t||t.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),null===(e=this.pswp.element)||void 0===e||e.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:t}=this;if(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();else if(this.isOpen){var e;this._animateZoom&&t.container&&(t.container.style.overflow="visible",t.container.style.width="100%"),null===(e=t.currSlide)||void 0===e||e.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:t}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,
10,0)"),this._animateTo(this._cropContainer2,"transform","none")),t.currSlide&&(t.currSlide.zoomAndPanToInitial(),this._animateTo(t.currSlide.container,"transform",t.currSlide.getCurrentTransform()))),this._animateBgOpacity&&t.bg&&this._animateTo(t.bg,"opacity",String(t.options.bgOpacity)),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","1")}_animateToClosedState(){const{pswp:t}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&t.bgOpacity>.01&&t.bg&&this._animateTo(t.bg,"opacity","0"),this._animateRootOpacity&&t.element&&this._animateTo(t.element,"opacity","0")}_setClosedStateZoomPan(t){if(!this._thumbBounds)return;const{pswp:e}=this,{innerRect:i}=this._thumbBounds,{currSlide:s,viewportSize:o}=e;if(this._croppedZoom&&i&&this._cropContainer1&&this._cropContainer2){const e=-o.x+(this._thumbBounds.x-i.x)+i.w,s=-o.y+(this._thumbBounds.y-i.y)+i.h,n=o.x-i.w,r=o.y-i.h;t?(this._animateTo(this._cropContainer1,"transform",h(e,s)),this._animateTo(this._cropContainer2,"transform",h(n,r))):(c(this._cropContainer1,e,s),c(this._cropContainer2,n,r))}s&&(n(s.pan,i||this._thumbBounds),s.currZoomLevel=this._thumbBounds.w/s.width,t?this._animateTo(s.container,"transform",s.getCurrentTransform()):s.applyCurrentZoomPan())}_animateTo(t,e,i){if(!this._duration)return void(t.style[e]=i);const{animations:s}=this.pswp,n={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{s.activeAnimations.length||this._onAnimationComplete()},target:t};n[e]=i,s.startTransition(n)}}const at={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!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 lt extends nt{constructor(t){super(),this.options=this._prepareOptions(t||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new w,this.animations=new N,this.mainScroll=new O(this),this.gestures=new k(this),this.opener=new rt(this),this.keyboard=new M(this),this.contentLoader=new st(this)}init(){if(this.isOpen||this.isDestroying)return!1;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&&(this.element.className+=" "+t),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new Z(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",()=>{const{itemHolders:t}=this.mainScroll;t[0]&&(t[0].el.style.display="block",this.setContent(t[0],this.currIndex-1)),t[2]&&(t[2].el.style.display="block",this.setContent(t[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.mainScroll.itemHolders[1]&&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)}
1appendHeavy(){this.mainScroll.itemHolders.forEach(t=>{var e;null===(e=t.slide)||void 0===e||e.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){var e;null===(e=this.currSlide)||void 0===e||e.zoomTo(...t)}toggleZoom(){var t;null===(t=this.currSlide)||void 0===t||t.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var t;if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),null===(t=this.element)||void 0===t||t.remove(),this.mainScroll.itemHolders.forEach(t=>{var e;null===(e=t.slide)||void 0===e||e.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(t){this.contentLoader.removeByIndex(t),this.mainScroll.itemHolders.forEach((e,i)=>{var s,n;let o=(null!==(s=null===(n=this.currSlide)||void 0===n?void 0:n.index)&&void 0!==s?s:0)-1+i;var r;(this.canLoop()&&(o=this.getLoopedIndex(o)),o===t)&&(this.setContent(e,t,!0),1===i&&(this.currSlide=e.slide,null===(r=e.slide)||void 0===r||r.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=void 0}if(!this.canLoop()&&(e<0||e>=this.getNumItems()))return;const s=this.getItemData(e);t.slide=new E(s,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=_(this.options,this);!t&&a(e,this._prevViewportSize)||(n(this._prevViewportSize,e),this.dispatch("beforeResize"),n(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&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){var t;this.hasMouse||(this.hasMouse=!0,null===(t=this.element)||void 0===t||t.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=s("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=s("pswp__bg","div",this.element),this.scrollWrap=s("pswp__scroll-wrap","section",this.element),this.container=s("pswp__container","div",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 J(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(t,e,i){const s=i.dispatch("thumbBounds",{index:t,itemData:e,instance:i});if(s.thumbBounds)return s.thumbBounds;const{element:n}=e;let o,r;if(n&&!1!==i.options.thumbSelector){const t=i.options.thumbSelector||"img";r=n.matches(t)?n:n.querySelector(t)}return r=i.applyFilters("thumbEl",r,e,t),r&&(o=e.thumbCropped?function(t,e,i){const s=t.getBoundingClientRect(),n=s.width/e,o=s.height/i,r=n>o?n:o,a=(s.width-e*r)/2,l=(s.height-i*r)/2,h={x:s.left+a,y:s.top+l,w:e*r};return h.innerRect={w:s.width,h:s.height,x:a,y:l},h}(r,e.width||e.w||0,e.height||e.h||0):function(t){const e=t.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}(r)),i.applyFilters("thumbBounds",o,e,t)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(t){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(t.showHideAnimationType="none",t.zoomAnimationDuration=0),{...at,...t}}}const ht={videoAttributes:{controls:"",playsinline:"",preload:"auto"},autoplay:!0,preventDragOffset:40};function ct(t){return t&&t.data&&"video"===t.data.type}const dt=class{constructor(t,e){this.options=e,this.initLightboxEvents(t),t.on("init",()=>{this.initPswpEvents(t)})}initLightboxEvents(t){t.on("contentLoad",this.onContentLoad.bind(this)),t.on("contentDestroy",this.onContentDestroy.bind(this)),t.on("contentActivate",this.onContentActivate.bind(this)),t.on("contentDeactivate",this.onContentDeactivate.bind(this)),t.on("contentAppend",this.onContentAppend.bind(this)),t.on("contentResize",this.onContentResize.bind(this)),t.addFilter("isKeepingPlaceholder",this.isKeepingPlaceholder.bind(this)),t.addFilter("isContentZoomable",this.isContentZoomable.bind(this)),t.addFilter("useContentPlaceholder",this.useContentPlaceholder.bind(this)),t.addFilter("domItemData",(t,e,i)=>("video"===t.type&&i&&(i.dataset.pswpVideoSources?t.videoSources=JSON.parse(i.dataset.pswpVideoSources):i.dataset.pswpVideoSrc?t.videoSrc=i.dataset.pswpVideoSrc:t.videoSrc=i.href),t))}initPswpEvents(t){t.on("pointerDown",e=>{const i=t.currSlide;if(ct(i)&&this.options.preventDragOffset){const s=e.originalEvent;if("pointerdown"===s.type){const n=Math.ceil(i.height*i.currZoomLevel)+i.bounds.center.y,o=s.pageY-t.offset.y;o>n-this.options.preventDragOffset&&o<n&&e.preventDefault()}}}),t.on("appendHeavy",t=>{ct(t.slide)&&!t.slide.isActive&&t.preventDefault()}),t.on("close",()=>{ct(t.currSlide.content)&&(t.options.showHideAnimationType&&"zoom"!==t.options.showHideAnimationType||(t.options.showHideAnimationType="fade"),this.pauseVideo(t.currSlide.content))})}onContentDestroy(t){let{content:e}=t;ct(e)&&e._videoPosterImg&&(e._videoPosterImg.onload=e._videoPosterImg.onerror=null,e._videoPosterImg=null)}onContentResize(t){if(ct(t.content)){t.preventDefault();const e=t.width,i=t.height,s=t.content;if(s.element&&(s.element.style.width=e+"px",s.element.style.height=i+"px"),s.slide&&s.slide.placeholder){const t=s.slide.placeholder.element.style;
1t.transform="none",t.width=e+"px",t.height=i+"px"}}}isKeepingPlaceholder(t,e){return!ct(e)&&t}isContentZoomable(t,e){return!ct(e)&&t}onContentActivate(t){let{content:e}=t;ct(e)&&this.options.autoplay&&this.playVideo(e)}onContentDeactivate(t){let{content:e}=t;ct(e)&&this.pauseVideo(e)}onContentAppend(t){ct(t.content)&&(t.preventDefault(),t.content.isAttached=!0,t.content.appendImage())}onContentLoad(t){const e=t.content;if(ct(t.content)&&(t.preventDefault(),!e.element)){if(e.state="loading",e.type="video",e.element=document.createElement("video"),this.options.videoAttributes)for(let t in this.options.videoAttributes)e.element.setAttribute(t,this.options.videoAttributes[t]||"");e.data.msrc&&e.element.setAttribute("poster",e.data.msrc),this.preloadVideoPoster(e,e.data.msrc),e.element.style.position="absolute",e.element.style.left=0,e.element.style.top=0,e.data.videoSources?e.data.videoSources.forEach(t=>{let i=document.createElement("source");i.src=t.src,i.type=t.type,e.element.appendChild(i)}):e.data.videoSrc&&(e.element.src=e.data.videoSrc)}}preloadVideoPoster(t,e){!t._videoPosterImg&&e&&(t._videoPosterImg=new Image,t._videoPosterImg.src=e,t._videoPosterImg.complete?t.onLoaded():t._videoPosterImg.onload=t._videoPosterImg.onerror=()=>{t.onLoaded()})}playVideo(t){t.element&&t.element.play()}pauseVideo(t){t.element&&t.element.pause()}useContentPlaceholder(t,e){return!!ct(e)||t}};const ut=class{constructor(t,e){new dt(t,{...ht,...e})}};var pt=i(9259),mt=i(5331),gt=i(3417);class vt{constructor(t){window.EventGalleryLightboxConfiguration&&window.EventGalleryLightboxConfiguration.doUseSlideshow&&(this._photoSwipe=t,this._SlideShow_Running=!1,this._currentTimer=null,this._SlideShow_Delay=window?.EventGalleryLightboxConfiguration?.slideshowSpeed||2e3,this._SlideShow_Button=null,this._photoSwipe.ui.registerElement({name:"playpause-button",order:9,isButton:!0,html:"",onInit:t=>{this._SlideShow_Button=t,this._adjustNavigation()},onClick:(t,e)=>this.toggleSlideShowState()}),this._photoSwipe.on("change",()=>{this._planNextSwitch(!1)}),this._photoSwipe.on("destroy",()=>this._photoSwipeGallery=null),this._photoSwipe.on("keydown",t=>{t.originalEvent.target!==this._SlideShow_Button&&this._stopSlideshow()}),this._photoSwipe.on("pointerDown",t=>{t.originalEvent.target!==this._SlideShow_Button&&this._stopSlideshow()}),window.EventGalleryLightboxConfiguration.doUseAutoplay&&this.toggleSlideShowState())}setDelay(t){this._SlideShow_Delay=t}toggleSlideShowState(){this._SlideShow_Running?this._stopSlideshow():this._startSlideshow()}_stopSlideshow(){this._SlideShow_Running=!1,this._adjustNavigation()}_startSlideshow(){this._SlideShow_Running=!0,this._planNextSwitch(!0),this._adjustNavigation()}_adjustNavigation(){this._SlideShow_Button&&(this._SlideShow_Button.classList.remove(this._SlideShow_Running?"play":"pause"),this._SlideShow_Button.classList.add(this._SlideShow_Running?"pause":"play"))}_planNextSwitch(t){clearTimeout(this._currentTimer),this._currentTimer=setTimeout(()=>this._nextSlide(),t?this._SlideShow_Delay/2:this._SlideShow_Delay)}_nextSlide(){null!==this._photoSwipe&&this._SlideShow_Running&&this._photoSwipe.next()}}var ft=i(8787);function yt(t,e){return t&&(e(t)?t:yt(t.parentNode,e))}function wt(t){let e,i,s,n,o,r,a;if(1!==t.nodeType)return null;if(i=t.getElementsByTagName("IMG")[0],void 0===i)return null;if(s=t.getAttribute("data-height"),n=t.getAttribute("data-width"),o=t.getAttribute("data-pid"),r=t.getAttribute("data-gid"),a=t.getAttribute("data-eg-srcset"),null===s||null===n||null===o)return null;e=new ft.default,e.type=t.getAttribute("data-type"),"video"===e.type&&t&&(t.dataset.pswpVideoSources?e.videoSources=JSON.parse(t.dataset.pswpVideoSources):t.dataset.pswpVideoSrc?e.videoSrc=t.dataset.pswpVideoSrc:e.videoSrc=t.href),e.src=t.getAttribute("href"),e.srcset=a,e.width=parseInt(n,10),e.height=parseInt(s,10),e.title=decodeURIComponent(t.getAttribute("data-bs-title")||t.getAttribute("data-title")||""),e.pid=parseInt(o,10),e.gid=r,e.thumbEl=t;let l=t.querySelector(".social-share-button");l&&(e.shareUrl=l.getAttribute("data-href")),e.directDownloadButton=t.querySelector(".eg-download");let h=t.querySelector(".eventgallery-add2cart");return h&&(e.add2cartUrl=window.EventGalleryCartConfiguration?.add2cartdialogurl+"&"+h.getAttribute("data-id")),e}var _t=i(1767);function bt(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,e||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==typeof e?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}class St{constructor(t){bt(this,"browserBackHappened",!1),bt(this,"_close",()=>{this.browserBackHappened=!0,this.options.onClose()}),this.options={onClose:()=>{},window,history},this.options=pt.M.mergeObjects(this.options,t)}startUrlHistory(){if(!this.options.history)return;this.options.window.addEventListener("popstate",this._close),this.browserBackHappened=!1;let t=this.options.window.location.href;t=pt.M.removeUrlHashParameter(t,"gid"),t=pt.M.removeUrlHashParameter(t,"pid"),this.options.history.replaceState(null,"",t),this.options.history.pushState(null,"",null)}endUrlHistory(){this.options.history&&(this.options.window.removeEventListener("popstate",this._close),this.browserBackHappened||this.options.history.go(-1))}adjustUrlHistory(t){if(!this.options.history)return;let e=this.options.window.location.href;e=pt.M.addUrlHashParameter(e,"gid",t.gid),e=pt.M.addUrlHashParameter(e,"pid",t.pid),this.options.history.replaceState(null,"",e)}}class Ct{constructor(t){this._isOpen=!1,this._gallery=null,this._videoPlugin=null,this.options=pt.M.mergeObjects({doOverlapToolbar:!1,imagePadding:0,doOverlapImageWithCaption:!1,showHideAnimationType:"zoom"},t)}initPhotoSwipe(){this.translations=this._translate(),this._registerClickEvents();let t=function(t){let e={};if(t.length<5)return e;let i=t.split("&");for(let t=0;t<i.length;t++){if(!i[t])continue;let s=i[t].split("=");s.length<2||(e[s[0]]=s[1])}return e}(window.location.hash.substring(1));t.pid&&t.gid&&this.openPhotoSwipe(t.pid,this.getGalleries().get(t.gid),!0,!0)}_translate(){return window.EventGalleryLightboxConfiguration?{closeTitle:window.EventGalleryLightboxConfiguration.KEY_CLOSE,zoomTitle:window.EventGalleryLightboxConfiguration.KEY_ZOOM,arrowPrevTitle:window.EventGalleryLightboxConfiguration.KEY_PREVIOUS,arrowNextTitle:window.EventGalleryLightboxConfiguration.KEY_NEXT,errorMsg:"The image cannot be loaded",indexIndicatorSep:" / ",share:window.EventGalleryLightboxConfiguration.KEY_SHARE,download:window.EventGalleryLightboxConfiguration.KEY_DOWNLOAD,buy:window.EventGalleryLightboxConfiguration.KEY_BUY,"playpause-buttonTitle":window.EventGalleryLightboxConfiguration.KEY_PLAYSLIDESHOW,pause:window.EventGalleryLightboxConfiguration.KEY_PAUSESLIDESHOW}:{}}onThumbnailsClick(t){(t=t||window.event).preventDefault?t.preventDefault():t.returnValue=!1;let e=t.target||t.srcElement;if(null!==yt(e,function(t){return t.classList&&t.classList.contains("eventgallery-icon-container")}))return;let i=yt(e,function(t){return t.tagName&&"A"===t.tagName.toUpperCase()});if(!i)return;let s=this.getSlideBy(i),n=this.getIndexOfSlide(s),o=this.getGalleries().get(s.gid);return n>=0&&this.openPhotoSwipe(n,o),!1}openPhotoSwipe(t,e,i,s){let n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(void 0===e||0===e.length)return;let o=pt.M.mergeObjects({pswpModule:lt,galleryPIDs:!0,bgOpacity:1,trapFocus:!1,showHideAnimationType:this.options.showHideAnimationType,galleryUID:e[0].gid,tapAction:()=>{this._gallery.element.classList.toggle("pswp--ui-visible"),this._gallery.element.classList.contains("pswp--ui-visible")?this._gallery.element.classList.remove("pswp--ui-invisible"):this._gallery.element.classList.add("pswp--ui-invisible"),this._gallery.updateSize(!0)},paddingFn:(t,e,i)=>{let s=0,n=0;if(!this._gallery.element.classList.contains("pswp--ui-invisible")&&(!1===this.options.doOverlapToolbar&&(s=pt.M.getElementHeight(document.querySelector(".pswp__top-bar"))),s+=this.options.imagePadding,!this.options.doOverlapImageWithCaption&&e.title)){const t=document.createElement("div");t.className="pswp__custom-caption",t.innerHTML=e.title,this._gallery.element.appendChild(t),n=pt.M.getElementHeight(t);let i=getComputedStyle(t);if(i.bottom){n+=parseInt(i.bottom,10),n+=Math.max(0,4-this.options.imagePadding)}mt.A.removeHtmlElementNode(t)}return{top:s,bottom:0+n,left:0,right:0}}},this.translations);if(o.pinchToClose=!o.add2cartEl,o.closeOnVerticalDrag=!o.add2cartEl,o.closeOnScroll=!o.add2cartEl,window.EventGalleryLightboxConfiguration&&parseInt(window.EventGalleryLightboxConfiguration.navigationFadeDelay)>0&&(o.timeToIdle=parseInt(window.EventGalleryLightboxConfiguration.navigationFadeDelay),o.timeToIdleOutside=parseInt(window.EventGalleryLightboxConfiguration.navigationFadeDelay)),s)if(o.galleryPIDs){t=parseInt(t,10);for(let i=0;i<e.length;i++)if(e[i].pid===t){o.index=i;break}}else o.index=parseInt(t,10)-1;else o.index=parseInt(t,10);if(isNaN(o.index))return;i&&(o.showAnimationDuration=0),o.dataSource=e,this._gallery=new lt(o),this._gallery.addFilter("thumbEl",(t,e,i)=>{if(e.thumbEl){const t=e.thumbEl.querySelector("img");if(t)return t}return t}),this._gallery.on("close",()=>this._isOpen=!1),this._gallery.on("change",()=>{this.overlay?.closeOverlay()});let r=new St({onClose:()=>this._gallery.close(),history:n?history:null});this._gallery.on("afterInit",()=>{r.startUrlHistory(),r.adjustUrlHistory(this.getCurrentSlide())}),this._gallery.on("change",()=>{r.adjustUrlHistory(this.getCurrentSlide())}),this._gallery.on("close",()=>{r.endUrlHistory()}),this._gallery.on("keydown",t=>{this.overlay?.isOpen&&(t.defaultPrevented=!0)}),this._gallery.on("close",()=>{this.overlay?.closeOverlay()}),this._gallery.on("change",()=>{let t={id:this.getCurrentSlide().pid};document.dispatchEvent(mt.A.createNewEvent("eventgallery-lightbox-changed",t))}),this._registerUIElements(),this._videoPlugin=new ut(this._gallery,{}),this._gallery.init(),this._isOpen=!0;let a={id:this.getCurrentSlide().pid};document.dispatchEvent(mt.A.createNewEvent("eventgallery-lightbox-opened",a))}_registerUIElements(){this._gallery.on("uiRegister",()=>{this._gallery.ui.registerElement({name:"custom-caption",order:9,isButton:!1,appendTo:"root",html:"Caption text",onInit:(t,e)=>{e.on("change",()=>{const e=this.getCurrentSlide();let i="";e&&(i=e.title),t.innerHTML=i||"",i.length>0?t.style.display="block":t.style.display="none"})}}),this._gallery.ui.registerElement({name:"share-button",ariaLabel:this.translations.share,title:this.translations.share,order:10,isButton:!0,html:"",onInit:(t,e)=>{e.on("change",e=>{this.getCurrentSlide().shareUrl?t.style.display="block":t.style.display="none"})},onClick:(t,e,i)=>{this.overlay=new gt.A;let s=this.getCurrentSlide().shareUrl;return this.overlay.openOverlay(s),!1}}),this._gallery.ui.registerElement({name:"add2cart-button",ariaLabel:this.translations.buy,title:this.translations.buy,order:11,isButton:!0,html:"",onInit:(t,e)=>{e.on("change",e=>{this.getCurrentSlide().add2cartUrl?t.style.display="block":t.style.display="none"})},onClick:(t,e,i)=>{this.overlay=new gt.A,this.overlay.onLoad=()=>{document.dispatchEvent(mt.A.createNewEvent(_t.s.prepareAdd2cartDialogContent,null))};let s=this.getCurrentSlide().add2cartUrl;return this.overlay.openOverlay(s),!1}}),this._gallery.ui.registerElement({name:"download-button",ariaLabel:this.translations.download,title:this.translations.download,order:12,isButton:!0,html:"",onInit:(t,e)=>{e.on("change",e=>{this.getCurrentSlide().directDownloadButton?t.style.display="block":t.style.display="none"})},onClick:(t,e)=>(this.getCurrentSlide().directDownloadButton?.click(),!1)}),new vt(this._gallery)})}_registerClickEvents(){let t=this.getGalleries();for(let e of t.values())for(let t=0,i=e.length;t<i;t++)e[t].thumbEl.onclick=t=>{this.onThumbnailsClick(t)}}getSlideBy(t){let e=this.getGalleries();for(let i of e.values())for(let e=0,s=i.length;e<s;e++)if(i[e].thumbEl===t)return i[e];return null}getIndexOfSlide(t){return this.getGalleries().get(t.gid).map(function(t){return t.hash()}).indexOf(t.hash())}getGalleries(){let t=new Map,e=function(){let t=document.querySelectorAll("a[data-eg-lightbox]");return Array.from(t).filter(t=>{let e=pt.M.getParents(t),i=!0;return e.forEach(t=>{i&&t.classList.contains("glide__slide--clone")&&(i=!1)}),i})}();for(let i=0;i<e.length;i++){let s,n=wt(e[i]);null!==n&&(void 0===t.get(n.gid)&&t.set(n.gid,[]),s=t.get(n.gid),s.push(n),t.set(n.gid,s))}return t}getCurrentSlide(){return this._gallery.currSlide.data}getCurrentIndex(){return this._gallery.currIndex}reload(){this._registerClickEvents()}isOpen(){return this._isOpen}setAfterChangeEventListener(t){this._gallery.on("change",t)}gotoSlide(t){this._gallery.goTo(t)}}},8787:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>s});class s{constructor(){this.width=0,this.height=0,this.src="",this.srcset="",this.alt="",this.title="",this.pid="",this.gid="",this.thumbEl=null,this.msrc="",this.shareUrl="",this.add2cartUrl="",this.directDownloadButton="",this.type="",this.thumbCropped=!0,this.videoSrc="",this.videoSources=null}hash(){return this.gid+this.src+this.srcset}}},8885:(t,e,i)=>{"use strict";i.r(e)},9259:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function removeElement(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}function mergeObjects(t,e){if(null===e||null===t)return t;for(let 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){let i=0;for(let s=0;s<t.length;s++){let n=getComputedStyle(t[s],null);for(let t=0;t<e.length;t++){let s=parseFloat(n[e[t]]);isNaN(s)||(i+=s)}}return i}function addUrlHashParameter(t,e,i){let s,n=removeUrlHashParameter(t,e).split("#"),o=n[0],r=n.length>1?n[1].split("&"):[];return r.push(encodeURIComponent(e)+"="+encodeURIComponent(i)),s=r.length>0?o+"#"+r.join("&"):o,s}function getUrlHashParameterValue(t,e){let i,s=t.split("#"),n=s.length>1?s[1].split("&"):[];if(n.length>0){let t=encodeURIComponent(e)+"=";for(let e=0;e<n.length;e++)0===n[e].indexOf(t,0)&&(i=n[e].replace(t,""))}return i}function removeUrlHashParameter(t,e){let i,s=t.split("#"),n=s[0],o=s.length>1?s[1].split("&"):[];if(o.length>0){let t=encodeURIComponent(e)+"=",i=[];for(let e=0;e<o.length;e++)0!==o[e].indexOf(t,0)&&i.push(o[e]);o=i}return i=o.length>0?n+"#"+o.join("&"):n,i}function addUrlParameter(t,e,i){let s,n=removeUrlParameter(t,e).split("#"),o=n[0].split("?");return s=1===o.length?o[0]+"?"+encodeURIComponent(e)+"="+encodeURIComponent(i):o.join("?")+"&"+encodeURIComponent(e)+"="+encodeURIComponent(i),n.length>1?s+"#"+n[1]:s}function removeUrlParameter(t,e){let i,s=t.split("#"),n=s[0].split("?");if(n.length>1){let t=encodeURIComponent(e)+"=",s=n[1].split("&");for(let e=0;e<s.length;e++)0===s[e].indexOf(t,0)&&s.splice(e,1);i=s.length>0?n[0]+"?"+s.join("&"):n[0]}else i=n[0];return s.length>1?i+"#"+s[1]:i}function setCSSStyle(t,e,i){for(let s=0;s<t.length;s++)t[s].style[e]=i}function getOuterHeight(t){let e=t.offsetHeight,i=getComputedStyle(t);return e+=parseInt(i.marginTop)+parseInt(i.marginBottom),e}function getParents(t){let e=[];
1if(null===t)return e;for(;null!=t.parentElement;){let i=t.parentElement;e.push(i),t=i}return e}function getParent(t,e){let i=getParents(t);for(let t=0;t<i.length;t++)if(i[t].matches(e))return i[t];return null}function insertAndExecute(htmlElement,newContent){htmlElement.innerHTML=newContent;let scripts=Array.prototype.slice.call(htmlElement.getElementsByTagName("script"));for(let i=0;i<scripts.length;i++)if(""!==scripts[i].src){let t=document.createElement("script");t.src=scripts[i].src,document.getElementsByTagName("head")[0].appendChild(t)}else try{eval(scripts[i].innerHTML)}catch(t){}}function forEach(t,e){if(!t)return 0;for(let i=0;i<t.length;i++)e(t[i],i);return t.length}__webpack_require__.d(__webpack_exports__,{M:()=>Helpers});const serializeForm=function(t){let e=[],i=t.querySelectorAll("input,select,textarea");for(let t=0;t<i.length;t++){let s=i[t];if(s.name&&!s.disabled&&"file"!==s.type&&"reset"!==s.type&&"submit"!==s.type&&"button"!==s.type)if("select-multiple"===s.type)for(let t=0;t<s.options.length;t++)s.options[t].selected&&e.push(encodeURIComponent(s.name)+"="+encodeURIComponent(s.options[t].value));else("checkbox"!==s.type&&"radio"!==s.type||s.checked)&&e.push(encodeURIComponent(s.name)+"="+encodeURIComponent(s.value))}return e.join("&")},Helpers={getOuterHeight,removeElement,addUrlHashParameter,calcBorderWidth,mergeObjects,getElementWidth,getElementHeight,addUrlParameter,getUrlHashParameterValue,removeUrlHashParameter,removeUrlParameter,setCSSStyle,getParents,serializeForm,getParent,insertAndExecute,forEach}},9805:(t,e,i)=>{const{JSGallery2:s}=i(2846);document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelectorAll(".ajaxpaging");for(let e=0;e<t.length;e++){let i=t[e];new s(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"})}})}},__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=(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=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";window.Eventgallery=window.Eventgallery||{},__webpack_require__(2495),__webpack_require__(8409),__webpack_require__(8787),__webpack_require__(8885),__webpack_require__(4163),__webpack_require__(3036),__webpack_require__(4354),__webpack_require__(9805)})()})(); 2//# sourceMappingURL=eventgallery.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.