import{r as gt,f as Qt,e as Wt,d as li}from"./react-CA9uyKVT.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="4e0b6dfa-866d-4491-b29c-65d0a074e87e",s._sentryDebugIdIdentifier="sentry-dbid-4e0b6dfa-866d-4491-b29c-65d0a074e87e")}catch{}})();var xn={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */var lr;function Ki(){return lr||(lr=1,function(s){(function(){var l={}.hasOwnProperty;function f(){for(var o=[],a=0;a<arguments.length;a++){var c=arguments[a];if(c){var d=typeof c;if(d==="string"||d==="number")o.push(c);else if(Array.isArray(c)){if(c.length){var u=f.apply(null,c);u&&o.push(u)}}else if(d==="object")if(c.toString===Object.prototype.toString)for(var i in c)l.call(c,i)&&c[i]&&o.push(i);else o.push(c.toString())}}return o.join(" ")}s.exports?(f.default=f,s.exports=f):window.classNames=f})()}(xn)),xn.exports}var rt={},Ue={},fr;function fi(){return fr||(fr=1,function(s){var l=Ue&&Ue.__assign||function(){return l=Object.assign||function(d){for(var u,i=1,b=arguments.length;i<b;i++){u=arguments[i];for(var C in u)Object.prototype.hasOwnProperty.call(u,C)&&(d[C]=u[C])}return d},l.apply(this,arguments)},f=Ue&&Ue.__rest||function(d,u){var i={};for(var b in d)Object.prototype.hasOwnProperty.call(d,b)&&u.indexOf(b)<0&&(i[b]=d[b]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,b=Object.getOwnPropertySymbols(d);C<b.length;C++)u.indexOf(b[C])<0&&Object.prototype.propertyIsEnumerable.call(d,b[C])&&(i[b[C]]=d[b[C]]);return i},o=Ue&&Ue.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(s,"__esModule",{value:!0}),s.DefaultLayout=s.layoutDefaultProps=s.layoutPropTypes=void 0;var a=o(gt()),c=o(Qt());s.layoutPropTypes={closeButtonCaption:c.default.string,shareButtonCaption:c.default.string,toggleFullscreenButtonCaption:c.default.string,zoomButtonCaption:c.default.string,prevButtonCaption:c.default.string,nextButtonCaption:c.default.string,shareButton:c.default.bool,fullscreenButton:c.default.bool,zoomButton:c.default.bool},s.layoutDefaultProps={closeButtonCaption:"Close (Esc)",shareButtonCaption:"Share",toggleFullscreenButtonCaption:"Toggle fullscreen",zoomButtonCaption:"Zoom in/out",prevButtonCaption:"Previous (arrow left)",nextButtonCaption:"Next (arrow right)",shareButton:!0,fullscreenButton:!0,zoomButton:!0},s.DefaultLayout=a.default.forwardRef(function(d,u){var i=d.closeButtonCaption,b=d.shareButtonCaption,C=d.toggleFullscreenButtonCaption,m=d.zoomButtonCaption,E=d.prevButtonCaption,M=d.nextButtonCaption,D=d.shareButton,y=d.fullscreenButton,g=d.zoomButton,R=f(d,["closeButtonCaption","shareButtonCaption","toggleFullscreenButtonCaption","zoomButtonCaption","prevButtonCaption","nextButtonCaption","shareButton","fullscreenButton","zoomButton"]);return a.default.createElement("div",l({className:"pswp",tabIndex:-1,role:"dialog","aria-hidden":"true"},R,{ref:u}),a.default.createElement("div",{className:"pswp__bg"}),a.default.createElement("div",{className:"pswp__scroll-wrap"},a.default.createElement("div",{className:"pswp__container"},a.default.createElement("div",{className:"pswp__item"}),a.default.createElement("div",{className:"pswp__item"}),a.default.createElement("div",{className:"pswp__item"})),a.default.createElement("div",{className:"pswp__ui pswp__ui--hidden"},a.default.createElement("div",{className:"pswp__top-bar"},a.default.createElement("div",{className:"pswp__counter"}),a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--close",title:i}),D&&a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--share",title:b}),y&&a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--fs",title:C}),g&&a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--zoom",title:m}),a.default.createElement("div",{className:"pswp__preloader"},a.default.createElement("div",{className:"pswp__preloader__icn"},a.default.createElement("div",{className:"pswp__preloader__cut"},a.default.createElement("div",{className:"pswp__preloader__donut"}))))),a.default.createElement("div",{className:"pswp__share-modal pswp__share-modal--hidden pswp__single-tap"},a.default.createElement("div",{className:"pswp__share-tooltip"})),a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--arrow--left",title:E}),a.default.createElement("button",{type:"button",className:"pswp__button pswp__button--arrow--right",title:M}),a.default.createElement("div",{className:"pswp__caption"},a.default.createElement("div",{className:"pswp__caption__center"})))))}),s.DefaultLayout.propTypes=s.layoutPropTypes,s.DefaultLayout.defaultProps=s.layoutDefaultProps}(Ue)),Ue}var se={},Kt={exports:{}};/*! PhotoSwipe - v4.1.3 - 2019-01-08 * http://photoswipe.com * Copyright (c) 2019 Dmitry Semenov; */var ci=Kt.exports,cr;function di(){return cr||(cr=1,function(s,l){(function(f,o){s.exports=o()})(ci,function(){var f=function(o,a,c,d){var u={features:null,bind:function(e,t,n,r){var h=(r?"remove":"add")+"EventListener";t=t.split(" ");for(var _=0;_<t.length;_++)t[_]&&e[h](t[_],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return e!==void 0?e:document.documentElement.scrollTop},unbind:function(e,t,n){u.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")},addClass:function(e,t){u.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(u.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var r=e.length;r--;)if(e[r][n]===t)return r;return-1},extend:function(e,t,n){for(var r in t)if(t.hasOwnProperty(r)){if(n&&e.hasOwnProperty(r))continue;e[r]=t[r]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(u.features)return u.features;var e=u.createEl(),t=e.style,n="",r={};if(r.oldIE=document.all&&!document.addEventListener,r.touch="ontouchstart"in window,window.requestAnimationFrame&&(r.raf=window.requestAnimationFrame,r.caf=window.cancelAnimationFrame),r.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!r.pointerEvent){var h=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var _=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);_&&_.length>0&&(_=parseInt(_[1],10),_>=1&&_<8&&(r.isOldIOSPhone=!0))}var T=h.match(/Android\s([0-9\.]*)/),A=T?T[1]:0;A=parseFloat(A),A>=1&&(A<4.4&&(r.isOldAndroid=!0),r.androidVersion=A),r.isMobileOpera=/opera mini|opera mobi/i.test(h)}for(var S=["transform","perspective","animationName"],N=["","webkit","Moz","ms","O"],ie,Be,Ze=0;Ze<4;Ze++){n=N[Ze];for(var _t=0;_t<3;_t++)ie=S[_t],Be=n+(n?ie.charAt(0).toUpperCase()+ie.slice(1):ie),!r[ie]&&Be in t&&(r[ie]=Be);n&&!r.raf&&(n=n.toLowerCase(),r.raf=window[n+"RequestAnimationFrame"],r.raf&&(r.caf=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]))}if(!r.raf){var At=0;r.raf=function(Ne){var On=new Date().getTime(),En=Math.max(0,16-(On-At)),si=window.setTimeout(function(){Ne(On+En)},En);return At=On+En,si},r.caf=function(Ne){clearTimeout(Ne)}}return r.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,u.features=r,r}};u.detectFeatures(),u.features.oldIE&&(u.bind=function(e,t,n,r){t=t.split(" ");for(var h=(r?"detach":"attach")+"Event",_,T=function(){n.handleEvent.call(n)},A=0;A<t.length;A++)if(_=t[A],_)if(typeof n=="object"&&n.handleEvent){if(!r)n["oldIE"+_]=T;else if(!n["oldIE"+_])return!1;e[h]("on"+_,n["oldIE"+_])}else e[h]("on"+_,n)});var i=this,b=25,C=3,m={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return e.tagName==="A"},getDoubleTapZoom:function(e,t){return e||t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};u.extend(m,d);var E=function(){return{x:0,y:0}},M,D,y,g,R,x,Z=E(),X=E(),v=E(),q,O,L,k={},I,oe,j,K,$,V,W=0,ae={},G=E(),z,be,Y=0,J,de,he,ee,te,U,ue=!0,ne,we=[],Me,p,w,H,re,le,F,Ce={},De=!1,Ye,bt=function(e,t){u.extend(i,t.publicMethods),we.push(e)},Ft=function(e){var t=Ee();return e>t-1?e-t:e<0?t+e:e},wt={},Q=function(e,t){return wt[e]||(wt[e]=[]),wt[e].push(t)},B=function(e){var t=wt[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var r=0;r<t.length;r++)t[r].apply(i,n)}},Pe=function(){return new Date().getTime()},je=function(e){Ut=e,i.bg.style.opacity=e*m.bgOpacity},jn=function(e,t,n,r,h){(!De||h&&h!==i.currItem)&&(r=r/(h?h.fitRatio:i.currItem.fitRatio)),e[te]=j+t+"px, "+n+"px"+K+" scale("+r+")"},fe=function(e){Ae&&(e&&(I>i.currItem.fitRatio?De||(nt(i.currItem,!1,!0),De=!0):De&&(nt(i.currItem),De=!1)),jn(Ae,v.x,v.y,I))},Ct=function(e){e.container&&jn(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},lt=function(e,t){t[te]=j+e+"px, 0px"+K},Bt=function(e,t){if(!m.loop&&t){var n=g+(G.x*W-e)/G.x,r=Math.round(e-Le.x);(n<0&&r>0||n>=Ee()-1&&r<0)&&(e=Le.x+r*m.mainScrollEndFriction)}Le.x=e,lt(e,R)},Jt=function(e,t){var n=Mt[e]-ae[e];return X[e]+Z[e]+n-n*(t/oe)},ve=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},qn=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},en=null,tn=function(){en&&(u.unbind(document,"mousemove",tn),u.addClass(o,"pswp--has_mouse"),m.mouseUsed=!0,B("mouseUsed")),en=setTimeout(function(){en=null},100)},Lr=function(){u.bind(document,"keydown",i),F.transform&&u.bind(i.scrollWrap,"click",i),m.mouseUsed||u.bind(document,"mousemove",tn),u.bind(window,"resize scroll orientationchange",i),B("bindEvents")},Zr=function(){u.unbind(window,"resize scroll orientationchange",i),u.unbind(window,"scroll",L.scroll),u.unbind(document,"keydown",i),u.unbind(document,"mousemove",tn),F.transform&&u.unbind(i.scrollWrap,"click",i),Re&&u.unbind(window,q,i),clearTimeout(Ye),B("unbindEvents")},nn=function(e,t){var n=Pt(i.currItem,k,e);return t&&(P=n),n},Ln=function(e){return e||(e=i.currItem),e.initialZoomLevel},Zn=function(e){return e||(e=i.currItem),e.w>0?m.maxSpreadZoom:1},Un=function(e,t,n,r){return r===i.currItem.initialZoomLevel?(n[e]=i.currItem.initialPosition[e],!0):(n[e]=Jt(e,r),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]?(n[e]=t.max[e],!0):!1)},Ur=function(){if(te){var e=F.perspective&&!ne;j="translate"+(e?"3d(":"("),K=F.perspective?", 0px)":")";return}te="left",u.addClass(o,"pswp--ie"),lt=function(t,n){n.left=t+"px"},Ct=function(t){var n=t.fitRatio>1?1:t.fitRatio,r=t.container.style,h=n*t.w,_=n*t.h;r.width=h+"px",r.height=_+"px",r.left=t.initialPosition.x+"px",r.top=t.initialPosition.y+"px"},fe=function(){if(Ae){var t=Ae,n=i.currItem,r=n.fitRatio>1?1:n.fitRatio,h=r*n.w,_=r*n.h;t.width=h+"px",t.height=_+"px",t.left=v.x+"px",t.top=v.y+"px"}}},zr=function(e){var t="";m.escKey&&e.keyCode===27?t="close":m.arrowKeys&&(e.keyCode===37?t="prev":e.keyCode===39&&(t="next")),t&&!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey&&(e.preventDefault?e.preventDefault():e.returnValue=!1,i[t]())},Hr=function(e){e&&(pt||Je||ge||It)&&(e.preventDefault(),e.stopPropagation())},zn=function(){i.setScrollOffset(0,u.getScrollY())},Oe={},ft=0,Ot=function(e){Oe[e]&&(Oe[e].raf&&p(Oe[e].raf),ft--,delete Oe[e])},rn=function(e){Oe[e]&&Ot(e),Oe[e]||(ft++,Oe[e]={})},Et=function(){for(var e in Oe)Oe.hasOwnProperty(e)&&Ot(e)},xt=function(e,t,n,r,h,_,T){var A=Pe(),S;rn(e);var N=function(){if(Oe[e]){if(S=Pe()-A,S>=r){Ot(e),_(n),T&&T();return}_((n-t)*h(S/r)+t),Oe[e].raf=Me(N)}};N()},kr={shout:B,listen:Q,viewportSize:k,options:m,isMainScrollAnimating:function(){return ge},getZoomLevel:function(){return I},getCurrentIndex:function(){return g},isDragging:function(){return Re},isZooming:function(){return qe},setScrollOffset:function(e,t){ae.x=e,le=ae.y=t,B("updateScrollOffset",ae)},applyZoomPan:function(e,t,n,r){v.x=t,v.y=n,I=e,fe(r)},init:function(){if(!(M||D)){var e;i.framework=u,i.template=o,i.bg=u.getChildByClass(o,"pswp__bg"),w=o.className,M=!0,F=u.detectFeatures(),Me=F.raf,p=F.caf,te=F.transform,re=F.oldIE,i.scrollWrap=u.getChildByClass(o,"pswp__scroll-wrap"),i.container=u.getChildByClass(i.scrollWrap,"pswp__container"),R=i.container.style,i.itemHolders=z=[{el:i.container.children[0],wrap:0,index:-1},{el:i.container.children[1],wrap:0,index:-1},{el:i.container.children[2],wrap:0,index:-1}],z[0].el.style.display=z[2].el.style.display="none",Ur(),L={resize:i.updateSize,orientationchange:function(){clearTimeout(Ye),Ye=setTimeout(function(){k.x!==i.scrollWrap.clientWidth&&i.updateSize()},500)},scroll:zn,keydown:zr,click:Hr};var t=F.isOldIOSPhone||F.isOldAndroid||F.isMobileOpera;for((!F.animationName||!F.transform||t)&&(m.showAnimationDuration=m.hideAnimationDuration=0),e=0;e<we.length;e++)i["init"+we[e]]();if(a){var n=i.ui=new a(i,u);n.init()}B("firstUpdate"),g=g||m.index||0,(isNaN(g)||g<0||g>=Ee())&&(g=0),i.currItem=Ke(g),(F.isOldIOSPhone||F.isOldAndroid)&&(ue=!1),o.setAttribute("aria-hidden","false"),m.modal&&(ue?o.style.position="fixed":(o.style.position="absolute",o.style.top=u.getScrollY()+"px")),le===void 0&&(B("initialLayout"),le=H=u.getScrollY());var r="pswp--open ";for(m.mainClass&&(r+=m.mainClass+" "),m.showHideOpacity&&(r+="pswp--animate_opacity "),r+=ne?"pswp--touch":"pswp--notouch",r+=F.animationName?" pswp--css_animation":"",r+=F.svg?" pswp--svg":"",u.addClass(o,r),i.updateSize(),x=-1,Y=null,e=0;e<C;e++)lt((e+x)*G.x,z[e].el.style);re||u.bind(i.scrollWrap,O,i),Q("initialZoomInEnd",function(){i.setContent(z[0],g-1),i.setContent(z[2],g+1),z[0].el.style.display=z[2].el.style.display="block",m.focus&&o.focus(),Lr()}),i.setContent(z[1],g),i.updateCurrItem(),B("afterInit"),ue||($=setInterval(function(){!ft&&!Re&&!qe&&I===i.currItem.initialZoomLevel&&i.updateSize()},1e3)),u.addClass(o,"pswp--visible")}},close:function(){M&&(M=!1,D=!0,B("close"),Zr(),er(i.currItem,null,!0,i.destroy))},destroy:function(){B("destroy"),et&&clearTimeout(et),o.setAttribute("aria-hidden","true"),o.className=w,$&&clearInterval($),u.unbind(i.scrollWrap,O,i),u.unbind(window,"scroll",i),fn(),Et(),wt=null},panTo:function(e,t,n){n||(e>P.min.x?e=P.min.x:e<P.max.x&&(e=P.max.x),t>P.min.y?t=P.min.y:t<P.max.y&&(t=P.max.y)),v.x=e,v.y=t,fe()},handleEvent:function(e){e=e||window.event,L[e.type]&&L[e.type](e)},goTo:function(e){e=Ft(e);var t=e-g;Y=t,g=e,i.currItem=Ke(g),W-=t,Bt(G.x*W),Et(),ge=!1,i.updateCurrItem()},next:function(){i.goTo(g+1)},prev:function(){i.goTo(g-1)},updateCurrZoomItem:function(e){if(e&&B("beforeChange",0),z[1].el.children.length){var t=z[1].el.children[0];u.hasClass(t,"pswp__zoom-wrap")?Ae=t.style:Ae=null}else Ae=null;P=i.currItem.bounds,oe=I=i.currItem.initialZoomLevel,v.x=P.center.x,v.y=P.center.y,e&&B("afterChange")},invalidateCurrItems:function(){V=!0;for(var e=0;e<C;e++)z[e].item&&(z[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(Y!==0){var t=Math.abs(Y),n;if(!(e&&t<2)){i.currItem=Ke(g),De=!1,B("beforeChange",Y),t>=C&&(x+=Y+(Y>0?-C:C),t=C);for(var r=0;r<t;r++)Y>0?(n=z.shift(),z[C-1]=n,x++,lt((x+2)*G.x,n.el.style),i.setContent(n,g-t+r+1+1)):(n=z.pop(),z.unshift(n),x--,lt(x*G.x,n.el.style),i.setContent(n,g+t-r-1-1));if(Ae&&Math.abs(Y)===1){var h=Ke(be);h.initialZoomLevel!==I&&(Pt(h,k),nt(h),Ct(h))}Y=0,i.updateCurrZoomItem(),be=g,B("afterChange")}}},updateSize:function(e){if(!ue&&m.modal){var t=u.getScrollY();if(le!==t&&(o.style.top=t+"px",le=t),!e&&Ce.x===window.innerWidth&&Ce.y===window.innerHeight)return;Ce.x=window.innerWidth,Ce.y=window.innerHeight,o.style.height=Ce.y+"px"}if(k.x=i.scrollWrap.clientWidth,k.y=i.scrollWrap.clientHeight,zn(),G.x=k.x+Math.round(k.x*m.spacing),G.y=k.y,Bt(G.x*W),B("beforeResize"),x!==void 0){for(var n,r,h,_=0;_<C;_++)n=z[_],lt((_+x)*G.x,n.el.style),h=g+_-1,m.loop&&Ee()>2&&(h=Ft(h)),r=Ke(h),r&&(V||r.needsUpdate||!r.bounds)?(i.cleanSlide(r),i.setContent(n,h),_===1&&(i.currItem=r,i.updateCurrZoomItem(!0)),r.needsUpdate=!1):n.index===-1&&h>=0&&i.setContent(n,h),r&&r.container&&(Pt(r,k),nt(r),Ct(r));V=!1}oe=I=i.currItem.initialZoomLevel,P=i.currItem.bounds,P&&(v.x=P.center.x,v.y=P.center.y,fe(!0)),B("resize")},zoomTo:function(e,t,n,r,h){t&&(oe=I,Mt.x=Math.abs(t.x)-v.x,Mt.y=Math.abs(t.y)-v.y,ve(X,v));var _=nn(e,!1),T={};Un("x",_,T,e),Un("y",_,T,e);var A=I,S={x:v.x,y:v.y};qn(T);var N=function(ie){ie===1?(I=e,v.x=T.x,v.y=T.y):(I=(e-A)*ie+A,v.x=(T.x-S.x)*ie+S.x,v.y=(T.y-S.y)*ie+S.y),h&&h(ie),fe(ie===1)};n?xt("customZoomTo",0,1,n,r||u.easing.sine.inOut,N):N(1)}},Hn=30,on=10,kn,Nt,me={},Xe={},_e={},ye={},ct={},ze=[],Qe={},Tt,$e=[],dt={},an,It,St,jt=0,qt=E(),un=0,Re,sn,Je,pt,Lt,He,Ie,qe,Gn,P,Le=E(),Ae,ge,Mt=E(),ht=E(),ke,ln,Zt,Ut,zt,Gr=function(e,t){return e.x===t.x&&e.y===t.y},Wr=function(e,t){return Math.abs(e.x-t.x)<b&&Math.abs(e.y-t.y)<b},Wn=function(e,t){return dt.x=Math.abs(e.x-t.x),dt.y=Math.abs(e.y-t.y),Math.sqrt(dt.x*dt.x+dt.y*dt.y)},fn=function(){Lt&&(p(Lt),Lt=null)},Kn=function(){Re&&(Lt=Me(Kn),$r())},Kr=function(){return!(m.scaleMode==="fit"&&I===i.currItem.initialZoomLevel)},Vn=function(e,t){return!e||e===document||e.getAttribute("class")&&e.getAttribute("class").indexOf("pswp__scroll-wrap")>-1?!1:t(e)?e:Vn(e.parentNode,t)},cn={},Yn=function(e,t){return cn.prevent=!Vn(e.target,m.isClickableElement),B("preventDragEvent",e,t,cn),cn.prevent},Xn=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Qn=function(e,t,n){n.x=(e.x+t.x)*.5,n.y=(e.y+t.y)*.5},Vr=function(e,t,n){if(e-Nt>50){var r=$e.length>2?$e.shift():{};r.x=t,r.y=n,$e.push(r),Nt=e}},$n=function(){var e=v.y-i.currItem.initialPosition.y;return 1-Math.abs(e/(k.y/2))},Dt={},Yr={},Ge=[],Ht,dn=function(e){for(;Ge.length>0;)Ge.pop();return U?(Ht=0,ze.forEach(function(t){Ht===0?Ge[0]=t:Ht===1&&(Ge[1]=t),Ht++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Ge[0]=Xn(e.touches[0],Dt),e.touches.length>1&&(Ge[1]=Xn(e.touches[1],Yr))):(Dt.x=e.pageX,Dt.y=e.pageY,Dt.id="",Ge[0]=Dt),Ge},Jn=function(e,t){var n,r=v[e]+t[e],h,_=t[e]>0,T=Le.x+t.x,A=Le.x-Qe.x,S,N;if(r>P.min[e]||r<P.max[e]?n=m.panEndFriction:n=1,r=v[e]+t[e]*n,(m.allowPanToNext||I===i.currItem.initialZoomLevel)&&(Ae?ke==="h"&&e==="x"&&!Je&&(_?(r>P.min[e]&&(n=m.panEndFriction,P.min[e]-r,h=P.min[e]-X[e]),(h<=0||A<0)&&Ee()>1?(N=T,A<0&&T>Qe.x&&(N=Qe.x)):P.min.x!==P.max.x&&(S=r)):(r<P.max[e]&&(n=m.panEndFriction,r-P.max[e],h=X[e]-P.max[e]),(h<=0||A>0)&&Ee()>1?(N=T,A>0&&T<Qe.x&&(N=Qe.x)):P.min.x!==P.max.x&&(S=r))):N=T,e==="x"))return N!==void 0&&(Bt(N,!0),N===Qe.x?He=!1:He=!0),P.min.x!==P.max.x&&(S!==void 0?v.x=S:He||(v.x+=t.x*n)),N!==void 0;ge||He||I>i.currItem.fitRatio&&(v[e]+=t[e]*n)},Xr=function(e){if(!(e.type==="mousedown"&&e.button>0)){if(vt){e.preventDefault();return}if(!(St&&e.type==="mousedown")){if(Yn(e,!0)&&e.preventDefault(),B("pointerDown"),U){var t=u.arraySearch(ze,e.pointerId,"id");t<0&&(t=ze.length),ze[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=dn(e),r=n.length;Ie=null,Et(),(!Re||r===1)&&(Re=ln=!0,u.bind(window,q,i),an=zt=Zt=It=He=pt=sn=Je=!1,ke=null,B("firstTouchStart",n),ve(X,v),Z.x=Z.y=0,ve(ye,n[0]),ve(ct,ye),Qe.x=G.x*W,$e=[{x:ye.x,y:ye.y}],Nt=kn=Pe(),nn(I,!0),fn(),Kn()),!qe&&r>1&&!ge&&!He&&(oe=I,Je=!1,qe=sn=!0,Z.y=Z.x=0,ve(X,v),ve(me,n[0]),ve(Xe,n[1]),Qn(me,Xe,ht),Mt.x=Math.abs(ht.x)-v.x,Mt.y=Math.abs(ht.y)-v.y,Gn=Wn(me,Xe))}}},Qr=function(e){if(e.preventDefault(),U){var t=u.arraySearch(ze,e.pointerId,"id");if(t>-1){var n=ze[t];n.x=e.pageX,n.y=e.pageY}}if(Re){var r=dn(e);if(!ke&&!pt&&!qe)if(Le.x!==G.x*W)ke="h";else{var h=Math.abs(r[0].x-ye.x)-Math.abs(r[0].y-ye.y);Math.abs(h)>=on&&(ke=h>0?"h":"v",Ie=r)}else Ie=r}},$r=function(){if(Ie){var e=Ie.length;if(e!==0)if(ve(me,Ie[0]),_e.x=me.x-ye.x,_e.y=me.y-ye.y,qe&&e>1){if(ye.x=me.x,ye.y=me.y,!_e.x&&!_e.y&&Gr(Ie[1],Xe))return;ve(Xe,Ie[1]),Je||(Je=!0,B("zoomGestureStarted"));var t=Wn(me,Xe),n=ri(t);n>i.currItem.initialZoomLevel+i.currItem.initialZoomLevel/15&&(zt=!0);var r=1,h=Ln(),_=Zn();if(n<h)if(m.pinchToClose&&!zt&&oe<=i.currItem.initialZoomLevel){var T=h-n,A=1-T/(h/1.2);je(A),B("onPinchClose",A),Zt=!0}else r=(h-n)/h,r>1&&(r=1),n=h-r*(h/3);else n>_&&(r=(n-_)/(h*6),r>1&&(r=1),n=_+r*h);r<0&&(r=0),Qn(me,Xe,qt),Z.x+=qt.x-ht.x,Z.y+=qt.y-ht.y,ve(ht,qt),v.x=Jt("x",n),v.y=Jt("y",n),an=n>I,I=n,fe()}else{if(!ke||(ln&&(ln=!1,Math.abs(_e.x)>=on&&(_e.x-=Ie[0].x-ct.x),Math.abs(_e.y)>=on&&(_e.y-=Ie[0].y-ct.y)),ye.x=me.x,ye.y=me.y,_e.x===0&&_e.y===0))return;if(ke==="v"&&m.closeOnVerticalDrag&&!Kr()){Z.y+=_e.y,v.y+=_e.y;var S=$n();It=!0,B("onVerticalDrag",S),je(S),fe();return}Vr(Pe(),me.x,me.y),pt=!0,P=i.currItem.bounds;var N=Jn("x",_e);N||(Jn("y",_e),qn(v),fe())}}},Jr=function(e){if(F.isOldAndroid){if(St&&e.type==="mouseup")return;e.type.indexOf("touch")>-1&&(clearTimeout(St),St=setTimeout(function(){St=0},600))}B("pointerUp"),Yn(e,!1)&&e.preventDefault();var t;if(U){var n=u.arraySearch(ze,e.pointerId,"id");if(n>-1)if(t=ze.splice(n,1)[0],navigator.msPointerEnabled){var r={4:"mouse",2:"touch",3:"pen"};t.type=r[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}else t.type=e.pointerType||"mouse"}var h=dn(e),_,T=h.length;if(e.type==="mouseup"&&(T=0),T===2)return Ie=null,!0;T===1&&ve(ct,h[0]),T===0&&!ke&&!ge&&(t||(e.type==="mouseup"?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),B("touchRelease",e,t));var A=-1;if(T===0&&(Re=!1,u.unbind(window,q,i),fn(),qe?A=0:un!==-1&&(A=Pe()-un)),un=T===1?Pe():-1,A!==-1&&A<150?_="zoom":_="swipe",qe&&T<2&&(qe=!1,T===1&&(_="zoomPointerUp"),B("zoomGestureEnded")),Ie=null,!(!pt&&!Je&&!ge&&!It)){if(Et(),Tt||(Tt=ei()),Tt.calculateSwipeSpeed("x"),It){var S=$n();if(S<m.verticalDragRange)i.close();else{var N=v.y,ie=Ut;xt("verticalDrag",0,1,300,u.easing.cubic.out,function(Ze){v.y=(i.currItem.initialPosition.y-N)*Ze+N,je((1-ie)*Ze+ie),fe()}),B("onVerticalDrag",1)}return}if((He||ge)&&T===0){var Be=ni(_,Tt);if(Be)return;_="zoomPointerUp"}if(!ge){if(_!=="swipe"){ii();return}!He&&I>i.currItem.fitRatio&&ti(Tt)}}},ei=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(r){$e.length>1?(e=Pe()-Nt+50,t=$e[$e.length-2][r]):(e=Pe()-kn,t=ct[r]),n.lastFlickOffset[r]=ye[r]-t,n.lastFlickDist[r]=Math.abs(n.lastFlickOffset[r]),n.lastFlickDist[r]>20?n.lastFlickSpeed[r]=n.lastFlickOffset[r]/e:n.lastFlickSpeed[r]=0,Math.abs(n.lastFlickSpeed[r])<.1&&(n.lastFlickSpeed[r]=0),n.slowDownRatio[r]=.95,n.slowDownRatioReverse[r]=1-n.slowDownRatio[r],n.speedDecelerationRatio[r]=1},calculateOverBoundsAnimOffset:function(r,h){n.backAnimStarted[r]||(v[r]>P.min[r]?n.backAnimDestination[r]=P.min[r]:v[r]<P.max[r]&&(n.backAnimDestination[r]=P.max[r]),n.backAnimDestination[r]!==void 0&&(n.slowDownRatio[r]=.7,n.slowDownRatioReverse[r]=1-n.slowDownRatio[r],n.speedDecelerationRatioAbs[r]<.05&&(n.lastFlickSpeed[r]=0,n.backAnimStarted[r]=!0,xt("bounceZoomPan"+r,v[r],n.backAnimDestination[r],h||300,u.easing.sine.out,function(_){v[r]=_,fe()}))))},calculateAnimOffset:function(r){n.backAnimStarted[r]||(n.speedDecelerationRatio[r]=n.speedDecelerationRatio[r]*(n.slowDownRatio[r]+n.slowDownRatioReverse[r]-n.slowDownRatioReverse[r]*n.timeDiff/10),n.speedDecelerationRatioAbs[r]=Math.abs(n.lastFlickSpeed[r]*n.speedDecelerationRatio[r]),n.distanceOffset[r]=n.lastFlickSpeed[r]*n.speedDecelerationRatio[r]*n.timeDiff,v[r]+=n.distanceOffset[r])},panAnimLoop:function(){if(Oe.zoomPan&&(Oe.zoomPan.raf=Me(n.panAnimLoop),n.now=Pe(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),fe(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05)){v.x=Math.round(v.x),v.y=Math.round(v.y),fe(),Ot("zoomPan");return}}};return n},ti=function(e){if(e.calculateSwipeSpeed("y"),P=i.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;rn("zoomPan"),e.lastNow=Pe(),e.panAnimLoop()},ni=function(e,t){var n;ge||(jt=g);var r;if(e==="swipe"){var h=ye.x-ct.x,_=t.lastFlickDist.x<10;h>Hn&&(_||t.lastFlickOffset.x>20)?r=-1:h<-Hn&&(_||t.lastFlickOffset.x<-20)&&(r=1)}var T;r&&(g+=r,g<0?(g=m.loop?Ee()-1:0,T=!0):g>=Ee()&&(g=m.loop?0:Ee()-1,T=!0),(!T||m.loop)&&(Y+=r,W-=r,n=!0));var A=G.x*W,S=Math.abs(A-Le.x),N;return!n&&A>Le.x!=t.lastFlickSpeed.x>0?N=333:(N=Math.abs(t.lastFlickSpeed.x)>0?S/Math.abs(t.lastFlickSpeed.x):333,N=Math.min(N,400),N=Math.max(N,250)),jt===g&&(n=!1),ge=!0,B("mainScrollAnimStart"),xt("mainScroll",Le.x,A,N,u.easing.cubic.out,Bt,function(){Et(),ge=!1,jt=-1,(n||jt!==g)&&i.updateCurrItem(),B("mainScrollAnimComplete")}),n&&i.updateCurrItem(!0),n},ri=function(e){return 1/Gn*e*oe},ii=function(){var e=I,t=Ln(),n=Zn();I<t?e=t:I>n&&(e=n);var r=1,h,_=Ut;return Zt&&!an&&!zt&&I<t?(i.close(),!0):(Zt&&(h=function(T){je((r-_)*T+_)}),i.zoomTo(e,0,200,u.easing.cubic.out,h),!0)};bt("Gestures",{publicMethods:{initGestures:function(){var e=function(t,n,r,h,_){J=t+n,de=t+r,he=t+h,_?ee=t+_:ee=""};U=F.pointerEvent,U&&F.touch&&(F.touch=!1),U?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):F.touch?(e("touch","start","move","end","cancel"),ne=!0):e("mouse","down","move","up"),q=de+" "+he+" "+ee,O=J,U&&!ne&&(ne=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),i.likelyTouchDevice=ne,L[J]=Xr,L[de]=Qr,L[he]=Jr,ee&&(L[ee]=L[he]),F.touch&&(O+=" mousedown",q+=" mousemove mouseup",L.mousedown=L[J],L.mousemove=L[de],L.mouseup=L[he]),ne||(m.allowPanToNext=!1)}}});var et,er=function(e,t,n,r){et&&clearTimeout(et),vt=!0,pn=!0;var h;e.initialLayout?(h=e.initialLayout,e.initialLayout=null):h=m.getThumbBoundsFn&&m.getThumbBoundsFn(g);var _=n?m.hideAnimationDuration:m.showAnimationDuration,T=function(){Ot("initialZoom"),n?(i.template.removeAttribute("style"),i.bg.removeAttribute("style")):(je(1),t&&(t.style.display="block"),u.addClass(o,"pswp--animated-in"),B("initialZoom"+(n?"OutEnd":"InEnd"))),r&&r(),vt=!1};if(!_||!h||h.x===void 0){B("initialZoom"+(n?"Out":"In")),I=e.initialZoomLevel,ve(v,e.initialPosition),fe(),o.style.opacity=n?0:1,je(1),_?setTimeout(function(){T()},_):T();return}var A=function(){var S=y,N=!i.currItem.src||i.currItem.loadError||m.showHideOpacity;e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),n||(I=h.w/e.w,v.x=h.x,v.y=h.y-H,i[N?"template":"bg"].style.opacity=.001,fe()),rn("initialZoom"),n&&!S&&u.removeClass(o,"pswp--animated-in"),N&&(n?u[(S?"remove":"add")+"Class"](o,"pswp--animate_opacity"):setTimeout(function(){u.addClass(o,"pswp--animate_opacity")},30)),et=setTimeout(function(){if(B("initialZoom"+(n?"Out":"In")),!n)I=e.initialZoomLevel,ve(v,e.initialPosition),fe(),je(1),N?o.style.opacity=1:je(1),et=setTimeout(T,_+20);else{var ie=h.w/e.w,Be={x:v.x,y:v.y},Ze=I,_t=Ut,At=function(Ne){Ne===1?(I=ie,v.x=h.x,v.y=h.y-le):(I=(ie-Ze)*Ne+Ze,v.x=(h.x-Be.x)*Ne+Be.x,v.y=(h.y-le-Be.y)*Ne+Be.y),fe(),N?o.style.opacity=1-Ne:je(_t-Ne*_t)};S?xt("initialZoom",0,1,_,u.easing.cubic.out,At,T):(At(1),et=setTimeout(T,_+20))}},n?25:90)};A()},We,Se={},tt=[],pn,vt,oi={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return We.length}},Ke,Ee,tr=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},ai=function(e,t,n){var r=e.bounds;r.center.x=Math.round((Se.x-t)/2),r.center.y=Math.round((Se.y-n)/2)+e.vGap.top,r.max.x=t>Se.x?Math.round(Se.x-t):r.center.x,r.max.y=n>Se.y?Math.round(Se.y-n)+e.vGap.top:r.center.y,r.min.x=t>Se.x?0:r.center.x,r.min.y=n>Se.y?e.vGap.top:r.center.y},Pt=function(e,t,n){if(e.src&&!e.loadError){var r=!n;if(r&&(e.vGap||(e.vGap={top:0,bottom:0}),B("parseVerticalMargin",e)),Se.x=t.x,Se.y=t.y-e.vGap.top-e.vGap.bottom,r){var h=Se.x/e.w,_=Se.y/e.h;e.fitRatio=h<_?h:_;var T=m.scaleMode;T==="orig"?n=1:T==="fit"&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=tr())}return n?(ai(e,e.w*n,e.h*n),r&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0}else return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=tr(),e.initialPosition=e.bounds.center,e.bounds},kt=function(e,t,n,r,h,_){t.loadError||r&&(t.imageAppended=!0,nt(t,r,t===i.currItem&&De),n.appendChild(r),_&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},nr=function(e){e.loading=!0,e.loaded=!1;var t=e.img=u.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t},rr=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=m.errorMsg.replace("%url%",e.src),!0},nt=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var r=n?e.w:Math.round(e.w*e.fitRatio),h=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=r+"px",e.placeholder.style.height=h+"px"),t.style.width=r+"px",t.style.height=h+"px"}},ir=function(){if(tt.length){for(var e,t=0;t<tt.length;t++)e=tt[t],e.holder.index===e.index&&kt(e.index,e.item,e.baseDiv,e.img,!1,e.clearPlaceholder);tt=[]}};bt("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ft(e);var t=Ke(e);!t||(t.loaded||t.loading)&&!V||(B("gettingData",e,t),t.src&&nr(t))},initController:function(){u.extend(m,oi,!0),i.items=We=c,Ke=i.getItemAt,Ee=m.getNumItemsFn,m.loop,Ee()<3&&(m.loop=!1),Q("beforeChange",function(e){var t=m.preload,n=e===null?!0:e>=0,r=Math.min(t[0],Ee()),h=Math.min(t[1],Ee()),_;for(_=1;_<=(n?h:r);_++)i.lazyLoadItem(g+_);for(_=1;_<=(n?r:h);_++)i.lazyLoadItem(g-_)}),Q("initialLayout",function(){i.currItem.initialLayout=m.getThumbBoundsFn&&m.getThumbBoundsFn(g)}),Q("mainScrollAnimComplete",ir),Q("initialZoomInEnd",ir),Q("destroy",function(){for(var e,t=0;t<We.length;t++)e=We[t],e.container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);tt=null})},getItemAt:function(e){return e>=0&&We[e]!==void 0?We[e]:!1},allowProgressiveImg:function(){return m.forceProgressiveLoading||!ne||m.mouseUsed||screen.width>1200},setContent:function(e,t){m.loop&&(t=Ft(t));var n=i.getItemAt(e.index);n&&(n.container=null);var r=i.getItemAt(t),h;if(!r){e.el.innerHTML="";return}B("gettingData",t,r),e.index=t,e.item=r;var _=r.container=u.createEl("pswp__zoom-wrap");if(!r.src&&r.html&&(r.html.tagName?_.appendChild(r.html):_.innerHTML=r.html),rr(r),Pt(r,k),r.src&&!r.loadError&&!r.loaded){if(r.loadComplete=function(S){if(M){if(e&&e.index===t){if(rr(S,!0)){S.loadComplete=S.img=null,Pt(S,k),Ct(S),e.index===g&&i.updateCurrZoomItem();return}S.imageAppended?!vt&&S.placeholder&&(S.placeholder.style.display="none",S.placeholder=null):F.transform&&(ge||vt)?tt.push({item:S,baseDiv:_,img:S.img,index:t,holder:e,clearPlaceholder:!0}):kt(t,S,_,S.img,ge||vt,!0)}S.loadComplete=null,S.img=null,B("imageLoadComplete",t,S)}},u.features.transform){var T="pswp__img pswp__img--placeholder";T+=r.msrc?"":" pswp__img--placeholder--blank";var A=u.createEl(T,r.msrc?"img":"");r.msrc&&(A.src=r.msrc),nt(r,A),_.appendChild(A),r.placeholder=A}r.loading||nr(r),i.allowProgressiveImg()&&(!pn&&F.transform?tt.push({item:r,baseDiv:_,img:r.img,index:t,holder:e}):kt(t,r,_,r.img,!0,!0))}else r.src&&!r.loadError&&(h=u.createEl("pswp__img","img"),h.style.opacity=1,h.src=r.src,nt(r,h),kt(t,r,_,h));!pn&&t===g?(Ae=_.style,er(r,h||r.img)):Ct(r),e.el.innerHTML="",e.el.appendChild(_)},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Ve,hn={},vn=function(e,t,n){var r=document.createEvent("CustomEvent"),h={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};r.initCustomEvent("pswpTap",!0,!0,h),e.target.dispatchEvent(r)};bt("Tap",{publicMethods:{initTap:function(){Q("firstTouchStart",i.onTapStart),Q("touchRelease",i.onTapRelease),Q("destroy",function(){hn={},Ve=null})},onTapStart:function(e){e.length>1&&(clearTimeout(Ve),Ve=null)},onTapRelease:function(e,t){if(t&&!pt&&!sn&&!ft){var n=t;if(Ve&&(clearTimeout(Ve),Ve=null,Wr(n,hn))){B("doubleTap",n);return}if(t.type==="mouse"){vn(e,t,"mouse");return}var r=e.target.tagName.toUpperCase();if(r==="BUTTON"||u.hasClass(e.target,"pswp__single-tap")){vn(e,t);return}ve(hn,n),Ve=setTimeout(function(){vn(e,t),Ve=null},300)}}}});var xe;bt("DesktopZoom",{publicMethods:{initDesktopZoom:function(){re||(ne?Q("mouseUsed",function(){i.setupDesktopZoom()}):i.setupDesktopZoom(!0))},setupDesktopZoom:function(e){xe={};var t="wheel mousewheel DOMMouseScroll";Q("bindEvents",function(){u.bind(o,t,i.handleMouseWheel)}),Q("unbindEvents",function(){xe&&u.unbind(o,t,i.handleMouseWheel)}),i.mouseZoomedIn=!1;var n,r=function(){i.mouseZoomedIn&&(u.removeClass(o,"pswp--zoomed-in"),i.mouseZoomedIn=!1),I<1?u.addClass(o,"pswp--zoom-allowed"):u.removeClass(o,"pswp--zoom-allowed"),h()},h=function(){n&&(u.removeClass(o,"pswp--dragging"),n=!1)};Q("resize",r),Q("afterChange",r),Q("pointerDown",function(){i.mouseZoomedIn&&(n=!0,u.addClass(o,"pswp--dragging"))}),Q("pointerUp",h),e||r()},handleMouseWheel:function(e){if(I<=i.currItem.fitRatio)return m.modal&&(!m.closeOnScroll||ft||Re?e.preventDefault():te&&Math.abs(e.deltaY)>2&&(y=!0,i.close())),!0;if(e.stopPropagation(),xe.x=0,"deltaX"in e)e.deltaMode===1?(xe.x=e.deltaX*18,xe.y=e.deltaY*18):(xe.x=e.deltaX,xe.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(xe.x=-.16*e.wheelDeltaX),e.wheelDeltaY?xe.y=-.16*e.wheelDeltaY:xe.y=-.16*e.wheelDelta;else if("detail"in e)xe.y=e.detail;else return;nn(I,!0);var t=v.x-xe.x,n=v.y-xe.y;(m.modal||t<=P.min.x&&t>=P.max.x&&n<=P.min.y&&n>=P.max.y)&&e.preventDefault(),i.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:k.x/2+ae.x,y:k.y/2+ae.y};var t=m.getDoubleTapZoom(!0,i.currItem),n=I===t;i.mouseZoomedIn=!n,i.zoomTo(n?i.currItem.initialZoomLevel:t,e,333),u[(n?"remove":"add")+"Class"](o,"pswp--zoomed-in")}}});var ui={history:!0,galleryUID:1},mn,or,Rt,Gt,_n,ar,ce,mt,yn,gn,Fe,bn,wn=function(){return Fe.hash.substring(1)},ur=function(){mn&&clearTimeout(mn),Rt&&clearTimeout(Rt)},sr=function(){var e=wn(),t={};if(e.length<5)return t;var n,r=e.split("&");for(n=0;n<r.length;n++)if(r[n]){var h=r[n].split("=");h.length<2||(t[h[0]]=h[1])}if(m.galleryPIDs){var _=t.pid;for(t.pid=0,n=0;n<We.length;n++)if(We[n].pid===_){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},Cn=function(){if(Rt&&clearTimeout(Rt),ft||Re){Rt=setTimeout(Cn,500);return}Gt?clearTimeout(or):Gt=!0;var e=g+1,t=Ke(g);t.hasOwnProperty("pid")&&(e=t.pid);var n=ce+"&gid="+m.galleryUID+"&pid="+e;mt||Fe.hash.indexOf(n)===-1&&(gn=!0);var r=Fe.href.split("#")[0]+"#"+n;bn?"#"+n!==window.location.hash&&history[mt?"replaceState":"pushState"]("",document.title,r):mt?Fe.replace(r):Fe.hash=n,mt=!0,or=setTimeout(function(){Gt=!1},60)};bt("History",{publicMethods:{initHistory:function(){if(u.extend(m,ui,!0),!!m.history){Fe=window.location,gn=!1,yn=!1,mt=!1,ce=wn(),bn="pushState"in history,ce.indexOf("gid=")>-1&&(ce=ce.split("&gid=")[0],ce=ce.split("?gid=")[0]),Q("afterChange",i.updateURL),Q("unbindEvents",function(){u.unbind(window,"hashchange",i.onHashChange)});var e=function(){ar=!0,yn||(gn?history.back():ce?Fe.hash=ce:bn?history.pushState("",document.title,Fe.pathname+Fe.search):Fe.hash=""),ur()};Q("unbindEvents",function(){y&&e()}),Q("destroy",function(){ar||e()}),Q("firstUpdate",function(){g=sr().pid});var t=ce.indexOf("pid=");t>-1&&(ce=ce.substring(0,t),ce.slice(-1)==="&"&&(ce=ce.slice(0,-1))),setTimeout(function(){M&&u.bind(window,"hashchange",i.onHashChange)},40)}},onHashChange:function(){if(wn()===ce){yn=!0,i.close();return}Gt||(_n=!0,i.goTo(sr().pid),_n=!1)},updateURL:function(){ur(),!_n&&(mt?mn=setTimeout(Cn,800):Cn())}}}),u.extend(i,kr)};return f})}(Kt)),Kt.exports}var Te={},it={},dr;function pi(){if(dr)return it;dr=1;var s=it&&it.__extends||function(){var f=function(o,a){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=d}||function(c,d){for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&(c[u]=d[u])},f(o,a)};return function(o,a){f(o,a);function c(){this.constructor=o}o.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}();Object.defineProperty(it,"__esModule",{value:!0}),it.NoRefError=void 0;var l=function(f){s(o,f);function o(){var a=f!==null&&f.apply(this,arguments)||this;return a.message="No valid `ref` provided.\nYou shuld use `ref` from render prop of Item component.\nExample:\n<Item>{({ ref }) => <div ref={ref}></div>}</Item>\n",a}return o}(Error);return it.NoRefError=l,it}var pr;function hi(){if(pr)return Te;pr=1;var s=Te&&Te.__read||function(d,u){var i=typeof Symbol=="function"&&d[Symbol.iterator];if(!i)return d;var b=i.call(d),C,m=[],E;try{for(;(u===void 0||u-- >0)&&!(C=b.next()).done;)m.push(C.value)}catch(M){E={error:M}}finally{try{C&&!C.done&&(i=b.return)&&i.call(b)}finally{if(E)throw E.error}}return m},l=Te&&Te.__spread||function(){for(var d=[],u=0;u<arguments.length;u++)d=d.concat(s(arguments[u]));return d};Object.defineProperty(Te,"__esModule",{value:!0}),Te.shuffle=Te.sortNodes=Te.getElBounds=void 0;var f=pi(),o=function(d){var u=window.pageXOffset||document.documentElement.scrollLeft,i=window.pageYOffset||document.documentElement.scrollTop,b=d.getBoundingClientRect();return{x:b.left+u,y:b.top+i,w:b.width}};Te.getElBounds=o;function a(d,u){if(!(d instanceof Element))throw new f.NoRefError;return d===u?0:d.compareDocumentPosition(u)&2?1:-1}Te.sortNodes=a;function c(d){for(var u=l(d),i=u.length,b,C;i!==0;)C=Math.floor(Math.random()*i),i-=1,b=u[i],u[i]=u[C],u[C]=b;return u}return Te.shuffle=c,Te}var ot={},hr;function Nn(){if(hr)return ot;hr=1;var s=ot&&ot.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(ot,"__esModule",{value:!0}),ot.Context=void 0;var l=s(gt());return ot.Context=l.default.createContext({remove:function(){},set:function(){},handleClick:function(){},open:function(){}}),ot}var at={},vr;function Rr(){if(vr)return at;vr=1;var s=at&&at.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(at,"__esModule",{value:!0}),at.baseGalleryPropTypes=void 0;var l=s(Qt());return at.baseGalleryPropTypes={children:l.default.any,options:l.default.object,id:l.default.oneOfType([l.default.string,l.default.number])},at}var mr;function vi(){return mr||(mr=1,function(s){var l=se&&se.__assign||function(){return l=Object.assign||function(y){for(var g,R=1,x=arguments.length;R<x;R++){g=arguments[R];for(var Z in g)Object.prototype.hasOwnProperty.call(g,Z)&&(y[Z]=g[Z])}return y},l.apply(this,arguments)},f=se&&se.__createBinding||(Object.create?function(y,g,R,x){x===void 0&&(x=R),Object.defineProperty(y,x,{enumerable:!0,get:function(){return g[R]}})}:function(y,g,R,x){x===void 0&&(x=R),y[x]=g[R]}),o=se&&se.__setModuleDefault||(Object.create?function(y,g){Object.defineProperty(y,"default",{enumerable:!0,value:g})}:function(y,g){y.default=g}),a=se&&se.__importStar||function(y){if(y&&y.__esModule)return y;var g={};if(y!=null)for(var R in y)R!=="default"&&Object.prototype.hasOwnProperty.call(y,R)&&f(g,y,R);return o(g,y),g},c=se&&se.__rest||function(y,g){var R={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&g.indexOf(x)<0&&(R[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,x=Object.getOwnPropertySymbols(y);Z<x.length;Z++)g.indexOf(x[Z])<0&&Object.prototype.propertyIsEnumerable.call(y,x[Z])&&(R[x[Z]]=y[x[Z]]);return R},d=se&&se.__read||function(y,g){var R=typeof Symbol=="function"&&y[Symbol.iterator];if(!R)return y;var x=R.call(y),Z,X=[],v;try{for(;(g===void 0||g-- >0)&&!(Z=x.next()).done;)X.push(Z.value)}catch(q){v={error:q}}finally{try{Z&&!Z.done&&(R=x.return)&&R.call(x)}finally{if(v)throw v.error}}return X},u=se&&se.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(s,"__esModule",{value:!0}),s.CustomGallery=void 0;var i=u(di()),b=a(gt()),C=u(Qt()),m=hi(),E=Nn(),M=Rr(),D=function(y){var g=y.children,R=y.layoutRef,x=y.ui,Z=y.options,X=y.id,v=y.onOpen,q=b.useRef(new Map),O=b.useRef(null),L=b.useCallback(function(j,K,$){var V=$||null,W=[],ae=Array.from(q.current),G=function(Y,J){var de=d(Y,2),he=de[0],ee=de[1],te=ee.width,U=ee.height,ue=ee.title,ne=ee.original,we=ee.thumbnail,Me=ee.id,p=c(ee,["width","height","title","original","thumbnail","id"]);(j===he||Me!==void 0&&String(Me)===K)&&(V=J),W.push(l(l(l(l({},ue?{title:ue}:{}),{w:Number(te),h:Number(U),src:ne,msrc:we,el:he.current}),Me!==void 0?{pid:Me}:{}),p))};q.current.size>1?ae.sort(function(Y,J){var de=d(Y,1),he=de[0].current,ee=d(J,1),te=ee[0].current;return m.sortNodes(he,te)}).forEach(G):ae.forEach(G);var z=R.current;if(z){var be=new i.default(z,x,W,l(l({index:V===null?parseInt(K,10)-1:V,getThumbBoundsFn:function(Y){var J=W[Y].el;return J?m.getElBounds(J):{x:0,y:0,w:0}},history:!1},X!==void 0?{galleryUID:X,history:!0}:{}),Z||{}));be.init(),v!==void 0&&typeof v=="function"&&v(be)}},[Z,X,v]);b.useEffect(function(){if(X!==void 0){var j=window.location.hash.substring(1),K={};if(!(j.length<5)){for(var $=j.split("&"),V=0;V<$.length;V++)if($[V]){var W=d($[V].split("="),2),ae=W[0],G=W[1];ae&&G&&(K[ae]=G)}var z=K.pid,be=K.gid;if(q.current.size===0){O.current=z;return}z&&be===String(X)&&L(null,z)}}},[L,X]);var k=b.useCallback(function(j){q.current.delete(j)},[]),I=b.useCallback(function(j,K){var $=K.id;if(q.current.set(j,K),!!O.current){if($===O.current)L(j),O.current=null;else if(!$){var V=parseInt(O.current,10)-1,W=Array.from(q.current.keys())[V];W&&(L(W),O.current=null)}}},[L]),oe=b.useCallback(function(j){L(null,null,j)},[L]);return b.default.createElement(E.Context.Provider,{value:{remove:k,set:I,handleClick:L,open:oe}},g)};s.CustomGallery=D,s.CustomGallery.propTypes=l(l({},M.baseGalleryPropTypes),{layoutRef:C.default.shape({current:C.default.instanceOf(typeof Element>"u"?function(){function y(){}return y}():Element)}).isRequired,ui:C.default.any.isRequired})}(se)),se}var pe={},Vt={exports:{}};/*! PhotoSwipe Default UI - 4.1.3 - 2019-01-08 * http://photoswipe.com * Copyright (c) 2019 Dmitry Semenov; */var mi=Vt.exports,_r;function _i(){return _r||(_r=1,function(s,l){(function(f,o){s.exports=o()})(mi,function(){var f=function(o,a){var c=this,d=!1,u=!0,i,b,C,m,E,M,D,y=!0,g,R,x,Z,X,v,q,O,L={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(p,w){return p.title?(w.children[0].innerHTML=p.title,!0):(w.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,shareButtons:[{id:"facebook",label:"Share on Facebook",url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:"Tweet",url:"https://twitter.com/intent/tweet?text={{text}}&url={{url}}"},{id:"pinterest",label:"Pin it",url:"http://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"},{id:"download",label:"Download image",url:"{{raw_image_url}}",download:!0}],getImageURLForShare:function(){return o.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return o.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},k,I=function(p){if(k)return!0;p=p||window.event,O.timeToIdle&&O.mouseUsed&&!R&&J();for(var w=p.target||p.srcElement,H,re=w.getAttribute("class")||"",le,F=0;F<we.length;F++)H=we[F],H.onTap&&re.indexOf("pswp__"+H.name)>-1&&(H.onTap(),le=!0);if(le){p.stopPropagation&&p.stopPropagation(),k=!0;var Ce=a.features.isOldAndroid?600:30;setTimeout(function(){k=!1},Ce)}},oe=function(){return!o.likelyTouchDevice||O.mouseUsed||screen.width>O.fitControlsWidth},j=function(p,w,H){a[(H?"add":"remove")+"Class"](p,"pswp__"+w)},K=function(){var p=O.getNumItemsFn()===1;p!==q&&(j(b,"ui--one-slide",p),q=p)},$=function(){j(D,"share-modal--hidden",y)},V=function(){return y=!y,y?(a.removeClass(D,"pswp__share-modal--fade-in"),setTimeout(function(){y&&$()},300)):($(),setTimeout(function(){y||a.addClass(D,"pswp__share-modal--fade-in")},30)),y||ae(),!1},W=function(p){p=p||window.event;var w=p.target||p.srcElement;return o.shout("shareLinkClick",p,w),w.href?w.hasAttribute("download")?!0:(window.open(w.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),y||V(),!1):!1},ae=function(){for(var p="",w,H,re,le,F,Ce=0;Ce<O.shareButtons.length;Ce++)w=O.shareButtons[Ce],re=O.getImageURLForShare(w),le=O.getPageURLForShare(w),F=O.getTextForShare(w),H=w.url.replace("{{url}}",encodeURIComponent(le)).replace("{{image_url}}",encodeURIComponent(re)).replace("{{raw_image_url}}",re).replace("{{text}}",encodeURIComponent(F)),p+='<a href="'+H+'" target="_blank" class="pswp__share--'+w.id+'"'+(w.download?"download":"")+">"+w.label+"</a>",O.parseShareButtonOut&&(p=O.parseShareButtonOut(w,p));D.children[0].innerHTML=p,D.children[0].onclick=W},G=function(p){for(var w=0;w<O.closeElClasses.length;w++)if(a.hasClass(p,"pswp__"+O.closeElClasses[w]))return!0},z,be,Y=0,J=function(){clearTimeout(be),Y=0,R&&c.setIdle(!1)},de=function(p){p=p||window.event;var w=p.relatedTarget||p.toElement;(!w||w.nodeName==="HTML")&&(clearTimeout(be),be=setTimeout(function(){c.setIdle(!0)},O.timeToIdleOutside))},he=function(){O.fullscreenEl&&!a.features.isOldAndroid&&(i||(i=c.getFullscreenAPI()),i?(a.bind(document,i.eventK,c.updateFullscreen),c.updateFullscreen(),a.addClass(o.template,"pswp--supports-fs")):a.removeClass(o.template,"pswp--supports-fs"))},ee=function(){O.preloaderEl&&(te(!0),x("beforeChange",function(){clearTimeout(v),v=setTimeout(function(){o.currItem&&o.currItem.loading?(!o.allowProgressiveImg()||o.currItem.img&&!o.currItem.img.naturalWidth)&&te(!1):te(!0)},O.loadingIndicatorDelay)}),x("imageLoadComplete",function(p,w){o.currItem===w&&te(!0)}))},te=function(p){X!==p&&(j(Z,"preloader--active",!p),X=p)},U=function(p){var w=p.vGap;if(oe()){var H=O.barsSize;if(O.captionEl&&H.bottom==="auto")if(m||(m=a.createEl("pswp__caption pswp__caption--fake"),m.appendChild(a.createEl("pswp__caption__center")),b.insertBefore(m,C),a.addClass(b,"pswp__ui--fit")),O.addCaptionHTMLFn(p,m,!0)){var re=m.clientHeight;w.bottom=parseInt(re,10)||44}else w.bottom=H.top;else w.bottom=H.bottom==="auto"?0:H.bottom;w.top=H.top}else w.top=w.bottom=0},ue=function(){O.timeToIdle&&x("mouseUsed",function(){a.bind(document,"mousemove",J),a.bind(document,"mouseout",de),z=setInterval(function(){Y++,Y===2&&c.setIdle(!0)},O.timeToIdle/2)})},ne=function(){x("onVerticalDrag",function(w){u&&w<.95?c.hideControls():!u&&w>=.95&&c.showControls()});var p;x("onPinchClose",function(w){u&&w<.9?(c.hideControls(),p=!0):p&&!u&&w>.9&&c.showControls()}),x("zoomGestureEnded",function(){p=!1,p&&!u&&c.showControls()})},we=[{name:"caption",option:"captionEl",onInit:function(p){C=p}},{name:"share-modal",option:"shareEl",onInit:function(p){D=p},onTap:function(){V()}},{name:"button--share",option:"shareEl",onInit:function(p){M=p},onTap:function(){V()}},{name:"button--zoom",option:"zoomEl",onTap:o.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(p){E=p}},{name:"button--close",option:"closeEl",onTap:o.close},{name:"button--arrow--left",option:"arrowEl",onTap:o.prev},{name:"button--arrow--right",option:"arrowEl",onTap:o.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){i.isFullscreen()?i.exit():i.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(p){Z=p}}],Me=function(){var p,w,H,re=function(F){if(F)for(var Ce=F.length,De=0;De<Ce;De++){p=F[De],w=p.className;for(var Ye=0;Ye<we.length;Ye++)H=we[Ye],w.indexOf("pswp__"+H.name)>-1&&(O[H.option]?(a.removeClass(p,"pswp__element--disabled"),H.onInit&&H.onInit(p)):a.addClass(p,"pswp__element--disabled"))}};re(b.children);var le=a.getChildByClass(b,"pswp__top-bar");le&&re(le.children)};c.init=function(){a.extend(o.options,L,!0),O=o.options,b=a.getChildByClass(o.scrollWrap,"pswp__ui"),x=o.listen,ne(),x("beforeChange",c.update),x("doubleTap",function(p){var w=o.currItem.initialZoomLevel;o.getZoomLevel()!==w?o.zoomTo(w,p,333):o.zoomTo(O.getDoubleTapZoom(!1,o.currItem),p,333)}),x("preventDragEvent",function(p,w,H){var re=p.target||p.srcElement;re&&re.getAttribute("class")&&p.type.indexOf("mouse")>-1&&(re.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(re.tagName))&&(H.prevent=!1)}),x("bindEvents",function(){a.bind(b,"pswpTap click",I),a.bind(o.scrollWrap,"pswpTap",c.onGlobalTap),o.likelyTouchDevice||a.bind(o.scrollWrap,"mouseover",c.onMouseOver)}),x("unbindEvents",function(){y||V(),z&&clearInterval(z),a.unbind(document,"mouseout",de),a.unbind(document,"mousemove",J),a.unbind(b,"pswpTap click",I),a.unbind(o.scrollWrap,"pswpTap",c.onGlobalTap),a.unbind(o.scrollWrap,"mouseover",c.onMouseOver),i&&(a.unbind(document,i.eventK,c.updateFullscreen),i.isFullscreen()&&(O.hideAnimationDuration=0,i.exit()),i=null)}),x("destroy",function(){O.captionEl&&(m&&b.removeChild(m),a.removeClass(C,"pswp__caption--empty")),D&&(D.children[0].onclick=null),a.removeClass(b,"pswp__ui--over-close"),a.addClass(b,"pswp__ui--hidden"),c.setIdle(!1)}),O.showAnimationDuration||a.removeClass(b,"pswp__ui--hidden"),x("initialZoomIn",function(){O.showAnimationDuration&&a.removeClass(b,"pswp__ui--hidden")}),x("initialZoomOut",function(){a.addClass(b,"pswp__ui--hidden")}),x("parseVerticalMargin",U),Me(),O.shareEl&&M&&D&&(y=!0),K(),ue(),he(),ee()},c.setIdle=function(p){R=p,j(b,"ui--idle",p)},c.update=function(){u&&o.currItem?(c.updateIndexIndicator(),O.captionEl&&(O.addCaptionHTMLFn(o.currItem,C),j(C,"caption--empty",!o.currItem.title)),d=!0):d=!1,y||V(),K()},c.updateFullscreen=function(p){p&&setTimeout(function(){o.setScrollOffset(0,a.getScrollY())},50),a[(i.isFullscreen()?"add":"remove")+"Class"](o.template,"pswp--fs")},c.updateIndexIndicator=function(){O.counterEl&&(E.innerHTML=o.getCurrentIndex()+1+O.indexIndicatorSep+O.getNumItemsFn())},c.onGlobalTap=function(p){p=p||window.event;var w=p.target||p.srcElement;if(!k){if(p.detail&&p.detail.pointerType==="mouse"){if(G(w)){o.close();return}a.hasClass(w,"pswp__img")&&(o.getZoomLevel()===1&&o.getZoomLevel()<=o.currItem.fitRatio?O.clickToCloseNonZoomable&&o.close():o.toggleDesktopZoom(p.detail.releasePoint))}else if(O.tapToToggleControls&&(u?c.hideControls():c.showControls()),O.tapToClose&&(a.hasClass(w,"pswp__img")||G(w))){o.close();return}}},c.onMouseOver=function(p){p=p||window.event;var w=p.target||p.srcElement;j(b,"ui--over-close",G(w))},c.hideControls=function(){a.addClass(b,"pswp__ui--hidden"),u=!1},c.showControls=function(){u=!0,d||c.update(),a.removeClass(b,"pswp__ui--hidden")},c.supportsFullscreen=function(){var p=document;return!!(p.exitFullscreen||p.mozCancelFullScreen||p.webkitExitFullscreen||p.msExitFullscreen)},c.getFullscreenAPI=function(){var p=document.documentElement,w,H="fullscreenchange";return p.requestFullscreen?w={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:H}:p.mozRequestFullScreen?w={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+H}:p.webkitRequestFullscreen?w={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+H}:p.msRequestFullscreen&&(w={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),w&&(w.enter=function(){if(g=O.closeOnScroll,O.closeOnScroll=!1,this.enterK==="webkitRequestFullscreen")o.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT);else return o.template[this.enterK]()},w.exit=function(){return O.closeOnScroll=g,document[this.exitK]()},w.isFullscreen=function(){return document[this.elementK]}),w}};return f})}(Vt)),Vt.exports}var yr;function yi(){return yr||(yr=1,function(s){var l=pe&&pe.__assign||function(){return l=Object.assign||function(E){for(var M,D=1,y=arguments.length;D<y;D++){M=arguments[D];for(var g in M)Object.prototype.hasOwnProperty.call(M,g)&&(E[g]=M[g])}return E},l.apply(this,arguments)},f=pe&&pe.__createBinding||(Object.create?function(E,M,D,y){y===void 0&&(y=D),Object.defineProperty(E,y,{enumerable:!0,get:function(){return M[D]}})}:function(E,M,D,y){y===void 0&&(y=D),E[y]=M[D]}),o=pe&&pe.__setModuleDefault||(Object.create?function(E,M){Object.defineProperty(E,"default",{enumerable:!0,value:M})}:function(E,M){E.default=M}),a=pe&&pe.__importStar||function(E){if(E&&E.__esModule)return E;var M={};if(E!=null)for(var D in E)D!=="default"&&Object.prototype.hasOwnProperty.call(E,D)&&f(M,E,D);return o(M,E),M},c=pe&&pe.__rest||function(E,M){var D={};for(var y in E)Object.prototype.hasOwnProperty.call(E,y)&&M.indexOf(y)<0&&(D[y]=E[y]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,y=Object.getOwnPropertySymbols(E);g<y.length;g++)M.indexOf(y[g])<0&&Object.prototype.propertyIsEnumerable.call(E,y[g])&&(D[y[g]]=E[y[g]]);return D},d=pe&&pe.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(s,"__esModule",{value:!0}),s.Gallery=void 0;var u=d(_i()),i=a(gt()),b=Ci(),C=Rr(),m=function(E){var M=E.children,D=E.options,y=E.id,g=E.onOpen,R=c(E,["children","options","id","onOpen"]),x=i.useRef();return i.default.createElement(b.CustomGallery,{layoutRef:x,ui:u.default,options:D,id:y,onOpen:g},M,i.default.createElement(b.DefaultLayout,l({},R,{ref:x})))};s.Gallery=m,s.Gallery.propTypes=l(l({},C.baseGalleryPropTypes),b.layoutPropTypes)}(pe)),pe}var ut={},gr;function gi(){return gr||(gr=1,function(s){var l=ut&&ut.__rest||function(u,i){var b={};for(var C in u)Object.prototype.hasOwnProperty.call(u,C)&&i.indexOf(C)<0&&(b[C]=u[C]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,C=Object.getOwnPropertySymbols(u);m<C.length;m++)i.indexOf(C[m])<0&&Object.prototype.propertyIsEnumerable.call(u,C[m])&&(b[C[m]]=u[C[m]]);return b},f=ut&&ut.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(s,"__esModule",{value:!0}),s.Item=void 0;var o=gt(),a=f(Qt()),c=Nn(),d=function(u){var i=u.children,b=l(u,["children"]),C=o.useRef(),m=o.useContext(c.Context),E=m.remove,M=m.set,D=m.handleClick,y=o.useCallback(function(){return D(C)},[]);return o.useEffect(function(){return M(C,b),function(){return E(C)}},Object.values(b)),i({ref:C,open:y})};s.Item=d,s.Item.propTypes={original:a.default.string,thumbnail:a.default.string,width:a.default.oneOfType([a.default.number,a.default.string]),height:a.default.oneOfType([a.default.number,a.default.string]),title:a.default.string,html:a.default.string,children:a.default.func.isRequired,id:a.default.oneOfType([a.default.number,a.default.string])}}(ut)),ut}var Tn={},br;function bi(){return br||(br=1,Object.defineProperty(Tn,"__esModule",{value:!0})),Tn}var st={},wr;function wi(){if(wr)return st;wr=1;var s=st&&st.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(st,"__esModule",{value:!0}),st.useGallery=void 0;var l=s(gt()),f=Nn(),o=function(){var a=l.default.useContext(f.Context).open;return{open:a}};return st.useGallery=o,st}var Cr;function Ci(){return Cr||(Cr=1,function(s){var l=rt&&rt.__createBinding||(Object.create?function(o,a,c,d){d===void 0&&(d=c),Object.defineProperty(o,d,{enumerable:!0,get:function(){return a[c]}})}:function(o,a,c,d){d===void 0&&(d=c),o[d]=a[c]}),f=rt&&rt.__exportStar||function(o,a){for(var c in o)c!=="default"&&!Object.prototype.hasOwnProperty.call(a,c)&&l(a,o,c)};Object.defineProperty(s,"__esModule",{value:!0}),f(fi(),s),f(vi(),s),f(yi(),s),f(gi(),s),f(bi(),s),f(wi(),s)}(rt)),rt}var In,Or;function Vi(){if(Or)return In;Or=1;var s="Expected a function",l=NaN,f="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,d=/^0o[0-7]+$/i,u=parseInt,i=typeof Wt=="object"&&Wt&&Wt.Object===Object&&Wt,b=typeof self=="object"&&self&&self.Object===Object&&self,C=i||b||Function("return this")(),m=Object.prototype,E=m.toString,M=Math.max,D=Math.min,y=function(){return C.Date.now()};function g(v,q,O){var L,k,I,oe,j,K,$=0,V=!1,W=!1,ae=!0;if(typeof v!="function")throw new TypeError(s);q=X(q)||0,R(O)&&(V=!!O.leading,W="maxWait"in O,I=W?M(X(O.maxWait)||0,q):I,ae="trailing"in O?!!O.trailing:ae);function G(U){var ue=L,ne=k;return L=k=void 0,$=U,oe=v.apply(ne,ue),oe}function z(U){return $=U,j=setTimeout(J,q),V?G(U):oe}function be(U){var ue=U-K,ne=U-$,we=q-ue;return W?D(we,I-ne):we}function Y(U){var ue=U-K,ne=U-$;return K===void 0||ue>=q||ue<0||W&&ne>=I}function J(){var U=y();if(Y(U))return de(U);j=setTimeout(J,be(U))}function de(U){return j=void 0,ae&&L?G(U):(L=k=void 0,oe)}function he(){j!==void 0&&clearTimeout(j),$=0,L=K=k=j=void 0}function ee(){return j===void 0?oe:de(y())}function te(){var U=y(),ue=Y(U);if(L=arguments,k=this,K=U,ue){if(j===void 0)return z(K);if(W)return j=setTimeout(J,q),G(K)}return j===void 0&&(j=setTimeout(J,q)),oe}return te.cancel=he,te.flush=ee,te}function R(v){var q=typeof v;return!!v&&(q=="object"||q=="function")}function x(v){return!!v&&typeof v=="object"}function Z(v){return typeof v=="symbol"||x(v)&&E.call(v)==f}function X(v){if(typeof v=="number")return v;if(Z(v))return l;if(R(v)){var q=typeof v.valueOf=="function"?v.valueOf():v;v=R(q)?q+"":q}if(typeof v!="string")return v===0?v:+v;v=v.replace(o,"");var O=c.test(v);return O||d.test(v)?u(v.slice(2),O?2:8):a.test(v)?l:+v}return In=g,In}var Ar=function(){if(typeof Map<"u")return Map;function s(l,f){var o=-1;return l.some(function(a,c){return a[0]===f?(o=c,!0):!1}),o}return function(){function l(){this.__entries__=[]}return Object.defineProperty(l.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),l.prototype.get=function(f){var o=s(this.__entries__,f),a=this.__entries__[o];return a&&a[1]},l.prototype.set=function(f,o){var a=s(this.__entries__,f);~a?this.__entries__[a][1]=o:this.__entries__.push([f,o])},l.prototype.delete=function(f){var o=this.__entries__,a=s(o,f);~a&&o.splice(a,1)},l.prototype.has=function(f){return!!~s(this.__entries__,f)},l.prototype.clear=function(){this.__entries__.splice(0)},l.prototype.forEach=function(f,o){o===void 0&&(o=null);for(var a=0,c=this.__entries__;a<c.length;a++){var d=c[a];f.call(o,d[1],d[0])}},l}()}(),Bn=typeof window<"u"&&typeof document<"u"&&window.document===document,Yt=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Oi=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Yt):function(s){return setTimeout(function(){return s(Date.now())},1e3/60)}}(),Ei=2;function xi(s,l){var f=!1,o=!1,a=0;function c(){f&&(f=!1,s()),o&&u()}function d(){Oi(c)}function u(){var i=Date.now();if(f){if(i-a<Ei)return;o=!0}else f=!0,o=!1,setTimeout(d,l);a=i}return u}var Ti=20,Ii=["top","right","bottom","left","width","height","size","weight"],Si=typeof MutationObserver<"u",Mi=function(){function s(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=xi(this.refresh.bind(this),Ti)}return s.prototype.addObserver=function(l){~this.observers_.indexOf(l)||this.observers_.push(l),this.connected_||this.connect_()},s.prototype.removeObserver=function(l){var f=this.observers_,o=f.indexOf(l);~o&&f.splice(o,1),!f.length&&this.connected_&&this.disconnect_()},s.prototype.refresh=function(){var l=this.updateObservers_();l&&this.refresh()},s.prototype.updateObservers_=function(){var l=this.observers_.filter(function(f){return f.gatherActive(),f.hasActive()});return l.forEach(function(f){return f.broadcastActive()}),l.length>0},s.prototype.connect_=function(){!Bn||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Si?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},s.prototype.disconnect_=function(){!Bn||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},s.prototype.onTransitionEnd_=function(l){var f=l.propertyName,o=f===void 0?"":f,a=Ii.some(function(c){return!!~o.indexOf(c)});a&&this.refresh()},s.getInstance=function(){return this.instance_||(this.instance_=new s),this.instance_},s.instance_=null,s}(),Fr=function(s,l){for(var f=0,o=Object.keys(l);f<o.length;f++){var a=o[f];Object.defineProperty(s,a,{value:l[a],enumerable:!1,writable:!1,configurable:!0})}return s},yt=function(s){var l=s&&s.ownerDocument&&s.ownerDocument.defaultView;return l||Yt},Br=$t(0,0,0,0);function Xt(s){return parseFloat(s)||0}function Er(s){for(var l=[],f=1;f<arguments.length;f++)l[f-1]=arguments[f];return l.reduce(function(o,a){var c=s["border-"+a+"-width"];return o+Xt(c)},0)}function Di(s){for(var l=["top","right","bottom","left"],f={},o=0,a=l;o<a.length;o++){var c=a[o],d=s["padding-"+c];f[c]=Xt(d)}return f}function Pi(s){var l=s.getBBox();return $t(0,0,l.width,l.height)}function Ri(s){var l=s.clientWidth,f=s.clientHeight;if(!l&&!f)return Br;var o=yt(s).getComputedStyle(s),a=Di(o),c=a.left+a.right,d=a.top+a.bottom,u=Xt(o.width),i=Xt(o.height);if(o.boxSizing==="border-box"&&(Math.round(u+c)!==l&&(u-=Er(o,"left","right")+c),Math.round(i+d)!==f&&(i-=Er(o,"top","bottom")+d)),!Fi(s)){var b=Math.round(u+c)-l,C=Math.round(i+d)-f;Math.abs(b)!==1&&(u-=b),Math.abs(C)!==1&&(i-=C)}return $t(a.left,a.top,u,i)}var Ai=function(){return typeof SVGGraphicsElement<"u"?function(s){return s instanceof yt(s).SVGGraphicsElement}:function(s){return s instanceof yt(s).SVGElement&&typeof s.getBBox=="function"}}();function Fi(s){return s===yt(s).document.documentElement}function Bi(s){return Bn?Ai(s)?Pi(s):Ri(s):Br}function Ni(s){var l=s.x,f=s.y,o=s.width,a=s.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,d=Object.create(c.prototype);return Fr(d,{x:l,y:f,width:o,height:a,top:f,right:l+o,bottom:a+f,left:l}),d}function $t(s,l,f,o){return{x:s,y:l,width:f,height:o}}var ji=function(){function s(l){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$t(0,0,0,0),this.target=l}return s.prototype.isActive=function(){var l=Bi(this.target);return this.contentRect_=l,l.width!==this.broadcastWidth||l.height!==this.broadcastHeight},s.prototype.broadcastRect=function(){var l=this.contentRect_;return this.broadcastWidth=l.width,this.broadcastHeight=l.height,l},s}(),qi=function(){function s(l,f){var o=Ni(f);Fr(this,{target:l,contentRect:o})}return s}(),Li=function(){function s(l,f,o){if(this.activeObservations_=[],this.observations_=new Ar,typeof l!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=l,this.controller_=f,this.callbackCtx_=o}return s.prototype.observe=function(l){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(l instanceof yt(l).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(l)||(f.set(l,new ji(l)),this.controller_.addObserver(this),this.controller_.refresh())}},s.prototype.unobserve=function(l){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(l instanceof yt(l).Element))throw new TypeError('parameter 1 is not of type "Element".');var f=this.observations_;f.has(l)&&(f.delete(l),f.size||this.controller_.removeObserver(this))}},s.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},s.prototype.gatherActive=function(){var l=this;this.clearActive(),this.observations_.forEach(function(f){f.isActive()&&l.activeObservations_.push(f)})},s.prototype.broadcastActive=function(){if(this.hasActive()){var l=this.callbackCtx_,f=this.activeObservations_.map(function(o){return new qi(o.target,o.broadcastRect())});this.callback_.call(l,f,l),this.clearActive()}},s.prototype.clearActive=function(){this.activeObservations_.splice(0)},s.prototype.hasActive=function(){return this.activeObservations_.length>0},s}(),Nr=typeof WeakMap<"u"?new WeakMap:new Ar,jr=function(){function s(l){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var f=Mi.getInstance(),o=new Li(l,f,this);Nr.set(this,o)}return s}();["observe","unobserve","disconnect"].forEach(function(s){jr.prototype[s]=function(){var l;return(l=Nr.get(this))[s].apply(l,arguments)}});var Zi=function(){return typeof Yt.ResizeObserver<"u"?Yt.ResizeObserver:jr}();const Ui=Object.freeze(Object.defineProperty({__proto__:null,default:Zi},Symbol.toStringTag,{value:"Module"})),Yi=li(Ui);var Sn,xr;function zi(){if(xr)return Sn;xr=1;var s=function(l){return l.replace(/[A-Z]/g,function(f){return"-"+f.toLowerCase()}).toLowerCase()};return Sn=s,Sn}var Mn,Tr;function Xi(){if(Tr)return Mn;Tr=1;var s=zi(),l=function(a){var c=/[height|width]$/;return c.test(a)},f=function(a){var c="",d=Object.keys(a);return d.forEach(function(u,i){var b=a[u];u=s(u),l(u)&&typeof b=="number"&&(b=b+"px"),b===!0?c+=u:b===!1?c+="not "+u:c+="("+u+": "+b+")",i<d.length-1&&(c+=" and ")}),c},o=function(a){var c="";return typeof a=="string"?a:a instanceof Array?(a.forEach(function(d,u){c+=f(d),u<a.length-1&&(c+=", ")}),c):f(a)};return Mn=o,Mn}var Dn,Ir;function Hi(){if(Ir)return Dn;Ir=1;function s(l){this.options=l,!l.deferSetup&&this.setup()}return s.prototype={constructor:s,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(l){return this.options===l||this.options.match===l}},Dn=s,Dn}var Pn,Sr;function qr(){if(Sr)return Pn;Sr=1;function s(o,a){var c=0,d=o.length,u;for(c;c<d&&(u=a(o[c],c),u!==!1);c++);}function l(o){return Object.prototype.toString.apply(o)==="[object Array]"}function f(o){return typeof o=="function"}return Pn={isFunction:f,isArray:l,each:s},Pn}var Rn,Mr;function ki(){if(Mr)return Rn;Mr=1;var s=Hi(),l=qr().each;function f(o,a){this.query=o,this.isUnconditional=a,this.handlers=[],this.mql=window.matchMedia(o);var c=this;this.listener=function(d){c.mql=d.currentTarget||d,c.assess()},this.mql.addListener(this.listener)}return f.prototype={constuctor:f,addHandler:function(o){var a=new s(o);this.handlers.push(a),this.matches()&&a.on()},removeHandler:function(o){var a=this.handlers;l(a,function(c,d){if(c.equals(o))return c.destroy(),!a.splice(d,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){l(this.handlers,function(o){o.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var o=this.matches()?"on":"off";l(this.handlers,function(a){a[o]()})}},Rn=f,Rn}var An,Dr;function Gi(){if(Dr)return An;Dr=1;var s=ki(),l=qr(),f=l.each,o=l.isFunction,a=l.isArray;function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return c.prototype={constructor:c,register:function(d,u,i){var b=this.queries,C=i&&this.browserIsIncapable;return b[d]||(b[d]=new s(d,C)),o(u)&&(u={match:u}),a(u)||(u=[u]),f(u,function(m){o(m)&&(m={match:m}),b[d].addHandler(m)}),this},unregister:function(d,u){var i=this.queries[d];return i&&(u?i.removeHandler(u):(i.clear(),delete this.queries[d])),this}},An=c,An}var Fn,Pr;function Qi(){if(Pr)return Fn;Pr=1;var s=Gi();return Fn=new s,Fn}export{Ci as a,Vi as b,Yi as c,Qi as d,Xi as e,Ki as r}; //# sourceMappingURL=media-ncVNjMCy.js.map