!function(){var t={668:function(t,e,i){var s,o,n;function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)
/*!
 * lightgallery | 2.1.8 | July 7th 2021
 * http://www.lightgalleryjs.com/
 * Copyright (c) 2020 Sachin Neravath;
 * @license GPLv3
 */}n=function(){"use strict";
/*! *****************************************************************************
  Copyright (c) Microsoft Corporation.
   Permission to use, copy, modify, and/or distribute this software for any
  purpose with or without fee is hereby granted.
   THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  PERFORMANCE OF THIS SOFTWARE.
  ***************************************************************************** */var t=function(){return t=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},t.apply(this,arguments)};!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e=function(){function t(t){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(t),this.firstElement=this._getFirstEl(),this}return t.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},t.prototype._getSelector=function(t,e){return void 0===e&&(e=document),"string"!=typeof t?t:(e=e||document,"#"===t.substring(0,1)?e.querySelector(t):e.querySelectorAll(t))},t.prototype._each=function(t){return this.selector?(void 0!==this.selector.length?[].forEach.call(this.selector,t):t(this.selector,0),this):this},t.prototype._setCssVendorPrefix=function(t,e,i){var s=e.replace(/-([a-z])/gi,(function(t,e){return e.toUpperCase()}));-1!==this.cssVenderPrefixes.indexOf(s)?(t.style[s.charAt(0).toLowerCase()+s.slice(1)]=i,t.style["webkit"+s]=i,t.style["moz"+s]=i,t.style["ms"+s]=i,t.style["o"+s]=i):t.style[s]=i},t.prototype._getFirstEl=function(){return this.selector&&void 0!==this.selector.length?this.selector[0]:this.selector},t.prototype.isEventMatched=function(t,e){var i=e.split(".");return t.split(".").filter((function(t){return t})).every((function(t){return-1!==i.indexOf(t)}))},t.prototype.attr=function(t,e){return void 0===e?this.firstElement?this.firstElement.getAttribute(t):"":(this._each((function(i){i.setAttribute(t,e)})),this)},t.prototype.find=function(t){return i(this._getSelector(t,this.selector))},t.prototype.first=function(){return this.selector&&void 0!==this.selector.length?i(this.selector[0]):i(this.selector)},t.prototype.eq=function(t){return i(this.selector[t])},t.prototype.parent=function(){return i(this.selector.parentElement)},t.prototype.get=function(){return this._getFirstEl()},t.prototype.removeAttr=function(t){var e=t.split(" ");return this._each((function(t){e.forEach((function(e){return t.removeAttribute(e)}))})),this},t.prototype.wrap=function(t){if(!this.firstElement)return this;var e=document.createElement("div");return e.className=t,this.firstElement.parentNode.insertBefore(e,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),e.appendChild(this.firstElement),this},t.prototype.addClass=function(t){return void 0===t&&(t=""),this._each((function(e){t.split(" ").forEach((function(t){e.classList.add(t)}))})),this},t.prototype.removeClass=function(t){return this._each((function(e){t.split(" ").forEach((function(t){e.classList.remove(t)}))})),this},t.prototype.hasClass=function(t){return!!this.firstElement&&this.firstElement.classList.contains(t)},t.prototype.hasAttribute=function(t){return!!this.firstElement&&this.firstElement.hasAttribute(t)},t.prototype.toggleClass=function(t){return this.firstElement?(this.hasClass(t)?this.removeClass(t):this.addClass(t),this):this},t.prototype.css=function(t,e){var i=this;return this._each((function(s){i._setCssVendorPrefix(s,t,e)})),this},t.prototype.on=function(e,i){var s=this;return this.selector?(e.split(" ").forEach((function(e){Array.isArray(t.eventListeners[e])||(t.eventListeners[e]=[]),t.eventListeners[e].push(i),s.selector.addEventListener(e.split(".")[0],i)})),this):this},t.prototype.once=function(t,e){var i=this;return this.on(t,(function(){i.off(t),e(t)})),this},t.prototype.off=function(e){var i=this;return this.selector?(Object.keys(t.eventListeners).forEach((function(s){i.isEventMatched(e,s)&&(t.eventListeners[s].forEach((function(t){i.selector.removeEventListener(s.split(".")[0],t)})),t.eventListeners[s]=[])})),this):this},t.prototype.trigger=function(t,e){if(!this.firstElement)return this;var i=new CustomEvent(t.split(".")[0],{detail:e||null});return this.firstElement.dispatchEvent(i),this},t.prototype.load=function(t){var e=this;return fetch(t).then((function(t){e.selector.innerHTML=t})),this},t.prototype.html=function(t){return void 0===t?this.firstElement?this.firstElement.innerHTML:"":(this._each((function(e){e.innerHTML=t})),this)},t.prototype.append=function(t){return this._each((function(e){"string"==typeof t?e.insertAdjacentHTML("beforeend",t):e.appendChild(t)})),this},t.prototype.prepend=function(t){return this._each((function(e){e.insertAdjacentHTML("afterbegin",t)})),this},t.prototype.remove=function(){return this._each((function(t){t.parentNode.removeChild(t)})),this},t.prototype.empty=function(){return this._each((function(t){t.innerHTML=""})),this},t.prototype.scrollTop=function(t){return void 0!==t?(document.body.scrollTop=t,document.documentElement.scrollTop=t,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},t.prototype.scrollLeft=function(t){return void 0!==t?(document.body.scrollLeft=t,document.documentElement.scrollLeft=t,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},t.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var t=this.firstElement.getBoundingClientRect(),e=i("body").style().marginLeft;return{left:t.left-parseFloat(e)+this.scrollLeft(),top:t.top+this.scrollTop()}},t.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},t.prototype.width=function(){var t=this.style();return this.firstElement.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight)},t.prototype.height=function(){var t=this.style();return this.firstElement.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom)},t.eventListeners={},t}();function i(t){return new e(t)}var s=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function o(t){return"href"===t?"src":t=(t=(t=t.replace("data-","")).charAt(0).toLowerCase()+t.slice(1)).replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))}var n=function(t,e,s,o){void 0===s&&(s=0);var n=i(t).attr("data-lg-size")||o;if(n){var r=n.split(",");if(r[1])for(var l=window.innerWidth,a=0;a<r.length;a++){var g=r[a];if(parseInt(g.split("-")[2],10)>l){n=g;break}a===r.length-1&&(n=g)}var h=n.split("-"),c=parseInt(h[0],10),d=parseInt(h[1],10),u=e.width(),m=e.height()-s,p=Math.min(u,c),f=Math.min(m,d),y=Math.min(p/c,f/d);return{width:c*y,height:d*y}}},r=function(t,e,s,o,n){if(n){var r=i(t).find("img").first();if(r.get()){var l=e.get().getBoundingClientRect(),a=l.width,g=e.height()-(s+o),h=r.width(),c=r.height(),d=r.style(),u=(a-h)/2-r.offset().left+(parseFloat(d.paddingLeft)||0)+(parseFloat(d.borderLeft)||0)+i(window).scrollLeft()+l.left,m=(g-c)/2-r.offset().top+(parseFloat(d.paddingTop)||0)+(parseFloat(d.borderTop)||0)+i(window).scrollTop()+s;return"translate3d("+(u*=-1)+"px, "+(m*=-1)+"px, 0) scale3d("+h/n.width+", "+c/n.height+", 1)"}}},l=function(t,e,i,s){return'<div class="lg-video-cont lg-has-iframe" style="width:'+e+"; height: "+i+'">\n                    <iframe class="lg-object" frameborder="0" '+(s?'title="'+s+'"':"")+' src="'+t+'"  allowfullscreen="true"></iframe>\n                </div>'},a=function(t,e,i,s,o,n){var r="<img "+i+" "+(s?'srcset="'+s+'"':"")+"  "+(o?'sizes="'+o+'"':"")+' class="lg-object lg-image" data-index="'+t+'" src="'+e+'" />',l="";return n&&(l=("string"==typeof n?JSON.parse(n):n).map((function(t){var e="";return Object.keys(t).forEach((function(i){e+=" "+i+'="'+t[i]+'"'})),"<source "+e+"></source>"}))),""+l+r},g=function(t){for(var e=[],i=[],s="",o=0;o<t.length;o++){var n=t[o].split(" ");""===n[0]&&n.splice(0,1),i.push(n[0]),e.push(n[1])}for(var r=window.innerWidth,l=0;l<e.length;l++)if(parseInt(e[l],10)>r){s=i[l];break}return s},h=function(t){return!!t&&!!t.complete&&0!==t.naturalWidth},c=function(t,e,i,s){return'<div class="lg-video-cont '+(s&&s.youtube?"lg-has-youtube":s&&s.vimeo?"lg-has-vimeo":"lg-has-html5")+'" style="'+i+'">\n                <div class="lg-video-play-button">\n                <svg\n                    viewBox="0 0 20 20"\n                    preserveAspectRatio="xMidYMid"\n                    focusable="false"\n                    aria-labelledby="Play video"\n                    role="img"\n                    class="lg-video-play-icon"\n                >\n                    <title>Play video</title>\n                    <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>\n                </svg>\n                <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">\n                    <circle cx="50%" cy="50%" r="20"></circle></svg>\n                <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">\n                    <circle cx="50%" cy="50%" r="20"></circle>\n                </svg>\n            </div>\n            '+(e||"")+'\n            <img class="lg-object lg-video-poster" src="'+t+'" />\n        </div>'},d=function(t,e,n,r){var l=[],a=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var s=Array(t),o=0;for(e=0;e<i;e++)for(var n=arguments[e],r=0,l=n.length;r<l;r++,o++)s[o]=n[r];return s}(s,e);return[].forEach.call(t,(function(t){for(var e={},s=0;s<t.attributes.length;s++){var g=t.attributes[s];if(g.specified){var h=o(g.name),c="";a.indexOf(h)>-1&&(c=h),c&&(e[c]=g.value)}}var d=i(t),u=d.find("img").first().attr("alt"),m=d.attr("title"),p=r?d.attr(r):d.find("img").first().attr("src");e.thumb=p,n&&!e.subHtml&&(e.subHtml=m||u||""),e.alt=u||m||"",l.push(e)})),l},u=function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},m={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:document.body,startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[]},p="lgAfterAppendSlide",f="lgInit",y="lgHasVideo",v="lgContainerResize",b="lgUpdateSlides",C="lgAfterAppendSubHtml",I="lgBeforeOpen",x="lgAfterOpen",w="lgSlideItemLoad",S="lgBeforeSlide",z="lgAfterSlide",T="lgPosterClick",E="lgDragStart",O="lgDragMove",L="lgDragEnd",D="lgBeforeNextSlide",M="lgBeforePrevSlide",G="lgBeforeClose",F="lgAfterClose",A=0,$=function(){function s(t,e){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.isDummyImageRemoved=!1,this.mediaContainerPosition={top:0,bottom:0},!t)return this;if(A++,this.lgId=A,this.el=t,this.LGel=i(t),this.generateSettings(e),this.buildModules(),this.settings.dynamic&&void 0!==this.settings.dynamicEl&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this}return s.prototype.generateSettings=function(e){if(this.settings=t(t({},m),e),this.settings.isMobile&&"function"==typeof this.settings.isMobile?this.settings.isMobile():u()){var i=t(t({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=t(t({},this.settings),i)}},s.prototype.normalizeSettings=function(){this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container||(this.settings.container=document.body),this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},s.prototype.init=function(){var t=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(f,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout((function(){t.enableDrag(),t.enableSwipe()}),50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},s.prototype.openGalleryOnItemClick=function(){for(var t=this,s=function(s){var n=o.items[s],r=i(n),l=e.generateUUID();r.attr("data-lg-id",l).on("click.lgcustom-item-"+l,(function(e){e.preventDefault();var i=t.settings.index||s;t.openGallery(i,n)}))},o=this,n=0;n<this.items.length;n++)s(n)},s.prototype.buildModules=function(){var t=this;this.settings.plugins.forEach((function(e){t.plugins.push(new e(t,i))}))},s.prototype.validateLicense=function(){this.settings.licenseKey?"0000-0000-000-0000"===this.settings.licenseKey&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},s.prototype.getSlideItem=function(t){return i(this.getSlideItemId(t))},s.prototype.getSlideItemId=function(t){return"#lg-item-"+this.lgId+"-"+t},s.prototype.getIdName=function(t){return t+"-"+this.lgId},s.prototype.getElementById=function(t){return i("#"+this.getIdName(t))},s.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},s.prototype.buildStructure=function(){var t=this;if(!this.$container||!this.$container.get()){var e="",s="";this.settings.controls&&(e='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="Previous slide" class="lg-prev lg-icon"> '+this.settings.prevHtml+' </button>\n                <button type="button" id="'+this.getIdName("lg-next")+'" aria-label="Next slide" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),".lg-sub-html"===this.settings.appendSubHtmlTo&&(s='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var o="";this.settings.allowMediaOverlap&&(o+="lg-media-overlap ");var n=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",r=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",l="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),a=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="Close gallery" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",g=this.settings.showMaximizeIcon?'<button type="button" aria-label="Toggle maximize" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",h='\n        <div class="'+l+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+n+" "+r+' role="dialog"\n        >\n            <div id="'+this.getIdName("lg-backdrop")+'" class="lg-backdrop"></div>\n\n            <div id="'+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+o+' ">\n                    <div id="'+this.getIdName("lg-content")+'" class="lg" style="width: '+this.settings.width+"; height:"+this.settings.height+'">\n                        <div id="'+this.getIdName("lg-inner")+'" class="lg-inner"></div>\n                        <div id="'+this.getIdName("lg-toolbar")+'" class="lg-toolbar lg-group">\n                        '+g+"\n                        "+a+"\n                    </div>\n                    "+e+'\n                    <div id="'+this.getIdName("lg-components")+'" class="lg-components">\n                        '+s+"\n                    </div>\n                </div> \n            </div>\n        </div>\n        ";i(this.settings.container).css("position","relative").append(h),this.outer=this.getElementById("lg-outer"),this.$lgContent=this.getElementById("lg-content"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var c=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(c+="lg-grab "),this.settings.showAfterLoad&&(c+="lg-show-after-load"),this.outer.addClass(c),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" aria-label="Download" download class="lg-download lg-icon"></a>'),this.counter(),i(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,(function(){t.refreshOnResize()})),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},s.prototype.refreshOnResize=function(){if(this.lgOpened){var t=this.galleryItems[this.index].__slideVideoInfo,e=this.getMediaContainerPosition(),i=e.top,s=e.bottom;if(this.currentImageSize=n(this.items[this.index],this.$lgContent,i+s,t&&this.settings.videoMaxSize),t&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var o=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",o)}this.LGel.trigger(v)}},s.prototype.resizeVideoSlide=function(t,e){var i=this.getVideoContStyle(e);this.getSlideItem(t).find(".lg-video-cont").attr("style",i)},s.prototype.updateSlides=function(t,e){if(this.index>t.length-1&&(this.index=t.length-1),1===t.length&&(this.index=0),t.length){var i=this.galleryItems[e].src;this.galleryItems=t,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var s=0;this.galleryItems.some((function(t,e){return t.src===i&&(s=e,!0)})),this.currentItemsInDom=this.organizeSlideItems(s,-1),this.loadContent(s,!0),this.getSlideItem(s).addClass("lg-current"),this.index=s,this.updateCurrentCounter(s),this.LGel.trigger(b)}else this.closeGallery()},s.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if("this"===this.settings.selector)this.items.push(this.el);else if(this.settings.selector)if("string"==typeof this.settings.selector)if(this.settings.selectWithin){var t=i(this.settings.selectWithin);this.items=t.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return d(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},s.prototype.openGallery=function(t,e){var s=this;if(void 0===t&&(t=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.get().focus(),this.outer.removeClass("lg-hide-items"),this.$container.addClass("lg-show");var o=this.getItemsToBeInsertedToDom(t,t);this.currentItemsInDom=o;var l="";o.forEach((function(t){l=l+'<div id="'+t+'" class="lg-item"></div>'})),this.$inner.append(l),this.addHtml(t);var a="";this.mediaContainerPosition=this.getMediaContainerPosition();var g=this.mediaContainerPosition,h=g.top,c=g.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(h,c),this.zoomFromOrigin&&e&&(this.currentImageSize=n(e,this.$lgContent,h+c,this.galleryItems[t].__slideVideoInfo&&this.settings.videoMaxSize),a=r(e,this.$lgContent,h,c,this.currentImageSize)),this.zoomFromOrigin&&a||(this.outer.addClass(this.settings.startClass),this.getSlideItem(t).removeClass("lg-complete"));var d=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout((function(){s.outer.addClass("lg-components-open")}),d),this.index=t,this.LGel.trigger(I),this.getSlideItem(t).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=i(window).scrollTop(),setTimeout((function(){if(s.zoomFromOrigin&&a){var e=s.getSlideItem(t);e.css("transform",a),setTimeout((function(){e.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",s.settings.startAnimationDuration+"ms"),s.outer.addClass("lg-zoom-from-image")})),setTimeout((function(){e.css("transform","translate3d(0, 0, 0)")}),100)}setTimeout((function(){s.$backdrop.addClass("in"),s.$container.addClass("lg-show-in")}),10),s.zoomFromOrigin&&a||setTimeout((function(){s.outer.addClass("lg-visible")}),s.settings.backdropDuration),s.slide(t,!1,!1,!1),s.LGel.trigger(x)})),document.body===this.settings.container&&i("html").addClass("lg-on")}},s.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var t=this.$toolbar.get().clientHeight||0,e=this.settings.defaultCaptionHeight||this.outer.find(".lg-sub-html").get().clientHeight,i=this.outer.find(".lg-thumb-outer").get();return{top:t,bottom:(i?i.clientHeight:0)+e}},s.prototype.setMediaContainerPosition=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.$inner.css("top",t+"px").css("bottom",e+"px")},s.prototype.hideBars=function(){var t=this;setTimeout((function(){t.outer.removeClass("lg-hide-items"),t.settings.hideBarsDelay>0&&(t.outer.on("mousemove.lg click.lg touchstart.lg",(function(){t.outer.removeClass("lg-hide-items"),clearTimeout(t.hideBarTimeout),t.hideBarTimeout=setTimeout((function(){t.outer.addClass("lg-hide-items")}),t.settings.hideBarsDelay)})),t.outer.trigger("mousemove.lg"))}),this.settings.showBarsAfter)},s.prototype.initPictureFill=function(t){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[t.get()]})}catch(t){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},s.prototype.counter=function(){if(this.settings.counter){var t='<div class="lg-counter" role="status" aria-live="polite">\n                <span id="'+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+' </span> / \n                <span id="'+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(t)}},s.prototype.addHtml=function(t){var e,s;if(this.galleryItems[t].subHtmlUrl?s=this.galleryItems[t].subHtmlUrl:e=this.galleryItems[t].subHtml,!s)if(e){var o=e.substring(0,1);"."!==o&&"#"!==o||(e=this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?i(this.items).eq(t).find(e).first().html():i(e).first().html())}else e="";if(".lg-sub-html"===this.settings.appendSubHtmlTo)s?this.outer.find(".lg-sub-html").load(s):this.outer.find(".lg-sub-html").html(e);else{var n=i(this.getSlideItemId(t));s?n.load(s):n.append('<div class="lg-sub-html">'+e+"</div>")}null!=e&&(""===e?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(C,{index:t})},s.prototype.preload=function(t){for(var e=1;e<=this.settings.preload&&!(e>=this.galleryItems.length-t);e++)this.loadContent(t+e,!1);for(var i=1;i<=this.settings.preload&&!(t-i<0);i++)this.loadContent(t-i,!1)},s.prototype.getDummyImgStyles=function(t){return t?"width:"+t.width+"px; \n                margin-left: -"+t.width/2+"px;\n                margin-top: -"+t.height/2+"px; \n                height:"+t.height+"px":""},s.prototype.getVideoContStyle=function(t){return t?"width:"+t.width+"px; \n                height:"+t.height+"px":""},s.prototype.getDummyImageContent=function(t,e,s){var o;if(this.settings.dynamic||(o=i(this.items).eq(e)),o){var n=void 0;if(!(n=this.settings.exThumbImage?o.attr(this.settings.exThumbImage):o.find("img").first().attr("src")))return"";var r="<img "+s+' style="'+this.getDummyImgStyles(this.currentImageSize)+'" class="lg-dummy-img" src="'+n+'" />';return t.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),r}return""},s.prototype.setImgMarkup=function(t,e,i){var s=this.galleryItems[i],o=s.alt,n=s.srcset,r=s.sizes,l=s.sources,g=o?'alt="'+o+'"':"",h='<picture class="lg-img-wrap"> '+(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize?this.getDummyImageContent(e,i,g):a(i,t,g,n,r,l))+"</picture>";e.prepend(h)},s.prototype.onLgObjectLoad=function(t,e,i,s,o){var n=this;o&&this.LGel.trigger(w,{index:e,delay:i||0}),t.find(".lg-object").first().on("load.lg",(function(){n.handleLgObjectLoad(t,e,i,s,o)})),setTimeout((function(){t.find(".lg-object").first().on("error.lg",(function(){t.addClass("lg-complete lg-complete_"),t.html('<span class="lg-error-msg">Oops... Failed to load content...</span>')}))}),s)},s.prototype.handleLgObjectLoad=function(t,e,i,s,o){var n=this;setTimeout((function(){t.addClass("lg-complete lg-complete_"),o||n.LGel.trigger(w,{index:e,delay:i||0})}),s)},s.prototype.isVideo=function(t,e){if(!t)return this.galleryItems[e].video?{html5:!0}:void console.error("lightGallery :- data-src is not provided on slide item "+(e+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");var i=t.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),s=t.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)/i),o=t.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);return i?{youtube:i}:s?{vimeo:s}:o?{wistia:o}:void 0},s.prototype.addSlideVideoInfo=function(t){var e=this;t.forEach((function(t,i){t.__slideVideoInfo=e.isVideo(t.src,i)}))},s.prototype.loadContent=function(t,e){var s=this,o=this.galleryItems[t],r=i(this.getSlideItemId(t)),d=o.poster,u=o.srcset,m=o.sizes,f=o.sources,v=o.src,b=o.video,C=b&&"string"==typeof b?JSON.parse(b):b;if(o.responsive){var I=o.responsive.split(",");v=g(I)||v}var x=o.__slideVideoInfo,w="",S=!!o.iframe;if(!r.hasClass("lg-loaded")){if(x){var z=this.mediaContainerPosition,T=z.top,E=z.bottom,O=n(this.items[t],this.$lgContent,T+E,x&&this.settings.videoMaxSize);w=this.getVideoContStyle(O)}if(S){var L=l(v,this.settings.iframeWidth,this.settings.iframeHeight,o.iframeTitle);r.prepend(L)}else if(d){var D="",M=!this.lGalleryOn,G=!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize;G&&(D=this.getDummyImageContent(r,t,"")),L=c(d,D||"",w,x),r.prepend(L);var F=(G?this.settings.startAnimationDuration:this.settings.backdropDuration)+100;setTimeout((function(){s.LGel.trigger(y,{index:t,src:v,html5Video:C,hasPoster:!0,isFirstSlide:M})}),F)}else if(x)L='<div class="lg-video-cont " style="'+w+'"></div>',r.prepend(L),this.LGel.trigger(y,{index:t,src:v,html5Video:C,hasPoster:!1});else if(this.setImgMarkup(v,r,t),u||f){var A=r.find(".lg-object");this.initPictureFill(A)}this.LGel.trigger(p,{index:t}),this.lGalleryOn&&".lg-sub-html"!==this.settings.appendSubHtmlTo&&this.addHtml(t)}var $=0,k=0;this.lGalleryOn||(k=this.zoomFromOrigin&&this.currentImageSize?this.settings.startAnimationDuration+10:this.settings.backdropDuration+10),k&&!i(document.body).hasClass("lg-from-hash")&&($=k),!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize&&(setTimeout((function(){r.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")}),this.settings.startAnimationDuration+100),r.hasClass("lg-loaded")||setTimeout((function(){if(r.find(".lg-img-wrap").append(a(t,v,"",u,m,o.sources)),u||f){var e=r.find(".lg-object");s.initPictureFill(e)}s.onLgObjectLoad(r,t,k,$,!0);var i=r.find(".lg-object").first();h(i.get())?s.loadContentOnLoad(t,r,$):i.on("load.lg error.lg",(function(){s.loadContentOnLoad(t,r,$)}))}),this.settings.startAnimationDuration+100)),r.addClass("lg-loaded"),this.onLgObjectLoad(r,t,k,$,!1),x&&x.html5&&!d&&r.addClass("lg-complete lg-complete_"),this.zoomFromOrigin&&this.currentImageSize||!r.hasClass("lg-complete_")||this.lGalleryOn||setTimeout((function(){r.addClass("lg-complete")}),this.settings.backdropDuration),this.lGalleryOn=!0,!0===e&&(r.hasClass("lg-complete_")?this.preload(t):r.find(".lg-object").first().on("load.lg error.lg",(function(){s.preload(t)})))},s.prototype.loadContentOnLoad=function(t,e,i){var s=this;setTimeout((function(){e.find(".lg-dummy-img").remove(),e.removeClass("lg-first-slide"),s.outer.removeClass("lg-first-slide-loading"),s.isDummyImageRemoved=!0,s.preload(t)}),i+300)},s.prototype.getItemsToBeInsertedToDom=function(t,e,i){var s=this;void 0===i&&(i=0);var o=[],n=Math.max(i,3);n=Math.min(n,this.galleryItems.length);var r="lg-item-"+this.lgId+"-"+e;if(this.galleryItems.length<=3)return this.galleryItems.forEach((function(t,e){o.push("lg-item-"+s.lgId+"-"+e)})),o;if(t<(this.galleryItems.length-1)/2){for(var l=t;l>t-n/2&&l>=0;l--)o.push("lg-item-"+this.lgId+"-"+l);var a=o.length;for(l=0;l<n-a;l++)o.push("lg-item-"+this.lgId+"-"+(t+l+1))}else{for(l=t;l<=this.galleryItems.length-1&&l<t+n/2;l++)o.push("lg-item-"+this.lgId+"-"+l);for(a=o.length,l=0;l<n-a;l++)o.push("lg-item-"+this.lgId+"-"+(t-l-1))}return this.settings.loop&&(t===this.galleryItems.length-1?o.push("lg-item-"+this.lgId+"-0"):0===t&&o.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),-1===o.indexOf(r)&&o.push("lg-item-"+this.lgId+"-"+e),o},s.prototype.organizeSlideItems=function(t,e){var s=this,o=this.getItemsToBeInsertedToDom(t,e,this.settings.numberOfSlideItemsInDom);return o.forEach((function(t){-1===s.currentItemsInDom.indexOf(t)&&s.$inner.append('<div id="'+t+'" class="lg-item"></div>')})),this.currentItemsInDom.forEach((function(t){-1===o.indexOf(t)&&i("#"+t).remove()})),o},s.prototype.getPreviousSlideIndex=function(){var t=0;try{var e=this.outer.find(".lg-current").first().attr("id");t=parseInt(e.split("-")[3])||0}catch(e){t=0}return t},s.prototype.setDownloadValue=function(t){if(this.settings.download){var e=this.galleryItems[t],i=!1!==e.downloadUrl&&(e.downloadUrl||e.src);i&&!e.iframe&&this.getElementById("lg-download").attr("href",i)}},s.prototype.makeSlideAnimation=function(t,e,i){var s=this;this.lGalleryOn&&i.addClass("lg-slide-progress"),setTimeout((function(){s.outer.addClass("lg-no-trans"),s.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),"prev"===t?(e.addClass("lg-prev-slide"),i.addClass("lg-next-slide")):(e.addClass("lg-next-slide"),i.addClass("lg-prev-slide")),setTimeout((function(){s.outer.find(".lg-item").removeClass("lg-current"),e.addClass("lg-current"),s.outer.removeClass("lg-no-trans")}),50)}),this.lGalleryOn?this.settings.slideDelay:0)},s.prototype.slide=function(t,e,i,s){var o=this,r=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(t,r),!this.lGalleryOn||r!==t){var l=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(t);var a=this.getSlideItem(t),g=this.getSlideItem(r),h=this.galleryItems[t],c=h.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(h)),this.setDownloadValue(t),c){var d=this.mediaContainerPosition,u=d.top,m=d.bottom,p=n(this.items[t],this.$lgContent,u+m,c&&this.settings.videoMaxSize);this.resizeVideoSlide(t,p)}if(this.LGel.trigger(S,{prevIndex:r,index:t,fromTouch:!!e,fromThumb:!!i}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(t),s||(t<r?s="prev":t>r&&(s="next")),e){this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var f=void 0,y=void 0;l>2?(f=t-1,y=t+1,(0===t&&r===l-1||t===l-1&&0===r)&&(y=0,f=l-1)):(f=0,y=1),"prev"===s?this.getSlideItem(y).addClass("lg-next-slide"):this.getSlideItem(f).addClass("lg-prev-slide"),a.addClass("lg-current")}else this.makeSlideAnimation(s,a,g);this.lGalleryOn||this.loadContent(t,!0),setTimeout((function(){o.lGalleryOn&&o.loadContent(t,!0),".lg-sub-html"===o.settings.appendSubHtmlTo&&o.addHtml(t)}),(this.lGalleryOn?this.settings.speed+50:50)+(e?0:this.settings.slideDelay)),setTimeout((function(){o.lgBusy=!1,g.removeClass("lg-slide-progress"),o.LGel.trigger(z,{prevIndex:r,index:t,fromTouch:e,fromThumb:i})}),(this.lGalleryOn?this.settings.speed+100:100)+(e?0:this.settings.slideDelay))}this.index=t}},s.prototype.updateCurrentCounter=function(t){this.getElementById("lg-counter-current").html(t+1+"")},s.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},s.prototype.getSlideType=function(t){return t.__slideVideoInfo?"video":t.iframe?"iframe":"image"},s.prototype.touchMove=function(t,e){var i=e.pageX-t.pageX,s=e.pageY-t.pageY,o=!1;if(this.swipeDirection?o=!0:Math.abs(i)>15?(this.swipeDirection="horizontal",o=!0):Math.abs(s)>15&&(this.swipeDirection="vertical",o=!0),o){var n=this.getSlideItem(this.index);if("horizontal"===this.swipeDirection){this.outer.addClass("lg-dragging"),this.setTranslate(n,i,0);var r=n.get().offsetWidth,l=15*r/100-Math.abs(10*i/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-r+i-l,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),r+i+l,0)}else if("vertical"===this.swipeDirection&&this.settings.swipeToClose){this.$container.addClass("lg-dragging-vertical");var a=1-Math.abs(s)/window.innerHeight;this.$backdrop.css("opacity",a);var g=1-Math.abs(s)/(2*window.innerWidth);this.setTranslate(n,0,s,g,g),Math.abs(s)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},s.prototype.touchEnd=function(t,e,s){var o,n=this;"lg-slide"!==this.settings.mode&&this.outer.addClass("lg-slide"),setTimeout((function(){n.$container.removeClass("lg-dragging-vertical"),n.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var r=!0;if("horizontal"===n.swipeDirection){o=t.pageX-e.pageX;var l=Math.abs(t.pageX-e.pageX);o<0&&l>n.settings.swipeThreshold?(n.goToNextSlide(!0),r=!1):o>0&&l>n.settings.swipeThreshold&&(n.goToPrevSlide(!0),r=!1)}else if("vertical"===n.swipeDirection){if(o=Math.abs(t.pageY-e.pageY),n.settings.closable&&n.settings.swipeToClose&&o>100)return void n.closeGallery();n.$backdrop.css("opacity",1)}if(n.outer.find(".lg-item").removeAttr("style"),r&&Math.abs(t.pageX-e.pageX)<5){var a=i(s.target);n.isPosterElement(a)&&n.LGel.trigger(T)}n.swipeDirection=void 0})),setTimeout((function(){n.outer.hasClass("lg-dragging")||"lg-slide"===n.settings.mode||n.outer.removeClass("lg-slide")}),this.settings.speed+100)},s.prototype.enableSwipe=function(){var t=this,e={},s={},o=!1,n=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",(function(s){s.preventDefault();var o=t.getSlideItem(t.index);!i(s.target).hasClass("lg-item")&&!o.get().contains(s.target)||t.outer.hasClass("lg-zoomed")||t.lgBusy||1!==s.targetTouches.length||(n=!0,t.touchAction="swipe",t.manageSwipeClass(),e={pageX:s.targetTouches[0].pageX,pageY:s.targetTouches[0].pageY})})),this.$inner.on("touchmove.lg",(function(i){i.preventDefault(),n&&"swipe"===t.touchAction&&1===i.targetTouches.length&&(s={pageX:i.targetTouches[0].pageX,pageY:i.targetTouches[0].pageY},t.touchMove(e,s),o=!0)})),this.$inner.on("touchend.lg",(function(r){if("swipe"===t.touchAction){if(o)o=!1,t.touchEnd(s,e,r);else if(n){var l=i(r.target);t.isPosterElement(l)&&t.LGel.trigger(T)}t.touchAction=void 0,n=!1}})))},s.prototype.enableDrag=function(){var t=this,e={},s={},o=!1,n=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",(function(s){var n=t.getSlideItem(t.index);(i(s.target).hasClass("lg-item")||n.get().contains(s.target))&&(t.outer.hasClass("lg-zoomed")||t.lgBusy||(s.preventDefault(),t.lgBusy||(t.manageSwipeClass(),e={pageX:s.pageX,pageY:s.pageY},o=!0,t.outer.get().scrollLeft+=1,t.outer.get().scrollLeft-=1,t.outer.removeClass("lg-grab").addClass("lg-grabbing"),t.LGel.trigger(E))))})),i(window).on("mousemove.lg.global"+this.lgId,(function(i){o&&t.lgOpened&&(n=!0,s={pageX:i.pageX,pageY:i.pageY},t.touchMove(e,s),t.LGel.trigger(O))})),i(window).on("mouseup.lg.global"+this.lgId,(function(r){if(t.lgOpened){var l=i(r.target);n?(n=!1,t.touchEnd(s,e,r),t.LGel.trigger(L)):t.isPosterElement(l)&&t.LGel.trigger(T),o&&(o=!1,t.outer.removeClass("lg-grabbing").addClass("lg-grab"))}})))},s.prototype.manageSwipeClass=function(){var t=this.index+1,e=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(0===this.index?e=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(t=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),e>-1&&this.getSlideItem(e).addClass("lg-prev-slide"),this.getSlideItem(t).addClass("lg-next-slide")},s.prototype.goToNextSlide=function(t){var e=this,i=this.settings.loop;t&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(D,{index:this.index}),this.slide(this.index,!!t,!1,"next")):i?(this.index=0,this.LGel.trigger(D,{index:this.index}),this.slide(this.index,!!t,!1,"next")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-right-end"),setTimeout((function(){e.outer.removeClass("lg-right-end")}),400)))},s.prototype.goToPrevSlide=function(t){var e=this,i=this.settings.loop;t&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(M,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):i?(this.index=this.galleryItems.length-1,this.LGel.trigger(M,{index:this.index,fromTouch:t}),this.slide(this.index,!!t,!1,"prev")):this.settings.slideEndAnimation&&!t&&(this.outer.addClass("lg-left-end"),setTimeout((function(){e.outer.removeClass("lg-left-end")}),400)))},s.prototype.keyPress=function(){var t=this;i(window).on("keydown.lg.global"+this.lgId,(function(e){t.lgOpened&&!0===t.settings.escKey&&27===e.keyCode&&(e.preventDefault(),t.settings.allowMediaOverlap&&t.outer.hasClass("lg-can-toggle")&&t.outer.hasClass("lg-components-open")?t.outer.removeClass("lg-components-open"):t.closeGallery()),t.lgOpened&&t.galleryItems.length>1&&(37===e.keyCode&&(e.preventDefault(),t.goToPrevSlide()),39===e.keyCode&&(e.preventDefault(),t.goToNextSlide()))}))},s.prototype.arrow=function(){var t=this;this.getElementById("lg-prev").on("click.lg",(function(){t.goToPrevSlide()})),this.getElementById("lg-next").on("click.lg",(function(){t.goToNextSlide()}))},s.prototype.arrowDisable=function(t){if(!this.settings.loop&&this.settings.hideControlOnEnd){var e=this.getElementById("lg-prev"),i=this.getElementById("lg-next");t+1===this.galleryItems.length?i.attr("disabled","disabled").addClass("disabled"):i.removeAttr("disabled").removeClass("disabled"),0===t?e.attr("disabled","disabled").addClass("disabled"):e.removeAttr("disabled").removeClass("disabled")}},s.prototype.setTranslate=function(t,e,i,s,o){void 0===s&&(s=1),void 0===o&&(o=1),t.css("transform","translate3d("+e+"px, "+i+"px, 0px) scale3d("+s+", "+o+", 1)")},s.prototype.mousewheel=function(){var t=this;this.outer.on("mousewheel.lg",(function(e){!e.deltaY||t.galleryItems.length<2||(e.deltaY>0?t.goToPrevSlide():t.goToNextSlide(),e.preventDefault())}))},s.prototype.isSlideElement=function(t){return t.hasClass("lg-outer")||t.hasClass("lg-item")||t.hasClass("lg-img-wrap")},s.prototype.isPosterElement=function(t){var e=this.getSlideItem(this.index).find(".lg-video-play-button").get();return t.hasClass("lg-video-poster")||t.hasClass("lg-video-play-button")||e&&e.contains(t.get())},s.prototype.toggleMaximize=function(){var t=this;this.getElementById("lg-maximize").on("click.lg",(function(){t.$container.toggleClass("lg-inline"),t.refreshOnResize()}))},s.prototype.invalidateItems=function(){for(var t=0;t<this.items.length;t++){var e=i(this.items[t]);e.off("click.lgcustom-item-"+e.attr("data-lg-id"))}},s.prototype.manageCloseGallery=function(){var t=this;if(this.settings.closable){var e=!1;this.getElementById("lg-close").on("click.lg",(function(){t.closeGallery()})),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",(function(s){var o=i(s.target);e=!!t.isSlideElement(o)})),this.outer.on("mousemove.lg",(function(){e=!1})),this.outer.on("mouseup.lg",(function(s){var o=i(s.target);t.isSlideElement(o)&&e&&(t.outer.hasClass("lg-dragging")||t.closeGallery())})))}},s.prototype.closeGallery=function(t){var e=this;if(!this.lgOpened||!this.settings.closable&&!t)return 0;this.LGel.trigger(G),i(window).scrollTop(this.prevScrollTop);var s,o=this.items[this.index];if(this.zoomFromOrigin&&o){var l=this.mediaContainerPosition,a=l.top,g=l.bottom,h=n(o,this.$lgContent,a+g,this.galleryItems[this.index].__slideVideoInfo&&this.settings.videoMaxSize);s=r(o,this.$lgContent,a,g,h)}this.zoomFromOrigin&&s?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",s)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,i("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var c=this.zoomFromOrigin&&s?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout((function(){e.zoomFromOrigin&&s&&e.outer.removeClass("lg-zoom-from-image"),e.$container.removeClass("lg-show"),e.$backdrop.removeAttr("style").css("transition-duration",e.settings.backdropDuration+"ms"),e.outer.removeClass("lg-closing "+e.settings.startClass),e.getSlideItem(e.index).removeClass("lg-start-end-progress"),e.$inner.empty(),e.lgOpened&&e.LGel.trigger(F,{instance:e}),e.outer.get()&&e.outer.get().blur(),e.lgOpened=!1}),c+100),c+100},s.prototype.initModules=function(){this.plugins.forEach((function(t){try{t.init()}catch(t){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}}))},s.prototype.destroyModules=function(t){this.plugins.forEach((function(e){try{t?e.destroy():e.closeGallery&&e.closeGallery()}catch(t){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}}))},s.prototype.refresh=function(t){this.settings.dynamic||this.invalidateItems(),this.galleryItems=t||this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(b)},s.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},s.prototype.destroy=function(){var t=this,e=this.closeGallery(!0);setTimeout((function(){t.destroyModules(!0),t.settings.dynamic||t.invalidateItems(),i(window).off(".lg.global"+t.lgId),t.LGel.off(".lg"),t.$container.remove()}),e)},s}();return function(t,e){return new $(t,e)}},"object"===r(e)?t.exports=n():void 0===(o="function"==typeof(s=n)?s.call(e,i,e,t):s)||(t.exports=o)}},e={};function i(s){var o=e[s];if(void 0!==o)return o.exports;var n=e[s]={exports:{}};return t[s].call(n.exports,n,n.exports,i),n.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){"use strict";var t=i(668),e=i.n(t),s=function(){return s=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},s.apply(this,arguments)},o={scale:1,zoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300},n="lgContainerResize",r="lgBeforeOpen",l="lgSlideItemLoad",a="lgAfterSlide",g=function(){function t(t,e){return this.core=t,this.$LG=e,this.settings=s(s({},o),this.core.settings),this}return t.prototype.buildTemplates=function(){var t=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="Zoom in" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="Zoom out" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(t+='<button id="'+this.core.getIdName("lg-actual-size")+'" type="button" aria-label="View actual size" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(t)},t.prototype.enableZoom=function(t){var e=this,i=this.settings.enableZoomAfter+t.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&t.detail.delay?i=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout((function(){e.core.getSlideItem(t.detail.index).addClass("lg-zoomable")}),i+30)},t.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(l+".zoom",this.enableZoom.bind(this))},t.prototype.getModifier=function(t,e,i){var s=t;t=Math.abs(t);var o=this.getCurrentTransform(i);if(!o)return 1;var n=1;if("X"===e){var r=Math.sign(parseFloat(o[0]));0===t||180===t?n=1:90===t&&(n=-90===s&&1===r||90===s&&-1===r?-1:1),n*=r}else{var l=Math.sign(parseFloat(o[3]));if(0===t||180===t)n=1;else if(90===t){var a=parseFloat(o[1]),g=parseFloat(o[2]);n=Math.sign(a*g*s*l)}n*=l}return n},t.prototype.getImageSize=function(t,e,i){return 90===e&&(i="x"===i?"y":"x"),t[{y:"offsetHeight",x:"offsetWidth"}[i]]},t.prototype.getDragCords=function(t,e){return 90===e?{x:t.pageY,y:t.pageX}:{x:t.pageX,y:t.pageY}},t.prototype.getSwipeCords=function(t,e){var i=t.targetTouches[0].pageX,s=t.targetTouches[0].pageY;return 90===e?{x:s,y:i}:{x:i,y:s}},t.prototype.getDragAllowedAxises=function(t,e){var i=this.core.$lgContent.get(),s=parseFloat(t.attr("data-scale"))||1,o=t.get(),n=this.getImageSize(o,e,"y")*s>i.clientHeight,r=this.getImageSize(o,e,"x")*s>i.clientWidth;return 90===e?{allowX:n,allowY:r}:{allowX:r,allowY:n}},t.prototype.getCurrentTransform=function(t){if(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform")||"none";return"none"!==i?i.split("(")[1].split(")")[0].split(","):void 0}},t.prototype.getCurrentRotation=function(t){if(!t)return 0;var e=this.getCurrentTransform(t);return e?Math.round(Math.atan2(parseFloat(e[1]),parseFloat(e[0]))*(180/Math.PI)):0},t.prototype.zoomImage=function(t){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=e.get();if(i){var s,o,n=this.core.outer.get().getBoundingClientRect(),r=(n.width-i.offsetWidth)/2+n.left,l=(n.height-i.offsetHeight)/2+this.$LG(window).scrollTop()+n.top;1===t&&(this.positionChanged=!1),this.positionChanged&&(s=parseFloat(e.parent().attr("data-x"))/(parseFloat(e.attr("data-scale"))-1),o=parseFloat(e.parent().attr("data-y"))/(parseFloat(e.attr("data-scale"))-1),this.pageX=s+r,this.pageY=o+l,this.positionChanged=!1);var a=(t-1)*(this.pageX-r),g=(t-1)*(this.pageY-l);this.setZoomStyles({x:a,y:g,scale:t})}},t.prototype.setZoomStyles=function(t){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=this.core.outer.find(".lg-current .lg-dummy-img").first(),s=e.parent();e.attr("data-scale",t.scale+"").css("transform","scale3d("+t.scale+", "+t.scale+", 1)"),i.css("transform","scale3d("+t.scale+", "+t.scale+", 1)");var o="translate3d(-"+t.x+"px, -"+t.y+"px, 0)";s.css("transform",o),s.attr("data-x",t.x).attr("data-y",t.y)},t.prototype.setActualSize=function(t,e){var i=this;if(this.core.galleryItems[this.core.index].src&&!this.core.outer.hasClass("lg-first-slide-loading")){var s=this.getCurrentImageActualSizeScale();this.core.outer.hasClass("lg-zoomed")?this.scale=1:this.scale=this.getScale(s),this.setPageCords(e),this.beginZoom(this.scale),this.zoomImage(this.scale),setTimeout((function(){i.core.outer.removeClass("lg-grabbing").addClass("lg-grab")}),10)}},t.prototype.getNaturalWidth=function(t){var e=this.core.getSlideItem(t).find(".lg-image").first(),i=this.core.galleryItems[t].width;return i?parseFloat(i):e.get().naturalWidth},t.prototype.getActualSizeScale=function(t,e){return t>e?t/e||2:1},t.prototype.getCurrentImageActualSizeScale=function(){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first().get().offsetWidth,e=this.getNaturalWidth(this.core.index)||t;return this.getActualSizeScale(e,t)},t.prototype.getPageCords=function(t){var e={};if(t)e.x=t.pageX||t.targetTouches[0].pageX,e.y=t.pageY||t.targetTouches[0].pageY;else{var i=this.core.outer.get().getBoundingClientRect();e.x=i.width/2+i.left,e.y=i.height/2+this.$LG(window).scrollTop()+i.top}return e},t.prototype.setPageCords=function(t){var e=this.getPageCords(t);this.pageX=e.x,this.pageY=e.y},t.prototype.beginZoom=function(t){(this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t>1)?(this.core.outer.addClass("lg-zoomed"),this.core.getElementById("lg-actual-size").removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)):this.resetZoom();return t>1},t.prototype.getScale=function(t){var e=this.getCurrentImageActualSizeScale();return t<1?t=1:t>e&&(t=e),t},t.prototype.init=function(){var t=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var e=null;this.core.outer.on("dblclick.lg",(function(e){t.$LG(e.target).hasClass("lg-image")&&t.setActualSize(t.core.index,e)})),this.core.outer.on("touchstart.lg",(function(i){var s=t.$LG(i.target);1===i.targetTouches.length&&s.hasClass("lg-image")&&(e?(clearTimeout(e),e=null,t.setActualSize(t.core.index,i)):e=setTimeout((function(){e=null}),300),i.preventDefault())})),this.core.LGel.on(n+".zoom",(function(){t.core.lgOpened&&(t.setPageCords(),t.zoomImage(t.scale))})),this.core.getElementById("lg-zoom-out").on("click.lg",(function(){t.core.outer.find(".lg-current .lg-image").get()&&(t.scale-=t.settings.scale,t.scale=t.getScale(t.scale),t.beginZoom(t.scale),t.zoomImage(t.scale))})),this.core.getElementById("lg-zoom-in").on("click.lg",(function(){t.zoomIn()})),this.core.getElementById("lg-actual-size").on("click.lg",(function(){t.setActualSize(t.core.index)})),this.core.LGel.on(r+".zoom",(function(){t.core.outer.find(".lg-item").removeClass("lg-zoomable")})),this.core.LGel.on(a+".zoom",(function(e){var i=e.detail.prevIndex;t.scale=1,t.positionChanged=!1,t.resetZoom(i)})),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.pageX=this.core.outer.width()/2,this.pageY=this.core.outer.height()/2+this.$LG(window).scrollTop(),this.scale=1}},t.prototype.zoomIn=function(t){this.core.galleryItems[this.core.index].src&&(t?this.scale=t:this.scale+=this.settings.scale,this.scale=this.getScale(this.scale),this.beginZoom(this.scale),this.zoomImage(this.scale))},t.prototype.resetZoom=function(t){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var e=this.core.getElementById("lg-actual-size"),i=this.core.getSlideItem(void 0!==t?t:this.core.index);e.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),i.find(".lg-img-wrap").first().removeAttr("style data-x data-y"),i.find(".lg-image").first().removeAttr("style data-scale"),this.setPageCords()},t.prototype.getTouchDistance=function(t){return Math.sqrt((t.targetTouches[0].pageX-t.targetTouches[1].pageX)*(t.targetTouches[0].pageX-t.targetTouches[1].pageX)+(t.targetTouches[0].pageY-t.targetTouches[1].pageY)*(t.targetTouches[0].pageY-t.targetTouches[1].pageY))},t.prototype.pinchZoom=function(){var t=this,e=0,i=!1,s=1,o=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",(function(i){o=t.core.getSlideItem(t.core.index),i.preventDefault(),2===i.targetTouches.length&&(t.$LG(i.target).hasClass("lg-item")||o.get().contains(i.target))&&(s=t.scale||1,t.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),t.core.touchAction="pinch",e=t.getTouchDistance(i))})),this.core.$inner.on("touchmove.lg",(function(n){if(n.preventDefault(),2===n.targetTouches.length&&"pinch"===t.core.touchAction&&(t.$LG(n.target).hasClass("lg-item")||o.get().contains(n.target))){var r=t.getTouchDistance(n),l=e-r;!i&&Math.abs(l)>5&&(i=!0),i&&(t.scale=Math.max(1,s+.008*-l),t.zoomImage(t.scale))}})),this.core.$inner.on("touchend.lg",(function(s){"pinch"===t.core.touchAction&&(t.$LG(s.target).hasClass("lg-item")||o.get().contains(s.target))&&(i=!1,e=0,t.scale<=1?t.resetZoom():(t.scale=t.getScale(t.scale),t.zoomImage(t.scale),t.core.outer.addClass("lg-zoomed")),t.core.touchAction=void 0)}))},t.prototype.touchendZoom=function(t,e,i,s,o,n){var r=this.core.getSlideItem(this.core.index).find(".lg-img-rotate").first().get(),l=e.x-t.x,a=e.y-t.y,g=Math.abs(l)/o+1,h=Math.abs(a)/o+1;g>2&&(g+=1),h>2&&(h+=1),l*=g,a*=h;var c=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),d=this.core.getSlideItem(this.core.index).find(".lg-object").first(),u=parseFloat(c.attr("data-x"))||0,m=parseFloat(c.attr("data-y"))||0,p={};p.x=-Math.abs(u)+l*this.getModifier(n,"X",r),p.y=-Math.abs(m)+a*this.getModifier(n,"Y",r);var f=this.getPossibleSwipeDragCords(d,n);if(Math.abs(l)>15||Math.abs(a)>15){if(s&&(p.y<=-f.maxY?p.y=-f.maxY:p.y>=-f.minY&&(p.y=-f.minY)),i&&(p.x<=-f.maxX?p.x=-f.maxX:p.x>=-f.minX&&(p.x=-f.minX)),s)c.attr("data-y",Math.abs(p.y));else{var y=parseFloat(c.attr("data-y"))||0;p.y=-Math.abs(y)}if(i)c.attr("data-x",Math.abs(p.x));else{var v=parseFloat(c.attr("data-x"))||0;p.x=-Math.abs(v)}this.setZoomSwipeStyles(c,p),this.positionChanged=!0}},t.prototype.getZoomSwipeCords=function(t,e,i,s,o,n,r,l,a){var g={};if(s){if(g.y=-Math.abs(n)+(e.y-t.y)*this.getModifier(l,"Y",a),g.y<=-o.maxY){var h=-o.maxY-g.y;g.y=-o.maxY-h/6}else if(g.y>=-o.minY){var c=g.y- -o.minY;g.y=-o.minY+c/6}}else g.y=-Math.abs(n);if(i){if(g.x=-Math.abs(r)+(e.x-t.x)*this.getModifier(l,"X",a),g.x<=-o.maxX){var d=-o.maxX-g.x;g.x=-o.maxX-d/6}else if(g.x>=-o.minX){var u=g.x- -o.minX;g.x=-o.minX+u/6}}else g.x=-Math.abs(r);return g},t.prototype.getPossibleSwipeDragCords=function(t,e){var i=this.core.$lgContent,s=i.height(),o=i.width(),n=this.getImageSize(t.get(),e,"y"),r=this.getImageSize(t.get(),e,"x"),l=parseFloat(t.attr("data-scale"))||1,a=Math.abs(l),g=(s-n)/2,h=Math.abs(n*a-s+g),c=(o-r)/2,d=Math.abs(r*a-o+c);return 90===e?{minY:c,maxY:d,minX:g,maxX:h}:{minY:g,maxY:h,minX:c,maxX:d}},t.prototype.setZoomSwipeStyles=function(t,e){t.css("transform","translate3d("+e.x+"px, "+e.y+"px, 0)")},t.prototype.zoomSwipe=function(){var t,e,i=this,s={},o={},n=!1,r=!1,l=!1,a=new Date,g=(new Date,0),h=0,c=null,d=0,u=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",(function(o){if(o.preventDefault(),i.core.galleryItems[i.core.index].src&&(u=i.core.getSlideItem(i.core.index),(i.$LG(o.target).hasClass("lg-item")||u.get().contains(o.target))&&1===o.targetTouches.length&&i.core.outer.hasClass("lg-zoomed"))){a=new Date,i.core.touchAction="zoomSwipe";var n=i.core.getSlideItem(i.core.index).find(".lg-object").first();e=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first(),c=i.core.getSlideItem(i.core.index).find(".lg-img-rotate").first().get(),d=i.getCurrentRotation(c);var m=i.getDragAllowedAxises(n,Math.abs(d));l=m.allowY,((r=m.allowX)||l)&&(s=i.getSwipeCords(o,Math.abs(d))),h=parseFloat(e.attr("data-y")),g=parseFloat(e.attr("data-x")),t=i.getPossibleSwipeDragCords(n,d),i.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}})),this.core.$inner.on("touchmove.lg",(function(a){if(a.preventDefault(),1===a.targetTouches.length&&"zoomSwipe"===i.core.touchAction&&(i.$LG(a.target).hasClass("lg-item")||u.get().contains(a.target))){i.core.touchAction="zoomSwipe",o=i.getSwipeCords(a,Math.abs(d));var m=i.getZoomSwipeCords(s,o,r,l,t,h,g,d,c);(Math.abs(o.x-s.x)>15||Math.abs(o.y-s.y)>15)&&(n=!0,i.setZoomSwipeStyles(e,m))}})),this.core.$inner.on("touchend.lg",(function(t){if("zoomSwipe"===i.core.touchAction&&(i.$LG(t.target).hasClass("lg-item")||u.get().contains(t.target))){if(i.core.touchAction=void 0,i.core.outer.removeClass("lg-zoom-dragging"),!n)return;n=!1;var e=(new Date).valueOf()-a.valueOf();i.touchendZoom(s,o,r,l,e,d)}}))},t.prototype.zoomDrag=function(){var t,e,i,s,o,n,r=this,l={},a={},g=!1,h=!1,c=null,d=0,u=!1,m=!1;this.core.outer.on("mousedown.lg.zoom",(function(e){if(r.core.galleryItems[r.core.index].src){var a=r.core.getSlideItem(r.core.index);if(r.$LG(e.target).hasClass("lg-item")||a.get().contains(e.target)){t=new Date;var h=r.core.getSlideItem(r.core.index).find(".lg-object").first();n=r.core.getSlideItem(r.core.index).find(".lg-img-wrap").first(),c=r.core.getSlideItem(r.core.index).find(".lg-img-rotate").get(),d=r.getCurrentRotation(c);var p=r.getDragAllowedAxises(h,Math.abs(d));m=p.allowY,u=p.allowX,r.core.outer.hasClass("lg-zoomed")&&r.$LG(e.target).hasClass("lg-object")&&(u||m)&&(e.preventDefault(),l=r.getDragCords(e,Math.abs(d)),i=r.getPossibleSwipeDragCords(h,d),g=!0,s=parseFloat(n.attr("data-y")),o=parseFloat(n.attr("data-x")),r.core.outer.get().scrollLeft+=1,r.core.outer.get().scrollLeft-=1,r.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}})),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,(function(t){if(g){h=!0,a=r.getDragCords(t,Math.abs(d));var e=r.getZoomSwipeCords(l,a,u,m,i,s,o,d,c);r.setZoomSwipeStyles(n,e)}})),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,(function(i){if(g){if(e=new Date,g=!1,r.core.outer.removeClass("lg-zoom-dragging"),h&&(l.x!==a.x||l.y!==a.y)){a=r.getDragCords(i,Math.abs(d));var s=e.valueOf()-t.valueOf();r.touchendZoom(l,a,u,m,s,d)}h=!1}r.core.outer.removeClass("lg-grabbing").addClass("lg-grab")}))},t.prototype.closeGallery=function(){this.resetZoom()},t.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},t}(),h=function(){return h=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},h.apply(this,arguments)},c={fullScreen:!0},d=function(){function t(t,e){return this.core=t,this.$LG=e,this.settings=h(h({},c),this.core.settings),this}return t.prototype.init=function(){var t="";if(this.settings.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;t='<button type="button" aria-label="Toggle fullscreen" class="lg-fullscreen lg-icon"></button>',this.core.$toolbar.append(t),this.fullScreen()}},t.prototype.isFullScreen=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},t.prototype.requestFullscreen=function(){var t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()},t.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},t.prototype.fullScreen=function(){var t=this;this.$LG(document).on("fullscreenchange.lg.global"+this.core.lgId+" \n            webkitfullscreenchange.lg.global"+this.core.lgId+" \n            mozfullscreenchange.lg.global"+this.core.lgId+" \n            MSFullscreenChange.lg.global"+this.core.lgId,(function(){t.core.lgOpened&&t.core.outer.toggleClass("lg-fullscreen-on")})),this.core.outer.find(".lg-fullscreen").first().on("click.lg",(function(){t.isFullScreen()?t.exitFullscreen():t.requestFullscreen()}))},t.prototype.closeGallery=function(){this.isFullScreen()&&this.exitFullscreen()},t.prototype.destroy=function(){this.$LG(document).off("fullscreenchange.lg.global"+this.core.lgId+" \n            webkitfullscreenchange.lg.global"+this.core.lgId+" \n            mozfullscreenchange.lg.global"+this.core.lgId+" \n            MSFullscreenChange.lg.global"+this.core.lgId)},t}();$("[data-gallery-items]").on("click",(function(t){t.preventDefault();var i=$(t.currentTarget),s=i.data("gallery-items");i[0].addEventListener("lgAfterAppendSubHtml",(function(t){var e=t.detail.index,i="#".concat(s,"_caption_").concat(e),o=$(i).children().clone(!0,!0);$("#htw-liquid-app").length&&(o=$("#htw-liquid-app").find(i).children().clone(!0,!0)),$(".lg-container").each((function(t,e){$(e).is(":visible")&&$(e).find(".lg-sub-html").html(o)}))})),e()(i[0],{plugins:[g,d],mode:"lg-fade",download:!1,dynamic:!0,dynamicEl:window[s],mobileSettings:{showCloseIcon:!0}}).openGallery()}))}()}();