PageSourceSearch

https://semianalysis.com/wp-content/plugins/easy-fancybox-pro/ligh…/build/min/frontend/index.js?ver=1790238119

js semianalysis.com collected 2026-09-24 08:35:25 UTC 38,989 bytes, 1 lines download raw bytes

1(()=>{"use strict";const e='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" id="link"><path fill="currentColor" d="M18.51 3.868a4 4 0 0 0-5.657 0L8.611 8.111a4 4 0 0 0 5.657 5.657l.502-.503s-.226-.635-.502-.911c-.276-.277-.912-.503-.912-.503l-.502.503a2 2 0 0 1-2.829-2.829l4.243-4.243a2 2 0 0 1 2.828 2.829l-.707.707s.49.318.798.627c.31.309.616.787.616.787l.707-.707a4 4 0 0 0 0-5.657Z"></path><path fill="currentColor" d="M16.39 10.232a4 4 0 0 0-5.658 0l-.541.542s.268.6.544.875c.276.276.87.539.87.539l.541-.542a2 2 0 1 1 2.829 2.829l-4.243 4.243a2 2 0 1 1-2.828-2.829l.779-.779s-.503-.359-.78-.635c-.275-.276-.635-.779-.635-.779l-.778.779a4 4 0 1 0 5.656 5.657l4.243-4.243a4 4 0 0 0 0-5.657Z"></path></svg>',t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="facebook"><path fill="currentColor" fill-rule="evenodd" d="M12 5.5H9v-2a1 1 0 0 1 1-1h1V0H9a3 3 0 0 0-3 3v2.5H4V8h2v8h3V8h2l1-2.5z" clip-rule="evenodd"></path></svg>',o='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 1668.56 1221.19" viewBox="0 0 1668.56 1221.19" id="twitter-x"><path d="M283.94,167.31l386.39,516.64L281.5,1104h87.51l340.42-367.76L984.48,1104h297.8L874.15,558.3l361.92-390.99h-87.51l-313.51,338.7l-253.31-338.7H283.94z M412.63,231.77h136.81l604.13,807.76h-136.81L412.63,231.77z" transform="translate(52.39 -25.059)"></path></svg>',n='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="pinterest"><path fill="currentColor" d="M8.717 0C4.332 0 2 2.81 2 5.874c0 1.421.794 3.193 2.065 3.755.193.087.298.05.341-.129.038-.136.205-.791.286-1.1a.283.283 0 0 0-.068-.278c-.422-.488-.757-1.377-.757-2.211 0-2.137 1.699-4.212 4.59-4.212 2.5 0 4.249 1.624 4.249 3.947 0 2.625-1.389 4.441-3.194 4.441-.999 0-1.743-.784-1.507-1.754.285-1.155.844-2.397.844-3.23 0-.747-.422-1.365-1.284-1.365-1.017 0-1.842 1.007-1.842 2.359 0 .859.304 1.439.304 1.439l-1.193 4.823c-.316 1.285.043 3.366.074 3.545.019.099.13.13.192.049.099-.13 1.315-1.865 1.656-3.119.124-.457.633-2.31.633-2.31.335.605 1.302 1.112 2.332 1.112 3.064 0 5.278-2.693 5.278-6.035C14.988 2.397 12.246 0 8.717 0"></path></svg>',a='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="linkedin"><path d="M0 5h3.578v11H0zM13.324 5.129c-.038-.012-.074-.025-.114-.036a2.32 2.32 0 0 0-.145-.028A3.207 3.207 0 0 0 12.423 5c-2.086 0-3.409 1.517-3.845 2.103V5H5v11h3.578v-6s2.704-3.766 3.845-1v7H16V8.577a3.568 3.568 0 0 0-2.676-3.448z"></path><circle cx="1.75" cy="1.75" r="1.75"></circle></svg>',i='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 72 72" viewBox="0 0 80 80" id="camera-lens"><path fill="currentColor" d="M52.9 1.7H14.1c-.6 0-1 .4-1 1v6.7c0 .6.4 1 1 1h38.8c.6 0 1-.4 1-1V2.7C53.9 2.1 53.5 1.7 52.9 1.7zM49.9 59.2v5.1c0 .6-.5 1-1 1H18.1c-.6 0-1-.4-1-1v-5.1H49.9zM53.9 42.3v6.6c0 2.2-1.8 4-4 4h0v4.3H17.1v-4.3h0c-2.2 0-4-1.8-4-4v-6.6H53.9zM51.9 17.4h-2v-5H17.1v5h-2c-1.1 0-2 .9-2 2v20.9h40.8V19.4C53.9 18.3 53 17.4 51.9 17.4zM20.1 35c0 .6-.4 1-1 1s-1-.4-1-1V22.7c0-.6.4-1 1-1s1 .4 1 1V35zM25.9 35c0 .6-.4 1-1 1s-1-.4-1-1V22.7c0-.6.4-1 1-1s1 .4 1 1V35zM31.6 35c0 .6-.4 1-1 1s-1-.4-1-1V22.7c0-.6.4-1 1-1s1 .4 1 1V35zM37.4 35c0 .6-.4 1-1 1s-1-.4-1-1V22.7c0-.6.4-1 1-1s1 .4 1 1V35zM43.1 35c0 .6-.4 1-1 1s-1-.4-1-1V22.7c0-.6.4-1 1-1s1 .4 1 1V35zM48.9 35c0 .6-.4 1-1 1s-1-.4-1-1V22.7c0-.6.4-1 1-1s1 .4 1 1V35z"></path></svg>';function s(e,t={}
1,o=!1){if(e.closest(".nofancybox")||e.closest(".nolightbox"))return;e.classList.add("fancybox");const n=Object.keys(t);n.length>0&&n.forEach((o=>e.setAttribute(o,t[o])));const a="img"===e.nodeName.toLowerCase(),i=e.getElementsByTagName("img").length>0;if((a||i)&&o){const t=a?e.getAttribute("src"):e.getAttribute("href");if(t){const o=t.substring(t.lastIndexOf("/")+1,t.lastIndexOf(".")).split("-").join("");e.setAttribute("data-slug",o)}}}function l(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function r(e){const t=e.hasAttribute("data-fancybox"),o=e.getAttribute("data-fancybox");return!t||!o}function c(e,t,o,n,a,i,s,l){const r=e?.getSlide()?.triggerEl,c="IMG"===r?.tagName;let d="",m="";const h="figcaption"!==s&&"alt"!==s,b=o?"<p class='fancybox-caption-exif'></p>":"",g=f(r,".elementor-gallery__container");let{imageId:y,imageTitle:p,imageAlt:x,imageUrl:v,imageFilename:w}=u(e,l);if(n&&(d=p,!d&&g&&(d=r?.querySelector(".elementor-gallery-item__title")?r?.querySelector(".elementor-gallery-item__title").innerHTML:""),d&&(d=`<h3 class="fancybox-title">${DOMPurify.sanitize(d)}</h3>`)),r&&i)if(h)m="<p class='fancybox-caption-text'></p>";else if("alt"===s)m=c&&r?.getAttribute("alt")?r.getAttribute("alt"):r?.querySelector("img")&&r?.querySelector("img")?.getAttribute("alt")?r.querySelector("img").getAttribute("alt"):r.getAttribute("alt")?r.getAttribute("alt"):"",m=`<p class='fancybox-caption-text'>${DOMPurify.sanitize(m)}</p>`;else if("figcaption"===s){let e=r?.parentElement?.querySelector("figcaption")?r.parentElement.querySelector("figcaption"):r.closest("figure")?r.closest("figure").querySelector("figcaption"):r.querySelector(".caption")?r.querySelector(".caption"):null;!e&&g&&(e=r?.querySelector(".elementor-gallery-item__description")?r?.querySelector(".elementor-gallery-item__description"):""),e&&(m=`<p class='fancybox-caption-text'>${DOMPurify.sanitize(e.innerHTML,{ALLOWED_TAGS:["#text"]})}</p>`)}return d+m+b}function d(e,t){const o=document.querySelector(".f-button.social.link"),n=document.querySelector(".f-button.social.facebook"),a=document.querySelector(".f-button.social.twitter"),i=document.querySelector(".f-button.social.pinterest"),s=document.querySelector(".f-button.social.linkedin"),{imageId:l,imageTitle:r,imageAlt:c,imageUrl:d,imageFilename:m}=u(e),f=t+"?p="+window.location.pathname+"&h="+window.location.hash.replace("#","")+"&i="+(l||m)+"&t="+encodeURIComponent(r),h=encodeURIComponent(f);o.addEventListener("click",(function(e){e.preventDefault(),async function(e){if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,t.style.position="absolute",t.style.left="-999999px",document.body.prepend(t),t.select();try{document.execCommand("copy")}catch(e){console.error(e)}finally{t.remove()}}}(window.location.href);const t=document.createElement("span"),o=document.createTextNode("Copied!");t.appendChild(o),t.classList.add("fancybox-copied"),t.classList.add("f-button"),document.querySelector(".f-button.social.link").appendChild(t),setTimeout((function(){document.querySelector(".fancybox-copied").remove()}),2e3)})),n.addEventListener("click",(function(){window.open("https://www.facebook.com/sharer/sharer.php?u="+h)})),a.addEventListener("click",(function(){window.open("http://twitter.com/share?url="+h)})),i.addEventListener("click",(function(){window.open("http://pinterest.com/pin/create/button/?url="+h)})),s.addEventListener("click",(function(){window.open("https://www.linkedin.com/sharing/share-offsite/?url="+h)}))}function u(e,t){const o=e?.getSlide()?.thumbEl?e?.getSlide()?.thumbEl:e?.getSlide()?.triggerEl,n=e?.getSlide()?.src?e?.getSlide()?.src:e?.getSlide()?.imageEl?.currentSrc?e?.getSlide()?.imageEl?.currentSrc:null;if(!o)return;let a=o.attributes["data-id"]?.nodeValue||null;if(!a){const e=o.attributes?.class?.nodeValue?o.attributes?.class?.nodeValue.split(" "):null;if(e&&e.length>0){const t=e.filter((e=>e.includes("wp-image-")));t.length>0&&(a=t[0].substring(t[0].lastIndexOf("-")+1))}}!a&&t&&(a=o.attributes["data-envira-item-id"]?.nodeValue||null);const i=o.attributes?.title?.nodeValue||null,s=o.attributes?.alt?.nodeValue||null,l=n.substring(n.lastIndexOf("/")+1,n.lastIndexOf(".")),r=n.substring(n.lastIndexOf("/")+1),c=l.split("-").join("");return{imageId:a,imageTitle:i||s||c,imageAlt:s,imageUrl:n,imageFilename:l,imageFilenameWithExtension:r}}function m(e,t,o,n,a,s,l,r,c,d,m,f,h,b){let g="",y="";const p=!!e?.caption?.innerHTML,x=document.querySelector(".fancybox__sidebar-content"),v=x?x.querySelector(".fancybox-caption-text"):p?e?.caption?.querySelector(".fancybox-caption-text"):e.getSlide()?.captionEl&&e.getSlide().captionEl.querySelector(".fancybox-caption-text"),w=x?x.querySelector(".fancybox-caption-exif"):p?e?.caption?.querySelector(".fancybox-caption-exif"):e.getSlide()?.captionEl&&e.getSlide().captionEl.querySelector(".fancybox-caption-exif"),S="figcaption"!==m&&"alt"!==m,{imageUrl:_,imageId:A,imageFilenameWithExtension:C}=u(e,h),L=location.hostname;if(!_.includes(L))return;const B=[{id:"camera",show:a,svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" id="camera"><g>
1<circle path fill="currentColor" cx="16" cy="17" r="5"></circle><path fill="currentColor" d="M25,8h-.76a1,1,0,0,1-.9-.55L23,6.76A5,5,0,0,0,18.53,4H13.47A5,5,0,0,0,9,6.76l-.34.69a1,1,0,0,1-.9.55H7a5,5,0,0,0-5,5V23a5,5,0,0,0,5,5H25a5,5,0,0,0,5-5V13A5,5,0,0,0,25,8ZM16,24a7,7,0,1,1,7-7A7,7,0,0,1,16,24Zm9-10a1,1,0,1,1,1-1A1,1,0,0,1,25,14Z"></path></g></svg>',metaName:"camera",exifName:"Model"},{id:"lens",show:s,svg:i,exifName:"LensModel"},{id:"focal",show:l,svg:i,metaName:"focal_length",exifName:"FocalLength"},{id:"aperture",show:r,svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" id="aperture"><path fill="currentColor" d="M57.28 19.96L42.31 45.88H56.3A28.17939 28.17939 0 0057.28 19.96zM32.14 60A28.00011 28.00011 0 0055.05 47.88H25.14zM7.83 46.12A28.03368 28.03368 0 0029.78 59.9L14.83 34z"></path><polygon fill="currentColor" points="15.98 32 23.99 45.88 40.01 45.88 48.02 32 40.01 18.12 23.99 18.12 15.98 32"></polygon><path fill="currentColor" d="M56.17 17.88A28.03375 28.03375 0 0034.22 4.1L49.17 30zM31.86 4A28 28 0 008.95 16.12H38.86zM7.7 18.12a27.94085 27.94085 0 00-.98 25.92L21.69 18.12z"></path></svg>',metaName:"aperture",exifName:"FNumber"},{id:"exposure",show:c,svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23" id="shutter-speed"><path fill="none" d="M0 0h24v24H0V0z"></path><path fill="currentColor" d="M10 3h4c.55 0 1-.45 1-1s-.45-1-1-1h-4c-.55 0-1 .45-1 1s.45 1 1 1zm9.03 4.39l.75-.75c.38-.38.39-1.01 0-1.4l-.01-.01c-.39-.39-1.01-.38-1.4 0l-.75.75C16.07 4.74 14.12 4 12 4c-4.8 0-8.88 3.96-9 8.76C2.87 17.84 6.94 22 12 22c4.98 0 9-4.03 9-9 0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm-1.19-5h-3.7c-.38 0-.62.4-.45.74.56 1.12 1.44 2.01 2.57 2.57.23.11.52.02.65-.21l1.37-2.35c.19-.33-.05-.75-.44-.75zm3.92-7.35c-.23-.12-.52-.02-.65.2l-1.38 2.39c-.2.34.04.76.43.76h3.76c.38 0 .62-.4.45-.73-.58-1.13-1.49-2.04-2.61-2.62zm-.85 7.05c-.19-.34-.68-.35-.87-.01l-2.04 3.52c-.18.32.02.72.39.75 1.34.14 2.69-.18 3.83-.89.22-.14.28-.43.16-.66l-1.47-2.71zm-3.57-1.47L7.93 9.57c-.2-.3-.64-.3-.84 0-.81 1.16-1.17 2.57-1.05 3.98.02.26.24.45.5.45h3.35c.39 0 .63-.44.42-.77zm3.66-.49l2.02 3.74c.18.33.64.35.86.05.86-1.18 1.24-2.62 1.12-4.08-.02-.26-.25-.45-.5-.45h-3.05c-.39 0-.63.4-.45.74zm-3.8-1.57c.2.31.66.3.85-.02l1.94-3.35c.19-.32-.03-.72-.4-.76-1.36-.12-2.73.21-3.88.97-.22.15-.27.46-.13.68l1.62 2.48z"></path></svg>',exifName:"ExposureTime"},{id:"iso",show:d,svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="iso"><path fill="currentColor" d="M18.25 9.5h-1.5c-.14 0-.25.11-.25.25v4.5c0 .14.11.25.25.25h1.5c.14 0 .25-.11.25-.25v-4.5c0-.14-.11-.25-.25-.25z"></path><path fill="currentColor" d="M21.25 3H2.75C1.23 3 0 4.23 0 5.75v12.5C0 19.77 1.23 21 2.75 21h18.5c1.52 0 2.75-1.23 2.75-2.75V5.75C24 4.23 22.77 3 21.25 3zm-15 12.25c0 .41-.34.75-.75.75s-.75-.34-.75-.75v-6.5c0-.41.34-.75.75-.75s.75.34.75.75v6.5zm4.25-4c1.47 0 2.5.92 2.5 2.25a2.5 2.5 0 0 1-2.5 2.5H8.75c-.41 0-.75-.34-.75-.75s.34-.75.75-.75h1.75c.55 0 1-.45 1-1 0-.7-.77-.75-1-.75-1.47 0-2.5-.92-2.5-2.25A2.5 2.5 0 0 1 10.5 8h1.75c.41 0 .75.34.75.75s-.34.75-.75.75H10.5c-.55 0-1 .45-1 1 0 .7.77.75 1 .75zm9.5 3c0 .96-.79 1.75-1.75 1.75h-1.5c-.96 0-1.75-.79-1.75-1.75v-4.5c0-.96.79-1.75 1.75-1.75h1.5c.96 0 1.75.79 1.75 1.75v4.5z"></path></svg>',metaName:"iso",exifName:"ISOSpeedRatings"}].filter((e=>!0===e.show));b?fetch(_).then((e=>e.arrayBuffer())).then((e=>{const t=ExifReader.load(e);B.forEach(((e,o)=>{if(t.hasOwnProperty(e.exifName)){const a=`<span class="exif-data ${n&&"with-icons"}"></span>`,i=n?`<span class="exif-icons ${e.id}">${e.svg}</span>`:"",s=DOMPurify.sanitize(t[e.exifName].description),l=o===B.length-1;g+=`${a}${i} ${s} ${n||l?"":"|"}</span>`}})),g&&w&&(w.innerHTML=g)})):f&&fetch(`${f}/?id=${A}&filename=${C}`).then((e=>e.json())).then((e=>{if(S){switch(m){case"mediaAlt":y=e.mediaAlt;break;case"mediaCaption":default:y=e.mediaCaption;break;case"mediaDescription":y=e.mediaDescription;break;case"exifDescription":y=e.ImageDescription;break;case"iptcCaption":y=e.caption}y&&v&&(v.innerHTML=DOMPurify.sanitize(y))}
1o&&!b&&(B.forEach(((t,o)=>{if(e.hasOwnProperty(t.exifName)||e.hasOwnProperty(t.metaName)){const a="0"!==e[t.metaName]&&""!==e[t.metaName];if(a){const i=`<span class="exif-data ${n&&"with-icons"}"></span>`,s=n?`<span class="exif-icons ${t.id}">${t.svg}</span>`:"";let l=e.hasOwnProperty(t.metaName)?DOMPurify.sanitize(e[t.metaName]):DOMPurify.sanitize(e[t.exifName]);"focal_length"===t.metaName&&(l+="mm"),"aperture"===t.metaName&&(l="f"+l),"iso"===t.metaName&&(l+=" ISO");const r=o===B.length-1;g+=`${i}${s} ${l} ${n||r&&a?"":"|"}</span>`}}})),g&&w&&(w.innerHTML=g))})).catch((e=>{console.error(e)}))}function f(e,t){return!!e&&(!(!e?.parentElement||!e.parentElement.matches(t))||f(e.parentElement,t))}function h(e=!0){return{main:`\n            <div class="fancybox__container${e?" has-sidebar":""}" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n                <div class="fancybox__backdrop"></div>\n                <div class="fancybox__cols">\n                    <div class="fancybox__col">\n                        <div class="fancybox__carousel"></div>\n                        <div class="fancybox__footer"></div>\n                    </div>\n                    <div class="fancybox__col">\n                        <div class="fancybox__data">\n                            <div class="fancybox__sidebar-preview"></div>\n\t\t\t\t\t\t\t<div class="fancybox__mobile-nav">\n                                <button class="f-button" data-fancybox-prev>\n                                    <svg width="24" height="24" viewBox="0 0 24 24">\n                                        <path d="M15 4l-8 8 8 8" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>\n                                    </svg>\n                                </button>\n                                <button class="f-button" data-fancybox-next>\n                                    <svg width="24" height="24" viewBox="0 0 24 24">\n                                        <path d="M9 4l8 8-8 8" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>\n                                    </svg>\n                                </button>\n                            </div>\n                            <div class="fancybox__sidebar-content">\n                                <div class="fancybox__sidebar-social"></div>\n                            </div>\n                            <div class="fancybox__sidebar-comments"></div>\n                        </div>\n                    </div>\n                </div>\n            </div>`}}class b{constructor(e){this.globalSettings=this.normalizeSettings(e)}normalizeSettings(e){var t,o,n,a,i,s,l,r,c;const d=Boolean(e.showCamera),u=Boolean(e.showLens),m=Boolean(e.showFocalLength),f=Boolean(e.showAperture),h=Boolean(e.showExposure),b=Boolean(e.showIso);return{thumbnails:Boolean(e.thumbnails),thumbnailsOnStart:Boolean(e.thumbnailsOnStart),thumbnailStyle:null!==(t=e.thumbnailStyle)&&void 0!==t?t:"classic",thumbnailButton:Boolean(e.thumbnailButton),showCaption:Boolean(e.showCaption),showTitle:Boolean(e.showTitle),showAlt:Boolean(e.showAlt),captionSource:null!==(o=e.captionSource)&&void 0!==o?o:"title",showExif:Boolean(e.showExif)&&(d||u||m||f||h||b),showCamera:d,showLens:u,showFocalLength:m,showAperture:f,showExposure:h,showIso:b,showExifIcons:Boolean(e.showExifIcons),socialButton:Boolean(e.socialButton),zoomButton:Boolean(e.zoomButton),slideshowButton:Boolean(e.slideshowButton),fullscreenButton:Boolean(e.fullscreenButton),downloadButton:Boolean(e.downloadButton),imageNumbers:Boolean(e.imageNumbers),useSidebar:Boolean(e.useSidebar),sidebarStartOpen:Boolean(e.sidebarStartOpen),socialInSidebar:Boolean(e.socialInSidebar),sidebarColorTheme:null!==(n=e.sidebarColorTheme)&&void 0!==n?n:"light",enableComments:Boolean(e.enableComments),toolbarPosition:null!==(a=e.toolbarPosition)&&void 0!==a?a:"center",transitionStyle:null!==(i=e.transitionStyle)&&void 0!==i?i:"slide",colorTheme:null!==(s=e.colorTheme)&&void 0!==s?s:"light",colorThemeModal:null!==(l=e.colorThemeModal)&&void 0!==l?l:"light",useCompactStyle:Boolean(e.useCompactStyle),modalAutosize:Boolean(e.modalAutosize),modalWidth:null!==(r=e.modalWidth)&&void 0!==r?r:null,modalHeight:null!==(c=e.modalHeight)&&void 0!==c?c:null,slideshowSpeed:void 0!==e.slideshowSpeed?parseInt(e.slideshowSpeed,10):3e3,iframePadding:void 0!==e.iframePadding?parseInt(e.iframePadding,10):0,iframeBorderWidth:void 0!==e.iframeBorderWidth?parseInt(e.iframeBorderWidth,10):0,iframeBorderColor:e.iframeBorderColor||"rgba(0,0,0,0)"}}findGallerySettings(e){const t=document.querySelector(`[data-firelight-target="${e}"]`);if(!t||"1"!==t.getAttribute("data-firelight-enabled"))return null;const o={};return Array.from(t.attributes).filter((e=>
1e.name.startsWith("data-firelight-"))).forEach((e=>{const t=e.name.replace("data-firelight-","").replace(/-([a-z])/g,((e,t)=>t.toUpperCase()));o[t]=e.value})),this.normalizeSettings(o)}getSettingsForGallery(e){const t=this.findGallerySettings(e);return t?{...this.globalSettings,...t}:this.globalSettings}}const g=window.wp.element,y=window.ReactJSXRuntime,p=({comment:e})=>{return(0,y.jsxs)("div",{className:"fancybox__comment-item",children:[(0,y.jsx)("div",{className:"fancybox__comment-meta",children:(0,y.jsxs)("div",{className:"fancybox__comment-author",children:[(0,y.jsx)("div",{className:"fancybox__comment-avatar",children:(0,y.jsx)("img",{src:e.author.avatar,alt:e.author.name})}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("span",{className:"fancybox__comment-name",children:[e.author.name,e.author.is_admin&&(0,y.jsx)("span",{className:"fancybox__admin-badge",children:"Admin"})]}),(0,y.jsx)("span",{className:"fancybox__comment-date",children:(t=e.date,new Date(t).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}))})]})]})}),(0,y.jsx)("div",{className:"fancybox__comment-content",dangerouslySetInnerHTML:{__html:e.content}})]});var t},x=({comments:e,isLoadingComments:t,commentsError:o})=>(0,y.jsxs)("div",{className:"fancybox__comments-list",children:[(0,y.jsxs)("h4",{children:[e.length>0?`${e.length} Comments`:"No Comments",t&&(0,y.jsx)("span",{className:"fancybox__comments-loading",children:" (Loading...)"})]}),o&&(0,y.jsx)("div",{className:"fancybox__comments-error",children:o}),e.length>0?e.map((e=>(0,y.jsx)(p,{comment:e},e.id))):!t&&!o&&(0,y.jsx)("p",{className:"fancybox__no-comments",children:"No comments yet. Be the first to comment!"})]}),v=({isLoggedIn:e,currentUser:t,comment:o,setComment:n,authorName:a,setAuthorName:i,authorEmail:s,setAuthorEmail:l,isSubmitting:r,submitStatus:c,errorMessage:d,handleSubmit:u})=>(0,y.jsxs)("div",{className:"fancybox__comment-form",children:[(0,y.jsx)("h4",{children:"Leave a Comment"}),"success"===c&&(0,y.jsx)("div",{className:"fancybox__comment-success",children:"Comment submitted successfully!"}),"error"===c&&(0,y.jsx)("div",{className:"fancybox__comment-error",children:d}),(0,y.jsxs)("form",{onSubmit:u,className:"fancybox__comment-form-fields",children:[(0,y.jsx)("textarea",{className:"fancybox__comment-textarea",placeholder:"Enter your comment here...",rows:"3",value:o,onChange:e=>n(e.target.value),disabled:r}),!e&&(0,y.jsxs)("div",{className:"fancybox__comment-user-info",children:[(0,y.jsx)("input",{type:"text",className:"fancybox__comment-name-input",placeholder:"Your Name",value:a,onChange:e=>i(e.target.value),disabled:r}),(0,y.jsx)("input",{type:"email",className:"fancybox__comment-email",placeholder:"Your Email",value:s,onChange:e=>l(e.target.value),disabled:r})]}),e&&t&&(0,y.jsxs)("div",{className:"fancybox__logged-in-info",children:["Commenting as: ",(0,y.jsx)("strong",{children:t.displayName})]}),(0,y.jsx)("button",{type:"submit",className:"fancybox__comment-submit",disabled:r,children:r?"Submitting...":"Submit Comment"})]})]});function w({imageId:e,isLoggedIn:t,isAdmin:o,commentsEnabled:n,requireLogin:a,currentUser:i}){const[s,l]=(0,g.useState)(""),[r,c]=(0,g.useState)(""),[d,u]=(0,g.useState)(""),[m,f]=(0,g.useState)(!1),[h,b]=(0,g.useState)(null),[p,w]=(0,g.useState)(""),[S,_]=(0,g.useState)([]),[A,C]=(0,g.useState)(!1),[L,B]=(0,g.useState)(null);(0,g.useEffect)((()=>{E()}),[e]);const E=async()=>{if(e){C(!0),B(null);try{const t=await fetch(`/wp-json/firelight/v1/comments/${e}`,{method:"GET",credentials:"same-origin"});if(!t.ok)throw new Error(`Error: ${t.status}`);const o=await t.json();_(o.comments||[])}catch(e){console.error("Error fetching comments:",e),B("Failed to load comments. Please try again later.")}finally{C(!1)}}};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h3",{children:"Comments"}),(0,y.jsx)(x,{comments:S,isLoadingComments:A,commentsError:L}),(0,y.jsx)(v,{isLoggedIn:t,currentUser:i,comment:s,setComment:l,authorName:r,setAuthorName:c,authorEmail:d,setAuthorEmail:u,isSubmitting:m,submitStatus:h,errorMessage:p,handleSubmit:async o=>{if(o.preventDefault(),!s.trim())return b("error"),void w("Please enter a comment.");if(!t){if(!r.trim())return b("error"),void w("Please enter your name.");if(!d.trim()||!d.includes("@"))return b("error"),void w("Please enter a valid email address.")}const n={comment:s,post_id:e,image_id:e};t||(n.author_name=r,n.author_email=d);try{f(!0),b(null);const e={"Content-Type":"application/json"};t&&window.settings&&window.settings.commentNonce&&(e["X-WP-Nonce"]=window.settings.commentNonce);const o=await fetch("/wp-json/firelight/v1/comments",{method:"POST",headers:e,body:JSON.stringify(n),credentials:"same-origin"});if(!o.ok){const e=(await o.json().catch((()=>({})))).message||`Error: ${o.status}`;throw new Error(e)}const a=await o.json();l(""),c(""),u(""),b("success"),a.comment?_((e=>[a.comment,...e])):E()}catch(e){console.error("Error submitting comment:",e),b("error"),w(e.message||"Failed to submit c
1omment. Please try again.")}finally{f(!1)}}})]})}wp.domReady((function(){var i,f,p,x,v,S,_,A,C,L,B,E,M,N,k;const q=Boolean(settings.autodetectImage),z=null!==(i=Boolean(settings.autodetectInline))&&void 0!==i&&i,j=null!==(f=Boolean(settings.autodetectPDF))&&void 0!==f&&f,T=null!==(p=Boolean(settings.autodetectSWF))&&void 0!==p&&p,V=null!==(x=Boolean(settings.autodetectSVG))&&void 0!==x&&x,$=null!==(v=Boolean(settings.autodetectVideo))&&void 0!==v&&v,I=null!==(S=Boolean(settings.autodetectVideopress))&&void 0!==S&&S,H=null!==(_=Boolean(settings.autodetectYoutube))&&void 0!==_&&_,P=null!==(A=Boolean(settings.autodetectVimeo))&&void 0!==A&&A,O=null!==(C=Boolean(settings.autodetectDailymotion))&&void 0!==C&&C,F=null!==(L=Boolean(settings.autodetectGoogleMaps))&&void 0!==L&&L,D=null===(B=Boolean(settings.autodetectNextgen))||void 0===B||B,W=null===(E=Boolean(settings.autodetectEnvira))||void 0===E||E,U=null===(M=Boolean(settings.autodetectModula))||void 0===M||M,G=null===(N=Boolean(settings.autodetectMeow))||void 0===N||N,Z=null===(k=Boolean(settings.autodetectElementor))||void 0===k||k,R=Boolean(settings.useFilenameInUrl),Y=Boolean(settings.applyWithoutLinks),J=settings.groupImages,X=settings.customGroupSelectors,K=(Boolean(settings.useCompactStyle),settings.restUrl),Q=settings.exifUrl,ee=Boolean(settings.isUserLoggedIn),te=settings.currentUser,oe=Boolean(settings.isAdmin),ne=Boolean(settings.commentsEnabled),ae=Boolean(settings.requireLogin);function ie(){const e=new b(settings),t=settings.selectorsToExclude.toString()+",.fancybox__toolbar a";document.querySelectorAll(t).forEach((e=>e.classList.add("nofancybox"))),[{id:"images",enabled:q,fancyboxAttribute:"data-fancybox",selectors:se({applyWithoutLinks:Y,autodetectSVG:V,autodetectMeow:G}),sections:[],options:(t=e.globalSettings)=>de(t),groupable:!0},{id:"elementor",enabled:Z,fancyboxAttribute:"data-fancybox",selectors:le({applyWithoutLinks:Y}),sections:[{selector:".elementor-widget-image-gallery",items:".gallery-item a",prefix:"elementor-gallery"},{selector:".elementor-widget-image-carousel",items:".swiper-slide a",prefix:"elementor-carousel"},{selector:".elementor-gallery__container",items:"a.elementor-gallery-item",prefix:"elementor-pro-gallery"}],options:(t=e.globalSettings)=>de(t),groupable:!0},{id:"video",enabled:T||$||I||H||P||O,fancyboxAttribute:"data-fancybox-video",selectors:re({autodetectSWF:T,autodetectVideo:$,autodetectVideopress:I,autodetectYoutube:H,autodetectVimeo:P,autodetectDailymotion:O}),sections:[{selector:".firelight-video-gallery",items:re({autodetectSWF:T,autodetectVideo:$,autodetectVideopress:I,autodetectYoutube:H,autodetectVimeo:P,autodetectDailymotion:O}),prefix:"video-gallery"}],options:(t=e.globalSettings)=>({...ce(t),mainClass:"non-image video"}),groupable:!1},{id:"inline",enabled:z,fancyboxAttribute:"data-fancybox-inline",selectors:"a.fancybox-inline:not(.nofancybox),area.fancybox-inline:not(.nofancybox),.fancybox-inline>a:not(.nofancybox)",sections:[],options:(t=e.globalSettings)=>({...ce(t),mainClass:"non-image inline"}),groupable:!1},{id:"pdf",enabled:j,fancyboxAttribute:"data-fancybox-pdf",selectors:'a[href*=".pdf" i]:not(.nofancybox),area[href*=".pdf" i]:not(.nofancybox)',sections:[],options:(t=e.globalSettings)=>({...ce(t),mainClass:"non-image pdf"}),groupable:!1},{id:"map",enabled:F,fancyboxAttribute:"data-fancybox-map",selectors:'a[href*="google.com/maps" i]:not(.nofancybox),area[href*="google.com/maps" i]:not(.nofancybox)',sections:[],options:(t=e.globalSettings)=>({...ce(t),mainClass:"non-image map"}),groupable:!1},{id:"iframe",enabled:!0,fancyboxAttribute:"data-fancybox-iframe",selectors:"a.fancybox-iframe:not(.nofancybox),.fancybox-iframe>a:not(.nofancybox)",additionalAttributes:{"data-type":"iframe"},sections:[],options:(t=e.globalSettings)=>({...ce(t),mainClass:"non-image iframe"}),groupable:!1}].forEach((t=>{if(!t.enabled)return;const o=(n=t.selectors)?document.querySelectorAll(n):[];var n;o.forEach((e=>{r(e)&&s(e,{[t.fancyboxAttribute]:"",...t.additionalAttributes||{}},R)})),document.querySelectorAll("[data-firelight-target]").forEach((o=>{const n=o.getAttribute("data-firelight-target"),a=document.getElementById(n);if(a&&"1"===o.getAttribute("data-firelight-enabled")){const o=`#${n} [${t.fancyboxAttribute}]`,i=a.querySelectorAll(`[${t.fancyboxAttribute}
1]:not(.bound)`);if(i.length){i.forEach((e=>e.classList.add("bound")));const a=e.getSettingsForGallery(n);Fancybox.bind(o,t.options(a))}}})),t.sections?.forEach((e=>{document.querySelectorAll(`${e.selector}:not(.nofancybox)`).forEach(((o,n)=>{o.querySelectorAll(`${e.items}:not(.nofancybox)`).forEach((o=>{r(o)&&s(o,{[t.attribute]:`${e.prefix}-${n}`},R)}))}))})),t.groupable&&function(e,t,o,n,a,i,s,l){if("all"===o&&e.forEach((e=>{e.closest(".nofancybox")||e.closest(".nolightbox")||r(e)&&(e.setAttribute("data-fancybox","gallery-all"),e.classList.add("fancybox"))})),"default"===o||"single"===o){let e="article, div.hentry, .gallery,.wp-block-gallery,.tiled-gallery,.wp-block-jetpack-tiled-gallery";document.querySelectorAll(e).forEach(((e,o)=>{e.querySelectorAll(t).forEach((e=>{e.closest(".nofancybox")||e.closest(".nolightbox")||e.setAttribute("data-fancybox","gallery-"+o)}))}))}if("single"===o&&Array.from(document.querySelectorAll(t)).filter((e=>{const t=e.closest(".nofancybox")||e.closest(".nolightbox"),o=e.classList.contains("fancybox"),n=e.getAttribute("data-fancybox")&&e.getAttribute("data-fancybox").includes("gallery");return o&&r(e)&&!n&&!t})).forEach((e=>{e.setAttribute("data-fancybox","gallery-single-images")})),"custom"===o&&n&&document.querySelectorAll(n).forEach(((e,o)=>{e.querySelectorAll(t).forEach((e=>
1{e.closest(".nofancybox")||e.closest(".nolightbox")||e.setAttribute("data-fancybox","gallery-"+o)}))})),a){const e=".ngg-galleryoverview, .ngg-imagebrowser, .nextgen_pro_blog_gallery, .nextgen_pro_film, .nextgen_pro_horizontal_filmstrip, .ngg-pro-masonry-wrapper, .ngg-pro-mosaic-container, .nextgen_pro_sidescroll, .nextgen_pro_slideshow, .nextgen_pro_thumbnail_grid, .tiled-gallery";document.querySelectorAll(e).forEach(((e,o)=>{e.querySelectorAll(t).forEach((e=>{e.closest(".nofancybox")||e.closest(".nolightbox")||(e.setAttribute("data-fancybox","nextgen-gallery-"+o),e.classList.add("ngg-fancybox"))}))}))}if(s){const e=".modula-gallery";document.querySelectorAll(e).forEach(((e,o)=>{e.querySelectorAll(t).forEach((e=>{e.closest(".nofancybox")||e.closest(".nolightbox")||e.setAttribute("data-fancybox","modula-gallery-"+o)}))}))}if(l){const e=".mgl-gallery-container";document.querySelectorAll(e).forEach(((e,o)=>{e.querySelectorAll(t).forEach((e=>{e.closest(".nofancybox")||e.closest(".nolightbox")||e.setAttribute("data-fancybox","meow-gallery-"+o)}))}))}if(i){const e=".envira-gallery-wrap";document.querySelectorAll(e).forEach(((e,o)=>{e.querySelectorAll(t).forEach((e=>
1{e.closest(".nofancybox")||e.closest(".nolightbox")||e.setAttribute("data-fancybox","envira-gallery-"+o)}))}))}}(o,t.selectors,J,X,D,W,U,G),Fancybox.bind(`[${t.fancyboxAttribute}]:not(.bound)`,t.options())}))}function se({applyWithoutLinks:e,autodetectSVG:t,autodetectMeow:o}){let n='a[href*=".jpg" i]:not(.nofancybox,.nofancybox a),area[href*=".jpg" i]:not(.nofancybox),a[href*=".jpeg" i]:not(.nofancybox,.nofancybox a),area[href*=".jpeg" i]:not(.nofancybox),a[href*=".png" i]:not(.nofancybox,.nofancybox a),area[href*=".png" i]:not(.nofancybox),a[href*=".webp" i]:not(.nofancybox,.nofancybox a),area[href*=".webp" i]:not(.nofancybox)';return e&&(n+=",.wp-block-image:not(.nofancybox,.nofancybox .wp-block-image) > img",o&&(n+=",.mgl-gallery-container:not(.nofancybox,.nolightbox) img")),t&&(n+=',a[href*=".svg" i],area[href*=".svg" i]'),n}function le({applyWithoutLinks:e}){let t=".elementor-widget-image a:not(.nofancybox)";return e&&(t+=",.elementor-widget-image:not(:has(a)) img:not(.nofancybox)"),t}function re({autodetectSWF:e,autodetectVideo:t,autodetectVideopress:o,autodetectYoutube:n,autodetectVimeo:a,autodetectDailymotion:i}){return[e?'a[href*=".swf" i]:not(.nofancybox),area[href*=".swf" i]:not(.nofancybox)':null,t?'a[href*=".mp4" i]:not(.nofancybox),area[href*=".mp4" i]:not(.nofancybox),a[href*=".mov" i]:not(.nofancybox),area[href*=".mov" i]:not(.nofancybox),a[href*=".avi" i]:not(.nofancybox),area[href*=".avi" i]:not(.nofancybox),a[href*=".flv" i]:not(.nofancybox),area[href*=".flv" i]:not(.nofancybox),a[href*=".mkv" i]:not(.nofancybox),area[href*=".mkv" i]:not(.nofancybox),a[href*=".wmv" i]:not(.nofancybox),area[href*=".wmv" i]:not(.nofancybox),a[href*=".avchd" i]:not(.nofancybox),area[href*=".avchd" i]:not(.nofancybox),a[href*=".webm" i]:not(.nofancybox),area[href*=".webm" i]:not(.nofancybox)':null,o?'a[href*="video.wordpress.com/v/"]:not(.nofancybox),area[href*="video.wordpress.com/v/"]:not(.nofancybox),a[href*="videopress.com/v/"]:not(.nofancybox),area[href*="videopress.com/v/"]:not(.nofancybox)':null,n?'a[href*="youtu.be/" i]:not(.nofancybox),area[href*="youtu.be/" i]:not(.nofancybox),a[href*="youtube.com/" i]:not(.nofancybox),area[href*="youtube.com/" i]:not(.nofancybox)':null,a?'a[href*="vimeo.com/" i]:not(.nofancybox),area[href*="vimeo.com/" i]:not(.nofancybox)':null,i?'a[href*="dailymotion.com/" i]:not(.nofancybox),area[href*="dailymotion.com/" i]:not(.nofancybox)':null].filter(Boolean).join(",")}function ce(e){return{mainClass:"non-image",autoFocus:!1,compact:!!e.useCompactStyle||l(),on:{"Carousel.ready Carousel.change":t=>{"light"===e.colorThemeModal?t.container.classList.add("is-light-theme"):t.container.classList.remove("is-light-theme");const o=t.container.classList.contains("pdf"),n=t.container.classList.contains("map"),a=t.container.classList.contains("iframe"),i=t.container.classList.contains("inline");if(a||i){const o=t.container.querySelector(".fancybox__content");o&&(o.style.padding=`${e.iframePadding}px`,o.style.border=`${e.iframeBorderWidth}px solid ${e.iframeBorderColor}`)}if(o||n)if(e.modalAutosize)t.container.classList.remove("has-custom-size");else{t.container.classList.add("has-custom-size");const o=t.container.querySelector(".fancybox__carousel");o&&(o.style.setProperty("max-width",e.modalWidth,"important"),o.style.setProperty("max-height",e.modalHeight,"important"),o.style.setProperty("width",e.modalWidth,"important"),o.style.setProperty("height",e.modalHeight,"important"))}}}}}function de(i){const s=[...i.useSidebar?["sidebar"]:[],...i.socialButton&&!i.socialInSidebar?["social"]:[],...i.downloadButton?["download"]:[],...i.zoomButton?["iterateZoom"]:[],...i.slideshowButton?["slideshow"]:[],...i.fullscreenButton?["fullscreen"]:[],...i.thumbnailButton?["thumbs"]:[],"close"],r=[...i.imageNumbers?["infobar"]:[]],f=[..."left"===i.toolbarPosition?s.filter((e=>"close"!==e)):[],..."right"===i.toolbarPosition?r:[]],b=[..."center"===i.toolbarPosition?r:[],..."center"===i.toolbarPosition?s:[]],p=[..."right"===i.toolbarPosition?s:[],..."left"===i.toolbarPosition?r:[],..."left"===i.toolbarPosition?["close"]:[]],x={Carousel:{transition:i.transitionStyle},Slideshow:i.slideshowSpeed?{timeout:i.slideshowSpeed}:void 0,Toolbar:{items:{social:i.socialButton&&!i.socialInSidebar?{tpl:'<a class="f-button social share" href="#"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" id="share">
1<path fill="currentColor" d="M6.54 55.08a1.91 1.91 0 0 1-.62-.1 2 2 0 0 1-1.38-2c0-.3 2.06-29.34 31.18-31.62V10.92a2 2 0 0 1 3.43-1.4l19.74 20.16a2 2 0 0 1 0 2.8L39.15 52.64a2 2 0 0 1-3.43-1.4V41c-19.44.74-27.41 13-27.49 13.15a2 2 0 0 1-1.69.93Zm33.18-39.26v7.41a2 2 0 0 1-1.93 2c-18.84.69-25.58 13.24-28 21.31 5-4.32 13.91-9.6 27.81-9.6h.09a2 2 0 0 1 2 2v7.41l15-15.26Z"></path></svg></a>',click:i=>{const s=i?.instance,l=document.querySelector(".f-button.social.share"),r=document.querySelector(".fancybox-social-icons");if(r)r.remove();else{const i=`\n\t\t\t\t\t\t\t\t\t<div class="fancybox-social-icons">\n\t\t\t\t\t\t\t\t\t\t<a class="f-button social link" href="#">${e}</a>\n\t\t\t\t\t\t\t\t\t\t<a class="f-button social facebook" href="#">${t}</a>\n\t\t\t\t\t\t\t\t\t\t<a class="f-button social twitter" href="#">${o}</a>\n\t\t\t\t\t\t\t\t\t\t<a class="f-button social pinterest" href="#">${n}</a>\n\t\t\t\t\t\t\t\t\t\t<a class="f-button social linkedin" href="#">${a}</a>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t`;l.insertAdjacentHTML("beforebegin",i),d(s,K)}}}:null,sidebar:i.useSidebar?{tpl:'<button class="f-button sidebar" title="Toggle Sidebar"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5Z" stroke="currentColor" stroke-width="1.5"/>\n    <path d="M9 3V21" stroke="currentColor" stroke-width="1.5"/>\n</svg></button>',click:e=>{e.instance.container.classList.toggle("has-sidebar"),"dark"===i.sidebarColorTheme&&e.instance.container.classList.add("sidebar-dark")}}:null},display:{left:f,middle:b,right:p}},Thumbs:!!i.thumbnails&&{type:i.thumbnailStyle,showOnStart:i.thumbnailsOnStart},caption:function(e,t){if(i.useSidebar)return null;const o=e.getSlide()?.triggerEl?.classList,n=o?"."+[...o]:null,a=n?document.querySelector(n).closest(".wp-block-gallery"):null,s=!!a&&(a.classList.contains("firelight-exif")||a.classList.contains("fancybox-exif"));return c(e,0,i.showExif||s,i.showTitle,i.showAlt,i.showCaption,i.captionSource,W)},compact:!!i.useCompactStyle||l(),on:{"Carousel.ready Carousel.change":(s,l)=>{const r=s.getSlide()?.triggerEl?.classList,f=r?"."+[...r]:null,h=f?document.querySelector(f).closest(".wp-block-gallery"):null,b=!!h&&(h.classList.contains("firelight-exif")||h.classList.contains("fancybox-exif")),p=r?.contains("ngg-fancybox");if("light"===i.colorTheme?s.container.classList.add("is-light-theme"):s.container.classList.remove("is-light-theme"),"custom"===i.colorTheme?s.container.classList.add("custom-theme"):s.container.classList.remove("custom-theme"),"custom"===i.sidebarColorTheme?s.container.classList.add("custom-sidebar-theme"):s.container.classList.remove("custom-sidebar-theme"),i.useSidebar){const l=document.querySelector(".fancybox__data"),r=document.querySelector(".fancybox__sidebar-preview"),f=document.querySelector(".fancybox__sidebar-content");if(r){const e=s.getSlide();r.innerHTML=`<img src="${e.src}" alt="">`}if(f){const r=c(s,0,!1,i.showTitle,i.showAlt,i.showCaption,i.captionSource,W);if(f.innerHTML=r,i.socialButton&&i.socialInSidebar){const i=document.createElement("div");i.className="fancybox__sidebar-social",i.innerHTML=`\n\t\t\t\t\t\t\t\t\t<button class="f-button social link">${e}</button>\n\t\t\t\t\t\t\t\t\t<button class="f-button social facebook">${t}</button>\n\t\t\t\t\t\t\t\t\t<button class="f-button social twitter">${o}</button>\n\t\t\t\t\t\t\t\t\t<button class="f-button social pinterest">${n}</button>\n\t\t\t\t\t\t\t\t\t<button class="f-button social linkedin">${a}</button>\n\t\t\t\t\t\t\t\t`,f.insertBefore(i,f.firstChild),d(s,K)}if(i.enableComments){const e=document.querySelector(".fancybox__sidebar-comments");if(e){const{imageId:t}=u(s,W);(0,g.createRoot)(e).render((0,y.jsx)(w,{imageId:t,isLoggedIn:ee,isAdmin:oe,commentsEnabled:ne,requireLogin:ae,currentUser:te}))}}const h="figcaption"!==i.captionSource;(i.showExif||b||i.showCaption&&h)&&(f.querySelector(".fancybox-caption-exif")||f.insertAdjacentHTML("beforeend",'<div class="fancybox-caption-exif"></div>
1'),m(s,0,i.showExif||b,i.showExifIcons,i.showCamera,i.showLens,i.showFocalLength,i.showAperture,i.showExposure,i.showIso,i.captionSource,Q,W,p)),l&&setTimeout((()=>{l.classList.add("sidebar-visible")}),300)}}else{const e="figcaption"!==i.captionSource;(i.showExif||b||i.showCaption&&e)&&m(s,0,i.showExif||b,i.showExifIcons,i.showCamera,i.showLens,i.showFocalLength,i.showAperture,i.showExposure,i.showIso,i.captionSource,Q,W,p)}},"Carousel.ready":e=>{i.useSidebar&&i.sidebarStartOpen&&(e.container.classList.add("has-sidebar"),"dark"===i.sidebarColorTheme&&e.container.classList.add("sidebar-dark"))},"Carousel.beforeChange":()=>{const e=document.querySelector(".fancybox__data");e&&e.classList.remove("sidebar-visible")}},...i.useSidebar?{tpl:h(i.sidebarStartOpen)}:{}};return x}setTimeout((function(){ie()}),100),function(e){let t;return function(...o){clearTimeout(t),t=setTimeout((()=>e.apply(this,o)),200)}}((function(){const e=document.querySelector("body");new MutationObserver((e=>{e.length>0&&ie()})).observe(e,{childList:!0,subtree:!0,attributes:!1})}))()}))})();

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.