{{ERROR}}
\"),this.setContent(t,n)}clearContent(t){if(void 0===t.state)return;this.emit(\"clearContent\",t),t.contentEl&&(t.contentEl.remove(),t.contentEl=void 0);const e=t.el;e&&(E(e,\"has-error\"),E(e,\"has-unknown\"),E(e,`has-${t.type||\"unknown\"}`)),t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0}getSlide(){var t;const e=this.carousel;return(null===(t=null==e?void 0:e.pages[null==e?void 0:e.page])||void 0===t?void 0:t.slides[0])||void 0}close(t,e){if(this.isClosing())return;const i=new Event(\"shouldClose\",{bubbles:!0,cancelable:!0});if(this.emit(\"shouldClose\",i,t),i.defaultPrevented)return;t&&t.cancelable&&(t.preventDefault(),t.stopPropagation());const n=this.fsAPI,s=()=>{this.proceedClose(t,e)};n&&n.isFullscreen()===this.container?Promise.resolve(n.exit()).then((()=>s())):s()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(t=!1){const e=()=>{this.clearIdle(),this.idle=!0,S(this.container,\"is-idle\"),this.emit(\"setIdle\")};if(this.clearIdle(),!this.isClosing())if(t)e();else{const t=this.option(\"idle\");t&&(this.idleTimer=setTimeout(e,t))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,E(this.container,\"is-idle\"),this.emit(\"endIdle\"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){const t=this.fsAPI;t&&(t.isFullscreen()?t.exit():this.container&&t.request(this.container))}isClosing(){return[st.Closing,st.CustomClosing,st.Destroy].includes(this.state)}proceedClose(t,e){var i,n;this.state=st.Closing,this.clearIdle(),this.detachEvents();const s=this.container,o=this.carousel,a=this.getSlide(),r=a&&this.option(\"placeFocusBack\")?a.triggerEl||this.option(\"triggerEl\"):null;if(r&&(J(r)?it(r):r.focus()),s&&(S(s,\"is-closing\"),s.setAttribute(\"aria-hidden\",\"true\"),this.option(\"animated\")&&S(s,Yt),s.style.pointerEvents=\"none\"),o){o.clearTransitions(),null===(i=o.panzoom)||void 0===i||i.destroy(),null===(n=o.plugins.Navigation)||void 0===n||n.detach();for(const t of o.slides){t.state=ot.Closing,this.hideLoading(t);const e=t.contentEl;e&&this.stop(e);const i=null==t?void 0:t.panzoom;i&&(i.stop(),i.detachEvents(),i.detachObserver()),this.isCurrentSlide(t)||o.emit(\"removeSlide\",t)}}this.emit(\"close\",t),this.state!==st.CustomClosing?(void 0===e&&a&&(e=this.optionFor(a,\"hideClass\")),e&&a?(this.animate(a.contentEl,e,(()=>{o&&o.emit(\"removeSlide\",a)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var t;if(this.state===st.Destroy)return;this.state=st.Destroy,null===(t=this.carousel)||void 0===t||t.destroy();const e=this.container;e&&e.remove(),ie.delete(this.id);const i=se.getInstance();i?i.focus():(te&&(te.remove(),te=null),ee&&(ee.remove(),ee=null),E(document.documentElement,_t),(()=>{if(!Q)return;const t=document,e=t.body;e.classList.remove($t),e.style.setProperty(Xt,\"\"),t.documentElement.style.setProperty(Wt,\"\")})(),this.emit(\"destroy\"))}static bind(t,e,i){if(!Q)return;let n,s=\"\",o={};if(void 0===t?n=document.body:\"string\"==typeof t?(n=document.body,s=t,\"object\"==typeof e&&(o=e||{})):(n=t,\"string\"==typeof e&&(s=e),\"object\"==typeof i&&(o=i||{})),!n||!x(n))return;s=s||\"[data-fancybox]\";const a=se.openers.get(n)||new Map;a.set(s,o),se.openers.set(n,a),1===a.size&&n.addEventListener(\"click\",se.fromEvent)}static unbind(t,e){let i,n=\"\";if(\"string\"==typeof t?(i=document.body,n=t):(i=t,\"string\"==typeof e&&(n=e)),!i)return;const s=se.openers.get(i);s&&n&&s.delete(n),n&&s||(se.openers.delete(i),i.removeEventListener(\"click\",se.fromEvent))}static destroy(){let t;for(;t=se.getInstance();)t.destroy();for(const t of se.openers.keys())t.removeEventListener(\"click\",se.fromEvent);se.openers=new Map}static fromEvent(t){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let e=t.composedPath()[0];const i=e.closest(\"[data-fancybox-trigger]\");if(i){const t=i.dataset.fancyboxTrigger||\"\",n=document.querySelectorAll(`[data-fancybox=\"${t}\"]`),s=parseInt(i.dataset.fancyboxIndex||\"\",10)||0;e=n[s]||e}if(!(e&&e instanceof Element))return;let n,s,o,a;if([...se.openers].reverse().find((([t,i])=>!(!t.contains(e)||![...i].reverse().find((([i,r])=>{let l=e.closest(i);return!!l&&(n=t,s=i,o=l,a=r,!0)}))))),!n||!s||!o)return;a=a||{},t.preventDefault(),e=o;let r=[],l=u({},nt,a);l.event=t,l.triggerEl=e,l.delegate=i;const c=l.groupAll,h=l.groupAttr,d=h&&e?e.getAttribute(`${h}`):\"\";if((!e||d||c)&&(r=[].slice.call(n.querySelectorAll(s))),e&&!c&&(r=d?r.filter((t=>t.getAttribute(`${h}`)===d)):[e]),!r.length)return;const p=se.getInstance();return p&&p.options.triggerEl&&r.indexOf(p.options.triggerEl)>-1?void 0:(e&&(l.startIndex=r.indexOf(e)),se.fromNodes(r,l))}static fromSelector(t,e){let i=null,n=\"\";if(\"string\"==typeof t?(i=document.body,n=t):t instanceof HTMLElement&&\"string\"==typeof e&&(i=t,n=e),!i||!n)return!1;const s=se.openers.get(i);if(!s)return!1;const o=s.get(n);return!!o&&se.fromNodes(Array.from(i.querySelectorAll(n)),o)}static fromNodes(t,e){e=u({},nt,e||{});const i=[];for(const n of t){const t=n.dataset||{},s=t[Jt]||n.getAttribute(Kt)||n.getAttribute(\"currentSrc\")||n.getAttribute(Jt)||void 0;let o;const a=e.delegate;let r;a&&i.length===e.startIndex&&(o=a instanceof HTMLImageElement?a:a.querySelector(\"img:not([aria-hidden])\")),o||(o=n instanceof HTMLImageElement?n:n.querySelector(\"img:not([aria-hidden])\")),o&&(r=o.currentSrc||o[Jt]||void 0,!r&&o.dataset&&(r=o.dataset.lazySrc||o.dataset[Jt]||void 0));const l={src:s,triggerEl:n,thumbEl:o,thumbElSrc:r,thumbSrc:r};for(const e in t)l[e]=t[e]+\"\";i.push(l)}return new se(i,e)}static getInstance(t){if(t)return ie.get(t);return Array.from(ie.values()).reverse().find((t=>!t.isClosing()&&t))||null}static getSlide(){var t;return(null===(t=se.getInstance())||void 0===t?void 0:t.getSlide())||null}static show(t=[],e={}){return new se(t,e)}static next(){const t=se.getInstance();t&&t.next()}static prev(){const t=se.getInstance();t&&t.prev()}static close(t=!0,...e){if(t)for(const t of ie.values())t.close(...e);else{const t=se.getInstance();t&&t.close(...e)}}}Object.defineProperty(se,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:\"5.0.26\"}),Object.defineProperty(se,\"defaults\",{enumerable:!0,configurable:!0,writable:!0,value:nt}),Object.defineProperty(se,\"Plugins\",{enumerable:!0,configurable:!0,writable:!0,value:Nt}),Object.defineProperty(se,\"openers\",{enumerable:!0,configurable:!0,writable:!0,value:new Map});export{K as Carousel,se as Fancybox,R as Panzoom};\n","const Slide = ({ attributes, carousel, index, clientId }) => {\r\n\tconst { elements = { linkNewTab: false, linkOn: 'image' }, caption: attrCap = {} } = attributes;\r\n\tconst { position: capPos = 'onImage' } = attrCap;\r\n\tconst { image, action = 'none', link = '' } = carousel;\r\n\r\n\tconst imgProps = { carousel, action, image, clientId };\r\n\tconst linkProps = { linkNewTab: elements?.linkNewTab, action, link };\r\n\r\n\treturn <>\r\n\t\t