vendor: 27,488 bytes, lines 1-65
1import{d as ne,c as C,a as l,p as G,F as se,l as oe,t as b,m as k,r as z,g as w,o as ze,f as A,h as Oe,b as P,i as U,A as Le,N as $e,w as ee,y as Ee,R as Me,s as R,B as Pe,x as Ge,z as te,j as E,C as Ie,D as Ae,v as B,k as De,u as Fe,q as Te,_ as Xe}from"./index-DOjDVg8L.js";/*! 2 * lightgallery | 2.9.0 | October 1st 2025 3 * http://www.lightgalleryjs.com/ 4 * Copyright (c) 2020 Sachin Neravath; 5 * @license GPLv3 6 *//*! ***************************************************************************** 7Copyright (c) Microsoft Corporation. 8 9Permission to use, copy, modify, and/or distribute this software for any 10purpose with or without fee is hereby granted. 11 12THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 13REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 14AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 15INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 16LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 17OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 18PERFORMANCE OF THIS SOFTWARE. 19***************************************************************************** */var M=function(){return M=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},M.apply(this,arguments)};function Be(){for(var o=0,e=0,t=arguments.length;e<t;e++)o+=arguments[e].length;for(var i=Array(o),s=0,e=0;e<t;e++)for(var n=arguments[e],r=0,a=n.length;r<a;r++,s++)i[s]=n[r];return i}var x={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"},He={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 Re(){(function(){if(typeof window.CustomEvent=="function")return!1;function o(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}window.CustomEvent=o})(),(function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)})()}var ke=(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 t=Math.random()*16|0,i=e=="x"?t:t&3|8;return i.toString(16)})},o.prototype._getSelector=function(e,t){if(t===void 0&&(t=document),typeof e!="string")return e;t=t||document;var i=e.substring(0,1);return i==="#"?t.querySelector(e):t.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,t,i){var s=t.replace(/-([a-z])/gi,function(n,r){return r.toUpperCase()});this.cssVenderPrefixes.indexOf(s)!==-1?(e.style[s.charAt(0).toLowerCase()+s.slice(1)]=i,e.style["webkit"+s]=i,e.style["moz"+s]=i,e.style["ms"+s]=i,e.style["o"+s]=i):e.style[s]=i},o.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},o.prototype.isEventMatched=function(e,t){var i=t.split(".");return e.split(".").filter(function(s){return s}).every(function(s){return i.indexOf(s)!==-1})},o.prototype.attr=function(e,t){return t===void 0?this.firstElement?this.firstElement.getAttribute(e):"":(this._each(function(i){i.setAttribute(e,t)}),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 t=e.split(" ");return this._each(function(i){t.forEach(function(s){return i.removeAttribute(s)})}),this},o.prototype.wrap=function(e){if(!this.firstElement)return this;var t=document.createElement("div");return t.className=e,this.firstElement.parentNode.insertBefore(t,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),t.appendChild(this.firstElement),this},o.prototype.addClass=function(e){return e===void 0&&(e=""),this._each(function(t){e.split(" ").forEach(function(i){i&&t.classList.add(i)})}),this},o.prototype.removeClass=function(e){return this._each(function(t){e.split(" ").forEach(function(i){i&&t.classList.remove(i)})}),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,t){var i=this;return this._each(function(s){i._setCssVendorPrefix(s,e,t)}),this},o.prototype.on=function(e,t){var i=this;return this.selector?(e.split(" ").forEach(function(s){Array.isArray(o.eventListeners[s])||(o.eventListeners[s]=[]),o.eventListeners[s].push(t),i.selector.addEventListener(s.split(".")[0],t)}),this):this},o.prototype.once=function(e,t){var i=this;return this.on(e,function(){i.off(e),t(e)}),this},o.prototype.off=function(e){var t=this;return this.selector?(Object.keys(o.eventListeners).forEach(function(i){t.isEventMatched(e,i)&&(o.eventListeners[i].forEach(function(s){t.selector.removeEventListener(i.split(".")[0],s)}),o.eventListeners[i]=[])}),this):this},o.prototype.trigger=function(e,t){if(!this.firstElement)return this;var i=new CustomEvent(e.split(".")[0],{detail:t||null});return this.firstElement.dispatchEvent(i),this},o.prototype.load=function(e){var t=this;return fetch(e).then(function(i){return i.text()}).then(function(i){t.selector.innerHTML=i}),this},o.prototype.html=function(e){return e===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(t){t.innerHTML=e}),this)},o.prototype.append=function(e){return this._each(function(t){typeof e=="string"?t.insertAdjacentHTML("beforeend",e):t.appendChild(e)}),this},o.prototype.prepend=function(e){return this._each(function(t){typeof e=="string"?t.insertAdjacentHTML("afterbegin",e):e instanceof HTMLElement&&t.insertBefore(e.cloneNode(!0),t.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(),t=f("body").style().marginLeft;return{left:e.left-parseFloat(t)+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 Re(),new ke(o)}var We=["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 Ye(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 I={fetchCaptionFromUrl:function(o,e,t){fetch(o).then(function(i){return i.text()}).then(function(i){if(t==="append"){var s='<div class="lg-sub-html">'+i+"</div>";e.append(s)}else e.html(i)})},getSize:function(o,e,t,i){t===void 0&&(t=0);var s=f(o),n=s.attr("data-lg-size")||i;if(n){var r=n.split(",");if(r[1])for(var a=window.innerWidth,d=0;d<r.length;d++){var h=r[d],m=parseInt(h.split("-")[2],10);if(m>a){n=h;break}d===r.length-1&&(n=h)}var c=n.split("-"),g=parseInt(c[0],10),p=parseInt(c[1],10),y=e.width(),S=e.height()-t,v=Math.min(y,g),u=Math.min(S,p),T=Math.min(v/g,u/p);return{width:g*T,height:p*T}}},getTransform:function(o,e,t,i,s){if(s){var n=f(o).find("img").first();if(n.get()){var r=e.get().getBoundingClientRect(),a=r.width,d=e.height()-(t+i),h=n.width(),m=n.height(),c=n.style(),g=(a-h)/2-n.offset().left+(parseFloat(c.paddingLeft)||0)+(parseFloat(c.borderLeft)||0)+f(window).scrollLeft()+r.left,p=(d-m)/2-n.offset().top+(parseFloat(c.paddingTop)||0)+(parseFloat(c.borderTop)||0)+f(window).scrollTop()+t,y=h/s.width,S=m/s.height,v="translate3d("+(g*=-1)+"px, "+(p*=-1)+"px, 0) scale3d("+y+", "+S+", 1)";return v}}},getIframeMarkup:function(o,e,t,i,s,n){var r=n?'title="'+n+'"':"";return'<div class="lg-media-cont lg-has-iframe" style="width:'+o+"; max-width:"+t+"; height: "+e+"; max-height:"+i+`"> 20 <iframe class="lg-object" frameborder="0" `+r+' src="'+s+`" allowfullscreen="true"></iframe> 21 </div>`},getImgMarkup:function(o,e,t,i,s,n){var r=i?'srcset="'+i+'"':"",a=s?'sizes="'+s+'"':"",d="<img "+t+" "+r+" "+a+' class="lg-object lg-image" data-index="'+o+'" src="'+e+'" />',h="";if(n){var m=typeof n=="string"?JSON.parse(n):n;h=m.map(function(c){var g="";return Object.keys(c).forEach(function(p){g+=" "+p+'="'+c[p]+'"'}),"<source "+g+"></source>"})}return""+h+d},getResponsiveSrc:function(o){for(var e=[],t=[],i="",s=0;s<o.length;s++){var n=o[s].split(" ");n[0]===""&&n.splice(0,1),t.push(n[0]),e.push(n[1])}for(var r=window.innerWidth,a=0;a<e.length;a++)if(parseInt(e[a],10)>r){i=t[a];break}return i},isImageLoaded:function(o){return!(!o||!o.complete||o.naturalWidth===0)},getVideoPosterMarkup:function(o,e,t,i,s){var n="";s&&s.youtube?n="lg-has-youtube":s&&s.vimeo?n="lg-has-vimeo":n="lg-has-html5";var r=e;return typeof e!="string"&&(r=e.outerHTML),'<div class="lg-video-cont '+n+'" style="'+t+`"> 22 <div class="lg-video-play-button"> 23 <svg 24 viewBox="0 0 20 20" 25 preserveAspectRatio="xMidYMid" 26 focusable="false" 27 aria-labelledby="`+i+`" 28 role="img" 29 class="lg-video-play-icon" 30 > 31 <title>`+i+`</title> 32 <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon> 33 </svg> 34 <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false"> 35 <circle cx="50%" cy="50%" r="20"></circle></svg> 36 <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false"> 37 <circle cx="50%" cy="50%" r="20"></circle> 38 </svg> 39 </div> 40 `+r+` 41 <img class="lg-object lg-video-poster" src="`+o+`" /> 42 </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])'),t=[].filter.call(e,function(i){var s=window.getComputedStyle(i);return s.display!=="none"&&s.visibility!=="hidden"});return t},getDynamicOptions:function(o,e,t,i){var s=[],n=Be(We,e);return[].forEach.call(o,function(r){for(var a={},d=0;d<r.attributes.length;d++){var h=r.attributes[d];if(h.specified){var m=Ye(h.name),c="";n.indexOf(m)>-1&&(c=m),c&&(a[c]=h.value)}}var g=f(r),p=g.find("img").first().attr("alt"),y=g.attr("title"),S=i?g.attr(i):g.find("img").first().attr("src");a.thumb=S,t&&!a.subHtml&&(a.subHtml=y||p||""),a.alt=p||y||"",s.push(a)}),s},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(o,e,t){if(!o){if(e)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(t+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var i=o.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),s=o.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),n=o.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(i)return{youtube:i};if(s)return{vimeo:s};if(n)return{wistia:n}}},_e=0,Ne=(function(){function o(e,t){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(_e++,this.lgId=_e,this.el=e,this.LGel=f(e),this.generateSettings(t),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=M(M({},He),e),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():I.isMobile()){var t=M(M({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=M(M({},this.settings),t)}},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 t=document.querySelector(e);this.settings.container=t??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(x.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,t=function(n){var r=i.items[n],a=f(r),d=ke.generateUUID();a.attr("data-lg-id",d).on("click.lgcustom-item-"+d,function(h){h.preventDefault();var m=e.settings.index||n;e.openGallery(m,r)})},i=this,s=0;s<this.items.length;s++)t(s)},o.prototype.buildModules=function(){var e=this;this.settings.plugins.forEach(function(t){e.plugins.push(new t(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 valid 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,t=this.$container&&this.$container.get();if(!t){var i="",s="";this.settings.controls&&(i='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button> 43 <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"&&(s='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var n="";this.settings.allowMediaOverlap&&(n+="lg-media-overlap ");var r=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",a=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",d="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),h=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>':"",m=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",c=` 44 <div class="`+d+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+r+" "+a+` role="dialog" 45 > 46 <div id="`+this.getIdName("lg-backdrop")+`" class="lg-backdrop"></div> 47 48 <div id="`+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+n+` "> 49 50 <div id="`+this.getIdName("lg-content")+`" class="lg-content"> 51 <div id="`+this.getIdName("lg-inner")+`" class="lg-inner"> 52 </div> 53 `+i+` 54 </div> 55 <div id="`+this.getIdName("lg-toolbar")+`" class="lg-toolbar lg-group"> 56 `+m+` 57 `+h+` 58 </div> 59 `+(this.settings.appendSubHtmlTo===".lg-outer"?s:"")+` 60 <div id="`+this.getIdName("lg-components")+`" class="lg-components"> 61 `+(this.settings.appendSubHtmlTo===".lg-sub-html"?s:"")+` 62 </div> 63 </div> 64 </div> 65 `;f(this.settings.container).append(c),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 g=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(g+="lg-grab "),this.outer.addClass(g),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],t=e.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var i=this.mediaContainerPosition,s=i.top,n=i.bottom;if(this.currentImageSize=I.getSize(this.items[this.index],this.outer,s+n,t&&this.settings.videoMaxSize),t&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var r=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",r)}this.LGel.trigger(x.containerResize)}},o.prototype.resizeVideoSlide=function(e,t){var i=this.getVideoContStyle(t),s=this.getSlideItem(e);s.find(".lg-video-cont").attr("style",i)},o.prototype.updateSlides=function(e,t){if(this.index>e.length-1&&(this.index=e.length-1),e.length===1&&(this.index=0),!e.length){this.closeGallery();return}var i=this.galleryItems[t].src;this.galleryItems=e,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var s=0;this.galleryItems.some(function(n,r){return n.src===i?(s=r,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(s,-1),this.loadContent(s,!0),this.getSlideItem(s).addClass("lg-current"),this.index=s,this.updateCurrentCounter(s),this.LGel.trigger(x.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 I.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(),t=window.innerWidth-e.width;f(document.body).css("padding-right",t+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,t){var i=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 s=this.getItemsToBeInsertedToDom(e,e);this.currentItemsInDom=s;var n="";s.forEach(function(g){n=n+('<div id="'+g+'" class="lg-item"></div>')}),this.$inner.append(n),this.addHtml(e);var r="";this.mediaContainerPosition=this.getMediaContainerPosition();var a=this.mediaContainerPosition,d=a.top,h=a.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(d,h);var m=this.galleryItems[e].__slideVideoInfo;this.zoomFromOrigin&&t&&(this.currentImageSize=I.getSize(t,this.outer,d+h,m&&this.settings.videoMaxSize),r=I.getTransform(t,this.outer,d,h,this.currentImageSize)),(!this.zoomFromOrigin||!r)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(e).removeClass("lg-complete"));var c=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){i.outer.addClass("lg-components-open")},c),this.index=e,this.LGel.trigger(x.beforeOpen),this.getSlideItem(e).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=f(window).scrollTop(),setTimeout(function(){if(i.zoomFromOrigin&&r){var g=i.getSlideItem(e);g.css("transform",r),setTimeout(function(){g.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",i.settings.startAnimationDuration+"ms"),i.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){g.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){i.$backdrop.addClass("in"),i.$container.addClass("lg-show-in")},10),setTimeout(function(){i.settings.trapFocus&&document.body===i.settings.container&&i.trapFocus()},i.settings.backdropDuration+50),(!i.zoomFromOrigin||!r)&&setTimeout(function(){i.outer.addClass("lg-visible")},i.settings.backdropDuration),i.slide(e,!1,!1,!1),i.LGel.trigger(x.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,t=this.outer.find(".lg-components .lg-sub-html").get(),i=this.settings.defaultCaptionHeight||t&&t.clientHeight||0,s=this.outer.find(".lg-thumb-outer").get(),n=s?s.clientHeight:0,r=n+i;return{top:e,bottom:r}},o.prototype.setMediaContainerPosition=function(e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.$content.css("top",e+"px").css("bottom",t+"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{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
65ive="polite"> 66 <span id="`+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+` </span> / 67 <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 t,i;if(this.galleryItems[e].subHtmlUrl?i=this.galleryItems[e].subHtmlUrl:t=this.galleryItems[e].subHtml,!i)if(t){var s=t.substring(0,1);if(s==="."||s==="#")try{this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?t=f(this.items).eq(e).find(t).first().html():t=f(t).first().html()}catch{console.warn('Error processing subHtml selector "'+t+'"'),t=""}}else t="";if(this.settings.appendSubHtmlTo!==".lg-item")i?I.fetchCaptionFromUrl(i,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(t);else{var n=f(this.getSlideItemId(e));i?I.fetchCaptionFromUrl(i,n,"append"):n.append('<div class="lg-sub-html">'+t+"</div>")}typeof t<"u"&&t!==null&&(t===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(x.afterAppendSubHtml,{index:e})},o.prototype.preload=function(e){for(var t=1;t<=this.settings.preload&&!(t>=this.galleryItems.length-e);t++)this.loadContent(e+t,!1);for(var i=1;i<=this.settings.preload&&!(e-i<0);i++)this.loadContent(e-i,!1)},o.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+`px; 68 margin-left: -`+e.width/2+`px; 69 margin-top: -`+e.height/2+`px; 70 height:`+e.height+"px":""},o.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+`px; 71 height:`+e.height+"px":""},o.prototype.getDummyImageContent=function(e,t,i){var s;if(this.settings.dynamic||(s=f(this.items).eq(t)),s){var n=void 0;if(this.settings.exThumbImage?n=s.attr(this.settings.exThumbImage):n=s.find("img").first().attr("src"),!n)return"";var r=this.getDummyImgStyles(this.currentImageSize),a=document.createElement("img");return a.alt=i||"",a.src=n,a.className="lg-dummy-img",a.style.cssText=r,e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),a}return""},o.prototype.setImgMarkup=function(e,t,i){var s=this.galleryItems[i],n=s.alt,r=s.srcset,a=s.sizes,d=s.sources,h="",m=n?'alt="'+n+'"':"";this.isFirstSlideWithZoomAnimation()?h=this.getDummyImageContent(t,i,m):h=I.getImgMarkup(i,e,m,r,a,d);var c=document.createElement("picture");c.className="lg-img-wrap",f(c).append(h),t.prepend(c)},o.prototype.onSlideObjectLoad=function(e,t,i,s){var n=e.find(".lg-object").first();I.isImageLoaded(n.get())||t?i():(n.on("load.lg error.lg",function(){i&&i()}),n.on("error.lg",function(){s&&s()}))},o.prototype.onLgObjectLoad=function(e,t,i,s,n,r){var a=this;this.onSlideObjectLoad(e,r,function(){a.triggerSlideItemLoad(e,t,i,s,n)},function(){e.addClass("lg-complete lg-complete_"),e.html('<span class="lg-error-msg">'+a.settings.strings.mediaLoadingFailed+"</span>")})},o.prototype.triggerSlideItemLoad=function(e,t,i,s,n){var r=this,a=this.galleryItems[t],d=n&&this.getSlideType(a)==="video"&&!a.poster?s:0;setTimeout(function(){e.addClass("lg-complete lg-complete_"),r.LGel.trigger(x.slideItemLoad,{index:t,delay:i||0,isFirstSlide:n})},d)},o.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},o.prototype.addSlideVideoInfo=function(e){var t=this;e.forEach(function(i,s){i.__slideVideoInfo=I.isVideo(i.src,!!i.video,s),i.__slideVideoInfo&&t.settings.loadYouTubePoster&&!i.poster&&i.__slideVideoInfo.youtube&&(i.poster="//img.youtube.com/vi/"+i.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},o.prototype.loadContent=function(e,t){var i=this,s=this.galleryItems[e],n=f(this.getSlideItemId(e)),r=s.poster,a=s.srcset,d=s.sizes,h=s.sources,m=s.src,c=s.video,g=c&&typeof c=="string"?JSON.parse(c):c;if(s.responsive){var p=s.responsive.split(",");m=I.getResponsiveSrc(p)||m}var y=s.__slideVideoInfo,S="",v=!!s.iframe,u=!this.lGalleryOn,T=0;if(u&&(this.zoomFromOrigin&&this.currentImageSize?T=this.settings.startAnimationDuration+10:T=this.settings.backdropDuration+10),!n.hasClass("lg-loaded")){if(y){var D=this.mediaContainerPosition,W=D.top,Y=D.bottom,N=I.getSize(this.items[e],this.outer,W+Y,y&&this.settings.videoMaxSize);S=this.getVideoContStyle(N)}if(v){var L=I.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,m,s.iframeTitle);n.prepend(L)}else if(r){var F="",V=u&&this.zoomFromOrigin&&this.currentImageSize;V&&(F=this.getDummyImageContent(n,e,""));var L=I.getVideoPosterMarkup(r,F||"",S,this.settings.strings.playVideo,y);n.prepend(L)}else if(y){var L='<div class="lg-video-cont " style="'+S+'"></div>';n.prepend(L)}else if(this.setImgMarkup(m,n,e),a||h){var Z=n.find(".lg-object");this.initPictureFill(Z)}(r||y)&&this.LGel.trigger(x.hasVideo,{index:e,src:m,html5Video:g,hasPoster:!!r}),this.LGel.trigger(x.afterAppendSlide,{index:e}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(e)}var $=0;T&&!f(document.body).hasClass("lg-from-hash")&&($=T),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){n.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),n.hasClass("lg-loaded")||setTimeout(function(){if(i.getSlideType(s)==="image"){var X=s.alt,j=X?'alt="'+X+'"':"";if(n.find(".lg-img-wrap").append(I.getImgMarkup(e,m,j,a,d,s.sources)),a||h){var q=n.find(".lg-object");i.initPictureFill(q)}}(i.getSlideType(s)==="image"||i.getSlideType(s)==="video"&&r)&&(i.onLgObjectLoad(n,e,T,$,!0,!1),i.onSlideObjectLoad(n,!!(y&&y.html5&&!r),function(){i.loadContentOnFirstSlideLoad(e,n,$)},function(){i.loadContentOnFirstSlideLoad(e,n,$)}))},this.settings.startAnimationDuration+100)),n.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.get
vendor: 18,411 bytes, lines 71-89
71SlideType(s)==="video"&&!r)&&this.onLgObjectLoad(n,e,T,$,u,!!(y&&y.html5&&!r)),(!this.zoomFromOrigin||!this.currentImageSize)&&n.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){n.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,t===!0&&(n.hasClass("lg-complete_")?this.preload(e):n.find(".lg-object").first().on("load.lg error.lg",function(){i.preload(e)}))},o.prototype.loadContentOnFirstSlideLoad=function(e,t,i){var s=this;setTimeout(function(){t.find(".lg-dummy-img").remove(),t.removeClass("lg-first-slide"),s.outer.removeClass("lg-first-slide-loading"),s.isDummyImageRemoved=!0,s.preload(e)},i+300)},o.prototype.getItemsToBeInsertedToDom=function(e,t,i){var s=this;i===void 0&&(i=0);var n=[],r=Math.max(i,3);r=Math.min(r,this.galleryItems.length);var a="lg-item-"+this.lgId+"-"+t;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(m,c){n.push("lg-item-"+s.lgId+"-"+c)}),n;if(e<(this.galleryItems.length-1)/2){for(var d=e;d>e-r/2&&d>=0;d--)n.push("lg-item-"+this.lgId+"-"+d);for(var h=n.length,d=0;d<r-h;d++)n.push("lg-item-"+this.lgId+"-"+(e+d+1))}else{for(var d=e;d<=this.galleryItems.length-1&&d<e+r/2;d++)n.push("lg-item-"+this.lgId+"-"+d);for(var h=n.length,d=0;d<r-h;d++)n.push("lg-item-"+this.lgId+"-"+(e-d-1))}return this.settings.loop&&(e===this.galleryItems.length-1?n.push("lg-item-"+this.lgId+"-0"):e===0&&n.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),n.indexOf(a)===-1&&n.push("lg-item-"+this.lgId+"-"+t),n},o.prototype.organizeSlideItems=function(e,t){var i=this,s=this.getItemsToBeInsertedToDom(e,t,this.settings.numberOfSlideItemsInDom);return s.forEach(function(n){i.currentItemsInDom.indexOf(n)===-1&&i.$inner.append('<div id="'+n+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(n){s.indexOf(n)===-1&&f("#"+n).remove()}),s},o.prototype.getPreviousSlideIndex=function(){var e=0;try{var t=this.outer.find(".lg-current").first().attr("id");e=parseInt(t.split("-")[3])||0}catch{e=0}return e},o.prototype.setDownloadValue=function(e){if(this.settings.download){var t=this.galleryItems[e],i=t.downloadUrl===!1||t.downloadUrl==="false";if(i)this.outer.addClass("lg-hide-download");else{var s=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),s.attr("href",t.downloadUrl||t.src),t.download&&s.attr("download",t.download)}}},o.prototype.makeSlideAnimation=function(e,t,i){var s=this;this.lGalleryOn&&i.addClass("lg-slide-progress"),setTimeout(function(){s.outer.addClass("lg-no-trans"),s.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),e==="prev"?(t.addClass("lg-prev-slide"),i.addClass("lg-next-slide")):(t.addClass("lg-next-slide"),i.addClass("lg-prev-slide")),setTimeout(function(){s.outer.find(".lg-item").removeClass("lg-current"),t.addClass("lg-current"),s.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},o.prototype.slide=function(e,t,i,s){var n=this,r=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(e,r),!(this.lGalleryOn&&r===e)){var a=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(e);var d=this.getSlideItem(e),h=this.getSlideItem(r),m=this.galleryItems[e],c=m.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(m)),this.setDownloadValue(e),c){var g=this.mediaContainerPosition,p=g.top,y=g.bottom,S=I.getSize(this.items[e],this.outer,p+y,c&&this.settings.videoMaxSize);this.resizeVideoSlide(e,S)}if(this.LGel.trigger(x.beforeSlide,{prevIndex:r,index:e,fromTouch:!!t,fromThumb:!!i}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(e),s||(e<r?s="prev":e>r&&(s="next")),!t)this.makeSlideAnimation(s,d,h);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var v=void 0,u=void 0;a>2?(v=e-1,u=e+1,(e===0&&r===a-1||e===a-1&&r===0)&&(u=0,v=a-1)):(v=0,u=1),s==="prev"?this.getSlideItem(u).addClass("lg-next-slide"):this.getSlideItem(v).addClass("lg-prev-slide"),d.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){n.loadContent(e,!0),n.settings.appendSubHtmlTo!==".lg-item"&&n.addHtml(e)},this.settings.speed+50+(t?0:this.settings.slideDelay)):this.loadContent(e,!0),setTimeout(function(){n.lgBusy=!1,h.removeClass("lg-slide-progress"),n.LGel.trigger(x.afterSlide,{prevIndex:r,index:e,fromTouch:t,fromThumb:i})},(this.lGalleryOn?this.settings.speed+100:100)+(t?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,t,i){var s=t.pageX-e.pageX,n=t.pageY-e.pageY,r=!1;if(this.swipeDirection?r=!0:Math.abs(s)>15?(this.swipeDirection="horizontal",r=!0):Math.abs(n)>15&&(this.swipeDirection="vertical",r=!0),!!r){var a=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){i==null||i.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(a,s,0);var d=a.get().offsetWidth,h=d*15/100,m=h-Math.abs(s*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-d+s-m,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),d+s+m,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){i==null||i.preventDefault(),this.$container.addClass("lg-dragging-vertical");var c=1-Math.abs(n)/window.innerHeight;this.$backdrop.css("opacity",c);var g=1-Math.abs(n)/(window.innerWidth*2);this.setTranslate(a,0,n,g,g),Math.abs(n)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},o.prototype.touchEnd=function(e,t,i){var s=this,n;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){s.$container.removeClass("lg-dragging-vertical"),s.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var r=!0;if(s.swipeDirection==="horizontal"){n=e.pageX-t.pageX;var a=Math.abs(e.pageX-t.pageX);n<0&&a>s.settings.swipeThreshold?(s.goToNextSlide(!0),r=!1):n>0&&a>s.settings.swipeThreshold&&(s.goToPrevSlide(!0),r=!1)}else if(s.swipeDirection==="vertical")if(n=Math.abs(e.pageY-t.pageY),s.settings.closable&&s.settings.swipeToClose&&n>100){s.closeGallery();return}else s.$backdrop.css("opacity",1);if(s.outer.find(".lg-item").removeAttr("style"),r&&Math.abs(e.pageX-t.pageX)<5){var d=f(i.target);s.isPosterElement(d)&&s.LGel.trigger(x.posterClick)}s.swipeDirection=void 0}),setTimeout(function(){!s.outer.hasClass("lg-dragging")&&s.settings.mode!=="lg-slide"&&s.outer.removeClass("lg-slide")},this.settings.speed+100)},o.prototype.enableSwipe=function(){var e=this,t={},i={},s=!1,n=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(r){e.dragOrSwipeEnabled=!0;var a=e.getSlideItem(e.index);(f(r.target).hasClass("lg-item")||a.get().contains(r.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&r.touches.length===1&&(n=!0,e.touchAction="swipe",e.manageSwipeClass(),t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(r){n&&e.touchAction==="swipe"&&r.touches.length===1&&(i={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e.touchMove(t,i,r),s=!0)}),this.$inner.on("touchend.lg",function(r){if(e.touchAction==="swipe"){if(s)s=!1,e.touchEnd(i,t,r);else if(n){var a=f(r.target);e.isPosterElement(a)&&e.LGel.trigger(x.posterClick)}e.touchAction=void 0,n=!1}}))},o.prototype.enableDrag=function(){var e=this,t={},i={},s=!1,n=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(r){e.dragOrSwipeEnabled=!0;var a=e.getSlideItem(e.index);(f(r.target).hasClass("lg-item")||a.get().contains(r.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&(r.preventDefault(),e.lgBusy||(e.manageSwipeClass(),t={pageX:r.pageX,pageY:r.pageY},s=!0,e.outer.get().scrollLeft+=1,e.outer.get().scrollLeft-=1,e.outer.removeClass("lg-grab").addClass("lg-grabbing"),e.LGel.trigger(x.dragStart)))}),f(window).on("mousemove.lg.global"+this.lgId,function(r){s&&e.lgOpened&&(n=!0,i={pageX:r.pageX,pageY:r.pageY},e.touchMove(t,i),e.LGel.trigger(x.dragMove))}),f(window).on("mouseup.lg.global"+this.lgId,function(r){if(e.lgOpened){var a=f(r.target);n?(n=!1,e.touchEnd(i,t,r),e.LGel.trigger(x.dragEnd)):e.isPosterElement(a)&&e.LGel.trigger(x.posterClick),s&&(s=!1,e.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},o.prototype.triggerPosterClick=function(){var e=this;this.$inner.on("click.lg",function(t){!e.dragOrSwipeEnabled&&e.isPosterElement(f(t.target))&&e.LGel.trigger(x.posterClick)})},o.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?t=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),t>-1&&this.getSlideItem(t).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},o.prototype.goToNextSlide=function(e){var t=this,i=this.settings.loop;e&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(x.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):i?(this.index=0,this.LGel.trigger(x.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-right-end"),setTimeout(function(){t.outer.removeClass("lg-right-end")},400)))},o.prototype.goToPrevSlide=function(e){var t=this,i=this.settings.loop;e&&this.galleryItems.length<3&&(i=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(x.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):i?(this.index=this.galleryItems.length-1,this.LGel.trigger(x.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(){t.outer.removeClass("lg-left-end")},400)))},o.prototype.keyPress=function(){var e=this;f(window).on("keydown.lg.global"+this.lgId,function(t){e.lgOpened&&e.settings.escKey===!0&&t.keyCode===27&&(t.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&&(t.keyCode===37&&(t.preventDefault(),e.goToPrevSlide()),t.keyCode===39&&(t.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 t=this.getElementById("lg-prev"),i=this.getElementById("lg-next");e+1===this.galleryItems.length?i.attr("disabled","disabled").addClass("disabled"):i.removeAttr("disabled").removeClass("disabled"),e===0?t.attr("disabled","disabled").addClass("disabled"):t.removeAttr("disabled").removeClass("disabled")}},o.prototype.setTranslate=function(e,t,i,s,n){s===void 0&&(s=1),n===void 0&&(n=1),e.css("transform","translate3d("+t+"px, "+i+"px, 0px) scale3d("+s+", "+n+", 1)")},o.prototype.mousewheel=function(){var e=this,t=0;this.outer.on("wheel.lg",function(i){if(!(!i.deltaY||e.galleryItems.length<2)){i.preventDefault();var s=new Date().getTime();s-t<1e3||(t=s,i.deltaY>0?e.goToNextSlide():i.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 t=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||t&&t.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 t=this.items[e],i=f(t);i.off("click.lgcustom-item-"+i.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(t){if(e.lgOpened){var i=t.key==="Tab"||t.keyCode===9;if(i){var s=I.getFocusableElements(e.$container.get()),n=s[0],r=s[s.length-1];t.shiftKey?document.activeElement===n&&(r.focus(),t.preventDefault()):document.activeElement===r&&(n.focus(),t.preventDefault())}}})},o.prototype.manageCloseGallery=function(){var e=this;if(this.settings.closable){var t=!1;this.getElementById("lg-close").on("click.lg",function(){e.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(i){var s=f(i.target);e.isSlideElement(s)?t=!0:t=!1}),this.outer.on("mousemove.lg",function(){t=!1}),this.outer.on("mouseup.lg",function(i){var s=f(i.target);e.isSlideElement(s)&&t&&(e.outer.hasClass("lg-dragging")||e.closeGallery())}))}},o.prototype.closeGallery=function(e){var t=this;if(!this.lgOpened||!this.settings.closable&&!e)return 0;this.LGel.trigger(x.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&f(window).scrollTop(this.prevScrollTop);var i=this.items[this.index],s;if(this.zoomFromOrigin&&i){var n=this.mediaContainerPosition,r=n.top,a=n.bottom,d=this.galleryItems[this.index],h=d.__slideVideoInfo,m=d.poster,c=I.getSize(i,this.outer,r+a,h&&m&&this.settings.videoMaxSize);s=I.getTransform(i,this.outer,r,a,c)}this.zoomFromOrigin&&s?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",s)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,f("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var g=this.zoomFromOrigin&&s?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){t.zoomFromOrigin&&s&&t.outer.removeClass("lg-zoom-from-image"),t.$container.removeClass("lg-show"),t.resetScrollBar(),t.$backdrop.removeAttr("style").css("transition-duration",t.settings.backdropDuration+"ms"),t.outer.removeClass("lg-closing "+t.settings.startClass),t.getSlideItem(t.index).removeClass("lg-start-end-progress"),t.$inner.empty(),t.lgOpened&&t.LGel.trigger(x.afterClose,{instance:t}),t.$container.get()&&t.$container.get().blur(),t.lgOpened=!1},g+100),g+100},o.prototype.initModules=function(){this.plugins.forEach(function(e){try{e.init()}catch{console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},o.prototype.destroyModules=function(e){this.plugins.forEach(function(t){try{e?t.destroy():t.closeGallery&&t.closeGallery()}catch{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(x.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 Ve(o,e){return new Ne(o,e)}/*! 72 * lightgallery | 2.9.0 | October 1st 2025 73 * http://www.lightgalleryjs.com/ 74 * Copyright (c) 2020 Sachin Neravath; 75 * @license GPLv3 76 *//*! ***************************************************************************** 77Copyright (c) Microsoft Corporation. 78 79Permission to use, copy, modify, and/or distribute this software for any 80purpose with or without fee is hereby granted. 81 82THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 83REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 84AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 85INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 86LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 87OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 88PERFORMANCE OF THIS SOFTWARE. 89***************************************************************************** */var K=function(){return K=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},K.apply(this,arguments)},Ze={scale:1,zoom:!0,infiniteZoom:!0,actualSize:!0,showZoomInOutIcons:!1,actualSizeIcons:{zoomIn:"lg-zoom-in",zoomOut:"lg-zoom-out"},enableZoomAfter:300,zoomPluginStrings:{zoomIn:"Zoom in",zoomOut:"Zoom out",viewActualSize:"View actual size"}},O={containerResize:"lgContainerResize",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",afterSlide:"lgAfterSlide",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical"},ie=500,je=(function(){function o(e,t){return this.core=e,this.$LG=t,this.settings=K(K({},Ze),this.core.settings),this}return o.prototype.buildTemplates=function(){var e=this.settings.showZoomInOutIcons?'<button id="'+this.core.getIdName("lg-zoom-in")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomIn+'" class="lg-zoom-in lg-icon"></button><button id="'+this.core.getIdName("lg-zoom-out")+'" type="button" aria-label="'+this.settings.zoomPluginStrings.zoomOut+'" class="lg-zoom-out lg-icon"></button>':"";this.settings.actualSize&&(e+='<button id="'+this.core.getIdName("lg-actual-size")+'" t
89ype="button" aria-label="'+this.settings.zoomPluginStrings.viewActualSize+'" class="'+this.settings.actualSizeIcons.zoomIn+' lg-icon"></button>'),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(e)},o.prototype.enableZoom=function(e){var t=this,i=this.settings.enableZoomAfter+e.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&e.detail.delay?i=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){t.isImageSlide(t.core.index)&&(t.core.getSlideItem(e.detail.index).addClass("lg-zoomable"),e.detail.index===t.core.index&&t.setZoomEssentials())},i+30)},o.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(O.slideItemLoad+".zoom",this.enableZoom.bind(this))},o.prototype.getDragCords=function(e){return{x:e.pageX,y:e.pageY}},o.prototype.getSwipeCords=function(e){var t=e.touches[0].pageX,i=e.touches[0].pageY;return{x:t,y:i}},o.prototype.getDragAllowedAxises=function(e,t){if(!this.containerRect)return{allowX:!1,allowY:!1};var i=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),s=0,n=0,r=i.getBoundingClientRect();e?(s=i.offsetHeight*e,n=i.offsetWidth*e):t?(s=r.height+t*r.height,n=r.width+t*r.width):(s=r.height,n=r.width);var a=s>this.containerRect.height,d=n>this.containerRect.width;return{allowX:d,allowY:a}},o.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},o.prototype.zoomImage=function(e,t,i,s){if(!(!this.containerRect||Math.abs(t)<=0)){var n=this.containerRect.width/2+this.containerRect.left,r=this.containerRect.height/2+this.containerRect.top+this.scrollTop,a,d;e===1&&(this.positionChanged=!1);var h=this.getDragAllowedAxises(0,t),m=h.allowY,c=h.allowX;this.positionChanged&&(a=this.left/(this.scale-t),d=this.top/(this.scale-t),this.pageX=n-a,this.pageY=r-d,this.positionChanged=!1);var g=this.getPossibleSwipeDragCords(t),p,y,S=n-this.pageX,v=r-this.pageY;if(e-t>1){var u=(e-t)/Math.abs(t);S=(t<0?-S:S)+this.left*(u+(t<0?-1:1)),v=(t<0?-v:v)+this.top*(u+(t<0?-1:1)),p=S/u,y=v/u}else{var u=(e-t)*t;p=S*u,y=v*u}i&&(c?this.isBeyondPossibleLeft(p,g.minX)?p=g.minX:this.isBeyondPossibleRight(p,g.maxX)&&(p=g.maxX):e>1&&(p<g.minX?p=g.minX:p>g.maxX&&(p=g.maxX)),m?this.isBeyondPossibleTop(y,g.minY)?y=g.minY:this.isBeyondPossibleBottom(y,g.maxY)&&(y=g.maxY):e>1&&(y<g.minY?y=g.minY:y>g.maxY&&(y=g.maxY))),this.setZoomStyles({x:p,y,scale:e}),this.left=p,this.top=y,s&&this.setZoomImageSize()}},o.prototype.resetImageTranslate=function(e){if(this.isImageSlide(e)){var t=this.core.getSlideItem(e).find(".lg-image").first();this.imageReset=!1,t.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),t.css("width","auto").css("height","auto"),setTimeout(function(){t.removeClass("no-transition")},10)}},o.prototype.setZoomImageSize=function(){var e=this,t=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var i=e.getCurrentImageActualSizeScale();e.scale>=i&&(t.addClass("no-transition"),e.imageReset=!0)},ie),setTimeout(function(){var i=e.getCurrentImageActualSizeScale();if(e.scale>=i){var s=e.getDragAllowedAxises(e.scale);t.css("width",t.get().naturalWidth+"px").css("height",t.get().naturalHeight+"px"),e.core.outer.addClass("lg-actual-size"),s.allowX&&s.allowY?t.addClass("reset-transition"):s.allowX&&!s.allowY?t.addClass("reset-transition-x"):!s.allowX&&s.allowY&&t.addClass("reset-transition-y")}},ie+50)},o.prototype.setZoomStyles=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),i=this.core.getSlideItem(this.core.index).find(".lg-image").first(),s=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=e.scale,i.css("transform","scale3d("+e.scale+", "+e.scale+", 1)"),s.css("transform","scale3d("+e.scale+", "+e.scale+", 1)");var n="translate3d("+e.x+"px, "+e.y+"px, 0)";t.css("transform",n)},o.prototype.setActualSize=function(e,t){var i=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var s=this.core.galleryItems[this.core.index];this.resetImageTranslate(e),setTimeout(function(){if(!(!s.src||i.core.outer.hasClass("lg-first-slide-loading"))){var n=i.getCurrentImageActualSizeScale(),r=i.scale;i.core.outer.hasClass("lg-zoomed")?i.scale=1:i.scale=i.getScale(n),i.setPageCords(t),i.beginZoom(i.scale),i.zoomImage(i.scale,i.scale-r,!0,!0)}},50),setTimeout(function(){i.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){i.zoomInProgress=!1},ie+110)}}
89,o.prototype.getNaturalWidth=function(e){var t=this.core.getSlideItem(e).find(".lg-image").first(),i=this.core.galleryItems[e].width;return i?parseFloat(i):t.get().naturalWidth},o.prototype.getActualSizeScale=function(e,t){var i,s;return e>=t?(i=e/t,s=i||2):s=1,s},o.prototype.getCurrentImageActualSizeScale=function(){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first(),t=e.get().offsetWidth,i=this.getNaturalWidth(this.core.index)||t;return this.getActualSizeScale(i,t)},o.prototype.getPageCords=function(e){var t={};if(e)t.x=e.pageX||e.touches[0].pageX,t.y=e.pageY||e.touches[0].pageY;else{var i=this.core.$content.get().getBoundingClientRect();t.x=i.width/2+i.left,t.y=i.height/2+this.scrollTop+i.top}return t},o.prototype.setPageCords=function(e){var t=this.getPageCords(e);this.pageX=t.x,this.pageY=t.y},o.prototype.manageActualPixelClassNames=function(){var e=this.core.getElementById("lg-actual-size");e.removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},o.prototype.beginZoom=function(e){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),e>1},o.prototype.getScale=function(e){var t=this.getCurrentImageActualSizeScale();return e<1?e=1:e>t&&(e=t),e},o.prototype.init=function(){var e=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var t=null;this.core.outer.on("dblclick.lg",function(i){e.$LG(i.target).hasClass("lg-image")&&e.setActualSize(e.core.index,i)}),this.core.outer.on("touchstart.lg",function(i){var s=e.$LG(i.target);i.touches.length===1&&s.hasClass("lg-image")&&(t?(clearTimeout(t),t=null,i.preventDefault(),e.setActualSize(e.core.index,i)):t=setTimeout(function(){t=null},300))}),this.core.LGel.on(O.containerResize+".zoom "+O.rotateRight+".zoom "+O.rotateLeft+".zoom "+O.flipHorizontal+".zoom "+O.flipVertical+".zoom",function(){if(!(!e.core.lgOpened||!e.isImageSlide(e.core.index)||e.core.touchAction)){var i=e.core.getSlideItem(e.core.index).find(".lg-img-wrap").first();e.top=0,e.left=0,e.setZoomEssentials(),e.setZoomSwipeStyles(i,{x:0,y:0}),e.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){e.core.lgOpened&&(e.scrollTop=e.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(e.isImageSlide(e.core.index)){var i=0;e.imageReset&&(e.resetImageTranslate(e.core.index),i=50),setTimeout(function(){var s=e.scale-e.settings.scale;s<1&&(s=1),e.beginZoom(s),e.zoomImage(s,-e.settings.scale,!0,!e.settings.infiniteZoom)},i)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){e.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){e.setActualSize(e.core.index)}),this.core.LGel.on(O.beforeOpen+".zoom",function(){e.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(O.afterOpen+".zoom",function(){e.scrollTop=e.$LG(window).scrollTop(),e.pageX=e.core.outer.width()/2,e.pageY=e.core.outer.height()/2+e.scrollTop,e.scale=1}),this.core.LGel.on(O.afterSlide+".zoom",function(i){var s=i.detail.prevIndex;e.scale=1,e.positionChanged=!1,e.zoomInProgress=!1,e.resetZoom(s),e.resetImageTranslate(s),e.isImageSlide(e.core.index)&&e.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},o.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var e=this.scale+this.settings.scale;this.settings.infiniteZoom||(e=this.getScale(e)),this.beginZoom(e),this.zoomImage(e,Math.min(this.settings.scale,e-this.scale),!0,!this.settings.infiniteZoom)}},o.prototype.resetZoom=function(e){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var t=this.core.getElementById("lg-actual-size"),i=this.core.getSlideItem(e!==void 0?e:this.core.index);t.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),i.find(".lg-img-wrap").first().removeAttr("style"),i.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},o.prototype.getTouchDistance=function(e){return Math.sqrt((e.touches[0].pageX-e.touches[1].pageX)*(e.touches[0].pageX-e.touches[1].pageX)+(e.touches[0].pageY-e.touches[1].pageY)*(e.touches[0].pageY-e.touches[1].pageY))},o.prototype.pinchZoom=function(){var e=this,t=0,i=!1,s=1,n=0,r=this.core.getSlideItem(this.core.index);
89this.core.outer.on("touchstart.lg",function(a){if(r=e.core.getSlideItem(e.core.index),!!e.isImageSlide(e.core.index)&&a.touches.length===2){if(a.preventDefault(),e.core.outer.hasClass("lg-first-slide-loading"))return;s=e.scale||1,e.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),e.setPageCords(a),e.resetImageTranslate(e.core.index),e.core.touchAction="pinch",t=e.getTouchDistance(a)}}),this.core.$inner.on("touchmove.lg",function(a){if(a.touches.length===2&&e.core.touchAction==="pinch"&&(e.$LG(a.target).hasClass("lg-item")||r.get().contains(a.target))){a.preventDefault();var d=e.getTouchDistance(a),h=t-d;if(!i&&Math.abs(h)>5&&(i=!0),i){n=e.scale;var m=Math.max(1,s+-h*.02);e.scale=Math.round((m+Number.EPSILON)*100)/100;var c=e.scale-n;e.zoomImage(e.scale,Math.round((c+Number.EPSILON)*100)/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(a){if(e.core.touchAction==="pinch"&&(e.$LG(a.target).hasClass("lg-item")||r.get().contains(a.target))){if(i=!1,t=0,e.scale<=1)e.resetZoom();else{var d=e.getCurrentImageActualSizeScale();if(e.scale>=d){var h=d-e.scale;h===0&&(h=.01),e.zoomImage(d,h,!1,!0)}e.manageActualPixelClassNames(),e.core.outer.addClass("lg-zoomed")}e.core.touchAction=void 0}})},o.prototype.touchendZoom=function(e,t,i,s,n){var r=t.x-e.x,a=t.y-e.y,d=Math.abs(r)/n+1,h=Math.abs(a)/n+1;d>2&&(d+=1),h>2&&(h+=1),r=r*d,a=a*h;var m=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),c={};c.x=this.left+r,c.y=this.top+a;var g=this.getPossibleSwipeDragCords();(Math.abs(r)>15||Math.abs(a)>15)&&(s&&(this.isBeyondPossibleTop(c.y,g.minY)?c.y=g.minY:this.isBeyondPossibleBottom(c.y,g.maxY)&&(c.y=g.maxY)),i&&(this.isBeyondPossibleLeft(c.x,g.minX)?c.x=g.minX:this.isBeyondPossibleRight(c.x,g.maxX)&&(c.x=g.maxX)),s?this.top=c.y:c.y=this.top,i?this.left=c.x:c.x=this.left,this.setZoomSwipeStyles(m,c),this.positionChanged=!0)},o.prototype.getZoomSwipeCords=function(e,t,i,s,n){var r={};if(s){if(r.y=this.top+(t.y-e.y),this.isBeyondPossibleTop(r.y,n.minY)){var a=n.minY-r.y;r.y=n.minY-a/6}else if(this.isBeyondPossibleBottom(r.y,n.maxY)){var d=r.y-n.maxY;r.y=n.maxY+d/6}}else r.y=this.top;if(i){if(r.x=this.left+(t.x-e.x),this.isBeyondPossibleLeft(r.x,n.minX)){var h=n.minX-r.x;
vendor: 10,728 bytes, lines 89-110
89r.x=n.minX-h/6}else if(this.isBeyondPossibleRight(r.x,n.maxX)){var m=r.x-n.maxX;r.x=n.maxX+m/6}}else r.x=this.left;return r},o.prototype.isBeyondPossibleLeft=function(e,t){return e>=t},o.prototype.isBeyondPossibleRight=function(e,t){return e<=t},o.prototype.isBeyondPossibleTop=function(e,t){return e>=t},o.prototype.isBeyondPossibleBottom=function(e,t){return e<=t},o.prototype.isImageSlide=function(e){var t=this.core.galleryItems[e];return this.core.getSlideType(t)==="image"},o.prototype.getPossibleSwipeDragCords=function(e){var t=this.core.getSlideItem(this.core.index).find(".lg-image").first(),i=this.core.mediaContainerPosition.bottom,s=t.get().getBoundingClientRect(),n=s.height,r=s.width;e&&(n=n+e*n,r=r+e*r);var a=(n-this.containerRect.height)/2,d=(this.containerRect.height-n)/2+i,h=(r-this.containerRect.width)/2,m=(this.containerRect.width-r)/2,c={minY:a,maxY:d,minX:h,maxX:m};return c},o.prototype.setZoomSwipeStyles=function(e,t){e.css("transform","translate3d("+t.x+"px, "+t.y+"px, 0)")},o.prototype.zoomSwipe=function(){var e=this,t={},i={},s=!1,n=!1,r=!1,a=new Date,d=new Date,h,m,c=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(g){if(e.isImageSlide(e.core.index)&&(c=e.core.getSlideItem(e.core.index),(e.$LG(g.target).hasClass("lg-item")||c.get().contains(g.target))&&g.touches.length===1&&e.core.outer.hasClass("lg-zoomed"))){g.preventDefault(),a=new Date,e.core.touchAction="zoomSwipe",m=e.core.getSlideItem(e.core.index).find(".lg-img-wrap").first();var p=e.getDragAllowedAxises(0);r=p.allowY,n=p.allowX,(n||r)&&(t=e.getSwipeCords(g)),h=e.getPossibleSwipeDragCords(),e.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(g){if(g.touches.length===1&&e.core.touchAction==="zoomSwipe"&&(e.$LG(g.target).hasClass("lg-item")||c.get().contains(g.target))){g.preventDefault(),e.core.touchAction="zoomSwipe",i=e.getSwipeCords(g);var p=e.getZoomSwipeCords(t,i,n,r,h);(Math.abs(i.x-t.x)>15||Math.abs(i.y-t.y)>15)&&(s=!0,e.setZoomSwipeStyles(m,p))}}),this.core.$inner.on("touchend.lg",function(g){if(e.core.touchAction==="zoomSwipe"&&(e.$LG(g.target).hasClass("lg-item")||c.get().contains(g.target))){if(g.preventDefault(),e.core.touchAction=void 0,e.core.outer.removeClass("lg-zoom-dragging"),!s)return;s=!1,d=new Date;var p=d.valueOf()-a.valueOf();e.touchendZoom(t,i,n,r,p)}})},o.prototype.zoomDrag=function(){var e=this,t={},i={},s=!1,n=!1,r=!1,a=!1,d,h,m,c;this.core.outer.on("mousedown.lg.zoom",function(g){if(e.isImageSlide(e.core.index)){var p=e.core.getSlideItem(e.core.index);if(e.$LG(g.target).hasClass("lg-item")||p.get().contains(g.target)){d=new Date,c=e.core.getSlideItem(e.core.index).find(".lg-img-wrap").first();var y=e.getDragAllowedAxises(0);a=y.allowY,r=y.allowX,e.core.outer.hasClass("lg-zoomed")&&e.$LG(g.target).hasClass("lg-object")&&(r||a)&&(g.preventDefault(),t=e.getDragCords(g),m=e.getPossibleSwipeDragCords(),s=!0,e.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(g){if(s){n=!0,i=e.getDragCords(g);var p=e.getZoomSwipeCords(t,i,r,a,m);e.setZoomSwipeStyles(c,p)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(g){if(s){if(h=new Date,s=!1,e.core.outer.removeClass("lg-zoom-dragging"),n&&(t.x!==i.x||t.y!==i.y)){i=e.getDragCords(g);var p=h.valueOf()-d.valueOf();e.touchendZoom(t,i,r,a,p)}n=!1}e.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},o.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},o.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},o})();/*! 90 * lightgallery | 2.9.0 | October 1st 2025 91 * http://www.lightgalleryjs.com/ 92 * Copyright (c) 2020 Sachin Neravath; 93 * @license GPLv3 94 *//*! ***************************************************************************** 95Copyright (c) Microsoft Corporation. 96 97Permission to use, copy, modify, and/or distribute this software for any 98purpose with or without fee is hereby granted. 99 100THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 101REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 102AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 103INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 104LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 105OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 106PERFORMANCE OF THIS SOFTWARE. 107***************************************************************************** */var J=function(){return J=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},J.apply(this,arguments)},qe={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"}},H={containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",beforeOpen:"lgBeforeOpen",beforeSlide:"lgBeforeSlide"},Ue=(function(){function o(e,t){return this.thumbOuterWidth=0,this.thumbTotalWidth=0,this.translateX=0,this.thumbClickable=!1,this.core=e,this.$LG=t,this}return o.prototype.init=function(){this.settings=J(J({},qe),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())},o.prototype.build=function(){var e=this;this.setThumbMarkup(),this.manageActiveClassOnSlideChange(),this.$lgThumb.first().on("click.lg touchend.lg",function(t){var i=e.$LG(t.target);i.hasAttribute("data-lg-item-id")&&setTimeout(function(){if(e.thumbClickable&&!e.core.lgBusy){var s=parseInt(i.attr("data-lg-item-id"));e.core.slide(s,!1,!0,!1)}},50)}),this.core.LGel.on(H.beforeSlide+".thumb",function(t){var i=t.detail.index;e.animateThumb(i)}),this.core.LGel.on(H.beforeOpen+".thumb",function(){e.thumbOuterWidth=e.core.outer.get().offsetWidth}),this.core.LGel.on(H.updateSlides+".thumb",function(){e.rebuildThumbnails()}),this.core.LGel.on(H.containerResize+".thumb",function(){e.core.lgOpened&&setTimeout(function(){e.thumbOuterWidth=e.core.outer.get().offsetWidth,e.animateThumb(e.core.index),e.thumbOuterWidth=e.core.outer.get().offsetWidth},50)})},o.prototype.setThumbMarkup=function(){var e="lg-thumb-outer ";this.settings.alignThumbnails&&(e+="lg-thumb-align-"+this.settings.alignThumbnails);var t='<div class="'+e+`"> 108 <div class="lg-thumb lg-group"> 109 </div> 110 </div>`;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(t):this.core.outer.append(t),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)},o.prototype.enableThumbDrag=function(){var e=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},i=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(s){e.thumbTotalWidth>e.thumbOuterWidth&&(s.preventDefault(),t.cords.startX=s.pageX,t.startTime=new Date,e.thumbClickable=!1,i=!0,e.core.outer.get().scrollLeft+=1,e.core.outer.get().scrollLeft-=1,e.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(s){e.core.lgOpened&&i&&(t.cords.endX=s.pageX,t=e.onThumbTouchMove(t))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){e.core.lgOpened&&(t.isMoved?t=e.onThumbTouchEnd(t):e.thumbClickable=!0,i&&(i=!1,e.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},o.prototype.enableThumbSwipe=function(){var e=this,t={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(i){e.thumbTotalWidth>e.thumbOuterWidth&&(i.preventDefault(),t.cords.startX=i.targetTouches[0].pageX,e.thumbClickable=!1,t.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(i){e.thumbTotalWidth>e.thumbOuterWidth&&(i.preventDefault(),t.cords.endX=i.targetTouches[0].pageX,t=e.onThumbTouchMove(t))}),this.$lgThumb.on("touchend.lg",function(){t.isMoved?t=e.onThumbTouchEnd(t):e.thumbClickable=!0})},o.prototype.rebuildThumbnails=function(){var e=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){e.thumbTotalWidth=e.core.galleryItems.length*(e.settings.thumbWidth+e.settings.thumbMargin),e.$lgThumb.css("width",e.thumbTotalWidth+"px"),e.$lgThumb.empty(),e.setThumbItemHtml(e.core.galleryItems),e.animateThumb(e.core.index)},50),setTimeout(function(){e.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},o.prototype.setTranslate=function(e){this.$lgThumb.css("transform","translate3d(-"+e+"px, 0px, 0px)")},o.prototype.getPossibleTransformX=function(e){return e>this.thumbTotalWidth-this.thumbOuterWidth&&(e=this.thumbTotalWidth-this.thumbOuterWidth),e<0&&(e=0),e},o.prototype.animateThumb=function(e){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var t=0;switch(this.settings.currentPagerPosition){case"left":t=0;break;case"middle":t=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":t=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*e-1-t,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},o.prototype.onThumbTouchMove=function(e){return e.newTranslateX=this.translateX,e.
110isMoved=!0,e.touchMoveTime=new Date().valueOf(),e.newTranslateX-=e.cords.endX-e.cords.startX,e.newTranslateX=this.getPossibleTransformX(e.newTranslateX),this.setTranslate(e.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),e},o.prototype.onThumbTouchEnd=function(e){e.isMoved=!1,e.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var t=e.endTime.valueOf()-e.startTime.valueOf(),i=e.cords.endX-e.cords.startX,s=Math.abs(i)/t;return s>.15&&e.endTime.valueOf()-e.touchMoveTime<30?(s+=1,s>2&&(s+=1),s=s+s*(Math.abs(i)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(s-1,2)+"settings"),i=i*s,this.translateX=this.getPossibleTransformX(this.translateX-i),this.setTranslate(this.translateX)):this.translateX=e.newTranslateX,Math.abs(e.cords.endX-e.cords.startX)<this.settings.thumbnailSwipeThreshold&&(this.thumbClickable=!0),e},o.prototype.getThumbHtml=function(e,t,i){var s=this.core.galleryItems[t].__slideVideoInfo||{},n;s.youtube&&this.settings.loadYouTubeThumbnail?n="//img.youtube.com/vi/"+s.youtube[1]+"/"+this.settings.youTubeThumbSize+".jpg":n=e;var r=document.createElement("div");r.setAttribute("data-lg-item-id",t+""),r.className="lg-thumb-item "+(t===this.core.index?"active":""),r.style.cssText="width: "+this.settings.thumbWidth+"px; height: "+this.settings.thumbHeight+"; margin-right: "+this.settings.thumbMargin+"px;";var a=document.createElement("img");return a.alt=i||"",a.setAttribute("data-lg-item-id",t+""),a.src=n,r.appendChild(a),r},o.prototype.setThumbItemHtml=function(e){for(var t=0;t<e.length;t++){var i=this.getThumbHtml(e[t].thumb,t,e[t].alt);this.$lgThumb.append(i)}},o.prototype.setAnimateThumbStyles=function(){this.settings.animateThumb&&this.core.outer.addClass("lg-animate-thumb")},o.prototype.manageActiveClassOnSlideChange=function(){var e=this;this.core.LGel.on(H.beforeSlide+".thumb",function(t){var i=e.core.outer.find(".lg-thumb-item"),s=t.detail.index;i.removeClass("active"),i.eq(s).addClass("active")})},o.prototype.toggleThumbBar=function(){var e=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(){e.core.outer.toggleClass("lg-components-open")}))},o.prototype.thumbKeyPress=function(){var e=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(t){!e.core.lgOpened||!e.settings.toggleThumb||(t.keyCode===38?(t.preventDefault(),e.core.outer.addClass("lg-components-open")):t.keyCode===40&&(t.preventDefault(),e.core.outer.removeClass("lg-components-open")))})},o.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"))},o})();/*! 111 * lightgallery | 2.9.0 | October 1st 2025 112 * http://www.lightgalleryjs.com/ 113 * Copyright (c) 2020 Sachin Neravath; 114 * @license GPLv3 115 *//*! ***************************************************************************** 116Copyright (c) Microsoft Corporation. 117 118Permission to use, copy, modify, and/or distribute this software for any 119purpose with or without fee is hereby granted. 120 121THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 122REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 123AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 124INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 125LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 126OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 127PERFORMANCE OF THIS SOFTWARE. 128***************************************************************************** */var Q=function(){return Q=Object.assign||function(e){for(var t,i=1,s=arguments.length;i<s;i++){t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Q.apply(this,arguments)},Ke={fullScreen:!0,fullscreenPluginStrings:{toggleFullscreen:"Toggle Fullscreen"}},Je=(function(){function o(e,t){return this.core=e,this.$LG=t,this.settings=Q(Q({},Ke),this.core.settings),this}return o.prototype.init=function(){var e="";if(this.settings.fullScreen){if(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled&&!document.mozFullScreenEnabled&&!document.msFullscreenEnabled)return;e='<button type="button" aria-label="'+this.settings.fullscreenPluginStrings.toggleFullscreen+'" class="lg-fullscreen lg-icon"></button>',this.core.$toolbar.append(e),this.fullScreen()}},o.prototype.isFullScreen=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},o.prototype.requestFullscreen=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen()},o.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},o.prototype.fullScreen=function(){var e=this;this.$LG(document).on("fullscreenchange.lg.global"+this.core.lgId+` 129 webkitfullscreenchange.lg.global`+this.core.lgId+` 130 mozfullscreenchange.lg.global`+this.core.lgId+` 131 MSFullscreenChange.lg.global`+this.core.lgId,function(){e.core.lgOpened&&e.core.outer.toggleClass("lg-fullscreen-on")}),this.core.outer.find(".lg-fullscreen").first().on("click.lg",function(){e.isFullScreen()?e.exitFullscreen():e.requestFullscreen()})},o.prototype.closeGallery=function(){this.isFullScreen()&&this.exitFullscreen()},o.prototype.destroy=function(){this.$LG(document).off("fullscreenchange.lg.global"+this.core.lgId+` 132 webkitfullscreenchange.lg.global`+this.core.lgId+` 133 mozfullscreenchange.lg.global`+this.core.lgId+` 134 MSFullscreenChange.lg.global`+this.core.lgId)},o})();const Qe={class:"relative"},et={key:0},tt={class:"relative overflow-hidden rounded-2xl"},it=["src"],st={key:1,class:"grid grid-cols-2 gap-3"},ot=["src","onLoad","onClick"],nt={key:2,class:"grid grid-cols-4 gap-3"},rt={class:"col-span-2 row-span-2 relative overflow-hidden rounded-2xl"},lt=["src"],at={class:"col-span-2 grid grid-rows-2 gap-3"},ut=["src","onLoad","onClick"],dt={key:0,class:"absolute inset-0 bg-black/50 flex items-center justify-center text-white text-lg font-semibold"},gt={key:3,class:"absolute bottom-4 right-4 bg-black/70 text-white px-4 py-2 rounded-xl text-sm backdrop-blur"},ht=ne({__name:"ListingGallery",props:{images:{type:Array,default:()=>[]}},setup(o){const e=o,t=z({}),i=n=>{t.value[n]=!0},s=(n=0)=>{const r=document.createElement("div");document.body.appendChild(r),Ve(r,{dynamic:!0,dynamicEl:e.images.map(d=>({src:d.url})),index:n,plugins:[je,Ue,Je],download:!1,hideBarsDelay:3e3,swipeThreshold:50}).openGallery(n)};return(n,r)=>(w(),C("div",Qe,[o.images.length===1?(w(),C("div",et,[l("div",tt,[l("img",{src:o.images[0].url,onLoad:r[0]||(r[0]=a=>i(0)),onClick:r[1]||(r[1]=a=>s(0)),class:G(["w-full h-[500px] object-cover cursor-pointer transition duration-700",{"blur-lg scale-105":!t.value[0],"blur-0 scale-100":t.value[0]}])},null,42,it)])])):o.images.length===2?(w(),C("div",st,[(w(!0),C(se,null,oe(o.images,(a,d)=>(w(),C("div",{key:d,class:"relative overflow-hidden rounded-2xl"},[l("img",{src:a.url,onLoad:h=>i(d),onClick:h=>s(d),class:G(["h-[420px] w-full object-cover cursor-pointer transition duration-700",{"blur-lg scale-105":!t.value[d],"blur-0 scale-100":t.value[d]}])},null,42,ot)]))),128))])):(w(),C("div",nt,[l("div",rt,[l("img",{src:o.images[0].url,onLoad:r[2]||(r[2]=a=>i(0)),onClick:r[3]||(r[3]=a=>s(0)),class:G(["h-[420px] w-full object-cover cursor-pointer transition duration-700",{"blur-lg scale-105":!t.value[0],"blur-0 scale-100":t.value[0]}])},null,42,lt)]),l("div",at,[(w(!0),C(se,null,oe(o.images.slice(1,3),(a,d)=>(w(),C("div",{key:d,class:"relative overflow-hidden rounded-2xl"},[l("img",{src:a.url,onLoad:h=>i(d+1),onClick:h=>s(d+1),class:G(["h-[205px] w-full object-cover cursor-pointer transition duration-700",{"blur-lg scale-105":!t.value[d+1],"blur-0 scale-100":t.value[d+1]}])},null,42,ut),d===1&&o.images.length>3?(w(),C("div",dt," +"+b(o.images.length-3)+" Photos ",1)):k("",!0)]))),128))])])),o.images.length?(w(),C("div",gt," ð· "+b(o.images.length)+" Photos ",1)):k("",!0)]))}}),ct={key:0,class:"mt-20 py-12 border-t border-slate-100"},mt={class:"flex items-center justify-between mb-10"},ft={class:"flex items-center gap-3"},pt={class:"text-3xl font-black text-slate-900 tracking-tight"},vt={class:"bg-white rounded-[2rem] border border-slate-100 overflow-hidden hover:shadow-2xl hover:shadow-blue-900/10 transition-all duration-500 hover:-translate-y-2"},bt={class:"relative h-56 overflow-hidden"},yt=["src"],wt={class:"absolute top-4 left-4 bg-white/90 backdrop-blur px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest text-slate-900"},xt={class:"p-6"},Ct={class:"font-black text-slate-900 text-lg mb-1 truncate"},St={class:"text-slate-400 text-xs font-bold mb-4 flex items-center gap-1 uppercase"},It={class:"flex items-center justify-between pt-4 border-t border-slate-50"},Tt={class:"text-xl font-black text-blue-600"},_t=ne({__name:"SimilarBikes",props:{listing:Object},setup(o){const e=o,t=z([]),i=z("Similar Bikes");return ze(async()=>
134{if(!e.listing)return;const s=e.listing.slug,n=r=>r.filter(a=>a.slug!==s);try{const{data:r}=await A.get("/listings/search",{params:{category:e.listing.category,make:e.listing.make,min_price:e.listing.price*.7,max_price:e.listing.price*1.3,limit:7}}),a=n(r.data||[]);if(a.length>0)t.value=a,i.value="Similar Showroom";else{const{data:d}=await A.get("/listings/latest");t.value=n(d||[]).slice(0,7),i.value="Latest Arrivals"}}catch(r){console.error(r)}}),(s,n)=>t.value.length?(w(),C("section",ct,[l("div",mt,[l("div",ft,[n[0]||(n[0]=l("span",{class:"w-2 h-8 bg-blue-600 rounded-full"},null,-1)),l("h3",pt,b(i.value),1)]),n[1]||(n[1]=Oe('<div class="flex gap-3"><button class="similar-prev nav-btn"><i class="ri-arrow-left-line"></i></button><button class="similar-next nav-btn"><i class="ri-arrow-right-line"></i></button></div>',1))]),P(U(Le),{modules:[U($e)],"space-between":24,navigation:{nextEl:".similar-next",prevEl:".similar-prev"},breakpoints:{640:{slidesPerView:2},1024:{slidesPerView:3},1280:{slidesPerView:4}}},{default:ee(()=>[(w(!0),C(se,null,oe(t.value,r=>(w(),Ee(U(Pe),{key:r.id},{default:ee(()=>[P(U(Me),{to:`/bike/${r.slug}`,class:"group block"},{default:ee(()=>[l("div",vt,[l("div",bt,[l("img",{src:r.primary_image||"/images/bike-placeholder.jpg",class:"w-full h-full object-cover group-hover:scale-110 transition duration-700"},null,8,yt),l("div",wt,b(r.year),1)]),l("div",xt,[l("h4",Ct,b(r.title),1),l("p",St,[n[2]||(n[2]=l("i",{class:"ri-map-pin-2-line"},null,-1)),R(" "+b(r.location_city),1)]),l("div",It,[l("span",Tt,"$"+b(r.price.toLocaleString()),1),n[3]||(n[3]=l("span",{class:"w-10 h-10 rounded-xl bg-slate-50 flex items-center justify-center text-slate-400 group-hover:bg-blue-600 group-hover:text-white transition-colors"},[l("i",{class:"ri-arrow-right-up-line"})],-1))])])])]),_:2},1032,["to"])]),_:2},1024))),128))]),_:1},8,["modules"])])):k("",!0)}}),zt={class:"pt-24 bg-slate-50/50 min-h-screen"},kt={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-20"},Ot={key:0,class:"flex flex-col items-center justify-center py-32 text-slate-400 space-y-4"},Lt={key:1,class:"animate-fade-in"},$t={class:"mb-10"},Et={class:"flex flex-col md:flex-row md:items-end justify-between gap-6"},Mt={class:"flex flex-wrap items-center gap-3 mb-4"},Pt={class:"px-4 py-1.5 bg-blue-100 text-blue-700 text-xs font-black uppercase tracking-widest rounded-full shadow-sm"},Gt={class:"px-4 py-1.5 bg-white border border-slate-200 text-slate-600 text-xs font-bold uppercase tracking-widest rounded-full flex items-center gap-1.5 shadow-sm"},At={class:"text-4xl md:text-5xl lg:text-6xl font-black text-slate-900 tracking-tight leading-tight"},Dt={class:"flex items-center gap-3 text-sm font-bold text-slate-500 bg-white p-2 rounded-2xl border border-slate-100 shadow-sm"},Ft={class:"px-4 py-2 rounded-xl bg-slate-50 flex items-center gap-2"},Xt={class:"px-4 py-2 rounded-xl bg-slate-50 flex items-center gap-2"},Bt={class:"px-4 py-2 rounded-xl bg-slate-50 flex items-center gap-2"},Ht={class:"grid grid-cols-1 lg:grid-cols-12 gap-12"},Rt={class:"lg:col-span-8 space-y-12"},Wt={class:"rounded-[2.5rem] overflow-hidden shadow-2xl shadow-blue-900/5 border border-slate-100 bg-white"},Yt={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},Nt={class:"quick-card group"},Vt={class:"quick-value"},Zt={class:"quick-card group"},jt={class:"quick-value"},qt={class:"quick-card group"},Ut={class:"quick-value"},Kt={class:"quick-card group"},Jt={class:"quick-value truncate"},Qt={class:"content-card"},ei={class:"text-slate-600 leading-loose whitespace-pre-line text-lg"},ti={class:"content-card"},ii={class:"flex items-center justify-between mb-8"},si={class:"flex bg-slate-100 p-1.5 rounded-2xl"},oi={class:"animate-fade-in"},ni={class:"data-grid"},ri={class:"data-row"},li={class:"data-row"},ai={class:"data-row"},ui={class:"data-row"},di={key:0,class:"data-row"},gi={key:1,class:"data-row"},hi={class:"space-y-8 animate-fade-in"},ci={class:"data-grid"},mi={class:"data-row"},fi={class:"data-row"},pi={class:"data-row"},vi={class:"data-grid"},bi={class:"data-row"},yi={class:"data-row"},wi={class:"data-grid"},xi={class:"data-row"},Ci={class:"data-row"},Si={class:"lg:col-span-4"},Ii={class:"sticky top-32 space-y-6"},Ti={class:"bg-gradient-to-br from-blue-600 to-blue-800 rounded-[2rem] p-8 text-white shadow-2xl shadow-blue-900/20 relative overflow-hidden"},_i={class:"text-5xl font-black tracking-tight mb-6"},zi={class:"flex items-center gap-3 text-sm text-blue-100 bg-white/10 p-4 rounded-2xl backdrop-blur-sm"},ki={class:"bg-white border border-slate-100 rounded-[2rem] p-8 shadow-xl shadow-slate-200/50"}
134,Oi={key:0,class:"pb-6 mb-6 border-b border-slate-100"},Li={class:"flex items-center gap-4 mb-4"},$i={class:"w-14 h-14 bg-slate-100 rounded-full flex items-center justify-center text-slate-400 text-2xl font-black"},Ei={class:"font-black text-xl text-slate-900"},Mi={class:"text-sm font-bold text-slate-400 uppercase tracking-wider mt-0.5"},Pi={class:"flex flex-wrap gap-2"},Gi={key:0,class:"badge-verified"},Ai={key:1,class:"badge-verified"},Di={class:"relative"},Fi={class:"relative"},Xi={class:"relative"},Bi={class:"relative"},Hi=["disabled"],Ri={key:0},Wi={key:1},Yi={class:"text-center"},Ni={key:1,class:"text-xs text-slate-400"},Vi={class:"mt-12"},Zi={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 backdrop-blur-sm"},ji={class:"bg-white rounded-3xl p-8 w-full max-w-md shadow-2xl animate-fade-in"},qi={class:"space-y-4"},Ui={class:"flex gap-3 pt-2"},Ki=["disabled"],Ji=ne({__name:"ListingSingle",setup(o){const e=Fe(),t=z(null),i=z([]),s=z(!0),n=z("overview"),r=z(!1),a=z(!1),d=z({reason:"",message:""}),h=async()=>{if(!(!d.value.reason||!t.value))try{a.value=!0,await A.post(`/listings/${t.value.id}/report`,{reason:d.value.reason,message:d.value.message}),r.value=!1,d.value={reason:"",message:""},alert("Report submitted successfully ð")}catch(v){console.error("Report failed",v)}finally{a.value=!1}},m=Te(()=>!!localStorage.getItem("token")),c=v=>{if(!v)return;document.title=`${v.title||`${v.make} ${v.model} ${v.year}`} | Bike Domain`;let u=document.querySelector('meta[name="description"]');u||(u=document.createElement("meta"),u.setAttribute("name","description"),document.head.appendChild(u)),u.setAttribute("content",`${v.title||`${v.make} ${v.model}`} available in ${v.location_city}. View price, specs and contact seller on BikeDomain.`)},g=z({name:"",email:"",phone:"",message:""}),p=z(!1),y=async()=>{var v,u;if(!(!g.value.message.trim()||!t.value))try{p.value=!0;const T=JSON.parse(localStorage.getItem("user")||"null");await A.post("/chat/send",{listing_id:t.value.id,seller_id:(u=(v=t.value)==null?void 0:v.seller)==null?void 0:u.id,body:g.value.message,guest_name:g.value.name,guest_email:g.value.email,guest_phone:g.value.phone}),g.value.message="",alert("Message sent successfully ð")}catch(T){console.error("Message send failed",T)}finally{p.value=!1}},S=Te(()=>{if(!t.value)return"POA";
134const v=t.value.final_price||t.value.price||t.value.finalPrice;return v?new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",maximumFractionDigits:0}).format(v):"POA"});return ze(async()=>{try{const{data:v}=await A.get(`/listings/${e.params.slug}`);t.value=v,i.value=v.media??[],c(v)}finally{s.value=!1}}),Ge(()=>e.params.slug,async v=>{if(!v)return;s.value=!0;const{data:u}=await A.get(`/listings/${v}`);t.value=u,i.value=u.media??[],c(u),s.value=!1}),(v,u)=>{var T,D,W,Y,N,L,F,V,Z,$,X,j,q,re,le,ae,ue,de,ge,he,ce,me,fe,pe,ve,be,ye,we,xe,Ce,Se;return w(),C("div",zt,[l("div",kt,[s.value?(w(),C("div",Ot,[...u[10]||(u[10]=[l("div",{class:"w-12 h-12 border-4 border-blue-200 border-t-blue-600 rounded-full animate-spin"},null,-1),l("p",{class:"font-medium tracking-wide animate-pulse"},"Loading premium details...",-1)])])):k("",!0),t.value&&!s.value?(w(),C("div",Lt,[l("div",$t,[l("div",Et,[l("div",null,[l("div",Mt,[l("span",Pt,b(t.value.status),1),l("span",Gt," ð "+b((T=t.value.location)==null?void 0:T.city)+", "+b((D=t.value.location)==null?void 0:D.state),1)]),l("h1",At,b(t.value.title),1)]),l("div",Dt,[l("div",Ft,[u[11]||(u[11]=l("span",{class:"text-lg"},"ð",-1)),R(" "+b(((W=t.value.stats)==null?void 0:W.views)||0),1)]),l("div",Xt,[u[12]||(u[12]=l("span",{class:"text-lg"},"â¤ï¸",-1)),R(" "+b(((Y=t.value.stats)==null?void 0:Y.favorites)||0),1)]),l("div",Bt,[u[13]||(u[13]=l("span",{class:"text-lg"},"ð",-1)),R(" "+b(((N=t.value.stats)==null?void 0:N.contacts)||0),1)])])])]),l("div",Ht,[l("div",Rt,[l("div",Wt,[P(ht,{images:i.value},null,8,["images"])]),P(te,{position:"listing_below_gallery"}),l("div",Yt,[l("div",Nt,[u[15]||(u[15]=l("div",{class:"quick-icon group-hover:scale-110 group-hover:bg-blue-600 group-hover:text-white"}," ð",-1)),l("div",null,[u[14]||(u[14]=l("p",{class:"quick-label"},"Category",-1)),l("p",Vt,b(t.value.category),1)])]),l("div",Zt,[u[17]||(u[17]=l("div",{class:"quick-icon group-hover:scale-110 group-hover:bg-blue-600 group-hover:text-white"}," ð",-1)),l("div",null,[u[16]||(u[16]=l("p",{class:"quick-label"},"Mileage",-1)),l("p",jt,b(t.value.mileage)+" km",1)])]),l("div",qt,[u[19]||(u[19]=l("div",{class:"quick-icon group-hover:scale-110 group-hover:bg-blue-600 group-hover:text-white"}," ð
",-1)),l("div",null,[u[18]||(u[18]=l("p",{class:"quick-label"},"Year",-1)),l("p",Ut,b(t.value.year),1)])]),l("div",Kt,[u[21]||(u[21]=l("div",{class:"quick-icon group-hover:scale-110 group-hover:bg-blue-600 group-hover:text-white"}," ð",-1)),l("div",null,[u[20]||(u[20]=l("p",{class:"quick-label"},"Location",-1)),l("p",Jt,b((L=t.value.location)==null?void 0:L.city),1)])])]),l("div",Qt,[u[22]||(u[22]=l("h3",{class:"section-title"},"Seller's Notes",-1)),l("p",ei,b(t.value.description),1)]),P(te,{position:"listing_mid"}),l("div",ti,[l("div",ii,[u[23]||(u[23]=l("h3",{class:"section-title !mb-0"},"Technical Specifications",-1)),l("div",si,[l("button",{class:G(["tab-btn",n.value==="overview"?"tab-active":"tab-inactive"]),onClick:u[0]||(u[0]=_=>n.value="overview")}," Overview ",2),l("button",{class:G(["tab-btn",n.value==="specs"?"tab-active":"tab-inactive"]),onClick:u[1]||(u[1]=_=>n.value="specs")}," Deep Specs ",2)])]),E(l("div",oi,[l("div",ni,[l("div",ri,[u[24]||(u[24]=l("span",null,"Make",-1)),l("strong",null,b(t.value.make),1)]),l("div",li,[u[25]||(u[25]=l("span",null,"Model",-1)),l("strong",null,b(t.value.model),1)]),l("div",ai,[u[26]||(u[26]=l("span",null,"Year",-1)),l("strong",null,b(t.value.year),1)]),l("div",ui,[u[27]||(u[27]=l("span",null,"Mileage",-1)),l("strong",null,b(t.value.mileage)+" km",1)]),(V=(F=t.value.bike)==null?void 0:F.overview)!=null&&V.displacement?(w(),C("div",di,[u[28]||(u[28]=l("span",null,"Engine Capacity",-1)),l("strong",null,b(t.value.bike.overview.displacement),1)])):k("",!0),($=(Z=t.value.bike)==null?void 0:Z.overview)!=null&&$.engine_details?(w(),C("div",gi,[u[29]||(u[29]=l("span",null,"Configuration",-1)),l("strong",null,b(t.value.bike.overview.engine_details),1)])):k("",!0)])],512),[[Ie,n.value==="overview"]]),E(l("div",hi,[l("div",null,[u[33]||(u[33]=l("h4",{class:"spec-heading"},"Engine & Performance",-1)),l("div",ci,[l("div",mi,[u[30]||(u[30]=l("span",null,"Type",-1)),l("strong",null,b(((q=(j=(X=t.value.bike)==null?void 0:X.specs)==null?void 0:j.engine)==null?void 0:q.type)||"N/A"),1)]),l("div",fi,[u[31]||(u[31]=l("span",null,"Power",-1)),l("strong",null,b(((ae=(le=(re=t.value.bike)==null?void 0:re.specs)==null?void 0:le.engine)==null?void 0:ae.power)||"N
134/A"),1)]),l("div",pi,[u[32]||(u[32]=l("span",null,"Torque",-1)),l("strong",null,b(((ge=(de=(ue=t.value.bike)==null?void 0:ue.specs)==null?void 0:de.engine)==null?void 0:ge.torque)||"N/A"),1)])])]),l("div",null,[u[36]||(u[36]=l("h4",{class:"spec-heading"},"Drivetrain",-1)),l("div",vi,[l("div",bi,[u[34]||(u[34]=l("span",null,"Gearbox",-1)),l("strong",null,b(((me=(ce=(he=t.value.bike)==null?void 0:he.specs)==null?void 0:ce.transmission)==null?void 0:me.gearbox)||"N/A"),1)]),l("div",yi,[u[35]||(u[35]=l("span",null,"Drive Type",-1)),l("strong",null,b(((ve=(pe=(fe=t.value.bike)==null?void 0:fe.specs)==null?void 0:pe.transmission)==null?void 0:ve.type)||"N/A"),1)])])]),l("div",null,[u[39]||(u[39]=l("h4",{class:"spec-heading"},"Fuel & Cooling",-1)),l("div",wi,[l("div",xi,[u[37]||(u[37]=l("span",null,"Fuel System",-1)),l("strong",null,b(((we=(ye=(be=t.value.bike)==null?void 0:be.specs)==null?void 0:ye.fuel)==null?void 0:we.system)||"N/A"),1)]),l("div",Ci,[u[38]||(u[38]=l("span",null,"Cooling",-1)),l("strong",null,b(((Se=(Ce=(xe=t.value.bike)==null?void 0:xe.specs)==null?void 0:Ce.fuel)==null?void 0:Se.cooling)||"N/A"),1)])])])],512),[[Ie,n.value==="specs"]])])]),l("div",Si,[l("div",Ii,[l("div",Ti,[u[41]||(u[41]=l("div",{class:"absolute -top-12 -right-12 w-40 h-40 bg-white opacity-10 rounded-full blur-2xl"},null,-1)),u[42]||(u[42]=l("p",{class:"text-blue-100 font-bold uppercase tracking-widest text-sm mb-2"},"Asking Price ",-1)),l("div",_i,b(S.value),1),l("div",zi,[u[40]||(u[40]=l("span",{class:"text-xl"},"â±",-1)),l("span",null,"Listed on "+b(t.value.created_at||"Recently"),1)])]),l("div",ki,[t.value.seller?(w(),C("div",Oi,[l("div",Li,[l("div",$i,b(t.value.seller.name.charAt(0)),1),l("div",null,[l("p",Ei,b(t.value.seller.name),1),l("p",Mi,b(t.value.seller.is_dealer?"Verified Dealer":"Private Seller"),1)])]),l("div",Pi,[t.value.seller.email_verified?(w(),C("span",Gi,"â Email")):k("",!0),t.value.seller.phone_verified?(w(),C("span",Ai,"â Phone")):k("",!0)])])):k("",!0),u[43]||(u[43]=l("h4",{class:"font-black text-xl text-slate-900 mb-6"},"Direct Message",-1)),l("form",{onSubmit:Ae(y,["prevent"]),class:"space-y-4"},[l("div",Di,[E(l("input",{"onUpdate:modelValue":u[2]||(u[2]=_=>g.value.name=_),placeholder:"Full Name",class:"input-field"},null,512),[[B,g.value.name]])]),l("div",Fi,[E(l("input",{"onUpdate:modelValue":u[3]||(u[3]=_=>g.value.email=_),placeholder:"Email Address",type:"email",class:"input-field"},null,512),[[B,g.value.email]])]),l("div",Xi,[E(l("input",{"onUpdate:modelValue":u[4]||(u[4]=_=>g.value.phone=_),placeholder:"Phone Number",type:"tel",class:"input-field"},null,512),[[B,g.value.phone]])]),l("div",Bi,[E(l("textarea",{"onUpdate:modelValue":u[5]||(u[5]=_=>g.value.message=_),placeholder:"Hi, is this still available?",class:"input-field min-h-[120px] resize-none pt-4"},null,512),[[B,g.value.message]])]),l("button",{disabled:p.value,class:"w-full bg-slate-900 hover:bg-blue-600 text-white font-black py-4 rounded-2xl transition-all duration-300 hover:shadow-lg hover:-translate-y-1 mt-2 flex items-center justify-center gap-2"},[p.value?(w(),C("span",Ri,"Sending...")):(w(),C("span",Wi,"Send Message ð"))],8,Hi)],32)]),l("div",Yi,[m.value?(w(),C("button",{key:0,onClick:u[6]||(u[6]=_=>r.value=!0),class:"text-xs font-bold text-slate-400 hover:text-rose-500 transition-all flex items-center justify-center gap-2 mx-auto"},[...u[44]||(u[44]=[l("i",{class:"ri-flag-2-line"},null,-1),R(" Report this listing ",-1)])])):(w(),C("p",Ni," Please login to report this listing "))])])])]),l("div",Vi,[P(te,{position:"listing_above_similar"})]),P(_t,{listing:t.value},null,8,["listing"])])):k("",!0)]),r.value?(w(),C("div",Zi,[l("div",ji,[u[46]||(u[46]=l("h3",{class:"text-xl font-black text-slate-900 mb-4"}," Report Listing ",-1)),l("div",qi,[E(l("select",{"onUpdate:modelValue":u[7]||(u[7]=_=>d.value.reason=_),class:"input-field"},[...u[45]||(u[45]=[l("option",{value:""},"Select reason",-1),l("option",null,"Spam",-1),l("option",null,"Fake Listing",-1),l("option",null,"Incorrect Information",-1),l("option",null,"Sold Already",-1),l("option",null,"Other",-1)])],512),[[De,d.value.reason]]),E(l("textarea",{"onUpdate:modelValue":u[8]||(u[8]=_=>d.value.message=_),placeholder:"Additional details (optional)",class:"input-field min-h-[100px]"},null,512),[[B,d.value.message]]),l("div",Ui,[l("button",{onClick:u[9]||(u[9]=_=>r.value=!1),class:"flex-1 bg-slate-100 text-slate-600 py-3 rounded-xl font-bold"}," Cancel "),l("button",{onClick:h,disabled:a.value,class:"flex-1 bg-rose-600 hover:bg-rose-700 text-white py-3 rounded-xl font-black"},b(a.value?"Submitting...":"Submit Report"),9,Ki)])])])])):k("",!0)])}}}),es=Xe(Ji,[["__scopeId","data-v-c7b8fe2b"]]);export{es as default};
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.