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