1!/*! License details at fancyapps.com/license */function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).window=e.window||{})}(this,function(e){"use strict";let t,n,o,i,l=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),a=e=>"string"==typeof e,r=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,s=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;if(o&&!(o instanceof HTMLElement)){var n=document.createElement("div");return n.appendChild(o),n}return o},c=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;let t=e.scrollHeight>e.clientHeight,n=window.getComputedStyle(e).overflowY,o=-1!==n.indexOf("hidden"),i=-1!==n.indexOf("visible");return t&&!o&&!i},u=function(e,t){return!e||e===document.body||t&&e===t?null:c(e)?e:u(e.parentElement,t)},d=(e=!0,t="--f-scrollbar-compensate",n="--f-body-margin",o="hide-scrollbar")=>{let i=document,l=i.body,a=i.documentElement;if(e){if(l.classList.contains(o))return;let e=window.innerWidth-a.getBoundingClientRect().width;e<0&&(e=0),a.style.setProperty(t,`${e}px`);let i=parseFloat(window.getComputedStyle(l).marginRight);i&&l.style.setProperty(n,`${i}px`),l.classList.add(o)}else l.classList.remove(o),l.style.setProperty(n,""),i.documentElement.style.setProperty(t,"")},f=(e,...t)=>{let n=t.length;for(let o=0;o<n;o++)Object.entries(t[o]||{}).forEach(([t,n])=>{let o=Array.isArray(n)?[]:{};e[t]||Object.assign(e,{[t]:o}),l(n)?Object.assign(e[t],f(e[t],n)):Array.isArray(n)?Object.assign(e,{[t]:[...n]}):Object.assign(e,{[t]:n})});return e};function g(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}let p=function(e=0,t=0,n=0){return Math.max(Math.min(t,n),e)},m=function(e=0,t=0,n=0,o=0,i=0,l=!1){let a=(e-t)/(n-t)*(i-o)+o;return l?o<i?p(o,a,i):p(i,a,o):a},h=(e,t="")=>{e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.add(t)})};function v(e){return l(e)||Array.isArray(e)}function y(e,t){let n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>{let o=e[n],i=t[n];return"function"==typeof o?`${o}`==`${i}`:v(o)&&v(i)?y(o,i):o===i})}let b=1/60*3e3,E=function(e){for(let t of I)t.getState()===w.Running&&t.tick(_?e-_:0);_=e,$=window.requestAnimationFrame(E)},w=((x={})[x.Initializing=0]="Initializing",x[x.Running=1]="Running",x[x.Paused=2]="Paused",x[x.Completed=3]="Completed",x[x.Destroyed=4]="Destroyed",x);var x,M,L,S,T,P,C,R,A,O,z=((M=z||{})[M.Spring=0]="Spring",M[M.Ease=1]="Ease",M);let k=((L={})[L.Loop=0]="Loop",L[L.Reverse=1]="Reverse",L),I=new Set,$=null,_=0;function F(){let e=w.Initializing,t=z.Ease,n=0,o=0,i=F.Easings.Linear,l=500,a=0,r=0,s=0,c=0,u=1/0,d=.01,f=.01,g=!1,m={},h=null,v={},x={},M={},L=0,S=0,T=k.Loop,P=F.Easings.Linear,C=new Map;function R(e,...t){for(let n of C.get(e)||[])n(...t)}function A(e){return o=0,e?h=setTimeout(()=>{O()},e):O(),D}function O(){e=w.Running,R("start",v,x)}function _(){if(e=w.Completed,M={},R("end",v),e===w.Completed)if(n<L){if(n++,T===k.Reverse){let e={...m};m={...x},x=e}A(S)}else n=0;return D}let D={getState:function(){return e},easing:function(e){return i=e,t=z.Ease,M={},D},duration:function(e){return l=e,D},spring:function(e={}){t=z.Spring;let{velocity:n,mass:o,tension:i,friction:l,restDelta:p,restSpeed:m,maxSpeed:h,clamp:v}={velocity:0,mass:1,tension:170,friction:26,restDelta:.1,restSpeed:.1,maxSpeed:1/0,clamp:!0,...e};return a=n,r=o,s=i,c=l,f=p,d=m,u=h,g=v,M={},D},isRunning:function(){return e===w.Running},isSpring:function(){return t===z.Spring},from:function(e){return v={...e},D},to:function(e){return x=e,D},repeat:function(e,t=0,n=k.Loop,o){return L=e,S=t,T=n,P=o||i,D},on:function(e,t){return C.set(e,[...C.get(e)||[],t]),D},off:function(e,t){return C.has(e)&&C.set(e,C.get(e).filter(e=>e!==t)),D},start:function(t){return e=w.Initializing,y(m={...v},x)||(I.add(this),$||($=window.requestAnimationFrame(E)),A(t)),D},pause:function(){return h&&(clearTimeout(h),h=null),e===w.Running&&(e=w.Paused,R("pause",v)),D},end:_,tick:function(n){n>b&&(n=b),o+=n;let h=0,E=!1;if(e!==w.Running)return D;if(t===z.Ease){E=1===(h=p(0,o/l,1));let e=T===k.Reverse?P:i;for(let t in v)v[t]=m[t]+(x[t]-m[t])*e(h)}if(t===z.Spring){let e=.001*n,t=0;for(let n in v){let o=x[n],i=v[n];if(!("number"==typeof o&&!isNaN(o))||!("number"==typeof i&&!isNaN(i))
1)continue;if(Math.abs(o-i)<=f){v[n]=o,M[n]=0;continue}M[n]||("object"==typeof a&&"number"==typeof a[n]?M[n]=a[n]:"number"==typeof a?M[n]=a:M[n]=0);let l=M[n],m=(l=p(-1*Math.abs(u),l,Math.abs(u)))*r*c,h=Math.abs(o-i)*s;l+=((i>o?-1:1)*h-m)/r*e,i+=l*e;let y=v[n]>o?i<o:i>o,b=Math.abs(l)<d&&Math.abs(o-i)<=f;g&&y&&(b=!0),b?(i=o,l=0):t++,v[n]=i,M[n]=l}E=!t}let L={...x};return R("step",v,m,x,h),E&&e===w.Running&&y(x,L)&&(e=w.Completed,_()),D},getStartValues:function(){return m},getCurrentValues:function(){return v},getCurrentVelocities:function(){return M},getEndValues:function(){return x},destroy:function(){e=w.Destroyed,h&&(clearTimeout(h),h=null),m=v=x={},I.delete(this)}};return D}function D(e){let t=[];for(let n of"undefined"!=typeof TouchEvent&&e instanceof TouchEvent?e.touches:e instanceof MouseEvent&&"mouseup"!==e.type?[e]:[])t.push({x:n.clientX,y:n.clientY,ts:Date.now()});return t}function H(e){let t=[];for(let n of"undefined"!=typeof TouchEvent&&e instanceof TouchEvent?e.changedTouches:e instanceof MouseEvent?[e]:[])t.push({x:n.clientX,y:n.clientY,ts:Date.now()});return t}function V(e){let t=e[0],n=e[1]||t;return{x:(t.x+n.x)/2,y:(t.y+n.y)/2,ts:n.ts}}function j(e){let 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}F.destroy=()=>{for(let e of I)e.destroy();$&&(cancelAnimationFrame($),$=null)},F.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}};let N=e=>{e.cancelable&&e.preventDefault()},q={passive:!1},B={panThreshold:5,swipeThreshold:3,ignore:["textarea","input","select","[contenteditable]","[data-selectable]","[data-draggable]"]},W=!1,Z=!0,G=(e,t)=>{let n,o,i,l={...B,...t},a=[],r=[],s=[],c=!1,u=!1,d=!1,f=0,g=0,p=0,m=0,h=0,v=0,y=0,b=0,E=0,w=[],x=0,M=0,L=new Map;function S(e){let t=j(r),l=j(s),d=Math.abs(y)>Math.abs(b)?y:b,f={srcEvent:i,isPanRecognized:c,isSwipeRecognized:u,firstTouch:a,previousTouch:s,currentTouch:r,deltaX:p,deltaY:m,offsetX:h,offsetY:v,velocityX:y,velocityY:b,velocity:d,angle:E,axis:o,scale:t&&l?t/l:0,center:n};for(let t of L.get(e)||[])t(f)}function T(e){let t=Date.now();w=w.filter(e=>!e.ts||e.ts>t-100),e&&w.push(e)}function P(){if(y=0,b=0,w.length>3){let e=w[0],t=w[w.length-1];if(e&&t){let n=t.x-e.x,o=t.y-e.y,i=e.ts&&t.ts?t.ts-e.ts:0;i>0&&(y=Math.abs(n)>3?n/(i/30):0,b=Math.abs(o)>3?o/(i/30):0)}}}function C(e){if(e instanceof MouseEvent){if(W)return}else W=!0;let t=e.composedPath()[0],o=l.ignore.join(",");if(t.matches(o)||t.closest(o)||"undefined"!=typeof MouseEvent&&e instanceof MouseEvent&&(!e.buttons||0!==e.button))return;e instanceof MouseEvent&&N(e);let p=Date.now(),m=p-(f||p);d=m>0&&m<=250,f=p,clearTimeout(x),i=e,e instanceof MouseEvent&&(window.addEventListener("mousemove",R),window.addEventListener("mouseup",A)),window.addEventListener("blur",O),a=[...r=D(e)],s=[],g=r.length,n=V(r),1===g&&(c=!1,u=!1),g&&T(V(r)),S("start")}function R(e){if(!a.length||e.defaultPrevented)return;i=e,s=[...r],g=(r=D(e)).length;let t=n=V(r),u=V(s);if(p=t.x-u.x,m=t.y-u.y,T(t),P(),S("move"),r.length>1&&Math.abs(j(r)-j(s))>=.1&&S("pinch"),!c&&a.length){let e=V(a);h=t.x-e.x,v=t.y-e.y,(c=Math.abs(h)>l.panThreshold||Math.abs(v)>l.panThreshold)&&(Z=!1,clearTimeout(M),M=0,o=(E=Math.abs(180*Math.atan2(v,h)/Math.PI))>45&&E<135?"y":"x",a=[...r],s=[...r],window.getSelection()?.removeAllRanges(),S("panstart"))}c&&(p||m)&&S("pan")}function A(e){if(i=e,!a.length)return;let t=D(e),o=H(e);if(g=t.length,n=V(o),o.length&&T(V(o)),P(),s=[...r],r=[...t],a=[...t],t.length>0)S("end"),c=!1,u=!1,w=[];else{let e=l.swipeThreshold;(Math.abs(y)>e||Math.abs(b)>e)&&(u=!0),c&&S("panend"),u&&S("swipe"),c||u||(S("tap"),d?S("doubleTap"):x=setTimeout(function(){S("singleTap")},250)),S("end"),z()}}function O(){clearTimeout(x),z(),c&&S("panend"),S("end")}function z(){c=!1,u=!1,d=!1,g=0,w=[],r=[],s=[],a=[],p=0,m=0,h=0,v=0,y=0,b=0,E=0,o=void 0,window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",A),window.removeEventListener("blur",O),Z||M||(M=setTimeout(()=>{Z=!0,M=0},100))}function k(e){let t=e.target;W=!1,t&&!e.defaultPrevented&&(Z||(N(e),e.stopPropagation()))}let I={init:function(){if(e)return e.addEventListener("click",k,q),e.addEventListener("mousedown",C,q),e.addEventListener("touchstart",C,q),e.addEventListener("touchmove",R,q),e.addEventListener("touchend",A),e.addEventListener("touchcancel",A),I},on:function(e,t){return L.set(e,[...L.get(e)||[],t]),I},off:function(e,t){return L.has(e)&&L.set(e,L.get(e).filter(e=>e!==t)),I}
1,isPointerDown:()=>g>0,destroy:function(){clearTimeout(x),clearTimeout(M),M=0,e&&(e.removeEventListener("click",k,q),e.removeEventListener("mousedown",C,q),e.removeEventListener("touchstart",C,q),e.removeEventListener("touchmove",R,q),e.removeEventListener("touchend",A),e.removeEventListener("touchcancel",A)),e=null,z()}};return I};G.isClickAllowed=()=>Z;let Y={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"},X=(e,t="")=>{e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.remove(t)})},U=(e,t="",n)=>{e&&e.classList&&t.split(" ").forEach(t=>{t&&e.classList.toggle(t,n||!1)})},K=1e4,J=e=>{e.cancelable&&e.preventDefault()},Q=(e,t=K)=>Math.round(((e=parseFloat(e+"")||0)+Number.EPSILON)*t)/t,ee=((S={}).Reset="reset",S.Zoom="zoom",S.ZoomIn="zoomIn",S.ZoomOut="zoomOut",S.ZoomTo="zoomTo",S.ToggleCover="toggleCover",S.ToggleFull="toggleFull",S.ToggleMax="toggleMax",S.IterateZoom="iterateZoom",S.Pan="pan",S.Swipe="swipe",S.Move="move",S.MoveLeft="moveLeft",S.MoveRight="moveRight",S.MoveUp="moveUp",S.MoveDown="moveDown",S.RotateCCW="rotateCCW",S.RotateCW="rotateCW",S.FlipX="flipX",S.FlipY="flipY",S),et=((T={}).Cover="cover",T.Full="full",T.Max="max",T),en={x:0,y:0,scale:1,angle:0,flipX:1,flipY:1},eo=((P={})[P.Init=0]="Init",P[P.Loading=1]="Loading",P[P.Error=2]="Error",P[P.Ready=3]="Ready",P[P.Destroyed=4]="Destroyed",P),ei={bounds:!0,classes:{container:"f-panzoom",wrapper:"f-panzoom__wrapper",content:"f-panzoom__content",viewport:"f-panzoom__viewport"},clickAction:ee.ToggleFull,dblClickAction:!1,gestures:{},height:"auto",l10n:Y,maxScale:4,minScale:1,mouseMoveFactor:1,panMode:"drag",protected:!1,singleClickAction:!1,spinnerTpl:'<div class="f-spinner"></div>',wheelAction:ee.Zoom,width:"auto"},el=0,ea=0,er=0,es=(e,n={},o={})=>{let i,l,c,d,f,g,m,v,y=eo.Init,b={...ei,...n},E={},w={...en},x={...en},M=[];function L(e){let t=b[e];return t&&"function"==typeof t?t(ew):t}function S(){return e&&e.parentElement&&i&&y===eo.Ready}let T=new Map;function P(e,...t){let n=[...T.get(e)||[]];for(let o of(b.on&&n.push(b.on[e]),n))o&&o instanceof Function&&o(ew,...t);"*"!==e&&P("*",e,...t)}function C(e){if(!S()||u(e.target))return;let t=Date.now(),n=p(-1,[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(e,t){return Math.abs(t)>Math.abs(e)?t:e}),1);P("wheel",e,n);let o=L("wheelAction");if(!o||e.defaultPrevented)return;let i=x.scale,l=i*(n>0?1.5:.5);if(o===ee.Zoom){let o=100>Math.abs(e.deltaY)&&100>Math.abs(e.deltaX);if(t-ea<(o?200:45))return void J(e);ea=t;
1let a=q(),r=Y();if(Q(l)<Q(a)&&Q(i)<=Q(a)?(er+=Math.abs(n),l=a):Q(l)>Q(r)&&Q(i)>=Q(r)?(er+=Math.abs(n),l=r):(er=0,l=p(a,l,r)),er>7)return}switch(J(e),o){case ee.Pan:eu(o,{srcEvent:e,deltaX:-(2*e.deltaX),deltaY:-(2*e.deltaY)});break;case ee.Zoom:eu(ee.ZoomTo,{srcEvent:e,scale:l,center:{x:e.clientX,y:e.clientY}});break;default:eu(o,{srcEvent:e})}}function R(n){let o=n.composedPath()[0];if(!G.isClickAllowed()||!r(o)||n.defaultPrevented||!e?.contains(o)||o.hasAttribute("disabled")||o.hasAttribute("aria-disabled"))return;let l=o.closest("[data-panzoom-action]"),a=l?.dataset?.panzoomAction,s=l?.dataset?.panzoomValue||"";if(a){switch(a){case ee.ZoomTo:case ee.ZoomIn:case ee.ZoomOut:eu(a,{scale:parseFloat(s||"")||void 0});break;case ee.MoveLeft:case ee.MoveRight:eu(a,{deltaX:parseFloat(s||"")||void 0});break;case ee.MoveUp:case ee.MoveDown:eu(a,{deltaY:parseFloat(s||"")||void 0});break;default:eu(a)}return}if(!i?.contains(o))return;let c={srcEvent:n};if(eu(L("clickAction"),c),L("dblClickAction")){let e=Date.now(),n=e-(el||e);el=e,n>0&&n<=250?(t&&(clearTimeout(t),t=void 0),eu(L("dblClickAction"),c)):t=setTimeout(()=>{eu(L("singleClickAction"),c)},250)}}function A(e){if(v=e,!S()||!D()||w.scale<=1||x.scale<=1||(i?.dataset.animationName||"").indexOf("zoom")>-1)return;let t=j(x.scale);if(!t)return;let{x:n,y:o}=t;eu(ee.Pan,{deltaX:n-x.x,deltaY:o-x.y})}function O(){e&&(X(e,"is-loading"),e.querySelector(".f-spinner")?.remove())}function z(){if(!e||!l)return;if(O(),l instanceof HTMLImageElement&&!(l.complete&&l.naturalWidth)){y=eo.Error,i?.classList.add("has-error"),P("error");return}P("loaded");let{width:t,height:n}=$();l instanceof HTMLImageElement&&(l.setAttribute("width",t+""),l.setAttribute("height",n+"")),i&&(X(i,"has-error"),l instanceof HTMLImageElement&&(i.setAttribute("width",t+""),i.setAttribute("height",n+""),i.style.aspectRatio=`${t/n||""}`)),g=F().on("start",(e,t)=>{x={...en,...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),ec(),P("animationStart")}).on("pause",e=>{x={...en,...e}}).on("step",e=>{if(!S())return void g?.end();if(w={...en,...e},D()||!L("bounds")||ey()||x.scale>w.scale||x.scale<B())return void ed();let t=et(x.scale),n=!1,o=!1,i=!1,l=!1;w.x<t.x[0]&&(n=!0),w.x>t.x[1]&&(o=!0),w.y<t.y[0]&&(l=!0),w.y>t.y[1]&&(i=!0);let a=!1,r=!1,s=!1,c=!1;x.x<t.x[0]&&(a=!0),x.x>t.x[1]&&(r=!0),x.y<t.y[0]&&(c=!0),x.y>t.y[1]&&(s=!0);let u=!1;(o&&r||n&&a)&&(x.x=p(t.x[0],x.x,t.x[1]),u=!0),(i&&s||l&&c)&&(x.y=p(t.y[0],x.y,t.y[1]),u=!0),u&&g&&g.spring({tension:94,friction:17,maxSpeed:555*x.scale,restDelta:.1,restSpeed:.1,velocity:g.getCurrentVelocities()}).from(w).to(x).start(),ed()}).on("end",()=>{es(),g?.isRunning()||(ec(),P("animationEnd"))}),function(){let e=L("gestures");e&&d&&l&&(f=G(d,e).on("start",e=>{if(!g)return;let t=e.srcEvent;D()||((w.scale>1||e.currentTouch.length>1)&&(t?.stopPropagation(),g.pause()),1===e.currentTouch.length&&P("touchStart"))}).on("move",e=>{!D()&&(1!==x.scale||e.currentTouch.length>1)&&(e.srcEvent.preventDefault(),e.srcEvent.stopPropagation())}).on("pan",e=>{if(!S()||D())return;let t=e.srcEvent;(1!==x.scale||e.currentTouch.length>1)&&(J(t),eu(ee.Pan,e))}).on("swipe",e=>{!(!S()||D())&&x.scale>1&&eu(ee.Swipe,e)}).on("tap",e=>{P("click",e)}).on("singleTap",e=>{P("singleClick",e)}).on("doubleTap",e=>{P("dblClick",e)}).on("pinch",e=>{D()||(e.scale>B()?eu(ee.ZoomIn,e):e.scale<B()?eu(ee.ZoomOut,e):eu(ee.Pan,e))}).on("end",e=>{D()||(e.currentTouch.length?(e.srcEvent.stopPropagation(),J(e.srcEvent),g?.end()):(ec(),es(),P("touchEnd")))}).init())}(),d&&(d.addEventListener("wheel",C,{passive:!1}),M.push(()=>{d?.removeEventListener("wheel",C,{passive:!1})})),e?.addEventListener("click",R),document?.addEventListener("mousemove",A),M.push(()=>{e?.removeEventListener("click",R),document?.removeEventListener("mousemove",A)});let o=k();w={...o},x={...o},y=eo.Ready,ed(),ec(),P("ready"),requestAnimationFrame(()=>{O(),d&&(d.style.visibility="")})}function k(){let e={...L("startPos")||{}},t=e.scale,n=1;n="string"==typeof t?N(t):"number"==typeof t?t:B();let o={...en,...e,scale:n},i=D()?j(n):void 0;if(i){let{x:e,y:t}=i;o.x=e,o.y=t}return o}function I(){let e={top:0,left:0,width:0,height:0};if(i){let t=i.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 $(){let e=L("width"),t=L("height");if(l&&"auto"===e){let t=l.getAttribute("width");e=t?parseFloat(t+""):void 0!==l.dataset.width?parseFloat(l.dataset.width+""):d instanceof HTMLImageElement?d.naturalWi
1dth:l instanceof HTMLImageElement?l.naturalWidth:l.getBoundingClientRect().width}else e=a(e)?parseFloat(e):e;if(l&&"auto"===t){let e=l.getAttribute("height");t=e?parseFloat(e+""):void 0!==l.dataset.height?parseFloat(l.dataset.height+""):d instanceof HTMLImageElement?d.naturalHeight:l instanceof HTMLImageElement?l.naturalHeight:l.getBoundingClientRect().height}else t=a(t)?parseFloat(t):t;return{width:e,height:t}}function _(){let e=I();return{width:e.width,height:e.height}}function D(){return"mousemove"===L("panMode")&&matchMedia("(hover: hover)").matches}function j(e){let t=v||L("event"),n=i?.getBoundingClientRect();if(!t||!n||e<=1)return{x:0,y:0};let o=(t.clientX||0)-n.left,l=(t.clientY||0)-n.top,{width:a,height:r}=_(),s=et(e);if(e>1){let t=L("mouseMoveFactor");t>1&&(e*=t)}let c=a*e,u=r*e,d=(c-a)*.5-o/a*100/100*(c-a),f=(u-r)*.5-l/r*100/100*(u-r);return{x:d=p(s.x[0],d,s.x[1]),y:f=p(s.y[0],f,s.y[1])}}function N(t="base"){if(!e)return 1;let n=e.getBoundingClientRect(),o=I(),{width:i,height:l}=$(),a=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":{let e=x.angle%180==90?l:i;return e&&o.width?e/o.width:1}}},r=L("minScale"),s=L("maxScale"),c=Math.min(a("full"),a(r)),u="number"==typeof s?a("full")*s:Math.min(a("full"),a(s));switch(t){case"min":return c;case"base":return p(c,1,u);case"cover":return a("cover");case"full":return Math.min(u,a("full"));case"max":return u}}function q(){return N("min")}function B(){return N("base")}function W(){return N("cover")}function Z(){return N("full")}function Y(){return N("max")}function et(t){let n={x:[0,0],y:[0,0]},o=e?.getBoundingClientRect();if(!o)return n;let i=I(),l=o.width,a=o.height,r=i.width,s=i.height,c=t=void 0===t?x.scale:t,u=t;if(D()&&t>1){let e=L("mouseMoveFactor");e>1&&(r*t>l+.01&&(c*=e),s*t>a+.01&&(u*=e))}return r*=c,s*=u,t>1&&(r>l&&(n.x[0]=(l-r)*.5,n.x[1]=(r-l)*.5),n.x[0]-=(i.left-o.left)*.5,n.x[1]-=(i.left-o.left)*.5,n.x[0]-=(i.left+i.width-o.right)*.5,n.x[1]-=(i.left+i.width-o.right)*.5,s>a&&(n.y[0]=(a-s)*.5,n.y[1]=(s-a)*.5),n.y[0]-=(i.top-o.top)*.5,n.y[1]-=(i.top-o.top)*.5,n.y[0]-=(i.top+i.height-o.bottom)*.5,n.y[1]-=(i.top+i.height-o.bottom)*.5),n}function es(){if(!S()||!L("bounds")||!g)return;let e=q(),t=Y(),n=p(e,x.scale,t);if(x.scale<e-.01||x.scale>t+.01)return void eu(ee.ZoomTo,{scale:n});if(g.isRunning()||ey())return;let o=et(n);x.x<o.x[0]||x.x>o.x[1]||x.y<o.y[0]||x.y>o.y[1]?(x.x=p(o.x[0],x.x,o.x[1]),x.y=p(o.y[0],x.y,o.y[1]),g.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:g.getCurrentVelocities()}),g.from(w).to(x).start()):ed()}function ec(){if(!S())return;let t=ev(),n=ey(),o=eb(),l=eE(),a=eg(),r=ep();U(i,"is-fullsize",l),U(i,"is-expanded",o),U(i,"is-dragging",n),U(i,"can-drag",t),U(i,"will-zoom-in",a),U(i,"will-zoom-out",r);let s=em(),c=eh(),u=!S();for(let t of e?.querySelectorAll("[data-panzoom-action]")||[]){let e=t.dataset.panzoomAction,n=!1;if(u)n=!0;else switch(e){case ee.ZoomIn:s||(n=!0);break;case ee.ZoomOut:c||(n=!0);break;case ee.ToggleFull:s||c||(n=!0);let o=t.querySelector("g");o&&(o.style.display=l?"none":"");break;case ee.ToggleCover:case ee.ToggleMax:s||c||(n=!0)}n?(t.setAttribute("aria-disabled",""),t.setAttribute("tabindex","-1")):(t.removeAttribute("aria-disabled"),t.removeAttribute("tabindex"))}}function eu(t,n){if(!e||!l||!g||t===ee.Swipe&&Math.abs(g.getCurrentVelocities().scale)>.01)return;let o={...x},i=et(D()?x.scale:w.scale),a=g.getCurrentVelocities(),r=I();n=n||{};let s=(n.currentTouch?.length||0)>1,c=n.velocityX||0,u=n.velocityY||0,d=n.center;!d&&n.srcEvent&&(d=V(H(n.srcEvent)));let f=n.deltaX||0,m=n.deltaY||0;switch(t){case ee.MoveRight:f=n.deltaX||100;break;case ee.MoveLeft:f=n.deltaX||-100;break;case ee.MoveUp:m=n.deltaY||-100;break;case ee.MoveDown:m=n.deltaY||100}let h=[];switch(t){case ee.Reset:(x={...en}).scale=B();break;case ee.Pan:case ee.Move:case ee.MoveLeft:case ee.MoveRight:case ee.MoveUp:case ee.MoveDown:if(ey()){let e=1,t=1;x.x<=i.x[0]&&c<=0&&(e=.2*Math.max(.01,1-Math.abs(1/r.width*Math.abs(x.x-i.x[0])))),x.x>=i.x[1]&&c>=0&&(e=.2*Math.max(.01,1-Math.abs(1/r.width*Math.abs(x.x-i.x[1])))),x.y<=i.y[0]&&u<=0&&(t=.2*Math.max(.01,1-Math.abs(1/r.height*Math.abs(x.y-i.y[0])))),x.y>=i.y[1]&&u>=0&&(t=.2*Math.max(.01,1-Math.abs(1/r.height*Math.abs(x.y-i.y[1])))),x.x+=f*e,x.y+=m*t}else x.x=p(i.x[0],x.x+f,i.x[1]),x.y=p(i.y[0],x.y+m,i.y[1]);break;case ee.Swipe:let v=(e=0)=>Math.sign(e)*Math.pow(Math.abs(e),1.5);x.x+=p(-1e3,v(c),1e3),x.y+=p(-1e3,v(u),1e3),u&&!c&&(x.x=p(i.x[0],x.x,i.x[1])),!u&&c&&(x.y=p(i.y[0],x.y,i.y[1])),a.x=c,a.y=u;break;case ee.ZoomTo:x.scale=n.scale||1;break;case ee.ZoomIn:x.scale=x.scale*(n.scale||2),s||(x.scale=Math.min(x.scale,Y()));break;case ee.ZoomOut:x.scale=x.scale*(n.scale||.5),s||(x.scale=Math.max(x.scale,q()));break;case ee.ToggleCover:h=[B(),W()];break;case ee.ToggleFull:h=[B(),Z()];break;case ee.ToggleMax:h=[B(),Y()];break;case ee.IterateZoom:h=[B(),Z(),Y()];break;case ee.Zoom:let y=Z();x.scale>=y-.05?x.scale=B():x.scale=Math.min(y,x.scale*(n.scale||2));break;case ee.RotateCW:x.angle+=90;break;case ee.RotateCCW:x.angle-=90;break;case ee.FlipX:x.flipX*=-1;break;case ee.FlipY:x.flipY*=-1}if(void 0!==w.angle&&Math.abs(w.angle)>=360&&(x.angle-=360*Math.floor(w.angle/360),w.angle-=360*Math.floor(w.angle/360)),h.length){let e=h.findIndex(e=>e>x.scale+1/K);x.scale=h[e]||h[0]}if(s&&(x.scale=p(q()*(s?.8:1),x.scale,Y()*(s?1.6:1))),D()){let e=j(x.scale);if(e){let{x:t,y:n}=e;x.x=t,x.y=n}}else if(x.scale!==o.scale){let t=0,n=0;if(d)t=d.x,n=d.y;else{let o=e.getBoundingClientRect();t=o.x+.5*o.width,n=o.y+.5*o.height}let l=t-r.left,a=n-r.top;l-=.5*r.width,a-=.5*r.height;
1let c=(l-o.x)/o.scale,u=(a-o.y)/o.scale;x.x=l-c*x.scale,x.y=a-u*x.scale,!s&&L("bounds")&&(i=et(),x.x=p(i.x[0],x.x,i.x[1]),x.y=p(i.y[0],x.y,i.y[1]))}if(t===ee.Swipe){let e=500*x.scale;g.spring({tension:94,friction:17,maxSpeed:e,restDelta:.1,restSpeed:.1,velocity:a})}else t===ee.Pan||s?g.spring({tension:900,friction:17,restDelta:.01,restSpeed:.01,maxSpeed:1}):g.spring({tension:170,friction:17,restDelta:.001,restSpeed:.001,maxSpeed:1/0,velocity:a});t===ee.Reset||0===n.velocity?w={...x}:g.from(w).to(x).start(),P("action",t)}function ed(){if(!l)return;if(i){let{width:e,height:t}=$();i.style.maxWidth=`min(${e}px, 100%)`,i.style.maxHeight=`min(${t}px, 100%)`}let{x:t,y:n,scale:o,angle:a,flipX:r,flipY:s}=w,c=`translate3d(${t}px, ${n}px, 0)`;1!==r||1!==s?c+=` scaleX(${o*r}) scaleY(${o*s})`:1!==o&&(c+=` scale(${o})`),a%360!=0&&(c+=` rotate(${a}deg)`);let u=function(){let{width:t,height:n}=$(),{width:o,height:i}=_();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:l,y:a,scale:r,angle:s,flipX:c,flipY:u}=w,d=1/Z(),f=t,g=n,p=w.scale*d,m=x.scale*d,h=Math.max(o,i),v=Math.min(o,i);t>n?(f=h,g=v):(f=v,g=h),p=t>n?h*r/t||1:h*r/n||1;let y=f?t*m:0,b=g?n*m:0,E=f&&g?t*p/y:0;return{x:l=l+.5*f-.5*y,y:a=a+.5*g-.5*b,width:y,height:b,scale:E,flipX:c,flipY:u,angle:s,fitWidth:o,fitHeight:i,fullWidth:t,fullHeight:n}}();if(u){let{x:e,y:t,width:n,height:o,scale:i,flipX:l,flipY:r}=u,s=`translate(${Q(e)}px, ${Q(t)}px)`;1!==l||1!==r?s+=` scaleX(${Q(i*l)}) scaleY(${Q(i*r)})`:s+=` scale(${Q(i)})`,0!==a&&(s+=` rotate(${a}deg)`),d&&(d.style.width=`${Q(n)}px`,d.style.height=`${Q(o)}px`,d.style.transform=`${s}`)}P("render")}function ef(){let e=x.scale,t=void 0,n=L("clickAction"),o=B();if(n){let i=[];switch(n){case ee.ZoomIn:o=e*(t||2);break;case ee.ZoomOut:o=e*(t||.5);break;case ee.ToggleCover:i=[B(),W()];break;case ee.ToggleFull:i=[B(),Z()];break;case ee.ToggleMax:i=[B(),Y()];break;case ee.IterateZoom:i=[B(),Z(),Y()];break;case ee.Zoom:let l=Z();o=e>=l-.05?B():Math.min(l,e*(t||2))}if(i.length){let t=i.findIndex(t=>t>e+1/K);o=i[t]||B()}}return p(q(),o,Y())}function eg(){return!!(S()&&ef()>x.scale)}function ep(){return!!(S()&&ef()<x.scale)}function em(){return!!(S()&&x.scale<Y())}function eh(){return!!(S()&&x.scale>q())}function ev(){return!!(S()&&eb()&&f&&!D())}function ey(){return!!(S()&&f?.isPointerDown()&&!D())}function eb(){return!!(S()&&x.scale>B())}function eE(){return!!(S()&&x.scale>=Z())}let ew={canDrag:ev,canZoomIn:em,canZoomOut:eh,destroy:function(){for(let e of(P("destroy"),Object.values(E)))e?.destroy(ew);for(let e of M)e();return i&&(i.style.aspectRatio="",i.style.maxWidth="",i.style.maxHeight=""),d&&(d.style.width="",d.style.height="",d.style.transform=""),i=void 0,l=void 0,d=void 0,w={...en},x={...en},g?.destroy(),g=void 0,f?.destroy(),f=void 0,y=eo.Destroyed,ew},emit:P,execute:eu,getBoundaries:et,getContainer:function(){return e},getContent:function(){return l},getFullDim:$,getGestures:function(){return f},getMousemovePos:j,getOptions:function(){return b},getScale:N,getStartPosition:k,getState:function(){return y},getTransform:function(e){return!0===e?x:w},getTween:function(){return g},getViewport:function(){return d},getWrapper:function(){return i},init:function(){return y=eo.Init,P("init"),function(){for(let[e,t]of Object.entries({...o,...b.plugins||{}}))if(e&&!E[e]&&t instanceof Function){let n=t();n.init(ew),E[e]=n}P("initPlugins")}(),function(){let t={...ei.classes,...L("classes")};if(e&&(h(e,t.container),l=e.querySelector("."+t.content))){if(l.setAttribute("draggable","false"),(i=e.querySelector("."+t.wrapper))||(h(i=document.createElement("div"),t.wrapper),l.insertAdjacentElement("beforebegin",i),i.insertAdjacentElement("afterbegin",l)),(d=e.querySelector("."+t.viewport))||(h(d=document.createElement("div"),t.viewport),d.insertAdjacentElement("afterbegin",l),i.insertAdjacentElement("beforeend",d)),(c=l.cloneNode(!0)).removeAttribute("id"),i.insertAdjacentElement("afterbegin",c),l instanceof HTMLPictureElement&&(l=l.querySelector("img")),c instanceof HTMLPictureElement&&(c=c.querySelector("img")),d instanceof HTMLPictureElement&&(d=d.querySelector("img")),d&&(d.style.visibility="hidden",L("protected"))){d.addEventListener("contextmenu",e=>{e.preventDefault()});let e=document.createElement("div");h(e,"f-panzoom__protected"),d.appendChild(e)}P("initLayout")}}(),function(){if(e&&i&&!m){let e=null;(m=new ResizeObserver(()=>{S()&&(e=e||requestAnimationFrame(()=>{S()&&(ec(),es(),P("refresh")),e=null}))})).observe(i),M.push(()=>{m?.disconnect(),m=void 0,e&&(cancelAnimationFrame(e),e=null)})}}(),function(){if(!e||!l)return;if(!(l instanceof HTMLImageElement&&c instanceof HTMLImageElement))return z();let t=()=>{l&&l instanceof HTMLImageElement&&l.decode().then(()=>{z()}).catch(()=>{z()})};if(y=eo.Loading,e.classList.add("is-loading"),P("loading"),c.src&&c.complete)return t();(function(){if(!e||e?.querySelector(".f-spinner"))return;let t=s(L("spinnerTpl"));t&&(t.classList.add("f-spinner"),e.classList.add("is-loading"),i?.insertAdjacentElement("afterbegin",t))})(),c.addEventListener("load",t,!1),c.addEventListener("error",t,!1),M.push(()=>{c?.removeEventListener("load",t,!1),c?.removeEventListener("error",t,!1)})}(),ew},isDragging:ey,isExpanded:eb,isFullsize:eE,localize:function(e,t=[]){let 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(let n of e instanceof Array?e:[e])T.has(n)&&T.set(n,T.get(n).filter(e=>e!==t));return ew},on:function(e,t){for(let n of e instanceof Array?e:[e])T.set(n,[...T.get(n)||[],t]);return ew},version:"6.0.29",willZoomIn:eg,willZoomOut:ep};return ew};es.l10n={en_EN:Y},es.getDefaults=()=>ei;let ec=(e,t)=>{let n=[];
1return e.childNodes.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&(!t||e.matches(t))&&n.push(e)}),n},eu={...Y,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"},ed=e=>{e.cancelable&&e.preventDefault()},ef=((C={})[C.Init=0]="Init",C[C.Ready=1]="Ready",C[C.Destroyed=2]="Destroyed",C),eg=((R={})[R.Loading=0]="Loading",R[R.Loaded=1]="Loaded",R[R.Error=2]="Error",R),ep={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:eu,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},em=0,eh=(e,t={},o={})=>{let i,c,d,g,v;em++;let y=ef.Init,b={...ep},E={...ep},w={},x=null,M=null,L=!1,S=!1,T=!1,P=!1,C="height",R=0,A=!0,O=0,z=0,k=0,I=0,$="*",_=[],D=[],H=new Set,V=[],j=[],N=0,q=0,B=0;function W(e,...t){let n=E[e];return n&&n instanceof Function?n(ek,...t):n}function Z(e,t=[]){let n=W("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)}let Y=new Map;function K(e,...t){let n=[...Y.get(e)||[]];for(let o of(E.on&&n.push(E.on[e]),n))o&&o instanceof Function&&o(ek,...t);"*"!==e&&K("*",e,...t)}function J(){let e=f({},ep,b);f(e,ep,b);let t="",n=b.breakpoints||{};if(n)for(let[o,i]of Object.entries(n))window.matchMedia(o).matches&&(t+=o,f(e,i));if(void 0===v||t!==v){if(v=t,y!==ef.Init){let t=j[O]?.slides[0]?.index;for(let n of(void 0===t&&(t=E.initialSlide),e.initialSlide=t,e.slides=[],_))n.isVirtual&&e.slides.push(n)}eA(),!1!==(E=e).enabled&&(y=ef.Init,K("init"),function(){for(let[e,t]of Object.entries({...o,...E.plugins||{}}))if(e&&!w[e]&&t instanceof Function){let n=t();n.init(ek,eh),w[e]=n}K("initPlugins")}(),function(){if(!x)return;let e=W("classes")||{};h(x,e.container);let t=W("style");if(t&&l(t))for(let[e,n]of Object.entries(t))x.style.setProperty(e,n);(M=x.querySelector(`.${e.viewport}`))||(h(M=document.createElement("div"),e.viewport),M.append(...ec(x,`.${e.slide}`)),x.insertAdjacentElement("afterbegin",M)),x.carousel=ek,K("initLayout")}(),function(){if(!M)return;let e=W("classes")||{};for(let t of(_=[],[...ec(M,`.${e.slide}`)].forEach(e=>{e.parentElement&&_.push(eg({el:e,isVirtual:!1,...e.dataset||{}}))}),eu(W("slides")),_))K("addSlide",t);for(let e of _){let t=e.el;t?.parentElement&&(h(t,E.classes.slide),h(t,e.class),eP(e),K("attachSlideEl",e))}K("initSlides")}(),eE(),function(){if(x&&(x.addEventListener("click",eL,{passive:!1}),document.addEventListener("mousemove",Q),!d)){let e=null;(d=new ResizeObserver(t=>{e||(e=requestAnimationFrame(()=>{(function(e){if(!x)return;if(y===ef.Init){let t=e[0]?.contentBoxSize[0],n=t?.blockSize||0,o=t?.inlineSize||0;N=n,q=o,y=ef.Ready,h(x,(W("classes")||{}).isEnabled),eR(),c=F().on("start",()=>{i&&i.isPointerDown()||(en(),eR())}).on("step",e=>{let t=R;(R=e.pos)!==t&&(A=!1,eR())}).on("end",e=>{!i?.isPointerDown()&&(R=e.pos,c&&!S&&(R<k||R>I)?c.spring({clamp:!0,mass:1,tension:200,friction:25,velocity:0,restDelta:1,restSpeed:1}).from({pos:R}).to({pos:p(k,R,I)}).start():A||(A=!0,K("settle")))}),ee(),eo(),K("ready");return}if(y!==ef.Ready)return;let t=j.length;eE(),ee();let n=x.getBoundingClientRect(),o=n.height,l=n.width;if(!(t>1&&(P&&.5>Math.abs(o-N)||!P&&.5>Math.abs(l-q))))N=o,q=l,(!P||o)&&(P||l)&&x&&M&&(t===j.length&&i?.isPointerDown()||(W("dragFree")&&(S||R>k&&R<I)?(en(),eR()):eC(O,{transition:!1})))})(t),e=null}))})).observe(x)}}())}}function Q(e){n=e}function ee(){if(!M)return;let e=W("gestures");if(!1===e){i&&(i.destroy(),i=void 0);return}i||(i=G(M,e).on("start",e=>{if(!c)return;let{srcEvent:t}=e;P&&u(t.target),c.pause(),c.getCurrentVelocities().pos=0;let n=j[O]?.slides[0];n&&H.has(n.index)&&n.el&&(R=(n.offset||0)+(function(e){let t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);return{width:t.m41||0,height:t.m42||0}}(n.el)[C]||0)*(T&&!P?1:-1)),ex(),!S&&(R<k||R>I)&&c.spring({clamp:!0,mass:1,tension:500,friction:25,velocity:c.getCurrentVelocities()?.pos||0,restDelta:1,restSpeed:1}).from({pos:R}).to({pos:p(k,R,I)}).start()}).on("move",e=>{let{srcEvent:t,axis:n}=e,o=e.srcEvent.target;o&&u(o)||(n||(t.stopPropagation(),t.stopImmediatePropagation()),("y"===n&&P||"x"===n&&!P)&&(ed(t),t.stopPropagation()))}).on("panstart",e=>{e?.axis===(P?"y":"x")&&h(M,"is-dragging")}).on("panend",()=>{X(M,"is-dragging")}).on("pan",e=>{let{deltaX:t,deltaY:n,currentTouch:o,axis:i}=e;if(!c||o.length>1||"y"===i&&!P||"x"===i&&P)return;let l=T&&!P?1:-1,a=P?n:t,r=c?.isRunning()?c.getEndValues().pos:R,s=1;!S&&(r<=k&&a*l<0?s=.2*Math.max(.01,1-Math.abs(1/ea()*Math.abs(r-k))):r>=I&&a*l>0&&(s=.2*Math.max(.01,1-Math.abs(1/ea()*Math.abs(r-I))))),r+=a*s*l,c.spring({clamp:!0,mass:1,tension:700,friction:25,velocity:c.getCurrentVelocities()?.pos||0,restDelta:1,restSpeed:1}).from({pos:R}).to({pos:r}).start()}).on("end",e=>{let{axis:t,velocityX:n,velocityY:o,currentTouch:i}=e,l=j.length,a=W("dragFree");if(i.length>0||!c||!l)return;let r=W("vertical")?o:n,s=c?.isRunning()?c.getEndValues().pos:R,u=T&&!P?1:-1;if(s+=r*(a?5:1)*u,!S&&(r*u<=0&&s<k||r*u>=0&&s>I)){let e=0;Math.abs(r)>0&&(e=2*Math.abs(r),e=Math.min(.3*ea(),e)),s=p(k+-1*e,s,I+e),c.spring({clamp:!0,mass:1,tension:380,friction:25,velocity:-1*r,restDelta:1,restSpeed:1}).from({pos:R}).to({pos:s}).start();return}if(a||w.Autoscroll?.isEnabled())return void(Math.abs(r)>10?c.spring({clamp:!0,mass:1,tension:150,friction:25,velocity:-1*r,restDelta:1,restSpeed:1}).from({pos:R}).to({pos:s}).start():c.isRunning()||A||(A=!0,K("settle")));if(!(a||w.Autoscroll?.isEnabled())&&(!(e.offsetX||e.offsetY)||"y"===t&&!P||"x"===t&&P))return void eC(O,{transition:"tween"});let d=el(s);Math.abs(r)>10&&d===O&&(r>0?d+=T&&!P?1:-1:d+=T&&!P?-1:1),eC(d,{transition:"tween",tween:{velocity:-1*r}})}).init())}function et(e="*"){let t=[];for(let n of _)("*"===e||n.class&&n.class.includes(e)||n.el&&n.el?.classList.contains(e))&&t.push(n);g=void 0,$=e,D=[...t]}function en(){if(!c)return;let e=el(c?.isRunning()?c.getEndValues().pos:R);e!==O&&(g=O,O=e,eP(),eo(),ei(),K("change",O,g))}function eo(){if(!x)return;for(let e of(U(M,"is-draggable",!!i&&j.length>0),x.querySelectorAll("[data-carousel-index]")))e.innerHTML=O+"";for(let e of x.querySelectorAll("[data-carousel-page]"))e.innerHTML=O+1+"";for(let e of x.querySelectorAll("[data-carousel-pages]"))e.innerHTML=j.length+"";for(let e of x.querySelectorAll("[data-carousel-go-prev]"))e.toggleAttribute("aria-disabled",!eO()),eO()?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1");for(let e of x.querySelectorAll("[data-carousel-go-next]"))e.toggleAttribute("aria-disabled",!ez()),ez()?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1");let e=!1,t=j[O]?.slides[0];for(let n of(t&&(t.downloadSrc||"image"===t.type&&t.src)&&(e=!0),x.querySelectorAll("[data-carousel-download]")))n.toggleAttribute("aria-disabled",!e)}function ei(e){e||(e=j[O]?.slides[0]);let t=e.el;
1if(t)for(let n of t.querySelectorAll("[data-slide-index]"))n.innerHTML=e.index+1+""}function el(e){if(!j.length||!c)return 0;let t=er(),n=e;S?n-=Math.floor((e-j[0]?.pos)/t)*t:n=p(j[0]?.pos,e,j[j.length-1]?.pos);let o=new Map,i=0;for(let e of j){let l=Math.abs(e.pos-n),a=Math.min(l,Math.abs(e.pos-n-t),Math.abs(e.pos-n+t));o.set(i,a),i++}return parseInt((o.size>0?[...o.entries()].reduce((e,t)=>t[1]<e[1]?t:e):[O,0])[0])}function ea(){return M&&M.getBoundingClientRect()[C]||0}function er(e=!0){return D.reduce((e,t)=>e+t.dim,0)+(D.length-(S&&e?0:1))*B}function es(e){let t=er(),n=ea();if(!M)return[];let o=[];if(!t||!n)return[];e=void 0===e?R:e,S&&(e-=Math.floor(e/t)*t);let i=0,l=0;if(L){let e=M.getBoundingClientRect();i=Math.abs(e.left),l=Math.abs(window.innerWidth-e.right)}let a=0;for(let r of D){let s=(t=0)=>{!(o.indexOf(r)>-1)&&(r.pos=a-e+t||0,r.offset+t>e-r.dim-i+.51&&r.offset+t<e+n+l-.51&&o.push(r))};r.offset=a,S&&(s(t),s(-1*t)),s(),a+=r.dim+B}return o}function eu(e,t){let n=[];for(let t of Array.isArray(e)?e:[e]){let e=eg({...t,isVirtual:!0});n.push(e)}for(let e of(_.splice(void 0===t?_.length:t,0,...n),eb(),n))!function(e){if(!e)return;let t=e.el;t||(e.el=t=document.createElement("div"));let n=e.html?e.html instanceof HTMLElement?e.html:s(e.html):void 0;n&&(h(n,"f-html"),e.htmlEl=n,h(t,"has-html"),t.append(n),K("contentReady",e))}(e);return et($),n}function eg(e){return(a(e)||e instanceof HTMLElement)&&(e={html:e}),{index:-1,el:void 0,class:"",isVirtual:!0,dim:0,pos:0,offset:0,html:"",src:"",...e}}function ev(e){if(!M||!e)return;let t=e.el;if(t){if(t.setAttribute("index",e.index+""),t.parentElement!==M){let n;for(let o of(h(t,E.classes.slide),h(t,e.class),eP(e),_))if(o.index>e.index){n=o.el;break}M.insertBefore(t,n&&M.contains(n)?n:null),K("attachSlideEl",e)}return ei(e),t}}function ey(e){let t=e?.el;t&&(t.remove(),ew(t),K("detachSlideEl",e))}function eb(){for(let e=0;e<_.length;e++){let t=_[e],n=t.el;n&&(t.index!==e&&ew(n),n.setAttribute("index",`${e}`)),t.index=e}}function eE(){if(!x||!M)return;T=W("rtl"),C=(P=W("vertical"))?"height":"width";let e=W("classes");U(x,e.isLTR,!T),U(x,e.isRTL,T),U(x,e.isHorizontal,!P),U(x,e.isVertical,P),U(x,e.hasAdaptiveHeight,W("adaptiveHeight")),L="visible"===window.getComputedStyle(M).getPropertyValue("overflow-"+(P?"y":"x"));let t=M.getBoundingClientRect();if(!t.width&&!t.height)return;B=M&&parseFloat(getComputedStyle(M).getPropertyValue("--f-carousel-gap"))||0;let n=function(){let e=0;if(M){let t=document.createElement("div");h(t,E.classes.slide),M.appendChild(t),e=t.getBoundingClientRect()[C],t.remove(),t=void 0}return e}();for(let e of D){let t=e.el,o=0;if(!e.isVirtual&&t&&r(t)){let e=!1;t.parentElement&&t.parentElement===M||(M.appendChild(t),e=!0),o=t.getBoundingClientRect()[C],e&&t.parentElement?.removeChild(t)}else o=n;e.dim=o}if(S=!1,W("infinite")){S=!0;let e=er(),t=ea();if(L){let e=M.getBoundingClientRect();t+=e.left,t+=e.right-e.width}for(let n=0;n<D.length;n++){let o=D[n]?.dim+B;if(e-o<t&&e-o-t<o){S=!1;break}}}if(!function(){let e;if(!x)return;eb();let t=ea(),n=er(!1),o=W("slidesPerPage");o="auto"===o?1/0:parseFloat(o+""),j=[];let i=0,l=0;for(let e of D)(!j.length||i+e.dim-t>.05||l>=o)&&(j.push({index:j.length,slides:[],dim:0,offset:0,pos:0}),i=0,l=0),j[j.length-1]?.slides.push(e),i+=e.dim+B,l++;let a=W("center"),r=W("fill"),s=0;for(let e of j){for(let t of(e.dim=(e.slides.length-1)*B,e.slides))e.dim+=t.dim;e.offset=s,e.pos=s,!1!==a&&(e.pos-=(t-e.dim)*.5),r&&!S&&n>t&&(e.pos=p(0,e.pos,n-t)),s+=e.dim+B}let c=[];for(let t of j){let n={...t};e&&.1>Math.abs(n.pos-e.pos)?(e.dim+=n.dim,e.slides=[...e.slides,...n.slides]):(e=n,n.index=c.length,c.push(n))}j=c,eo()}(),k=j[0]?.pos||0,I=j[j.length-1]?.pos||0,y===ef.Init){g=void 0,O=W("initialPage");let e=W("initialSlide")||void 0;void 0!==e&&(O=ek.getPageIndex(e)||0),O=p(0,O,j.length-1),z=R=j[O]?.pos||0}else{let e=c?.isRunning()?c.getEndValues().pos:R;(e<k||e>I)&&(O=p(0,O,j.length-1),z=j[O||0]?.pos||0)}K("refresh")}function ew(e){if(!e||!r(e))return;let t=parseInt(e.getAttribute("index")||"-1"),n="";for(let t of Array.from(e.classList)){let e=t.match(/^f-(\w+)(Out|In)$/);e&&e[1]&&(n=e[1]+"")}if(!e||!n)return;let o=[`f-${n}Out`,`f-${n}In`,"to-prev","to-next","from-prev","from-next"];e.removeEventListener("animationend",eM),X(e,o.join(" ")),H.delete(t)}function ex(){if(!M)return;let e=H.size;
1for(let e of D)ew(e.el);H.clear(),e&&eR()}function eM(e){"f-"===e.animationName.substring(0,2)&&(ew(e.target),!H.size&&(X(x,"in-transition"),!A&&.5>Math.abs(ek.getPosition(!0)-z)&&(A=!0,K("settle"))),eR())}function eL(e){if(e.defaultPrevented)return;let t=e.composedPath()[0];if(t.closest("[data-carousel-go-prev]")){ed(e),ek.prev();return}if(t.closest("[data-carousel-go-next]")){ed(e),ek.next();return}let n=t.closest("[data-carousel-go-to]");if(n){ed(e),ek.goTo(parseFloat(n.dataset.carouselGoTo||"")||0);return}if(t.closest("[data-carousel-download]")){ed(e);let t=j[O]?.slides[0];if(t&&(t.downloadSrc||"image"===t.type&&t.src)){let e=t.downloadFilename,n=document.createElement("a"),o=t.downloadSrc||t.src||"";n.href=o,n.target="_blank",n.download=e||o,n.click()}return}K("click",e)}function eS(e){let t=e.el;t&&t.querySelector(".f-spinner")?.remove()}function eT(e){let t=e.el;t&&(t.querySelector(".f-html.is-error")?.remove(),X(t,"has-error"))}function eP(e){e||(e=j[O]?.slides[0]);let t=e?.el;if(!t)return;let n=W("formatCaption",e);void 0===n&&(n=e.caption),n=n||"";let o=W("captionEl");if(o&&o instanceof HTMLElement){if(e.index!==O)return;if(a(n)&&(o.innerHTML=Z(n+"")),n instanceof HTMLElement){if(n.parentElement===o)return;o.innerHTML="",n.parentElement&&(n=n.cloneNode(!0)),o.append(n)}return}if(!n)return;let i=e.captionEl||t.querySelector(".f-caption");!i&&n instanceof HTMLElement&&n.classList.contains("f-caption")&&(i=n),!i&&(h(i=document.createElement("div"),"f-caption"),a(n)?i.innerHTML=Z(n+""):n instanceof HTMLElement&&(n.parentElement&&(n=n.cloneNode(!0)),i.append(n)));let l=`f-caption-${em}_${e.index}`;i.setAttribute("id",l),i.dataset.selectable="true",h(t,"has-caption"),t.setAttribute("aria-labelledby",l),e.captionEl=i,t.insertAdjacentElement("beforeend",i)}function eC(e,t={}){let{transition:n,tween:o}={...{transition:E.transition,tween:E.tween},...t||{}};if(!x||!c)return;let i=j.length;if(!i||function(e,t){if(!x||!c||!t||!a(t)||"tween"===t||j[O]?.slides.length>1)return!1;let n=j.length,o=e>O?1:-1;e=S?(e%n+n)%n:p(0,e,n-1),T&&(o*=-1);let i=j[O]?.slides[0],l=i?.index,r=j[e]?.slides[0],s=r?.index,u=j[e]?.pos;if(void 0===s||void 0===l||l===s||R===u||Math.abs(ea()-(r?.dim||0))>1)return!1;A=!1,c.pause(),ex(),h(x,"in-transition"),R=z=u;let d=ev(i),f=ev(r);return en(),d&&(H.add(l),d.style.transform="",d.addEventListener("animationend",eM),X(d,E.classes.isSelected),d.inert=!1,h(d,`f-${t}Out to-${o>0?"next":"prev"}`)),f&&(H.add(s),f.style.transform="",f.addEventListener("animationend",eM),h(f,E.classes.isSelected),f.inert=!1,h(f,`f-${t}In from-${o>0?"prev":"next"}`)),eR(),!0}(e,n))return;e=S?(e%i+i)%i:p(0,e,i-1),z=j[e||0]?.pos||0;let r=c.isRunning()?c.getEndValues().pos:R;if(1>Math.abs(z-r)){R=z,O!==e&&(eP(),eo(),ei(),g=O,K("change",O=e,g)),eR(),A||(A=!0,K("settle"));return}if(c.pause(),ex(),S){let e=er(),t=Math.floor((r-j[0]?.pos)/e),n=z+t*e,o=n-e;z=[n+e,n,o].reduce(function(e,t){return Math.abs(t-r)<Math.abs(e-r)?t:e})}if(!1!==n&&l(o))return void c.spring(f({},E.tween,o)).from({pos:R}).to({pos:z}).start();R=z,en(),eR(),A||(A=!0,K("settle"))}function eR(){let e;if(!x||!M)return;let t=j[O];V=es();let n=new Set,o=[];for(let i of D){if(i.isVirtual&&!H.has(i.index)&&0>V.indexOf(i))continue;let l=ev(i);if(!l)continue;o.push(i);let a=t?.slides?.indexOf(i)>-1;if(a&&n.add(l),W("adaptiveHeight")&&a){let t=(l.firstElementChild||l).getBoundingClientRect().height;e=void 0==e?t:Math.max(e,t)}}M&&e&&(M.style.height=`${e}px`),[...ec(M,`.${E.classes.slide}`)].forEach(e=>{let t=_[parseInt(e.getAttribute("index")||"-1")];t||e.remove();let o=n.has(e);if(U(e,E.classes.isSelected,o),e.inert=0>V.indexOf(t),t.isVirtual&&!H.has(t.index)&&0>V.indexOf(t))return void ey(t);let i=t.pos?Math.round(1e4*t.pos)/1e4:0,l=0,a=0,r=0,s=0,c=E.setTransform||void 0;H.has(t.index)||(l=P?0:T?-1*i:i,a=P?i:0,r=m(l,0,t.dim,0,100),s=m(a,0,t.dim,0,100)),c instanceof Function&&!H.has(t.index)?c(ek,t,{x:l,y:a,xPercent:r,yPercent:s}):e.style.transform=l||a?`translate3d(${r}%, ${s}%,0)`:""}),K("render",o)}function eA(){for(let e of(x?.removeEventListener("click",eL),ex(),document.removeEventListener("mousemove",Q),d?.disconnect(),d=void 0,_))e.el&&r(e.el)&&(e.state=void 0,eS(e),eT(e),ey(e),e.isVirtual?(e.el?.remove(),e.el=void 0):(e.el.style.transform="",M?.appendChild(e.el)));for(let e of Object.values(w))e?.destroy();for(let[e,t]of(w={},i?.destroy(),i=void 0,c?.destroy(),c=void 0,Object.entries(E.classes||{})))"container"!==e&&X(x,t);X(M,"is-draggable")}function eO(){return S||O>0}function ez(){return S||O<j.length-1}let ek={add:function(e,t){let n=R,o=O,i=er(),l=Math.floor(((c?.isRunning()?c.getEndValues().pos:R)-j[0]?.pos)/i);for(let n of eu(e,t))K("addSlide",n);return et($),eE(),c&&(o===O&&(n-=l*i),n===(z=j[O||0]?.pos||0)?R=z:c.spring({clamp:!0,mass:1,tension:300,friction:25,restDelta:1,restSpeed:1}).from({pos:n}).to({pos:z}).start()),eR(),ek},canGoPrev:eO,canGoNext:ez,destroy:function(){return K("destroy"),window.removeEventListener("resize",J),eA(),Y.clear(),x=null,j=[],_=[],E={...ep},w={},D=[],v="",$="*",y=ef.Destroyed,ek},emit:K,filter:function(e="*"){return et(e),eE(),eR(),K("filter",e),ek},getContainer:function(){return x},getGapDim:function(){return B},getGestures:function(){return i},getLastMouseMove:function(){return n},getOption:function(e){return W(e)},getOptions:function(){return E},getPage:function(){return j[O]},getPageIndex:function(e){if(void 0!==e){for(let t of j||[])for(let n of t.slides)if(n.index===e)return t.index;return -1}return O},getPageProgress:function(e,t){void 0===e&&(e=O);let n=j[e];if(!n)return e>O?-1:1;let o=er(),i=B,l=n.pos,a=ek.getPosition();if(S&&!0!==t){let e=Math.floor((a-j[0]?.pos)/o);a-=e*o,l=[l+o,l,l-o].reduce(function(e,t){return Math.abs(t-a)<Math.abs(e-a)?t:e})}return(a-l)/(n.dim+i)},getPageVisibility:function(e){void 0===e&&(e=O);let t=j[e];if(!t)return e>O?-1:1;let n=ek.getPosition(),o=ea(),i=t.pos;if(S){let e=ek.getPosition(),t=er(),n=i+Math.floor((e-j[0]?.pos)/t)*t,o=n-t;i=[n+t,n,o].reduce(function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t})}return i>n&&i+t.dim<n+o?1:i<n?(i+t.dim-n)/t.dim:i+t.dim>n+o?(n+o-i)/t.dim:0},getPages:function(){return j},getPlugins:function(){return w},getPosition:function(e){let t=R;if(S&&!0!==e){let e=er();t-=Math.floor((R-j[0]?.pos||0)/e)*e}return t},getSlides:function(){return _},getState:function(){return y},getTotalSlideDim:er,getTween:function(){return c},getViewport:function(){return M},getViewportDim:ea,getVisibleSlides:function(e){return void 0===e?V:es(e)},goTo:eC,hasNavigated:function(){return void 0!==g},hideError:eT,hideLoading:eS,init:function(){if(!e||!r(e))throw Error("No Element found");return y!==ef.Init&&(eA(),y=ef.Init),x=e,b=t,window.removeEventListener("resize",J),b.breakpoints&&window.addEventListener("resize",J),J(),ek},isInfinite:function(){return S},isInTransition:function(){return H.size>0},isRTL:function(){return T},isSettled:function(){return A},isVertical:function(){return P},localize:function(e,t=[]){return Z(e,t)},next:function(e={}){return eC(O+1,e),ek},off:function(e,t){for(let n of e instanceof Array?e:[e])Y.has(n)&&Y.set(n,Y.get(n).filter(e=>e!==t));return ek},on:function(e,t){for(let n of e instanceof Array?e:[e])Y.set(n,[...Y.get(n)||[],t]);return ek},prev:function(e={}){return eC(O-1,e),ek},remove:function(e){void 0===e&&(e=_.length-1);let t=_[e];return t&&(K("removeSlide",t),t.el&&(ew(t.el),t.el.remove(),t.el=void 0),_.splice(e,1),et($),eE(),eR()),ek},setPosition:function(e){R=e,en(),eR()},showError:function(e,t){eS(e),eT(e);let n=e.el;if(n){let o=document.createElement("div");h(o,"f-html"),h(o,"is-error"),o.innerHTML=Z(t||"<p>{{ERROR}}</p>"),e.htmlEl=o,h(n,"has-html"),h(n,"has-error"),n.insertAdjacentElement("afterbegin",o),K("contentReady",e)}return ek},showLoading:function(e){let t=e.el,n=t?.querySelector(".f-spinner");if(!t||n)return ek;let o=s(W("spinnerTpl"));return o&&(h(o,"f-spinner"),t.insertAdjacentElement("beforeend",o)),ek},version:"6.0.29"};return ek};eh.l10n={en_EN:eu},eh.getDefaults=()=>ep;let ev=function(e="",t="",n=""){return e.split(t).join(n)},ey={tpl:e=>`<img class="f-panzoom__content" 2 ${e.srcset?'data-lazy-srcset="{{srcset}}"':""} 3 ${e.sizes?'data-lazy-sizes="{{sizes}}"':""} 4 data-lazy-src="{{src}}" alt="{{alt}}" />`},eb=()=>{let e;function t(t,n){let o=e?.getOptions().Zoomable,i=(l(o)?{...ey,...o}:ey)[t];return i&&"function"==typeof i&&n?i(n):i}function n(){e&&(e.on("addSlide",r),e.on("removeSlide",s),e.on("attachSlideEl",c),e.on("click",i),e.on("change",o))}function o(){u()}function i(e,t){let n=t.target;
4n&&!t.defaultPrevented&&n.dataset.panzoomAction&&d(n.dataset.panzoomAction)}function r(n,o){if(!e)return;let i=o.el;if(!i)return;let l=o.src||o.lazySrc||"",r=o.alt||o.caption||`Image #${o.index}`,s=o.srcset||o.lazySrcset||"",c=o.sizes||o.lazySizes||"";if(l&&a(l)&&!o.html&&(!o.type||"image"===o.type)){o.type="image",o.thumbSrc=o.thumbSrc||l;let e=t("tpl",o);e=ev(e,"{{src}}",l+""),e=ev(e,"{{alt}}",r+""),e=ev(e,"{{srcset}}",s+""),e=ev(e,"{{sizes}}",c+""),i.insertAdjacentHTML("afterbegin",e)}if(!i.querySelector(".f-panzoom__content"))return;let d=es(i,{width:o.width&&"auto"!==o.width?parseFloat(o.width+""):"auto",height:o.height&&"auto"!==o.height?parseFloat(o.height+""):"auto",classes:{container:"f-zoomable"},event:()=>e?.getLastMouseMove(),spinnerTpl:()=>e?.getOption("spinnerTpl")||"",...t("Panzoom")});d.on("*",(t,n,...i)=>{e&&("loading"===n&&(o.state=0),"loaded"===n&&(o.state=1),"error"===n&&(o.state=2,e?.showError(o,"{{IMAGE_ERROR}}")),e.emit(`panzoom:${n}`,o,...i),"ready"===n&&e.emit("contentReady",o),o.index===e?.getPageIndex()&&u())}),o.panzoomRef=d}function s(e,t){t.panzoomRef&&(t.panzoomRef.destroy(),t.panzoomRef=void 0)}function c(e,t){let n=t.panzoomRef;if(n)switch(n.getState()){case eo.Init:n.init();break;case eo.Ready:n.execute(ee.ZoomTo,{...n.getStartPosition(),velocity:0})}}function u(){let t=e?.getContainer();if(!t)return;let n=e?.getPage()?.slides[0].panzoomRef,o=n?.canZoomIn()||!1,i=n?.canZoomOut()||!1,l=n?.isFullsize()||!1,a=!n||n?.getState()!==eo.Ready;for(let e of t?.querySelectorAll("[data-panzoom-action]")||[]){let t=e.dataset.panzoomAction,n=!1;if(a)n=!0;else switch(t){case ee.ZoomIn:o||(n=!0);break;case ee.ZoomOut:i||(n=!0);break;case ee.ToggleFull:o||i||(n=!0);let r=e.querySelector("g");r&&(r.style.display=l?"none":"");break;case ee.ToggleCover:case ee.ToggleMax:o||i||(n=!0)}n?(e.setAttribute("aria-disabled",""),e.setAttribute("tabindex","-1")):(e.removeAttribute("aria-disabled"),e.removeAttribute("tabindex"))}}function d(t,...n){e?.getPage().slides[0].panzoomRef?.execute(t,...n)}return{init:function(t){!1!==(e=t).getOptions().Zoomable&&e.on("initPlugins",n)},destroy:function(){if(e)for(let t of(e.off("addSlide",r),e.off("removeSlide",s),e.off("attachSlideEl",c),e.off("click",i),e.off("change",o),e.getSlides()))s(e,t);e=void 0},execute:d}},eE={syncOnChange:!1,syncOnClick:!0,syncOnHover:!1},ew=()=>{let e,t;function n(){let t=e?.getOptions().Sync;return l(t)?{...eE,...t}:eE}function o(){let o=n().target;e&&o&&e&&o&&(t=o,e.getOptions().classes={...e.getOptions().classes,isSelected:""},e.getOptions().initialSlide=t.getPage()?.slides[0]?.index||0,n().syncOnChange&&e.on("change",a),n().syncOnClick&&e.on("click",s),n().syncOnHover&&e.getViewport()?.addEventListener("mouseover",c),e&&t&&(e.on("ready",i),e.on("refresh",u),t.on("change",r),t.on("filter",d)))}function i(){f()}function a(){if(e&&t){let n=e.getPage()?.slides||[],o=t.getPageIndex(n[0].index||0);o>-1&&t.goTo(o,e.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function r(){if(e&&t){let n=e.getPageIndex(t.getPage()?.slides[0].index||0);n>-1&&e.goTo(n,t.hasNavigated()?void 0:{tween:!1,transition:!1}),f()}}function s(n,o){if(!e||!t||e.getTween()?.isRunning())return;let i=e?.getOptions().classes.slide;if(!i)return;let l=i?o.target.closest(`.${i}`):null;
4if(l){let e=parseInt(l.getAttribute("index")||"")||0,n=t.getPageIndex(e);t.goTo(n)}}function c(t){e&&s(e,t)}function u(){if(e&&t){let n=e.getPageIndex(t.getPage()?.slides[0].index||0);n>-1&&e.goTo(n,{tween:!1,transition:!1}),f()}}function d(n,o){e&&t&&(e.filter(o),r())}function f(){if(!t)return;let n=t.getPage()?.slides[0]?.index||0;for(let t of e?.getSlides()||[])t.el?.classList.toggle("is-selected",t.index===n)}return{init:function(t){(e=t).on("initSlides",o)},destroy:function(){e?.off("ready",i),e?.off("refresh",u),e?.off("change",a),e?.off("click",s),e?.getViewport()?.removeEventListener("mouseover",c),t?.off("change",r),t?.off("filter",d),t=void 0,e?.off("initSlides",o),e=void 0},getTarget:function(){return t}}},ex={showLoading:!0,preload:1},eM="is-lazyloading",eL="is-lazyloaded",eS=()=>{let e;function t(){let t=e?.getOptions().Lazyload;return l(t)?{...ex,...t}:ex}function n(){if(!e)return;let n=[...e.getVisibleSlides()],o=t().preload;if(o>0){let t=e.getPosition(),i=e.getViewportDim();n.push(...e.getVisibleSlides(t+i*o),...e.getVisibleSlides(t-i*o))}for(let o of n)!function(n){let o=n.el;if(!o)return;let i="[data-lazy-src],[data-lazy-srcset],[data-lazy-bg]",l=Array.from(o.querySelectorAll(i));for(let a of(o.matches(i)&&l.push(o),l)){let o=a.dataset.lazySrc,i=a.dataset.lazySrcset,l=a.dataset.lazySizes,r=a.dataset.lazyBg,s=(a instanceof HTMLImageElement||a instanceof HTMLSourceElement)&&(o||i),c=a instanceof HTMLElement&&r;if(!(s||c))continue;let u=o||i||r;if(u){if(s&&u){let r=a.parentElement?.classList.contains("f-panzoom__wrapper");t().showLoading&&e?.showLoading(n),a.addEventListener("load",()=>{e?.hideLoading(n),a instanceof HTMLImageElement?a.decode().then(()=>{a.classList.remove(eM),a.classList.add(eL)}):(a.classList.remove(eM),a.classList.add(eL)),r||e?.emit("lazyLoad:loaded",n,a,u)}),a.addEventListener("error",()=>{e?.hideLoading(n),a.classList.remove(eM),a.classList.add("has-lazyerror"),r||e?.emit("lazyLoad:error",n,a,u)}),a.classList.add("f-lazyload"),a.classList.add(eM),r||e?.emit("lazyLoad:load",n,a,u),o&&(a.src=o),i&&(a.srcset=i),l&&(a.sizes=l)}else c&&(document.body.contains(a)||(document.createElement("img").src=r),a.style.backgroundImage=`url('${r}')`);delete a.dataset.lazySrc,delete a.dataset.lazySrcset,delete a.dataset.lazySizes,delete a.dataset.lazyBg}}}(o)}return{init:function(t){(e=t).on("render",n)},destroy:function(){e?.off("render",n),e=void 0}}},eT={prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"></path></svg>',nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"></path></svg>'},eP=()=>{let e,t,n;function o(){let t=e?.getOptions().Arrows;return l(t)?{...eT,...t}:eT}function i(t){if(!e)return;let n=`<button data-carousel-go-${t} tabindex="0" class="f-button is-arrow is-${t}" title="{{${t.toUpperCase()}}}">`+o()[`${t}Tpl`]+"</button",i=s(e.localize(n))||void 0;return i&&h(i,o()[`${t}Class`]),i}function a(){t?.remove(),t=void 0,n?.remove(),n=void 0,e?.getContainer()?.classList.remove("has-arrows")}function r(){e&&!1!==e.getOptions().Arrows&&e.getPages().length>1?(!function(){if(!e)return;let o=e.getViewport();o&&(!t&&(t=i("prev"))&&o.insertAdjacentElement("beforebegin",t),!n&&(n=i("next"))&&o.insertAdjacentElement("afterend",n),U(e.getContainer(),"has-arrows",!!(t||n)))}(),e&&(t?.toggleAttribute("aria-disabled",!e.canGoPrev()),n?.toggleAttribute("aria-disabled",!e.canGoNext()))):a()}return{init:function(t){e=t.on(["change","refresh"],r)},destroy:function(){a(),e?.off(["change","refresh"],r),e=void 0}}},eC={moveLeft:{tpl:'<button data-panzoom-action="moveLeft" class="f-button" title="{{MOVE_LEFT}}"><svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg></button>'},moveRight:{tpl:'<button data-panzoom-action="moveRight" class="f-button" title="{{MOVE_RIGHT}}"><svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg></button>'},moveUp:{tpl:'<button data-panzoom-action="moveUp" class="f-button" title="{{MOVE_UP}}"><svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg></button>'}
4,moveDown:{tpl:'<button data-panzoom-action="moveDown" class="f-button" title="{{MOVE_DOWN}}"><svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg></button>'},zoomIn:{tpl:'<button data-panzoom-action="zoomIn" class="f-button" title="{{ZOOM_IN}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg></button>'},zoomOut:{tpl:'<button data-panzoom-action="zoomOut" class="f-button" title="{{ZOOM_OUT}}"><svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},toggle1to1:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><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"/></svg></button>'},toggleFull:{tpl:'<button data-panzoom-action="toggleFull" class="f-button" title="{{TOGGLE_FULL}}"><svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg></button>'},rotateCCW:{tpl:'<button data-panzoom-action="rotateCCW" class="f-button" title="{{ROTATE_CCW}}"><svg><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"/></svg></button>'},rotateCW:{tpl:'<button data-panzoom-action="rotateCW" class="f-button" title="{{ROTATE_CW}}"><svg><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"/></svg></button>'},flipX:{tpl:'<button data-panzoom-action="flipX" class="f-button" title="{{FLIP_X}}"><svg><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg></button>'},flipY:{tpl:'<button data-panzoom-action="flipY" class="f-button" title="{{FLIP_Y}}"><svg><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg></button>'},reset:{tpl:'<button data-panzoom-action="reset" class="f-button" title="{{RESET}}"><svg><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"/></svg></button>'}},eR=((A={}).Left="left",A.middle="middle",A.right="right",A),eA={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>'},...eC},eO={absolute:!1,display:{left:[],middle:["zoomIn","zoomOut","toggle1to1","rotateCCW","rotateCW","flipX","flipY","reset"],right:[]},enabled:"auto",items:{}},ez=()=>{let e,t;function n(t){let n=e?.getOptions().Toolbar,o=(l(n)?{...eO,...n}:eO)[t];return o&&"function"==typeof o&&e?o(e):o}function o(){if(!e?.getOptions().Toolbar||!e||t)return;let o=n("enabled");if(!o)return;let i=n("absolute"),l=e.getSlides().length>1,r=!1,c=!1;for(let t of e.getSlides())t.panzoomRef&&(r=!0),(t.downloadSrc||"image"===t.type&&t.src)&&(c=!0);let u=e.getPlugins().Thumbs?.isEnabled()||!1,d=l&&e.getPlugins().Autoplay||!1,g=e.getPlugins().Fullscreen&&(document.fullscreenEnabled||document.webkitFullscreenEnabled);if("auto"===o&&(o=r),!o)return;(t=e.getContainer()?.querySelector(".f-carousel__toolbar")||void 0)||(t=document.createElement("div")).classList.add("f-carousel__toolbar");let p=n("display"),m=f({},eA,n("items"));for(let n of["left","middle","right"]){let o=p[n]||[],i=document.createElement("div");for(let t of(i.classList.add("f-carousel__toolbar__column"),i.classList.add(`is-${n}`),o)){let n;if(a(t)){if("counter"===t&&!l||"autoplay"===t&&!d||eC[t]&&!r||"fullscreen"===t&&!g||"thumbs"===t&&!u||"download"===t&&!c)continue;n=m[t]}if("object"==typeof t&&(n=t),n&&n.tpl){let t=e.localize(n.tpl),o=s(t=t.split("<svg>").join('<svg tabindex="-1" width="24" height="24" viewBox="0 0 24 24">'));o&&("function"==typeof n.click&&e&&o.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),"function"==typeof n.click&&e&&n.click(e,t)}),i.append(o))}}t.append(i)}if(t.childElementCount&&(!0===i&&t.classList.add("is-absolute"),e.getContainer()?.classList.add("has-toolbar"),!t.parentElement)){let o=n("parentEl");o?o.insertAdjacentElement("afterbegin",t):e.getViewport()?.insertAdjacentElement("beforebegin",t)}}return{init:function(t){(e=t).on("initSlides",o)},destroy:function(){e?.off("initSlides",o),e?.getContainer()?.classList.remove("has-toolbar"),t?.remove(),t=void 0},add:function(e,t){eA[e]=t},isEnabled:function(){return!!t}}},ek={autoStart:!0,pauseOnHover:!0,showProgressbar:!0,timeout:2e3},eI=()=>{let e,t,n=!1,o=!1,i=!1,a=null;function r(t){let n=e?.getOptions().Autoplay,o=(l(n)?{...ek,...n}:ek)[t];return o&&"function"==typeof o&&e?o(e):o}function s(){for(let t of e?.getPage()?.slides||[])if(0===t.state)return!0;return!1}function c(){clearTimeout(t),t=void 0}function u(){!(t||i||s())&&e?.isSettled()&&(function(){if(!e||(g(),!r("showProgressbar")))return;let t=r("progressbarParentEl");if(!t&&e.getPlugins().Toolbar?.isEnabled()&&(t=e.getContainer()),!t&&e.getPlugins().Toolbar?.isEnabled()!==!0){let n=e.getPages()[0]?.slides||[],o=e.getPage()?.slides||[];1===n.length&&1===o.length&&(t=o[0].el)}if(t||(t=e.getViewport()),!t)return;(a=document.createElement("div")).classList.add("f-progressbar"),t.prepend(a);let n=r("timeout")||1e3;a.style.animationDuration=`${n}ms`}(),t=setTimeout(()=>{if(e&&n&&!o){if(!e.isInfinite()&&e.getPageIndex()===e.getPages().length-1)return void e.goTo(0);e.next()}},r("timeout")))}function d(){if(!e||e.getPages().length<2||!1===e.getOptions().Autoplay||n)return;n=!0,e.emit("autoplay:start",r("timeout")),e.getContainer()?.classList.add("has-autoplay"),e.getTween()?.on("start",b);let t=e?.getContainer();t&&r("pauseOnHover")&&matchMedia("(hover: hover)").matches&&(t.addEventListener("mouseenter",E,!1),t.addEventListener("mouseleave",w,!1)),e.on("change",v),e.on("settle",y),e.on("contentReady",m),e.on("panzoom:animationStart",f),e.isSettled()&&u()}
4function f(){if(c(),g(),n&&e){e.emit("autoplay:end"),e.getContainer()?.classList.remove("has-autoplay"),e.getTween()?.off("start",b);let t=e?.getContainer();t&&(t.removeEventListener("mouseenter",E,!1),t.removeEventListener("mouseleave",w,!1))}e&&(e.off("change",v),e.off("settle",y),e.off("contentReady",m),e.off("panzoom:animationStart",f)),n=!1,o=!1}function g(){a&&(a.remove(),a=null)}function p(){e&&e.getPages().length>1&&r("autoStart")&&d()}function m(t){e&&e.getPageIndex(t.index)===e.getPageIndex()&&(!n||i||s()||u())}function h(e,t){let n=t.target;n&&!t.defaultPrevented&&"toggle"===n.dataset.autoplayAction&&x.toggle()}function v(){e&&(e?.isInfinite()||e.getPageIndex()!==e.getPages().length-1)?(g(),c()):f()}function y(){!n||i||o||u()}function b(){c(),g()}function E(){i=!0,n&&(g(),c())}function w(){i=!1,n&&!o&&e?.isSettled()&&u()}let x={init:function(t){(e=t).on("ready",p),e.on("click",h)},destroy:function(){f(),e?.off("ready",p),e?.off("click",h),e=void 0},isEnabled:()=>n,pause:function(){o=!0,c()},resume:function(){o=!1,n&&!i&&u()},start(){d()},stop(){f()},toggle(){n?f():d()}};return x},e$={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"},e_=()=>{let e,t,n,i=0,a=0,r=!0;function s(t){let n=e?.getOptions().Thumbs,o=(l(n)?{...e$,...n}:e$)[t];return o&&"function"==typeof o&&e?o(e):o}function c(){if(!e||e?.getOptions().Thumbs===!1)return!1;let t=0;for(let n of e.getSlides())n.thumbSrc&&t++;return t>=s("minCount")}function u(){return"modern"===s("type")}function d(t=!1){let o=e?.getContainer();if(!e||!o||n||!c())return;if(!n){let e=o.nextElementSibling;e?.classList.contains("f-thumbs")&&(n=e)}if(!n){n=document.createElement("div");let e=s("parentEl");e?e.insertAdjacentElement("beforeend",n):o.insertAdjacentElement("afterend",n)}let i=s("Carousel")?.classes;i?.container&&h(n,i.container),h(n,"f-thumbs"),h(n,`is-${s("type")}`),h(n,"is-syncing"),t&&(n.style.maxHeight="0px")}function g(e){let t=e.thumb?e.thumb instanceof HTMLImageElement?e.thumb.src:e.thumb:e.thumbSrc||void 0,n=void 0===e.thumbAlt?`Thumbnail #${e.index}`:e.thumbAlt+"",o=s("thumbTpl");return o=ev(o,"{{alt}}",n),o=ev(o,"{{src}}",t+""),o=ev(o,"{{index}}",`${e.index}`),{html:o=ev(o,"{{page}}",`${e.index||1}`),class:e.thumbClass}}function m(){if(!o||!e||!n||t)return;let l=[];for(let t of e.getSlides())l.push(g(t));l.length&&((t=o(n,f({},{Sync:{target:e},Lazyload:{preload:1},slides:l,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",slide:"f-thumbs__slide"},initialSlide:e.getOptions().initialPage,center:!0,fill:!u(),infinite:!1,dragFree:!0,rtl:e.getOptions().rtl||!1,slidesPerPage:e=>{let t=0;return(u()&&(function(){if(!u()||!n)return;let e=e=>n&&parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-"+e))||0;i=e("width"),a=e("clip-width")}(),t=(i-a)*4),e&&e.getTotalSlideDim()<=e.getViewportDim()-t)?1/0:1}},e$.Carousel||{},s("Carousel")||{}),{Sync:ew,Lazyload:eS})).on("ready",()=>{e?.emit("thumbs:ready")}),t.on("destroy",()=>{e?.emit("thumbs:destroy")}),t.init(),t.getGestures()?.on("start",()=>{r=!1}),t.on("click",(e,t)=>{let n=t.target;if(n){let e=n.matches("button")?n:n.firstElementChild;e&&e.matches("button")&&(t.preventDefault(),e.focus({preventScroll:!0}))}}),h(e.getContainer(),"has-thumbs"),L())}function v(){c()&&s("showOnStart")&&(d(),m())}function y(){c()&&(e?.on("addSlide",x),e?.on("click",M),e?.getGestures()?.on("start",b))}function b(){r=!0,document.activeElement?.closest(".f-thumbs")&&document.activeElement?.blur()}function E(){n?.classList.toggle("is-syncing",e?.hasNavigated()===!1||e?.getTween()?.isRunning()),L(),e?.getGestures()?.isPointerDown()&&function(){if(!u()||!e||!t||!r)return;let n=t.getTween(),o=t.getPages(),l=e.getPageIndex()||0,s=e.getPageProgress()||0;if(!e||!o||!o[l]||!n)return;let c=n.isRunning()?n.getCurrentValues().pos:t.getPosition();if(void 0===c)return;let d=o[l].pos+s*(i-a);d=p(o[0].pos,d,o[o.length-1].pos),n.from({pos:c}).to({pos:d}).start()}()}function w(){r=!0}function x(e,n){t?.add(g(n),n.index)}function M(e,o){let i=o.target;i&&!o.defaultPrevented&&"toggle"===i.dataset.thumbsAction&&function(){if(n||(d(!0),m()),!n)return;let e=t?.isVertical()?"maxWidth":"maxHeight";n.style[e]?n.style[e]="":n.style[e]="0px"}()}function L(){if(!u()||!e||!t)return;let n=t?.getSlides()||[],o=-.5*i;for(let t of n){let n=t.el;if(!n)continue;let l=e.getPageProgress(t.index)||0;(l=Math.max(-1,Math.min(1,l)))>-1&&l<1&&(o+=.5*i*(1-Math.abs(l))),l=Math.round(1e4*l)/1e4,o=Math.round(1e4*o)/1e4,n.style.setProperty("--progress",`${Math.abs(l)}`),n.style.setProperty("--shift",`${e?.isRTL()?-1*o:o}px`),l>-1&&l<1&&(o+=.5*i*(1-Math.abs(l)))}}return{init:function(t,n){o=n,(e=t).on("ready",y),e.on("initSlides",v),e.on("render",E),e.on("change",w)},destroy:function(){e?.off("ready",y),e?.off("initSlides",v),e?.off("render",E),e?.off("change",w),e?.off("addSlide",x),e?.off("click",M),e?.getGestures()?.off("start",b),e?.getContainer()?.classList.remove("has-thumbs"),e=void 0,t?.destroy(),t=void 0,n?.remove(),n=void 0},getCarousel:function(){return t},getContainer:function(){return n},isEnabled:function(){return c()}}},eF={iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"}},eD=()=>{let e;function t(e,t){let n=t.src;if(!a(n))return;let o=t.type;if(!o){if(!o&&("#"===n.charAt(0)?o="inline":n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.((a)?png|avif|gif|jp(g|eg)|pjp(eg)?|jfif|svg|webp|bmp|
4ico|tif(f)?)((\?|#).*)?$)/i)?o="image":n.match(/\.(pdf)((\?|#).*)?$/i)?o="pdf":n.match(/\.(html|php)((\?|#).*)?$/i)&&(o="iframe")),!o){let e=n.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i);e&&(n=`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"}`,o="gmap")}if(!o){let e=n.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i);e&&(n=`https://maps.google.${e[1]}/maps?q=${e[2].replace("query=","q=").replace("api=1","")}&output=embed`,o="gmap")}t.src=n,t.type=o}}function n(t,n){("iframe"===n.type||"pdf"===n.type||"gmap"===n.type)&&function(t){if(!e||!t.el||!t.src)return;let n=document.createElement("iframe");for(let[t,o]of(n.classList.add("f-iframe"),Object.entries(function(){let t=e?.getOptions().Html;return l(t)?{...eF,...t}:eF}().iframeAttr||{})))n.setAttribute(t,o);n.onerror=()=>{e&&1===e.getState()&&e.showError(t,"{{IFRAME_ERROR}}")},n.src=t.src;let o=document.createElement("div");if(o.classList.add("f-html"),o.append(n),t.width){let e=`${t.width}`;e.match(/^\d+$/)&&(e+="px"),o.style.maxWidth=`${e}`}if(t.height){let e=`${t.height}`;e.match(/^\d+$/)&&(e+="px"),o.style.maxHeight=`${e}`}if(t.aspectRatio){let e=t.el.getBoundingClientRect();o.style.aspectRatio=`${t.aspectRatio}`,o.style[e.width>e.height?"width":"height"]="auto",o.style[e.width>e.height?"maxWidth":"maxHeight"]="none"}t.contentEl=n,t.htmlEl=o,t.el.classList.add("has-html"),t.el.classList.add("has-iframe"),t.el.classList.add(`has-${t.type}`),t.el.prepend(o),e.emit("contentReady",t)}(n)}function o(t,n){("iframe"===n.type||"pdf"===n.type||"gmap"===n.type)&&(e?.hideError(n),n.contentEl?.remove(),n.contentEl=void 0,n.htmlEl?.remove(),n.htmlEl=void 0)}return{init:function(i){(e=i).on("addSlide",t),e.on("attachSlideEl",n),e.on("detachSlideEl",o)},destroy:function(){e?.off("addSlide",t),e?.off("attachSlideEl",n),e?.off("detachSlideEl",o),e=void 0}}},eH=(e,t={})=>{let n=new URLSearchParams(new URL(e).search),o=new URLSearchParams;for(let[e,i]of[...n,...Object.entries(t)]){let t=i+"";if("t"===e){let e=t.match(/((\d*)m)?(\d*)s?/);e&&o.set("start",60*parseInt(e[2]||"0")+parseInt(e[3]||"0")+"")}else o.set(e,t)}let i=o+"",l=e.match(/#t=((.*)?\d+s)/);return l&&(i+=`#t=${l[1]}`),i},eV={autoplay:!1,html5videoTpl:`<video class="f-html5video" playsinline controls controlsList="nodownload" poster="{{poster}}"> 5 <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto",credentialless:""},vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},ej=()=>{let e,t=!1;function n(){let t=e?.getOptions().Video;return l(t)?{...eV,...t}:eV}function o(){return e?.getPage()?.slides[0]}let i=t=>{try{let n=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===n.event)for(let n of Array.from(e?.getContainer()?.getElementsByClassName("f-iframe")||[]))n instanceof HTMLIFrameElement&&n.contentWindow===t.source&&(n.dataset.ready="true")}else if(t.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===n.event){let e=document.getElementById(n.id);e&&(e.dataset.ready="true")}}catch(e){}};function r(e,t){let o=t.src;if(!a(o))return;let i=t.type;if(!i||"html5video"===i){let e=o.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i);e&&(i="html5video",t.html5videoFormat=t.html5videoFormat||"video/"+("ogv"===e[1]?"ogg":e[1]))}if(!i||"youtube"===i){let e=o.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i);if(e){let l={...n().youtube,...t.youtube||{}},a=`www.youtube${l.nocookie?"-nocookie":""}.com`,r=eH(o,l),s=encodeURIComponent(e[2]);t.videoId=s,t.src=`https://${a}/embed/${s}?${r}`,t.thumb=t.thumb||`https://i.ytimg.com/vi/${s}/mqdefault.jpg`,i="youtube"}}if(!i||"vimeo"===i){let e=o.match(/^.+vimeo.com\/(?:\/)?(video\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/);if(e){let l=eH(o,{...n().vimeo,...t.vimeo||{}}),a=encodeURIComponent(e[2]),r=e[5]||"";t.videoId=a,t.src=`https://player.vimeo.com/video/${a}?${r?`h=${r}${l?"&":""}`:""}${l}`,i="vimeo"}}t.type=i}function c(t,o){"html5video"===o.type&&function(t){if(!e||!t.el||!t.src)return;let{el:o,src:i}=t;if(!o||!i)return;let l=t.html5videoTpl||n().html5videoTpl,r=t.html5videoFormat||n().html5videoFormat;if(!l)return;let c=t.poster||(t.thumb&&a(t.thumb)?t.thumb:""),u=s(l.replace(/\{\{src\}\}/gi,i+"").replace(/\{\{format\}\}/gi,r||"").replace(/\{\{poster\}\}/gi,c+""));if(!u)return;let d=document.createElement("div");d.classList.add("f-html"),d.append(u),t.contentEl=u,t.htmlEl=d,o.classList.add(`has-${t.type}`),o.prepend(d),g(t),e.emit("contentReady",t)}(o),("youtube"===o.type||"vimeo"===o.type)&&function(t){if(!e||!t.el||!t.src)return;let o=document.createElement("iframe");for(let[e,i]of(o.classList.add("f-iframe"),o.setAttribute("id",`f-iframe_${t.videoId}`),Object.entries(n().iframeAttr||{})))o.setAttribute(e,i);o.onload=()=>{e&&1===e.getState()&&"youtube"===t.type&&o.contentWindow?.postMessage(JSON.stringify({event:"listening",id:o.getAttribute("id")}),"*")},o.onerror=()=>{e&&1===e.getState()&&e?.showError(t,"{{IFRAME_ERROR}}")},o.src=t.src;let i=document.createElement("div");i.classList.add("f-html"),i.append(o),t.contentEl=o,t.htmlEl=i,t.el.classList.add("has-html"),t.el.classList.add("has-iframe"),t.el.classList.add(`has-${t.type}`),t.el.prepend(i),g(t),e.emit("contentReady",t)}(o)}function u(e,t){("html5video"===t.type||"youtube"===t.type||"vimeo"===t.type)&&(t.contentEl?.remove(),t.contentEl=void 0,t.htmlEl?.remove(),t.htmlEl=void 0),t.poller&&clearTimeout(t.poller)}function d(){t=!1}function f(){if(t)return;t=!0;let e=o();(e&&void 0!==e.autoplay?e.autoplay:n().autoplay)&&(!function(){let e=o(),t=e?.el;if(t&&e?.type==="html5video")try{let e=t.querySelector("video");if(e){let t=e.play();void 0!==t&&t.then(()=>{}).catch(t=>{e.muted=!0,e.play()})}}catch(e){}let n=e?.htmlEl;n instanceof HTMLIFrameElement&&n.contentWindow?.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")}(),function(){let e=o(),t=e?.type;if(!(e?.el&&("youtube"===t||"vimeo"===t)))return;let n=()=>
5{if(e.contentEl&&e.contentEl instanceof HTMLIFrameElement&&e.contentEl.contentWindow){let t;if("true"===e.contentEl.dataset.ready){(t="youtube"===e.type?{event:"command",func:"playVideo"}:{method:"play",value:"true"})&&e.contentEl.contentWindow.postMessage(JSON.stringify(t),"*"),e.poller=void 0;return}"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){let t=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){let n=e.aspectRatio.split("/"),o=parseFloat(n[0].trim()),i=n[1]?parseFloat(n[1].trim()):0;t.offsetHeight;let l=t.getBoundingClientRect(),a=(o&&i?o/i:o)<(l.width||1)/(l.height||1);t.style.aspectRatio=`${e.aspectRatio}`,t.style.width=a?"auto":"",t.style.height=a?"":"auto"}}}function p(){g(o())}return{init:function(t){(e=t).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",p),window.addEventListener("message",i)},destroy:function(){e?.off("addSlide",r),e?.off("attachSlideEl",c),e?.off("detachSlideEl",u),e?.off("ready",f),e?.off("change",d),e?.off("settle",f),e?.off("refresh",p),window.removeEventListener("message",i),e=void 0}}},eN={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>'},eq="in-fullscreen-mode",eB=()=>{let e;function t(t){let n=e?.getOptions().Fullscreen,o=(l(n)?{...eN,...n}:eN)[t];return o&&"function"==typeof o&&e?o(e):o}function n(){e?.getPlugins().Toolbar?.add("fullscreen",{tpl:t("btnTpl")})}function o(){if(t("autoStart")){let e=r();e&&c(e)}}function i(e,t){let n=t.target;n&&!t.defaultPrevented&&"toggle"===n.dataset.fullscreenAction&&d()}function a(e){r()&&"Escape"===e.key&&!e.defaultPrevented&&d()}function r(){return t("el")||e?.getContainer()||void 0}function s(){let e=document;return e.fullscreenEnabled?!!e.fullscreenElement:!!e.webkitFullscreenEnabled&&!!e.webkitFullscreenElement}function c(e){let t,n=document;return e||(e=n.documentElement),n.fullscreenEnabled?t=e.requestFullscreen():n.webkitFullscreenEnabled&&(t=e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)),t&&t.then(()=>{e.classList.add(eq)}),t}function u(){let e,t=document;return t.fullscreenEnabled?e=t.fullscreenElement&&t.exitFullscreen():t.webkitFullscreenEnabled&&(e=t.webkitFullscreenElement&&t.webkitExitFullscreen()),e&&e.then(()=>{r()?.classList.remove(eq)}),e}function d(){let e=r();e&&(s()?u():c(e))}return{init:function(t){(e=t).on("initPlugins",n),e.on("ready",o),e.on("click",i)},destroy:function(){e?.off("initPlugins",n),e?.off("ready",o),e?.off("click",i),document.removeEventListener("keydown",a,!0)},exit:u,inFullscreen:s,request:c,toggle:d}},eW=!1,eZ=!1,eG=!1,eY=!1,eX=()=>{let 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{hash:e,slug:t.join("-"),index:o}},eU=()=>{if(!i||i.getInstance())return;let{slug:e,index:t}=eX();if(!e||!i||i.getInstance())return;let n=document.querySelectorAll(`[data-fancybox="${e}"]`);if(!n.length)return;let o=n[t-1];o&&o.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0}))},eK=()=>{if(!i||eG)return;let e=i?.getInstance();if(e?.getOptions().Hash===!1)return;let{slug:t,index:n}=eX(),o=e?.getSlide()?.fancybox||void 0;e&&o&&(t===o?e.getCarousel()?.goTo(n-1):(eY=!0,e.close(),eY=!1)),eU()},eJ=()=>{i&&setTimeout(()=>{eW=!0,eU(),eW=!1,window.addEventListener("hashchange",eK,!1)},300)},eQ=()=>{let e,t="auto",n="";function o(){if(!e||!e.isTopMost()||!1===e.getOptions().Hash)return;let o=e.getCarousel();if(!o)return;let{hash:l,slug:a}=eX(),r=e.getSlide();if(!r)return;let s=r.fancybox||"",c=parseInt(r.index+"",10)+1;if(!s)return;let u=`#${s}-${c}`;if(2>(e.getCarousel()?.getPages()?.length||0)&&(u=`#${s}`),l!==u&&(n=l),history.scrollRestoration&&(t=history.scrollRestoration,history.scrollRestoration="manual"),o.on("change",i
5),!eW)if(s===a)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+u)}catch(e){}else try{window.history.pushState({},document.title,window.location.pathname+window.location.search+u),eZ=!0}catch(e){}}function i(){if(!e||!e.isTopMost()||!1===e.getOptions().Hash)return;let{slug:t}=eX(),n=e.getSlide();if(!n)return;let o=n.fancybox||"",i=n.index+1,l=`#${o}-${i}`;if(o===t){eG=!0;try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+l)}catch(e){}eG=!1}}function l(){if(eY||!e||!e.isTopMost()||!1===e.getOptions().Hash)return;let t=e.getSlide();if(t&&t.fancybox){eG=!0;try{eZ&&!eW&&!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")}()?window.history.back():window.history.replaceState({},document.title,window.location.pathname+window.location.search+n)}catch(e){}eG=!1}}return{init:function(t){(e=t).on("ready",o),e.on("close",l)},destroy:function(){e?.off("ready",o),e?.off("close",l);let n=e?.getCarousel();n&&n.off("change",i),e=void 0,history.scrollRestoration&&t&&(history.scrollRestoration=t)}}};eQ.startFromUrl=eU,eQ.setup=function(e){!i&&(i=e,g()&&(/complete|interactive|loaded/.test(document.readyState)?eJ():document.addEventListener("DOMContentLoaded",eJ)))};let e0={...eu,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"},e1='<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="M19.286 4.714 4.714 19.286M4.714 4.714l14.572 14.572" /></svg></button>';ez().add("close",{tpl:e1});let e2=e=>{e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))},e5=(e=null,t="",n)=>{if(!e||!e.parentElement||!t){n&&n();return}e2(e);let 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),h(e,t)},e4=((O={})[O.Init=0]="Init",O[O.Ready=1]="Ready",O[O.Closing=2]="Closing",O[O.Destroyed=3]="Destroyed",O),e3={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:e0,mainClass:"",mainStyle:{},mainTpl:`<dialog class="fancybox__dialog"> 6 <div class="fancybox__container" tabindex="0" aria-label="{{MODAL}}"> 7 <div class="fancybox__backdrop"></div> 8 <div class="fancybox__carousel"></div> 9 </div> 10 </dialog>`,on:{},parentEl:void 0,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,sync:void 0,theme:"dark",triggerEl:void 0,triggerEvent:void 0,zoomEffect:!0},e6=new Map,e9=0,e7="with-fancybox",e8={Plugins:{Hash:eQ},version:"6.0.29",openers:new Map,bind:function(e,t,n){if(!g())return;let o=document.body,i="[data-fancybox]",l={};if(a(e)?(o=document.body,i=e,"object"==typeof t&&(l=t||{})):e instanceof Element&&(o=e,a(t)&&(i=t),"object"==typeof n&&(l=n||{})),!(o&&o instanceof Element)||!i)return!1;let r=e8.openers.get(o)||new Map;if(r.set(i,l),e8.openers.set(o,r),1===r.size)for(let e of(o.addEventListener("click",e8.fromEvent),Object.values(e8.Plugins))){let t=e.setup;"function"==typeof t&&t(e8)}return!0},close:function(e=!0,...t){if(e)for(let e of e6.values())e.close(...t);else{let e=e8.getInstance();e&&e.close(...t)}},destroy:function(){let e;for(;e=e8.getInstance();)e.destroy();for(let e of e8.openers.keys())e.removeEventListener("click",e8.fromEvent);e8.openers.clear()},fromEvent:function(e){let t,n;if(e.defaultPrevented||e.button&&0!==e.button||e.ctrlKey||e.metaKey||e.shiftKey)return;let o=e.composedPath()[0];if(o.closest(".fancybox__container.is-hiding")){e.preventDefault(),e.stopPropagation();return}let i=o.closest("[data-fancybox-delegate]")||void 0;if(i){let e=i.dataset.fancyboxDelegate||"",t=document.querySelectorAll(`[data-fancybox="${e}"]`);o=t[parseInt(i.dataset.fancyboxIndex||"",10)||0]||t[0]}if(!(o&&o instanceof Element))return;let l={};for(let[e,i]of e8.openers)if(i&&e.contains(o))for(let[a,r]of i){let i=null;try{i=o.closest(a)}catch(e){}i&&(o=i,t=e,n=a,f(l,r||{}))}if(!t||!n)return;e.preventDefault();let a=f({},e3,{triggerEvent:e,triggerEl:o,delegateEl:i},l),r=a.groupAll,s=a.groupAttr,c=s&&o?o.getAttribute(`${s}`):"",u=[],d=o.closest(".f-carousel")?.carousel;if(d){let e=[];for(let t of d?.getSlides()){let o=t.el;o&&(o.matches(n)?e.push(o):e.push(...[].slice.call(o.querySelectorAll(n))))}e.length&&(u=[...e],d.getPlugins().Autoplay?.pause(),d.getPlugins().Autoscroll?.pause(),a.sync=d)}else(!o||c||r)&&(u=[].slice.call(t.querySelectorAll(n)));if(o&&!r&&(u=s&&c?u.filter(e=>e.getAttribute(`${s}`)===c):[o]),!u.length)return;let g=e8.getInstance();if(g){let e=g.getOptions().triggerEl;if(e&&u.indexOf(e)>-1)return}return({...a.Carousel||{}}).rtl&&(u=u.reverse()),o&&(a.startIndex=u.indexOf(o)),e8.fromNodes(u,a)},fromNodes:function(e,t){t=f({},e3,t||{});let n=[],o=e=>e instanceof HTMLImageElement?e:e instanceof HTMLElement?e.querySelector("img:not([aria-hidden])"):void 0;for(let i of e){let l=i.dataset||{},a=t.delegateEl&&e.indexOf(i)===t.startIndex?t.delegateEl:void 0,r=o(a)||o(i)||void 0,s=l.src||i.getAttribute("href")||i.getAttribute("currentSrc")||i.getAttribute("src")||void 0,c=l.thumb||l.thumbSrc||r?.getAttribute("currentSrc")||r?.getAttribute("src")||r?.dataset.lazySrc||void 0,u={src:s,alt:l.alt||r?.getAttribute("alt")||void 0,thumbSrc:c,thumbEl:r,triggerEl:i,delegateEl:a};for(let e in l){let t=l[e]+"";t="false"!==t&&("true"===t||t),u[e]=t}n.push(u)}return e8.show(n,t)},fromSelector:function(e,t,n){let o=document.body,i="",l={};if(a(e)?i=e:e instanceof Element&&(o=e,a(t)&&(i=t),"object"==typeof n&&(l=n||{})),!(o&&o instanceof Element)||!i)return;let r=e8.openers.get(o);if(r&&(l=f({},r.get(i)||{},l)))return e8.fromNodes(Array.from(o.querySelectorAll(i)),l)},getCarousel:function(){return e8.getInstance()?.getCarousel()||void 0},getDefaults:function(){return e3},getInstance:function(e){if(e){let t=e6.get(e);return t&&t.getState()!==e4.Destroyed?t:void 0}return Array.from(e6.values()).reverse().find(e=>{if(e.getState()!==e4.Destroyed)return e})||void 0},getSlide:function(){return e8.getInstance()?.getSlide()||void 0},show:function(e=[],t={}){return(()=>{let e,t,n,o,i,c,g=e4.Init,p={...e3},v=-1,y={},b=[],E=!1,w=!0,x=0;function M(e,...t){let n=p[e];return n&&"function"==typeof n?n(ea,...t):n}function L(e,t=[]){let n=M("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)}let S=new Map;function T(e,...t){let n=[...S.get(e)||[]];for(let[t,o]of Object.entries(p.on||{}))(t===e||t.split(" ").indexOf(e)>-1)&&n.push(o);for(let e of n)e&&"function"==typeof e&&e(ea,...t);"*"!==e&&T("*",e,...t)}function P(){X(i,"is-revealing");try{document.activeElement===o&&(i?.querySelector("[autofocus]")||i).focus()}catch(e){}}function C(t,n){N(n),_(),n.el?.addEventListener("click",A),("inline"===n.type||"clone"===n.type)&&function(t){if(!e||!t||!t.el)return;let n=null;if(a(t.src)){let e=t.src.split("#",2).pop();n=e?document.getElementById(e):null}if(n){if(h(n,"f-html"),"clone"===t.type||n.closest(".fancybox__carousel")){let e=(n=n.cloneNode(!0)).dataset.animationName;e&&(n.classList.remove(e),delete n.dataset.animationName);let o=n.getAttribute("id");o=o?`${o}--clone`:`clone-${v}-${t.index}`,n.setAttribute("id",o)}else if(n.parentNode){let e=document.createElement("div");e.inert=!0,n.parentNode.insertBefore(e,n),t.placeholderEl=e}t.htmlEl=n,h(t.el,"has-html"),t.el.prepend(n),n.classList.remove("hidden"),"none"===n.style.display&&(n.style.display=""),"none"===getComputedStyle(n).getPropertyValue("display")&&(n.style.display=n.dataset.display||"flex"),e?.emit("contentReady",t)}else e?.showError(t,"{{ELEMENT_NOT_FOUND}}")}(n),"ajax"===n.type&&function(t){let n=t.el;if(!n||t.htmlEl||t.xhr)return;e?.showLoading(t),t.state=eg.Loading;let o=new XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===XMLHttpRequest.DONE&&g===e4.Ready)if(e?.hideL
10oading(t),t.state=eg.Loaded,200===o.status){let i=o.responseText+"",l=null,a=null;if(t.filter){let e=document.createElement("div");e.innerHTML=i,a=e.querySelector(t.filter+"")}a&&a instanceof HTMLElement?l=a:(l=document.createElement("div")).innerHTML=i,l.classList.add("f-html"),t.htmlEl=l,n.classList.add("has-html"),n.classList.add("has-ajax"),n.prepend(l),e?.emit("contentReady",t)}else e?.showError(t)};let i=M("ajax")||null;o.open(i?"POST":"GET",t.src+""),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.send(i),t.xhr=o}(n)}function R(e,t){var n;(n=t).closeButtonEl&&(n.closeButtonEl.remove(),n.closeButtonEl=void 0),t.el?.removeEventListener("click",A),("inline"===t.type||"clone"===t.type)&&function(e){let 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(!B())return;if(g!==e4.Ready){e.preventDefault(),e.stopPropagation();return}if(e.defaultPrevented||!G.isClickAllowed())return;let t=e.composedPath()[0];t.closest(".fancybox__carousel")&&t.classList.contains("fancybox__slide")&&D(e)}function O(){w=!1,i&&e&&i.classList.remove("is-revealing"),_();let t=M("sync");if(e&&t){let n=t.getPageIndex(e.getPageIndex())||0;t.goTo(n,{transition:!1})}}function z(){if(g!==e4.Ready)return;q(W()),function(){if(!M("dragToClose")||!e)return;let t=e.getViewport();if(!t)return;let n=G(t).init();if(!n)return;let o=0,l=0,a=F().on("step",t=>{o=t.y;let n=e?.getViewport();if(i&&n){let e=m(Math.abs(o),0,.5*n.getBoundingClientRect().height,1,.5);i.style.setProperty("--f-drag-opacity",e+""),i.style.setProperty("--f-drag-offset",o+"px")}}).on("end",()=>{if(!o){i&&i.style.removeProperty("--f-opacity");let t=e?.getViewport();t&&(t.style.transform="")}});n.on("start",function(){a.pause()}).on("panstart",t=>{let n=t.srcEvent.target;n&&!u(n)&&e?.getViewport()?.classList.add("is-dragging")}).on("pan",function(t){let n=t.srcEvent.target;!(n&&u(n))&&e?.getViewport()&&"y"===t.axis&&(l+=t.deltaY,a.spring({clamp:!0,mass:1,tension:860,friction:17,restDelta:.01,restSpeed:.01}).from({y:o}).to({y:l}).start())}).on("end",function(e){a.pause(),"y"===e.axis&&Math.abs(e.velocityY)>5&&Math.abs(l)>0&&(eo(e.srcEvent,"f-throwOut"+(e.velocityY>0?"Down":"Up")),g===e4.Closing)||0!==l&&(l=0,a.spring({clamp:!0,mass:1,tension:140,friction:25,restDelta:.1,restSpeed:.1,maxSpeed:1/0}).from({y:o}).to({y:l}).start())})}(),document.body.addEventListener("click",j),document.body.addEventListener("keydown",V,{passive:!1,capture:!0}),_(),J();let t=M("sync");t&&t.getTween()?.start()}function k(){e?.canGoNext()?J():et()}function I(e,t){N(t),q(t)}function $(){let t=e?.getPlugins().Thumbs;U(i,"has-thumbs",t?.isEnabled()||!1),U(i,"has-vertical-thumbs",t?.getCarousel()?.isVertical()||!1)}function _(){if(i){let t=e?.getPages()||[],n=e?.getPageIndex()||0;for(let e of i.querySelectorAll("[data-fancybox-index]"))e.innerHTML=n+"";for(let e of i.querySelectorAll("[data-fancybox-page]"))e.innerHTML=n+1+"";for(let e of i.querySelectorAll("[data-fancybox-pages]"))e.innerHTML=t.length+""}}function D(e){if(e.composedPath()[0].closest("[data-fancybox-close]"))return void eo(e);T("backdropClick",e),!e.defaultPrevented&&M("backdropClick")&&eo(e)}function H(){ee()}function V(t){if(!B()||g!==e4.Ready)return;let n=t.key,o=M("keyboard");if(!o||t.ctrlKey||t.altKey||t.shiftKey)return;let i=t.composedPath()[0];if(!r(i)||"Escape"!==n&&(e=>{let t="input,textarea,select,option,video,iframe,[contenteditable],[data-selectable],[data-draggable]";return e.matches(t)||e.closest(t)})(i)||(T("keydown",t),t.defaultPrevented))return;let l=o[n];if(l)switch(l){case"close":eo(t);break;case"next":t.preventDefault(),e?.next();break;case"prev":t.preventDefault(),e?.prev()}}function j(e){if(!B()||g!==e4.Ready||(ee(),e.defaultPrevented))return;let t=e.composedPath()[0],n=!!t.closest("[data-fancybox-close]"),o=t.classList.contains("fancybox__backdrop");(n||o)&&D(e)}function N(t){let{el:n,htmlEl:o,closeButtonEl:i}=t;if(!n||!o||i)return;let l=M("closeButton");if("auto"===l&&(l=e?.getPlugins().Toolbar?.isEnabled()!==!0),l){let e=s(L(e1));
10e&&(t.closeButtonEl=o.insertAdjacentElement("afterbegin",e),n.classList.add("has-close-btn"))}}function q(t){if(!(w&&e&&e.getState()===ef.Ready&&t&&t.index===e.getOptions().initialPage&&t.el&&t.el.parentElement)||void 0!==t.state&&t.state!==eg.Loaded)return;w=!1;let n=t.panzoomRef,o=n?.getTween(),i=M("zoomEffect")&&o?Y(t):void 0;if(n&&o&&i){let{x:e,y:t,scale:l}=n.getStartPosition();o.spring({tension:225,friction:25,restDelta:.001,restSpeed:.001,maxSpeed:1/0}).from(i).to({x:e,y:t,scale:l}).start();return}let l=n?.getContent()||t.htmlEl;l&&e5(l,M("showClass",t))}function B(){return e8.getInstance()?.getId()===v}function W(){return e?.getPage()?.slides[0]}function Z(){let e=W();return e?e.triggerEl||M("triggerEl"):void 0}function Y(e){let t=e.thumbEl;if(!t||!(e=>{let t=e.getBoundingClientRect(),n=e.closest("[style]"),o=n?.parentElement;if(n&&n.style.transform&&o){let e=o.getBoundingClientRect();if(t.left<e.left||t.left>e.left+e.width-t.width||t.top<e.top||t.top>e.top+e.height-t.height)return!1}let i=Math.max(document.documentElement.clientHeight,window.innerHeight),l=Math.max(document.documentElement.clientWidth,window.innerWidth);return!(t.bottom<0)&&!(t.top-i>=0)&&!(t.right<0)&&!(t.left-l>=0)})(t))return;let n=e.panzoomRef?.getWrapper()?.getBoundingClientRect(),o=n?.width,i=n?.height;if(!o||!i)return;let l=t.getBoundingClientRect(),a=l.width,r=l.height,s=l.left,c=l.top;if(!l||!a||!r)return;if(t instanceof HTMLImageElement){let e=window.getComputedStyle(t).getPropertyValue("object-fit");if("contain"===e||"scale-down"===e){let{width:n,height:o}=((e,t,n,o,i="contain")=>{if("contain"===i||e>n||t>o){let i=Math.min(n/e,o/t);e*=i,t*=i}return{width:e,height:t}})(t.naturalWidth,t.naturalHeight,a,r,e);s+=(a-n)*.5,c+=(r-o)*.5,a=n,r=o}}if(Math.abs(o/i-a/r)>.1)return;let u=s+.5*a-(n.left+.5*o);return{x:u,y:c+.5*r-(n.top+.5*i),scale:a/o}}function K(){n&&clearTimeout(n),n=void 0,document.removeEventListener("mousemove",H)}function J(){if(E||n)return;let e=M("idle");e&&(n=setTimeout(Q,e))}function Q(){i&&(K(),h(i,"is-idle"),document.addEventListener("mousemove",H),E=!0)}function ee(){E&&(et(),J())}function et(){K(),i?.classList.remove("is-idle"),E=!1}function eo(n,o){if(g===e4.Closing||g===e4.Destroyed)return;let i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(T("shouldClose",i,n),i.defaultPrevented)return;if(K(),n){if(n.defaultPrevented)return;n.cancelable&&n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation()}if(g=e4.Closing,t?.pause(),e){e.getGestures()?.destroy(),e.getTween()?.pause();let t=W(),n=t?.panzoomRef;for(let o of(t&&n&&f(n.getOptions(),{clickAction:!1,wheelAction:!1,bounds:!1,minScale:0,maxScale:1/0}),e.getSlides()))o.panzoomRef?.getGestures()?.destroy(),o.panzoomRef?.getTween()?.pause()}let l=e?.getPlugins().fullscreen;l&&l.inFullscreen()?Promise.resolve(l.exit()).then(()=>{setTimeout(()=>{ei(n,o)},150)}):ei(n,o)}function ei(t,n){if(g!==e4.Closing)return;if(T("close",t),M("placeFocusBack")){var o;let e=Z();e&&!((o=e.getBoundingClientRect()).bottom>0&&o.right>0&&o.left<(window.innerWidth||document.documentElement.clientWidth)&&o.top<(window.innerHeight||document.documentElement.clientHeight))&&e.scrollIntoView({behavior:"instant",block:"center",inline:"center"})}M("fadeEffect")&&(i?.classList.remove("is-ready"),i?.classList.add("is-hiding")),i?.classList.add("is-closing");let l=W(),a=l?.panzoomRef,r=l?.panzoomRef?.getTween(),s=n||M("hideClass"),c=!1,u=!1;if(e&&l&&a&&r){let t;M("zoomEffect")&&700>(e.getTween()?.getCurrentVelocities()?.pos||0)&&l.state===eg.Loaded&&(t=Y(l)),t&&(c=!0,e.on("refresh",()=>{let e=Y(l);e&&r.to({...en,...e})}),r.easing(F.Easings.EaseOut).duration(350).from({...a.getTransform()}).to({...en,...t}).start())}let d=l?.htmlEl||l?.panzoomRef?.getWrapper();d&&e2(d),!c&&s&&d&&(u=!0,e5(d,s,()=>{el()})),c||u?setTimeout(()=>{el()},350):el()}function el(){if(g===e4.Destroyed)return;g=e4.Destroyed,document.body.removeEventListener("click",j),document.body.removeEventListener("keydown",V,{passive:!1,capture:!0});let t=Z();for(let t of(T("destroy"),M("sync")?.getPlugins().Autoplay?.resume(),M("sync")?.getPlugins().Autoscroll?.resume(),o instanceof HTMLDialogElement&&o.close(),e?.getContainer()?.classList.remove("is-idle"),e?.destroy(),Object.values(y)))t?.destroy();if(y={},o?.remove(),o=void 0,i=void 0,e=void 0,e6.delete(v),!e6.size)if(d(!1),document.documentElement.classList.remove(e7),M("placeFocusBack"))try{t?.focus({preventScroll:!0})}catch(e){}else document.activeElement?.blur()}let ea={close:eo,destroy:el,getCarousel:function(){return e},getContainer:function(){return i},getId:function(){return v},getOptions:function(){return p},getPlugins:function(){return y},getSlide:function(){return W()},getState:function(){return g},init:function(t=[],n={}){return!function(t=[],n={}){g!==e4.Init&&(ea.destroy(),g=e4.Init),p=f({},e3,n),v=M("id")||`fancybox-${++e9}`;let a=e6.get(v);if(a&&a.destroy(),e6.set(v,ea),T("init"),function(){for(let[e,t]of Object.entries({...e8.Plugins,...p.plugins||{}}))if(e&&!y[e]&&t instanceof Function){let n=t();n.init(ea),y[e]=n}T("initPlugins")}(),function(e=[]){T("initSlides",e),b=[...e]}(t),function(){let t=M("parentEl")||document.body;if(!(t&&t instanceof HTMLElement)||!(o=s(L(M("mainTpl")||""))||void 0)||!((i=o.querySelector(".fancybox__container"))&&i instanceof HTMLElement))return;let n=M("mainClass");n&&h(i,n);let a=M("mainStyle");if(a&&l(a))for(let[e,t]of Object.entries(a))i.style.setProperty(e,t);let r=M("theme"),c="auto"===r?window.matchMedia("(prefers-color-scheme:light)").matches:"light"===r;i.setAttribute("theme",c?"light":"dark"),o.setAttribute("id",`${v}`),o.addEventListener("keydown",e=>{"Escape"===e.key&&e.preventDefault()}),o.addEventListener("wheel",t=>{let n=t.target,o=M("wheel",t);n.closest(".f-thumbs")&&(o="slide");let i="slide"===o,l=Math.max(-1,Math.min(1,[-t.deltaX||0,-t.deltaY||0,-t.detail||0].reduce(function(e,t){return Math.abs(t)>Math.abs(e)?t:e}))),a=Date.now();if(x&&a-x<300){i&&t.preventDefault();return}x=a,T("wheel",t,l),t.defaultPrevented||("close"===o?eo(t):"slide"===o&&e&&!u(n)&&(t.preventDefault(),e[l>0?"prev":"next"]()))},{capture:!0,passive:!1}),o.addEventListener("cancel",e=>{eo(e)}),t.append(o),1===e6.size&&(M("hideScrollbar")&&d(!0),document.documentElement.classList.add(e7)),o instanceof HTMLDialogElement&&o.showModal(),T("initLayout")}(),function(){if(!(c=o?.querySelector(".fancybox__carousel")||void 0))return;c.fancybox=ea;let t=f({},{Autoplay:{autoStart:!1,pauseOnHover:!1,progressbarParentEl:e=>{let t=e.getContainer();return t?.querySelector(".f-carousel__toolbar [data-autoplay-action]")||t}},Fullscreen:{el:i},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>',dragFree:!1,slidesPerPage:1,plugins:{Sync:ew,Arrows:eP,Lazyload:eS,Zoomable:eb,Html:eD,Video:ej,Autoplay:eI,Fullscreen:eB,Thumbs:e_,Toolbar:ez}},M("Carousel")||{},{slides:b,enabled:!0,initialPage:M("startIndex")||0,l10n:M("l10n")});T("initCarousel",e=eh(c,t)),e.on("*",(e,t,...n)=>{T(`Carousel.${t}`,e,...n)}),e.on("attachSlideEl",C),e.on("detachSlideEl",R),e.on("contentReady",I),e.on("ready",z),e.on("change",O),e.on("settle",k),e.on("thumbs:ready",$),e.on("thumbs:destroy",$),e.init(
10)}(),o&&i){if(M("closeExisting"))for(let[e,t]of e6.entries())e!==v&&t.close();M("fadeEffect")?(setTimeout(()=>{P()},500),h(i,"is-revealing")):P(),i.classList.add("is-ready"),g=e4.Ready,T("ready")}}(t,n),ea},isCurrentSlide:function(e){let t=W();return!!e&&!!t&&t.index===e.index},isTopMost:function(){return B()},off:function(e,t){return S.has(e)&&S.set(e,S.get(e).filter(e=>e!==t)),ea},on:function(e,t){return S.set(e,[...S.get(e)||[],t]),ea},toggleIdle(e){(E||!0===e)&&Q(),E&&!1!==e||et()}};return ea})().init(e,t)},unbind:function(e,t){let n=document.body,o="";if(a(e)?o=e:e instanceof Element&&(n=e,a(t)&&(o=t)),n){let e=e8.openers.get(n);e&&o&&e.delete(o),e?.size&&o||e8.openers.delete(n),n.removeEventListener("click",e8.fromEvent)}}};e.Arrows=eP,e.Autoplay=eI,e.Carousel=eh,e.CarouselSlideContentState=eg,e.CarouselState=ef,e.Fancybox=e8,e.FancyboxState=e4,e.Fullscreen=eB,e.Html=eD,e.Lazyload=eS,e.PANZOOM_DEFAULT_POS=en,e.Panzoom=es,e.PanzoomAction=ee,e.PanzoomState=eo,e.PanzoomZoomLevel=et,e.Sync=ew,e.Thumbs=e_,e.Toolbar=ez,e.ToolbarColumn=eR,e.Video=ej,e.Zoomable=eb});
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.