1/*! For license information please see fancyapps.e0482ffde84764a471a6.js.LICENSE.txt */ 2"use strict";(self.webpackChunkclubcast=self.webpackChunkclubcast||[]).push([[101978],{801364(e,t,n){n.d(t,{lX:()=>dt});const o=e=>"string"==typeof e,i=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,s=function(e,t=void 0){return!e||e===document.body||t&&e===t?null:function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;let t=!1,n=!1;if(e.scrollWidth>e.clientWidth){const n=window.getComputedStyle(e).overflowX,o=-1!==n.indexOf("hidden"),i=-1!==n.indexOf("clip"),s=-1!==n.indexOf("visible");t=!o&&!i&&!s}if(e.scrollHeight>e.clientHeight){const t=window.getComputedStyle(e).overflowY,o=-1!==t.indexOf("hidden"),i=-1!==t.indexOf("clip"),s=-1!==t.indexOf("visible");n=!o&&!i&&!s}return t||n}(e)?e:s(e.parentElement,t)},l=function(e){var t=(new DOMParser).parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var n=document.createElement("div");t.firstChild;)n.appendChild(t.firstChild);return n}let o=t.firstChild;return!o||o instanceof HTMLElement?o:((n=document.createElement("div")).appendChild(o),n)},r=function(e=0,t=0,n=0){return Math.max(Math.min(t,n),e)},a=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e);function c(e){return a(e)||Array.isArray(e)}function u(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>{const o=e[n],i=t[n];return"function"==typeof o?`${o}`==`${i}`:c(o)&&c(i)?u(o,i):o===i})}const d=function(e){for(const t of m)t.getState()===f.Running&&t.tick(p?e-p:0);p=e,h=window.requestAnimationFrame(d)};var f,g,v;!function(e){e[e.Initializing=0]="Initializing",e[e.Running=1]="Running",e[e.Paused=2]="Paused",e[e.Completed=3]="Completed",e[e.Destroyed=4]="Destroyed"}(f||(f={})),function(e){e[e.Spring=0]="Spring",e[e.Ease=1]="Ease"}(g||(g={})),function(e){e[e.Loop=0]="Loop",e[e.Reverse=1]="Reverse"}(v||(v={}));const m=new Set;let h=null,p=0;function y(){let e=f.Initializing,t=g.Ease,n=0,o=0,i=y.Easings.Linear,s=500,l=0,a=0,c=0,p=0,b=1/0,E=.01,w=.01,x=!1,M={},S=null,O={},L={},T={},P=0,A=0,R=v.Loop,C=y.Easings.Linear;const j=new Map;function z(e,...t){for(const n of j.get(e)||[])n(...t)}function k(e){return o=0,e?S=setTimeout(()=>{I()},e):I(),$}function I(){e=f.Running,z("start",O,L)}function F(){if(e=f.Completed,T={},z("end",O),e===f.Completed)if(n<P){if(n++,R===v.Reverse){const e=Object.assign({},M);M=Object.assign({},L),L=e}k(A)}else n=0;return $}const $={getState:function(){return e},easing:function(e){return i=e,t=g.Ease,T={},$},duration:function(e){return s=e,$},spring:function(e={}){t=g.Spring;const{velocity:n,mass:o,tension:i,friction:s,restDelta:r,restSpeed:u,maxSpeed:d,clamp:f}=Object.assign(Object.assign({},{velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0}),e);return l=n,a=o,c=i,p=s,w=r,E=u,b=d,x=f,T={},$},isRunning:function(){return e===f.Running},isSpring:function(){return t===g.Spring},from:function(e){return O=Object.assign({},e),$},to:function(e){return L=e,$},repeat:function(e,t=0,n=v.Loop,o){return P=e,A=t,R=n,C=o||i,$},on:function(e,t){var n,o;return n=e,o=t,j.set(n,[...j.get(n)||[],o]),$},off:function(e,t){var n,o;return n=e,o=t,j.has(n)&&j.set(n,j.get(n).filter(e=>e!==o)),$},start:function(t){return u(O,L)||(e=f.Initializing,M=Object.assign({},O),m.add(this),h||(h=window.requestAnimationFrame(d)),k(t)),$},pause:function(){return S&&(clearTimeout(S),S=null),e===f.Running&&(e=f.Paused,z("pause",O)),$},end:F,tick:function(n){n>50&&(n=50),o+=n;let d=0,m=!1;if(e!==f.Running)return $;if(t===g.Ease){d=r(0,o/s,1),m=1===d;const e=R===v.Reverse?C:i;for(const t in O)O[t]=M[t]+(L[t]-M[t])*e(d)}if(t===g.Spring){const e=.001*n;let t=0;for(const n in O){const o=L[n];let i=O[n];if("number"!=typeof o||isNaN(o)||"number"!=typeof i||isNaN(i))continue;if(Math.abs(o-i)<=w){O[n]=o,T[n]=0;continue}T[n]||("object"==typeof l&&"number"==typeof l[n]?T[n]=l[n]:T[n]="number"==typeof l?l:0);let s=T[n];s=r(-1*Math.abs(b),s,Math.abs(b));const u=s*a*p;s+=((i>o?-1:1)*(Math.abs(o-i)*c)-u)/a*e,i+=s*e;const d=O[n]>o?i<o:i>o;let f=Math.abs(s)<E&&Math.abs(o-i)<=w;
2x&&d&&(f=!0),f?(i=o,s=0):t++,O[n]=i,T[n]=s}m=!t}const h=Object.assign({},L);return z("step",O,M,L,d),m&&e===f.Running&&u(L,h)&&(e=f.Completed,F()),$},getStartValues:function(){return M},getCurrentValues:function(){return O},getCurrentVelocities:function(){return T},getEndValues:function(){return L},destroy:function(){e=f.Destroyed,S&&(clearTimeout(S),S=null),M=O=L={},m.delete(this)}};return $}function b(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function E(e,t){const n=[],o=b(e)?e[t]:e instanceof MouseEvent&&("changedTouches"===t||"mouseup"!==e.type)?[e]:[];for(const e of o)n.push({x:e.clientX,y:e.clientY,ts:Date.now()});return n}function w(e){return E(e,"touches")}function x(e){return E(e,"targetTouches")}function M(e){return E(e,"changedTouches")}function S(e){const t=e[0],n=e[1]||t;return{x:(t.x+n.x)/2,y:(t.y+n.y)/2,ts:n.ts}}function O(e){const t=e[0],n=e[1]||e[0];return t&&n?-1*Math.sqrt((n.x-t.x)*(n.x-t.x)+(n.y-t.y)*(n.y-t.y)):0}y.destroy=()=>{for(const e of m)e.destroy();h&&(cancelAnimationFrame(h),h=null)},y.Easings={Linear:function(e){return e},EaseIn:function(e){return 0===e?0:Math.pow(2,10*e-10)},EaseOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},EaseInOut:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2}};const L=e=>{e.cancelable&&e.preventDefault()},T={passive:!1},P={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]};let A=!1,R=!0;const C=(e,t)=>{let n,o,i,s=Object.assign(Object.assign({},P),t),l=[],r=[],a=[],c=!1,u=!1,d=!1,f=!1,g=0,v=0,m=0,h=0,p=0,y=0,b=0,E=0,C=0,j=[],z=0,k=0;const I=new Map;function F(e){const t=O(r),s=O(a),d=t&&s?t/s:0,f=Math.abs(b)>Math.abs(E)?b:E,g={srcEvent:n,isPanRecognized:c,isSwipeRecognized:u,firstTouch:l,previousTouch:a,currentTouch:r,deltaX:m,deltaY:h,offsetX:p,offsetY:y,velocityX:b,velocityY:E,velocity:f,angle:C,axis:i,scale:d,center:o};for(const t of I.get(e)||[])t(g)}function $(e){const t=e.target,n=e.composedPath()[0],o=s.ignore.join(","),i=e=>e&&e instanceof HTMLElement&&(e.matches(o)||e.closest(o));if(i(t)||i(n))return!1}function _(e){const t=Date.now();if(j=j.filter(e=>!e.ts||e.ts>t-100),e&&j.push(e),b=0,E=0,j.length>3){const e=j[0],t=j[j.length-1];if(e&&t){const n=t.x-e.x,o=t.y-e.y,i=e.ts&&t.ts?t.ts-e.ts:0;i>0&&(b=Math.abs(n)>3?n/(i/30):0,E=Math.abs(o)>3?o/(i/30):0)}}}function H(e){if(!1===$(e))return;if("undefined"!=typeof MouseEvent&&e instanceof MouseEvent){if(A)return}else A=!0;if("undefined"!=typeof MouseEvent&&e instanceof MouseEvent){if(!e.buttons||0!==e.button)return;L(e)}e instanceof MouseEvent&&(window.addEventListener("mousemove",D),window.addEventListener("mouseup",V)),window.addEventListener("blur",q),n=e,r=x(e),l=[...r],a=[],v=r.length,o=S(r),1===v&&(c=!1,u=!1,d=!1),v&&_(S(r));const t=Date.now(),i=t-(g||t);f=i>0&&i<=250&&1===v,g=t,clearTimeout(z),F("start")}function D(e){var t;if(!l.length)return;if(e.defaultPrevented)return;if(!1===$(e))return;n=e,a=[...r],r=w(e);const u=S(a),f=S(w(e));if(_(f),v=r.length,o=f,a.length===r.length?(m=f.x-u.x,h=f.y-u.y):(m=0,h=0),l.length){const e=S(l);p=f.x-e.x,y=f.y-e.y}if(r.length>1){const e=O(r),t=O(a);Math.abs(e-t)>=.1&&(d=!0,F("pinch"))}c||(c=Math.abs(p)>s.panThreshold||Math.abs(y)>
2s.panThreshold,c&&(R=!1,clearTimeout(k),k=0,C=Math.abs(180*Math.atan2(y,p)/Math.PI),i=C>45&&C<135?"y":"x",l=[...r],a=[...r],p=0,y=0,m=0,h=0,null===(t=window.getSelection())||void 0===t||t.removeAllRanges(),F("panstart"))),c&&(m||h)&&F("pan"),F("move")}function V(e){if(n=e,!l.length)return;const t=x(e),i=M(e);if(v=t.length,o=S(i),i.length&&_(S(i)),a=[...r],r=[...t],l=[...t],v>0)F("end"),c=!1,u=!1,j=[];else{const e=s.swipeThreshold;(Math.abs(b)>e||Math.abs(E)>e)&&(u=!0),c&&F("panend"),u&&F("swipe"),c||u||d||(F("tap"),f?F("doubleTap"):z=setTimeout(function(){F("singleTap")},250)),F("end"),N()}}function q(){clearTimeout(z),N(),c&&F("panend"),F("end")}function N(){A=!1,c=!1,u=!1,f=!1,v=0,j=[],r=[],a=[],l=[],m=0,h=0,p=0,y=0,b=0,E=0,C=0,i=void 0,window.removeEventListener("mousemove",D),window.removeEventListener("mouseup",V),window.removeEventListener("blur",q),R||k||(k=setTimeout(()=>{R=!0,k=0},100))}function W(e){const t=e.target;A=!1,t&&!e.defaultPrevented&&(R||(L(e),e.stopPropagation()))}const B={init:function(){return e&&(e.addEventListener("click",W,T),e.addEventListener("mousedown",H,T),e.addEventListener("touchstart",H,T),e.addEventListener("touchmove",D,T),e.addEventListener("touchend",V),e.addEventListener("touchcancel",V)),B},on:function(e,t){return function(e,t){I.set(e,[...I.get(e)||[],t])}(e,t),B},off:function(e,t){return I.has(e)&&I.set(e,I.get(e).filter(e=>e!==t)),B},isPointerDown:()=>v>0,destroy:function(){clearTimeout(z),clearTimeout(k),k=0,e&&(e.removeEventListener("click",W,T),e.removeEventListener("mousedown",H,T),e.removeEventListener("touchstart",H,T),e.removeEventListener("touchmove",D,T),e.removeEventListener("touchend",V),e.removeEventListener("touchcancel",V)),e=null,N()}};return B};C.isClickAllowed=()=>R;const j={IMAGE_ERROR:"This image couldn't be loaded. <br /> Please try again later.",MOVE_UP:"Move up",MOVE_DOWN:"Move down",MOVE_LEFT:"Move left",MOVE_RIGHT:"Move right",ZOOM_IN:"Zoom in",ZOOM_OUT:"Zoom out",TOGGLE_FULL:"Toggle zoom level",TOGGLE_1TO1:"Toggle zoom level",ITERATE_ZOOM:"Toggle zoom level",ROTATE_CCW:"Rotate counterclockwise",ROTATE_CW:"Rotate clockwise",FLIP_X:"Flip horizontally",FLIP_Y:"Flip vertically",RESET:"Reset",TOGGLE_FS:"Toggle fullscreen"},z=(e,t="")=>{e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.add(t)})},k=(e,t="")=>{e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.remove(t)})},I=(e,t="",n)=>{e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.toggle(t,n||!1)})},F=e=>{e.cancelable&&e.preventDefault()},$=(e,t=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t),_=e=>e instanceof HTMLImageElement;var H,D;!function(e){e.Reset="reset",e.Zoom="zoom",e.ZoomIn="zoomIn",e.ZoomOut="zoomOut",e.ZoomTo="zoomTo",e.ToggleCover="toggleCover",e.ToggleFull="toggleFull",e.ToggleMax="toggleMax",e.IterateZoom="iterateZoom",e.Pan="pan",e.Swipe="swipe",e.Move="move",e.MoveLeft="moveLeft",e.MoveRight="moveRight",e.MoveUp="moveUp",e.MoveDown="moveDown",e.RotateCCW="rotateCCW",e.RotateCW="rotateCW",e.FlipX="flipX",e.FlipY="flipY",e.ToggleFS="toggleFS"}(H||(H={})),function(e){e.Cover="cover",e.Full="full",e.Max="max"}(D||(D={}));const V={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},q={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:H.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:j,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:H.Zoom,width:"auto"};let N,W=0,B=0,Z=0;const G=(e,t={},n={})=>{let a,c,d,f,g,v,m,h,p=0,b=Object.assign(Object.assign({},q),t),E={},w=Object.assign({},V),x=Object.assign({},V);const O=[];function L(e){let t=b[e];return t&&"function"==typeof t?t(Se):t}function T(){return e&&e.parentElement&&a&&3===p}const P=new Map;function A(e,...t){const n=[...P.get(e)||[]];b.on&&n.push(b.on[e]);for(const e of n)e&&e instanceof Function&&e(Se,...t);"*"!==e&&A("*",e,...t)}function R(e){if(!T())return;const t=e.target;if(s(t))return;const n=Date.now(),o=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(e,t){return Math.abs(t)>Math.abs(e)?t:e}),i=r(-1,o,1);A("wheel",e,i);const l=L("wheelAction");if(!l)return;if(e.defaultPrevented)return;const a=x.scale;let c=a*(i>0?1.5:.5);if(l===H.Zoom){const t=Math.abs(e.deltaY)<100&&Math.abs(e.deltaX)<100;if(n-B<(t?200:45))return void F(e);B=n;const o=ne(),s=le();if($(c)<$(o)&&$(a)<=$(o)?(Z+=Math.abs(i),c=o):$(c)>$(s)&&$(a)>=$(s)?(Z+=Math.abs(i),c=s):(Z=0,c=r(o,c,s)),Z>7)return}switch(F(e),l){case H.Pan:ue(l,{srcEvent:e,deltaX:2*-e.deltaX,deltaY:2*-e.deltaY});break;case H.Zoom:ue(H.ZoomTo,{srcEvent:e,scale:c,center:{x:e.clientX,y:e.clientY}});break;default:ue(l,{srcEvent:e})}}function j(t){var n,o;const s=t.composedPath()[0];if(!C.isClickAllowed())return;if(!i(s)||t.defaultPrevented)return;if(!(null==e?void 0:e.contains(s)))return;if(s.hasAttribute("disabled")||s.hasAttribute("aria-disabled")||s.hasAttribute("data-carousel-go-prev")||s.hasAttribute("data-carousel-go-next"))return;const l=s.closest("[data-panzoom-action]"),r=null===(n=null==l?void 0:l.dataset)||void 0===n?void 0:n.panzoomAction,c=(null===(o=null==l?void 0:l.dataset)||void 0===o?void 0:o.panzoomValue)||"";if(r){switch(F(t),r){case H.ZoomTo:case H.ZoomIn:case H.ZoomOut:ue(r,{scale:parseFloat(c||"")||void 0});break;case H.MoveLeft:case H.MoveRight:ue(r,{deltaX:parseFloat(c||"")||void 0});break;case H.MoveUp:case H.MoveDown:ue(r,{deltaY:parseFloat(c||"")||void 0});break;case H.ToggleFS:xe();break;default:ue(r)}return}if(!(null==a?void 0:a.contains(s)))return;const u={srcEvent:t};if(ue(L("clickAction"),u),L("dblClickAction")){const e=Date.now(),t=e-(W||e);W=e,t>0&&t<=250?(N&&(clearTimeout(N),N=void 0),ue(L("dblClickAction"),u)):N=setTimeout(()=>{ue(L("singleClickAction"),u)},250)}}function D(e){if(h=e,!T()||!Q())return;if(w.scale<=1||x.scale<=1)return;if(((null==a?void 0:a.dataset.animationName)||"").indexOf("zoom")>-1)return;const t=ee(x.scale);if(!t)return;const{x:n,y:o}=t;ue(H.Pan,{deltaX:n-x.x,deltaY:o-x.y})}function G(){var t;e&&(k(e,"is-loading"),null===(t=e.querySelector(".f-spinner"))||void 0===t||t.remove())}function X(){if(!e||!c)return;
2if(G(),_(c)&&(!c.complete||!c.naturalWidth))return p=2,null==a||a.classList.add("has-error"),void A("error");A("loaded");const{width:t,height:n}=K();_(c)&&(c.setAttribute("width",t+""),c.setAttribute("height",n+"")),a&&(k(a,"has-error"),_(c)&&(a.setAttribute("width",t+""),a.setAttribute("height",n+""),a.style.aspectRatio=`${t/n||""}`)),v=y().on("start",(e,t)=>{void 0!==t.angle&&(t.angle=90*Math.round(t.angle/90)),void 0!==t.flipX&&(t.flipX=t.flipX>0?1:-1),void 0!==t.flipY&&(t.flipY=t.flipY>0?1:-1),x=Object.assign(Object.assign({},V),t),ce(),A("animationStart")}).on("pause",e=>{x=Object.assign(Object.assign({},V),e)}).on("step",e=>{if(!T())return void(null==v||v.end());if(w=Object.assign(Object.assign({},V),e),Q()||!L("bounds")||be()||x.scale>w.scale||x.scale<oe())return void de();const t=re(x.scale);let n=!1,o=!1,i=!1,s=!1;w.x<t.x[0]&&(n=!0),w.x>t.x[1]&&(o=!0),w.y<t.y[0]&&(s=!0),w.y>t.y[1]&&(i=!0);let l=!1,a=!1,c=!1,u=!1;x.x<t.x[0]&&(l=!0),x.x>t.x[1]&&(a=!0),x.y<t.y[0]&&(u=!0),x.y>t.y[1]&&(c=!0);let d=!1;(o&&a||n&&l)&&(x.x=r(t.x[0],x.x,t.x[1]),d=!0),(i&&c||s&&u)&&(x.y=r(t.y[0],x.y,t.y[1]),d=!0),d&&v&&v.spring({tension:94,friction:17,maxSpeed:555*x.scale,restDelta:.1,restSpeed:.1,velocity:v.getCurrentVelocities()}).from(w).to(x).start(),de()}).on("end",()=>{(null==g?void 0:g.isPointerDown())||ae(),(null==v?void 0:v.isRunning())||(ce(),A("animationEnd"))}),function(){const e=L("gestures");if(!e)return;if(!f||!c)return;let t=!1;g=C(f,e).on("start",e=>{if(!L("gestures"))return;if(!v)return;if(!T()||Q())return;const n=e.srcEvent;(w.scale>1||e.currentTouch.length>1)&&(null==n||n.stopPropagation(),v.pause(),t=!0),1===e.currentTouch.length&&A("touchStart")}).on("move",e=>{var n;t&&(1!==x.scale||e.currentTouch.length>1)&&(F(e.srcEvent),null===(n=e.srcEvent)||void 0===n||n.stopPropagation())}).on("pan",e=>{if(!t)return;const n=e.srcEvent;(1!==x.scale||e.currentTouch.length>1)&&(F(n),ue(H.Pan,e))}).on("swipe",e=>{t&&x.scale>1&&ue(H.Swipe,e)}).on("tap",e=>{A("click",e)}).on("singleTap",e=>{A("singleClick",e)}).on("doubleTap",e=>{A("dblClick",e)}).on("pinch",e=>{t&&(e.scale>oe()?ue(H.ZoomIn,e):e.scale<oe()?ue(H.ZoomOut,e):ue(H.Pan,e))}).on("end",e=>{t&&(e.currentTouch.length?(e.srcEvent.stopPropagation(),F(e.srcEvent),null==v||v.end()):(t=!1,ce(),ae(),A("touchEnd")))}).init()}(),f&&(f.addEventListener("wheel",R,{passive:!1}),O.push(()=>{null==f||f.removeEventListener("wheel",R,{passive:!1})})),null==e||e.addEventListener("click",j),null===document||void 0===document||document.addEventListener("mousemove",D),O.push(()=>{null==e||e.removeEventListener("click",j),null===document||void 0===document||document.removeEventListener("mousemove",D)});const o=Y();w=Object.assign({},o),x=Object.assign({},o),p=3,de(),ce(),A("ready"),requestAnimationFrame(()=>{3===p&&(G(),f&&(f.style.visibility=""))})}function Y(){const e=Object.assign({},L("startPos")||{});let t=e.scale,n=1;n="string"==typeof t?te(t):"number"==typeof t?t:oe();const o=Object.assign(Object.assign(Object.assign({},V),e),{scale:n}),i=Q()?ee(n):void 0;if(i){const{x:e,y:t}=i;o.x=e,o.y=t}return o}function U(){const e={top:0,left:0,width:0,height:0};if(a){const t=a.getBoundingClientRect();x.angle%180==90?(e.top=t.top+.5*t.height-.5*t.width,e.left=t.left+.5*t.width-.5*t.height,e.width=t.height,e.height=t.width):(e.top=t.top,e.left=t.left,e.width=t.width,e.height=t.height)}return e}function K(){let e=L("width"),t=L("height");if(c&&"auto"===e){const t=c.getAttribute("width");e=t?parseFloat(t+""):void 0!==c.dataset.width?parseFloat(c.dataset.width+""):_(f)?f.naturalWidth:_(c)?c.naturalWidth:(null==a?void 0:a.getBoundingClientRect().width)||0}else e=o(e)?parseFloat(e):e;if(c&&"auto"===t){const e=c.getAttribute("height");t=e?parseFloat(e+""):void 0!==c.dataset.height?parseFloat(c.dataset.height+""):_(f)?f.naturalHeight:_(c)?c.naturalHeight:(null==a?void 0:a.getBoundingClientRect().height)||0}else t=o(t)?parseFloat(t):t;return{width:e,height:t}}function J(){const e=U();return{width:e.width,height:e.height}}function Q(){return"mousemove"===L("panMode")&&matchMedia("(hover: hover)").matches}function ee(e){const t=h||L("event"),n=null==a?void 0:a.getBoundingClientRect();if(!t||!n||e<=1)return{x:0,y:0};const o=(t.clientX||0)-n.left,i=(t.clientY||0)-n.top,{width:s,height:l}=J(),c=re(e);if(e>1){const t=L("mouseMoveFactor");t>1&&(e*=t)}let u=s*e,d=l*e,f=.5*(u-s)-o/s*100/100*(u-s),g=.5*(d-l)-i/l*100/100*(d-l);return f=r(c.x[0],f,c.x[1]),g=r(c.y[0],g,c.y[1]),{x:f,y:g}}function te(t="base"){if(!e)return 1;const n=e.getBoundingClientRect(),o=U(),{width:i,height:s}=K(),l=e=>{if("number"==typeof e)return e;switch(e){case"min":case"base":return 1;case"cover":return Math.max(n.height/o.height,n.width/o.width)||1;case"full":case"max":{const e=x.angle%180==90?s:i;return e&&o.width?e/o.width:1}}},a=L("minScale"),c=L("maxScale"),u=Math.min(l("full"),l(a)),d="number"==typeof c?l("full")*c:Math.min(l("full"),l(c));switch(t){case"min":return u;case"base":return r(u,1,d);case"cover":return l("cover");case"full":return Math.min(d,l("full"));case"max":return d}}function ne(){return te("min")}function oe(){return te("base")}function ie(){return te("cover")}function se(){return te("full")}function le(){return te("max")}function re(t){const n={x:[0,0],y:[0,0]},o=null==e?void 0:e.getBoundingClientRect();if(!o)return n;const i=U(),s=o.width,l=o.height;let r=i.width,a=i.height,c=t=void 0===t?x.scale:t,u=t;if(Q()&&t>1){const e=L("mouseMoveFactor");e>1&&(r*t>s+.01&&(c*=e),a*t>l+.01&&(u*=e))}return r*=c,a*=u,t>1&&(r>s&&(n.x[0]=.5*(s-r),n.x[1]=.5*(r-s)),n.x[0]-=.5*(i.left-o.left),n.x[1]-=.5*(i.left-o.left),n.x[0]-=.5*(i.left+i.width-o.right),n.x[1]-=.5*(i.left+i.width-o.right),a>l&&(n.y[0]=.5*(l-a),n.y[1]=.5*(a-l)),n.y[0]-=.5*(i.top-o.top),n.y[1]-=.5*(i.top-o.top),n.y[0]-=.5*(i.top+i.height-o.bottom),n.y[1]-=.5*(i.top+i.height-o.bottom)),n}function ae(){if(!T())return;if(!L("bounds"))return;if(!v)return;const e=ne(),t=le(),n=r(e,x.scale,t);if(x.scale<e-.01||x.scale>t+.01)return void ue(H.ZoomTo,{scale:n});if(v.isRunning())return;if(be())return;const o=re(n);x.x<o.x[0]||x.x>o.x[1]||x.y<o.y[0]||x.y>o.y[1]?(x.x=r(o.x[0],x.x,o.x[1]),x.y=r(o.y[0],x.y,o.y[1]),v.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:v.getCurrentVelocities()}),v.from(w).to(x).start()):de()}function ce(t){var n;if(!T())return;const o=ye(),i=be(),s=Ee(),l=we(),r=ge(),c=ve();I(a,"is-fullsize",l),I(a,"is-expanded",s),I(a,"is-dragging",i),I(a,"can-drag",o),I(a,"will-zoom-in",r),I(a,"will-zoom-out",c);const u=he(),d=pe(),f=me(),g=!T();for(const o of(null===(n=t||e)||void 0===n?void 0:n.querySelectorAll("[data-panzoom-action]"))||[]){const e=o.dataset.panzoomAction;let t=!1;if(g)t=!0;else switch(e){case H.ZoomIn:u||(t=!0);break;case H.ZoomOut:f||(t=!0);break;case H.ToggleFull:{d||f||(t=!0);const e=o.querySelector("g");e&&(e.style.display=l&&!t?"none":"");break}case H.IterateZoom:{u||f||(t=!0);const e=o.querySelector("g");e&&(e.style.display=u||t?"":"none");break}case H.ToggleCover:case H.ToggleMax:u||f||(t=!0)}t?(o.setAttribute("aria-disabled",""),o.setAttribute("tabindex","-1")):(o.removeAttribute("aria-disabled"),o.removeAttribute("tabindex"))}}function ue(t,n){var o;if(!(t&&e&&c&&v&&T()))return;if(t===H.Swipe&&Math.abs(v.getCurrentVelocities().scale)>.01)return;const i=Object.assign({},x);let s=Object.assign({},x),l=re(Q()?i.scale:w.scale);const a=v.getCurrentVelocities(),d=U(),f=((null===(o=(n=n||{}).currentTouch)||void 0===o?void 0:o.length)||0)>1,g=n.velocityX||0,m=n.velocityY||0;let h=n.center;n.srcEvent&&(h=S(M(n.srcEvent)));let p=n.deltaX||0,y=n.deltaY||0;switch(t){case H.MoveRight:p=n.deltaX||100;break;case H.MoveLeft:p=n.deltaX||-100;break;case H.MoveUp:y=n.deltaY||-100;break;case H.MoveDown:y=n.deltaY||100}let b=[];switch(t){case H.Reset:s=Object.assign({},V),s.scale=oe();break;case H.Pan:case H.Move:case H.MoveLeft:case H.MoveRight:case H.MoveUp:case H.MoveDown:if(be()){let e=1,t=1;s.x<=l.x[0]&&g<=0&&(e=Math.max(.01,1-Math.abs(1/d.width*Math.abs(s.x-l.x[0]))),e*=.2),s.x>=l.x[1]&&g>=0&&(e=Math.max(.01,1-Math.abs(1/d.width*Math.abs(s.x-l.x[1]))),e*=.2),s.y<=l.y[0]&&m<=0&&(t=Math.max(.01,1-Math.abs(1/d.height*Math.abs(s.y-l.y[0]))),t*=.2),s.y>=l.y[1]&&m>=0&&(t=Math.max(.01,1-Math.abs(1/d.height*Math.abs(s.y-l.y[1]))),t*=.2),s.x+=p*e,s.y+=y*t}else s.x=r(l.x[0],s.x+p,l.x[1]),s.y=r(l.y[0],s.y+y,l.y[1]);break;case H.Swipe:const e=(e=0)=>Math.sign(e)*Math.pow(Math.abs(e),1.5);s.x+=r(-1e3,e(g),1e3),s.y+=r(-1e3,e(m),1e3),m&&!g&&(s.x=r(l.x[0],s.x,l.x[1])),!m&&g&&(s.y=r(l.y[0],s.y,l.y[1])),a.x=g,a.y=m;break;case H.ZoomTo:s.scale=n.scale||1;break;case H.ZoomIn:s.scale=s.scale*(n.scale||2),f||(s.scale=Math.min(s.scale,le()));break;case H.ZoomOut:s.scale=s.scale*(n.scale||.5),f||(s.scale=Math.max(s.scale,ne()));break;case H.ToggleCover:b=[oe(),ie()];break;case H.ToggleFull:b=[oe(),se()];break;case H.ToggleMax:b=[oe(),le()];break;case H.IterateZoom:b=[oe(),se(),le()];break;case H.Zoom:const t=se();s.scale>=t-.05?s.scale=oe():s.scale=Math.min(t,s.scale*(n.scale||2));break;case H.RotateCW:s.angle+=90;break;case H.RotateCCW:s.angle-=90;break;case H.FlipX:s.flipX*=-1;break;case H.FlipY:s.flipY*=-1}if(void 0!==w.angle&&Math.abs(w.angle)>=360&&(s.angle-=360*Math.floor(w.angle/360),w.angle-=360*Math.floor(w.angle/360)),b.length){const e=b.findIndex(e=>e>s.scale+1e-4);s.scale=b[e]||b[0]}if(f&&(s.scale=r(ne()*(f?.8:1),s.scale,le()*(f?1.6:1))),Q()){const e=ee(s.scale);if(e){const{x:t,y:n}=e;s.x=t,s.y=n}}else if(Math.abs(s.scale-i.scale)>1e-4){let t=0,n=0;if(h)t=h.x,n=h.y;else{const o=e.getBoundingClientRect();t=o.x+.5*o.width,n=o.y+.5*o.height}let o=t-d.left,a=n-d.top;o-=.5*d.width,a-=.5*d.height;const c=(o-i.x)/i.scale,u=(a-i.y)/i.scale;s.x=o-c*s.scale,s.y=a-u*s.scale,!f&&L("bounds")&&(l=re(s.scale),s.x=r(l.x[0],s.x,l.x[1]),s.y=r(l.y[0],s.y,l.y[1]))}if(t===H.Swipe){let e=94,t=17,n=500*s.scale,o=a;v.spring({tension:e,friction:t,maxSpeed:n,restDelta:.1,restSpeed:.1,velocity:o})}else t===H.Pan||f?v.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):v.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:a});if(0===n.velocity||u(w,s))w=Object.assign({},s),x=Object.assign({},s),v.end(),de(),ce();else{if(u(x,s))return;v.from(w).to(s).start()}A("action",t)}function de(){if(!c||!a||!f)return;const{width:t,height:n}=K();Object.assign(a.style,{maxWidth:`min(${t}px, 100%)`,maxHeight:`min(${n}px, 100%)`});const o=function(){const{width:t,height:n}=K(),{width:o,height:i}=J();if(!e)return{x:0,y:0,width:0,height:0,scale:0,flipX:0,flipY:0,angle:0,fitWidth:o,fitHeight:i,fullWidth:t,fullHeight:n};let{x:s,y:l,scale:r,angle:a,flipX:c,flipY:u}=w,d=1/se(),f=t,g=n,v=w.scale*d,m=x.scale*d;const h=Math.max(o,i),p=Math.min(o,i);t>n?(f=h,g=p):(f=p,g=h),v=t>n?h*r/t||1:h*r/n||1;let y=f?t*m:0,b=g?n*m:0;return s=s+.5*f-.5*y,l=l+.5*g-.5*b,{x:s,y:l,width:y,height:b,scale:f&&g?t*v/y:0,flipX:c,flipY:u,angle:a,fitWidth:o,fitHeight:i,fullWidth:t,fullHeight:n}}(),{x:i,y:s,width:l,height:r,scale:u,angle:d,flipX:g,flipY:v}=o;let m=`translate(${$(i)}px, ${$(s)}px)`;m+=1!==g||1!==v?` scaleX(${$(u*g)}) scaleY(${$(u*v)})`:` scale(${$(u)})`,0!==d&&(m+=` rotate(${d}deg)`),f.style.width=`${$(l)}px`,f.style.height=`${$(r)}px`,f.style.transform=`${m}`,A("render")}function fe(){let e=x.scale;const t=L("clickAction");let n=oe();if(t){let o=[];switch(t){case H.ZoomIn:n=2*e;break;case H.ZoomOut:n=.5*e;break;case H.ToggleCover:o=[oe(),ie()];break;case H.ToggleFull:o=[oe(),se()];break;case H.ToggleMax:o=[oe(),le()];break;case H.IterateZoom:o=[oe(),se(),le()];break;case H.Zoom:const t=se();n=e>=t-.05?oe():Math.min(t,2*e)}if(o.length){const t=o.findIndex(t=>t>e+1e-4);n=o[t]||oe()}}return n=r(ne(),n,le()),n}function ge(){return!!(T()&&fe()>x.scale)}
2function ve(){return!!(T()&&fe()<x.scale)}function me(){return!!(T()&&x.scale>ne())}function he(){return!!(T()&&x.scale<le())}function pe(){return!!(T()&&x.scale<se())}function ye(){return!(!(T()&&Ee()&&g)||Q())}function be(){return!(!T()||!(null==g?void 0:g.isPointerDown())||Q())}function Ee(){return!!(T()&&x.scale>oe())}function we(){return!!(T()&&x.scale>=se())}function xe(){const t="in-fullscreen",n="with-panzoom-in-fullscreen";null==e||e.classList.toggle(t);const o=null==e?void 0:e.classList.contains(t);o?(document.documentElement.classList.add(n),document.addEventListener("keydown",Me,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",Me,!0)),de(),A(o?"enterFS":"exitFS")}function Me(e){"Escape"!==e.key||e.defaultPrevented||xe()}const Se={canDrag:ye,canZoomIn:he,canZoomOut:me,canZoomToFull:pe,destroy:function(){A("destroy");for(const e of Object.values(E))null==e||e.destroy(Se);for(const e of O)e();return a&&(a.style.aspectRatio="",a.style.maxWidth="",a.style.maxHeight=""),f&&(f.style.width="",f.style.height="",f.style.transform=""),a=void 0,c=void 0,f=void 0,w=Object.assign({},V),x=Object.assign({},V),null==v||v.destroy(),v=void 0,null==g||g.destroy(),g=void 0,p=4,Se},emit:A,execute:ue,getBoundaries:re,getContainer:function(){return e},getContent:function(){return c},getFullDim:K,getGestures:function(){return g},getMousemovePos:ee,getOptions:function(){return b},getPlugins:function(){return E},getScale:te,getStartPosition:Y,getState:function(){return p},getTransform:function(e){return!0===e?x:w},getTween:function(){return v},getViewport:function(){return f},getWrapper:function(){return a},init:function(){return p=0,A("init"),function(){for(const[e,t]of Object.entries(Object.assign(Object.assign({},n),b.plugins||{})))if(e&&!E[e]&&t instanceof Function){const n=t();n.init(Se),E[e]=n}A("initPlugins")}(),function(){const t=Object.assign(Object.assign({},q.classes),L("classes"));if(e&&(z(e,t.container),c=e.querySelector("."+t.content),c)){if(c.setAttribute("draggable","false"),a=e.querySelector("."+t.wrapper),a||(a=document.createElement("div"),z(a,t.wrapper),c.insertAdjacentElement("beforebegin",a),a.insertAdjacentElement("afterbegin",c)),f=e.querySelector("."+t.viewport),f||(f=document.createElement("div"),z(f,t.viewport),f.insertAdjacentElement("afterbegin",c),a.insertAdjacentElement("beforeend",f)),d=c.cloneNode(!0),d.removeAttribute("id"),a.insertAdjacentElement("afterbegin",d),c instanceof HTMLPictureElement&&(c=c.querySelector("img")),d instanceof HTMLPictureElement&&(d=d.querySelector("img")),f instanceof HTMLPictureElement&&(f=f.querySelector("img")),f&&(f.style.visibility="hidden",L("protected"))){f.addEventListener("contextmenu",e=>{F(e)});const e=document.createElement("div");z(e,"f-panzoom__protected"),f.appendChild(e)}A("initLayout")}}(),function(){if(e&&a&&!m){let e=null;m=new ResizeObserver(()=>{T()&&(e=e||requestAnimationFrame(()=>{T()&&(ce(),ae(),A("refresh")),e=null}))}),m.observe(a),O.push(()=>{null==m||m.disconnect(),m=void 0,e&&(cancelAnimationFrame(e),e=null)})}}(),function(){if(!e||!c)return;if(!_(c)||!_(d))return void X();const t=()=>{c&&_(c)&&c.decode().then(()=>{X()}).catch(()=>{X()})};p=1,e.classList.add("is-loading"),A("loading"),d.src&&d.complete?t():(function(){if(!e)return;if(null==e?void 0:e.querySelector(".f-spinner"))return;const t=L("spinnerTpl"),n=l(t);n&&(n.classList.add("f-spinner"),e.classList.add("is-loading"),null==a||a.insertAdjacentElement("afterbegin",n))}(),d.addEventListener("load",t,!1),d.addEventListener("error",t,!1),O.push(()=>{null==d||d.removeEventListener("load",t,!1),null==d||d.removeEventListener("error",t,!1)}))}(),Se},isDragging:be,isExpanded:Ee,isFullsize:we,isMousemoveMode:Q,localize:function(e,t=[]){const n=L("l10n")||{};e=String(e).replace(/\{\{(\w+)\}\}/g,(e,t)=>n[t]||e);for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e.replace(/\{\{(.*?)\}\}/g,(e,t)=>t)},off:function(e,t){for(const n of e instanceof Array?e:[e])P.has(n)&&P.set(n,P.get(n).filter(e=>e!==t));return Se},on:function(e,t){for(const n of e instanceof Array?e:[e])P.set(n,[...P.get(n)||[],t]);return Se},toggleFS:xe,updateControls:ce,version:"6.1.10",willZoomIn:ge,willZoomOut:ve};return Se};G.l10n={en_EN:j},G.getDefaults=()=>q;const X=(e,t)=>{let n=[];
2return e.childNodes.forEach(e=>{e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||n.push(e)}),n},Y=(e,...t)=>{const n=t.length;for(let o=0;o<n;o++){const n=t[o]||{};Object.entries(n).forEach(([t,n])=>{const o=Array.isArray(n)?[]:{};e[t]||Object.assign(e,{[t]:o}),a(n)?Object.assign(e[t],Y(e[t],n)):Array.isArray(n)?Object.assign(e,{[t]:[...n]}):Object.assign(e,{[t]:n})})}return e},U=function(e=0,t=0,n=0,o=0,i=0,s=!1){const l=(e-t)/(n-t)*(i-o)+o;return s?o<i?r(o,l,i):r(i,l,o):l},K=Object.assign(Object.assign({},j),{ERROR:"Something went wrong. <br /> Please try again later.",NEXT:"Next page",PREV:"Previous page",GOTO:"Go to page #%d",DOWNLOAD:"Download",TOGGLE_FULLSCREEN:"Toggle full-screen mode",TOGGLE_EXPAND:"Toggle full-size mode",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_AUTOPLAY:"Toggle slideshow"}),J=e=>{e.cancelable&&e.preventDefault()},Q={adaptiveHeight:!1,center:!0,classes:{container:"f-carousel",isEnabled:"is-enabled",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",hasAdaptiveHeight:"has-adaptive-height",viewport:"f-carousel__viewport",slide:"f-carousel__slide",isSelected:"is-selected"},dragFree:!1,enabled:!0,errorTpl:'<div class="f-html">{{ERROR}}</div>',fill:!1,infinite:!0,initialPage:0,l10n:K,rtl:!1,slides:[],slidesPerPage:"auto",spinnerTpl:'<div class="f-spinner"></div>',transition:"fade",tween:{clamp:!0,mass:1,tension:160,friction:25,restDelta:1,restSpeed:1,velocity:0},vertical:!1};let ee,te=0;const ne=(e,t={},n={})=>{te++;let c,u,d,f,g,v=0,m=Object.assign({},Q),h=Object.assign({},Q),p={},E=null,w=null,x=0,M=0,S=0,O=!1,L=!1,T=!1,P="height",A=0,R=!0,j=0,F=0,$=0,_=0,H="*",D=[],V=[];const q=new Set;let N=[],W=[],B=0,Z=0,G=0;function K(e,...t){let n=h[e];return n&&n instanceof Function?n(_e,...t):n}function oe(e,t=[]){const n=K("l10n")||{};e=String(e).replace(/\{\{(\w+)\}\}/g,(e,t)=>n[t]||e);for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e.replace(/\{\{(.*?)\}\}/g,(e,t)=>t)}const ie=new Map;function se(e,...t){const n=[...ie.get(e)||[]];h.on&&n.push(h.on[e]);for(const e of n)e&&e instanceof Function&&e(_e,...t);"*"!==e&&se("*",e,...t)}function le(){var e,t;const o=Y({},Q,m);Y(o,Q,m);let i="";const s=m.breakpoints||{};if(s)for(const[e,t]of Object.entries(s))window.matchMedia(e).matches&&(i+=e,Y(o,t));if(void 0===g||i!==g){if(g=i,0!==v){let n=null===(t=null===(e=W[j])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index;void 0===n&&(n=h.initialSlide),o.initialSlide=n,o.slides=[];for(const e of D)e.isVirtual&&o.slides.push(e)}Ie(),h=o,!1!==K("enabled")&&(v=0,se("init"),function(){for(const[e,t]of Object.entries(Object.assign(Object.assign({},n),h.plugins||{})))if(e&&!p[e]&&t instanceof Function){const n=t();n.init(_e,ne),p[e]=n}se("initPlugins")}(),function(){if(!E)return;const e=K("classes")||{};z(E,e.container);const t=K("style");if(t&&a(t))for(const[e,n]of Object.entries(t))E.style.setProperty(e,n);w=E.querySelector(`.${e.viewport}`),w||(w=document.createElement("div"),z(w,e.viewport),w.append(...X(E,`.${e.slide}`)),E.insertAdjacentElement("afterbegin",w)),E.carousel=_e,se("initLayout")}(),function(){if(!w)return;const e=K("classes")||{};D=[],[...X(w,`.${e.slide}`)].forEach(e=>{if(e.parentElement){const t=be(Object.assign({el:e,isVirtual:!1},e.dataset||{}));se("createSlide",t),D.push(t)}}),Me();for(const e of D)se("addSlide",e);ye(K("slides"));for(const e of D){const t=e.el;(null==t?void 0:t.parentElement)===w&&(z(t,h.classes.slide),z(t,e.class),Ce(e),se("attachSlideEl",e))}se("initSlides")}(),Se(),v=1,z(E,(K("classes")||{}).isEnabled||""),ke(),de(),u=y().on("start",()=>{c&&c.isPointerDown()||(ue(),ke())}).on("step",e=>{const t=A;A=e.pos,A!==t&&(R=!1,ke())}).on("end",e=>{(null==c?void 0:c.isPointerDown())||(A=e.pos,u&&!O&&(A<$||A>_)?u.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:A}).to({pos:r($,A,_)}).start():R||(R=!0,se("settle")))}),ae(),function(){if(!E||!w)return;E.addEventListener("click",Pe),document.addEventListener("mousemove",re);const e=w.getBoundingClientRect();if(B=e.height,Z=e.width,!d){let e=null;d=new ResizeObserver(()=>{e||(e=requestAnimationFrame(()=>{!function(){if(1!==v||!w)return;const e=W.length,t=w.getBoundingClientRect(),n=t.height,o=t.width;e>
21&&(T&&Math.abs(n-B)<.5||!T&&Math.abs(o-Z)<.5)||(Se(),ae(),B=n,Z=o,T&&!B||!T&&!Z||E&&w&&(e===W.length&&(null==c?void 0:c.isPointerDown())||(K("dragFree")&&(O||A>$&&A<_)?(ue(),ke()):je(j,{transition:!1}))))}(),e=null}))}),d.observe(w)}}(),se("ready"))}}function re(e){ee=e}function ae(){!1===K("gestures")?c&&(c.destroy(),c=void 0):c||function(){const e=K("gestures");!c&&!1!==e&&w&&(c=C(w,e).on("start",e=>{var t,n;if(!u)return;if(!1===K("gestures",e))return;const{srcEvent:o}=e;T&&b(o)&&!s(o.target)&&J(o),u.pause(),u.getCurrentVelocities().pos=0;const i=null===(t=W[j])||void 0===t?void 0:t.slides[0],l=null==i?void 0:i.el;i&&q.has(i.index)&&l&&(A=i.offset||0,A+=(function(e){const t=window.getComputedStyle(e),n=new DOMMatrixReadOnly(t.transform);return{width:n.m41||0,height:n.m42||0}}(l)[P]||0)*(L&&!T?1:-1)),Le(),O||(A<$||A>_)&&u.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:(null===(n=u.getCurrentVelocities())||void 0===n?void 0:n.pos)||0,restDelta:1,restSpeed:1}).from({pos:A}).to({pos:r($,A,_)}).start()}).on("move",e=>{var t,n;if(!1===K("gestures",e))return;const{srcEvent:o,axis:i,deltaX:l,deltaY:r}=e;if(b(o)&&(null===(t=o.touches)||void 0===t?void 0:t.length)>1)return;const a=o.target,c=s(a),d=c?c.scrollHeight>c.clientHeight?"y":"x":void 0;if(c&&c!==w&&(!i||i===d))return;if(!i)return J(o),o.stopPropagation(),void o.stopImmediatePropagation();if("y"===i&&!T||"x"===i&&T)return;if(J(o),o.stopPropagation(),!u)return;const f=L&&!T?1:-1,g=T?r:l;let v=(null==u?void 0:u.isRunning())?u.getEndValues().pos:A,m=1;O||(v<=$&&g*f<0?(m=Math.max(.01,1-(Math.abs(1/me()*Math.abs(v-$))||0)),m*=.2):v>=_&&g*f>0&&(m=Math.max(.01,1-(Math.abs(1/me()*Math.abs(v-_))||0)),m*=.2)),v+=g*m*f,u.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:(null===(n=u.getCurrentVelocities())||void 0===n?void 0:n.pos)||0,restDelta:1,restSpeed:1}).from({pos:A}).to({pos:v}).start()}).on("panstart",e=>{!1!==K("gestures",e)&&(null==e?void 0:e.axis)===(T?"y":"x")&&z(w,"is-dragging")}).on("panend",e=>{!1!==K("gestures",e)&&k(w,"is-dragging")}).on("end",e=>{var t,n;if(!1===K("gestures",e))return;const{srcEvent:o,axis:i,velocityX:l,velocityY:a,currentTouch:c}=e;if(c.length>0||!u)return;const d=o.target,f=s(d),g=f?f.scrollHeight>f.clientHeight?"y":"x":void 0,v=f&&(!i||i===g);T&&b(o)&&!i&&Pe(o);const m=W.length,h=K("dragFree");if(!m)return;let y=v?0:K("vertical")?a:l;i!==(T?"y":"x")&&(y=0);let E=(null==u?void 0:u.isRunning())?u.getEndValues().pos:A;const w=L&&!T?1:-1;if(v||(E+=y*(h?5:1)*w),!O&&(y*w<=0&&E<$||y*w>=0&&E>_)){let e=0;return Math.abs(y)>0&&(e=2*Math.abs(y),e=Math.min(.3*me(),e)),E=r($+-1*e,E,_+e),void u.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*y,restDelta:1,restSpeed:1}).from({pos:A}).to({pos:E}).start()}if(h||(null===(t=p.Autoscroll)||void 0===t?void 0:t.isEnabled()))return void(Math.abs(y)>10?u.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*y,restDelta:1,restSpeed:1}).from({pos:A}).to({pos:E}).start():u.isRunning()||R||(R=!0,se("settle")));if(!h&&!(null===(n=p.Autoscroll)||void 0===n?void 0:n.isEnabled())&&(!e.offsetX&&!e.offsetY||"y"===i&&!T||"x"===i&&T))return void je(j,{transition:"tween"});let x=ge(E);Math.abs(y)>10&&x===j&&(x+=y>0?L&&!T?1:-1:L&&!T?-1:1),je(x,{transition:"tween",tween:{velocity:-1*y}})}).init())}(),I(w,"is-draggable",!!c&&W.length>0)}function ce(e="*"){var t;const n=[];for(const o of D)("*"===e||o.class&&o.class.includes(e)||o.el&&(null===(t=o.el)||void 0===t?void 0:t.classList.contains(e)))&&n.push(o);f=void 0,H=e,V=[...n]}function ue(){if(!u)return;const e=ge((null==u?void 0:u.isRunning())?u.getEndValues().pos:A);e!==j&&(f=j,j=e,Ce(),de(),fe(),se("change",j,f))}function de(){var e,t;if(!E)return;for(const e of E.querySelectorAll("[data-carousel-index]"))e.innerHTML=j+"";for(const e of E.querySelectorAll("[data-carousel-page]"))e.innerHTML=j+1+"";for(const e of E.querySelectorAll("[data-carousel-pages]"))e.innerHTML=W.length+"";for(const t of E.querySelectorAll("[data-carousel-go-to]"))parseInt((null===(e=t.dataset)||void 0===e?void 0:e.carouselGoTo)||"-1",10)===j?t.setAttribute("aria-current","true"):t.removeAttribute("aria-current");for(const e of E.querySelectorAll("[data-carousel-go-prev]"))e.toggleAttribute("aria-disabled",!Fe()),Fe()?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1");for(const e of E.querySelectorAll("[data-carousel-go-next]"))e.toggleAttribute("aria-disabled",!$e()),$e()?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1");let n=!1;const o=null===(t=W[j])||void 0===t?void 0:t.slides[0];o&&(o.downloadSrc||"image"===o.type&&o.src)&&(n=!0);for(const e of E.querySelectorAll("[data-carousel-download]"))e.toggleAttribute("aria-disabled",!n)}function fe(e){var t;e||(e=null===(t=W[j])||void 0===t?void 0:t.slides[0]);const n=null==e?void 0:e.el;
2if(n)for(const t of n.querySelectorAll("[data-slide-index]"))t.innerHTML=e.index+1+""}function ge(e){var t,n,o;if(!W.length)return 0;const i=he();let s=e;O?s-=Math.floor((e-(null===(t=W[0])||void 0===t?void 0:t.pos))/i)*i||0:s=r(null===(n=W[0])||void 0===n?void 0:n.pos,e,null===(o=W[W.length-1])||void 0===o?void 0:o.pos);const l=new Map;let a=0;for(const e of W){const t=Math.abs(e.pos-s),n=Math.abs(e.pos-s-i),o=Math.abs(e.pos-s+i),r=Math.min(t,n,o);l.set(a,r),a++}const c=l.size>0?[...l.entries()].reduce((e,t)=>t[1]<e[1]?t:e):[j,0];return parseInt(c[0])}function ve(){return G}function me(){return x}function he(e=!0){return V.length?V.reduce((e,t)=>e+t.dim,0)+(V.length-(O&&e?0:1))*G:0}function pe(e){const t=he(),n=me();if(!t||!w||!n)return[];const o=[];e=void 0===e?A:e,O&&(e-=Math.floor(e/t)*t||0);let i=0;for(let s of V){const l=(t=0)=>{o.indexOf(s)>-1||(s.pos=i-e+t||0,s.offset+t>e-s.dim-M+.51&&s.offset+t<e+n+S-.51&&o.push(s))};s.offset=i,O&&(l(t),l(-1*t)),l(),i+=s.dim+G}return o}function ye(e,t){const n=[];for(const t of Array.isArray(e)?e:[e]){const e=be(Object.assign(Object.assign({},t),{isVirtual:!0}));e.el||(e.el=document.createElement("div")),se("createSlide",e),n.push(e)}D.splice(void 0===t?D.length:t,0,...n),Me();for(const e of n)se("addSlide",e),Ee(e);return ce(H),n}function be(e){return(o(e)||e instanceof HTMLElement)&&(e={html:e}),Object.assign({index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:""},e)}function Ee(e){let t=e.el;if(!e||!t)return;const n=e.html?e.html instanceof HTMLElement?e.html:l(e.html):void 0;n&&(z(n,"f-html"),e.htmlEl=n,z(t,"has-html"),t.append(n),se("contentReady",e))}function we(e){if(!w||!e)return;let t=e.el;if(t){if(t.setAttribute("index",e.index+""),t.parentElement!==w){let n;z(t,h.classes.slide),z(t,e.class),Ce(e);for(const t of D)if(t.index>e.index){n=t.el;break}w.insertBefore(t,n&&w.contains(n)?n:null),se("attachSlideEl",e)}return fe(e),t}}function xe(e){const t=null==e?void 0:e.el;t&&(t.remove(),Oe(t),se("detachSlideEl",e))}function Me(){for(let e=0;e<D.length;e++){const t=D[e],n=t.el;n&&(t.index!==e&&Oe(n),n.setAttribute("index",`${e}`)),t.index=e}}function Se(){var e,t,n,o,s;if(!E||!w)return;L=K("rtl"),T=K("vertical"),P=T?"height":"width";const l=K("classes");if(I(E,l.isLTR,!L),I(E,l.isRTL,L),I(E,l.isHorizontal,!T),I(E,l.isVertical,T),I(E,l.hasAdaptiveHeight,K("adaptiveHeight")),x=0,M=0,S=0,G=0,w){w.childElementCount||(w.style.display="grid");const e=w.getBoundingClientRect();x=w.getBoundingClientRect()[P]||0;const t=window.getComputedStyle(w);G=parseFloat(t.getPropertyValue("--f-carousel-gap"))||0,"visible"===t.getPropertyValue("overflow-"+(T?"y":"x"))&&(M=Math.abs(e[T?"top":"left"]),S=Math.abs(window[T?"innerHeight":"innerWidth"]-e[T?"bottom":"right"])),w.style.display=""}if(!x)return;const a=function(){let e=0;if(w){let t=document.createElement("div");t.style.display="block",z(t,h.classes.slide),w.appendChild(t),e=t.getBoundingClientRect()[P],t.remove(),t=void 0}return e}();for(const t of V){const n=t.el;let o=0;if(!t.isVirtual&&n&&i(n)){let t=!1;n.parentElement&&n.parentElement===w||(w.appendChild(n),t=!0),o=n.getBoundingClientRect()[P],t&&(null===(e=n.parentElement)||void 0===e||e.removeChild(n))}else o=a;t.dim=o}if(O=!1,K("infinite")){O=!0;const e=he();let n=x+M+S;for(let o=0;o<V.length;o++){const i=(null===(t=V[o])||void 0===t?void 0:t.dim)+G;if(e-i<n&&e-i-n<i){O=!1;break}}}!function(){var e;if(!E)return;const t=me(),n=he(!1);let o=K("slidesPerPage");o="auto"===o?1/0:parseFloat(o+""),W=[];let i=0,s=0;for(const n of V)(!W.length||i+n.dim-t>.05||s>=o)&&(W.push({index:W.length,slides:[],dim:0,offset:0,pos:0}),i=0,s=0),null===(e=W[W.length-1])||void 0===e||e.slides.push(n),i+=n.dim+G,s++;const l=K("center"),a=K("fill");let c=0;for(const e of W){e.dim=(e.slides.length-1)*G;for(const t of e.slides)e.dim+=t.dim;e.offset=c,e.pos=c,!1!==l&&(e.pos-=.5*(t-e.dim)),a&&!O&&n>t&&(e.pos=r(0,e.pos,n-t)),c+=e.dim+G}const u=[];let d;for(const e of W){const t=Object.assign({},e);d&&Math.abs(t.pos-d.pos)<.1?(d.dim+=t.dim,d.slides=[...d.slides,...t.slides]):(d=t,t.index=u.length,u.push(t))}W=u,j=r(0,j,W.length-1)}(),$=(null===(n=W[0])||void 0===n?void 0:n.pos)||0,_=(null===(o=W[W.length-1])||void 0===o?void 0:o.pos)||0,0===v?function(){var e;f=void 0,j=K("initialPage");const t=K("initialSlide")||void 0;void 0!==t&&(j=_e.getPageIndex(t)||0),j=r(0,j,W.length-1),A=(null===(e=W[j])||void 0===e?void 0:e.pos)||0,F=A}():F=(null===(s=W[j||0])||void 0===s?void 0:s.pos)||0,se("refresh"),de()}function Oe(e){if(!e||!i(e))return;const t=parseInt(e.getAttribute("index")||"-1");let n="";for(const t of Array.from(e.classList)){const e=t.match(/^f-(\w+)(Out|In)$/);e&&e[1]&&(n=e[1]+"")}if(!e||!n)return;const o=[`f-${n}Out`,`f-${n}In`,"to-prev","to-next","from-prev","from-next"];e.removeEventListener("animationend",Te),k(e,o.join(" ")),q.delete(t)}function Le(){if(!w)return;const e=q.size>0;for(const e of V)Oe(e.el);q.clear(),e&&ke()}function Te(e){var t;"f-"===(null===(t=e.animationName)||void 0===t?void 0:t.substring(0,2))&&(Oe(e.target),q.size||(k(E,"in-transition"),!R&&Math.abs(_e.getPosition(!0)-F)<.5&&(R=!0,se("settle"))),ke())}function Pe(e){var t;if(e.defaultPrevented)return;const n=e.composedPath()[0];if(n.closest("[data-carousel-go-prev]"))return J(e),void _e.prev();if(n.closest("[data-carousel-go-next]"))return J(e),void _e.next();const o=n.closest("[data-carousel-go-to]");if(o)return J(e),void _e.goTo(parseFloat(o.dataset.carouselGoTo||"")||
20);if(n.closest("[data-carousel-download]")){J(e);const n=null===(t=W[j])||void 0===t?void 0:t.slides[0];if(n&&(n.downloadSrc||"image"===n.type&&n.src)){const e=n.downloadFilename,t=document.createElement("a"),o=n.downloadSrc||n.src||"";t.href=o,t.target="_blank",t.download=e||o,t.click()}return}se("click",e)}function Ae(e){var t;const n=e.el;n&&(null===(t=n.querySelector(".f-spinner"))||void 0===t||t.remove())}function Re(e){var t;const n=e.el;n&&(null===(t=n.querySelector(".f-html.is-error"))||void 0===t||t.remove(),k(n,"has-error"))}function Ce(e){var t;e||(e=null===(t=W[j])||void 0===t?void 0:t.slides[0]);const n=null==e?void 0:e.el;if(!n)return;let i=K("formatCaption",e);void 0===i&&(i=e.caption),i=i||"";const s=K("captionEl");if(s&&s instanceof HTMLElement){if(e.index!==j)return;if(o(i)&&(s.innerHTML=oe(i+"")),i instanceof HTMLElement){if(i.parentElement===s)return;s.innerHTML="",i.parentElement&&(i=i.cloneNode(!0)),s.append(i)}return}if(!i)return;let l=e.captionEl||n.querySelector(".f-caption");!l&&i instanceof HTMLElement&&i.classList.contains("f-caption")&&(l=i),l||(l=document.createElement("div"),z(l,"f-caption"),o(i)?l.innerHTML=oe(i+""):i instanceof HTMLElement&&(i.parentElement&&(i=i.cloneNode(!0)),l.append(i)));const r=`f-caption-${te}_${e.index}`;l.setAttribute("id",r),l.dataset.selectable="true",z(n,"has-caption"),n.setAttribute("aria-labelledby",r),e.captionEl=l,n.insertAdjacentElement("beforeend",l)}function je(e,t={}){var n,i;let{transition:s,tween:l}=Object.assign({transition:h.transition,tween:h.tween},t||{});if(!E||!u)return;const c=W.length;if(!c)return;if(function(e,t){var n,i,s;if(!(E&&x&&u&&t&&o(t)&&"tween"!==t))return!1;for(const e of N)if(x-e.dim>.5)return!1;if(M>.5||S>.5)return;const l=W.length;let a=e>j?1:-1;e=O?(e%l+l)%l:r(0,e,l-1),L&&(a*=-1);const c=null===(n=W[j])||void 0===n?void 0:n.slides[0],d=null==c?void 0:c.index,f=null===(i=W[e])||void 0===i?void 0:i.slides[0],g=null==f?void 0:f.index,v=null===(s=W[e])||void 0===s?void 0:s.pos;if(void 0===g||void 0===d||d===g||A===v||Math.abs(x-((null==f?void 0:f.dim)||0))>1)return!1;R=!1,u.pause(),Le(),z(E,"in-transition"),A=F=v;const m=we(c),p=we(f);return ue(),m&&(q.add(d),m.style.transform="",m.addEventListener("animationend",Te),k(m,h.classes.isSelected),m.inert=!1,z(m,`f-${t}Out to-${a>0?"next":"prev"}`)),p&&(q.add(g),p.style.transform="",p.addEventListener("animationend",Te),z(p,h.classes.isSelected),p.inert=!1,z(p,`f-${t}In from-${a>0?"prev":"next"}`)),ke(),!0}(e,s))return;e=O?(e%c+c)%c:r(0,e,c-1);const d=(null===(n=W[e||0])||void 0===n?void 0:n.pos)||0;F=d;const g=u.isRunning()?u.getEndValues().pos:A;if(Math.abs(F-g)<1)return A=F,j!==e&&(Ce(),f=j,j=e,de(),fe(),se("change",j,f)),ke(),void(R||(R=!0,se("settle")));if(u.pause(),Le(),O){const e=he(),t=Math.floor((g-(null===(i=W[0])||void 0===i?void 0:i.pos))/e)||0,n=F+t*e;F=[n+e,n,n-e].reduce(function(e,t){return Math.abs(t-g)<Math.abs(e-g)?t:e})}!1!==s&&a(l)?u.spring(Y({},h.tween,l)).from({pos:A}).to({pos:F}).start():(A=F,ue(),ke(),R||(R=!0,se("settle")))}function ze(e){var t;let n=A;if(O&&!0!==e){const e=he();n-=(Math.floor((A-(null===(t=W[0])||void 0===t?void 0:t.pos)||0)/e)||0)*e}return n}function ke(){var e;if(!E||!w)return;N=pe();const t=new Set,n=[],o=W[j],i=h.setTransform;let s;for(const i of V){const l=q.has(i.index),r=N.indexOf(i)>-1,a=(null===(e=null==o?void 0:o.slides)||void 0===e?void 0:e.indexOf(i))>-1;if(i.isVirtual&&!l&&!r)continue;let c=we(i);if(c&&(n.push(i),a&&t.add(c),K("adaptiveHeight")&&a)){const e=(c.firstElementChild||c).getBoundingClientRect().height;s=null==s?e:Math.max(s,e)}}w&&s&&(w.style.height=`${s}px`),[...X(w,`.${h.classes.slide}`)].forEach(e=>{I(e,h.classes.isSelected,t.has(e));const n=D[parseInt(e.getAttribute("index")||"-1")];if(!n)return e.remove(),void Oe(e);const o=q.has(n.index),s=N.indexOf(n)>-1;if(n.isVirtual&&!o&&!s)return void xe(n);if(e.inert=!s,!1===i)return;let l=n.pos?Math.round(1e4*n.pos)/1e4:0,r=0,a=0,c=0,u=0;o||(r=T?0:L?-1*l:l,a=T?l:0,c=U(r,0,n.dim,0,100),u=U(a,0,n.dim,0,100)),i instanceof Function&&!o?i(_e,n,{x:r,y:a,xPercent:c,yPercent:u}):e.style.transform=r||a?`translate3d(${c}%, ${u}%,0)`:""}),se("render",n)}function Ie(){null==E||E.removeEventListener("click",Pe),document.removeEventListener("mousemove",re),q.clear(),null==d||d.disconnect(),d=void 0;for(const e of D){let t=e.el;t&&i(t)&&(e.state=void 0,Ae(e),Re(e),e.isVirtual?(xe(e),e.el=void 0):(Oe(t),t.style.transform="",w&&!w.contains(t)&&w.appendChild(t)))}for(const e of Object.values(p))null==e||e.destroy();p={},null==c||c.destroy(),c=void 0,null==u||u.destroy(),u=void 0;for(const[e,t]of Object.entries(h.classes||{}))"container"!==e&&k(E,t);k(w,"is-draggable")}function Fe(){return O||j>0}function $e(){return O||j<W.length-1}const _e={add:function(e,t){var n;let o=A;const i=j,s=he(),l=(null==u?void 0:u.isRunning())?u.getEndValues().pos:A,r=s&&Math.floor((l-((null===(n=W[0])||void 0===n?void 0:n.pos)||0))/s)||0;return ye(e,t),ce(H),Se(),u&&s&&(i===j&&(o-=r*s),o===F?A=F:u.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:o}).to({pos:F}).start()),ke(),_e},canGoPrev:Fe,canGoNext:$e,destroy:function(){return se("destroy"),window.removeEventListener("resize",le),Ie(),ie.clear(),E=null,W=[],D=[],h=Object.assign({},Q),p={},V=[],g=void 0,H="*",v=2,_e},emit:se,filter:function(e="*"){return ce(e),Se(),A=r($,A,_),ke(),se("filter",e),_e},getContainer:function(){return E},getGapDim:ve,getGestures:function(){return c},getLastMouseMove:function(){return ee},getOption:function(e){return K(e)},getOptions:function(){return h},getPage:function(){return W[j]},getPageIndex:function(e){if(void 0!==e){for(const t of W||[])for(const n of t.slides)if(n.index===e)return t.index;return-1}return j},getPageIndexFromPosition:ge,getPageProgress:function(e,t){var n;void 0===e&&(e=j);const o=W[e];if(!o)return e>j?-1:1;const i=he(),s=ve();let l=o.pos,r=ze();if(O&&!0!==t){const e=Math.floor((r-(null===(n=W[0])||void 0===n?void 0:n.pos))/i)||0;r-=e*i,l=[l+i,l,l-i].reduce(function(e,t){return Math.abs(t-r)<Math.abs(e-r)?t:e})}return(r-l)/(o.dim+s)||0},getPageVisibility:function(e){var t;void 0===e&&(e=j);const n=W[e];if(!n)return e>j?-1:1;const o=ze(),i=me();let s=n.pos;if(O){const e=he(),n=s+(Math.floor((o-(null===(t=W[0])||void 0===t?void 0:t.pos))/e)||0)*e;s=[n+e,n,n-e].reduce(function(e,t){return Math.abs(t-o)<Math.abs(e-o)?t:e})}return s>o&&s+n.dim<o+i?1:s<o?(s+n.dim-o)/n.dim||0:s+n.dim>o+i&&(o+i-s)/n.dim||0},getPages:function(){return W},getPlugins:function(){return p},getPosition:ze,getSlides:function(){return D},getState:function(){return v},getTotalSlideDim:he,getTween:function(){return u},getViewport:function(){return w},getViewportDim:me,getVisibleSlides:function(e){return void 0===e?N:pe(e)},goTo:je,hasNavigated:function(){return void 0!==f},hideError:Re,hideLoading:Ae,init:function(){if(!e||!i(e))throw new Error("No Element found");return 0!==v&&(Ie(),v=0),E=e,m=t,window.removeEventListener("resize",le),m.breakpoints&&window.addEventListener("resize",le),le(),_e},isInfinite:function(){return O},isInTransition:function(){return q.size>0},isRTL:function(){return L},isSettled:function(){return R},isVertical:function(){return T},localize:function(e,t=[]){return oe(e,t)},next:function(e={}){return je(j+1,e),_e},off:function(e,t){for(const n of e instanceof Array?e:[e])ie.has(n)&&ie.set(n,ie.get(n).filter(e=>e!==t));return _e},on:function(e,t){for(const n of e instanceof Array?e:[e])ie.set(n,[...ie.get(n)||[],t]);return _e},prev:function(e={}){return je(j-1,e),_e},reInit:function(e={},o){return Ie(),v=0,g=void 0,H="*",t=e,m=e,a(o)&&(n=o),le(),_e},remove:function(e){void 0===e&&(e=D.length-1);const t=D[e];return t&&(se("removeSlide",t),t.el&&(Oe(t.el),t.el.remove(),t.el=void 0),D.splice(e,1),ce(H),Se(),A=r($,A,_),ke()),_e},setPosition:function(e){A=e,ue(),ke()},showError:function(e,t){if(1===v){Ae(e),Re(e);const n=e.el;if(n){const o=document.createElement("div");z(o,"f-html"),z(o,"is-error"),o.innerHTML=oe(t||"<p>{{ERROR}}</p>"),e.htmlEl=o,z(n,"has-html has-error"),n.insertAdjacentElement("afterbegin",o),se("contentReady",e)}}return _e},showLoading:function(e){const t=e.el,n=null==t?void 0:t.querySelector(".f-spinner");if(!t||n)return _e;const o=K("spinnerTpl"),i=l(o);return i&&(z(i,"f-spinner"),t.insertAdjacentElement("beforeend",i)),_e},version:"6.1.10"};return _e};ne.l10n={en_EN:K},ne.getDefaults=()=>Q;const oe=(e=!0,t="--f-scrollbar-compensate",n="--f-body-margin",o="hide-scrollbar")=>{const i=document,s=i.body,l=i.documentElement;if(e){if(s.classList.contains(o))return;let e=window.innerWidth-l.getBoundingClientRect().width;e<0&&(e=0),l.style.setProperty(t,`${e}px`);const i=parseFloat(window.getComputedStyle(s).marginRight);i&&s.style.setProperty(n,`${i}px`),s.classList.add(o)}else s.classList.remove(o),s.style.setProperty(n,""),i.documentElement.style.setProperty(t,"")};function ie(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}const se=function(e="",t="",n=""){return e.split(t).join(n)},le={tpl:e=>`<img class="f-panzoom__content" \n ${e.srcset?'data-lazy-srcset="{{srcset}}"':""} \n ${e.sizes?'data-lazy-sizes="{{sizes}}"':""} \n data-lazy-src="{{src}}" alt="{{alt}}" />`},re=()=>{let e;function t(t,n){const o=null==e?void 0:e.getOptions().Zoomable;let i=(a(o)?Object.assign(Object.assign({},le),o):le)[t];return i&&"function"==typeof i&&n?i(n):i}function n(){e&&!1!==e.getOptions().Zoomable&&(e.on("addSlide",l),e.on("removeSlide",r),e.on("attachSlideEl",c),e.on("click",
2s),e.on("change",i),e.on("ready",i))}function i(){u();const t=(null==e?void 0:e.getVisibleSlides())||[];if(t.length>1||"slide"===(null==e?void 0:e.getOption("transition")))for(const n of t){const t=n.panzoomRef;t&&((null==e?void 0:e.getPage().slides)||[]).indexOf(n)<0&&t.execute(H.ZoomTo,Object.assign({},t.getStartPosition()))}}function s(e,t){const n=t.target;n&&!t.defaultPrevented&&n.dataset.panzoomAction&&d(n.dataset.panzoomAction)}function l(n,i){const s=i.el;if(!e||!s||i.panzoomRef)return;const l=i.src||i.lazySrc||"",r=i.alt||i.caption||`Image #${i.index}`,a=i.srcset||i.lazySrcset||"",c=i.sizes||i.lazySizes||"";if(l&&o(l)&&!i.html&&(!i.type||"image"===i.type)){i.type="image",i.thumbSrc=i.thumbSrc||l;let e=t("tpl",i);e=se(e,"{{src}}",l+""),e=se(e,"{{srcset}}",a+""),e=se(e,"{{sizes}}",c+""),s.insertAdjacentHTML("afterbegin",e)}const d=s.querySelector(".f-panzoom__content");if(!d)return;d.setAttribute("alt",r+"");const f=i.width&&"auto"!==i.width?parseFloat(i.width+""):"auto",g=i.height&&"auto"!==i.height?parseFloat(i.height+""):"auto",v=G(s,Object.assign({width:f,height:g,classes:{container:"f-zoomable"},event:()=>null==e?void 0:e.getLastMouseMove(),spinnerTpl:()=>(null==e?void 0:e.getOption("spinnerTpl"))||""},t("Panzoom")));v.on("*",(t,n,...o)=>{e&&("loading"===n&&(i.state=0),"loaded"===n&&(i.state=1),"error"===n&&(i.state=2,null==e||e.showError(i,"{{IMAGE_ERROR}}")),e.emit(`panzoom:${n}`,i,...o),"loading"===n&&e.emit("contentLoading",i),"ready"===n&&e.emit("contentReady",i),i.index===(null==e?void 0:e.getPageIndex())&&u())}),i.panzoomRef=v}function r(e,t){t.panzoomRef&&(t.panzoomRef.destroy(),t.panzoomRef=void 0)}function c(e,t){const n=t.panzoomRef;if(n)switch(n.getState()){case 0:n.init();break;case 3:n.execute(H.ZoomTo,Object.assign(Object.assign({},n.getStartPosition()),{velocity:0}))}}function u(){var t,n;const o=(null==e?void 0:e.getContainer())||void 0,i=null===(n=null===(t=null==e?void 0:e.getPage())||void 0===t?void 0:t.slides[0])||void 0===n?void 0:n.panzoomRef;if(o)if(i)i.updateControls(o);else for(const e of o.querySelectorAll("[data-panzoom-action]")||[])e.setAttribute("aria-disabled",""),e.setAttribute("tabindex","-1")}function d(t,...n){var o;null===(o=null==e?void 0:e.getPage().slides[0].panzoomRef)||void 0===o||o.execute(t,...n)}return{init:function(t){e=t,e.on("initPlugins",n)},destroy:function(){if(e){e.off("initPlugins",n),e.off("addSlide",l),e.off("removeSlide",r),e.off("attachSlideEl",c),e.off("click",s),e.off("change",i),e.off("ready",i);for(const t of e.getSlides())r(0,t)}e=void 0},execute:d}},ae={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},ce=()=>{let e,t;function n(){const t=null==e?void 0:e.getOptions().Sync;return a(t)?Object.assign(Object.assign({},ae),t):ae}function o(){const o=n().target;e&&o&&function(o){var a,f,g;e&&o&&(t=o,e.getOptions().classes=Object.assign(Object.assign({},e.getOptions().classes),{isSelected:""}),e.getOptions().initialSlide=(null===(f=null===(a=t.getPage())||void 0===a?void 0:a.slides[0])||void 0===f?void 0:f.index)||0,n().syncOnChange&&e.on("change",s),n().syncOnClick&&e.on("click",r),n().syncOnHover&&(null===(g=e.getViewport())||void 0===g||g.addEventListener("mouseover",c)),e&&t&&(e.on("ready",i),e.on("refresh",u),t.on("change",l),t.on("filter",d)))}(o)}function i(){f()}function s(){var n;if(e&&t){const o=(null===(n=e.getPage())||void 0===n?void 0:n.slides)||[],i=t.getPageIndex(o[0].index||0);i>-1&&t.goTo(i,e.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function l(){var n;if(e&&t){const o=e.getPageIndex((null===(n=t.getPage())||void 0===n?void 0:n.slides[0].index)||0);o>-1&&e.goTo(o,t.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function r(n,o){var i;if(!e||!t)return;if(null===(i=e.getTween())||void 0===i?void 0:i.isRunning())return;const s=null==e?void 0:e.getOptions().classes.slide;if(!s)return;const l=s?o.target.closest(`.${s}`):null;
2if(l){const e=parseInt(l.getAttribute("index")||"")||0,n=t.getPageIndex(e);t.goTo(n)}}function c(t){e&&r(0,t)}function u(){var n;if(e&&t){const o=e.getPageIndex((null===(n=t.getPage())||void 0===n?void 0:n.slides[0].index)||0);o>-1&&e.goTo(o,{tween:!1,transition:!1}),f()}}function d(n,o){e&&t&&(e.filter(o),l())}function f(){var n,o,i;if(!t)return;const s=(null===(o=null===(n=t.getPage())||void 0===n?void 0:n.slides[0])||void 0===o?void 0:o.index)||0;for(const t of(null==e?void 0:e.getSlides())||[])null===(i=t.el)||void 0===i||i.classList.toggle("is-selected",t.index===s)}return{init:function(t){e=t,e.on("initSlides",o)},destroy:function(){var n;null==e||e.off("ready",i),null==e||e.off("refresh",u),null==e||e.off("change",s),null==e||e.off("click",r),null===(n=null==e?void 0:e.getViewport())||void 0===n||n.removeEventListener("mouseover",c),null==t||t.off("change",l),null==t||t.off("filter",d),t=void 0,null==e||e.off("initSlides",o),e=void 0},getTarget:function(){return t}}},ue={showLoading:!0,preload:1},de="is-lazyloading",fe="is-lazyloaded",ge="has-lazyerror",ve=()=>{let e;function t(){const t=null==e?void 0:e.getOptions().Lazyload;return a(t)?Object.assign(Object.assign({},ue),t):ue}function n(n){var o;const i=n.el;if(!i)return;const s="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",l=Array.from(i.querySelectorAll(s));i.matches(s)&&l.push(i);for(const i of l){const s=i.dataset.lazySrc,l=i.dataset.lazySrcset,r=i.dataset.lazySizes,a=i.dataset.lazyBg,c=(i instanceof HTMLImageElement||i instanceof HTMLSourceElement)&&(s||l),u=i instanceof HTMLElement&&a;if(!c&&!u)continue;const d=s||l||a;if(d){if(c&&d){const a=null===(o=i.parentElement)||void 0===o?void 0:o.classList.contains("f-panzoom__wrapper");t().showLoading&&(null==e||e.showLoading(n)),i.addEventListener("load",()=>{null==e||e.hideLoading(n),k(i,ge),i instanceof HTMLImageElement?i.decode().then(()=>{k(i,de),z(i,fe)}).catch(()=>{k(i,de),z(i,fe)}):(k(i,de),z(i,fe)),a||null==e||e.emit("lazyLoad:loaded",n,i,d)}),i.addEventListener("error",()=>{null==e||e.hideLoading(n),k(i,de),z(i,ge),a||null==e||e.emit("lazyLoad:error",n,i,d)}),i.classList.add("f-lazyload"),i.classList.add(de),a||null==e||e.emit("lazyLoad:load",n,i,d),s&&(i.src=s),l&&(i.srcset=l),r&&(i.sizes=r)}else u&&(document.body.contains(i)||(document.createElement("img").src=a),i.style.backgroundImage=`url('${a}')`);delete i.dataset.lazySrc,delete i.dataset.lazySrcset,delete i.dataset.lazySizes,delete i.dataset.lazyBg}}}function o(){if(!e)return;const o=[...e.getVisibleSlides()],i=t().preload;if(i>0){const t=e.getPosition(),n=e.getViewportDim();o.push(...e.getVisibleSlides(t+n*i),...e.getVisibleSlides(t-n*i))}for(const e of o)n(e)}return{init:function(t){e=t,e.on("render",o)},destroy:function(){null==e||e.off("render",o),e=void 0}}},me='<svg width="24" height="24" viewBox="0 0 24 24" tabindex="-1">',he="</svg>",pe={prevTpl:me+'<path d="M15 3l-9 9 9 9"></path>'+he,nextTpl:me+'<path d="M9 3l9 9-9 9"></path>'+he},ye=()=>{let e,t,n;function o(){const t=null==e?void 0:e.getOptions().Arrows;return a(t)?Object.assign(Object.assign({},pe),t):pe}function i(t){if(!e)return;const n=`<button data-carousel-go-${t} tabindex="0" class="f-button is-arrow is-${t}" title="{{${t.toUpperCase()}}}">`+o()[`${t}Tpl`]+"</button",i=l(e.localize(n))||void 0;return i&&z(i,o()[`${t}Class`]),i}function s(){var o;null==t||t.remove(),t=void 0,null==n||n.remove(),n=void 0,null===(o=null==e?void 0:e.getContainer())||void 0===o||o.classList.remove("has-arrows")}function r(){e&&!1!==e.getOptions().Arrows&&e.getPages().length>1?(function(){if(!e)return;const o=e.getViewport();o&&(t||(t=i("prev"),t&&o.insertAdjacentElement("beforebegin",t)),n||(n=i("next"),n&&o.insertAdjacentElement("afterend",n)),I(e.getContainer(),"has-arrows",!(!t&&!n)))}(),e&&(null==t||t.toggleAttribute("aria-disabled",!e.canGoPrev()),null==n||n.toggleAttribute("aria-disabled",!e.canGoNext()))):s()}return{init:function(t){e=t.on(["change","refresh"],r)},destroy:function(){s(),null==e||e.off(["change","refresh"],r),e=void 0}}},be='<circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/>',Ee='<g>
2<line x1="11" y1="8" x2="11" y2="14"></line></g>'+be,we={moveLeft:["moveLeft","MOVE_LEFT",'<path d="M5 12h14M5 12l6 6M5 12l6-6"/>'],moveRight:["moveRight","MOVE_RIGHT",'<path d="M5 12h14M13 18l6-6M13 6l6 6"/>'],moveUp:["moveUp","MOVE_UP",'<path d="M12 5v14M18 11l-6-6M6 11l6-6"/>'],moveDown:["moveDown","MOVE_DOWN",'<path d="M12 5v14M18 13l-6 6M6 13l6 6"/>'],zoomOut:["zoomOut","ZOOM_OUT",be],zoomIn:["zoomIn","ZOOM_IN",Ee],toggleFull:["toggleFull","TOGGLE_FULL",Ee],iterateZoom:["iterateZoom","ITERATE_ZOOM",Ee],toggle1to1:["toggleFull","TOGGLE_FULL",'<path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/>'],rotateCCW:["rotateCCW","ROTATE_CCW",'<path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/>'],rotateCW:["rotateCW","ROTATE_CW",'<path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/>'],flipX:["flipX","FLIP_X",'<path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/>'],flipY:["flipY","FLIP_Y",'<path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/>'],reset:["reset","RESET",'<path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/>'],toggleFS:["toggleFS","TOGGLE_FS",'<g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g>']},xe={};for(const[e,t]of Object.entries(we))xe[e]={tpl:`<button data-panzoom-action="${t[0]}" class="f-button" title="{{${t[1]}}}"><svg>${t[2]}</svg></button>`};var Me;!function(e){e.Left="left",e.middle="middle",e.right="right"}(Me||(Me={}));const Se=Object.assign({counter:{tpl:'<div class="f-counter"><span data-carousel-page></span>/<span data-carousel-pages></span></div>'},download:{tpl:'<button data-carousel-download class="f-button" title="{{DOWNLOAD}}"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></button>'},autoplay:{tpl:'<button data-autoplay-action="toggle" class="f-button" title="{{TOGGLE_AUTOPLAY}}"><svg><g><path d="M5 3.5 19 12 5 20.5Z"/></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},thumbs:{tpl:'<button data-thumbs-action="toggle" class="f-button" title="{{TOGGLE_THUMBS}}"><svg><rect width="18" height="14" x="3" y="3" rx="2"/><path d="M4 21h1M9 21h1M14 21h1M19 21h1"/></svg></button>'}},xe),Oe={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},Le=()=>{let e,t;function n(t){const n=null==e?void 0:e.getOptions().Toolbar;let o=(a(n)?Object.assign(Object.assign({},Oe),n):Oe)[t];return o&&"function"==typeof o&&e?o(e):o}function i(){var i,s;if(!(null==e?void 0:e.getOptions().Toolbar))return;if(!e||t)return;const r=e.getContainer();if(!r)return;let c=n("enabled");if(!c)return;const u=n("absolute"),d=e.getSlides().length>1;let f=!1,g=!1;for(const t of e.getSlides())t.panzoomRef&&(f=!0),(t.downloadSrc||"image"===t.type&&t.src)&&(g=!0);const v=(null===(i=e.getPlugins().Thumbs)||void 0===i?void 0:i.isEnabled())||!1,m=d&&e.getPlugins().Autoplay||!1,h=e.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if("auto"===c&&(c=f),!c)return;t=r.querySelector(".f-carousel__toolbar")||void 0,t||(t=document.createElement("div"),t.classList.add("f-carousel__toolbar"));const p=n("display"),y=Y({},Se,n("items"));for(const n of["left","middle","right"]){const i=p[n]||[],s=document.createElement("div");s.classList.add("f-carousel__toolbar__column"),s.classList.add(`is-${n}`);for(const t of i){let n;if(o(t)){if("counter"===t&&!d)continue;if("autoplay"===t&&!m)continue;if(xe[t]&&!f)continue;if("fullscreen"===t&&!h)continue;if("thumbs"===t&&!v)continue;if("download"===t&&!g)continue;n=y[t]}if(a(t)&&(n=t),n&&n.tpl){let t=e.localize(n.tpl);t=t.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">');const o=l(t);o&&("function"==typeof n.click&&e&&o.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof n.click&&e&&n.click(e,t)}),s.append(o))}}t.append(s)}if(t.childElementCount){if(u&&t.classList.add("is-absolute"),!t.parentElement){const o=n("parentEl");o?o.insertAdjacentElement("afterbegin",t):null===(s=e.getViewport())||void 0===s||s.insertAdjacentElement("beforebegin",t)}r.contains(t)&&r.classList.add("has-toolbar")}}return{init:function(t){e=t,null==e||e.on("initSlides",i)},destroy:function(){var n;null==e||e.off("initSlides",i),null===(n=null==e?void 0:e.getContainer())||void 0===n||n.classList.remove("has-toolbar"),null==t||t.remove(),t=void 0},add:function(e,t){Se[e]=t},isEnabled:function(){return!!t}}},Te={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},Pe=()=>{let e,t,n=!1,o=!1,i=!1,s=null;function l(t){const n=null==e?void 0:e.getOptions().Autoplay;let o=(a(n)?Object.assign(Object.assign({},Te),n):Te)[t];return o&&"function"==typeof o&&e?o(e):o}function r(){clearTimeout(t),t=void 0}function c(){if(!e||!n||i||o||t||!e.isSettled()||function(){var t;const n=(null===(t=null==e?void 0:e.getPage())||void 0===t?void 0:t.slides)||[];for(const e of n)if(0===e.state)return!0;return!1}())return;!function(){var t,n,o,i;if(!e)return;if(f(),!l("showProgressbar"))return;let r=l("progressbarParentEl");if(!r&&(null===(t=e.getPlugins().Toolbar)||void 0===t?void 0:t.isEnabled())&&(r=e.getContainer()),!r&&!0!==(null===(n=e.getPlugins().Toolbar)||void 0===n?void 0:n.isEnabled())){const t=(null===(o=e.getPages()[0])||void 0===o?void 0:o.slides)||[],n=(null===(i=e.getPage())||void 0===i?void 0:i.slides)||[];1===t.length&&1===n.length&&(r=n[0].el)}if(r||(r=e.getViewport()),!r)return;s=document.createElement("div"),z(s,"f-progressbar"),r.prepend(s);const a=l("timeout")||1e3;s.style.animationDuration=`${a}ms`}();const r=l("timeout");t=setTimeout(()=>{e&&n&&!o&&(e.isInfinite()||e.getPageIndex()!==e.getPages().length-1?e.next():e.goTo(0))},r)}function u(){var t;if(!e||e.getPages().length<2||!1===e.getOptions().Autoplay)return;if(n)return;n=!0,e.emit("autoplay:start",l("timeout")),z(e.getContainer(),"has-autoplay"),null===(t=e.getTween())||void 0===t||t.on("start",y);const o=null==e?void 0:e.getContainer();o&&l("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(o.addEventListener("mouseenter",b,!1),o.addEventListener("mouseleave",E,!1)),e.on("change",h),e.on("settle",p),e.on("contentReady",v),e.on("panzoom:touchStart",d),e.on("panzoom:wheel",d),e.isSettled()&&c()}function d(){var t;
2if(r(),f(),e){if(n){e.emit("autoplay:end"),null===(t=e.getTween())||void 0===t||t.off("start",y);const n=e.getContainer();n&&(n.classList.remove("has-autoplay"),n.removeEventListener("mouseenter",b,!1),n.removeEventListener("mouseleave",E,!1))}e.off("change",h),e.off("settle",p),e.off("contentReady",v),e.off("panzoom:touchStart",d),e.off("panzoom:wheel",d)}n=!1,o=!1}function f(){s&&(s.remove(),s=null)}function g(){e&&e.getPages().length>1&&l("autoStart")&&u()}function v(){c()}function m(e,t){const n=t.target;n&&!t.defaultPrevented&&"toggle"===n.dataset.autoplayAction&&w.toggle()}function h(){!e||!(null==e?void 0:e.isInfinite())&&e.getPageIndex()===e.getPages().length-1?d():(f(),r())}function p(){c()}function y(){r(),f()}function b(){i=!0,n&&(f(),r())}function E(){i=!1,n&&!o&&(null==e?void 0:e.isSettled())&&c()}const w={init:function(t){e=t,e.on("ready",g),e.on("click",m)},destroy:function(){d(),null==e||e.off("ready",g),null==e||e.off("click",m),e=void 0},isEnabled:()=>n,pause:function(){o=!0,r()},resume:function(){o=!1,n&&!i&&c()},start(){u()},stop(){d()},toggle(){n?d():u()}};return w},Ae={Carousel:{Lazyload:{showLoading:!1}},minCount:2,showOnStart:!0,thumbTpl:'<button aria-label="Slide to #{{page}}"><img draggable="false" alt="{{alt}}" data-lazy-src="{{src}}" /></button>',type:"modern"};let Re;const Ce=()=>{let e,t,n,o,i,s=0,c=0,u=!0;function d(t){const n=null==e?void 0:e.getOptions().Thumbs;let o=(a(n)?Object.assign(Object.assign({},Ae),n):Ae)[t];return o&&"function"==typeof o&&e?o(e):o}function f(){if(!e)return!1;if(!1===(null==e?void 0:e.getOptions().Thumbs))return!1;let t=0;for(const n of e.getSlides())n.thumbSrc&&t++;return t>=d("minCount")}function g(){return"modern"===d("type")}function v(){return"scrollable"===d("type")}function m(){const t=[],n=(null==e?void 0:e.getSlides())||[];for(const e of n)t.push({index:e.index,class:e.thumbClass,html:h(e)});return t}function h(e){const t=e.thumb?e.thumb instanceof HTMLImageElement?e.thumb.src:e.thumb:e.thumbSrc||void 0,n=void 0===e.thumbAlt?`Thumbnail #${(e.index||0)+1}`:e.thumbAlt+"";let o=d("thumbTpl");return o=se(o,"{{alt}}",n),o=se(o,"{{src}}",t+""),o=se(o,"{{index}}",`${e.index||0}`),o=se(o,"{{page}}",`${(e.index||0)+1}`),o}function p(e){return`<div index="${e.index||0}" class="f-thumbs__slide ${e.class||""}">${e.html||""}</div>`}function y(t=!1){var o;const i=null==e?void 0:e.getContainer();if(!e||!i||n)return;if(!f())return;const s=(null===(o=d("Carousel"))||void 0===o?void 0:o.classes)||{};if(s.container=s.container||"f-thumbs",!n){const e=i.nextElementSibling;(null==e?void 0:e.classList.contains(s.container))&&(n=e)}if(!n){n=document.createElement("div");const e=d("parentEl");e?e.insertAdjacentElement("beforeend",n):i.insertAdjacentElement("afterend",n)}z(n,s.container),z(n,"f-thumbs"),z(n,`is-${d("type")}`),t&&z(n,"is-hidden")}function b(){if(!n||!v())return;o=document.createElement("div"),z(o,"f-thumbs__viewport");let t="";for(const e of m())"string"==typeof(e.html||"")&&(t+=p(e));o.innerHTML=t,n.append(o),n.addEventListener("click",t=>{t.preventDefault();const n=t.target.closest("[index]"),o=parseInt((null==n?void 0:n.getAttribute("index"))||"-1");e&&o>-1&&e.goTo(o)}),i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.target instanceof HTMLImageElement&&(e.target.src=e.target.getAttribute("data-lazy-src")+"",e.target.removeAttribute("data-lazy-src"),null==i||i.unobserve(e.target))})},{root:o,rootMargin:"100px"}),n.querySelectorAll("[data-lazy-src]").forEach(e=>{null==i||i.observe(e)}),null==e||e.emit("thumbs:ready")}function E(){var o;if(!Re||!e||!n||v()||t)return;const i=m();if(!i.length)return;const l=Y({},{Sync:{target:e},Lazyload:{preload:1},slides:i,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},center:!0,fill:!g(),infinite:!1,dragFree:!0,rtl:e.getOptions().rtl||!1,slidesPerPage:e=>{let t=0;return g()&&(function(){if(!g())return;if(!n)return;const e=e=>n&&parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-"+e))||0;s=e("width"),c=e("clip-width")}(),t=4*(s-c)),e&&e.getTotalSlideDim()<=e.getViewportDim()-t?1/0:1}},Ae.Carousel||{},d("Carousel")||{});t=Re(n,l,{Sync:ce,Lazyload:ve}),t.on("ready",()=>{z(n,"is-syncing"),null==e||e.emit("thumbs:ready"),g()&&(null==e||e.on("render",S))}),t.on("destroy",()=>{null==e||e.emit("thumbs:destroy")}),t.init(),null===(o=t.getGestures())||void 0===o||o.on("start",()=>{u=!1}),t.on("click",(e,t)=>{const n=t.target;if(n){const e=n.matches("button")?n:n.firstElementChild;e&&e.matches("button")&&(t.preventDefault(),e.focus({preventScroll:!0}))}}),z(e.getContainer(),"has-thumbs"),C()}function w(){f()&&d("showOnStart")&&(y(),b())}function x(){var t;f()&&(E(),null==e||e.on("addSlide",L),null==e||e.on("removeSlide",T),null==e||e.on("click",P),null==e||e.on("refresh",A),null===(t=null==e?void 0:e.getGestures())||void 0===t||t.on("start",M),R(!0))}function M(){var e,t;u=!0,(null===(e=document.activeElement)||void 0===e?void 0:e.closest(".f-thumbs"))&&(null===(t=document.activeElement)||void 0===t||t.blur())}function S(){var o,i;null==n||n.classList.toggle("is-syncing",!1===(null==e?void 0:e.hasNavigated())||(null===(o=null==e?void 0:e.getTween())||void 0===o?void 0:o.isRunning())),
2C(),(null===(i=null==e?void 0:e.getGestures())||void 0===i?void 0:i.isPointerDown())&&function(){if(!g())return;if(!e||!t)return;if(!u)return;const n=t.getTween(),o=t.getPages(),i=e.getPageIndex()||0,l=e.getPageProgress()||0;if(!(e&&o&&o[i]&&n))return;const a=n.isRunning()?n.getCurrentValues().pos:t.getPosition();if(void 0===a)return;let d=o[i].pos+l*(s-c);d=r(o[0].pos,d,o[o.length-1].pos),n.from({pos:a}).to({pos:d}).start()}()}function O(){u=!0,R()}function L(e,n){const s={html:h(n)};if(t)t.add(s,n.index);else if(o){const e=l(p(s));if(e){o.append(e);const t=e.querySelector("img");t&&(null==i||i.observe(t))}}}function T(e,n){var i;t?t.remove(n.index):o&&(null===(i=o.querySelector(`[index="${n.index}"]`))||void 0===i||i.remove())}function P(e,t){var o;const i=t.target;t.defaultPrevented||"toggle"!==(null===(o=null==i?void 0:i.dataset)||void 0===o?void 0:o.thumbsAction)||(n||(y(!0),b(),E()),n&&n.classList.toggle("is-hidden"))}function A(){R()}function R(t=!1){if(!e||!o||!v())return;const n=e.getPageIndex();o.querySelectorAll(".is-selected").forEach(e=>{e.classList.remove("is-selected")});const i=o.querySelector(`[index="${n}"]`);if(i){i.classList.add("is-selected");const e=o.getBoundingClientRect(),n=i.getBoundingClientRect(),s=i.offsetTop-o.offsetTop-.5*e.height+.5*n.height,l=i.scrollLeft-o.scrollLeft-.5*e.width+.5*n.width;o.scrollTo({top:s,left:l,behavior:t?"instant":"smooth"})}}function C(){if(!g())return;if(!e||!t)return;const n=(null==t?void 0:t.getSlides())||[];let o=-.5*s;for(const t of n){const n=t.el;if(!n)continue;let i=e.getPageProgress(t.index)||0;i=Math.max(-1,Math.min(1,i)),i>-1&&i<1&&(o+=.5*s*(1-Math.abs(i))),i=Math.round(1e4*i)/1e4,o=Math.round(1e4*o)/1e4,n.style.setProperty("--progress",`${Math.abs(i)}`),n.style.setProperty("--shift",`${(null==e?void 0:e.isRTL())?-1*o:o}px`),i>-1&&i<1&&(o+=.5*s*(1-Math.abs(i)))}}return{init:function(t,n){Re=n,e=t,e.on("ready",x),e.on("initSlides",w),e.on("change",O)},destroy:function(){var o,i;v()&&(null==e||e.emit("thumbs:destroy")),null==e||e.off("ready",x),null==e||e.off("initSlides",w),null==e||e.off("change",O),null==e||e.off("render",S),null==e||e.off("addSlide",L),null==e||e.off("click",P),null==e||e.off("refresh",A),null===(o=null==e?void 0:e.getGestures())||void 0===o||o.off("start",M),null===(i=null==e?void 0:e.getContainer())||void 0===i||i.classList.remove("has-thumbs"),e=void 0,null==t||t.destroy(),t=void 0,null==n||n.remove(),n=void 0},getCarousel:function(){return t},getContainer:function(){return n},getType:function(){return d("type")},isEnabled:f}},je={autosize:!1,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!1},ze=()=>{let e;function t(){const t=null==e?void 0:e.getOptions().Html;return a(t)?Object.assign(Object.assign({},je),t):je}function n(e,n){let o=e[n];return void 0===o&&(o=t()[n]),"true"===o||"false"!==o&&o}function i(e,t){let n=t.type,i=t.src;if(!n&&o(i)){if("#"===i.charAt(0)?n="inline":i.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|ico|tif(f)?)((\?|#).*)?$)/i)?n="image":i.match(/\.(pdf)((\?|#).*)?$/i)?n="pdf":i.match(/\.(html|php)((\?|#).*)?$/i)&&(n="iframe"),!n){const e=i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);e&&(i=`https://maps.google.${e[1]}/?ll=${(e[2]?e[2]+"&z="+Math.floor(parseFloat(e[3]))+(e[4]?e[4].replace(/^\//,"&"):""):e[4]+"").replace(/\?/,"&")}&output=${e[4]&&e[4].indexOf("layer=c")>0?"svembed":"embed"}`,n="gmap")}if(!n){const e=i.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);e&&(i=`https://maps.google.${e[1]}/maps?q=${e[2].replace("query=","q=").replace("api=1","")}&output=embed`,n="gmap")}n&&(t.src=i,t.type=n)}}function s(o,i){"iframe"!==i.type&&"pdf"!==i.type&&"gmap"!==i.type||function(o){const i=o.el,s=o.src;if(!e||!i||!s)return;const l=document.createElement("iframe");z(l,"f-iframe");for(const[e,n]of Object.entries(t().iframeAttr||{}))l.setAttribute(e,n);l.onerror=()=>{o.state=2,null==e||e.showError(o,"{{IFRAME_ERROR}}")};const r=document.createElement("div");if(z(r,"f-html"),r.append(l),o.width){let e=`${o.width}`;e.match(/^\d+$/)&&(e+="px"),r.style.maxWidth=`${e}`}if(o.height){let e=`${o.height}`;e.match(/^\d+$/)&&(e+="px"),r.style.maxHeight=`${e}`}if(o.aspectRatio){const e=i.getBoundingClientRect();r.style.aspectRatio=`${o.aspectRatio}`,r.style[e.width>e.height?"width":"height"]="auto",r.style[e.width>e.height?"maxWidth":"maxHeight"]="none"}o.htmlEl=r,o.contentEl=l,z(i,`has-html has-iframe has-${o.type}`),i.prepend(r);const a=n(o,"preload"),c=n(o,"autosize");"iframe"===o.type&&(a||c)?(o.state=0,e.showLoading(o),z(i,"is-loading"),l.onload=()=>
2{if(!e||1!==e.getState()||!l.src.length)return;o.state=1;const t="true"!==l.dataset.ready;l.dataset.ready="true",function(e){const t=e.contentEl,o=null==t?void 0:t.parentElement,i=null==o?void 0:o.style;let s=n(e,"autosize"),l=e.width||0,r=e.height||0;if(l&&r&&(s=!1),t&&o&&i&&s){try{const e=window.getComputedStyle(o),n=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),s=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),a=t.contentWindow;if(a){const e=a.document,t=e.getElementsByTagName("html")[0],o=e.body;i.width="";const c=window.getComputedStyle(o),u=parseFloat(c.marginLeft)+parseFloat(c.marginRight),d=o.style.overflow||"";o.style.overflow="hidden",l=l||o.scrollWidth+u+n,i.flex="0 0 auto",i.width=`${l}px`,i.height=`${o.scrollHeight}px`,o.style.overflow=d,r=Math.max(t.scrollHeight,Math.ceil(t.getBoundingClientRect().height))+s}}catch(e){}if(l||r){const e={flex:"0 1 auto",width:"",height:""};l&&"auto"!==l&&(e.width=`${l}px`),r&&"auto"!==r&&(e.height=`${r}px`),Object.assign(i,e)}}}(o),e.hideLoading(o),t&&e.emit("contentReady",o),k(i,"is-loading")},l.src=`${s}`):(l.src=`${s}`,e.emit("contentReady",o))}(i)}function l(t,n){var o,i;"iframe"!==n.type&&"pdf"!==n.type&&"gmap"!==n.type||(null==e||e.hideError(n),null===(o=n.contentEl)||void 0===o||o.remove(),n.contentEl=void 0,null===(i=n.htmlEl)||void 0===i||i.remove(),n.htmlEl=void 0)}return{init:function(t){e=t,e.on("addSlide",i),e.on("attachSlideEl",s),e.on("detachSlideEl",l)},destroy:function(){null==e||e.off("addSlide",i),null==e||e.off("attachSlideEl",s),null==e||e.off("detachSlideEl",l),e=void 0}}},ke=(e,t={})=>{const n=new URL(e),o=new URLSearchParams(n.search),i=new URLSearchParams;for(const[e,n]of[...o,...Object.entries(t)]){let t=n+"";if("t"===e){let e=t.match(/((\d*)m)?(\d*)s?/);e&&i.set("start",60*parseInt(e[2]||"0")+parseInt(e[3]||"0")+"")}else i.set(e,t)}let s=i+"",l=e.match(/#t=((.*)?\d+s)/);return l&&(s+=`#t=${l[1]}`),s},Ie={autoplay:!1,html5videoTpl:'<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',iframeAttr:{allow:"autoplay; fullscreen",scrolling:"no",referrerPolicy:"strict-origin-when-cross-origin",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},Fe=()=>{let e,t=!1;function n(){const t=null==e?void 0:e.getOptions().Video;return a(t)?Object.assign(Object.assign({},Ie),t):Ie}function i(){var t;return null===(t=null==e?void 0:e.getPage())||void 0===t?void 0:t.slides[0]}const s=t=>{var n;try{let o=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===o.event)for(let o of Array.from((null===(n=null==e?void 0:e.getContainer())||void 0===n?void 0:n.getElementsByClassName("f-iframe"))||[]))o instanceof HTMLIFrameElement&&o.contentWindow===t.source&&(o.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===o.event){const e=document.getElementById(o.id);e&&(e.dataset.ready="true")}}catch(t){}};function r(e,t){const i=t.src;if(!o(i))return;let s=t.type;if(!s||"html5video"===s){const e=i.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);e&&(s="html5video",t.html5videoFormat=t.html5videoFormat||"video/"+("ogv"===e[1]?"ogg":e[1]))}if(!s||"youtube"===s){const e=i.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(e){const o=Object.assign(Object.assign({},n().youtube),t.youtube||{}),l=`www.youtube${o.nocookie?"-nocookie":""}.com`,r=ke(i,o),a=encodeURIComponent(e[2]);t.videoId=a,t.src=`https://${l}/embed/${a}?${r}`,t.thumb=t.thumb||`https://i.ytimg.com/vi/${a}/mqdefault.jpg`,s="youtube"}}if(!s||"vimeo"===s){const e=i.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(e){const o=Object.assign(Object.assign({},n().vimeo),t.vimeo||{}),l=ke(i,o),r=encodeURIComponent(e[2]),a=e[5]||"";t.videoId=r,t.src=`https://player.vimeo.com/video/${r}?${a?`h=${a}${l?"&":""}`:""}${l}`,s="vimeo"}}t.type=s}
2function c(t,i){"html5video"===i.type&&function(t){const i=t.el,s=t.src;if(!e||!i||!s)return;const r=t.html5videoTpl||n().html5videoTpl,a=t.html5videoFormat||n().html5videoFormat;if(!r)return;const c=t.poster||(t.thumb&&o(t.thumb)?t.thumb:""),u=l(r.replace(/\{\{src\}\}/gi,s+"").replace(/\{\{format\}\}/gi,a||"").replace(/\{\{poster\}\}/gi,c+""));if(!u)return;const d=document.createElement("div");z(d,"f-html"),d.append(u),t.contentEl=u,t.htmlEl=d,z(i,`has-${t.type}`),i.prepend(d),g(t),e.emit("contentReady",t)}(i),"youtube"!==i.type&&"vimeo"!==i.type||function(t){const o=t.el,i=t.src;if(!e||!o||!i)return;const s=document.createElement("iframe");z(s,"f-iframe"),s.setAttribute("id",`f-iframe_${t.videoId}`);for(const[e,t]of Object.entries(n().iframeAttr||{}))s.setAttribute(e,t);"youtube"===t.type&&(s.onload=()=>{var t;1===(null==e?void 0:e.getState())&&(null===(t=s.contentWindow)||void 0===t||t.postMessage(JSON.stringify({event:"listening",id:s.getAttribute("id")}),"*"))}),s.onerror=()=>{null==e||e.showError(t,"{{IFRAME_ERROR}}")};const l=document.createElement("div");z(l,"f-html"),l.append(s),t.contentEl=s,t.htmlEl=l,z(o,`has-html has-iframe has-${t.type}`),s.src=`${t.src}`,o.prepend(l),g(t),e.emit("contentReady",t)}(i)}function u(e,t){var n,o;"html5video"!==t.type&&"youtube"!==t.type&&"vimeo"!==t.type||(null===(n=t.contentEl)||void 0===n||n.remove(),t.contentEl=void 0,null===(o=t.htmlEl)||void 0===o||o.remove(),t.htmlEl=void 0),t.poller&&clearTimeout(t.poller)}function d(){t=!1}function f(){if(t)return;t=!0;const e=i();(e&&void 0!==e.autoplay?e.autoplay:n().autoplay)&&(function(){var e;const t=i(),n=null==t?void 0:t.el;if(n&&"html5video"===(null==t?void 0:t.type))try{const e=n.querySelector("video");if(e){const t=e.play();void 0!==t&&t.then(()=>{}).catch(t=>{e.muted=!0,e.play()})}}catch(e){}const o=null==t?void 0:t.htmlEl;o instanceof HTMLIFrameElement&&(null===(e=o.contentWindow)||void 0===e||e.postMessage('{"event":"command","func":"stopVideo","args":""}',"*"))}(),function(){const e=i(),t=null==e?void 0:e.type;if(!(null==e?void 0:e.el)||"youtube"!==t&&"vimeo"!==t)return;const n=()=>
2{if(e.contentEl&&e.contentEl instanceof HTMLIFrameElement&&e.contentEl.contentWindow){let t;if("true"===e.contentEl.dataset.ready)return t="youtube"===e.type?{event:"command",func:"playVideo"}:{method:"play",value:"true"},t&&e.contentEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);"youtube"===e.type&&(t={event:"listening",id:e.contentEl.getAttribute("id")},e.contentEl.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(n,250)};n()}())}function g(e){const t=null==e?void 0:e.htmlEl;if(e&&t&&("html5video"===e.type||"youtube"===e.type||"vimeo"===e.type)){if(t.style.aspectRatio="",t.style.width="",t.style.height="",t.style.maxWidth="",t.style.maxHeight="",e.width){let n=`${e.width}`;n.match(/^\d+$/)&&(n+="px"),t.style.maxWidth=`${n}`}if(e.height){let n=`${e.height}`;n.match(/^\d+$/)&&(n+="px"),t.style.maxHeight=`${n}`}if(e.aspectRatio){const n=e.aspectRatio.split("/"),o=parseFloat(n[0].trim()),i=n[1]?parseFloat(n[1].trim()):0,s=o&&i?o/i:o;t.offsetHeight;const l=t.getBoundingClientRect(),r=s<(l.width||1)/(l.height||1);t.style.aspectRatio=`${e.aspectRatio}`,t.style.width=r?"auto":"",t.style.height=r?"":"auto"}}}function v(){g(i())}return{init:function(t){e=t,e.on("addSlide",r),e.on("attachSlideEl",c),e.on("detachSlideEl",u),e.on("ready",f),e.on("change",d),e.on("settle",f),e.on("refresh",v),window.addEventListener("message",s)},destroy:function(){null==e||e.off("addSlide",r),null==e||e.off("attachSlideEl",c),null==e||e.off("detachSlideEl",u),null==e||e.off("ready",f),null==e||e.off("change",d),null==e||e.off("settle",f),null==e||e.off("refresh",v),window.removeEventListener("message",s),e=void 0}}},$e={autoStart:!1,btnTpl:'<button data-fullscreen-action="toggle" class="f-button" title="{{TOGGLE_FULLSCREEN}}"><svg><g><path d="M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},_e="in-fullscreen-mode",He=()=>{let e;function t(t){const n=null==e?void 0:e.getOptions().Fullscreen;let o=(a(n)?Object.assign(Object.assign({},$e),n):$e)[t];return o&&"function"==typeof o&&e?o(e):o}function n(){var n;null===(n=null==e?void 0:e.getPlugins().Toolbar)||void 0===n||n.add("fullscreen",{tpl:t("btnTpl")})}function o(){if(t("autoStart")){const e=s();e&&r(e)}}function i(e,t){const n=t.target;n&&!t.defaultPrevented&&"toggle"===n.dataset.fullscreenAction&&u()}function s(){return t("el")||(null==e?void 0:e.getContainer())||void 0}function l(){const e=document;return e.fullscreenEnabled?!!e.fullscreenElement:!!e.webkitFullscreenEnabled&&!!e.webkitFullscreenElement}function r(e){const t=document;let n;return e||(e=t.documentElement),t.fullscreenEnabled?n=e.requestFullscreen():t.webkitFullscreenEnabled&&(n=e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),n&&n.then(()=>{e.classList.add(_e)}),n}function c(){const e=document;let t;return e.fullscreenEnabled?t=e.fullscreenElement&&e.exitFullscreen():e.webkitFullscreenEnabled&&(t=e.webkitFullscreenElement&&e.webkitExitFullscreen()),t&&t.then(()=>{var e;null===(e=s())||void 0===e||e.classList.remove(_e)}),t}function u(){if(l())c();else{const e=s();e&&r(e)}}return{init:function(t){e=t,e.on("initPlugins",n),e.on("ready",o),e.on("click",i)},destroy:function(){null==e||e.off("initPlugins",n),null==e||e.off("ready",o),null==e||e.off("click",i)},exit:c,inFullscreen:l,request:r,toggle:u}};let De,Ve,qe=!1,Ne=!1,We=!1,Be=!1;const Ze=()=>{const e=new URL(document.URL).hash,t=e.slice(1).split("-"),n=t[t.length-1],o=n&&/^\+?\d+$/.test(n)&&parseInt(t.pop()||"1",10)||1;return{urlHash:e,urlSlug:t.join("-"),urlIndex:o}},Ge=()=>{const e=null==De?void 0:De.getInstance(),t=null==e?void 0:e.getState();return!(!e||0!==t&&1!==t)},Xe=()=>{if(!De)return;if(Ge())return;const{urlSlug:e,urlIndex:t}=Ze();if(!e)return;let n=document.querySelector(`[data-slug="${e}"]`);n&&De.fromTriggerEl(n),Ge()||(n=document.querySelectorAll(`[data-fancybox="${e}"]`)[t-1],n&&De.fromTriggerEl(n,{startIndex:t-1})),Ge()&&n&&!n.closest("[inert]")&&n.scrollIntoView({behavior:"instant",block:"center",inline:"center"})},Ye=e=>{const t=e.getOptions().Hash,n=e.getSlide();return n&&(n.slug||n.fancybox||(a(t)?t.slug:""))||""},Ue=e=>{var t,n;const o=Ye(e),i=e.getSlide();if(!i||!o)return"";let s=parseInt(i.index+"",10)+1,l=i.slug?`#${i.slug}`:`#${o}-${s}`;return((null===(n=null===(t=e.getCarousel())||void 0===t?void 0:t.getPages())||void 0===n?void 0:n.length)||0)<2&&(l=`#${o}`),l},Ke=()=>{if(!De)return;if(We)return;const e=null==De?void 0:De.getInstance(),t=null==e?void 0:e.getCarousel();if(!1===(null==e?void 0:e.getOptions().Hash))return;const{urlSlug:n,urlIndex:o}=Ze();if(e&&1===e.getState()&&t){const i=t.getSlides();for(const e of i||[])if(n===e.slug||n===e.fancybox&&e.index===o-1)return Ne=!1,void t.goTo(e.index);Be=!0,e.close(),Be=!1}Xe()},Je=()=>{De&&(Ve=setTimeout(()=>{qe=!0,Xe(),qe=!1},300),window.addEventListener("hashchange",Ke,!1))},Qe=()=>{let e,t="auto",n="";function o(){var o;if(!e||!e.isTopMost())return;if(!1===e.getOptions().Hash)return;if(qe){const t=e.getOptions().sync;t&&t.goTo((null===(o=null==e?void 0:e.getCarousel())||void 0===o?void 0:o.getPageIndex())||0,{transition:!1,tween:!1})}const s=e.getCarousel();if(!s)return;const{urlHash:l,urlSlug:r}=Ze();if(!e.getSlide())return;const a=Ye(e);
2if(!a)return;const c=Ue(e);l!==c&&(n=l),history.scrollRestoration&&(t=history.scrollRestoration,history.scrollRestoration="manual"),s.on("change",i);const u=a!==r;try{window.history[u?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+c),u&&(Ne=!0)}catch(e){}}function i(){if(!e||!e.isTopMost())return;if(!1===e.getOptions().Hash)return;if(!e.getSlide())return;if(!Ye(e))return;const t=Ue(e);We=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+t)}catch(e){}We=!1}function s(){var t;if(!Be&&e&&e.isTopMost()&&!1!==e.getOptions().Hash&&Ye(e)){We=!0;try{Ne&&!function(){if(window.parent===window)return!1;try{var e=window.frameElement}catch(t){e=null}return null===e?"data:"===location.protocol:e.hasAttribute("sandbox")}()&&"IFRAME"!==(null===(t=document.activeElement)||void 0===t?void 0:t.nodeName)?window.history.back():window.history.replaceState({},document.title,window.location.pathname+window.location.search+n)}catch(e){}We=!1}}return{init:function(t){clearTimeout(Ve),e=t,e.on("ready",o),e.on("close",s)},destroy:function(){null==e||e.off("ready",o),null==e||e.off("close",s
2);const n=null==e?void 0:e.getCarousel();n&&n.off("change",i),e=void 0,history.scrollRestoration&&t&&(history.scrollRestoration=t)}}};Qe.getInfoFromURL=Ze,Qe.startFromUrl=Xe,Qe.setup=function(e){De||(De=e,ie()&&(/complete|interactive|loaded/.test(document.readyState)?Je():document.addEventListener("DOMContentLoaded",Je)))};const et=Object.assign(Object.assign({},K),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ELEMENT_NOT_FOUND:"HTML Element Not Found",IFRAME_ERROR:"Error Loading Page"}),tt='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24"><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';Le().add("close",{tpl:tt});const nt=e=>{e.cancelable&&e.preventDefault()},ot=(e=null,t="",n)=>{if(!e||!e.parentElement||!t)return void(n&&n());it(e);const o=i=>{i.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",o),delete e.dataset.animationName,n&&n(),e.classList.remove(t))};e.dataset.animationName=t,e.addEventListener("animationend",o),z(e,t)},it=e=>{e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))};var st;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.Destroyed=3]="Destroyed"}(st||(st={}));const lt={ajax:null,backdropClick:"close",Carousel:{},closeButton:"auto",closeExisting:!1,delegateEl:void 0,dragToClose:!0,fadeEffect:!0,groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,id:void 0,idle:!1,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:et,mainClass:"",mainStyle:{},mainTpl:'<dialog class="fancybox__dialog">\n <div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}">\n <div class="fancybox__backdrop"></div>\n <div class="fancybox__carousel"></div>\n </div>\n </dialog>',modal:!0,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},rt=new Map;let at=0;const ct="with-fancybox";function ut(e,t={}){var n,o,i;if(!(e&&e instanceof Element))return;let s,l,r,a,c={};for(const[t,n]of dt.openers)if(t.contains(e))for(const[o,i]of n){let n;if(o){for(const i of t.querySelectorAll(o))if(i.contains(e)){n=i;break}if(!n)continue}for(const[o,u]of i){let i=null;try{i=e.closest(o)}catch(e){}i&&(l=t,r=n,s=i,a=o,Y(c,u||{}))}}if(!l||!a||!s)return;const u=Y({},lt,t,c,{triggerEl:s});let d=[].slice.call((r||l).querySelectorAll(a));const f=s.closest(".f-carousel"),g=null==f?void 0:f.carousel;if(g&&(!r||!f.contains(r))){const e=[];for(const t of null==g?void 0:g.getSlides()){const n=t.el;n&&(n.matches(a)?e.push(n):e.push(...[].slice.call(n.querySelectorAll(a))))}e.length&&(d=[...e],null===(n=g.getPlugins().Autoplay)||void 0===n||n.pause(),null===(o=g.getPlugins().Autoscroll)||void 0===o||o.pause(),u.sync=g)}if(!1===u.groupAll){const e=u.groupAttr,t=e&&s?s.getAttribute(`${e}`):"";d=e&&t?d.filter(n=>n.getAttribute(`${e}`)===t):[s]}if(!d.length)return;null===(i=u.triggerEvent)||void 0===i||i.preventDefault();const v=dt.getInstance(),m=null==v?void 0:v.getState();if(v&&(m===st.Init||m===st.Ready)){const e=v.getOptions().triggerEl;if(e&&d.indexOf(e)>-1)return}return Object.assign({},u.Carousel||{}).rtl&&(d=d.reverse()),s&&void 0===t.startIndex&&(u.startIndex=d.indexOf(s)),dt.fromNodes(d,u)}const dt={Plugins:{Hash:Qe},version:"6.1.10",openers:new Map,bind:function(e,t,n,i){if(!ie())return;let s=document.body,l=null,r="[data-fancybox]",a={};e instanceof Element&&(s=e),o(e)&&o(t)?(l=e,r=t):o(t)&&o(n)?(l=t,r=n):o(t)?r=t:o(e)&&(r=e),"object"==typeof t&&(a=t||{}),"object"==typeof n&&(a=n||{}),"object"==typeof i&&(a=i||{}),function(e,t,n,o={}){if(!(e&&e instanceof Element&&n))return;const i=dt.openers.get(e)||new Map,s=i.get(t)||new Map;if(s.set(n,o),i.set(t,s),dt.openers.set(e,i),1===i.size&&e.addEventListener("click",dt.fromEvent),1===dt.openers.size)for(const e of Object.values(dt.Plugins)){const t=e.setup;"function"==typeof t&&t(dt)}}(s,l,r,a)},close:function(e=!0,...t){if(e)for(const e of rt.values())e.close(...t);else{const e=dt.getInstance();e&&e.close(...t)}},destroy:function(){let e;for(;e=dt.getInstance();)e.destroy();
2for(const e of dt.openers.keys())e.removeEventListener("click",dt.fromEvent);dt.openers.clear()},fromEvent:function(e){if(e.defaultPrevented)return;if(e.button&&0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const n={triggerEvent:e};if(t.closest(".fancybox__container.is-hiding"))return nt(e),void e.stopPropagation();const o=t.closest("[data-fancybox-delegate]")||void 0;if(o){const e=o.dataset.fancyboxDelegate||"",i=document.querySelectorAll(`[data-fancybox="${e}"]`),s=parseInt(o.dataset.fancyboxIndex||"",10)||0;t=i[s]||i[0],Y(n,{delegateEl:o,startIndex:s})}return ut(t,n)},fromNodes:function(e,t){t=Y({},lt,t||{});const n=[],o=e=>e instanceof HTMLImageElement?e:e instanceof HTMLElement?e.querySelector("img:not([aria-hidden])"):void 0;for(const i of e){const s=i.dataset||{},l=t.delegateEl&&e.indexOf(i)===t.startIndex?t.delegateEl:void 0,r=o(l)||o(i)||void 0,a=s.src||i.getAttribute("href")||i.getAttribute("currentSrc")||i.getAttribute("src")||void 0,c=s.thumb||s.thumbSrc||(null==r?void 0:r.getAttribute("currentSrc"))||(null==r?void 0:r.getAttribute("src"))||(null==r?void 0:r.dataset.lazySrc)||void 0,u={src:a,alt:s.alt||(null==r?void 0:r.getAttribute("alt"))||void 0,thumbSrc:c,thumbEl:r,triggerEl:i,delegateEl:l};for(const e in s){let t=s[e]+"";t="false"!==t&&("true"===t||t),u[e]=t}n.push(u)}return dt.show(n,t)},fromSelector:function(e,t,n,i){if(!ie())return;let s=document.body,l=null,r="[data-fancybox]",a={};e instanceof Element&&(s=e),o(e)&&o(t)?(l=e,r=t):o(t)&&o(n)?(l=t,r=n):o(t)?r=t:o(e)&&(r=e),"object"==typeof t&&(a=t||{}),"object"==typeof n&&(a=n||{}),"object"==typeof i&&(a=i||{});for(const[e,t]of dt.openers)for(const[n,o]of t)for(const[t,i]of o)if(e===s&&n===l){const e=s.querySelector((n?`${n} `:"")+r);if(e&&e.matches(t))return dt.fromTriggerEl(e,a)}},fromTriggerEl:ut,getCarousel:function(){var e;return(null===(e=dt.getInstance())||void 0===e?void 0:e.getCarousel())||void 0},getDefaults:function(){return lt},getInstance:function(e){if(e){const t=rt.get(e);return t&&t.getState()!==st.Destroyed?t:void 0}return Array.from(rt.values()).reverse().find(e=>{if(e.getState()!==st.Destroyed)return e})||void 0},getSlide:function(){var e;return(null===(e=dt.getInstance())||void 0===e?void 0:e.getSlide())||void 0},show:function(e=[],t={}){return(()=>{let e,t,n,r,c,u,d,f=st.Init,g=Object.assign({},lt),v=-1,m={},h=[],p=!1,E=!0,w=0;function x(e,...t){let n=g[e];return n&&"function"==typeof n?n(he,...t):n}function M(e,t=[]){const n=x("l10n")||{};e=String(e).replace(/\{\{(\w+)\}\}/g,(e,t)=>n[t]||e);for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e.replace(/\{\{(.*?)\}\}/g,(e,t)=>t)}const S=new Map;function O(e,...t){const n=[...S.get(e)||[]];for(const[t,o]of Object.entries(g.on||{}))(t===e||t.split(" ").indexOf(e)>-1)&&n.push(o);for(const e of n)e&&"function"==typeof e&&e(he,...t);"*"!==e&&O("*",e,...t)}function L(){k(t,"is-revealing");try{document.activeElement===e&&((null==t?void 0:t.querySelector("[autofocus]"))||t).focus()}catch(e){}}function T(e,t){var n;G(t),q(),null===(n=t.el)||void 0===n||n.addEventListener("click",A),"inline"!==t.type&&"clone"!==t.type||function(e){if(!r||!e||!e.el)return;let t=null;if(o(e.src)){const n=e.src.split("#",2).pop();t=n?document.getElementById(n):null}if(t){if(z(t,"f-html"),"clone"===e.type||t.closest(".fancybox__carousel")){t=t.cloneNode(!0);const n=t.dataset.animationName;n&&(t.classList.remove(n),delete t.dataset.animationName);let o=t.getAttribute("id");o=o?`${o}--clone`:`clone-${v}-${e.index}`,t.setAttribute("id",o)}else if(t.parentNode){const n=document.createElement("div");n.inert=!0,t.parentNode.insertBefore(n,t),e.placeholderEl=n}e.htmlEl=t,z(e.el,"has-html"),e.el.prepend(t),t.classList.remove("hidden"),"none"===t.style.display&&(t.style.display=""),"none"===getComputedStyle(t).getPropertyValue("display")&&(t.style.display=t.dataset.display||"flex"),null==r||r.emit("contentReady",e)}else null==r||r.showError(e,"{{ELEMENT_NOT_FOUND}}")}(t),"ajax"===t.type&&function(e){const t=e.el;if(!t)return;if(e.htmlEl||e.xhr)return;null==r||r.showLoading(e),e.state=0;const n=new XMLHttpRequest;n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE&&f===st.Ready)if(null==r||r.hideLoading(e),e.state=1,200===n.status){let o=n.responseText+"",i=null,
2s=null;if(e.filter){const t=document.createElement("div");t.innerHTML=o,s=t.querySelector(e.filter+"")}s&&s instanceof HTMLElement?i=s:(i=document.createElement("div"),i.innerHTML=o),i.classList.add("f-html"),e.htmlEl=i,t.classList.add("has-html"),t.classList.add("has-ajax"),t.prepend(i),null==r||r.emit("contentReady",e)}else null==r||r.showError(e)};const o=x("ajax")||null;n.open(o?"POST":"GET",e.src+""),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.send(o),e.xhr=n}(t)}function P(e,t){var n;X(t),null===(n=t.el)||void 0===n||n.removeEventListener("click",A),"inline"!==t.type&&"clone"!==t.type||function(e){const t=e.htmlEl,n=e.placeholderEl;t&&("none"!==getComputedStyle(t).getPropertyValue("display")&&(t.style.display="none"),t.offsetHeight),n&&(t&&n.parentNode&&n.parentNode.insertBefore(t,n),n.remove()),e.htmlEl=void 0,e.placeholderEl=void 0}(t),t.xhr&&(t.xhr.abort(),t.xhr=void 0)}function A(e){if(!J())return;if(f!==st.Ready)return nt(e),void e.stopPropagation();if(e.defaultPrevented)return;if(!C.isClickAllowed())return;const t=e.composedPath()[0];t.closest(".fancybox__carousel")&&t.classList.contains("fancybox__slide")&&N(e)}function R(){E=!1,t&&r&&t.classList.remove("is-revealing"),q();const e=x("sync");if(r&&e){const t=e.getPageIndex(r.getPageIndex())||0;e.goTo(t,{transition:!1,tween:!1})}}function j(){var e;!function(){const e=null==r?void 0:r.getViewport();if(!x("dragToClose")||!r||!e)return;if(c=C(e).init(),!c)return;let n=!1,o=0,i=0,l={},a=1;function d(){var e,t;null==u||u.spring({clamp:!0,mass:1,tension:0===i?140:960,friction:17,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:o}).to({y:i}).start();const n=(null===(e=null==r?void 0:r.getViewport())||void 0===e?void 0:e.getBoundingClientRect().height)||0,s=null===(t=Q())||void 0===t?void 0:t.panzoomRef;if(n&&s)if(0===i)s.execute(H.Reset);else{const e=U(Math.abs(o),0,.33*n,a,.77*a,!1);s.execute(H.ZoomTo,{scale:e})}}const g=e=>{var t;const n=e.srcEvent,o=n.target;return r&&!(b(n)&&(null===(t=n.touches)||void 0===t?void 0:t.length)>1)&&o&&!s(o)};u=y().on("step",n=>{if(t&&e&&f===st.Ready){const i=e.getBoundingClientRect().height;o=Math.min(i,Math.max(-1*i,n.y));const s=U(Math.abs(o),0,.5*i,1,0,!0);t.style.setProperty("--f-drag-opacity",s+""),t.style.setProperty("--f-drag-offset",o+"px")}}),c.on("start",function(){n||(null==u||u.pause(),i=o)}).on("panstart",e=>{var t,o;if(!n&&g(e)&&"y"===e.axis){nt(e.srcEvent),n=!0,de(),null===(t=null==r?void 0:r.getViewport())||void 0===t||t.classList.add("is-dragging");const i=null===(o=Q())||void 0===o?void 0:o.panzoomRef;if(i){a=i.getTransform().scale||1;const e=i.getOptions();l=Object.assign({},e),e.bounds=!1,e.gestures=!1}}else n=!1}).on("pan",function(e){n&&g(e)&&(nt(e.srcEvent),e.srcEvent.stopPropagation(),"y"===e.axis&&(i+=e.deltaY,d()))}).on("end",e=>{var t,s,a;if(null===(t=null==r?void 0:r.getViewport())||void 0===t||t.classList.remove("is-dragging"),n){const t=null===(s=Q())||void 0===s?void 0:s.panzoomRef;if(t){null===(a=t.getTween())||void 0===a||a.end();const e=t.getOptions();e.bounds=l.bounds||!1,e.gestures=l.gestures||!1}g(e)&&"y"===e.axis&&(Math.abs(e.velocityY)>5||Math.abs(o)>50)&&fe(e.srcEvent,"f-throwOut"+(e.velocityY>0?"Down":"Up"))}n=!1,f===st.Ready&&0!==o&&(i=0,d())})}(),document.body.addEventListener("click",Z),document.body.addEventListener("keydown",B,{passive:!1,capture:!0}),q(),se();const n=x("sync");r&&n&&(null===(e=n.getTween())||void 0===e||e.start()),K(Q())}function F(){(null==r?void 0:r.canGoNext())?se():ue()}function $(e,t){G(t)}function _(e,t){G(t),K(t)}function D(){var e;const n=null==r?void 0:r.getPlugins().Thumbs;I(t,"has-thumbs",(null==n?void 0:n.isEnabled())||!1),I(t,"has-vertical-thumbs",!!n&&("scrollable"===n.getType()||!0===(null===(e=n.getCarousel())||void 0===e?void 0:e.isVertical())))}function q(){if(t){const e=(null==r?void 0:r.getPages())||[],n=(null==r?void 0:r.getPageIndex())||0;for(const e of t.querySelectorAll("[data-fancybox-index]"))e.innerHTML=n+"";for(const e of t.querySelectorAll("[data-fancybox-page]"))e.innerHTML=n+1+"";for(const n of t.querySelectorAll("[data-fancybox-pages]"))n.innerHTML=e.length+""}}function N(e){e.composedPath()[0].closest("[data-fancybox-close]")?fe(e):(O("backdropClick",e),e.defaultPrevented||x("backdropClick")&&fe(e))}function W(){ae()}function B(e){if(!J())return;if(f!==st.Ready)return;const t=e.key,n=x("keyboard");if(!n)return;if(e.ctrlKey||e.altKey||e.shiftKey)return;const o=e.composedPath()[0];if(!i(o))return;if("Escape"!==t&&(e=>{const t=["input","textarea","select","option","video","iframe","[contenteditable]","[data-selectable]","[data-draggable]"].join(",");return e.matches(t)||e.closest(t)})(o))return;if(O("keydown",e),e.defaultPrevented)return;const s=n[t];
2if(s)switch(s){case"close":fe(e);break;case"next":nt(e),null==r||r.next();break;case"prev":nt(e),null==r||r.prev()}}function Z(e){if(!J())return;if(f!==st.Ready)return;if(ae(),e.defaultPrevented)return;const t=e.composedPath()[0],n=!!t.closest("[data-fancybox-close]"),o=t.classList.contains("fancybox__backdrop");(n||o)&&N(e)}function G(e){var t;const{el:n,htmlEl:o,panzoomRef:i,closeButtonEl:s}=e,a=i?i.getWrapper():o;if(!n||!n.parentElement||!a)return;let c=x("closeButton");if("auto"===c&&(c=!0!==(null===(t=null==r?void 0:r.getPlugins().Toolbar)||void 0===t?void 0:t.isEnabled())),c){if(!s){const t=l(M(tt));t&&(z(t,"is-close-button"),e.closeButtonEl=a.insertAdjacentElement("afterbegin",t),z(n,"has-close-btn"))}}else X(e)}function X(e){e.closeButtonEl&&(e.closeButtonEl.remove(),e.closeButtonEl=void 0),k(e.el,"has-close-btn")}function K(e){if(!(E&&r&&1===r.getState()&&e&&e.index===r.getOptions().initialPage&&e.el&&e.el.parentElement))return;if(void 0!==e.state&&1!==e.state)return;E=!1;const t=e.panzoomRef,n=null==t?void 0:t.getTween(),o=x("zoomEffect")&&n?te(e):void 0;if(t&&n&&o){const{x:e,y:i,scale:s}=t.getStartPosition();return void n.spring({tension:215,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(o).to({x:e,y:i,scale:s}).start()}const i=(null==t?void 0:t.getContent())||e.htmlEl;i&&ot(i,x("showClass",e))}function J(){var e;return(null===(e=dt.getInstance())||void 0===e?void 0:e.getId())===v}function Q(){var e;return null===(e=null==r?void 0:r.getPage())||void 0===e?void 0:e.slides[0]}function ee(){const e=Q();return e?e.triggerEl||x("triggerEl"):void 0}function te(e){var t,n;const o=e.thumbEl;if(!o||!(e=>{const t=e.getBoundingClientRect(),n=e.closest("[style]"),o=null==n?void 0:n.parentElement;if(n&&n.style.transform&&o){const e=o.getBoundingClientRect();if(t.left<e.left||t.left>e.left+e.width-t.width)return!1;if(t.top<e.top||t.top>e.top+e.height-t.height)return!1}const i=Math.max(document.documentElement.clientHeight,window.innerHeight),s=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(t.bottom<0||t.top-i>=0||t.right<0||t.left-s>=0)})(o))return;const i=null===(n=null===(t=e.panzoomRef)||void 0===t?void 0:t.getWrapper())||void 0===n?void 0:n.getBoundingClientRect(),s=null==i?void 0:i.width,l=null==i?void 0:i.height;if(!s||!l)return;const r=o.getBoundingClientRect();let a=r.width,c=r.height,u=r.left,d=r.top;if(r&&a&&c){if(o instanceof HTMLImageElement){const e=window.getComputedStyle(o).getPropertyValue("object-fit");if("contain"===e||"scale-down"===e){const{width:t,height:n}=((e,t,n,o,i="contain")=>{if("contain"===i||e>n||t>o){const i=n/e,s=o/t,l=Math.min(i,s);e*=l,t*=l}return{width:e,height:t}})(o.naturalWidth,o.naturalHeight,a,c,e);u+=.5*(a-t),d+=.5*(c-n),a=t,c=n}}if(!(Math.abs(s/l-a/c)>.1))return{x:u+.5*a-(i.left+.5*s),y:d+.5*c-(i.top+.5*l),scale:a/s}}}function ie(){d&&clearTimeout(d),d=void 0,document.removeEventListener("mousemove",W)}function se(){if(p)return;if(d)return;const e=x("idle");e&&(d=setTimeout(le,e))}function le(){t&&(ie(),z(t,"is-idle"),document.addEventListener("mousemove",W),p=!0)}function ae(){p&&(ue(),se())}function ue(){ie(),null==t||t.classList.remove("is-idle"),p=!1}function de(){const e=ee();var t;!e||(t=e.getBoundingClientRect()).bottom>0&&t.right>0&&t.left<(window.innerWidth||document.documentElement.clientWidth)&&t.top<(window.innerHeight||document.documentElement.clientHeight)||e.closest("[inert]")||e.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}function fe(e,t){var n,o,i,s,l;if(f===st.Closing||f===st.Destroyed)return;const a=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(O("shouldClose",a,e),a.defaultPrevented)return;if(ie(),e){if(e.defaultPrevented)return;nt(e),e.stopPropagation(),e.stopImmediatePropagation()}if(f=st.Closing,null==u||u.pause(),null==c||c.destroy(),r){null===(n=r.getGestures())||void 0===n||n.destroy(),null===(o=r.getTween())||void 0===o||o.pause();for(const e of r.getSlides()){const t=e.panzoomRef;t&&(Y(t.getOptions(),{clickAction:!1,dblClickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0}),null===(i=t.getGestures())||void 0===i||i.destroy(),null===(s=t.getTween())||void 0===s||s.pause())}}const d=null==r?void 0:r.getPlugins();null===(l=null==d?void 0:d.Autoplay)||void 0===l||l.stop();const g=null==d?void 0:d.Fullscreen;g&&g.inFullscreen()?Promise.resolve(g.exit()).then(()=>{setTimeout(()=>{ge(e,t)},150)}):ge(e,t)}function ge(n,o){var i,s;if(f!==st.Closing)return;O("close",n),E=!1,document.body.removeEventListener("click",Z),document.body.removeEventListener("keydown",B,{passive:!1,capture:!0}),x("placeFocusBack")&&de();const l=document.activeElement;l&&(null==e?void 0:e.contains(l))&&l.blur(),x("fadeEffect")&&(null==t||t.classList.remove("is-ready"),null==t||t.classList.add("is-hiding")),null==t||t.classList.add("is-closing");const a=Q(),c=null==a?void 0:a.el,u=null==a?void 0:a.panzoomRef,d=null===(i=null==a?void 0:a.panzoomRef)||void 0===i?void 0:i.getTween(),g=
2o||x("hideClass");let v=!1,m=!1;if(r&&a&&c&&u&&d){let e;if(x("zoomEffect")&&1===a.state&&(e=te(a)),e){v=!0;const t=()=>{e=te(a),e?d.to(Object.assign(Object.assign({},V),e)):me()};u.on("refresh",()=>{t()}),d.easing(y.Easings.EaseOut).duration(350).from(Object.assign({},u.getTransform())).to(Object.assign(Object.assign({},V),e)).start(),(null==c?void 0:c.getAnimations())&&(c.style.animationPlayState="paused",requestAnimationFrame(()=>{t()}))}}const h=(null==a?void 0:a.htmlEl)||(null===(s=null==a?void 0:a.panzoomRef)||void 0===s?void 0:s.getWrapper());h&&it(h),!v&&g&&h&&(m=!0,ot(h,g,()=>{me()})),v||m?setTimeout(()=>{me()},350):me()}function me(){var n,o,i,s,l;if(f===st.Destroyed)return;f=st.Destroyed;const a=ee();O("destroy"),null===(o=null===(n=x("sync"))||void 0===n?void 0:n.getPlugins().Autoplay)||void 0===o||o.resume(),null===(s=null===(i=x("sync"))||void 0===i?void 0:i.getPlugins().Autoscroll)||void 0===s||s.resume(),e instanceof HTMLDialogElement&&e.close(),null===(l=null==r?void 0:r.getContainer())||void 0===l||l.classList.remove("is-idle"),null==r||r.destroy();for(const e of Object.values(m))null==e||e.destroy();if(m={},null==e||e.remove(),e=void 0,t=void 0,r=void 0,rt.delete(v),!rt.size&&(oe(!1),document.documentElement.classList.remove(ct),x("placeFocusBack")&&a&&!a.closest("[inert]")))try{null==a||a.focus({preventScroll:!0})}catch(n){}}const he={close:fe,destroy:me,getCarousel:function(){return r},getContainer:function(){return t},getId:function(){return v},getOptions:function(){return g},getPlugins:function(){return m},getSlide:function(){return Q()},getState:function(){return f},init:function(o=[],i={}){f!==st.Init&&(he.destroy(),f=st.Init),g=Y({},lt,i),v=x("id")||"fancybox-"+ ++at;const c=rt.get(v);if(c&&c.destroy(),rt.set(v,he),O("init"),function(){for(const[e,t]of Object.entries(Object.assign(Object.assign({},dt.Plugins),g.plugins||{})))if(e&&!m[e]&&t instanceof Function){const n=t();n.init(he),m[e]=n}O("initPlugins")}(),function(e=[]){O("initSlides",e),h=[...e]}(o),function(){const n=x("parentEl")||document.body;if(!(n&&n instanceof HTMLElement))return;const o=M(x("mainTpl")||"");if(e=l(o)||void 0,!e)return;if(t=e.querySelector(".fancybox__container"),!(t&&t instanceof HTMLElement))return;const i=x("mainClass");i&&z(t,i);const c=x("mainStyle");if(c&&a(c))for(const[e,n]of Object.entries(c))t.style.setProperty(e,n);const u=x("theme"),d="auto"===u?window.matchMedia("(prefers-color-scheme:light)").matches:"light"===u;t.setAttribute("theme",d?"light":"dark"),e.setAttribute("id",`${v}`),e.addEventListener("keydown",e=>{"Escape"===e.key&&nt(e)}),e.addEventListener("wheel",e=>{const t=e.target;let n=x("wheel",e);t.closest(".f-thumbs")&&(n="slide");const o="slide"===n,i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(e,t){return Math.abs(t)>Math.abs(e)?t:e}),l=Math.max(-1,Math.min(1,i)),a=Date.now();w&&a-w<300?o&&nt(e):(w=a,O("wheel",e,l),e.defaultPrevented||("close"===n?fe(e):"slide"===n&&r&&!s(t)&&(nt(e),r[l>0?"prev":"next"]())))},{capture:!0,passive:!1}),e.addEventListener("cancel",e=>{fe(e)}),n.append(e),1===rt.size&&(x("hideScrollbar")&&oe(!0),document.documentElement.classList.add(ct)),e instanceof HTMLDialogElement&&(x("modal")?e.showModal():e.show()),O("initLayout")}(),function(){if(n=(null==e?void 0:e.querySelector(".fancybox__carousel"))||void 0,!n)return;n.fancybox=he;const o=Y({},{Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:e=>{const t=e.getContainer();return(null==t?void 0:t.querySelector(".f-carousel__toolbar [data-autoplay-action]"))||t}},Fullscreen:{el:t},Toolbar:{absolute:!0,items:{counter:{tpl:'<div class="f-counter"><span data-fancybox-page></span>/<span data-fancybox-pages></span></div>'}},display:{left:["counter"],right:["toggleFull","autoplay","fullscreen","thumbs","close"]}},Video:{autoplay:!0},Thumbs:{minCount:2,Carousel:{classes:{container:"fancybox__thumbs"}}},classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",slide:"fancybox__slide"},spinnerTpl:'<div class="f-spinner" data-fancybox-close></div>
2',dragFree:!1,slidesPerPage:1,plugins:{Sync:ce,Arrows:ye,Lazyload:ve,Zoomable:re,Html:ze,Video:Fe,Autoplay:Pe,Fullscreen:He,Thumbs:Ce,Toolbar:Le}},x("Carousel")||{},{slides:h,enabled:!0,initialPage:x("startIndex")||0,l10n:x("l10n")});r=ne(n,o),O("initCarousel",r),r.on("*",(e,t,...n)=>{O(`Carousel.${t}`,e,...n)}),r.on("attachSlideEl",T),r.on("detachSlideEl",P),r.on("contentLoading",$),r.on("contentReady",_),r.on("ready",j),r.on("change",R),r.on("settle",F),r.on("thumbs:ready",D),r.on("thumbs:destroy",D),r.init()}(),e&&t){if(x("closeExisting"))for(const[e,t]of rt.entries())e!==v&&t.close();x("fadeEffect")?(setTimeout(()=>{L()},500),z(t,"is-revealing")):L(),t.classList.add("is-ready"),f=st.Ready,O("ready")}},isCurrentSlide:function(e){const t=Q();return!(!e||!t)&&t.index===e.index},isTopMost:function(){return J()},off:function(e,t){return S.has(e)&&S.set(e,S.get(e).filter(e=>e!==t)),he},on:function(e,t){return S.set(e,[...S.get(e)||[],t]),he},toggleIdle(e){(p||!0===e)&&le(),p&&!1!==e||ue()}};return he})().init(e,t)},unbind:function(e,t,n){if(!ie())return;let i=document.body,s=null,l="[data-fancybox]";e instanceof Element&&(i=e),o(e)&&o(t)?(s=e,l=t):o(t)&&o(n)?(s=t,l=n):o(t)?l=t:o(e)&&(l=e),function(e,t,n){if(!(e&&e instanceof Element&&n))return;const o=dt.openers.get(e)||new Map,i=o.get(t)||new Map;i&&n&&i.delete(n),i.size&&n||o.delete(t),o.size||(dt.openers.delete(e),e.removeEventListener("click",dt.fromEvent))}(i,s,l)}}}}]); 3//# sourceMappingURL=fancyapps.e0482ffde84764a471a6.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.