vendor: 11,848 bytes, lines 1-6
1/*! AASAAM Front Team, Generate at: 2026-09-30T06:01:31.151Z */ 2(function(V,de){typeof exports=="object"&&typeof module!="undefined"?module.exports=de():typeof define=="function"&&define.amd?define(de):(V=typeof globalThis!="undefined"?globalThis:V||self,V.lightGallery=de())})(this,(function(){"use strict";var V=function(){return V=Object.assign||function(e){for(var i,a=1,u=arguments.length;a<u;a++){i=arguments[a];for(var g in i)Object.prototype.hasOwnProperty.call(i,g)&&(e[g]=i[g])}return e},V.apply(this,arguments)};function de(){for(var o=0,e=0,i=arguments.length;e<i;e++)o+=arguments[e].length;for(var a=Array(o),u=0,e=0;e<i;e++)for(var g=arguments[e],p=0,I=g.length;p<I;p++,u++)a[u]=g[p];return a}var ne={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical",autoplay:"lgAutoplay",autoplayStart:"lgAutoplayStart",autoplayStop:"lgAutoplayStop"},q={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"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:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}};function L(){(function(){if(typeof window.CustomEvent=="function")return!1;function o(e,i){i=i||{bubbles:!1,cancelable:!1,detail:null};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,i.bubbles,i.cancelable,i.detail),a}window.CustomEvent=o})(),(function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)})()}var c=(function(){function o(e){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(e),this.firstElement=this._getFirstEl(),this}return o.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var i=Math.random()*16|0,a=e=="x"?i:i&3|8;return a.toString(16)})},o.prototype._getSelector=function(e,i){if(i===void 0&&(i=document),typeof e!="string")return e;i=i||document;var a=e.substring(0,1);return a==="#"?i.querySelector(e):i.querySelectorAll(e)},o.prototype._each=function(e){return this.selector?(this.selector.length!==void 0?[].forEach.call(this.selector,e):e(this.selector,0),this):this},o.prototype._setCssVendorPrefix=function(e,i,a){var u=i.replace(/-([a-z])/gi,function(g,p){return p.toUpperCase()});this.cssVenderPrefixes.indexOf(u)!==-1?(e.style[u.charAt(0).toLowerCase()+u.slice(1)]=a,e.style["webkit"+u]=a,e.style["moz"+u]=a,e.style["ms"+u]=a,e.style["o"+u]=a):e.style[u]=a},o.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},o.prototype.isEventMatched=function(e,i){var a=i.split(".");return e.split(".").filter(function(u){return u}).every(function(u){return a.indexOf(u)!==-1})},o.prototype.attr=function(e,i){return i===void 0?this.firstElement?this.firstElement.getAttribute(e):"":(this._each(function(a){a.setAttribute(e,i)}),this)},o.prototype.find=function(e){return f(this._getSelector(e,this.selector))},o.prototype.first=function(){return this.selector&&this.selector.length!==void 0?f(this.selector[0]):f(this.selector)},o.prototype.eq=function(e){return f(this.selector[e])},o.prototype.parent=function(){return f(this.selector.parentElement)},o.prototype.get=function(){return this._getFirstEl()},o.prototype.removeAttr=function(e){var i=e.split(" ");return this._each(function(a){i.forEach(function(u){return a.removeAttribute(u)})}),this},o.prototype.wrap=function(e){if(!this.firstElement)return this;var i=document.createElement("div");return i.className=e,this.firstElement.parentNode.insertBefore(i,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),i.appendChild(this.firstElement),this},o.prototype.addClass=function(e){return e===void 0&&(e=""),this._each(function(i){e.split(" ").forEach(function(a){a&&i.classList.add(a)})}),this},o.prototype.removeClass=function(e){return this._each(function(i){e.split(" ").forEach(function(a){a&&i.classList.remove(a)})}),this},o.prototype.hasClass=function(e){return this.firstElement?this.firstElement.classList.contains(e):!1},o.prototype.hasAttribute=function(e){return this.firstElement?this.firstElement.hasAttribute(e):!1},o.prototype.toggleClass=function(e){return this.firstElement?(this.hasClass(e)?this.removeClass(e):this.addClass(e),this):this},o.prototype.css=function(e,i){var a=this;return this._each(function(u){a._setCssVendorPrefix(u,e,i)}),this},o.prototype.on=function(e,i){var a=this;return this.selector?(e.split(" ").forEach(function(u){Array.isArray(o.eventListeners[u])||(o.eventListeners[u]=[]),o.eventListeners[u].push(i),a.selector.addEventListener(u.split(".")[0],i)}),this):this},o.prototype.once=function(e,i){var a=this;return this.on(e,function(){a.off(e),i(e)}),this},o.prototype.off=function(e){var i=this;return this.selector?(Object.keys(o.eventListeners).forEach(function(a){i.isEventMatched(e,a)&&(o.eventListeners[a].forEach(function(u){i.selector.removeEventListener(a.split(".")[0],u)}),o.eventListeners[a]=[])}),this):this},o.prototype.trigger=function(e,i){if(!this.firstElement)return this;var a=new CustomEvent(e.split(".")[0],{detail:i||null});return this.firstElement.dispatchEvent(a),this},o.prototype.load=function(e){var i=this;return fetch(e).then(function(a){return a.text()}).then(function(a){i.selector.innerHTML=a}),this},o.prototype.html=function(e){return e===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(i){i.innerHTML=e}),this)},o.prototype.append=function(e){return this._each(function(i){typeof e=="string"?i.insertAdjacentHTML("beforeend",e):i.appendChild(e)}),this},o.prototype.prepend=function(e){return this._each(function(i){typeof e=="string"?i.insertAdjacentHTML("afterbegin",e):e instanceof HTMLElement&&i.insertBefore(e.cloneNode(!0),i.firstChild)}),this},o.prototype.remove=function(){return this._each(function(e){e.parentNode.removeChild(e)}),this},o.prototype.empty=function(){return this._each(function(e){e.innerHTML=""}),this},o.prototype.scrollTop=function(e){return e!==void 0?(document.body.scrollTop=e,document.documentElement.scrollTop=e,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},o.prototype.scrollLeft=function(e){return e!==void 0?(document.body.scrollLeft=e,document.documentElement.scrollLeft=e,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},o.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var e=this.firstElement.getBoundingClientRect(),i=f("body").style().marginLeft;return{left:e.left-parseFloat(i)+this.scrollLeft(),top:e.top+this.scrollTop()}},o.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},o.prototype.width=function(){var e=this.style();return this.firstElement.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)},o.prototype.height=function(){var e=this.style();return this.firstElement.clientHeight-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)},o.eventListeners={},o})();function f(o){return L(),new c(o)}var M=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function X(o){return o==="href"?"src":(o=o.replace("data-",""),o=o.charAt(0).toLowerCase()+o.slice(1),o=o.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()}),o)}var ie={fetchCaptionFromUrl:function(o,e,i){fetch(o).then(function(a){return a.text()}).then(function(a){if(i==="append"){var u='<div class="lg-sub-html">'+a+"</div>";e.append(u)}else e.html(a)})},getSize:function(o,e,i,a){i===void 0&&(i=0);var u=f(o),g=u.attr("data-lg-size")||a;if(g){var p=g.split(",");if(p[1])for(var I=window.innerWidth,E=0;E<p.length;E++){var $=p[E],ee=parseInt($.split("-")[2],10);if(ee>I){g=$;break}E===p.length-1&&(g=$)}var ae=g.split("-"),le=parseInt(ae[0],10),be=parseInt(ae[1],10),ve=e.width(),Ie=e.height()-i,ce=Math.min(ve,le),y=Math.min(Ie,be),x=Math.min(ce/le,y/be);return{width:le*x,height:be*x}}},getTransform:function(o,e,i,a,u){if(u){var g=f(o).find("img").first();if(g.get()){var p=e.get().getBoundingClientRect(),I=p.width,E=e.height()-(i+a),$=g.width(),ee=g.height(),ae=g.style(),le=(I-$)/2-g.offset().left+(parseFloat(ae.paddingLeft)||0)+(parseFloat(ae.borderLeft)||0)+f(window).scrollLeft()+p.left,be=(E-ee)/2-g.offset().top+(parseFloat(ae.paddingTop)||0)+(parseFloat(ae.borderTop)||0)+f(window).scrollTop()+i,ve=$/u.width,Ie=ee/u.height,ce="translate3d("+(le*=-1)+"px, "+(be*=-1)+"px, 0) scale3d("+ve+", "+Ie+", 1)";return ce}}},getIframeMarkup:function(o,e,i,a,u,g){var p=g?'title="'+g+'"':"";return'<div class="lg-media-cont lg-has-iframe" style="width:'+o+"; max-width:"+i+"; height: "+e+"; max-height:"+a+`"> 3 <iframe class="lg-object" frameborder="0" `+p+' src="'+u+`" allowfullscreen="true"></iframe> 4 </div>`},getImgMarkup:function(o,e,i,a,u,g){var p=a?'srcset="'+a+'"':"",I=u?'sizes="'+u+'"':"",E="<img "+i+" "+p+" "+I+' class="lg-object lg-image" data-index="'+o+'" src="'+e+'" />',$="";if(g){var ee=typeof g=="string"?JSON.parse(g):g;$=ee.map(function(ae){var le="";return Object.keys(ae).forEach(function(be){le+=" "+be+'="'+ae[be]+'"'}),"<source "+le+"></source>"})}return""+$+E},getResponsiveSrc:function(o){for(var e=[],i=[],a="",u=0;u<o.length;u++){var g=o[u].split(" ");g[0]===""&&g.splice(0,1),i.push(g[0]),e.push(g[1])}for(var p=window.innerWidth,I=0;I<e.length;I++)if(parseInt(e[I],10)>p){a=i[I];break}return a},isImageLoaded:function(o){return!(!o||!o.complete||o.naturalWidth===0)},getVideoPosterMarkup:function(o,e,i,a,u){var g="";u&&u.youtube?g="lg-has-youtube":u&&u.vimeo?g="lg-has-vimeo":g="lg-has-html5";var p=e;return typeof e!="string"&&(p=e.outerHTML),'<div class="lg-video-cont '+g+'" style="'+i+`"> 5 <div class="lg-video-play-button"> 6 <svg
7 viewBox="0 0 20 20" 8 preserveAspectRatio="xMidYMid" 9 focusable="false" 10 aria-labelledby="`+a+`" 11 role="img" 12 class="lg-video-play-icon" 13 > 14 <title>`+a+`</title> 15 <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon> 16 </svg> 17 <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false"> 18 <circle cx="50%" cy="50%" r="20"></circle></svg> 19 <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false"> 20 <circle cx="50%" cy="50%" r="20"></circle> 21 </svg> 22 </div> 23 `+p+` 24 <img class="lg-object lg-video-poster" src="`+o+`" /> 25 </div>`},getFocusableElements:function(o){var e=o.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),i=[].filter.call(e,function(a){var u=window.getComputedStyle(a);return u.display!=="none"&&u.visibility!=="hidden"});return i},getDynamicOptions:function(o,e,i,a){var u=[],g=de(M,e);return[].forEach.call(o,function(p){for(var I={},E=0;E<p.attributes.length;E++){var $=p.attributes[E];if($.specified){var ee=X($.name),ae="";g.indexOf(ee)>-1&&(ae=ee),ae&&(I[ae]=$.value)}}var le=f(p),be=le.find("img").first().attr("alt"),ve=le.attr("title"),Ie=a?le.attr(a):le.find("img").first().attr("src");I.thumb=Ie,i&&!I.subHtml&&(I.subHtml=ve||be||""),I.alt=be||ve||"",u.push(I)}),u},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(o,e,i){if(!o){if(e)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(i+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var a=o.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),u=o.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),g=o.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(a)return{youtube:a};if(u)return{vimeo:u};if(g)return{wistia:g}}},ge=0,O=(function(){function o(e,i){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!e)return this;if(ge++,this.lgId=ge,this.el=e,this.LGel=f(e),this.generateSettings(i),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!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.validateLicense(),this}return o.prototype.generateSettings=function(e){if(this.settings=V(V({},q),e),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():ie.isMobile()){var i=V(V({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=V(V({},this.settings),i)}},o.prototype.normalizeSettings=function(){if(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){var e=this.settings.container;if(typeof e=="function")this.settings.container=e();else if(typeof e=="string"){var i=document.querySelector(e);this.settings.container=i!=null?i:document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},o.prototype.init=function(){var e=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(ne.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){e.enableDrag(),e.enableSwipe(),e.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},o.prototype.openGalleryOnItemClick=function(){for(var e=this,i=function(g){var p=a.items[g],I=f(p),E=c.generateUUID();I.attr("data-lg-id",E).on("click.lgcustom-item-"+E,function($){$.preventDefault();var ee=e.settings.index||g;e.openGallery(ee,p)})},a=this,u=0;u<this.items.length;u++)i(u)},o.prototype.buildModules=function(){var e=this;this.settings.plugins.forEach(function(i){e.plugins.push(new i(e,f))})},o.prototype.validateLicense=function(){this.settings.licenseKey?this.settings.licenseKey==="0000-0000-000-0000"&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not val
25id for production use"):console.error("Please provide a valid license key")},o.prototype.getSlideItem=function(e){return f(this.getSlideItemId(e))},o.prototype.getSlideItemId=function(e){return"#lg-item-"+this.lgId+"-"+e},o.prototype.getIdName=function(e){return e+"-"+this.lgId},o.prototype.getElementById=function(e){return f("#"+this.getIdName(e))},o.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},o.prototype.buildStructure=function(){var e=this,i=this.$container&&this.$container.get();if(!i){var a="",u="";this.settings.controls&&(a='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button> 26 <button type="button" id="`+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),this.settings.appendSubHtmlTo!==".lg-item"&&(u='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var g="";this.settings.allowMediaOverlap&&(g+="lg-media-overlap ");var p=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",I=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",E="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),$=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",ee=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",ae=` 27 <div class="`+E+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+p+" "+I+` role="dialog" 28 > 29 <div id="`+this.getIdName("lg-backdrop")+`" class="lg-backdrop"></div> 30 31 <div id="`+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+g+` "> 32 33 <div id="`+this.getIdName("lg-content")+`" class="lg-content"> 34 <div id="`+this.getIdName("lg-inner")+`" class="lg-inner"> 35 </div> 36 `+a+` 37 </div> 38 <div id="`+this.getIdName("lg-toolbar")+`" class="lg-toolbar lg-group"> 39 `+ee+` 40 `+$+` 41 </div> 42 `+(this.settings.appendSubHtmlTo===".lg-outer"?u:"")+` 43 <div id="`+this.getIdName("lg-components")+`" class="lg-components"> 44 `+(this.settings.appendSubHtmlTo===".lg-sub-html"?u:"")+` 45 </div> 46 </div> 47 </div> 48 `;f(this.settings.container).append(ae),document.body!==this.settings.container&&f(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),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.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var le=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(le+="lg-grab "),this.outer.addClass(le),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" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),f(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){e.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},o.prototype.refreshOnResize=function(){if(this.lgOpened){var e=this.galleryItems[this.index],i=e.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var a=this.mediaContainerPosition,u=a.top,g=a.bottom;if(this.currentImageSize=ie.getSize(this.items[this.index],this.outer,u+g,i&&this.settings.videoMaxSize),i&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var p=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",p)}this.LGel.trigger(ne.containerResize)}},o.prototype.resizeVideoSlide=function(e,i){var a=this.getVideoContStyle(i),u=this.getSlideItem(e);u.find(".lg-video-cont").attr("style",a)},o.prototype.updateSlides=function(e,i){if(this.index>e.length-1&&(this.index=e.length-1),e.length===1&&(this.index=0),!e.length){this.closeGallery();return}var a=this.galleryItems[i].src;this.galleryItems=e,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var u=0;this.galleryItems.some(function(g,p){return g.src===a?(u=p,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(u,-1),this.loadContent(u,!0),this.get
vendor: 4,708 bytes, line 48
48SlideItem(u).addClass("lg-current"),this.index=u,this.updateCurrentCounter(u),this.LGel.trigger(ne.updateSlides)},o.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var e=f(this.settings.selectWithin);this.items=e.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 ie.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},o.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},o.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(f("body").style().paddingRight);var e=document.documentElement.getBoundingClientRect(),i=window.innerWidth-e.width;f(document.body).css("padding-right",i+this.bodyPaddingRight+"px"),f(document.body).addClass("lg-overlay-open")}},o.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(f(document.body).css("padding-right",this.bodyPaddingRight+"px"),f(document.body).removeClass("lg-overlay-open"))},o.prototype.openGallery=function(e,i){var a=this;if(e===void 0&&(e=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var u=this.getItemsToBeInsertedToDom(e,e);this.currentItemsInDom=u;var g="";u.forEach(function(le){g=g+('<div id="'+le+'" class="lg-item"></div>')}),this.$inner.append(g),this.addHtml(e);var p="";this.mediaContainerPosition=this.getMediaContainerPosition();var I=this.mediaContainerPosition,E=I.top,$=I.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(E,$);var ee=this.galleryItems[e].__slideVideoInfo;this.zoomFromOrigin&&i&&(this.currentImageSize=ie.getSize(i,this.outer,E+$,ee&&this.settings.videoMaxSize),p=ie.getTransform(i,this.outer,E,$,this.currentImageSize)),(!this.zoomFromOrigin||!p)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(e).removeClass("lg-complete"));var ae=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){a.outer.addClass("lg-components-open")},ae),this.index=e,this.LGel.trigger(ne.beforeOpen),this.getSlideItem(e).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=f(window).scrollTop(),setTimeout(function(){if(a.zoomFromOrigin&&p){var le=a.getSlideItem(e);le.css("transform",p),setTimeout(function(){le.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",a.settings.startAnimationDuration+"ms"),a.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){le.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){a.$backdrop.addClass("in"),a.$container.addClass("lg-show-in")},10),setTimeout(function(){a.settings.trapFocus&&document.body===a.settings.container&&a.trapFocus()},a.settings.backdropDuration+50),(!a.zoomFromOrigin||!p)&&setTimeout(function(){a.outer.addClass("lg-visible")},a.settings.backdropDuration),a.slide(e,!1,!1,!1),a.LGel.trigger(ne.afterOpen)}),document.body===this.settings.container&&f("html").addClass("lg-on")}},o.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var e=this.$toolbar.get().clientHeight||0,i=this.outer.find(".lg-components .lg-sub-html").get(),a=this.settings.defaultCaptionHeight||i&&i.clientHeight||0,u=this.outer.find(".lg-thumb-outer").get(),g=u?u.clientHeight:0,p=g+a;return{top:e,bottom:p}},o.prototype.setMediaContainerPosition=function(e,i){e===void 0&&(e=0),i===void 0&&(i=0),this.$content.css("top",e+"px").css("bottom",i+"px")},o.prototype.hideBars=function(){var e=this;setTimeout(function(){e.outer.removeClass("lg-hide-items"),e.settings.hideBarsDelay>0&&(e.outer.on("mousemove.lg click.lg touchstart.lg",function(){e.outer.removeClass("lg-hide-items"),clearTimeout(e.hideBarTimeout),e.hideBarTimeout=setTimeout(function(){e.outer.addClass("lg-hide-items")},e.settings.hideBarsDelay)}),e.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},o.prototype.initPictureFill=function(e){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[e.get()]})}catch(i){console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},o.prototype.counter=function(){if(this.settings.counter){var e=`<div class="lg-counter" role="status" aria-l
48ive="polite"> 49 <span id="`+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+` </span> / 50 <span id="`+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(e)}},o.prototype.addHtml=function(e){var i,a;if(this.galleryItems[e].subHtmlUrl?a=this.galleryItems[e].subHtmlUrl:i=this.galleryItems[e].subHtml,!a)if(i){var u=i.substring(0,1);if(u==="."||u==="#")try{this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?i=f(this.items).eq(e).find(i).first().html():i=f(i).first().html()}catch(p){console.warn('Error processing subHtml selector "'+i+'"'),i=""}}else i="";if(this.settings.appendSubHtmlTo!==".lg-item")a?ie.fetchCaptionFromUrl(a,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(i);else{var g=f(this.getSlideItemId(e));a?ie.fetchCaptionFromUrl(a,g,"append"):g.append('<div class="lg-sub-html">'+i+"</div>")}typeof i!="undefined"&&i!==null&&(i===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(ne.afterAppendSubHtml,{index:e})},o.prototype.preload=function(e){for(var i=1;i<=this.settings.preload&&!(i>=this.galleryItems.length-e);i++)this.loadContent(e+i,!1);for(var a=1;a<=this.settings.preload&&!(e-a<0);a++)this.loadContent(e-a,!1)},o.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+`px; 51 margin-left: -`+e.width/2+`px; 52 margin-top: -`+e.height/2+`px; 53 height:`+e.height+"px":""},o.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+`px; 54 height:`+e.height+"px":""},o.prototype.getDummyImageContent=function(e,i,a){var u;if(this.settings.dynamic||(u=f(this.items).eq(i)),u){var g=void 0;if(this.settings.exThumbImage?g=u.attr(this.settings.exThumbImage):g=u.find("img").first().attr("src"),!g)return"";var p=this.getDummyImgStyles(this.currentImageSize),I=document.createElement("img");return I.alt=a||"",I.src=g,I.className="lg-dummy-img",I.style.cssText=p,e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),I}return""},o.prototype.setImgMarkup=function(e,i,a){var u=this.galleryItems[a],g=u.alt,p=u.srcset,I=u.sizes,E=u.sources,$="",ee=g?'alt="'+g+'"':"";this.isFirstSlideWithZoomAnimation()?$=this.getDummyImageContent(i,a,ee):$=ie.getImgMarkup(a,e,ee,p,I,E);var ae=document.createElement("picture");ae.className="lg-img-wrap",f(ae).append($),i.prepend(ae)},o.prototype.onSlideObjectLoad=function(e,i,a,u){var g=e.find(".lg-object").first();ie.isImageLoaded(g.get())||i?a():(g.on("load.lg error.lg",function(){a&&a()}),g.on("error.lg",function(){u&&u()}))},o.prototype.onLgObjectLoad=function(e,i,a,u,g,p){var I=this;this.onSlideObjectLoad(e,p,function(){I.triggerSlideItemLoad(e,i,a,u,g)},function(){e.addClass("lg-complete lg-complete_"),e.html('<span class="lg-error-msg">'+I.settings.strings.mediaLoadingFailed+"</span>")})},o.prototype.triggerSlideItemLoad=function(e,i,a,u,g){var p=this,I=this.galleryItems[i],E=g&&this.getSlideType(I)==="video"&&!I.poster?u:0;setTimeout(function(){e.addClass("lg-complete lg-complete_"),p.LGel.trigger(ne.slideItemLoad,{index:i,delay:a||0,isFirstSlide:g})},E)},o.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},o.prototype.addSlideVideoInfo=function(e){var i=this;e.forEach(function(a,u){a.__slideVideoInfo=ie.isVideo(a.src,!!a.video,u),a.__slideVideoInfo&&i.settings.loadYouTubePoster&&!a.poster&&a.__slideVideoInfo.youtube&&(a.poster="//img.youtube.com/vi/"+a.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},o.prototype.loadContent=function(e,i){var a=this,u=this.galleryItems[e],g=f(this.getSlideItemId(e)),p=u.poster,I=u.srcset,E=u.sizes,$=u.sources,ee=u.src,ae=u.video,le=ae&&typeof ae=="string"?JSON.parse(ae):ae;if(u.responsive){var be=u.responsive.split(",");ee=ie.getResponsiveSrc(be)||ee}var ve=u.__slideVideoInfo,Ie="",ce=!!u.iframe,y=!this.lGalleryOn,x=0;if(y&&(this.zoomFromOrigin&&this.currentImageSize?x=this.settings.startAnimationDuration+10:x=this.settings.backdropDuration+10),!g.hasClass("lg-loaded")){if(ve){var m=this.mediaContainerPosition,G=m.top,te=m.bottom,j=ie.getSize(this.items[e],this.outer,G+te,ve&&this.settings.videoMaxSize);Ie=this.getVideoContStyle(j)}if(ce){var me=ie.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,ee,u.iframeTitle);g.prepend(me)}else if(p){var we="",Le=y&&this.zoomFromOrigin&&this.currentImageSize;Le&&(we=this.getDummyImageContent(g,e,""));var me=ie.getVideoPosterMarkup(p,we||"",Ie,this.settings.strings.playVideo,ve);g.prepend(me)}else if(ve){var me='<div class="lg-video-cont " style="'+Ie+'"></div>';g.prepend(me)}else if(this.setImgMarkup(ee,g,e),I||$){var Ge=g.find(".lg-object");this.initPictureFill(Ge)}(p||ve)&&this.LGel.trigger(ne.hasVideo,{index:e,src:ee,html5Video:le,hasPoster:!!p}),this.LGel.trigger(ne.afterAppendSlide,{index:e}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(e)}var Se=0;x&&!f(document.body).hasClass("lg-from-hash")&&(Se=x),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){g.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),g.hasClass("lg-loaded")||setTimeout(function(){if(a.getSlideType(u)==="image"){var $e=u.alt,_e=$e?'alt="'+$e+'"':"";if(g.find(".lg-img-wrap").append(ie.getImgMarkup(e,ee,_e,I,E,u.sources)),I||$){var Xe=g.find(".lg-object");a.initPictureFill(Xe)}}(a.getSlideType(u)==="image"||a.getSlideType(u)==="video"&&p)&&(a.onLgObjectLoad(g,e,x,Se,!0,!1),a.onSlideObjectLoad(g,!!(ve&&ve.html5&&!p),function(){a.loadContentOnFirstSlideLoad(e,g,Se)},function(){a.loadContentOnFirstSlideLoad(e,g,Se)}))},this.settings.startAnimationDuration+100)),g.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.get
vendor: 23,986 bytes, lines 54-57
54SlideType(u)==="video"&&!p)&&this.onLgObjectLoad(g,e,x,Se,y,!!(ve&&ve.html5&&!p)),(!this.zoomFromOrigin||!this.currentImageSize)&&g.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){g.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,i===!0&&(g.hasClass("lg-complete_")?this.preload(e):g.find(".lg-object").first().on("load.lg error.lg",function(){a.preload(e)}))},o.prototype.loadContentOnFirstSlideLoad=function(e,i,a){var u=this;setTimeout(function(){i.find(".lg-dummy-img").remove(),i.removeClass("lg-first-slide"),u.outer.removeClass("lg-first-slide-loading"),u.isDummyImageRemoved=!0,u.preload(e)},a+300)},o.prototype.getItemsToBeInsertedToDom=function(e,i,a){var u=this;a===void 0&&(a=0);var g=[],p=Math.max(a,3);p=Math.min(p,this.galleryItems.length);var I="lg-item-"+this.lgId+"-"+i;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(ee,ae){g.push("lg-item-"+u.lgId+"-"+ae)}),g;if(e<(this.galleryItems.length-1)/2){for(var E=e;E>e-p/2&&E>=0;E--)g.push("lg-item-"+this.lgId+"-"+E);for(var $=g.length,E=0;E<p-$;E++)g.push("lg-item-"+this.lgId+"-"+(e+E+1))}else{for(var E=e;E<=this.galleryItems.length-1&&E<e+p/2;E++)g.push("lg-item-"+this.lgId+"-"+E);for(var $=g.length,E=0;E<p-$;E++)g.push("lg-item-"+this.lgId+"-"+(e-E-1))}return this.settings.loop&&(e===this.galleryItems.length-1?g.push("lg-item-"+this.lgId+"-0"):e===0&&g.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),g.indexOf(I)===-1&&g.push("lg-item-"+this.lgId+"-"+i),g},o.prototype.organizeSlideItems=function(e,i){var a=this,u=this.getItemsToBeInsertedToDom(e,i,this.settings.numberOfSlideItemsInDom);return u.forEach(function(g){a.currentItemsInDom.indexOf(g)===-1&&a.$inner.append('<div id="'+g+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(g){u.indexOf(g)===-1&&f("#"+g).remove()}),u},o.prototype.getPreviousSlideIndex=function(){var e=0;try{var i=this.outer.find(".lg-current").first().attr("id");e=parseInt(i.split("-")[3])||0}catch(a){e=0}return e},o.prototype.setDownloadValue=function(e){if(this.settings.download){var i=this.galleryItems[e],a=i.downloadUrl===!1||i.downloadUrl==="false";if(a)this.outer.addClass("lg-hide-download");else{var u=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),u.attr("href",i.downloadUrl||i.src),i.download&&u.attr("download",i.download)}}},o.prototype.makeSlideAnimation=function(e,i,a){var u=this;this.lGalleryOn&&a.addClass("lg-slide-progress"),setTimeout(function(){u.outer.addClass("lg-no-trans"),u.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),e==="prev"?(i.addClass("lg-prev-slide"),a.addClass("lg-next-slide")):(i.addClass("lg-next-slide"),a.addClass("lg-prev-slide")),setTimeout(function(){u.outer.find(".lg-item").removeClass("lg-current"),i.addClass("lg-current"),u.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},o.prototype.slide=function(e,i,a,u){var g=this,p=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(e,p),!(this.lGalleryOn&&p===e)){var I=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(e);var E=this.getSlideItem(e),$=this.getSlideItem(p),ee=this.galleryItems[e],ae=ee.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(ee)),this.setDownloadValue(e),ae){var le=this.mediaContainerPosition,be=le.top,ve=le.bottom,Ie=ie.getSize(this.items[e],this.outer,be+ve,ae&&this.settings.videoMaxSize);this.resizeVideoSlide(e,Ie)}if(this.LGel.trigger(ne.beforeSlide,{prevIndex:p,index:e,fromTouch:!!i,fromThumb:!!a}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(e),u||(e<p?u="prev":e>p&&(u="next")),!i)this.makeSlideAnimation(u,E,$);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var ce=void 0,y=void 0;I>2?(ce=e-1,y=e+1,(e===0&&p===I-1||e===I-1&&p===0)&&(y=0,ce=I-1)):(ce=0,y=1),u==="prev"?this.getSlideItem(y).addClass("lg-next-slide"):this.getSlideItem(ce).addClass("lg-prev-slide"),E.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){g.loadContent(e,!0),g.settings.appendSubHtmlTo!==".lg-item"&&g.addHtml(e)},this.settings.speed+50+(i?0:this.settings.slideDelay)):this.loadContent(e,!0),setTimeout(function(){g.lgBusy=!1,$.removeClass("lg-slide-progress"),g.LGel.trigger(ne.afterSlide,{prevIndex:p,index:e,fromTouch:i,fromThumb:a})},(this.lGalleryOn?this.settings.speed+100:100)+(i?0:this.settings.slideDelay))}this.index=e}},o.prototype.updateCurrentCounter=function(e){this.getElementById("lg-counter-current").html(e+1+"")},o.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},o.prototype.getSlideType=function(e){return e.__slideVideoInfo?"video":e.iframe?"iframe":"image"},o.prototype.touchMove=function(e,i,a){var u=i.pageX-e.pageX,g=i.pageY-e.pageY,p=!1;if(this.swipeDirection?p=!0:Math.abs(u)>15?(this.swipeDirection="horizontal",p=!0):Math.abs(g)>15&&(this.swipeDirection="vertical",p=!0),!!p){var I=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){a==null||a.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(I,u,0);var E=I.get().offsetWidth,$=E*15/100,ee=$-Math.abs(u*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-E+u-ee,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),E+u+ee,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){a==null||a.preventDefault(),this.$container.addClass("lg-dragging-vertical");var ae=1-Math.abs(g)/window.innerHeight;this.$backdrop.css("opacity",ae);var le=1-Math.abs(g)/(window.innerWidth*2);this.setTranslate(I,0,g,le,le),Math.abs(g)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},o.prototype.touchEnd=function(e,i,a){var u=this,g;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){u.$container.removeClass("lg-dragging-vertical"),u.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var p=!0;if(u.swipeDirection==="horizontal"){g=e.pageX-i.pageX;var I=Math.abs(e.pageX-i.pageX);g<0&&I>u.settings.swipeThreshold?(u.goToNextSlide(!0),p=!1):g>0&&I>u.settings.swipeThreshold&&(u.goToPrevSlide(!0),p=!1)}else if(u.swipeDirection==="vertical")if(g=Math.abs(e.pageY-i.pageY),u.settings.closable&&u.settings.swipeToClose&&g>100){u.closeGallery();return}else u.$backdrop.css("opacity",1);if(u.outer.find(".lg-item").removeAttr("style"),p&&Math.abs(e.pageX-i.pageX)<5){var E=f(a.target);u.isPosterElement(E)&&u.LGel.trigger(ne.posterClick)}u.swipeDirection=void 0}),setTimeout(function(){!u.outer.hasClass("lg-dragging")&&u.settings.mode!=="lg-slide"&&u.outer.removeClass("lg-slide")},this.settings.speed+100)},o.prototype.enableSwipe=function(){var e=this,i={},a={},u=!1,g=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(p){e.dragOrSwipeEnabled=!0;var I=e.getSlideItem(e.index);(f(p.target).hasClass("lg-item")||I.get().contains(p.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&p.touches.length===1&&(g=!0,e.touchAction="swipe",e.manageSwipeClass(),i={pageX:p.touches[0].pageX,pageY:p.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(p){g&&e.touchAction==="swipe"&&p.touches.length===1&&(a={pageX:p.touches[0].pageX,pageY:p.touches[0].pageY},e.touchMove(i,a,p),u=!0)}),this.$inner.on("touchend.lg",function(p){if(e.touchAction==="swipe"){if(u)u=!1,e.touchEnd(a,i,p);else if(g){var I=f(p.target);e.isPosterElement(I)&&e.LGel.trigger(ne.posterClick)}e.touchAction=void 0,g=!1}}))},o.prototype.enableDrag=function(){var e=this,i={},a={},u=!1,g=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(p){e.dragOrSwipeEnabled=!0;var I=e.getSlideItem(e.index);(f(p.target).hasClass("lg-item")||I.get().contains(p.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&(p.preventDefault(),e.lgBusy||(e.manageSwipeClass(),i={pageX:p.pageX,pageY:p.pageY},u=!0,e.outer.get().scrollLeft+=1,e.outer.get().scrollLeft-=1,e.outer.removeClass("lg-grab").addClass("lg-grabbing"),e.LGel.trigger(ne.dragStart)))}),f(window).on("mousemove.lg.global"+this.lgId,function(p){u&&e.lgOpened&&(g=!0,a={pageX:p.pageX,pageY:p.pageY},e.touchMove(i,a),e.LGel.trigger(ne.dragMove))}),f(window).on("mouseup.lg.global"+this.lgId,function(p){if(e.lgOpened){var I=f(p.target);g?(g=!1,e.touchEnd(a,i,p),e.LGel.trigger(ne.dragEnd)):e.isPosterElement(I)&&e.LGel.trigger(ne.posterClick),u&&(u=!1,e.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},o.prototype.triggerPosterClick=function(){var e=this;this.$inner.on("click.lg",function(i){!e.dragOrSwipeEnabled&&e.isPosterElement(f(i.target))&&e.LGel.trigger(ne.posterClick)})},o.prototype.manageSwipeClass=function(){var e=this.index+1,i=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?i=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),i>-1&&this.getSlideItem(i).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},o.prototype.goToNextSlide=function(e){var i=this,a=this.settings.loop;e&&this.galleryItems.length<3&&(a=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(ne.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):a?(this.index=0,this.LGel.trigger(ne.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-right-end"),setTimeout(function(){i.outer.removeClass("lg-right-end")},400)))},o.prototype.goToPrevSlide=function(e){var i=this,a=this.settings.loop;e&&this.galleryItems.length<3&&(a=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(ne.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):a?(this.index=this.galleryItems.length-1,this.LGel.trigger(ne.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-left-end"),setTimeout(function(){i.outer.removeClass("lg-left-end")},400)))},o.prototype.keyPress=function(){var e=this;f(window).on("keydown.lg.global"+this.lgId,function(i){e.lgOpened&&e.settings.escKey===!0&&i.keyCode===27&&(i.preventDefault(),e.settings.allowMediaOverlap&&e.outer.hasClass("lg-can-toggle")&&e.outer.hasClass("lg-components-open")?e.outer.removeClass("lg-components-open"):e.closeGallery()),e.lgOpened&&e.galleryItems.length>1&&(i.keyCode===37&&(i.preventDefault(),e.goToPrevSlide()),i.keyCode===39&&(i.preventDefault(),e.goToNextSlide()))})},o.prototype.arrow=function(){var e=this;this.getElementById("lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){e.goToNextSlide()})},o.prototype.arrowDisable=function(e){if(!this.settings.loop&&this.settings.hideControlOnEnd){var i=this.getElementById("lg-prev"),a=this.getElementById("lg-next");e+1===this.galleryItems.length?a.attr("disabled","disabled").addClass("disabled"):a.removeAttr("disabled").removeClass("disabled"),e===0?i.attr("disabled","disabled").addClass("disabled"):i.removeAttr("disabled").removeClass("disabled")}},o.prototype.setTranslate=function(e,i,a,u,g){u===void 0&&(u=1),g===void 0&&(g=1),e.css("transform","translate3d("+i+"px, "+a+"px, 0px) scale3d("+u+", "+g+", 1)")},o.prototype.mousewheel=function(){var e=this,i=0;this.outer.on("wheel.lg",function(a){if(!(!a.deltaY||e.galleryItems.length<2)){a.preventDefault();var u=new Date().getTime();u-i<1e3||(i=u,a.deltaY>0?e.goToNextSlide():a.deltaY<0&&e.goToPrevSlide())}})},o.prototype.isSlideElement=function(e){return e.hasClass("lg-outer")||e.hasClass("lg-item")||e.hasClass("lg-img-wrap")||e.hasClass("lg-img-rotate")},o.prototype.isPosterElement=function(e){var i=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||i&&i.contains(e.get())},o.prototype.toggleMaximize=function(){var e=this;this.getElementById("lg-maximize").on("click.lg",function(){e.$container.toggleClass("lg-inline"),e.refreshOnResize()})},o.prototype.invalidateItems=function(){for(var e=0;e<this.items.length;e++){var i=this.items[e],a=f(i);a.off("click.lgcustom-item-"+a.attr("data-lg-id"))}},o.prototype.trapFocus=function(){var e=this;this.$container.get().focus({preventScroll:!0}),f(window).on("keydown.lg.global"+this.lgId,function(i){if(e.lgOpened){var a=i.key==="Tab"||i.keyCode===9;if(a){var u=ie.getFocusableElements(e.$container.get()),g=u[0],p=u[u.length-1];i.shiftKey?document.activeElement===g&&(p.focus(),i.preventDefault()):document.activeElement===p&&(g.focus(),i.preventDefault())}}})},o.prototype.manageCloseGallery=function(){var e=this;if(this.settings.closable){var i=!1;this.getElementById("lg-close").on("click.lg",function(){e.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(a){var u=f(a.target);e.isSlideElement(u)?i=!0:i=!1}),this.outer.on("mousemove.lg",function(){i=!1}),this.outer.on("mouseup.lg",function(a){var u=f(a.target);e.isSlideElement(u)&&i&&(e.outer.hasClass("lg-dragging")||e.closeGallery())}))}},o.prototype.closeGallery=function(e){var i=this;if(!this.lgOpened||!this.settings.closable&&!e)return 0;this.LGel.trigger(ne.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&f(window).scrollTop(this.prevScrollTop);var a=this.items[this.index],u;if(this.zoomFromOrigin&&a){var g=this.mediaContainerPosition,p=g.top,I=g.bottom,E=this.galleryItems[this.index],$=E.__slideVideoInfo,ee=E.poster,ae=ie.getSize(a,this.outer,p+I,$&&ee&&this.settings.videoMaxSize);u=ie.getTransform(a,this.outer,p,I,ae)}this.zoomFromOrigin&&u?(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",u)):(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,f("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var le=this.zoomFromOrigin&&u?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){i.zoomFromOrigin&&u&&i.outer.removeClass("lg-zoom-from-image"),i.$container.removeClass("lg-show"),i.resetScrollBar(),i.$backdrop.removeAttr("style").css("transition-duration",i.settings.backdropDuration+"ms"),i.outer.removeClass("lg-closing "+i.settings.startClass),i.getSlideItem(i.index).removeClass("lg-start-end-progress"),i.$inner.empty(),i.lgOpened&&i.LGel.trigger(ne.afterClose,{instance:i}),i.$container.get()&&i.$container.get().blur(),i.lgOpened=!1},le+100),le+100},o.prototype.initModules=function(){this.plugins.forEach(function(e){try{e.init()}catch(i){console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},o.prototype.destroyModules=function(e){this.plugins.forEach(function(i){try{e?i.destroy():i.closeGallery&&i.closeGallery()}catch(a){console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},o.prototype.refresh=function(e){this.settings.dynamic||this.invalidateItems(),e?this.galleryItems=e:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(ne.updateSlides)},o.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},o.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),f(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},o.prototype.destroy=function(){var e=this.closeGallery(!0);return e?setTimeout(this.destroyGallery.bind(this),e):this.destroyGallery(),e},o})();function U(o,e){return new O(o,e)}return U}));(function(V,de){typeof exports=="object"&&typeof module!="undefined"?module.exports=de():typeof define=="function"&&define.amd?define(de):(V=typeof globalThis!="undefined"?globalThis:V||self,V.lgThumbnail=de())})(this,(function(){"use strict";var V=function(){return V=Object.assign||function(c){for(var f,M=1,X=arguments.length;M<X;M++){f=arguments[M];for(var ie in f)Object.prototype.hasOwnProperty.call(f,ie)&&(c[ie]=f[ie])}return c},V.apply(this,arguments)},de={thumbnail:!0,animateThumb:!0,currentPagerPosition:"middle",alignThumbnails:"middle",thumbWidth:100,thumbHeight:"80px",thumbMargin:5,appendThumbnailsTo:".lg-components",toggleThumb:!1,enableThumbDrag:!0,enableThumbSwipe:!0,thumbnailSwipeThreshold:10,loadYouTubeThumbnail:!0,youTubeThumbSize:1,thumbnailPluginStrings:{toggleThumbnails:"Toggle thumbnails"}},ne={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical",autoplay:"lgAutoplay",autoplayStart:"lgAutoplayStart",autoplayStop:"lgAutoplayStop"},q=(function(){function L(c,f){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=c,this.$LG=f,this}return L.prototype.init=function(){this.settings=V(V({},de),this.core.settings),this.thumbOuterWidth=0,this.thumbTotalWidth=this.core.galleryItems.length*(this.settings.thumbWidth+this.settings.thumbMargin),this.translateX=0,this.setAnimateThumbStyles(),this.core.settings.allowMediaOverlap||(this.settings.toggleThumb=!1),this.settings.thumbnail&&(this.build(),this.settings.animateThumb?(this.settings.enableThumbDrag&&this.enableThumbDrag(),this.settings.enableThumbSwipe&&this.enableThumbSwipe(),this.thumbClickable=!1):this.thumbClickable=!0,this.toggleThumbBar(),this.thumbKeyPress())},L.prototype.build=function(){var c=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(f){var M=c.$LG(f.target);M.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(c.thumbClickable&&!c.core.lgBusy){var X=parseInt(M.attr("data-lg-item-id"));c.core.slide(X,!1,!0,!1)}},50)}),this.core.LGel.on(ne.beforeSlide+".thumb",function(f){var M=f.detail.index;c.animateThumb(M)}),this.core.LGel.on(ne.beforeOpen+".thumb",function(){c.thumbOuterWidth=c.core.outer.get().offsetWidth}),this.core.LGel.on(ne.updateSlides+".thumb",function(){c.rebuildThumbnails()}),this.core.LGel.on(ne.containerResize+".thumb",function(){c.core.lgOpened&&setTimeout(function(){c.thumbOuterWidth=c.core.outer.get().offsetWidth,c.animateThumb(c.core.index),c.thumbOuterWidth=c.core.outer.get().offsetWidth},50)})},L.prototype.setThumbMarkup=function(){var c="lg-thumb-outer ";this.settings.alignThumbnails&&(c+="lg-thumb-align-"+this.settings.alignThumbnails);var f='<div class="'+c+`"> 55 <div class="lg-thumb lg-group"> 56 </div> 57 </div>`;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(f):this.core.outer.append(f),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},L.prototype.enableThumbDrag=function(){var c=this,f={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},M=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(X){c.thumbTotalWidth>c.thumbOuterWidth&&(X.preventDefault(),f.cords.startX=X.pageX,f.startTime=new Date,c.thumbClickable=!1,M=!0,c.core.outer.get().scrollLeft+=1,c.core.outer.get().scrollLeft-=1,c.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(X){c.core.lgOpened&&M&&(f.cords.endX=X.pageX,f=c.onThumbTouchMove(f))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){c.core.lgOpened&&(f.isMoved?f=c.onThumbTouchEnd(f):c.thumbClickable=!0,M&&(M=!1,c.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},L.prototype.enableThumbSwipe=function(){var c=this,f={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(M){c.thumbTotalWidth>c.thumbOuterWidth&&(M.preventDefault(),f.cords.startX=M.targetTouches[0].pageX,c.thumbClickable=!1,f.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(M){c.thumbTotalWidth>c.thumbOuterWidth&&(M.preventDefault(),f.cords.endX=M.targetTouches[0].pageX,f=c.onThumbTouchMove(f))}),this.$lgThumb.on("touchend.lg",function(){f.isMoved?f=c.onThumbTouchEnd(f):c.thumbClickable=!0})},L.prototype.rebuildThumbnails=function(){var c=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){c.thumbTotalWidth=c.core.galleryItems.length*(c.settings.thumbWidth+c.settings.thumbMargin),c.$lgThumb.css("width",c.thumbTotalWidth+"px"),c.$lgThumb.empty(),c.setThumbItemHtml(c.core.galleryItems),c.animateThumb(c.core.index)},50),setTimeout(function(){c.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},L.prototype.setTranslate=function(c){this.$lgThumb.css("transform","translate3d(-"+c+"px, 0px, 0px)")},L.prototype.getPossibleTransformX=function(c){return c>this.thumbTotalWidth-this.thumbOuterWidth&&(c=this.thumbTotalWidth-this.thumbOuterWidth),c<0&&(c=0),c},L.prototype.animateThumb=function(c){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var f=0;switch(this.settings.currentPagerPosition){case"left":f=0;break;case"middle":f=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":f=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*c-1-f,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},L.prototype.onThumbTouchMove=function(c){return c.newTranslateX=this.translateX,c.isMoved=!0,c.touchMoveTime=new Date().valueOf(),c.newTranslateX-=c.cords.endX-c.cords.startX,c.newTranslateX=this.getPossibleTransformX(c.newTranslateX),this.setTranslate(c.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),c},L.prototype.onThumbTouchEnd=function(c){c.isMoved=!1,c.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var f=c.endTime.valueOf()-c.startTime.valueOf(),M=c.cords.endX-c.cords.startX,X=Math.abs(M)/f;return X>.15&&c.endTime.valueOf()-c.touchMoveTime<30?(X+=1,X>2&&(X+=1),X=X+X*(Math.abs(M)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(X-1,2)+"settings"),M=M*X,this.translateX=this.getPossibleTransformX(this.translateX-M),this.setTranslate(this.translateX)):this.translateX=c.newTranslateX,Math.abs(c.cords.endX-c.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),c},L.prototype.getThumbHtml=function(c,f,M){var X=this.core.galleryItems[f].__slideVideoInfo||{},ie;
57X.youtube&&this.settings.loadYouTubeThumbnail?ie="//img.youtube.com/vi/"+X.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":ie=c;var ge=document.createElement("div");ge.setAttribute("data-lg-item-id",f+""),ge.className="lg-thumb-item "+(f===this.core.index?"active":""),ge.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var O=document.createElement("img");return O.alt=M||"",O.setAttribute("data-lg-item-id",f+""),O.src=ie,ge.appendChild(O),ge},L.prototype.setThumbItemHtml=function(c){for(var f=0;f<c.length;f++){var M=this.getThumbHtml(c[f].thumb,f,c[f].alt);this.$lgThumb.append(M)}},L.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},L.prototype.manageActiveClassOnSlideChange=function(){var c=this;this.core.LGel.on(ne.beforeSlide+".thumb",function(f){var M=c.core.outer.find(".lg-thumb-item"),X=f.detail.index;M.removeClass("active"),M.eq(X).addClass("active")})},L.prototype.toggleThumbBar=function(){var c=this;this.settings.toggleThumb&&(this.core.outer.addClass("lg-can-toggle"),this.core.$toolbar.append('<button type="button" aria-label="'+this.settings.thumbnailPluginStrings.toggleThumbnails+'" class="lg-toggle-thumb lg-icon"></button>'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){c.core.outer.toggleClass("lg-components-open")}))},L.prototype.thumbKeyPress=function(){var c=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(f){!c.core.lgOpened||!c.settings.toggleThumb||(f.keyCode===38?(f.preventDefault(),c.core.outer.addClass("lg-components-open")):f.keyCode===40&&(f.preventDefault(),c.core.outer.removeClass("lg-components-open")))})},L.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},L})();return q}));function r(V,de){for(var ne=0;ne<de.length;ne++){var q=de[ne];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(V,q.key,q)}}function Jt(V,de,ne){de&&r(V.prototype,de),ne&&r(V,ne),Object.defineProperty(V,"prototype",{writable:!1})}var n,t;n=this,t=function(){"use strict";var V="(prefers-reduced-motion: reduce)",de=4,ne=5,q={CREATED:1,MOUNTED:2,IDLE:3,MOVING:de,SCROLLING:ne,DRAGGING:6,DESTROYED:7};function L(s){s.length=0}function c(s,h,l){return Array.prototype.slice.call(s,h,l)}function f(s){return s.bind.apply(s,[null].concat(c(arguments,1)))}function M(){}var X=setTimeout;function ie(s){return requestAnimationFrame(s)}function ge(s,h){return typeof h===s}function O(s){return!a(s)&&ge("object",s)}
vendor: 26,277 bytes, line 57
57var U=Array.isArray,o=f(ge,"function"),e=f(ge,"string"),i=f(ge,"undefined");function a(s){return s===null}function u(s){try{return s instanceof(s.ownerDocument.defaultView||window).HTMLElement}catch(h){return!1}}function g(s){return U(s)?s:[s]}function p(s,h){g(s).forEach(h)}function I(s,h){return-1<s.indexOf(h)}function E(s,h){return s.push.apply(s,g(h)),s}function $(s,h,l){s&&p(h,function(d){d&&s.classList[l?"add":"remove"](d)})}function ee(s,h){$(s,e(h)?h.split(" "):h,!0)}function ae(s,h){p(h,s.appendChild.bind(s))}function le(s,h){p(s,function(l){var d=(h||l).parentNode;d&&d.insertBefore(l,h)})}function be(s,h){return u(s)&&(s.msMatchesSelector||s.matches).call(s,h)}function ve(s,h){return s=s?c(s.children):[],h?s.filter(function(l){return be(l,h)}):s}function Ie(s,h){return h?ve(s,h)[0]:s.firstElementChild}var ce=Object.keys;function y(s,h,l){s&&(l?ce(s).reverse():ce(s)).forEach(function(d){d!=="__proto__"&&h(s[d],d)})}function x(s){return c(arguments,1).forEach(function(h){y(h,function(l,d){s[d]=h[d]})}),s}function m(s){return c(arguments,1).forEach(function(h){y(h,function(l,d){U(l)?s[d]=l.slice():O(l)?s[d]=m({},O(s[d])?s[d]:{},l):s[d]=l})}),s}function G(s,h){p(h||ce(s),function(l){delete s[l]})}function te(s,h){p(s,function(l){p(h,function(d){l&&l.removeAttribute(d)})})}function j(s,h,l){O(h)?y(h,function(d,v){j(s,v,d)}):p(s,function(d){a(l)||l===""?te(d,h):d.setAttribute(h,String(l))})}function me(s,h,l){return s=document.createElement(s),h&&(e(h)?ee:j)(s,h),l&&ae(l,s),s}function we(s,h,l){if(i(l))return getComputedStyle(s)[h];a(l)||(s.style[h]=""+l)}function Le(s,h){we(s,"display",h)}function Ge(s){s.setActive&&s.setActive()||s.focus({preventScroll:!0})}function Se(s,h){return s.getAttribute(h)}function $e(s,h){return s&&s.classList.contains(h)}function _e(s){return s.getBoundingClientRect()}function Xe(s){p(s,function(h){h&&h.parentNode&&h.parentNode.removeChild(h)})}function Me(s){return Ie(new DOMParser().parseFromString(s,"text/html").body)}function We(s,h){s.preventDefault(),h&&(s.stopPropagation(),s.stopImmediatePropagation())}function yt(s,h){return s&&s.querySelector(h)}function lt(s,h){return h?c(s.querySelectorAll(h)):[]}function Re(s,h){$(s,h,!1)}function Je(s){return s.timeStamp}function Ke(s){return e(s)?s:s?s+"px":""}var ut="splide",kt="data-"+ut;function ct(s,h){if(!s)throw new Error("["+ut+"] "+(h||""))}var Ve=Math.min,bt=Math.max,wt=Math.floor,dt=Math.ceil,Pe=Math.abs;function qt(s,h,l){return Pe(s-h)<l}function St(s,b,l,d){var v=Ve(b,l),b=bt(b,l);return d?v<s&&s<b:v<=s&&s<=b}function tt(s,v,l){var d=Ve(v,l),v=bt(v,l);return Ve(bt(d,s),v)}function At(s){return(0<s)-(s<0)}function Mt(s,h){return p(h,function(l){s=s.replace("%s",""+l)}),s}function Dt(s){return s<10?"0"+s:""+s}var Yt={};function Ut(){var s=[];function h(l,d,v){p(l,function(b){b&&p(d,function(C){C.split(" ").forEach(function(S){S=S.split("."),v(b,S[0],S[1])})})})}return{bind:function(l,d,v,b){h(l,d,function(C,S,D){var _="addEventListener"in C,k=_?C.removeEventListener.bind(C,S,v,b):C.removeListener.bind(C,v);_?C.addEventListener(S,v,b):C.addListener(v),s.push([C,S,D,v,k])})},unbind:function(l,d,v){h(l,d,function(b,C,S){s=s.filter(function(D){return!!(D[0]!==b||D[1]!==C||D[2]!==S||v&&D[3]!==v)||(D[4](),!1)})})},dispatch:function(l,d,v){var b;return typeof CustomEvent=="function"?b=new CustomEvent(d,{bubbles:!0,detail:v}):(b=document.createEvent("CustomEvent")).initCustomEvent(d,!0,!1,v),l.dispatchEvent(b),b},destroy:function(){s.forEach(function(l){l[4]()}),L(s)}}}var Ze="mounted",qe="move",ft="moved",Kt="click",Ti="active",Ci="inactive",Ei="visible",Ii="hidden",Oe="refresh",ze="updated",ht="resize",Pt="resized",zt="scroll",it="scrolled",Zt="destroy",Qt="navigation:mounted",ei="autoplay:play",ti="autoplay:pause",ii="lazyload:loaded",ni="sk",ri="sh";function Te(s){var h=s?s.event.bus:document.createDocumentFragment(),l=Ut();return s&&s.event.on(Zt,l.destroy),x(l,{bus:h,on:function(d,v){l.bind(h,g(d).join(" "),function(b){v.apply(v,U(b.detail)?b.detail:[])})},off:f(l.unbind,h),emit:function(d){l.dispatch(h,d,c(arguments,1))}})}function Tt(s,h,l,d){var v,b,C=Date.now,S=0,D=!0,_=0;function k(){if(!D){if(S=s?Ve((C()-v)/s,1):1,l&&l(S),1<=S&&(h(),v=C(),d&&++_>=d))return R();b=ie(k)}}function R(){D=!0}function H(){b&&cancelAnimationFrame(b),D=!(b=S=0)}return{start:function(P){P||H(),v=C()-(P?S*s:0),D=!1,b=ie(k)},rewind:function(){v=C(),S=0,l&&l(S)},pause:R,cancel:H,set:function(P){s=P},isPaused:function(){return D}}}function _i(s){var h=s;return{set:function(l){h=l},is:function(l){return I(g(l),h)}}}var Qe="Arrow",Ct=Qe+"Left",Et=Qe+"Right",nt=Qe+"Up",Qe=Qe+"Down",It="ttb",Ft={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[nt,Et],ArrowRight:[Qe,Ct]},je="role",rt="tabindex",Ce="aria-",gt=Ce+"controls",si=Ce+"current",oi=Ce+"selected",Be=Ce+"label",Ht=Ce+"labelledby",ai=Ce+"hidden",Nt=Ce+"orientation",mt=Ce+"roledescription",li=Ce+"live",ui=Ce+"busy",ci=Ce+"atomic",Gt=[je,rt,"disabled",gt,si,Be,Ht,ai,Nt,mt],Ce=ut+"__",Wt=ut,di=Ce+"track",Li=Ce+"list",_t=Ce+"slide",fi=_t+"--clone",Oi=_t+"__container",Rt=Ce+"arrows",Lt=Ce+"arrow",hi=Lt+"--prev",gi=Lt+"--next",Ot=Ce+"pagination",mi=Ot+"__page",xi=Ce+"progress__bar",ki=Ce+"toggle",Ai=Ce+"sr",et="is-active",pi="is-prev",vi="is-next",Bt="is-visible",Xt="is-loading",yi="is-focus-in",bi="is-overflow",Mi=[et,Bt,pi,vi,Xt,yi,bi],wi="touchstart mousedown",$t="touchmove mousemove",jt="touchend touchcancel mouseup click",st="slide",ot="loop",pt="fade";function Di(s,h,l,d){var v,b=Te(s),C=b.on,S=b.emit,D=b.bind,_=s.Components,k=s.root,R=s.options,H=R.isNavigation,P=R.updateOnMove,B=R.i18n,N=R.pagination,w=R.slideFocus,T=_.Direction.resolve,Z=Se(d,"style"),J=Se(d,Be),Y=-1<l,z=Ie(d,"."+Oi);function re(){var A=s.splides.map(function(F){return F=F.splide.Components.Slides.getAt(h),F?F.slide.id:""}).join(" ");j(d,Be,Mt(B.slideX,(Y?l:h)+1)),j(d,gt,A),j(d,je,w?"button":""),w&&te(d,mt)}function he(){v||ue()}function ue(){var A,F,K;v||(A=s.index,(K=se())!==$e(d,et)&&($(d,et,K),j(d,si,H&&K||""),S(K?Ti:Ci,W)),K=(function(){if(s.is(pt))return se();var fe=_e(_.Elements.track),xe=_e(d),ye=T("left",!0),Ne=T("right",!0);return wt(fe[ye])<=dt(xe[ye])&&wt(xe[Ne])<=dt(fe[Ne])})(),F=!K&&(!se()||Y),s.state.is([de,ne])||j(d,ai,F||""),j(lt(d,R.focusableNodes||""),rt,F?-1:""),w&&j(d,rt,F?-1:0),K!==$e(d,Bt)&&($(d,Bt,K),S(K?Ei:Ii,W)),K||document.activeElement!==d||(F=_.Slides.getAt(s.index))&&Ge(F.slide),$(d,pi,h===A-1),$(d,vi,h===A+1))}function se(){var A=s.index;return A===h||R.cloneStatus&&A===l}var W={index:h,slideIndex:l,slide:d,container:z,isClone:Y,mount:function(){Y||(d.id=k.id+"-slide"+Dt(h+1),j(d,je,N?"tabpanel":"group"),j(d,mt,B.slide),j(d,Be,J||Mt(B.slideLabel,[h+1,s.length]))),D(d,"click",f(S,Kt,W)),D(d,"keydown",f(S,ni,W)),C([ft,ri,it],ue),C(Qt,re),P&&C(qe,he)},destroy:function(){v=!0,b.destroy(),Re(d,Mi),te(d,Gt),j(d,"style",Z),j(d,Be,J||"")},update:ue,style:function(A,F,K){we(K&&z||d,A,F)},isWithin:function(A,F){return A=Pe(A-h),(A=Y||!R.rewind&&!s.is(ot)?A:Ve(A,s.length-A))<=F}};return W}var Pi=kt+"-interval",at={passive:!1,capture:!0},zi={Spacebar:" ",Right:Et,Left:Ct,Up:nt,Down:Qe};function Vt(s){return s=e(s)?s:s.key,zi[s]||s}var Si="keydown",vt=kt+"-lazy",xt=vt+"-srcset",Fi="["+vt+"], ["+xt+"]",Hi=[" ","Enter"],Ni=Object.freeze({__proto__:null,Media:function(s,h,l){var d=s.state,v=l.breakpoints||{},b=l.reducedMotion||{},C=Ut(),S=[];function D(H){H&&C.destroy()}function _(H,P){P=matchMedia(P),C.bind(P,"change",k),S.push([H,P])}function k(){var H=d.is(7),P=l.direction,B=S.reduce(function(N,w){return m(N,w[1].matches?w[0]:{})},{});G(l),R(B),l.destroy?s.destroy(l.destroy==="completely"):H?(D(!0),s.mount()):P!==l.direction&&s.refresh()}function R(H,P,B){m(l,H),P&&m(Object.getPrototypeOf(l),H),!B&&d.is(1)||s.emit(ze,l)}return{setup:function(){var H=l.mediaQuery==="min";ce(v).sort(function(P,B){return H?+P-+B:+B-+P}).forEach(function(P){_(v[P],"("+(H?"min":"max")+"-width:"+P+"px)")}),_(b,V),k()},destroy:D,reduce:function(H){matchMedia(V).matches&&(H?m(l,b):G(l,ce(b)))},set:R}},Direction:function(s,h,l){return{resolve:function(d,v,b){var C=(b=b||l.direction)!=="rtl"||v?b===It?0:-1:1;return Ft[d]&&Ft[d][C]||d.replace(/width|left|right/i,function(S,D){return S=Ft[S.toLowerCase()][C]||S,0<D?S.charAt(0).toUpperCase()+S.slice(1):S})},orient:function(d){return d*(l.direction==="rtl"?1:-1)}}},Elements:function(s,h,l){var d,v,b,C=Te(s),S=C.on,D=C.bind,_=s.root,k=l.i18n,R={},H=[],P=[],B=[];function N(){d=Z("."+di),v=Ie(d,"."+Li),ct(d&&v,"A track/list element is missing."),E(H,ve(v,"."+_t+":not(."+fi+")")),y({arrows:Rt,pagination:Ot,prev:hi,next:gi,bar:xi,toggle:ki},function(re,he){R[he]=Z("."+re)}),x(R,{root:_,track:d,list:v,slides:H});var Y=_.id||(function(re){return""+re+Dt(Yt[re]=(Yt[re]||0)+1)})(ut),z=l.role;_.id=Y,d.id=d.id||Y+"-track",v.id=v.id||Y+"-list",!Se(_,je)&&_.tagName!=="SECTION"&&z&&j(_,je,z),j(_,mt,k.carousel),j(v,je,"presentation"),T()}function w(Y){var z=Gt.concat("style");L(H),Re(_,P),Re(d,B),te([d,v],z),te(_,Y?z:["style",mt])}function T(){Re(_,P),Re(d,B),P=J(Wt),B=J(di),ee(_,P),ee(d,B),j(_,Be,l.label),j(_,Ht,l.labelledby)}function Z(Y){return Y=yt(_,Y),Y&&(function(z,re){if(o(z.closest))return z.closest(re);for(var he=z;he&&he.nodeType===1&&!be(he,re);)he=he.parentElement;return he})(Y,"."+Wt)===_?Y:void 0}function J(Y){return[Y+"--"+l.type,Y+"--"+l.direction,l.drag&&Y+"--draggable",l.isNavigation&&Y+"--nav",Y===Wt&&et]}return x(R,{setup:N,mount:function(){S(Oe,w),S(Oe,N),S(ze,T),D(document,wi+" keydown",function(Y){b=Y.type==="keydown"},{capture:!0}),D(_,"focusin",function(){$(_,yi,!!b)})},destroy:w})},Slides:function(s,h,l){var d=Te(s),v=d.on,b=d.emit,C=d.bind,S=(d=h.Elements).slides,D=d.list,_=[];function k(){S.forEach(function(w,T){H(w,T,-1)})}function R(){B(function(w){w.destroy()}),L(_)}function H(w,T,Z){T=Di(s,T,Z,w),T.mount(),_.push(T),_.sort(function(J,Y){return J.index-Y.index})}function P(w){return w?N(function(T){return!T.isClone}):_}function B(w,T){P(T).forEach(w)}function N(w){return _.filter(o(w)?w:function(T){return e(w)?be(T.slide,w):I(g(w),T.index)})}return{mount:function(){k(),v(Oe,R),v(Oe,k)},destroy:R,update:function(){B(function(w){w.update()})},register:H,get:P,getIn:function(w){var T=h.Controller,Z=T.toIndex(w),J=T.hasFocus()?1:l.perPage;return N(function(Y){return St(Y.index,Z,Z+J-1)})},getAt:function(w){return N(w)[0]},add:function(w,T){p(w,function(Z){var J,Y,z;u(Z=e(Z)?Me(Z):Z)&&((J=S[T])?le(Z,J):ae(D,Z),ee(Z,l.classes.slide),J=Z,Y=f(b,ht),J=lt(J,"img"),(z=J.length)?J.forEach(function(re){C(re,"load error",function(){--z||Y()})}):Y())}),b(Oe)},remove:function(w){Xe(N(w).map(function(T){return T.slide})),b(Oe)},forEach:B,filter:N,style:function(w,T,Z){B(function(J){J.style(w,T,Z)})},getLength:function(w){return(w?S:_).length},isEnough:function(){return _.length>l.perPage}}},Layout:function(s,h,l){var d,v,b,C=(_=Te(s)).on,S=_.bind,D=_.emit,_=h.Slides,k=h.Direction.resolve,R=(h=h.Elements).root,H=h.track,P=h.list,B=_.getAt,N=_.style;function w(){d=l.direction===It,we(R,"maxWidth",Ke(l.width)),we(H,k("paddingLeft"),Z(!1)),we(H,k("paddingRight"),Z(!0)),T(!0)}function T(A){var F=_e(R);!A&&v.width===F.width&&v.height===F.height||(we(H,"height",(function(){var K="";return d&&(ct(K=J(),"height or heightRatio is missing."),K="calc("+K+" - "+Z(!1)+" - "+Z(!0)+")"),K})()),N(k("marginRight"),Ke(l.gap)),N("width",l.autoWidth?null:Ke(l.fixedWidth)||(d?"":Y())),N("height",Ke(l.fixedHeight)||(d?l.autoHeight?null:Y():J()),!0),v=F,D(Pt),b!==(b=W())&&($(R,bi,b),D("overflow",b)))}function Z(K){var F=l.padding,K=k(K?"right":"left");return F&&Ke(F[K]||(O(F)?0:F))||"0px"}function J(){return Ke(l.height||_e(P).width*l.heightRatio)}function Y(){var A=Ke(l.gap);return"calc((100%"+(A&&" + "+A)+")/"+(l.perPage||1)+(A&&" - "+A)+")"}function z(){return _e(P)[k("width")]}function re(A,F){return A=B(A||0),A?_e(A.slide)[k("width")]+(F?0:se()):0}function he(fe,F){var K,fe=B(fe);return fe?(fe=_e(fe.slide)[k("right")],K=_e(P)[k("left")],Pe(fe-K)+(F?0:se())):0}function ue(A){return he(s.length-1)-he(0)+re(0,A)}function se(){var A=B(0);return A&&parseFloat(we(A.slide,k("marginRight")))||0}function W(){return s.is(pt)||ue(!0)>z()}return{mount:function(){var A,F,K;w(),S(window,"resize load",(A=f(D,ht),K=Tt(F||0,A,null,1),function(){K.isPaused()&&K.start()})),C([ze,Oe],w),C(ht,T)},resize:T,listSize:z,slideSize:re,sliderSize:ue,totalSize:he,getPadding:function(A){return parseFloat(we(H,k("padding"+(A?"Right":"Left"))))||0},isOverflow:W}},Clones:function(s,h,l){var d,v=Te(s),b=v.on,C=h.Elements,S=h.Slides,D=h.Direction.resolve,_=[];function k(){if(b(Oe,R),b([ze,ht],P),d=B()){var N=d,w=S.get().slice(),T=w.length;if(T){for(;w.length<N;)E(w,w);E(w.slice(-N),w.slice(0,N)).forEach(function(Z,J){var Y=J<N,z=(function(re,he){return re=re.cloneNode(!0),ee(re,l.classes.clone),re.id=s.root.id+"-clone"+Dt(he+1),re})(Z.slide,J);Y?le(z,w[0].slide):ae(C.list,z),E(_,z),S.register(z,J-N+(Y?0:T),Z.index)})}h.Layout.resize(!0)}}function R(){H(),k()}function H(){Xe(_),L(_),v.destroy()}function P(){var N=B();d!==N&&(d<N||!N)&&v.emit(Oe)}function B(){var N,w=l.clones;return s.is(ot)?i(w)&&(w=(N=l[D("fixedWidth")]&&h.Layout.slideSize(0))&&dt(_e(C.track)[D("width")]/N)||l[D("autoWidth")]&&s.length||2*l.perPage):w=0,w}return{mount:k,destroy:H}},Move:function(s,h,l){var d,v=Te(s),b=v.on,C=v.emit,S=s.state.set,D=(v=h.Layout).slideSize,_=v.getPadding,k=v.totalSize,R=v.listSize,H=v.sliderSize,P=(v=h.Direction).resolve,B=v.orient,N=(v=h.Elements).list,w=v.track;function T(){h.Controller.isBusy()||(h.Scroll.cancel(),Z(s.index),h.Slides.update())}function Z(W){J(he(W,!0))}function J(W,A){s.is(pt)||(A=A?W:(function(F){{var K,fe;s.is(ot)&&(K=re(F),fe=K>h.Controller.getEnd(),(K<0||fe)&&(F=Y(F,fe)))}return F})(W),we(N,"transform","translate"+P("X")+"("+A+"px)"),W!==A&&C(ri))}function Y(W,A){var F=W-se(A),K=H();return W-=B(K*(dt(Pe(F)/K)||1))*(A?1:-1)}function z(){J(ue(),!0),d.cancel()}function re(W){for(var A=h.Slides.get(),F=0,K=1/0,fe=0;fe<A.length;fe++){var xe=A[fe].index,ye=Pe(he(xe,!0)-W);if(!(ye<=K))break;K=ye,F=xe}return F}function he(W,A){var F=B(k(W-1)-(W=W,(F=l.focus)==="center"?(R()-D(W,!0))/2:+F*D(W)||0));return A?(W=F,W=l.trimSpace&&s.is(st)?tt(W,0,B(H(!0)-R())):W):F}function ue(){var W=P("left");return _e(N)[W]-_e(w)[W]+B(_(!1))}function se(W){return he(W?h.Controller.getEnd():0,!!l.trimSpace)}return{mount:function(){d=h.Transition,b([Ze,Pt,ze,Oe],T)},move:function(W,A,F,K){var fe,xe;W!==A&&(fe=F<W,xe=B(Y(ue(),fe)),fe?0<=xe:xe<=N[P("scrollWidth")]-_e(w)[P("width")])&&(z(),J(Y(ue(),F<W),!0)),S(de),C(qe,A,F,W),d.start(A,function(){S(3),C(ft,A,F,W),K&&K()})},jump:Z,translate:J,shift:Y,cancel:z,toIndex:re,toPosition:he,getPosition:ue,getLimit:se,exceededLimit:function(K,A){A=i(A)?ue():A;var F=K!==!0&&B(A)<B(se(!1)),K=K!==!1&&B(A)>B(se(!0));return F||K},reposition:T}},Controller:function(s,h,l){var d,v,b,C,S=Te(s),D=S.on,_=S.emit,k=h.Move,R=k.getPosition,H=k.getLimit,P=k.toPosition,B=(S=h.Slides).isEnough,N=S.getLength,w=l.omitEnd,T=s.is(ot),Z=s.is(st),J=f(se,!1),Y=f(se,!0),z=l.start||0,re=z;function he(){v=N(!0),b=l.perMove,C=l.perPage,d=F();var Q=tt(z,0,w?d:v-1);Q!==z&&(z=Q,k.reposition())}function ue(){d!==F()&&_("ei")}function se(Q,De){var ke=b||(ye()?1:C),ke=W(z+ke*(Q?-1:1),z,!(b||ye()));return ke===-1&&Z&&!qt(R(),H(!Q),1)?Q?0:d:De?ke:A(ke)}function W(Q,De,ke){var Fe;return B()||ye()?((Fe=(function(Ae){if(Z&&l.trimSpace==="move"&&Ae!==z)for(var oe=R();oe===P(Ae,!0)&&St(Ae,0,s.length-1,!l.rewind);)Ae<z?--Ae:++Ae;return Ae})(Q))!==Q&&(De=Q,Q=Fe,ke=!1),Q<0||d<Q?Q=b||!St(0,Q,De,!0)&&!St(d,De,Q,!0)?T?ke?Q<0?-(v%C||C):v:Q:l.rewind?Q<0?d:0:-1:K(fe(Q)):ke&&Q!==De&&(Q=K(fe(De)+(Q<De?-1:1)))):Q=-1,Q}function A(Q){return T?(Q+v)%v||0:Q}function F(){for(var Q=v-(ye()||T&&b?1:C);w&&0<Q--;)if(P(v-1,!0)!==P(Q,!0)){Q++;break}return tt(Q,0,v-1)}function K(Q){return tt(ye()?Q:C*Q,0,d)}function fe(Q){return ye()?Ve(Q,d):wt((d<=Q?v-1:Q)/C)}function xe(Q){Q!==z&&(re=z,z=Q)}function ye(){return!i(l.focus)||l.isNavigation}function Ne(){return s.state.is([de,ne])&&!!l.waitForTransition}return{mount:function(){he(),D([ze,Oe,"ei"],he),D(Pt,ue)},go:function(Q,De,ke){var Fe;Ne()||-1<(Fe=A(Q=(function(Ae){var oe=z;{var pe,Ee;e(Ae)?(Ee=Ae.match(/([+\-<>])(\d+)?/)||[],pe=Ee[1],Ee=Ee[2],pe==="+"||pe==="-"?oe=W(z+ +(""+pe+(+Ee||1)),z):pe===">"?oe=Ee?K(+Ee):J(!0):pe==="<"&&(oe=Y(!0))):oe=T?Ae:tt(Ae,0,d)}return oe})(Q)))&&(De||Fe!==z)&&(xe(Fe),k.move(Q,Fe,re,ke))},scroll:function(Q,De,ke,Fe){h.Scroll.scroll(Q,De,ke,function(){var Ae=A(k.toIndex(R()));xe(w?Ve(Ae,d):Ae),Fe&&Fe()})},getNext:J,getPrev:Y,getAdjacent:se,getEnd:F,setIndex:xe,getIndex:function(Q){return Q?re:z},toIndex:K,toPage:fe,toDest:function(Q){return Q=k.toIndex(Q),Z?tt(Q,0,d):Q},hasFocus:ye,isBusy:Ne}},Arrows:function(s,h,l){var d,v,b=Te(s),C=b.on,S=b.bind,D=b.emit,_=l.classes,k=l.i18n,R=h.Elements,H=h.Controller,P=R.arrows,B=R.track,N=P,w=R.prev,T=R.next,Z={};function J(){var se=l.arrows;!se||w&&T||(N=P||me("div",_.arrows),w=he(!0),T=he(!1),d=!0,ae(N,[w,T]),P||le(N,B)),w&&T&&(x(Z,{prev:w,next:T}),Le(N,se?"":"none"),ee(N,v=Rt+"--"+l.direction),se&&(C([Ze,ft,Oe,it,"ei"],ue),S(T,"click",f(re,">")),S(w,"click",f(re,"<")),ue(),j([w,T],gt,B.id),D("arrows:mounted",w,T))),C(ze,Y)}function Y(){z(),J()}function z(){b.destroy(),Re(N,v),d?(Xe(P?[w,T]:N),w=T=null):te([w,T],Gt)}function re(se){H.go(se,!0)}function he(se){return Me('<button class="'+_.arrow+" "+(se?_.prev:_.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(l.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function ue(){var se,W,A,F;w&&T&&(F=s.index,se=H.getPrev(),W=H.getNext(),A=-1<se&&F<se?k.last:k.prev,F=-1<W&&W<F?k.first:k.next,w.disabled=se<0,T.disabled=W<0,j(w,Be,A),j(T,Be,F),D("arrows:updated",w,T,se,W))}return{arrows:Z,mount:J,destroy:z,update:ue}},Autoplay:function(s,h,l){var d,v,b=Te(s),C=b.on,S=b.bind,D=b.emit,_=Tt(l.interval,s.go.bind(s,">"),function(z){var re=R.bar;re&&we(re,"width",100*z+"%"),D("autoplay:playing",z)}),k=_.isPaused,R=h.Elements,H=(b=h.Elements).root,P=b.toggle,B=l.autoplay,N=B==="pause";function w(){k()&&h.Slides.isEnough()&&(_.start(!l.resetProgress),v=d=N=!1,J(),D(ei))}function T(z){N=!!(z=z===void 0?!0:z),J(),k()||(_.pause(),D(ti))}function Z(){N||(d||v?T(!1):w())}function J(){P&&($(P,et,!N),j(P,Be,l.i18n[N?"play":"pause"]))}function Y(z){z=h.Slides.getAt(z),_.set(z&&+Se(z.slide,Pi)||l.interval)}return{mount:function(){B&&(l.pauseOnHover&&S(H,"mouseenter mouseleave",function(z){d=z.type==="mouseenter",Z()}),l.pauseOnFocus&&S(H,"focusin focusout",function(z){v=z.type==="focusin",Z()}),P&&S(P,"click",function(){N?w():T(!0)}),C([qe,zt,Oe],_.rewind),C(qe,Y),P&&j(P,gt,R.track.id),N||w(),J())},destroy:_.cancel,play:w,pause:T,isPaused:k}},Cover:function(s,h,l){var d=Te(s).on;function v(C){h.Slides.forEach(function(S){var D=Ie(S.container||S.slide,"img");D&&D.src&&b(C,D,S)})}function b(C,S,D){D.style("background",C?'center/cover no-repeat url("'+S.src+'")':"",!0),Le(S,C?"none":"")}return{mount:function(){l.cover&&(d(ii,f(b,!0)),d([Ze,ze,Oe],f(v,!0)))},destroy:f(v,!1)}},Scroll:function(s,h,l){var d,v,b=Te(s),C=b.on,S=b.emit,D=s.state.set,_=h.Move,k=_.getPosition,R=_.getLimit,H=_.exceededLimit,P=_.translate,B=s.is(st),N=1;function w(z,re,F,ue,se){var W,A=k(),F=(J(),!F||B&&H()||(F=h.Layout.sliderSize(),W=At(z)*F*wt(Pe(z)/F)||0,z=_.toPosition(h.Controller.toDest(z%F))+W),qt(A,z,1));N=1,re=F?0:re||bt(Pe(z-A)/1.5,800),v=ue,d=Tt(re,T,f(Z,A,z,se),1),D(ne),S(zt),d.start()}function T(){D(3),v&&v(),S(it)}function Z(z,re,he,W){var se=k(),W=(z+(re-z)*(re=W,(z=l.easingFunc)?z(re):1-Math.pow(1-re,4))-se)*N;P(se+W),B&&!he&&H()&&(N*=.6,Pe(W)<10&&w(R(H(!0)),600,!1,v,!0))}function J(){d&&d.cancel()}function Y(){d&&!d.isPaused()&&(J(),T())}return{mount:function(){C(qe,J),C([ze,Oe],Y)},destroy:J,scroll:w,cancel:Y}},Drag:function(s,h,l){var d,v,b,C,S,D,_,k,R=Te(s),H=R.on,P=R.emit,B=R.bind,N=R.unbind,w=s.state,T=h.Move,Z=h.Scroll,J=h.Controller,Y=h.Elements.track,z=h.Media.reduce,re=(R=h.Direction).resolve,he=R.orient,ue=T.getPosition,se=T.exceededLimit,W=!1;function A(){var oe=l.drag;Ae(!oe),C=oe==="free"}function F(oe){var pe,Ee,He;D=!1,_||(pe=Fe(oe),Ee=oe.target,He=l.noDrag,be(Ee,"."+mi+", ."+Lt)||He&&be(Ee,He)||!pe&&oe.button||(J.isBusy()?We(oe,!0):(k=pe?Y:window,S=w.is([de,ne]),b=null,B(k,$t,K,at),B(k,jt,fe,at),T.cancel(),Z.cancel(),ye(oe))))}function K(oe){var pe,Ee,He,Ye,Ue;w.is(6)||(w.set(6),P("drag")),oe.cancelable&&(S?(T.translate(d+Ne(oe)/(W&&s.is(st)?5:1)),Ue=200<Q(oe),pe=W!==(W=se()),(Ue||pe)&&ye(oe),D=!0,P("dragging"),We(oe)):Pe(Ne(Ue=oe))>Pe(Ne(Ue,!0))&&(pe=oe,Ee=l.dragMinThreshold,He=O(Ee),Ye=He&&Ee.mouse||0,He=(He?Ee.touch:+Ee)||10,S=Pe(Ne(pe))>(Fe(pe)?He:Ye),We(oe)))}function fe(oe){var pe,Ee,He;w.is(6)&&(w.set(3),P("dragged")),S&&(Ee=(function(Ye){return ue()+At(Ye)*Ve(Pe(Ye)*(l.flickPower||600),C?1/0:h.Layout.listSize()*(l.flickMaxPages||1))})(pe=(function(Ye){if(s.is(ot)||!W){var Ue=Q(Ye);if(Ue&&Ue<200)return Ne(Ye)/Ue}return 0})(pe=oe)),He=l.rewind&&l.rewindByDrag,z(!1),C?J.scroll(Ee,0,l.snap):s.is(pt)?J.go(he(At(pe))<0?He?"<":"-":He?">":"+"):s.is(st)&&W&&He?J.go(se(!0)?">":"<"):J.go(J.toDest(Ee),!0),z(!0),We(oe)),N(k,$t,K),N(k,jt,fe),S=!1}function xe(oe){!_&&D&&We(oe,!0)}function ye(oe){b=v,v=oe,d=ue()}function Ne(oe,pe){return ke(oe,pe)-ke(De(oe),pe)}function Q(oe){return Je(oe)-Je(De(oe))}function De(oe){return v===oe&&b||v}function ke(oe,pe){return(Fe(oe)?oe.changedTouches[0]:oe)["page"+re(pe?"Y":"X")]}function Fe(oe){return typeof TouchEvent!="undefined"&&oe instanceof TouchEvent}function Ae(oe){_=oe}return{mount:function(){B(Y,$t,M,at),B(Y,jt,M,at),B(Y,wi,F,at),B(Y,"click",xe,{capture:!0}),B(Y,"dragstart",We),H([Ze,ze],A)},disable:Ae,isDragging:function(){return S}}},Keyboard:function(s,h,l){var d,v,b=Te(s),C=b.on,S=b.bind,D=b.unbind,_=s.root,k=h.Direction.resolve;function R(){var N=l.keyboard;N&&(d=N==="global"?window:_,S(d,Si,B))}function H(){D(d,Si)}function P(){var N=v;v=!0,X(function(){v=N})}function B(N){v||((N=Vt(N))===k(Ct)?s.go("<"):N===k(Et)&&s.go(">"))}return{mount:function(){R(),C(ze,H),C(ze,R),C(qe,P)},destroy:H,disable:function(N){v=N}}},LazyLoad:function(s,h,l){var d=Te(s),v=d.on,b=d.off,C=d.bind,S=d.emit,D=l.lazyLoad==="sequential",_=[ft,it],k=[];function R(){L(k),h.Slides.forEach(function(w){lt(w.slide,Fi).forEach(function(T){var Z=Se(T,vt),J=Se(T,xt);Z===T.src&&J===T.srcset||(Z=l.classes.spinner,Z=Ie(J=T.parentElement,"."+Z)||me("span",Z,J),k.push([T,w,Z]),T.src||Le(T,"none"))})}),(D?N:(b(_),v(_,H),H))()}function H(){(k=k.filter(function(w){var T=l.perPage*((l.preloadPages||1)+1)-1;return!w[1].isWithin(s.index,T)||P(w)})).length||b(_)}function P(w){var T=w[0];ee(w[1].slide,Xt),C(T,"load error",f(B,w)),j(T,"src",Se(T,vt)),j(T,"srcset",Se(T,xt)),te(T,vt),te(T,xt)}function B(w,T){var Z=w[0],J=w[1];Re(J.slide,Xt),T.type!=="error"&&(Xe(w[2]),Le(Z,""),S(ii,Z,J),S(ht)),D&&N()}function N(){k.length&&P(k.shift())}return{mount:function(){l.lazyLoad&&(R(),v(Oe,R))},destroy:f(L,k),check:H}},Pagination:function(s,h,l){var d,v,b=Te(s),C=b.on,S=b.emit,D=b.bind,_=h.Slides,k=h.Elements,R=h.Controller,H=R.hasFocus,P=R.getIndex,B=R.go,N=h.Direction.resolve,w=k.pagination,T=[];function Z(){d&&(Xe(w?c(d.children):d),Re(d,v),L(T),d=null),b.destroy()}function J(ue){B(">"+ue,!0)}function Y(ue,se){var W=T.length,A=Vt(se),K=z(),F=-1,K=(A===N(Et,!1,K)?F=++ue%W:A===N(Ct,!1,K)?F=(--ue+W)%W:A==="Home"?F=0:A==="End"&&(F=W-1),T[F]);K&&(Ge(K.button),B(">"+F),We(se,!0))}function z(){return l.paginationDirection||l.direction}function re(ue){return T[R.toPage(ue)]}function he(){var ue,se=re(P(!0)),W=re(P());se&&(Re(ue=se.button,et),te(ue,oi),j(ue,rt,-1)),W&&(ee(ue=W.button,et),j(ue,oi,!0),j(ue,rt,"")),S("pagination:updated",{list:d,items:T},se,W)}return{items:T,mount:function ue(){Z(),C([ze,Oe,"ei"],ue);var se=l.pagination;if(w&&Le(w,se?"":"none"),se){C([qe,zt,it],he);var se=s.length,W=l.classes,A=l.i18n,F=l.perPage,K=H()?R.getEnd()+1:dt(se/F);ee(d=w||me("ul",W.pagination,k.track.parentElement),v=Ot+"--"+z()),j(d,je,"tablist"),j(d,Be,A.select),j(d,Nt,z()===It?"vertical":"");for(var fe=0;fe<K;fe++){var xe=me("li",null,d),ye=me("button",{class:W.page,type:"button"},xe),Ne=_.getIn(fe).map(function(ke){return ke.slide.id}),Q=!H()&&1<F?A.pageX:A.slideX;D(ye,"click",f(J,fe)),l.paginationKeyboard&&D(ye,"keydown",f(Y,fe)),j(xe,je,"presentation"),j(ye,je,"tab"),j(ye,gt,Ne.join(" ")),j(ye,Be,Mt(Q,fe+1)),j(ye,rt,-1),T.push({li:xe,button:ye,page:fe})}he(),S("pagination:mounted",{list:d,items:T},re(s.index))}},destroy:Z,getAt:re,update:he}},Sync:function(s,h,l){var d=l.isNavigation,v=l.slideFocus,b=[];function C(){var H,P;s.splides.forEach(function(B){B.isParent||(D(s,B.splide),D(B.splide,s))}),d&&(H=Te(s),(P=H.on)(Kt,k),P(ni,R),P([Ze,ze],_),b.push(H),H.emit(Qt,s.splides))}function S(){b.forEach(function(H){H.destroy()}),L(b)}function D(H,P){H=Te(H),H.on(qe,function(B,N,w){P.go(P.is(ot)?w:B)}),b.push(H)}function _(){j(h.Elements.list,Nt,l.direction===It?"vertical":"")}function k(H){s.go(H.index)}function R(H,P){I(Hi,Vt(P))&&(k(H),We(P))}return{setup:f(h.Media.set,{slideFocus:i(v)?d:v},!0),mount:C,destroy:S,remount:function(){S(),C()}}},Wheel:function(s,h,l){var d=Te(s).bind,v=0;function b(C){var S,D,_,k,R;C.cancelable&&(S=(R=C.deltaY)<0,D=Je(C),_=l.wheelMinThreshold||0,k=l.wheelSleep||0,Pe(R)>_&&k<D-v&&(s.go(S?"<":">"),v=D),R=S,l.releaseWheel&&!s.state.is(de)&&h.Controller.getAdjacent(R)===-1||We(C))}return{mount:function(){l.wheel&&d(h.Elements.track,"wheel",b,at)}}},Live:function(s,h,l){var d=Te(s).on,v=h.Elements.track,b=l.live&&!l.isNavigation,C=me("span",Ai),S=Tt(90,f(D,!1));function D(k){j(v,ui,k),k?(ae(v,C),S.start()):(Xe(C),S.cancel())}function _(k){b&&j(v,li,k?"off":"polite")}return{mount:function(){b&&(_(!h.Autoplay.isPaused()),j(v,ci,!0),C.textContent="\u2026",d(ei,f(_,!0)),d(ti,f(_,!1)),d([ft,it],f(D,!0)))},disable:_,destroy:function(){te(v,[li,ci,ui]),Xe(C)}}}}),Gi={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace
57:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:{slide:_t,clone:fi,arrows:Rt,arrow:Lt,prev:hi,next:gi,pagination:Ot,page:mi,spinner:Ce+"spinner"},i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Wi(s,h,l){var d=h.Slides;function v(){d.forEach(function(b){b.style("transform","translateX(-"+100*b.index+"%)")})}return{mount:function(){Te(s).on([Ze,Oe],v)},start:function(b,C){d.style("transition","opacity "+l.speed+"ms "+l.easing),X(C)},cancel:M}}function Ri(s,h,l){var d,v=h.Move,b=h.Controller,C=h.Scroll,S=h.Elements.list,D=f(we,S,"transition");function _(){D(""),C.cancel()}return{mount:function(){Te(s).bind(S,"transitionend",function(k){k.target===S&&d&&(_(),d())})},start:function(k,R){var H=v.toPosition(k,!0),P=v.getPosition(),B=(function(N){var w=l.rewindSpeed;if(s.is(st)&&w){var T=b.getIndex(!0),Z=b.getEnd();if(T===0&&Z<=N||Z<=T&&N===0)return w}return l.speed})(k);1<=Pe(H-P)&&1<=B?l.useScroll?C.scroll(H,B,!1,R):(D("transform "+B+"ms "+l.easing),v.translate(H,!0),d=R):(v.jump(k),R())},cancel:_}}return nt=(function(){function s(l,d){this.event=Te(),this.Components={},this.state=_i(1),this.splides=[],this.n={},this.t={},l=e(l)?yt(document,l):l,ct(l,l+" is invalid."),d=m({label:Se(this.root=l,Be)||"",labelledby:Se(l,Ht)||""},Gi,s.defaults,d||{});try{m(d,JSON.parse(Se(l,kt)))}catch(v){ct(!1,"Invalid JSON")}this.n=Object.create(m({},d))}var h=s.prototype;return h.mount=function(l,d){var v=this,b=this.state,C=this.Components;return ct(b.is([1,7]),"Already mounted!"),b.set(1),this.i=C,this.r=d||this.r||(this.is(pt)?Wi:Ri),this.t=l||this.t,y(x({},Ni,this.t,{Transition:this.r}),function(S,D){S=S(v,C,v.n),(C[D]=S).setup&&S.setup()}),y(C,function(S){S.mount&&S.mount()}),this.emit(Ze),ee(this.root,"is-initialized"),b.set(3),this.emit("ready"),this},h.sync=function(l){return this.splides.push({splide:l}),l.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this.i.Sync.remount(),l.Components.Sync.remount()),this},h.go=function(l){return this.i.Controller.go(l),this},h.on=function(l,d){return this.event.on(l,d),this},h.off=function(l){return this.event.off(l),this},h.emit=function(l){var d;return(d=this.event).emit.apply(d,[l].concat(c(arguments,1))),this},h.add=function(l,d){return this.i.Slides.add(l,d),this},h.remove=function(l){return this.i.Slides.remove(l),this},h.is=function(l){return this.n.type===l},h.refresh=function(){return this.emit(Oe),this},h.destroy=function(l){l===void 0&&(l=!0);var d=this.event,v=this.state;return v.is(1)?Te(this).on("ready",this.destroy.bind(this,l)):(y(this.i,function(b){b.destroy&&b.destroy(l)},!0),d.emit(Zt),d.destroy(),l&&L(this.splides),v.set(7)),this},Jt(s,[{key:"options",get:function(){return this.n},set:function(l){this.i.Media.set(l,!0,!0)}},{key:"length",get:function(){return this.i.Slides.getLength(!0)}},{key:"index",get:function(){return this.i.Controller.getIndex()}}]),s})(),nt.defaults={},nt.STATES=q,nt},typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis!="undefined"?globalThis:n||self).Splide=t(),(function(V,de){String.prototype.escape=function(){return this.replace(/&[^a][^m][^p][^;]/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""").replace(/'/g,"'")},String.prototype.unescapeHtml=function(){var q=de.createElement("div");q.innerHTML=this;var L=q.childNodes[0].nodeValue;return q.removeChild(q.firstChild),L},V.setInterval(function(){V.currentTime.setTime(V.currentTime.getTime()+1e3)},1e3),V.v2Storage={prefix:"_sv2_",get:function(q,L){L=typeof L!="undefined"?L:!1;var c=V.localStorage.getItem(this.prefix+q);return c===null?L:(data=JSON.parse(c),"t"in data&&new Date(data.t)>=new Date?data.v:L)},hasItem:function(q){var L=V.localStorage.getItem(this.prefix+q);return L===null?defaultValue:(data=JSON.parse(L),"t"in data&&new Date(data.t)>=new Date)},set:function(q,L,c){c=typeof c!="undefined"?c:86400;var f=new Date;f.setTime(f.getTime()+c*1e3),V.localStorage.setItem(this.prefix+q,JSON.stringify({t:f.toString(),v:L}))}},V.appendHit=function(q,L){q in V.modelHits||(V.modelHits[q]=[]),V.modelHits[q].push(L)},V.tra=function(q,L,c){return typeof L=="undefined"&&(L=[]),typeof c=="undefined"&&(c=[]),typeof V.i18n[q]=="undefined"?"":(typeof c.escape!="undefined"&&c.escape===!0&&(L=L.map(function(f){return f.escape()})),vsprintf(V.i18n[q],L))};var ne=function(){var q="frontI18n:"+masterConfig.lang+":"+masterConfig.v,L=V.v2Storage.get(q,!1);if(L===!1){var c=masterConfig.baseUrl+"statics/i18n/?v="+masterConfig.v,f=new XMLHttpRequest;f.open("GET",c,!1),f.onreadystatechange=function(){f.readyState===4&&f.status===200&&(L=JSON.parse(f.responseText),V.v2Storage.set(q,L),V.i18n=L)},f.send()}else V.i18n=L};ne(),"Clients"in V&&Clients.sync(function(q){},function(){}),V.showAdvPanel=function(){for(var q=de.querySelectorAll(".faketabliqholder"),L=0;L<q.length;
57L++){var c=q[L].dataset.adHelperSizes.split("x");q[L].innerHTML="<strong>"+q[L].dataset.adHelperPosname+"<br />"+c[0]+" x "+c[1]+"<strong>",q[L].style.width=c[0]+"px",q[L].style.height=c[1]+"px",q[L].style.background="radial-gradient(#00e30e, #600, #300)",q[L].style.position="relative",q[L].style.direction="ltr",q[L].style.fontFamily='"Courier New", Courier, monospace',q[L].style.fontSize="12px";for(var f=q[L].querySelectorAll("strong"),M=0;M<f.length;M++)f[M].style.fontFamily='"Courier New", Courier, monospace',f[M].style.fontSize="12px",f[M].style.color="#fff",f[M].style.display="block",f[M].style.position="absolute",f[M].style.top="8px",f[M].style.left="8px"}},V.isAdverHolderMode&&V.addEventListener("load",function(){V.showAdvPanel()})})(window,document);function PollForm(V,de){var ne=this;this.callbacks={onSubmit:function(){},onError:function(){},onSuccess:function(){}},this.callbacks=Object.assign(this.callbacks,de),V.addEventListener("submit",function(L){L.preventDefault(),ne.callbacks.onSubmit();var c=new FormData(V);c.append("BHT",masterConfig.blackHoleToken),c.append("pId",document.querySelector("input[name=poll_id]").value),c.append("optId",document.querySelector("input[name=poll_option]:checked").value);var f=new XMLHttpRequest,M=masterConfig.baseUrl+"polls/submit/";return f.open("POST",M,!0),f.onreadystatechange=function(){f.readyState===4&&(f.status===200?ne.callbacks.onSuccess():ne.callbacks.onError())},f.send(c),!1});var q=V.querySelector("button[type=button]");q.addEventListener("click",function(L){var c=masterConfig.baseUrl+"polls/statistics/",f=new FormData(V);f.append("pId",document.querySelector("input[name=poll_id]").value);var M=new XMLHttpRequest;M.open("POST",c,!0),M.onreadystatechange=function(){if(M.readyState===4&&M.status===200){var X=JSON.parse(M.responseText),ie=ejs.render(document.querySelector("#poll-statistics").innerHTML,{data:X,i18n:window.i18n});ie=ie.replace(/<script/g,"<div"),ie=ie.replace(/type="text\/plain"/g,""),document.querySelector("#poll-output").innerHTML=ie}},M.send(f)})}(function(V){if(typeof exports=="object"&&typeof module!="undefined")module.exports=V();else if(typeof define=="function"&&define.amd)define([],V);else{var de;typeof window!="undefined"?de=window:typeof global!="undefined"?de=global:typeof self!="undefined"?de=self:de=this,de.ejs=V()}})(function(){var V,de,ne;return(function(){function q(L,c,f){function M(ge,O){if(!c[ge]){if(!L[ge]){var U=typeof require=="function"&&require;if(!O&&U)return U(ge,!0);if(X)return X(ge,!0);var o=new Error("Cannot find module '"+ge+"'");throw o.code="MODULE_NOT_FOUND",o}var e=c[ge]={exports:{}};L[ge][0].call(e.exports,function(i){var a=L[ge][1][i];return M(a||i)},e,e.exports,q,L,c,f)}return c[ge].exports}for(var X=typeof require=="function"&&require,ie=0;ie<f.length;ie++)M(f[ie]);return M}return q})()({1:[function(q,L,c){"use strict";var f=q("fs"),M=q("path"),X=q("./utils"),ie=!1,ge=q("../package.json").version,O="<",U=">",o="%",e="locals",i="ejs",a="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",u=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],g=u.concat("cache"),p=/^\uFEFF/,I=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;c.cache=X.cache,c.fileLoader=f.readFileSync,c.localsName=e,c.promiseImpl=new Function("return this;")().Promise,c.resolveInclude=function(y,x,m){var G=M.dirname,te=M.extname,j=M.resolve,me=j(m?x:G(x),y),we=te(y);return we||(me+=".ejs"),me};function E(y,x){var m;if(x.some(function(G){return m=c.resolveInclude(y,G,!0),f.existsSync(m)}))return m}function $(y,x){var m,G,te=x.views,j=/^[A-Za-z]+:\\|^\//.exec(y);if(j&&j.length)y=y.replace(/^\/*/,""),Array.isArray(x.root)?m=E(y,x.root):m=c.resolveInclude(y,x.root||"/",!0);else if(x.filename&&(G=c.resolveInclude(y,x.filename),f.existsSync(G)&&(m=G)),!m&&Array.isArray(te)&&(m=E(y,te)),!m&&typeof x.includer!="function")throw new Error('Could not find the include file "'+x.escapeFunction(y)+'"');return m}function ee(y,x){var m,G=y.filename,te=arguments.length>1;if(y.cache){if(!G)throw new Error("cache option requires a filename");if(m=c.cache.get(G),m)return m;te||(x=le(G).toString().replace(p,""))}else if(!te){if(!G)throw new Error("Internal EJS error: no file name or template provided");x=le(G).toString().replace(p,"")}return m=c.compile(x,y),y.cache&&c.cache.set(G,m),m}function ae(y,x,m){var G;if(m){try{G=ee(y)(x)}catch(te){return m(te)}m(null,G)}else{if(typeof c.promiseImpl=="function")return new c.promiseImpl(function(te,j){try{G=ee(y)(x),te(G)}catch(me){j(me)}});throw new Error("Please provide a callback function")}}function le(y){return c.fileLoader(y)}function be(y,x){var m=X.shallowCopy(X.createNullProtoObjWherePossible(),x);if(m.filename=$(y,m),typeof x.includer=="function"){var G=x.includer(y,m.filename);if(G&&(G.filename&&(m.filename=G.filename),G.template))return ee(m,G.template)}return ee(m)}function ve(y,x,m,G,te){var j=x.split(` 58`),me=Math.max(G-3,0),we=Math.min(j.length,G+3),Le=te(m),Ge=j.slice(me,we).map(function(Se,$e){var _e=$e+me+1;return(_e==G?" >> ":" ")+_e+"| "+Se}).join(` 59`);throw y.path=Le,y.message=(Le||"ejs")+":"+G+` 60`+Ge+` 61 62`+y.message,y}function Ie(y){return y.replace(/;(\s*$)/,"$1")}c.compile=function(x,m){var G;return m&&m.scope&&(ie||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),ie=!0),m.context||(m.context=m.scope),delete m.scope),G=new ce(x,m),G.compile()},c.render=function(y,x,m){var G=x||X.createNullProtoObjWherePossible(),te=m||X.createNullProtoObjWherePossible();return arguments.length==2&&X.shallowCopyFromList(te,G,u),ee(te,y)(G)},c.renderFile=function(){var y=Array.prototype.slice.call(arguments),x=y.shift(),m,G={filename:x},te,j;return typeof arguments[arguments.length-1]=="function"&&(m=y.pop()),y.length?(te=y.shift(),y.length?X.shallowCopy(G,y.pop()):(te.settings&&(te.settings.views&&(G.views=te.settings.views),te.settings["view cache"]&&(G.cache=!0),j=te.settings["view options"],j&&X.shallowCopy(G,j)),X.shallowCopyFromList(G,te,g)),G.filename=x):te=X.createNullProtoObjWherePossible(),ae(G,te,m)},c.Template=ce,c.clearCache=function(){c.cache.reset()};function ce(y,x){x=x||X.createNullProtoObjWherePossible();var m=X.createNullProtoObjWherePossible();this.templateText=y,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",m.client=x.client||!1,m.escapeFunction=x.escape||x.escapeFunction||X.escapeXML,m.compileDebug=x.compileDebug!==!1,m.debug=!!x.debug,m.filename=x.filename,m.openDelimiter=x.openDelimiter||c.openDelimiter||O,m.closeDelimiter=x.closeDelimiter||c.closeDelimiter||U,m.delimiter=x.delimiter||c.delimiter||o,m.strict=x.str
62ict||!1,m.context=x.context,m.cache=x.cache||!1,m.rmWhitespace=x.rmWhitespace,m.root=x.root,m.includer=x.includer,m.outputFunctionName=x.outputFunctionName,m.localsName=x.localsName||c.localsName||e,m.views=x.views,m.async=x.async,m.destructuredLocals=x.destructuredLocals,m.legacyInclude=typeof x.legacyInclude!="undefined"?!!x.legacyInclude:!0,m.strict?m._with=!1:m._with=typeof x._with!="undefined"?x._with:!0,this.opts=m,this.regex=this.createRegex()}ce.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"},ce.prototype={createRegex:function(){var y=a,x=X.escapeRegExpChars(this.opts.delimiter),m=X.escapeRegExpChars(this.opts.openDelimiter),G=X.escapeRegExpChars(this.opts.closeDelimiter);return y=y.replace(/%/g,x).replace(/</g,m).replace(/>/g,G),new RegExp(y)},compile:function(){var y,x,m=this.opts,G="",te="",j=m.escapeFunction,me,we=m.filename?JSON.stringify(m.filename):"undefined";if(!this.source){if(this.generateSource(),G+=` var __output = ""; 63 function __append(s) { if (s !== undefined && s !== null) __output += s } 64`,m.outputFunctionName){if(!I.test(m.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");G+=" var "+m.outputFunctionName+` = __append; 65`}if(m.localsName&&!I.test(m.localsName))throw new Error("localsName is not a valid JS identifier.");if(m.destructuredLocals&&m.destructuredLocals.length){for(var Le=" var __locals = ("+m.localsName+` || {}), 66`,Ge=0;Ge<m.destructuredLocals.length;Ge++){var Se=m.destructuredLocals[Ge];if(!I.test(Se))throw new Error("destructuredLocals["+Ge+"] is not a valid JS identifier.");Ge>0&&(Le+=`, 67 `),Le+=Se+" = __locals."+Se}G+=Le+`; 68`}m._with!==!1&&(G+=" with ("+m.localsName+` || {}) { 69`,te+=` } 70`),te+=` return __output; 71`,this.source=G+this.source+te}m.compileDebug?y=`var __line = 1 72 , __lines = `+JSON.stringify(this.templateText)+` 73 , __filename = `+we+`; 74try { 75`+this.source+`} catch (e) { 76 rethrow(e, __lines, __filename, __line, escapeFn); 77} 78`:y=this.source,m.client&&(y="escapeFn = escapeFn || "+j.toString()+`; 79`+y,m.compileDebug&&(y="rethrow = rethrow || "+ve.toString()+`; 80`+y)),m.strict&&(y=`"use strict"; 81`+y),m.debug&&console.log(y),m.compileDebug&&m.filename&&(y=y+` 82//# sourceURL=`+we+` 83`);try{if(m.async)try{me=new Function("return (async function(){}).constructor;")()}catch(Me){throw Me instanceof SyntaxError?new Error("This environment does not support async/await"):Me}else me=Function;x=new me(m.localsName+", escapeFn, include, rethrow",y)}catch(Me){throw Me instanceof SyntaxError&&(m.filename&&(Me.message+=" in "+m.filename),Me.message+=` while compiling ejs 84 85`,Me.message+=`If the above error is not helpful, you may want to try EJS-Lint: 86`,Me.message+="https://github.com/RyanZim/EJS-Lint",m.async||(Me.message+=` 87`,Me.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),Me}var $e=m.client?x:function(We){var yt=function(lt,Re){var Je=X.shallowCopy(X.createNullProtoObjWherePossible(),We);return Re&&(Je=X.shallowCopy(Je,Re)),be(lt,m)(Je)};return x.apply(m.context,[We||X.createNullProtoObjWherePossible(),j,yt,ve])};if(m.filename&&typeof Object.defineProperty=="function"){var _e=m.filename,Xe=M.basename(_e,M.extname(_e));try{Object.defineProperty($e,"name",{value:Xe,writable:!1,enumerable:!1,configurable:!0})}catch(Me){}}return $e},generateSource:function(){var y=this.opts;y.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,` 88`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var x=this,m=this.parseTemplateText(),G=this.opts.delimiter,te=this.opts.openDelimiter,j=this.opts.closeDelimiter;m&&m.length&&m.forEach(function(me,we){var Le;if(me.indexOf(te+G)===0&&me.indexOf(te+G+G)!==0&&(Le=m[we+2],!(Le==G+j||Le=="-"+G+j||Le=="_"+G+j)))throw new Error('Could not find matching close tag for "'+me+'".');x.scanLine(me)})},parseTemplateText:function(){for(var y=this.templateText,x=this.regex,m=x.exec(y),G=[],te;m;)te=m.index,te!==0&&(G.push(y.substring(0,te)),y=y.slice(te)),G.push(m[0]),y=y.slice(m[0].length),m=x.exec(y);
88return y&&G.push(y),G},_addOutput:function(y){if(this.truncate&&(y=y.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!y)return y;y=y.replace(/\\/g,"\\\\"),y=y.replace(/\n/g,"\\n"),y=y.replace(/\r/g,"\\r"),y=y.replace(/"/g,'\\"'),this.source+=' ; __append("'+y+`") 89`},scanLine:function(y){var x=this,m=this.opts.delimiter,G=this.opts.openDelimiter,te=this.opts.closeDelimiter,j=0;switch(j=y.split(` 90`).length-1,y){case G+m:case G+m+"_":this.mode=ce.modes.EVAL;break;case G+m+"=":this.mode=ce.modes.ESCAPED;break;case G+m+"-":this.mode=ce.modes.RAW;break;case G+m+"#":this.mode=ce.modes.COMMENT;break;case G+m+m:this.mode=ce.modes.LITERAL,this.source+=' ; __append("'+y.replace(G+m+m,G+m)+`") 91`;break;case m+m+te:this.mode=ce.modes.LITERAL,this.source+=' ; __append("'+y.replace(m+m+te,m+te)+`") 92`;break;case m+te:case"-"+m+te:case"_"+m+te:this.mode==ce.modes.LITERAL&&this._addOutput(y),this.mode=null,this.truncate=y.indexOf("-")===0||y.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case ce.modes.EVAL:case ce.modes.ESCAPED:case ce.modes.RAW:y.lastIndexOf("//")>y.lastIndexOf(` 93`)&&(y+=` 94`)}switch(this.mode){case ce.modes.EVAL:this.source+=" ; "+y+` 95`;break;case ce.modes.ESCAPED:this.source+=" ; __append(escapeFn("+Ie(y)+`)) 96`;break;case ce.modes.RAW:this.source+=" ; __append("+Ie(y)+`) 97`;break;case ce.modes.COMMENT:break;case ce.modes.LITERAL:this._addOutput(y);break}}else this._addOutput(y)}x.opts.compileDebug&&j&&(this.currentLine+=j,this.source+=" ; __line = "+this.currentLine+` 98`)}},c.escapeXML=X.escapeXML,c.__express=c.renderFile,c.VERSION=ge,c.name=i,typeof window!="undefined"&&(window.ejs=c)},{"../package.json":6,"./utils":2,fs:3,path:4}],2:[function(q,L,c){"use strict";var f=/[|\\{}()[\]^$+*?.]/g,M=Object.prototype.hasOwnProperty,X=function(o,e){return M.apply(o,[e])};c.escapeRegExpChars=function(o){return o?String(o).replace(f,"\\$&"):""};var ie={"&":"&","<":"<",">":">",'"':""","'":"'"},ge=/[&<>'"]/g;function O(o){return ie[o]||o}var U=`var _ENCODE_HTML_RULES = { 99 "&": "&" 100 , "<": "<" 101 , ">": ">" 102 , '"': """ 103 , "'": "'" 104 } 105 , _MATCH_HTML = /[&<>'"]/g; 106function encode_char(c) { 107 return _ENCODE_HTML_RULES[c] || c; 108}; 109`;c.escapeXML=function(o){return o==null?"":String(o).replace(ge,O)},c.escapeXML.toString=function(){return Function.prototype.toString.call(this)+`; 110`+U},c.shallowCopy=function(o,e){if(e=e||{},o!=null)for(var i in e)X(e,i)&&(i==="__proto__"||i==="constructor"||(o[i]=e[i]));return o},c.shallowCopyFromList=function(o,e,i){if(i=i||[],e=e||{},o!=null)for(var a=0;a<i.length;a++){var u=i[a];if(typeof e[u]!="undefined"){if(!X(e,u)||u==="__proto__"||u==="constructor")continue;o[u]=e[u]}}return o},c.cache={_data:{},set:function(o,e){this._data[o]=e},get:function(o){return this._data[o]},remove:function(o){delete this._data[o]},reset:function(){this._data={}}},c.hyphenToCamel=function(o){return o.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})},c.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})()},{}],3:[function(q,L,c){},{}],4:[function(q,L,c){(function(f){function M(O,U){for(var o=0,e=O.length-1;e>=0;e--){var i=O[e];i==="."?O.splice(e,1):i===".."?(O.splice(e,1),o++):o&&(O.splice(e,1),o--)}if(U)for(;o--;o)O.unshift("..");return O}c.resolve=function(){for(var O="",U=!1,o=arguments.length-1;o>=-1&&!U;o--){var e=o>=0?arguments[o]:f.cwd();if(typeof e!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!e)continue;O=e+"/"+O,U=e.charAt(0)==="/"}return O=M(ie(O.split("/"),function(i){return!!i}),!U).join("/"),(U?"/":"")+O||"."},c.normalize=function(O){var U=c.isAbsolute(O),o=ge(O,-1)==="/";return O=M(ie(O.split("/"),function(e){return!!e}),!U).join("/"),!O&&!U&&(O="."),O&&o&&(O+="/"),(U?"/":"")+O},c.isAbsolute=function(O){return O.charAt(0)==="/"},c.join=function(){var O=Array.prototype.slice.call(arguments,0);
110return c.normalize(ie(O,function(U,o){if(typeof U!="string")throw new TypeError("Arguments to path.join must be strings");return U}).join("/"))},c.relative=function(O,U){O=c.resolve(O).substr(1),U=c.resolve(U).substr(1);function o(I){for(var E=0;E<I.length&&I[E]==="";E++);for(var $=I.length-1;$>=0&&I[$]==="";$--);return E>$?[]:I.slice(E,$-E+1)}for(var e=o(O.split("/")),i=o(U.split("/")),a=Math.min(e.length,i.length),u=a,g=0;g<a;g++)if(e[g]!==i[g]){u=g;break}for(var p=[],g=u;g<e.length;g++)p.push("..");return p=p.concat(i.slice(u)),p.join("/")},c.sep="/",c.delimiter=":",c.dirname=function(O){if(typeof O!="string"&&(O=O+""),O.length===0)return".";for(var U=O.charCodeAt(0),o=U===47,e=-1,i=!0,a=O.length-1;a>=1;--a)if(U=O.charCodeAt(a),U===47){if(!i){e=a;break}}else i=!1;return e===-1?o?"/":".":o&&e===1?"/":O.slice(0,e)};function X(O){typeof O!="string"&&(O=O+"");var U=0,o=-1,e=!0,i;for(i=O.length-1;i>=0;--i)if(O.charCodeAt(i)===47){if(!e){U=i+1;break}}else o===-1&&(e=!1,o=i+1);return o===-1?"":O.slice(U,o)}c.basename=function(O,U){var o=X(O);return U&&o.substr(-1*U.length)===U&&(o=o.substr(0,o.length-U.length)),o},c.extname=function(O){typeof O!="string"&&(O=O+"");for(var U=-1,o=0,e=-1,i=!0,a=0,u=O.length-1;u>=0;--u){var g=O.charCodeAt(u);if(g===47){if(!i){o=u+1;break}continue}e===-1&&(i=!1,e=u+1),g===46?U===-1?U=u:a!==1&&(a=1):U!==-1&&(a=-1)}return U===-1||e===-1||a===0||a===1&&U===e-1&&U===o+1?"":O.slice(U,e)};function ie(O,U){if(O.filter)return O.filter(U);for(var o=[],e=0;e<O.length;e++)U(O[e],e,O)&&o.push(O[e]);return o}var ge="ab".substr(-1)==="b"?function(O,U,o){return O.substr(U,o)}:function(O,U,o){return U<0&&(U=O.length+U),O.substr(U,o)}}).call(this,q("_process"))},{_process:5}],5:[function(q,L,c){var f=L.exports={},M,X;function ie(){throw new Error("setTimeout has not been defined")}function ge(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?M=setTimeout:M=ie}catch(E){M=ie}try{typeof clearTimeout=="function"?X=clearTimeout:X=ge}catch(E){X=ge}})();function O(E){if(M===setTimeout)return setTimeout(E,0);if((M===ie||!M)&&setTimeout)return M=setTimeout,setTimeout(E,0);try{return M(E,0)}catch($){try{return M.call(null,E,0)}catch(ee){return M.call(this,E,0)}}}function U(E){if(X===clearTimeout)return clearTimeout(E);if((X===ge||!X)&&clearTimeout)return X=clearTimeout,clearTimeout(E);try{return X(E)}catch($){try{return X.call(null,E)}catch(ee){return X.call(this,E)}}}var o=[],e=!1,i,a=-1;function u(){!e||!i||(e=!1,i.length?o=i.concat(o):a=-1,o.length&&g())}function g(){if(!e){var E=O(u);e=!0;for(var $=o.length;$;){for(i=o,o=[];++a<$;)i&&i[a].run();a=-1,$=o.length}i=null,e=!1,U(E)}}f.nextTick=function(E){var $=new Array(arguments.length-1);if(arguments.length>1)for(var ee=1;ee<arguments.length;ee++)$[ee-1]=arguments[ee];o.push(new p(E,$)),o.length===1&&!e&&O(g)};function p(E,$){this.fun=E,this.array=$}p.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={};function I(){}f.on=I,f.addListener=I,f.once=I,f.off=I,f.removeListener=I,f.removeAllListeners=I,f.emit=I,f.prependListener=I,f.prependOnceListener=I,f.listeners=function(E){return[]},f.binding=function(E){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(E){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],6:[function(q,L,c){L.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.8",author:"Matthew Eernisse <[email protected]> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^3.6.7","lru-cache":"^4.0.1",mocha:"^7.1.1","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"mocha"}}},{}]},{},[1])(1)}); 111//# sourceMappingURL=frameworks.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.