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