PageSourceSearch

https://www.freimettigen.ch/compiled/index/js/lightgallery-npm.a8f4f61f8f2bbaa5473a.js

js freimettigen.ch collected 2026-10-02 20:38:58 UTC 48,028 bytes, 2 lines download raw bytes

1/*! For license information please see lightgallery-npm.a8f4f61f8f2bbaa5473a.js.LICENSE.txt */
2(self.webpackChunkCMS=self.webpackChunkCMS||[]).push([[7226],{15903:function(e,t,o){var i,s;i=[o(19755)],void 0===(s=function(e){return t=e,void function(){"use strict";var e={autoplay:!1,pause:5e3,progressBar:!0,fourceAutoplay:!1,autoplayControls:!0,appendAutoplayControlsTo:".lg-toolbar"},o=function(o){return this.core=t(o).data("lightGallery"),this.$el=t(o),!(this.core.$items.length<2)&&(this.core.s=t.extend({},e,this.core.s),this.interval=!1,this.fromAuto=!0,this.canceledOnTouch=!1,this.fourceAutoplayTemp=this.core.s.fourceAutoplay,this.core.doCss()||(this.core.s.progressBar=!1),this.init(),this)};o.prototype.init=function(){var e=this;e.core.s.autoplayControls&&e.controls(),e.core.s.progressBar&&e.core.$outer.find(".lg").append('<div class="lg-progress-bar"><div class="lg-progress"></div></div>'),e.progress(),e.core.s.autoplay&&e.$el.one("onSlideItemLoad.lg.tm",(function(){e.startlAuto()})),e.$el.on("onDragstart.lg.tm touchstart.lg.tm",(function(){e.interval&&(e.cancelAuto(),e.canceledOnTouch=!0)})),e.$el.on("onDragend.lg.tm touchend.lg.tm onSlideClick.lg.tm",(function(){!e.interval&&e.canceledOnTouch&&(e.startlAuto(),e.canceledOnTouch=!1)}))},o.prototype.progress=function(){var e,t,o=this;o.$el.on("onBeforeSlide.lg.tm",(function(){o.core.s.progressBar&&o.fromAuto&&(e=o.core.$outer.find(".lg-progress-bar"),t=o.core.$outer.find(".lg-progress"),o.interval&&(t.removeAttr("style"),e.removeClass("lg-start"),setTimeout((function(){t.css("transition","width "+(o.core.s.speed+o.core.s.pause)+"ms ease 0s"),e.addClass("lg-start")}),20))),o.fromAuto||o.core.s.fourceAutoplay||o.cancelAuto(),o.fromAuto=!1}))},o.prototype.controls=function(){var e=this,o='<button type="button" aria-label="Toggle autoplay" class="lg-autoplay-button lg-icon"></button>';t(this.core.s.appendAutoplayControlsTo).append(o),e.core.$outer.find(".lg-autoplay-button").on("click.lg",(function(){t(e.core.$outer).hasClass("lg-show-autoplay")?(e.cancelAuto(),e.core.s.fourceAutoplay=!1):e.interval||(e.startlAuto(),e.core.s.fourceAutoplay=e.fourceAutoplayTemp)}))},o.prototype.startlAuto=function(){var e=this;e.core.$outer.find(".lg-progress").css("transition","width "+(e.core.s.speed+e.core.s.pause)+"ms ease 0s"),e.core.$outer.addClass("lg-show-autoplay"),e.core.$outer.find(".lg-progress-bar").addClass("lg-start"),e.interval=setInterval((function(){e.core.index+1<e.core.$items.length?e.core.index++:e.core.index=0,e.fromAuto=!0,e.core.slide(e.core.index,!1,!1,"next")}),e.core.s.speed+e.core.s.pause)},o.prototype.cancelAuto=function(){clearInterval(this.interval),this.interval=!1,this.core.$outer.find(".lg-progress").removeAttr("style"),this.core.$outer.removeClass("lg-show-autoplay"),this.core.$outer.find(".lg-progress-bar").removeClass("lg-start")},o.prototype.destroy=function(){this.cancelAuto(),this.core.$outer.find(".lg-progress-bar").remove()},t.fn.lightGallery.modules.autoplay=o}();var t}.apply(t,i))||(e.exports=s)},46043:function(e,t,o){var i,s;i=[o(19755)],void 0===(s=function(e){return t=e,void function(){"use strict";var e={fullScreen:!0};function o(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement}var i=function(o){return this.core=t(o).data("lightGallery"),this.$el=t(o),this.core.s=t.extend({},e,this.core.s),this.init(),this};i.prototype.init=function(){var e="";if(this.core.s.fullScreen){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled))return;e='<button type="button" aria-label="Toggle fullscreen" class="lg-fullscreen lg-icon"></button>',this.core.$outer.find(".lg-toolbar").append(e),this.fullScreen()}},i.prototype.requestFullscreen=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()},i.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},i.prototype.fullScreen=function(){var e=this;t(document).on("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg",(function(){e.core.$outer.toggleClass("lg-fullscreen-on")})),this.core.$outer.find(".lg-fullscreen").on("click.lg",(function(){o()?e.exitFullscreen():e.requestFullscreen()}))},i.prototype.destroy=function(){o()&&this.exitFullscreen(),t(document).off("fullscreenchange.lg webkitfullscreenchange.lg mozfullscreenchange.lg MSFullscreenChange.lg")},t.fn.lightGallery.modules.fullscreen=i}();var t}.apply(t,i))||(e.exports=s)},59490:function(e,t,o){var i,s;i=[o(19755)],void 0===(s=function(e){return t=e,void function(){"use strict";var e={hash:!0},o=function(o){return this.core=t(o).data("lightGallery"),this.core.s=t.extend({},e,this.core.s),this.core.s.hash&&(this.oldHash=window.location.hash,this.init()),this};o.prototype.init=function(){var e,o=this;o.core.$el.on("onAfterSlide.lg.tm",(function(e,t,i){history.replaceState?history.replaceState(null,null,window.location.pathname+window.location.search+"#lg="+o.core.s.galleryId+"&slide="+i):window.location.hash="lg="+o.core.s.galleryId+"&slide="+i})),t(window).on("hashchange.lg.hash",(function(){e=window.location.hash;var t=parseInt(e.split("&slide=")[1],10);e.indexOf("lg="+o.core.s.galleryId)>-1?o.core.slide(t,!1,!1):o.core.lGalleryOn&&o.core.destroy()}))},o.prototype.destroy=function(){this.core.s.hash&&(this.oldHash&&this.oldHash.indexOf("lg="+this.core.s.galleryId)<0?history.replaceState?history.replaceState(null,null,this.oldHash):window.location.hash=this.oldHash:history.replaceState?history.replaceState(null,document.title,window.location.pathname+window.location.search):window.location.hash="",this.core.$el.off(".lg.hash"))},t.fn.lightGallery.modules.hash=o}();var t}.apply(t,i))||(e.exports=s)},36735:function(e,t,o){var i,s;i=[o(19755)],void 0===(s=function(e){return t=e,void function(){"use strict";var e={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",thumbWidth:100,thumbHe
2ight:"80px",thumbContHeight:100,thumbMargin:5,exThumbImage:!1,showThumbByDefault:!0,toogleThumb:!0,pullCaptionUp:!0,enableThumbDrag:!0,enableThumbSwipe:!0,swipeThreshold:50,loadYoutubeThumbnail:!0,youtubeThumbSize:1,loadVimeoThumbnail:!0,vimeoThumbSize:"thumbnail_small",loadDailymotionThumbnail:!0},o=function(o){return this.core=t(o).data("lightGallery"),this.core.s=t.extend({},e,this.core.s),this.$el=t(o),this.$thumbOuter=null,this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.$items.length*(this.core.s.thumbWidth+this.core.s.thumbMargin),this.thumbIndex=this.core.index,this.core.s.animateThumb&&(this.core.s.thumbHeight="100%"),this.left=0,this.init(),this};o.prototype.init=function(){var e=this;this.core.s.thumbnail&&this.core.$items.length>1&&(this.core.s.showThumbByDefault&&setTimeout((function(){e.core.$outer.addClass("lg-thumb-open")}),700),this.core.s.pullCaptionUp&&this.core.$outer.addClass("lg-pull-caption-up"),this.build(),this.core.s.animateThumb&&this.core.doCss()?(this.core.s.enableThumbDrag&&this.enableThumbDrag(),this.core.s.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toogle(),this.thumbkeyPress())},o.prototype.build=function(){var e,o=this,i="",s="",l='<div class="lg-thumb-outer"><div class="lg-thumb lg-group"></div></div>';switch(this.core.s.vimeoThumbSize){case"thumbnail_large":s="640";break;case"thumbnail_medium":s="200x150";break;case"thumbnail_small":s="100x75"}function r(e,t,l){var r,a=o.core.isVideo(e,l)||{},n="";a.youtube||a.vimeo||a.dailymotion?a.youtube?r=o.core.s.loadYoutubeThumbnail?"//img.youtube.com/vi/"+a.youtube[1]+"/"+o.core.s.youtubeThumbSize+".jpg":t:a.vimeo?o.core.s.loadVimeoThumbnail?(r="//i.vimeocdn.com/video/error_"+s+".jpg",n=a.vimeo[1]):r=t:a.dailymotion&&(r=o.core.s.loadDailymotionThumbnail?"//www.dailymotion.com/thumbnail/video/"+a.dailymotion[1]:t):r=t,i+='<div data-vimeo-id="'+n+'" class="lg-thumb-item" style="width:'+o.core.s.thumbWidth+"px; height: "+o.core.s.thumbHeight+"; margin-right: "+o.core.s.thumbMargin+'px"><img src="'+r+'" /></div>',n=""}if(o.core.$outer.addClass("lg-has-thumb"),o.core.$outer.find(".lg").append(l),o.$thumbOuter=o.core.$outer.find(".lg-thumb-outer"),o.thumbOuterWidth=o.$thumbOuter.width(),o.core.s.animateThumb&&o.core.$outer.find(".lg-thumb").css({width:o.thumbTotalWidth+"px",position:"relative"}),this.core.s.animateThumb&&o.$thumbOuter.css("height",o.core.s.thumbContHeight+"px"),o.core.s.dynamic)for(var a=0;a<o.core.s.dynamicEl.length;a++)r(o.core.s.dynamicEl[a].src,o.core.s.dynamicEl[a].thumb,a);else o.core.$items.each((function(e){o.core.s.exThumbImage?r(t(this).attr("href")||t(this).attr("data-src"),t(this).attr(o.core.s.exThumbImage),e):r(t(this).attr("href")||t(this).attr("data-src"),t(this).find("img").attr("src"),e)}));o.core.$outer.find(".lg-thumb").html(i),(e=o.core.$outer.find(".lg-thumb-item")).each((function(){var e=t(this),i=e.attr("data-vimeo-id");i&&t.getJSON("//www.vimeo.com/api/v2/video/"+i+".json?callback=?",{format:"json"},(function(t){e.find("img").attr("src",t[0][o.core.s.vimeoThumbSize])}))})),e.eq(o.core.index).addClass("active"),o.core.$el.on("onBeforeSlide.lg.tm",(function(){e.removeClass("active"),e.eq(o.core.index).addClass("active")})),e.on("click.lg touchend.lg",(function(){var e=t(this);setTimeout((function(){(o.thumbClickable&&!o.core.lgBusy||!o.core.doCss())&&(o.core.index=e.index(),o.core.slide(o.core.index,!1,!0,!1))}),50)})),o.core.$el.on("onBeforeSlide.lg.tm",(function(){o.animateThumb(o.core.index)})),t(window).on("resize.lg.thumb orientationchange.lg.thumb",(function(){setTimeout((function(){o.animateThumb(o.core.index),o.thumbOuterWidth=o.$thumbOuter.width()}),200)}))},o.prototype.setTranslate=function(e){this.core.$outer.find(".lg-thumb").css({transform:"translate3d(-"+e+"px, 0px, 0px)"})},o.prototype.animateThumb=function(e){var t=this.core.$outer.find(".lg-thumb");if(this.core.s.animateThumb){var o;switch(this.core.s.currentPagerPosition){case"left":o=0;break;case"middle":o=this.thumbOuterWidth/2-this.core.s.thumbWidth/2;break;case"right":o=this.thumbOuterWidth-this.core.s.thumbWidth}this.left=(this.core.s.thumbWidth+this.core.s.thumbMargin)*e-1-o,this.left>this.thumbTotalWidth-this.thumbOuterWidth&&(this.left=this.thumbTotalWidth-this.thumbOuterWidth),this.left<0&&(this.left=0),this.core.lGalleryOn?(t.hasClass("on")||this.core.$outer.find(".lg-thumb").css("transition-duration",this.core.s.speed+"ms"),this.core.doCss()||t.animate({left:-this.left+"px"},this.core.s.speed)):this.core.doCss()||t.css("left",-this.left+"px"),this.setTranslate(this.left)}},o.prototype.enableThumbDrag=function(){var e=this,o=0,i=0,s=!1,l=!1,r=0;e.$thumbOuter.addClass("lg-grab"),e.core.$outer.find(".lg-thumb").on("mousedown.lg.thumb",(function(t){e.thumbTotalWidth>e.thumbOuterWidth&&(t.preventDefault(),o=t.pageX,s=!0,e.core.$outer.scrollLeft+=1,e.core.$outer.scrollLeft-=1,e.thumbClickable=!1,e.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))})),t(window).on("mousemove.lg.thumb",(function(t){s&&(r=e.left,l=!0,i=t.pageX,e.$thumbOuter.addClass("lg-dragging"),(r-=i-o)>e.thumbTotalWidth-e.thumbOuterWidth&&(r=e.thumbTotalWidth-e.thumbOuterWidth),r<0&&(r=0),e.setTranslate(r))})),t(window).on("mouseup.lg.thumb",(function(){l?(l=!1,e.$thumbOuter.removeClass("lg-dragging"),e.left=r,Math.abs(i-o)<e.core.s.swipeThreshold&&(e.thumbClickable=!0)):e.thumbClickable=!0,s&&(s=!1,e.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab"))}))},o.prototype.enableThumbSwipe=function(){var e=this,t=0,o=0,i=!1,s=0;e.core.$outer.find(".lg-thumb").on("touchstart.lg",(function(o){e.thumbTotalWidth>e.thumbOuterWidth&&(o.preventDefault(),t=o.originalEvent.targetTouches[0].pageX,e.thumbClickable=!1)})),e.core.$outer.find(".lg-thumb").on("touchmove.lg",(function(l){e.thumbTotalWidth>e.thumbOuterWidth&&(l.preventDefault(),o=l.originalEvent.targetTouches[0].pageX,i=!0,e.$thumbOuter.addClass("lg-dragging"),s=e.left,(s-=o-t)>e.thumbTotalWidth-e.thumbOuterWidth&&(s=e.thumbTotalWidth-e.thumbOuterWidth),s<0&&(s=0),e.setTranslate(s))})),e.core.$outer.find(".lg-thumb").on("touchend.lg",(function(){e.thumbTotalWidth>e.thumbOuterWidth&&i?(i=!1,e.$thumbOuter.removeClass("lg-dragging"),Math.abs(o-t)<e.core.s.swipeThreshold&&(e.thumbClickable=!0),e.left=s):e.thumbClickable=!0}))},o.prototype.toogle=function(){var e=this;e.core.s.toogleThumb&&(e.core.$outer.addClass("lg-can-toggle"),e.$thumbOuter.append('<button type="button" aria-label="Toggle thumbnails" class="lg-toogle-thumb lg-icon"></button>'),e.core.$outer.find(".lg-toogle-thumb").on("click.lg",(function(){e.core.$outer.toggleClass("lg-thumb-open")})))},o.prototype.thumbkeyPress=function(){var e=this;t(window).on("keydown.lg.thumb",(function(t){38===t.keyCode?(t.preventDefault(),e.core.$outer.addClass("lg-thumb-open")):40===t.keyCode&&(t.preventDefault(),e.core.$outer.removeClass("lg-thumb-open"))}))},o.prototype.destroy=function(){this.core.s.thumbnail&&this.core.$items.length>1&&(t(window).off("resize.lg.thumb orientationchange.lg.thumb keydown.lg.thumb"),this.$thumbOuter.remove(),this.core.$outer.removeClass("lg-has-thumb"))},t.fn.lightGallery.modules.Thumbnail=o}();var t}.apply(t,i))||(e.exports=s)},7380:function(e,t,o){var i,s;i=[o(19755)],void 0===(s=function(e){return t=e,void function(){"use strict";var e={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},o=function(o){return this.core=t(o).data("lightGallery"),this.$el=t(o),this.core.s=t.extend({},e,this.core.s),this.videoLoaded=!1,this.init(),this};function i(e,t,o,i){var s=this;if(s.core.$slide.eq(t).find(".lg-video").append(s.loadVideo(o,"lg-object",!0,t,i)),i)if(s.core.s.videojs)try{videojs(s.core.$slide.eq(t).find(".lg-html5").get(0),s.core.s.videojsOptions,(function(){!s.videoLoaded&&s.core.s.autoplayFirstVideo&&this.play()}))}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else!s.videoLoaded&&s.core.s.autoplayFirstVideo&&s.core.$slide.eq(t).find(".lg-html5").get(0).play()}function s(e,t){var o=this.core.$slide.eq(t).find(".lg-video-cont");o.hasClass("lg-has-iframe")||(o.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}function l(e,o,i){var s,l=this,r=l.core.$slide.eq(o),a=r.find(".lg-youtube").get(0),n=r.find(".lg-vimeo").get(0),d=r.find(".lg-dailymotion").get(0),c=r.find(".lg-vk").get(0),u=r.find(".lg-html5").get(0);if(a)a.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(n)try{new Vimeo.Player(n).pause().catch((function(e){console.error("Unable to pause the video:",e.name)}))}catch(e){console.warn("lightGallery:- Make sure you have included https://github.com/vimeo/player.js")}else if(d)d.contentWindow.postMessage("pause","*");else if(u)if(l.core.s.videojs)try{videojs(u).pause()}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else u.pause();c&&t(c).attr("src",t(c).attr("src").replace("&autoplay","&noplay")),s=l.core.s.dynamic?l.core.s.dynamicEl[i].src:l.core.$items.eq(i).attr("href")||l.core.$items.eq(i).attr("data-src");var h=l.core.isVideo(s,i)||{};(h.youtube||h.vimeo||h.dailymotion||h.vk)&&l.core.$outer.addClass("lg-hide-download")}o.prototype.init=function(){var e=this;e.core.$el.on("hasVideo.lg.tm",i.bind(this)),e.core.$el.on("onAferAppendSlide.lg.tm",s.bind(this)),e.core.doCss()&&e.core.$items.length>1&&(e.core.s.enableSwipe||e.core.s.enableDrag)?e.core.$el.on("onSlideClick.lg.tm",(function(){var t=e.core.$slide.eq(e.core.index);e.loadVideoOnclick(t)})):e.core.$slide.on("click.lg",(function(){e.loadVideoOnclick(t(this))})),e.core.$el.on("onBeforeSlide.lg.tm",l.bind(this)),e.core.$el.on("onAfterSlide.lg.tm",(function(t,o){e.core.$slide.eq(o).removeClass("lg-video-playing")})),e.core.s.autoplayFirstVideo&&e.core.$el.on("onAferAppendSlide.lg.tm",(function(t,o){if(!e.core.lGalleryOn){var i=e.core.$slide.eq(o);setTimeout((function(){e.loadVideoOnclick(i)}),100)}}))},o.prototype.loadVideo=function(e,o,i,s,l){var r,a=this,n="",d=1,c="",u=this.core.isVideo(e,s)||{};if(r=(r=a.core.s.dynamic?a.core.s.dynamicEl[a.core.index].title:a.core.$items.eq(a.core.index).attr("title")||a.core.$items.eq(a.core.index).find("img").first().attr("alt"))?'title="'+r+'"':"",i&&(d=this.videoLoaded?0:this.core.s.autoplayFirstVideo?1:0),u.youtube)c="?wmode=
2opaque&autoplay="+d+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(c=c+"&"+t.param(this.core.s.youtubePlayerParams)),n='<iframe allow="autoplay" class="lg-video-object lg-youtube '+o+'" '+r+' width="560" height="315" src="//www.youtube.com/embed/'+u.youtube[1]+c+'" frameborder="0" allowfullscreen></iframe>';else if(u.vimeo)c="?autoplay="+d,this.core.s.vimeoPlayerParams&&(c=c+"&"+t.param(this.core.s.vimeoPlayerParams)),n='<iframe allow="autoplay" class="lg-video-object lg-vimeo '+o+'" '+r+' width="560" height="315"  src="//player.vimeo.com/video/'+u.vimeo[1]+c+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';else if(u.dailymotion)c="?wmode=opaque&autoplay="+d+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(c=c+"&"+t.param(this.core.s.dailymotionPlayerParams)),n='<iframe allow="autoplay" class="lg-video-object lg-dailymotion '+o+'" '+r+' width="560" height="315" src="//www.dailymotion.com/embed/video/'+u.dailymotion[1]+c+'" frameborder="0" allowfullscreen></iframe>';else if(u.html5){var h=l.substring(0,1);"."!==h&&"#"!==h||(l=t(l).html()),n=l}else u.vk&&(c="&autoplay="+d,this.core.s.vkPlayerParams&&(c=c+"&"+t.param(this.core.s.vkPlayerParams)),n='<iframe allow="autoplay" class="lg-video-object lg-vk '+o+'" '+r+' width="560" height="315" src="//vk.com/video_ext.php?'+u.vk[1]+c+'" frameborder="0" allowfullscreen></iframe>');return n},o.prototype.loadVideoOnclick=function(e){var t=this;if(e.find(".lg-object").hasClass("lg-has-poster")&&e.find(".lg-object").is(":visible"))if(e.hasClass("lg-has-video")){var o=e.find(".lg-youtube").get(0),i=e.find(".lg-vimeo").get(0),s=e.find(".lg-dailymotion").get(0),l=e.find(".lg-html5").get(0);if(o)o.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(i)try{new Vimeo.Player(i).play().catch((function(e){console.error("error playing the video:",e.name)}))}catch(e){console.warn("lightGallery:- Make sure you have included https://github.com/vimeo/player.js")}else if(s)s.contentWindow.postMessage("play","*");else if(l)if(t.core.s.videojs)try{videojs(l).play()}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else l.play();e.addClass("lg-video-playing")}else{e.addClass("lg-video-playing lg-has-video");var r=function(o,i){if(e.find(".lg-video").append(t.loadVideo(o,"",!1,t.core.index,i)),i)if(t.core.s.videojs)try{videojs(t.core.$slide.eq(t.core.index).find(".lg-html5").get(0),t.core.s.videojsOptions,(function(){this.play()}))}catch(e){console.error("lightGallery:- Make sure you have included videojs")}else t.core.$slide.eq(t.core.index).find(".lg-html5").get(0).play()};t.core.s.dynamic?r(t.core.s.dynamicEl[t.core.index].src,t.core.s.dynamicEl[t.core.index].html):r(t.core.$items.eq(t.core.index).attr("href")||t.core.$items.eq(t.core.index).attr("data-src"),t.core.$items.eq(t.core.index).attr("data-html"));var a=e.find(".lg-object");e.find(".lg-video").append(a),e.find(".lg-video-object").hasClass("lg-html5")||(e.removeClass("lg-complete"),e.find(".lg-video-object").on("load.lg error.lg",(function(){e.addClass("lg-complete")})))}},o.prototype.destroy=function(){this.videoLoaded=!1},t.fn.lightGallery.modules.video=o}();var t}.apply(t,i))||(e.exports=s)},74431:function(e,t,o){var i,s;i=[o(19755)],void 0===(s=function(e){return t=e,void function(){"use strict";var e,o,i={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:(e=!1,o=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./),o&&parseInt(o[2],10)<54&&(e=!0),e)},s=function(e){return this.core=t(e).data("lightGallery"),this.core.s=t.extend({},i,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=t(window).width()/2,this.pageY=t(window).height()/2+t(window).scrollTop()),this};s.prototype.init=function(){var e=this,o='<button type="button" aria-label="Zoom in" id="lg-zoom-in" class="lg-icon"></button><button type="button" aria-label="Zoom out" id="lg-zoom-out" class="lg-icon"></button>';e.core.s.actualSize&&(o+='<button type="button" aria-label="Actual size" id="lg-actual-size" class="lg-icon"></button>'),e.core.s.useLeftForZoom?e.core.$outer.addClass("lg-use-left-for-zoom"):e.core.$outer.addClass("lg-use-transition-for-zoom"),this.core.$outer.find(".lg-toolbar").append(o),e.core.$el.on("onSlideItemLoad.lg.tm.zoom",(function(o,i,s){var l=e.core.s.enableZoomAfter+s;t("body").hasClass("lg-from-hash")&&s?l=0:t("body").removeClass("lg-from-hash"),e.zoomabletimeout=setTimeout((function(){e.core.$slide.eq(i).addClass("lg-zoomable")}),l+30)}));var i=1,s=function(o){var i=e.core.$outer.find(".lg-current .lg-image"),s=(t(window).width()-i.prop("offsetWidth"))/2,l=(t(window).height()-i.prop("offsetHeight"))/2+t(window).scrollTop(),r=(o-1)*(e.pageX-s),a=(o-1)*(e.pageY-l);i.css("transform","scale3d("+o+", "+o+", 1)").attr("data-scale",o),e.core.s.useLeftForZoom?i.parent().css({left:-r+"px",to
2p:-a+"px"}).attr("data-x",r).attr("data-y",a):i.parent().css("transform","translate3d(-"+r+"px, -"+a+"px, 0)").attr("data-x",r).attr("data-y",a)},l=function(){i>1?e.core.$outer.addClass("lg-zoomed"):e.resetZoom(),i<1&&(i=1),s(i)},r=function(o,s,r,a){var n,d=s.prop("offsetWidth");n=e.core.s.dynamic?e.core.s.dynamicEl[r].width||s[0].naturalWidth||d:e.core.$items.eq(r).attr("data-width")||s[0].naturalWidth||d,e.core.$outer.hasClass("lg-zoomed")?i=1:n>d&&(i=n/d||2),a?(e.pageX=t(window).width()/2,e.pageY=t(window).height()/2+t(window).scrollTop()):(e.pageX=o.pageX||o.originalEvent.targetTouches[0].pageX,e.pageY=o.pageY||o.originalEvent.targetTouches[0].pageY),l(),setTimeout((function(){e.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")}),10)},a=!1;e.core.$el.on("onAferAppendSlide.lg.tm.zoom",(function(t,o){var i=e.core.$slide.eq(o).find(".lg-image");i.on("dblclick",(function(e){r(e,i,o)})),i.on("touchstart",(function(e){a?(clearTimeout(a),a=null,r(e,i,o)):a=setTimeout((function(){a=null}),300),e.preventDefault()}))})),t(window).on("resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom",(function(){e.pageX=t(window).width()/2,e.pageY=t(window).height()/2+t(window).scrollTop(),s(i)})),t("#lg-zoom-out").on("click.lg",(function(){e.core.$outer.find(".lg-current .lg-image").length&&(i-=e.core.s.scale,l())})),t("#lg-zoom-in").on("click.lg",(function(){e.core.$outer.find(".lg-current .lg-image").length&&(i+=e.core.s.scale,l())})),t("#lg-actual-size").on("click.lg",(function(t){r(t,e.core.$slide.eq(e.core.index).find(".lg-image"),e.core.index,!0)})),e.core.$el.on("onBeforeSlide.lg.tm",(function(){i=1,e.resetZoom()})),e.zoomDrag(),e.zoomSwipe()},s.prototype.getCurrentTransform=function(e){if(!e)return 0;var t=window.getComputedStyle(e,null),o=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform")||"none";return"none"!==o?o.split("(")[1].split(")")[0].split(","):0},s.prototype.getCurrentRotation=function(e){if(!e)return 0;var t=this.getCurrentTransform(e);return t?Math.round(Math.atan2(t[1],t[0])*(180/Math.PI)):0},s.prototype.getModifier=function(e,t,o){var i=e;e=Math.abs(e);var s=this.getCurrentTransform(o);if(!s)return 1;var l=1;if("X"===t){var r=Math.sign(parseFloat(s[0]));0===e||180===e?l=1:90===e&&(l=-90===i&&1===r||90===i&&-1===r?-1:1),l*=r}else{var a=Math.sign(parseFloat(s[3]));if(0===e||180===e)l=1;else if(90===e){var n=parseFloat(s[1]),d=parseFloat(s[2]);l=Math.sign(n*d*i*a)}l*=a}return l},s.prototype.getImageSize=function(e,t,o){var i={y:"offsetHeight",x:"offsetWidth"};return 90===t&&(o="x"===o?"y":"x"),e.prop(i[o])},s.prototype.getDragCords=function(e,t){return 90===t?{x:e.pageY,y:e.pageX}:{x:e.pageX,y:e.pageY}},s.prototype.getSwipeCords=function(e,t){var o=e.originalEvent.targetTouches[0].pageX,i=e.originalEvent.targetTouches[0].pageY;return 90===t?{x:i,y:o}:{x:o,y:i}},s.prototype.getPossibleDragCords=function(e,t){var o=(this.core.$outer.find(".lg").height()-this.getImageSize(e,t,"y"))/2,i=Math.abs(this.getImageSize(e,t,"y")*Math.abs(e.attr("data-scale"))-this.core.$outer.find(".lg").height()+o),s=(this.core.$outer.find(".lg").width()-this.getImageSize(e,t,"x"))/2,l=Math.abs(this.getImageSize(e,t,"x")*Math.abs(e.attr("data-scale"))-this.core.$outer.find(".lg").width()+s);return 90===t?{minY:s,maxY:l,minX:o,maxX:i}:{minY:o,maxY:i,minX:s,maxX:l}},s.prototype.getDragAllowedAxises=function(e,t){var o=this.getImageSize(e,t,"y")*e.attr("data-scale")>this.core.$outer.find(".lg").height(),i=this.getImageSize(e,t,"x")*e.attr("data-scale")>this.core.$outer.find(".lg").width();return 90===t?{allowX:o,allowY:i}:{allowX:i,allowY:o}},s.prototype.resetZoom=function(){this.core.$outer.removeClass("lg-zoomed"),this.core.$slide.find(".lg-img-wrap").removeAttr("style data-x data-y"),this.core.$slide.find(".lg-image").removeAttr("style data-scale"),this.pageX=t(window).width()/2,this.pageY=t(window).height()/2+t(window).scrollTop()},s.prototype.zoomSwipe=function(){var e,t=this,o={},i={},s=!1,l=!1,r=!1,a=0;t.core.$slide.on("touchstart.lg",(function(i){if(t.core.$outer.hasClass("lg-zoomed")){var s=t.core.$slide.eq(t.core.index).find(".lg-object");e=t.core.$slide.eq(t.core.index).find(".lg-img-rotate")[0],a=t.getCurrentRotation(e);
2var n=t.getDragAllowedAxises(s,Math.abs(a));r=n.allowY,((l=n.allowX)||r)&&(i.preventDefault(),o=t.getSwipeCords(i,Math.abs(a)))}})),t.core.$slide.on("touchmove.lg",(function(n){if(t.core.$outer.hasClass("lg-zoomed")){var d,c,u=t.core.$slide.eq(t.core.index).find(".lg-img-wrap");n.preventDefault(),s=!0,i=t.getSwipeCords(n,Math.abs(a)),t.core.$outer.addClass("lg-zoom-dragging"),c=r?-Math.abs(u.attr("data-y"))+(i.y-o.y)*t.getModifier(a,"Y",e):-Math.abs(u.attr("data-y")),d=l?-Math.abs(u.attr("data-x"))+(i.x-o.x)*t.getModifier(a,"X",e):-Math.abs(u.attr("data-x")),(Math.abs(i.x-o.x)>15||Math.abs(i.y-o.y)>15)&&(t.core.s.useLeftForZoom?u.css({left:d+"px",top:c+"px"}):u.css("transform","translate3d("+d+"px, "+c+"px, 0)"))}})),t.core.$slide.on("touchend.lg",(function(){t.core.$outer.hasClass("lg-zoomed")&&s&&(s=!1,t.core.$outer.removeClass("lg-zoom-dragging"),t.touchendZoom(o,i,l,r,a))}))},s.prototype.zoomDrag=function(){var e,o=this,i={},s={},l=!1,r=!1,a=!1,n=!1,d=0;o.core.$slide.on("mousedown.lg.zoom",(function(s){e=o.core.$slide.eq(o.core.index).find(".lg-img-rotate")[0],d=o.getCurrentRotation(e);var r=o.core.$slide.eq(o.core.index).find(".lg-object"),c=o.getDragAllowedAxises(r,Math.abs(d));n=c.allowY,a=c.allowX,o.core.$outer.hasClass("lg-zoomed")&&t(s.target).hasClass("lg-object")&&(a||n)&&(s.preventDefault(),i=o.getDragCords(s,Math.abs(d)),l=!0,o.core.$outer.scrollLeft+=1,o.core.$outer.scrollLeft-=1,o.core.$outer.removeClass("lg-grab").addClass("lg-grabbing"))})),t(window).on("mousemove.lg.zoom",(function(t){if(l){var c,u,h=o.core.$slide.eq(o.core.index).find(".lg-img-wrap");r=!0,s=o.getDragCords(t,Math.abs(d)),o.core.$outer.addClass("lg-zoom-dragging"),u=n?-Math.abs(h.attr("data-y"))+(s.y-i.y)*o.getModifier(d,"Y",e):-Math.abs(h.attr("data-y")),c=a?-Math.abs(h.attr("data-x"))+(s.x-i.x)*o.getModifier(d,"X",e):-Math.abs(h.attr("data-x")),o.core.s.useLeftForZoom?h.css({left:c+"px",top:u+"px"}):h.css("transform","translate3d("+c+"px, "+u+"px, 0)")}})),t(window).on("mouseup.lg.zoom",(function(e){l&&(l=!1,o.core.$outer.removeClass("lg-zoom-dragging"),!r||i.x===s.x&&i.y===s.y||(s=o.getDragCords(e,Math.abs(d)),o.touchendZoom(i,s,a,n,d)),r=!1),o.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")}))},s.prototype.touchendZoom=function(e,t,o,i,s){var l=this,r=l.core.$slide.eq(l.core.index).find(".lg-img-wrap"),a=l.core.$slide.eq(l.core.index).find(".lg-object"),n=l.core.$slide.eq(l.core.index).find(".lg-img-rotate")[0],d=-Math.abs(r.attr("data-x"))+(t.x-e.x)*l.getModifier(s,"X",n),c=-Math.abs(r.attr("data-y"))+(t.y-e.y)*l.getModifier(s,"Y",n),u=l.getPossibleDragCords(a,Math.abs(s));(Math.abs(t.x-e.x)>15||Math.abs(t.y-e.y)>15)&&(i&&(c<=-u.maxY?c=-u.maxY:c>=-u.minY&&(c=-u.minY)),o&&(d<=-u.maxX?d=-u.maxX:d>=-u.minX&&(d=-u.minX)),i?r.attr("data-y",Math.abs(c)):c=-Math.abs(r.attr("data-y")),o?r.attr("data-x",Math.abs(d)):d=-Math.abs(r.attr("data-x")),l.core.s.useLeftForZoom?r.css({left:d+"px",top:c+"px"}):r.css("transform","translate3d("+d+"px, "+c+"px, 0)"))},s.prototype.destroy=function(){var e=this;e.core.$el.off(".lg.zoom"),t(window).off(".lg.zoom"),e.core.$slide.off(".lg.zoom"),e.core.$el.off(".lg.tm.zoom"),e.resetZoom(),clearTimeout(e.zoomabletimeout),e.zoomabletimeout=!1},t.fn.lightGallery.modules.zoom=s}();var t}.apply(t,i))||(e.exports=s)},97768:function(e,t,o){var i,s;i=[o(19755)],s=function(e){return t=e,void function(){"use strict";var e={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,ariaLabelledby:"",ariaDescribedby:"",closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1,supportLegacyBrowser:!0};function o(o,i){if(this.el=o,this.$el=t(o),this.s=t.extend({},e,i),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBarTimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=t(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(t(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}o.prototype.init=function(){var e=this;e.s.preload>e.$items.length&&(e.s.preload=e.$items.length);var o=window.location.hash;o.indexOf("lg="+this.s.galleryId)>0&&(e.index=parseInt(o.split("&slide=")[1],10),t("body").addClass("lg-from-hash"),t("body").hasClass("lg-on")||(setTimeout((function(){e.build(e.index)})),t("body").addClass("lg-on"))),e.s.dynamic?(e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||0,t("body").hasClass("lg-on")||setTimeout((function(){e.build(e.index),t("body").addClass("lg-on")}))):e.$items.on("click.lgcustom",(function(o){try{o.preventDefault(),o.preventDefault()}catch(e){o.returnValue=!1}e.$el.trigger("onBeforeOpen.lg"),e.index=e.s.index||e.$items.index(this),t("body").hasClass("lg-on")||(e.build(e.index),t("body").addClass("lg-on"))}))},o.prototype.build=function(e){var o=this;o.structure(),t.each(t.fn.lightGallery.modules,(function(e){o.modules[e]=new t.fn.lightGallery.modules[e](o.el)})),o.slide(e,!1,!1,!1),o.s.keyPress&&o.keyPress(),o.$items.length>1?(o.arrow(),setTimeout((function(){o.enableDrag(),o.enableSwipe()}),50),o.s.mousewheel&&o.mousewheel()):o.$slide.on("click.lg",(function(){o.$el.trigger("onSlideClick.lg")})),o.counter(),o.closeGallery(),o.$el.trigger("onAfterOpen.lg"),o.s.hideBarsDelay>
20&&o.$outer.on("mousemove.lg click.lg touchstart.lg",(function(){o.$outer.removeClass("lg-hide-items"),clearTimeout(o.hideBarTimeout),o.hideBarTimeout=setTimeout((function(){o.$outer.addClass("lg-hide-items")}),o.s.hideBarsDelay)})),o.$outer.trigger("mousemove.lg")},o.prototype.structure=function(){var e,o="",i="",s=0,l="",r=this;for(t("body").append('<div class="lg-backdrop"></div>'),t(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),s=0;s<this.$items.length;s++)o+='<div class="lg-item"></div>';if(this.s.controls&&this.$items.length>1&&(i='<div class="lg-actions"><button type="button" aria-label="Previous slide" class="lg-prev lg-icon">'+this.s.prevHtml+'</button><button type="button" aria-label="Next slide" class="lg-next lg-icon">'+this.s.nextHtml+"</button></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(l='<div role="status" aria-live="polite" class="lg-sub-html"></div>'),e='<div tabindex="-1" aria-modal="true" '+(this.s.ariaLabelledby?'aria-labelledby="'+this.s.ariaLabelledby+'"':"")+" "+(this.s.ariaDescribedby?'aria-describedby="'+this.s.ariaDescribedby+'"':"")+' role="dialog" class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+o+'</div><div class="lg-toolbar lg-group"><button type="button" aria-label="Close gallery" class="lg-close lg-icon"></button></div>'+i+l+"</div></div>",t("body").append(e),this.$outer=t(".lg-outer"),this.$outer.focus(),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),r.setTop(),t(window).on("resize.lg orientationchange.lg",(function(){setTimeout((function(){r.setTop()}),100)})),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var a=this.$outer.find(".lg-inner");a.css("transition-timing-function",this.s.cssEasing),a.css("transition-duration",this.s.speed+"ms")}setTimeout((function(){t(".lg-backdrop").addClass("in")})),setTimeout((function(){r.$outer.addClass("lg-visible")}),this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" aria-label="Download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=t(window).scrollTop()},o.prototype.setTop=function(){if("100%"!==this.s.height){var e=t(window).height(),o=(e-parseInt(this.s.height,10))/2,i=this.$outer.find(".lg");e>=parseInt(this.s.height,10)?i.css("top",o+"px"):i.css("top","0px")}},o.prototype.doCss=function(){var e=function(){var e=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],t=document.documentElement,o=0;for(o=0;o<e.length;o++)if(e[o]in t.style)return!0};return!!e()},o.prototype.isVideo=function(e,t){var o;if(o=this.s.dynamic?this.s.dynamicEl[t].html:this.$items.eq(t).attr("data-html"),!e)return o?{html5:!0}:(console.error("lightGallery :- data-src is not provided on slide item "+(t+1)+". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"),!1);var i=e.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),s=e.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)/i),l=e.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),r=e.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return i?{youtube:i}:s?{vimeo:s}:l?{dailymotion:l}:r?{vk:r}:void 0},o.prototype.counter=function(){this.s.counter&&t(this.s.appendCounterTo).append('<div id="lg-counter" role="status" aria-live="polite"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},o.prototype.addHtml=function(e){var o,i,s=null;if(this.s.dynamic?this.s.dynamicEl[e].subHtmlUrl?o=this.s.dynamicEl[e].subHtmlUrl:s=this.s.dynamicEl[e].subHtml:(i=this.$items.eq(e)).attr("data-sub-html-url")?o=i.attr("data-sub-html-url"):(s=i.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!s&&(s=i.attr("title")||i.find("img").first().attr("alt"))),!o)if(null!=s){var l=s.substring(0,1);"."!==l&&"#"!==l||(s=this.s.subHtmlSelectorRelative&&!this.s.dynamic?i.find(s).html():t(s).html())}else s="";".lg-sub-html"===this.s.appendSubHtmlTo?o?this.$outer.find(this.s.appendSubHtmlTo).load(o):this.$outer.find(this.s.appendSubHtmlTo).html(s):o?this.$slide.eq(e).load(o):this.$slide.eq(e).append(s),null!=s&&(""===s?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[e])},o.prototype.preload=function(e){var t=1,o=1;for(t=1;t<=this.s.preload&&!(t>=this.$items.length-e);t++)this.loadContent(e+t,!1,0);for(o=1;o<=this.s.preload&&!(e-o<0);o++)this.loadContent(e-o,!1,0)},o.prototype.loadContent=function(e,o,i){var s,l,r,a,n,d,c,u=this,h=!1,g=function(e){for(var o=[],i=[],s=0;s<e.length;s++){var r=e[s].split(" ");""===r[0]&&r.splice(0,1),i.push(r[0]),o.push(r[1])}for(var a=t(window).width(),n=0;n<o.length;n++)if(parseInt(o[n],10)>a){l=i[n];break}};if(u.s.dynamic)u.s.dynamicEl[e].poster&&(h=!0,r=u.s.dynamicEl[e].poster),d=u.s.dynamicEl[e].html,l=u.s.dynamicEl[e].src,c=u.s.dynamicEl[e].alt,u.s.dynamicEl[e].responsive&&g(u.s.dynamicEl[e].responsive.split(",")),a=u.s.dynamicEl[e].srcset,n=u.s.dynamicEl[e].sizes;else{var m=u.$items.eq(e);m.attr("data-poster")&&(h=!0,r=m.attr("data-poster")),d=m.attr("data-html"),l=m.attr("href")||m.attr("data-src"),c=m.attr("title")||m.find("img").first().attr("alt"),m.attr("data-responsive")&&g(m.attr("data-responsive").split(",")),a=m.attr("data-srcset"),n=m.attr("data-sizes")}var p=!1;u.s.dynamic?u.s.dynamicEl[e].iframe&&(p=!0):"true"===u.$items.eq(e).attr("data-iframe")&&(p=!0);var f=u.isVideo(l,e);if(!u.$slide.eq(e).hasClass("lg-loaded")){if(p)u.$slide.eq(e).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:'+u.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+l+'"  allowfullscreen="true"></iframe></div></div>');else if(h){var b="";b=f&&f.youtube?"lg-has-youtube":f&&f.vimeo?"lg-has-vimeo":"lg-has-html5",u.$slide.eq(e).prepend('<div class="lg-video-cont '+b+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+r+'" /></div></div>')}else f?(u.$slide.eq(e).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),u.$el.trigger("hasVideo.lg",[e,l,d])):(c=c?'alt="'+c+'"':"",u.$slide.eq(e).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" '+c+' src="'+l+'" /></div>'));if(u.$el.trigger("onAferAppendSlide.lg",[e]),s=u.$slide.eq(e).find(".lg-object"),n&&s.attr("sizes",n),a&&(s.attr("srcset",a),this.s.supportLegacyBrowser))try{picturefill({elements:[s[0]]})}catch(e){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}".lg-sub-html"!==this.s.appendSubHtmlTo&&u.addHtml(e),u.$slide.eq(e).addClass("lg-loaded")}u.$slide.eq(e).find(".lg-object").on("load.lg error.lg",(function(){var o=0;i&&!t("body").hasClass("lg-from-hash")&&(o=i),setTimeout((function(){u.$slide.eq(e).addClass("lg-complete"),u.$el.trigger("onSlideItemLoad.lg",[e,i||0])}),o)})),f&&f.html5&&!h&&u.$slide.eq(e).addClass("lg-complete"),!0===o&&(u.$slide.eq(e).hasClass("lg-complete")?u.preload(e):u.$slide.eq(e).find(".lg-object").on("load.lg error.lg",(function(){u.preload(e)})))},o.prototype.slide=function(e,o,i,s){var l=this.$outer.find(".lg-current").index(),r=this;
2if(!r.lGalleryOn||l!==e){var a,n,d,c=this.$slide.length,u=r.lGalleryOn?this.s.speed:0;r.lgBusy||(this.s.download&&((a=r.s.dynamic?!1!==r.s.dynamicEl[e].downloadUrl&&(r.s.dynamicEl[e].downloadUrl||r.s.dynamicEl[e].src):"false"!==r.$items.eq(e).attr("data-download-url")&&(r.$items.eq(e).attr("data-download-url")||r.$items.eq(e).attr("href")||r.$items.eq(e).attr("data-src")))?(t("#lg-download").attr("href",a),r.$outer.removeClass("lg-hide-download")):r.$outer.addClass("lg-hide-download")),this.$el.trigger("onBeforeSlide.lg",[l,e,o,i]),r.lgBusy=!0,clearTimeout(r.hideBarTimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout((function(){r.addHtml(e)}),u),this.arrowDisable(e),s||(e<l?s="prev":e>l&&(s="next")),o?(this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide"),c>2?(n=e-1,d=e+1,(0===e&&l===c-1||e===c-1&&0===l)&&(d=0,n=c-1)):(n=0,d=1),"prev"===s?r.$slide.eq(d).addClass("lg-next-slide"):r.$slide.eq(n).addClass("lg-prev-slide"),r.$slide.eq(e).addClass("lg-current")):(r.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===s?(this.$slide.eq(e).addClass("lg-prev-slide"),this.$slide.eq(l).addClass("lg-next-slide")):(this.$slide.eq(e).addClass("lg-next-slide"),this.$slide.eq(l).addClass("lg-prev-slide")),setTimeout((function(){r.$slide.removeClass("lg-current"),r.$slide.eq(e).addClass("lg-current"),r.$outer.removeClass("lg-no-trans")}),50)),r.lGalleryOn?(setTimeout((function(){r.loadContent(e,!0,0)}),this.s.speed+50),setTimeout((function(){r.lgBusy=!1,r.$el.trigger("onAfterSlide.lg",[l,e,o,i])}),this.s.speed)):(r.loadContent(e,!0,r.s.backdropDuration),r.lgBusy=!1,r.$el.trigger("onAfterSlide.lg",[l,e,o,i])),r.lGalleryOn=!0,this.s.counter&&t("#lg-counter-current").text(e+1)),r.index=e}},o.prototype.goToNextSlide=function(e){var t=this,o=t.s.loop;e&&t.$slide.length<3&&(o=!1),t.lgBusy||(t.index+1<t.$slide.length?(t.index++,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):o?(t.index=0,t.$el.trigger("onBeforeNextSlide.lg",[t.index]),t.slide(t.index,e,!1,"next")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-right-end"),setTimeout((function(){t.$outer.removeClass("lg-right-end")}),400)))},o.prototype.goToPrevSlide=function(e){var t=this,o=t.s.loop;e&&t.$slide.length<3&&(o=!1),t.lgBusy||(t.index>0?(t.index--,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):o?(t.index=t.$items.length-1,t.$el.trigger("onBeforePrevSlide.lg",[t.index,e]),t.slide(t.index,e,!1,"prev")):t.s.slideEndAnimatoin&&!e&&(t.$outer.addClass("lg-left-end"),setTimeout((function(){t.$outer.removeClass("lg-left-end")}),400)))},o.prototype.keyPress=function(){var e=this;this.$items.length>1&&t(window).on("keyup.lg",(function(t){e.$items.length>1&&(37===t.keyCode&&(t.preventDefault(),e.goToPrevSlide()),39===t.keyCode&&(t.preventDefault(),e.goToNextSlide()))})),t(window).on("keydown.lg",(function(t){!0===e.s.escKey&&27===t.keyCode&&(t.preventDefault(),e.$outer.hasClass("lg-thumb-open")?e.$outer.removeClass("lg-thumb-open"):e.destroy())}))},o.prototype.arrow=function(){var e=this;this.$outer.find(".lg-prev").on("click.lg",(function(){e.goToPrevSlide()})),this.$outer.find(".lg-next").on("click.lg",(function(){e.goToNextSlide()}))},o.prototype.arrowDisable=function(e){!this.s.loop&&this.s.hideControlOnEnd&&(e+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),e>0?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},o.prototype.setTranslate=function(e,t,o){this.s.useLeft?e.css("left",t):e.css({transform:"translate3d("+t+"px, "+o+"px, 0px)"})},o.prototype.touchMove=function(e,o){var i=o-e;Math.abs(i)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),i,0),this.setTranslate(t(".lg-prev-slide"),-this.$slide.eq(this.index).width()+i,0),this.setTranslate(t(".lg-next-slide"),this.$slide.eq(this.index).width()+i,0))},o.prototype.touchEnd=function(e){var t=this;"lg-slide"!==t.s.mode&&t.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout((function(){t.$outer.removeClass("lg-dragging"),e<0&&Math.abs(e)>t.s.swipeThreshold?t.goToNextSlide(!0):e>0&&Math.abs(e)>t.s.swipeThreshold?t.goToPrevSlide(!0):Math.abs(e)<5&&t.$el.trigger("onSlideClick.lg"),t.$slide.removeAttr("style")})),setTimeout((function(){t.$outer.hasClass("lg-dragging")||"lg-slide"===t.s.mode||t.$outer.removeClass("lg-slide")}),t.s.speed+100)},o.prototype.enableSwipe=function(){var e=this,t=0,o=0,i=!1;e.s.enableSwipe&&e.doCss()&&(e.$slide.on("touchstart.lg",(function(o){e.$outer.hasClass("lg-zoomed")||e.lgBusy||(o.preventDefault(),e.manageSwipeClass(),t=o.originalEvent.targetTouches[0].pageX)})),e.$slide.on("touchmove.lg",(function(s){e.$outer.hasClass("lg-zoomed")||(s.preventDefault(),o=s.originalEvent.targetTouches[0].pageX,e.touchMove(t,o),i=!0)})),e.$slide.on("touchend.lg",(function(){e.$outer.hasClass("lg-zoomed")||(i?(i=!1,e.touchEnd(o-t)):e.$el.trigger("onSlideClick.lg"))})))},o.prototype.enableDrag=function(){var e=this,o=0,i=0,s=!1,l=!1;
2e.s.enableDrag&&e.doCss()&&(e.$slide.on("mousedown.lg",(function(i){e.$outer.hasClass("lg-zoomed")||e.lgBusy||t(i.target).text().trim()||(i.preventDefault(),e.manageSwipeClass(),o=i.pageX,s=!0,e.$outer.scrollLeft+=1,e.$outer.scrollLeft-=1,e.$outer.removeClass("lg-grab").addClass("lg-grabbing"),e.$el.trigger("onDragstart.lg"))})),t(window).on("mousemove.lg",(function(t){s&&(l=!0,i=t.pageX,e.touchMove(o,i),e.$el.trigger("onDragmove.lg"))})),t(window).on("mouseup.lg",(function(r){l?(l=!1,e.touchEnd(i-o),e.$el.trigger("onDragend.lg")):(t(r.target).hasClass("lg-object")||t(r.target).hasClass("lg-video-play"))&&e.$el.trigger("onSlideClick.lg"),s&&(s=!1,e.$outer.removeClass("lg-grabbing").addClass("lg-grab"))})))},o.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?t=this.$slide.length-1:this.index===this.$slide.length-1&&(e=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.$slide.eq(t).addClass("lg-prev-slide"),this.$slide.eq(e).addClass("lg-next-slide")},o.prototype.mousewheel=function(){var e=this;e.$outer.on("mousewheel.lg",(function(t){t.deltaY&&(t.deltaY>0?e.goToPrevSlide():e.goToNextSlide(),t.preventDefault())}))},o.prototype.closeGallery=function(){var e=this,o=!1;this.$outer.find(".lg-close").on("click.lg",(function(){e.destroy()})),e.s.closable&&(e.$outer.on("mousedown.lg",(function(e){o=!!(t(e.target).is(".lg-outer")||t(e.target).is(".lg-item ")||t(e.target).is(".lg-img-wrap"))})),e.$outer.on("mousemove.lg",(function(){o=!1})),e.$outer.on("mouseup.lg",(function(i){(t(i.target).is(".lg-outer")||t(i.target).is(".lg-item ")||t(i.target).is(".lg-img-wrap")&&o)&&(e.$outer.hasClass("lg-dragging")||e.destroy())})))},o.prototype.destroy=function(e){var o=this;e||(o.$el.trigger("onBeforeClose.lg"),t(window).scrollTop(o.prevScrollTop)),e&&(o.s.dynamic||this.$items.off("click.lg click.lgcustom"),t.removeData(o.el,"lightGallery")),this.$el.off(".lg.tm"),t.each(t.fn.lightGallery.modules,(function(e){o.modules[e]&&o.modules[e].destroy()})),this.lGalleryOn=!1,clearTimeout(o.hideBarTimeout),this.hideBarTimeout=!1,t(window).off(".lg"),t("body").removeClass("lg-on lg-from-hash"),o.$outer&&o.$outer.removeClass("lg-visible"),t(".lg-backdrop").removeClass("in"),setTimeout((function(){o.$outer&&o.$outer.remove(),t(".lg-backdrop").remove(),e||o.$el.trigger("onCloseAfter.lg"),o.$el.focus()}),o.s.backdropDuration+50)},t.fn.lightGallery=function(e){return this.each((function(){if(t.data(this,"lightGallery"))try{t(this).data("lightGallery").init()}catch(e){console.error("lightGallery has not initiated properly",e)}else t.data(this,"lightGallery",new o(this,e))}))},t.fn.lightGallery.modules={}}();var t}.apply(t,i),void 0===s||(e.exports=s)}}]);

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.