text: /***
   * Photoswiper v3.0.4
   * Built for ES modules
   * Copyright 2016-2019 Evan Yamanishi
   * Licensed under MIT
   ***/
  function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t){return e(t={exports:{}},t.exports),t.exports}var a,l=r(function(t,n){
  /*! PhotoSwipe - v4.1.3 - 2019-01-08
    * http://photoswipe.com
    * Copyright (c) 2019 Dmitry Semenov; */
  t.exports=function(t,n,o,i){var r={features:null,bind:function(e,t,n,o){var i=(o?"remove":"add")+"EventListener";t=t.split(" ");for(var r=0;r<t.length;r++)t[r]&&e[i](t[r],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 void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){r.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){r.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(r.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var o=e.length;o--;)if(e[o][n]===t)return o;return-1},extend:function(e,t,n){for(var o in t)if(t.hasOwnProperty(o)){if(n&&e.hasOwnProperty(o))continue;e[o]=t[o]}},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(r.features)return r.features;var e=r.createEl(),t=e.style,n="",o={};if(o.oldIE=document.all&&!document.addEventListener,o.touch="ontouchstart"in window,window.requestAnimationFrame&&(o.raf=window.requestAnimationFrame,o.caf=window.cancelAnimationFrame),o.pointerEvent=!!window.PointerEvent||navigator.msPointerEnabled,!o.pointerEvent){var i=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var a=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);a&&a.length>0&&(a=parseInt(a[1],10))>=1&&a<8&&(o.isOldIOSPhone=!0)}var l=i.match(/Android\s([0-9\.]*)/),s=l?l[1]:0;(s=parseFloat(s))>=1&&(s<4.4&&(o.isOldAndroid=!0),o.androidVersion=s),o.isMobileOpera=/opera mini|opera mobi/i.test(i)}for(var u,c,d=["transform","perspective","animationName"],f=["","webkit","Moz","ms","O"],p=0;p<4;p++){n=f[p];for(var m=0;m<3;m++)u=d[m],c=n+(n?u.charAt(0).toUpperCase()+u.slice(1):u),!o[u]&&c in t&&(o[u]=c);n&&!o.raf&&(n=n.toLowerCase(),o.raf=window[n+"RequestAnimationFrame"],o.raf&&(o.caf=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]))}if(!o.raf){var h=0;o.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),o=window.setTimeout(function(){e(t+n)},n);return h=t+n,o},o.caf=function(e){clearTimeout(e)}}return o.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r.features=o,o}};r.detectFeatures(),r.features.oldIE&&(r.bind=function(t,n,o,i){n=n.split(" ");for(var r,a=(i?"detach":"attach")+"Event",l=function(){o.handleEvent.call(o)},s=0;s<n.length;s++)if(r=n[s])if("object"===e(o)&&o.handleEvent){if(i){if(!o["oldIE"+r])return!1}else o["oldIE"+r]=l;t[a]("on"+r,o["oldIE"+r])}else t[a]("on"+r,o)});var a=this,l={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"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};r.extend(l,i);var s,u,c,d,f,p,m,h,y,v,g,b,w,x,_,I,E,T,C,O,S,k,A,D,F,M,L,R,j,P,z,Z,N,U,K,B,W,H,Y,q,G,Q,V,X,$,J,ee,te,ne,oe,ie,re,ae,le,se,ue,ce={x:0,y:0},de={x:0,y:0},fe={x:0,y:0},pe={},me=0,he={},ye={x:0,y:0},ve=0,ge=!0,be=[],we={},xe=!1,_e=function(e,t){r.extend(a,t.publicMethods),be.push(e)},Ie=function(e){var t=Nt();return e>t-1?e-t:e<0?t+e:e},Ee={},Te=function(e,t){return Ee[e]||(Ee[e]=[]),Ee[e].push(t)},Ce=function(e){var t=Ee[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var o=0;o<t.length;o++)t[o].apply(a,n)}},Oe=function(){return(new Date).getTime()},Se=function(e){le=e,a.bg.style.opacity=e*l.bgOpacity},ke=function(e,t,n,o,i){(!xe||i&&i!==a.currItem)&&(o/=i?i.fitRatio:a.currItem.fitRatio),e[k]=b+t+"px, "+n+"px"+w+" scale("+o+")"},Ae=function(e){ne&&(e&&(v>a.currItem.fitRatio?xe||(Qt(a.currItem,!1,!0),xe=!0):xe&&(Qt(a.currItem),xe=!1)),ke(ne,fe.x,fe.y,v))},De=function(e){e.container&&ke(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Fe=function(e,t){t[k]=b+e+"px, 0px"+w},Me=function(e,t){if(!l.loop&&t){var n=d+(ye.x*me-e)/ye.x,o=Math.round(e-dt.x);(n<0&&o>0||n>=Nt()-1&&o<0)&&(e=dt.x+o*l.mainScrollEndFriction)}dt.x=e,Fe(e,f)},Le=function(e,t){var n=ft[e]-he[e];return de[e]+ce[e]+n-n*(t/g)},Re=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},je=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Pe=null,ze=function e(){Pe&&(r.unbind(document,"mousemove",e),r.addClass(t,"pswp--has_mouse"),l.mouseUsed=!0,Ce("mouseUsed")),Pe=setTimeout(function(){Pe=null},100)},Ze=function(e,t){var n=Ht(a.currItem,pe,e);return t&&(te=n),n},Ne=function(e){return e||(e=a.currItem),e.initialZoomLevel},Ue=function(e){return e||(e=a.currItem),e.w>0?l.maxSpreadZoom:1},Ke=function(e,t,n,o){return o===a.currItem.initialZoomLevel?(n[e]=a.currItem.initialPosition[e],!0):(n[e]=Le(e,o),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},Be=function(e){var t="";l.escKey&&27===e.keyCode?t="close":l.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,a[t]()))},We=function(e){e&&(Q||G||oe||W)&&(e.preventDefault(),e.stopPropagation())},He=function(){a.setScrollOffset(0,r.getScrollY())},Ye={},qe=0,Ge=function(e){Ye[e]&&(Ye[e].raf&&M(Ye[e].raf),qe--,delete Ye[e])},Qe=function(e){Ye[e]&&Ge(e),Ye[e]||(qe++,Ye[e]={})},Ve=function(){for(var e in Ye)Ye.hasOwnProperty(e)&&Ge(e)},Xe=function(e,t,n,o,i,r,a){var l,s=Oe();Qe(e),function u(){if(Ye[e]){if((l=Oe()-s)>=o)return Ge(e),r(n),void(a&&a());r((n-t)*i(l/o)+t),Ye[e].raf=F(u)}}()},$e={shout:Ce,listen:Te,viewportSize:pe,options:l,isMainScrollAnimating:function(){return oe},getZoomLevel:function(){return v},getCurrentIndex:function(){return d},isDragging:function(){return Y},isZooming:function(){return J},setScrollOffset:function(e,t){he.x=e,P=he.y=t,Ce("updateScrollOffset",he)},applyZoomPan:function(e,t,n,o){fe.x=t,fe.y=n,v=e,Ae(o)},init:function(){if(!s&&!u){var e;a.framework=r,a.template=t,a.bg=r.getChildByClass(t,"pswp__bg"),L=t.className,s=!0,z=r.detectFeatures(),F=z.raf,M=z.caf,k=z.transform,j=z.oldIE,a.scrollWrap=r.getChildByClass(t,"pswp__scroll-wrap"),a.container=r.getChildByClass(a.scrollWrap,"pswp__container"),f=a.container.style,a.itemHolders=I=[{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}],I[0].el.style.display=I[2].el.style.display="none",function(){if(k){var e=z.perspective&&!D;return b="translate"+(e?"3d(":"("),void(w=z.perspective?", 0px)":")")}k="left",r.addClass(t,"pswp--ie"),Fe=function(e,t){t.left=e+"px"},De=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,o=t*e.w,i=t*e.h;n.width=o+"px",n.height=i+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},Ae=function(){if(ne){var e=ne,t=a.currItem,n=t.fitRatio>1?1:t.fitRatio,o=n*t.w,i=n*t.h;e.width=o+"px",e.height=i+"px",e.left=fe.x+"px",e.top=fe.y+"px"}}}(),y={resize:a.updateSize,orientationchange:function(){clearTimeout(Z),Z=setTimeout(function(){pe.x!==a.scrollWrap.clientWidth&&a.updateSize()},500)},scroll:He,keydown:Be,click:We};var o=z.isOldIOSPhone||z.isOldAndroid||z.isMobileOpera;for(z.animationName&&z.transform&&!o||(l.showAnimationDuration=l.hideAnimationDuration=0),e=0;e<be.length;e++)a["init"+be[e]]();if(n){var i=a.ui=new n(a,r);i.init()}Ce("firstUpdate"),d=d||l.index||0,(isNaN(d)||d<0||d>=Nt())&&(d=0),a.currItem=Zt(d),(z.isOldIOSPhone||z.isOldAndroid)&&(ge=!1),t.setAttribute("aria-hidden","false"),l.modal&&(ge?t.style.position="fixed":(t.style.position="absolute",t.style.top=r.getScrollY()+"px")),void 0===P&&(Ce("initialLayout"),P=R=r.getScrollY());var c="pswp--open ";for(l.mainClass&&(c+=l.mainClass+" "),l.showHideOpacity&&(c+="pswp--animate_opacity "),c+=D?"pswp--touch":"pswp--notouch",c+=z.animationName?" pswp--css_animation":"",c+=z.svg?" pswp--svg":"",r.addClass(t,c),a.updateSize(),p=-1,ve=null,e=0;e<3;e++)Fe((e+p)*ye.x,I[e].el.style);j||r.bind(a.scrollWrap,h,a),Te("initialZoomInEnd",function(){a.setContent(I[0],d-1),a.setContent(I[2],d+1),I[0].el.style.display=I[2].el.style.display="block",l.focus&&t.focus(),r.bind(document,"keydown",a),z.transform&&r.bind(a.scrollWrap,"click",a),l.mouseUsed||r.bind(document,"mousemove",ze),r.bind(window,"resize scroll orientationchange",a),Ce("bindEvents")}),a.setContent(I[1],d),a.updateCurrItem(),Ce("afterInit"),ge||(x=setInterval(function(){qe||Y||J||v!==a.currItem.initialZoomLevel||a.updateSize()},1e3)),r.addClass(t,"pswp--visible")}},close:function(){s&&(s=!1,u=!0,Ce("close"),r.unbind(window,"resize scroll orientationchange",a),r.unbind(window,"scroll",y.scroll),r.unbind(document,"keydown",a),r.unbind(document,"mousemove",ze),z.transform&&r.unbind(a.scrollWrap,"click",a),Y&&r.unbind(window,m,a),clearTimeout(Z),Ce("unbindEvents"),Ut(a.currItem,null,!0,a.destroy))},destroy:function(){Ce("destroy"),Rt&&clearTimeout(Rt),t.setAttribute("aria-hidden","true"),t.className=L,x&&clearInterval(x),r.unbind(a.scrollWrap,h,a),r.unbind(window,"scroll",a),ht(),Ve(),Ee=null},panTo:function(e,t,n){n||(e>te.min.x?e=te.min.x:e<te.max.x&&(e=te.max.x),t>te.min.y?t=te.min.y:t<te.max.y&&(t=te.max.y)),fe.x=e,fe.y=t,Ae()},handleEvent:function(e){e=e||window.event,y[e.type]&&y[e.type](e)},goTo:function(e){var t=(e=Ie(e))-d;ve=t,d=e,a.currItem=Zt(d),me-=t,Me(ye.x*me),Ve(),oe=!1,a.updateCurrItem()},next:function(){a.goTo(d+1)},prev:function(){a.goTo(d-1)},updateCurrZoomItem:function(e){if(e&&Ce("beforeChange",0),I[1].el.children.length){var t=I[1].el.children[0];ne=r.hasClass(t,"pswp__zoom-wrap")?t.style:null}else ne=null;te=a.currItem.bounds,g=v=a.currItem.initialZoomLevel,fe.x=te.center.x,fe.y=te.center.y,e&&Ce("afterChange")},invalidateCurrItems:function(){_=!0;for(var e=0;e<3;e++)I[e].item&&(I[e].item.needsUpdate=!0)},updateCurrItem:function(e){if(0!==ve){var t,n=Math.abs(ve);if(!(e&&n<2)){a.currItem=Zt(d),xe=!1,Ce("beforeChange",ve),n>=3&&(p+=ve+(ve>0?-3:3),n=3);for(var o=0;o<n;o++)ve>0?(t=I.shift(),I[2]=t,Fe((++p+2)*ye.x,t.el.style),a.setContent(t,d-n+o+1+1)):(t=I.pop(),I.unshift(t),Fe(--p*ye.x,t.el.style),a.setContent(t,d+n-o-1-1));if(ne&&1===Math.abs(ve)){var i=Zt(E);i.initialZoomLevel!==v&&(Ht(i,pe),Qt(i),De(i))}ve=0,a.updateCurrZoomItem(),E=d,Ce("afterChange")}}},updateSize:function(e){if(!ge&&l.modal){var n=r.getScrollY();if(P!==n&&(t.style.top=n+"px",P=n),!e&&we.x===window.innerWidth&&we.y===window.innerHeight)return;we.x=window.innerWidth,we.y=window.innerHeight,t.style.height=we.y+"px"}if(pe.x=a.scrollWrap.clientWidth,pe.y=a.scrollWrap.clientHeight,He(),ye.x=pe.x+Math.round(pe.x*l.spacing),ye.y=pe.y,Me(ye.x*me),Ce("beforeResize"),void 0!==p){for(var o,i,s,u=0;u<3;u++)o=I[u],Fe((u+p)*ye.x,o.el.style),s=d+u-1,l.loop&&Nt()>2&&(s=Ie(s)),(i=Zt(s))&&(_||i.needsUpdate||!i.bounds)?(a.cleanSlide(i),a.setContent(o,s),1===u&&(a.currItem=i,a.updateCurrZoomItem(!0)),i.needsUpdate=!1):-1===o.index&&s>=0&&a.setContent(o,s),i&&i.container&&(Ht(i,pe),Qt(i),De(i));_=!1}g=v=a.currItem.initialZoomLevel,(te=a.currItem.bounds)&&(fe.x=te.center.x,fe.y=te.center.y,Ae(!0)),Ce("resize")},zoomTo:function(e,t,n,o,i){t&&(g=v,ft.x=Math.abs(t.x)-fe.x,ft.y=Math.abs(t.y)-fe.y,Re(de,fe));var a=Ze(e,!1),l={};Ke("x",a,l,e),Ke("y",a,l,e);var s=v,u={x:fe.x,y:fe.y};je(l);var c=function(t){1===t?(v=e,fe.x=l.x,fe.y=l.y):(v=(e-s)*t+s,fe.x=(l.x-u.x)*t+u.x,fe.y=(l.y-u.y)*t+u.y),i&&i(t),Ae(1===t)};n?Xe("customZoomTo",0,1,n,o||r.easing.sine.inOut,c):c(1)}},Je={},et={},tt={},nt={},ot={},it=[],rt={},at=[],lt={},st=0,ut={x:0,y:0},ct=0,dt={x:0,y:0},ft={x:0,y:0},pt={x:0,y:0},mt=function(e,t){return lt.x=Math.abs(e.x-t.x),lt.y=Math.abs(e.y-t.y),Math.sqrt(lt.x*lt.x+lt.y*lt.y)},ht=function(){V&&(M(V),V=null)},yt={},vt=function(e,t){return yt.prevent=!function e(t,n){return!(!t||t===document)&&!(t.getAttribute("class")&&t.getAttribute("class").indexOf("pswp__scroll-wrap")>-1)&&(n(t)?t:e(t.parentNode,n))}(e.target,l.isClickableElement),Ce("preventDragEvent",e,t,yt),yt.prevent},gt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},bt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},wt=function(){var e=fe.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(pe.y/2))},xt={},_t={},It=[],Et=function(e){for(;It.length>0;)It.pop();return A?(ue=0,it.forEach(function(e){0===ue?It[0]=e:1===ue&&(It[1]=e),ue++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(It[0]=gt(e.touches[0],xt),e.touches.length>1&&(It[1]=gt(e.touches[1],_t))):(xt.x=e.pageX,xt.y=e.pageY,xt.id="",It[0]=xt),It},Tt=function(e,t){var n,o,i,r,s=fe[e]+t[e],u=t[e]>0,c=dt.x+t.x,d=dt.x-rt.x;if(n=s>te.min[e]||s<te.max[e]?l.panEndFriction:1,s=fe[e]+t[e]*n,(l.allowPanToNext||v===a.currItem.initialZoomLevel)&&(ne?"h"!==ie||"x"!==e||G||(u?(s>te.min[e]&&(n=l.panEndFriction,te.min[e],o=te.min[e]-de[e]),(o<=0||d<0)&&Nt()>1?(r=c,d<0&&c>rt.x&&(r=rt.x)):te.min.x!==te.max.x&&(i=s)):(s<te.max[e]&&(n=l.panEndFriction,te.max[e],o=de[e]-te.max[e]),(o<=0||d>0)&&Nt()>1?(r=c,d>0&&c<rt.x&&(r=rt.x)):te.min.x!==te.max.x&&(i=s))):r=c,"x"===e))return void 0!==r&&(Me(r,!0),X=r!==rt.x),te.min.x!==te.max.x&&(void 0!==i?fe.x=i:X||(fe.x+=t.x*n)),void 0!==r;oe||X||v>a.currItem.fitRatio&&(fe[e]+=t[e]*n)},Ct=function(e){if(!("mousedown"===e.type&&e.button>0))if(zt)e.preventDefault();else if(!H||"mousedown"!==e.type){if(vt(e,!0)&&e.preventDefault(),Ce("pointerDown"),A){var t=r.arraySearch(it,e.pointerId,"id");t<0&&(t=it.length),it[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Et(e),o=n.length;$=null,Ve(),Y&&1!==o||(Y=re=!0,r.bind(window,m,a),B=se=ae=W=X=Q=q=G=!1,ie=null,Ce("firstTouchStart",n),Re(de,fe),ce.x=ce.y=0,Re(nt,n[0]),Re(ot,nt),rt.x=ye.x*me,at=[{x:nt.x,y:nt.y}],U=N=Oe(),Ze(v,!0),ht(),function e(){Y&&(V=F(e),St())}()),!J&&o>1&&!oe&&!X&&(g=v,G=!1,J=q=!0,ce.y=ce.x=0,Re(de,fe),Re(Je,n[0]),Re(et,n[1]),bt(Je,et,pt),ft.x=Math.abs(pt.x)-fe.x,ft.y=Math.abs(pt.y)-fe.y,ee=mt(Je,et))}},Ot=function(e){if(e.preventDefault(),A){var t=r.arraySearch(it,e.pointerId,"id");if(t>-1){var n=it[t];n.x=e.pageX,n.y=e.pageY}}if(Y){var o=Et(e);if(ie||Q||J)$=o;else if(dt.x!==ye.x*me)ie="h";else{var i=Math.abs(o[0].x-nt.x)-Math.abs(o[0].y-nt.y);Math.abs(i)>=10&&(ie=i>0?"h":"v",$=o)}}},St=function(){if($){var e=$.length;if(0!==e)if(Re(Je,$[0]),tt.x=Je.x-nt.x,tt.y=Je.y-nt.y,J&&e>1){if(nt.x=Je.x,nt.y=Je.y,!tt.x&&!tt.y&&function(e,t){return e.x===t.x&&e.y===t.y}($[1],et))return;Re(et,$[1]),G||(G=!0,Ce("zoomGestureStarted"));var t=mt(Je,et),n=Mt(t);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(se=!0);var o=1,i=Ne(),r=Ue();if(n<i)if(l.pinchToClose&&!se&&g<=a.currItem.initialZoomLevel){var s=i-n,u=1-s/(i/1.2);Se(u),Ce("onPinchClose",u),ae=!0}else(o=(i-n)/i)>1&&(o=1),n=i-o*(i/3);else n>r&&((o=(n-r)/(6*i))>1&&(o=1),n=r+o*i);o<0&&(o=0),bt(Je,et,ut),ce.x+=ut.x-pt.x,ce.y+=ut.y-pt.y,Re(pt,ut),fe.x=Le("x",n),fe.y=Le("y",n),B=n>v,v=n,Ae()}else{if(!ie)return;if(re&&(re=!1,Math.abs(tt.x)>=10&&(tt.x-=$[0].x-ot.x),Math.abs(tt.y)>=10&&(tt.y-=$[0].y-ot.y)),nt.x=Je.x,nt.y=Je.y,0===tt.x&&0===tt.y)return;if("v"===ie&&l.closeOnVerticalDrag&&"fit"===l.scaleMode&&v===a.currItem.initialZoomLevel){ce.y+=tt.y,fe.y+=tt.y;var c=wt();return W=!0,Ce("onVerticalDrag",c),Se(c),void Ae()}!function(e,t,n){if(e-U>50){var o=at.length>2?at.shift():{};o.x=t,o.y=n,at.push(o),U=e}}(Oe(),Je.x,Je.y),Q=!0,te=a.currItem.bounds;var d=Tt("x",tt);d||(Tt("y",tt),je(fe),Ae())}}},kt=function(e){if(z.isOldAndroid){if(H&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(H),H=setTimeout(function(){H=0},600))}var t;if(Ce("pointerUp"),vt(e,!1)&&e.preventDefault(),A){var n=r.arraySearch(it,e.pointerId,"id");n>-1&&(t=it.splice(n,1)[0],navigator.msPointerEnabled?(t.type={4:"mouse",2:"touch",3:"pen"}[e.pointerType],t.type||(t.type=e.pointerType||"mouse")):t.type=e.pointerType||"mouse")}var o,i=Et(e),s=i.length;if("mouseup"===e.type&&(s=0),2===s)return $=null,!0;1===s&&Re(ot,i[0]),0!==s||ie||oe||(t||("mouseup"===e.type?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"})),Ce("touchRelease",e,t));var u=-1;if(0===s&&(Y=!1,r.unbind(window,m,a),ht(),J?u=0:-1!==ct&&(u=Oe()-ct)),ct=1===s?Oe():-1,o=-1!==u&&u<150?"zoom":"swipe",J&&s<2&&(J=!1,1===s&&(o="zoomPointerUp"),Ce("zoomGestureEnded")),$=null,Q||G||oe||W)if(Ve(),K||(K=At()),K.calculateSwipeSpeed("x"),W){var c=wt();if(c<l.verticalDragRange)a.close();else{var d=fe.y,f=le;Xe("verticalDrag",0,1,300,r.easing.cubic.out,function(e){fe.y=(a.currItem.initialPosition.y-d)*e+d,Se((1-f)*e+f),Ae()}),Ce("onVerticalDrag",1)}}else{if((X||oe)&&0===s){var p=Ft(o,K);if(p)return;o="zoomPointerUp"}oe||("swipe"===o?!X&&v>a.currItem.fitRatio&&Dt(K):Lt())}},At=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(o){at.length>1?(e=Oe()-U+50,t=at[at.length-2][o]):(e=Oe()-N,t=ot[o]),n.lastFlickOffset[o]=nt[o]-t,n.lastFlickDist[o]=Math.abs(n.lastFlickOffset[o]),n.lastFlickDist[o]>20?n.lastFlickSpeed[o]=n.lastFlickOffset[o]/e:n.lastFlickSpeed[o]=0,Math.abs(n.lastFlickSpeed[o])<.1&&(n.lastFlickSpeed[o]=0),n.slowDownRatio[o]=.95,n.slowDownRatioReverse[o]=1-n.slowDownRatio[o],n.speedDecelerationRatio[o]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(fe[e]>te.min[e]?n.backAnimDestination[e]=te.min[e]:fe[e]<te.max[e]&&(n.backAnimDestination[e]=te.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,Xe("bounceZoomPan"+e,fe[e],n.backAnimDestination[e],t||300,r.easing.sine.out,function(t){fe[e]=t,Ae()}))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,fe[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Ye.zoomPan&&(Ye.zoomPan.raf=F(n.panAnimLoop),n.now=Oe(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Ae(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return fe.x=Math.round(fe.x),fe.y=Math.round(fe.y),Ae(),void Ge("zoomPan")}};return n},Dt=function(e){if(e.calculateSwipeSpeed("y"),te=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;Qe("zoomPan"),e.lastNow=Oe(),e.panAnimLoop()},Ft=function(e,t){var n,o,i;if(oe||(st=d),"swipe"===e){var s=nt.x-ot.x,u=t.lastFlickDist.x<10;s>30&&(u||t.lastFlickOffset.x>20)?o=-1:s<-30&&(u||t.lastFlickOffset.x<-20)&&(o=1)}o&&((d+=o)<0?(d=l.loop?Nt()-1:0,i=!0):d>=Nt()&&(d=l.loop?0:Nt()-1,i=!0),i&&!l.loop||(ve+=o,me-=o,n=!0));var c,f=ye.x*me,p=Math.abs(f-dt.x);return n||f>dt.x==t.lastFlickSpeed.x>0?(c=Math.abs(t.lastFlickSpeed.x)>0?p/Math.abs(t.lastFlickSpeed.x):333,c=Math.min(c,400),c=Math.max(c,250)):c=333,st===d&&(n=!1),oe=!0,Ce("mainScrollAnimStart"),Xe("mainScroll",dt.x,f,c,r.easing.cubic.out,Me,function(){Ve(),oe=!1,st=-1,(n||st!==d)&&a.updateCurrItem(),Ce("mainScrollAnimComplete")}),n&&a.updateCurrItem(!0),n},Mt=function(e){return 1/ee*e*g},Lt=function(){var e=v,t=Ne(),n=Ue();v<t?e=t:v>n&&(e=n);var o,i=le;return ae&&!B&&!se&&v<t?(a.close(),!0):(ae&&(o=function(e){Se((1-i)*e+i)}),a.zoomTo(e,0,200,r.easing.cubic.out,o),!0)};_e("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,o,i){T=e+t,C=e+n,O=e+o,S=i?e+i:""};(A=z.pointerEvent)&&z.touch&&(z.touch=!1),A?navigator.msPointerEnabled?e("MSPointer","Down","Move","Up","Cancel"):e("pointer","down","move","up","cancel"):z.touch?(e("touch","start","move","end","cancel"),D=!0):e("mouse","down","move","up"),m=C+" "+O+" "+S,h=T,A&&!D&&(D=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=D,y[T]=Ct,y[C]=Ot,y[O]=kt,S&&(y[S]=y[O]),z.touch&&(h+=" mousedown",m+=" mousemove mouseup",y.mousedown=y[T],y.mousemove=y[C],y.mouseup=y[O]),D||(l.allowPanToNext=!1)}}});var Rt,jt,Pt,zt,Zt,Nt,Ut=function(e,n,o,i){var s;Rt&&clearTimeout(Rt),zt=!0,Pt=!0,e.initialLayout?(s=e.initialLayout,e.initialLayout=null):s=l.getThumbBoundsFn&&l.getThumbBoundsFn(d);var u,f,p=o?l.hideAnimationDuration:l.showAnimationDuration,m=function(){Ge("initialZoom"),o?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(Se(1),n&&(n.style.display="block"),r.addClass(t,"pswp--animated-in"),Ce("initialZoom"+(o?"OutEnd":"InEnd"))),i&&i(),zt=!1};if(!p||!s||void 0===s.x)return Ce("initialZoom"+(o?"Out":"In")),v=e.initialZoomLevel,Re(fe,e.initialPosition),Ae(),t.style.opacity=o?0:1,Se(1),void(p?setTimeout(function(){m()},p):m());u=c,f=!a.currItem.src||a.currItem.loadError||l.showHideOpacity,e.miniImg&&(e.miniImg.style.webkitBackfaceVisibility="hidden"),o||(v=s.w/e.w,fe.x=s.x,fe.y=s.y-R,a[f?"template":"bg"].style.opacity=.001,Ae()),Qe("initialZoom"),o&&!u&&r.removeClass(t,"pswp--animated-in"),f&&(o?r[(u?"remove":"add")+"Class"](t,"pswp--animate_opacity"):setTimeout(function(){r.addClass(t,"pswp--animate_opacity")},30)),Rt=setTimeout(function(){if(Ce("initialZoom"+(o?"Out":"In")),o){var n=s.w/e.w,i={x:fe.x,y:fe.y},a=v,l=le,c=function(e){1===e?(v=n,fe.x=s.x,fe.y=s.y-P):(v=(n-a)*e+a,fe.x=(s.x-i.x)*e+i.x,fe.y=(s.y-P-i.y)*e+i.y),Ae(),f?t.style.opacity=1-e:Se(l-e*l)};u?Xe("initialZoom",0,1,p,r.easing.cubic.out,c,m):(c(1),Rt=setTimeout(m,p+20))}else v=e.initialZoomLevel,Re(fe,e.initialPosition),Ae(),Se(1),f?t.style.opacity=1:Se(1),Rt=setTimeout(m,p+20)},o?25:90)},Kt={},Bt=[],Wt={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 jt.length}},Ht=function(e,t,n){if(e.src&&!e.loadError){var o=!n;if(o&&(e.vGap||(e.vGap={top:0,bottom:0}),Ce("parseVerticalMargin",e)),Kt.x=t.x,Kt.y=t.y-e.vGap.top-e.vGap.bottom,o){var i=Kt.x/e.w,r=Kt.y/e.h;e.fitRatio=i<r?i:r;var a=l.scaleMode;"orig"===a?n=1:"fit"===a&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}})}if(!n)return;return function(e,t,n){var o=e.bounds;o.center.x=Math.round((Kt.x-t)/2),o.center.y=Math.round((Kt.y-n)/2)+e.vGap.top,o.max.x=t>Kt.x?Math.round(Kt.x-t):o.center.x,o.max.y=n>Kt.y?Math.round(Kt.y-n)+e.vGap.top:o.center.y,o.min.x=t>Kt.x?0:o.center.x,o.min.y=n>Kt.y?e.vGap.top:o.center.y}(e,e.w*n,e.h*n),o&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds={center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}},e.initialPosition=e.bounds.center,e.bounds},Yt=function(e,t,n,o,i,r){t.loadError||o&&(t.imageAppended=!0,Qt(t,o,t===a.currItem&&xe),n.appendChild(o),r&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},qt=function(e){e.loading=!0,e.loaded=!1;var t=e.img=r.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},Gt=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=l.errorMsg.replace("%url%",e.src),!0},Qt=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var o=n?e.w:Math.round(e.w*e.fitRatio),i=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.width=o+"px",e.placeholder.style.height=i+"px"),t.style.width=o+"px",t.style.height=i+"px"}},Vt=function(){if(Bt.length){for(var e,t=0;t<Bt.length;t++)(e=Bt[t]).holder.index===e.index&&Yt(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Bt=[]}};_e("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ie(e);var t=Zt(e);t&&(!t.loaded&&!t.loading||_)&&(Ce("gettingData",e,t),t.src&&qt(t))},initController:function(){r.extend(l,Wt,!0),a.items=jt=o,Zt=a.getItemAt,(Nt=l.getNumItemsFn)()<3&&(l.loop=!1),Te("beforeChange",function(e){var t,n=l.preload,o=null===e||e>=0,i=Math.min(n[0],Nt()),r=Math.min(n[1],Nt());for(t=1;t<=(o?r:i);t++)a.lazyLoadItem(d+t);for(t=1;t<=(o?i:r);t++)a.lazyLoadItem(d-t)}),Te("initialLayout",function(){a.currItem.initialLayout=l.getThumbBoundsFn&&l.getThumbBoundsFn(d)}),Te("mainScrollAnimComplete",Vt),Te("initialZoomInEnd",Vt),Te("destroy",function(){for(var e,t=0;t<jt.length;t++)(e=jt[t]).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);Bt=null})},getItemAt:function(e){return e>=0&&void 0!==jt[e]&&jt[e]},allowProgressiveImg:function(){return l.forceProgressiveLoading||!D||l.mouseUsed||screen.width>1200},setContent:function(e,t){l.loop&&(t=Ie(t));var n=a.getItemAt(e.index);n&&(n.container=null);var o,i=a.getItemAt(t);if(i){Ce("gettingData",t,i),e.index=t,e.item=i;var u=i.container=r.createEl("pswp__zoom-wrap");if(!i.src&&i.html&&(i.html.tagName?u.appendChild(i.html):u.innerHTML=i.html),Gt(i),Ht(i,pe),!i.src||i.loadError||i.loaded)i.src&&!i.loadError&&((o=r.createEl("pswp__img","img")).style.opacity=1,o.src=i.src,Qt(i,o),Yt(0,i,u,o));else{if(i.loadComplete=function(n){if(s){if(e&&e.index===t){if(Gt(n,!0))return n.loadComplete=n.img=null,Ht(n,pe),De(n),void(e.index===d&&a.updateCurrZoomItem());n.imageAppended?!zt&&n.placeholder&&(n.placeholder.style.display="none",n.placeholder=null):z.transform&&(oe||zt)?Bt.push({item:n,baseDiv:u,img:n.img,index:t,holder:e,clearPlaceholder:!0}):Yt(0,n,u,n.img,0,!0)}n.loadComplete=null,n.img=null,Ce("imageLoadComplete",t,n)}},r.features.transform){var c="pswp__img pswp__img--placeholder";c+=i.msrc?"":" pswp__img--placeholder--blank";var f=r.createEl(c,i.msrc?"img":"");i.msrc&&(f.src=i.msrc),Qt(i,f),u.appendChild(f),i.placeholder=f}i.loading||qt(i),a.allowProgressiveImg()&&(!Pt&&z.transform?Bt.push({item:i,baseDiv:u,img:i.img,index:t,holder:e}):Yt(0,i,u,i.img,0,!0))}Pt||t!==d?De(i):(ne=u.style,Ut(i,o||i.img)),e.el.innerHTML="",e.el.appendChild(u)}else e.el.innerHTML=""},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var Xt,$t,Jt={},en=function(e,t,n){var o=document.createEvent("CustomEvent"),i={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};o.initCustomEvent("pswpTap",!0,!0,i),e.target.dispatchEvent(o)};_e("Tap",{publicMethods:{initTap:function(){Te("firstTouchStart",a.onTapStart),Te("touchRelease",a.onTapRelease),Te("destroy",function(){Jt={},Xt=null})},onTapStart:function(e){e.length>1&&(clearTimeout(Xt),Xt=null)},onTapRelease:function(e,t){var n,o;if(t&&!Q&&!q&&!qe){var i=t;if(Xt&&(clearTimeout(Xt),Xt=null,n=i,o=Jt,Math.abs(n.x-o.x)<25&&Math.abs(n.y-o.y)<25))return void Ce("doubleTap",i);if("mouse"===t.type)return void en(e,t,"mouse");var a=e.target.tagName.toUpperCase();if("BUTTON"===a||r.hasClass(e.target,"pswp__single-tap"))return void en(e,t);Re(Jt,i),Xt=setTimeout(function(){en(e,t),Xt=null},300)}}}}),_e("DesktopZoom",{publicMethods:{initDesktopZoom:function(){j||(D?Te("mouseUsed",function(){a.setupDesktopZoom()}):a.setupDesktopZoom(!0))},setupDesktopZoom:function(e){$t={};var n="wheel mousewheel DOMMouseScroll";Te("bindEvents",function(){r.bind(t,n,a.handleMouseWheel)}),Te("unbindEvents",function(){$t&&r.unbind(t,n,a.handleMouseWheel)}),a.mouseZoomedIn=!1;var o,i=function(){a.mouseZoomedIn&&(r.removeClass(t,"pswp--zoomed-in"),a.mouseZoomedIn=!1),v<1?r.addClass(t,"pswp--zoom-allowed"):r.removeClass(t,"pswp--zoom-allowed"),l()},l=function(){o&&(r.removeClass(t,"pswp--dragging"),o=!1)};Te("resize",i),Te("afterChange",i),Te("pointerDown",function(){a.mouseZoomedIn&&(o=!0,r.addClass(t,"pswp--dragging"))}),Te("pointerUp",l),e||i()},handleMouseWheel:function(e){if(v<=a.currItem.fitRatio)return l.modal&&(!l.closeOnScroll||qe||Y?e.preventDefault():k&&Math.abs(e.deltaY)>2&&(c=!0,a.close())),!0;if(e.stopPropagation(),$t.x=0,"deltaX"in e)1===e.deltaMode?($t.x=18*e.deltaX,$t.y=18*e.deltaY):($t.x=e.deltaX,$t.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&($t.x=-.16*e.wheelDeltaX),e.wheelDeltaY?$t.y=-.16*e.wheelDeltaY:$t.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;$t.y=e.detail}Ze(v,!0);var t=fe.x-$t.x,n=fe.y-$t.y;(l.modal||t<=te.min.x&&t>=te.max.x&&n<=te.min.y&&n>=te.max.y)&&e.preventDefault(),a.panTo(t,n)},toggleDesktopZoom:function(e){e=e||{x:pe.x/2+he.x,y:pe.y/2+he.y};var n=l.getDoubleTapZoom(!0,a.currItem),o=v===n;a.mouseZoomedIn=!o,a.zoomTo(o?a.currItem.initialZoomLevel:n,e,333),r[(o?"remove":"add")+"Class"](t,"pswp--zoomed-in")}}});var tn,nn,on,rn,an,ln,sn,un,cn,dn,fn,pn,mn={history:!0,galleryUID:1},hn=function(){return fn.hash.substring(1)},yn=function(){tn&&clearTimeout(tn),on&&clearTimeout(on)},vn=function(){var e=hn(),t={};if(e.length<5)return t;var n,o=e.split("&");for(n=0;n<o.length;n++)if(o[n]){var i=o[n].split("=");i.length<2||(t[i[0]]=i[1])}if(l.galleryPIDs){var r=t.pid;for(t.pid=0,n=0;n<jt.length;n++)if(jt[n].pid===r){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},gn=function e(){if(on&&clearTimeout(on),qe||Y)on=setTimeout(e,500);else{rn?clearTimeout(nn):rn=!0;var t=d+1,n=Zt(d);n.hasOwnProperty("pid")&&(t=n.pid);var o=sn+"&gid="+l.galleryUID+"&pid="+t;un||-1===fn.hash.indexOf(o)&&(dn=!0);var i=fn.href.split("#")[0]+"#"+o;pn?"#"+o!==window.location.hash&&history[un?"replaceState":"pushState"]("",document.title,i):un?fn.replace(i):fn.hash=o,un=!0,nn=setTimeout(function(){rn=!1},60)}};_e("History",{publicMethods:{initHistory:function(){if(r.extend(l,mn,!0),l.history){fn=window.location,dn=!1,cn=!1,un=!1,sn=hn(),pn="pushState"in history,sn.indexOf("gid=")>-1&&(sn=(sn=sn.split("&gid=")[0]).split("?gid=")[0]),Te("afterChange",a.updateURL),Te("unbindEvents",function(){r.unbind(window,"hashchange",a.onHashChange)});var e=function(){ln=!0,cn||(dn?history.back():sn?fn.hash=sn:pn?history.pushState("",document.title,fn.pathname+fn.search):fn.hash=""),yn()};Te("unbindEvents",function(){c&&e()}),Te("destroy",function(){ln||e()}),Te("firstUpdate",function(){d=vn().pid});var t=sn.indexOf("pid=");t>-1&&"&"===(sn=sn.substring(0,t)).slice(-1)&&(sn=sn.slice(0,-1)),setTimeout(function(){s&&r.bind(window,"hashchange",a.onHashChange)},40)}},onHashChange:function(){if(hn()===sn)return cn=!0,void a.close();rn||(an=!0,a.goTo(vn().pid),an=!1)},updateURL:function(){yn(),an||(un?tn=setTimeout(gn,800):gn())}}}),r.extend(a,$e)}}),s=r(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i="function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?function(t){return e(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)};var r,a="tabtrap",l={ESCAPE:27,TAB:9},s={disableOnEscape:!1,tabbableElements:['a[href]:not([tabindex="-1"])','map[name] area[href]:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','iframe:not([tabindex="-1"])','object:not([tabindex="-1"])','embed:not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])','[contentEditable=true]:not([tabindex="-1"])']},u={disableOnEscape:"boolean",tabbableElements:"object"},c={KEYDOWN_DISABLE:"keydown.disable.tabtrap",KEYDOWN_TAB:"keydown.tab.tabtrap"},d=void 0!==window.jQuery,f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=this._getConfig(t,n),this.element=this._assertElement(this.config.element),this.enabled=!0,this.tabbable=this._getTabbable(),this._createEventListener(),this.config.disableOnEscape&&this._setEscapeEvent()}return o(e,[{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1}},{key:"toggle",value:function(){this.enabled=!this.enabled}},{key:"_getConfig",value:function(e,t){var n={};return"object"===(void 0===e?"undefined":i(e))&&void 0===e.nodeType?n=e:n.element=e,Object.assign({},this.constructor.Default,n)}},{key:"_assertElement",value:function(e){return 1===e.nodeType?e:"string"==typeof e?document.querySelector(e):null}},{key:"_getTabbable",value:function(){return this.element.querySelectorAll(this.config.tabbableElements.join(","))}},{key:"_getKeyCode",value:function(e){return e.which||e.keyCode||0}},{key:"_createEventListener",value:function(){var e=this;d?(jQuery(this.element).off(c.KEYDOWN_TAB),jQuery(this.element).on(c.KEYDOWN_TAB,function(t){return e._manageFocus(t)})):this.element.addEventListener("keydown",function(t){return e._manageFocus(t)})}},{key:"_manageFocus",value:function(e){if(this._getKeyCode(e)===l.TAB&&this.enabled){var t=Array.from(this.tabbable).indexOf(e.target),n={outside:t<0,wrapForward:t===this.tabbable.length-1&&!e.shiftKey,wrapBackward:0===t&&e.shiftKey};(n.outside||n.wrapForward)&&(e.preventDefault(),this.tabbable[0].focus()),n.wrapBackward&&(e.preventDefault(),this.tabbable[this.tabbable.length-1].focus())}}},{key:"_setEscapeEvent",value:function(){var e=this;this.element.addEventListener(c.KEYDOWN_DISABLE,function(t){e._getKeyCode(t)===l.ESCAPE&&e.disable()})}}],[{key:"_jQueryInterface",value:function(t){return this.each(function(){var n=jQuery(this).data("tabtrap"),o="object"===(void 0===t?"undefined":i(t))?t:null;if((n||!/disable/.test(t))&&(n||(n=new e(this,o),jQuery(this).data("tabtrap",n)),"string"==typeof t)){if(void 0===n[t])throw new Error('No method named "'+t+'"');n[t]()}})}},{key:"trapAll",value:function(t,n){var o=function e(t){switch(void 0===t?"undefined":i(t)){case"string":return document.querySelectorAll(t);case"object":return 1===t.nodeType?t:e(t.selector);default:throw new Error("Must provide a selector or element")}}(t),r="object"===(void 0===n?"undefined":i(n))?n:{};Array.from(o).forEach(function(t){r.element=t,new e(r)})}},{key:"NAME",get:function(){return a}},{key:"VERSION",get:function(){return"1.2.6"}},{key:"DATA_KEY",get:function(){return"tabtrap"}},{key:"KEYCODE",get:function(){return l}},{key:"Default",get:function(){return s}},{key:"DefaultType",get:function(){return u}},{key:"Event",get:function(){return c}},{key:"jQueryAvailable",get:function(){return d}}]),e}();d&&(r=jQuery.fn[a],jQuery.fn[a]=f._jQueryInterface,jQuery.fn[a].Constructor=f,jQuery.fn[a].noConflict=function(){return jQuery.fn[a]=r,f._jQueryInterface}),n.default=f}),u=(a=s)&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a,c=r(function(e,t){
  /*! PhotoSwipe Default UI - 4.1.3 - 2019-01-08
    * http://photoswipe.com
    * Copyright (c) 2019 Dmitry Semenov; */
  e.exports=function(e,t){var n,o,i,r,a,l,s,u,c,d,f,p,m,h,y,v,g,b,w=this,x=!1,_=!0,I=!0,E={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.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 e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / ",fitControlsWidth:1200},T=function(e){if(v)return!0;e=e||window.event,y.timeToIdle&&y.mouseUsed&&!c&&L();for(var n,o,i=e.target||e.srcElement,r=i.getAttribute("class")||"",a=0;a<z.length;a++)(n=z[a]).onTap&&r.indexOf("pswp__"+n.name)>-1&&(n.onTap(),o=!0);if(o){e.stopPropagation&&e.stopPropagation(),v=!0;var l=t.features.isOldAndroid?600:30;setTimeout(function(){v=!1},l)}},C=function(e,n,o){t[(o?"add":"remove")+"Class"](e,"pswp__"+n)},O=function(){var e=1===y.getNumItemsFn();e!==h&&(C(o,"ui--one-slide",e),h=e)},S=function(){C(s,"share-modal--hidden",I)},k=function(){return(I=!I)?(t.removeClass(s,"pswp__share-modal--fade-in"),setTimeout(function(){I&&S()},300)):(S(),setTimeout(function(){I||t.addClass(s,"pswp__share-modal--fade-in")},30)),I||D(),!1},A=function(t){var n=(t=t||window.event).target||t.srcElement;return e.shout("shareLinkClick",t,n),!(!n.href||!n.hasAttribute("download")&&(window.open(n.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)),I||k(),1))},D=function(){for(var e,t,n,o,i,r="",a=0;a<y.shareButtons.length;a++)e=y.shareButtons[a],n=y.getImageURLForShare(e),o=y.getPageURLForShare(e),i=y.getTextForShare(e),t=e.url.replace("{{url}}",encodeURIComponent(o)).replace("{{image_url}}",encodeURIComponent(n)).replace("{{raw_image_url}}",n).replace("{{text}}",encodeURIComponent(i)),r+='<a href="'+t+'" target="_blank" class="pswp__share--'+e.id+'"'+(e.download?"download":"")+">"+e.label+"</a>",y.parseShareButtonOut&&(r=y.parseShareButtonOut(e,r));s.children[0].innerHTML=r,s.children[0].onclick=A},F=function(e){for(var n=0;n<y.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+y.closeElClasses[n]))return!0},M=0,L=function(){clearTimeout(b),M=0,c&&w.setIdle(!1)},R=function(e){var t=(e=e||window.event).relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(b),b=setTimeout(function(){w.setIdle(!0)},y.timeToIdleOutside))},j=function(e){p!==e&&(C(f,"preloader--active",!e),p=e)},P=function(n){var a=n.vGap;if(!e.likelyTouchDevice||y.mouseUsed||screen.width>y.fitControlsWidth){var l=y.barsSize;if(y.captionEl&&"auto"===l.bottom)if(r||((r=t.createEl("pswp__caption pswp__caption--fake")).appendChild(t.createEl("pswp__caption__center")),o.insertBefore(r,i),t.addClass(o,"pswp__ui--fit")),y.addCaptionHTMLFn(n,r,!0)){var s=r.clientHeight;a.bottom=parseInt(s,10)||44}else a.bottom=l.top;else a.bottom="auto"===l.bottom?0:l.bottom;a.top=l.top}else a.top=a.bottom=0},z=[{name:"caption",option:"captionEl",onInit:function(e){i=e}},{name:"share-modal",option:"shareEl",onInit:function(e){s=e},onTap:function(){k()}},{name:"button--share",option:"shareEl",onInit:function(e){l=e},onTap:function(){k()}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){a=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){f=e}}];w.init=function(){var a;t.extend(e.options,E,!0),y=e.options,o=t.getChildByClass(e.scrollWrap,"pswp__ui"),(d=e.listen)("onVerticalDrag",function(e){_&&e<.95?w.hideControls():!_&&e>=.95&&w.showControls()}),d("onPinchClose",function(e){_&&e<.9?(w.hideControls(),a=!0):a&&!_&&e>.9&&w.showControls()}),d("zoomGestureEnded",function(){(a=!1)&&!_&&w.showControls()}),d("beforeChange",w.update),d("doubleTap",function(t){var n=e.currItem.initialZoomLevel;e.getZoomLevel()!==n?e.zoomTo(n,t,333):e.zoomTo(y.getDoubleTapZoom(!1,e.currItem),t,333)}),d("preventDragEvent",function(e,t,n){var o=e.target||e.srcElement;o&&o.getAttribute("class")&&e.type.indexOf("mouse")>-1&&(o.getAttribute("class").indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)}),d("bindEvents",function(){t.bind(o,"pswpTap click",T),t.bind(e.scrollWrap,"pswpTap",w.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",w.onMouseOver)}),d("unbindEvents",function(){I||k(),g&&clearInterval(g),t.unbind(document,"mouseout",R),t.unbind(document,"mousemove",L),t.unbind(o,"pswpTap click",T),t.unbind(e.scrollWrap,"pswpTap",w.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",w.onMouseOver),n&&(t.unbind(document,n.eventK,w.updateFullscreen),n.isFullscreen()&&(y.hideAnimationDuration=0,n.exit()),n=null)}),d("destroy",function(){y.captionEl&&(r&&o.removeChild(r),t.removeClass(i,"pswp__caption--empty")),s&&(s.children[0].onclick=null),t.removeClass(o,"pswp__ui--over-close"),t.addClass(o,"pswp__ui--hidden"),w.setIdle(!1)}),y.showAnimationDuration||t.removeClass(o,"pswp__ui--hidden"),d("initialZoomIn",function(){y.showAnimationDuration&&t.removeClass(o,"pswp__ui--hidden")}),d("initialZoomOut",function(){t.addClass(o,"pswp__ui--hidden")}),d("parseVerticalMargin",P),function(){var e,n,i,r=function(o){if(o)for(var r=o.length,a=0;a<r;a++){e=o[a],n=e.className;for(var l=0;l<z.length;l++)i=z[l],n.indexOf("pswp__"+i.name)>-1&&(y[i.option]?(t.removeClass(e,"pswp__element--disabled"),i.onInit&&i.onInit(e)):t.addClass(e,"pswp__element--disabled"))}};r(o.children);var a=t.getChildByClass(o,"pswp__top-bar");a&&r(a.children)}(),y.shareEl&&l&&s&&(I=!0),O(),y.timeToIdle&&d("mouseUsed",function(){t.bind(document,"mousemove",L),t.bind(document,"mouseout",R),g=setInterval(function(){2==++M&&w.setIdle(!0)},y.timeToIdle/2)}),y.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=w.getFullscreenAPI()),n?(t.bind(document,n.eventK,w.updateFullscreen),w.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs")),y.preloaderEl&&(j(!0),d("beforeChange",function(){clearTimeout(m),m=setTimeout(function(){e.currItem&&e.currItem.loading?(!e.allowProgressiveImg()||e.currItem.img&&!e.currItem.img.naturalWidth)&&j(!1):j(!0)},y.loadingIndicatorDelay)}),d("imageLoadComplete",function(t,n){e.currItem===n&&j(!0)}))},w.setIdle=function(e){c=e,C(o,"ui--idle",e)},w.update=function(){_&&e.currItem?(w.updateIndexIndicator(),y.captionEl&&(y.addCaptionHTMLFn(e.currItem,i),C(i,"caption--empty",!e.currItem.title)),x=!0):x=!1,I||k(),O()},w.updateFullscreen=function(o){o&&setTimeout(function(){e.setScrollOffset(0,t.getScrollY())},50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},w.updateIndexIndicator=function(){y.counterEl&&(a.innerHTML=e.getCurrentIndex()+1+y.indexIndicatorSep+y.getNumItemsFn())},w.onGlobalTap=function(n){var o=(n=n||window.event).target||n.srcElement;if(!v)if(n.detail&&"mouse"===n.detail.pointerType){if(F(o))return void e.close();t.hasClass(o,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio?y.clickToCloseNonZoomable&&e.close():e.toggleDesktopZoom(n.detail.releasePoint))}else if(y.tapToToggleControls&&(_?w.hideControls():w.showControls()),y.tapToClose&&(t.hasClass(o,"pswp__img")||F(o)))return void e.close()},w.onMouseOver=function(e){var t=(e=e||window.event).target||e.srcElement;C(o,"ui--over-close",F(t))},w.hideControls=function(){t.addClass(o,"pswp__ui--hidden"),_=!1},w.showControls=function(){_=!0,x||w.update(),t.removeClass(o,"pswp__ui--hidden")},w.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},w.getFullscreenAPI=function(){var t,n=document.documentElement,o="fullscreenchange";return n.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:o}:n.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+o}:n.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+o}:n.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){if(u=y.closeOnScroll,y.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return e.template[this.enterK]();e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return y.closeOnScroll=u,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}}),d=r(function(t,n){
  /**
     * Lodash (Custom Build) <https://lodash.com/>
     * Build: `lodash modularize exports="npm" -o ./`
     * Copyright JS Foundation and other contributors <https://js.foundation/>
     * Released under MIT license <https://lodash.com/license>
     * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
     * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
     */
  var o=200,r="__lodash_hash_undefined__",a=800,l=16,s=9007199254740991,u="[object Arguments]",c="[object AsyncFunction]",d="[object Function]",f="[object GeneratorFunction]",p="[object Null]",m="[object Object]",h="[object Proxy]",y="[object Undefined]",v=/^\[object .+?Constructor\]$/,g=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[u]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[d]=b["[object Map]"]=b["[object Number]"]=b[m]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var w="object"==e(i)&&i&&i.Object===Object&&i,x="object"==("undefined"==typeof self?"undefined":e(self))&&self&&self.Object===Object&&self,_=w||x||Function("return this")(),I=n&&!n.nodeType&&n,E=I&&t&&!t.nodeType&&t,T=E&&E.exports===I,C=T&&w.process,O=function(){try{return C&&C.binding&&C.binding("util")}catch(e){}}(),S=O&&O.isTypedArray;function k(e,t){return"__proto__"==t?void 0:e[t]}var A,D,F,M=Array.prototype,L=Function.prototype,R=Object.prototype,j=_["__core-js_shared__"],P=L.toString,z=R.hasOwnProperty,Z=(A=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",N=R.toString,U=P.call(Object),K=RegExp("^"+P.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=T?_.Buffer:void 0,W=_.Symbol,H=_.Uint8Array,Y=B?B.allocUnsafe:void 0,q=(D=Object.getPrototypeOf,F=Object,function(e){return D(F(e))}),G=Object.create,Q=R.propertyIsEnumerable,V=M.splice,X=W?W.toStringTag:void 0,$=function(){try{var e=Ie(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),J=B?B.isBuffer:void 0,ee=Math.max,te=Date.now,ne=Ie(_,"Map"),oe=Ie(Object,"create"),ie=function(){function e(){}return function(t){if(!Le(t))return{};if(G)return G(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ae(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function se(e){var t=this.__data__=new ae(e);this.size=t.size}function ue(e,t){var n=ke(e),o=!n&&Se(e),i=!n&&!o&&De(e),r=!n&&!o&&!i&&je(e),a=n||o||i||r,l=a?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],s=l.length;for(var u in e)!t&&!z.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||r&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ee(u,s))||l.push(u);return l}function ce(e,t,n){(void 0===n||Oe(e[t],n))&&(void 0!==n||t in e)||pe(e,t,n)}function de(e,t,n){var o=e[t];z.call(e,t)&&Oe(o,n)&&(void 0!==n||t in e)||pe(e,t,n)}function fe(e,t){for(var n=e.length;n--;)if(Oe(e[n][0],t))return n;return-1}function pe(e,t,n){"__proto__"==t&&$?$(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}re.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(oe){var n=t[e];return n===r?void 0:n}return z.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:z.call(t,e)},re.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=oe&&void 0===t?r:t,this},ae.prototype.clear=function(){this.__data__=[],this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=fe(t,e);return!(n<0||(n==t.length-1?t.pop():V.call(t,n,1),--this.size,0))},ae.prototype.get=function(e){var t=this.__data__,n=fe(t,e);return n<0?void 0:t[n][1]},ae.prototype.has=function(e){return fe(this.__data__,e)>-1},ae.prototype.set=function(e,t){var n=this.__data__,o=fe(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},le.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(ne||ae),string:new re}},le.prototype.delete=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t},le.prototype.get=function(e){return _e(this,e).get(e)},le.prototype.has=function(e){return _e(this,e).has(e)},le.prototype.set=function(e,t){var n=_e(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},se.prototype.clear=function(){this.__data__=new ae,this.size=0},se.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ae){var i=n.__data__;if(!ne||i.length<o-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new le(i)}return n.set(e,t),this.size=n.size,this};var me,he=function(e,t,n){for(var o=-1,i=Object(e),r=n(e),a=r.length;a--;){var l=r[me?a:++o];if(!1===t(i[l],l,i))break}return e};function ye(e){return null==e?void 0===e?y:p:X&&X in Object(e)?function(e){var t=z.call(e,X),n=e[X];try{e[X]=void 0;var o=!0}catch(e){}var i=N.call(e);o&&(t?e[X]=n:delete e[X]);return i}(e):function(e){return N.call(e)}(e)}function ve(e){return Re(e)&&ye(e)==u}function ge(e){return!(!Le(e)||(t=e,Z&&Z in t))&&(Fe(e)?K:v).test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function be(e){if(!Le(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Te(e),n=[];for(var o in e)("constructor"!=o||!t&&z.call(e,o))&&n.push(o);return n}function we(e,t,n,o,i){e!==t&&he(t,function(r,a){if(Le(r))i||(i=new se),function(e,t,n,o,i,r,a){var l=k(e,n),s=k(t,n),u=a.get(s);if(u)return void ce(e,n,u);var c=r?r(l,s,n+"",e,t,a):void 0,d=void 0===c;if(d){var f=ke(s),p=!f&&De(s),h=!f&&!p&&je(s);c=s,f||p||h?ke(l)?c=l:Re(w=l)&&Ae(w)?c=function(e,t){var n=-1,o=e.length;t||(t=Array(o));for(;++n<o;)t[n]=e[n];return t}(l):p?(d=!1,c=function(e,t){if(t)return e.slice();var n=e.length,o=Y?Y(n):new e.constructor(n);return e.copy(o),o}(s,!0)):h?(d=!1,y=s,v=!0?(g=y.buffer,b=new g.constructor(g.byteLength),new H(b).set(new H(g)),b):y.buffer,c=new y.constructor(v,y.byteOffset,y.length)):c=[]:function(e){if(!Re(e)||ye(e)!=m)return!1;var t=q(e);if(null===t)return!0;var n=z.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==U}(s)||Se(s)?(c=l,Se(l)?c=function(e){return function(e,t,n,o){var i=!n;n||(n={});var r=-1,a=t.length;for(;++r<a;){var l=t[r],s=o?o(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),i?pe(n,l,s):de(n,l,s)}return n}(e,Pe(e))}(l):(!Le(l)||o&&Fe(l))&&(c=function(e){return"function"!=typeof e.constructor||Te(e)?{}:ie(q(e))}(s))):d=!1}var y,v,g,b;var w;d&&(a.set(s,c),i(c,s,o,r,a),a.delete(s));ce(e,n,c)}(e,t,a,n,we,o,i);else{var l=o?o(k(e,a),r,a+"",e,t,i):void 0;void 0===l&&(l=r),ce(e,a,l)}},Pe)}function xe(e,t){return Ce(function(e,t,n){return t=ee(void 0===t?e.length-1:t,0),function(){for(var o=arguments,i=-1,r=ee(o.length-t,0),a=Array(r);++i<r;)a[i]=o[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=o[i];return l[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,l)}}(e,t,Ne),e+"")}function _e(t,n){var o,i,r=t.__data__;return("string"==(i=e(o=n))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==o:null===o)?r["string"==typeof n?"string":"hash"]:r.map}function Ie(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ge(n)?n:void 0}function Ee(t,n){var o=e(t);return!!(n=null==n?s:n)&&("number"==o||"symbol"!=o&&g.test(t))&&t>-1&&t%1==0&&t<n}function Te(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||R)}var Ce=function(e){var t=0,n=0;return function(){var o=te(),i=l-(o-n);if(n=o,i>0){if(++t>=a)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}($?function(e,t){return $(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ne);function Oe(e,t){return e===t||e!=e&&t!=t}var Se=ve(function(){return arguments}())?ve:function(e){return Re(e)&&z.call(e,"callee")&&!Q.call(e,"callee")},ke=Array.isArray;function Ae(e){return null!=e&&Me(e.length)&&!Fe(e)}var De=J||function(){return!1};function Fe(e){if(!Le(e))return!1;var t=ye(e);return t==d||t==f||t==c||t==h}function Me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function Le(t){var n=e(t);return null!=t&&("object"==n||"function"==n)}function Re(t){return null!=t&&"object"==e(t)}var je=S?function(e){return function(t){return e(t)}}(S):function(e){return Re(e)&&Me(e.length)&&!!b[ye(e)]};function Pe(e){return Ae(e)?ue(e,!0):be(e)}var ze,Ze=(ze=function(e,t,n){we(e,t,n)},xe(function(t,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(r=ze.length>3&&"function"==typeof r?(i--,r):void 0,a&&function(t,n,o){if(!Le(o))return!1;var i=e(n);return!!("number"==i?Ae(o)&&Ee(n,o.length):"string"==i&&n in o)&&Oe(o[n],t)}(n[0],n[1],a)&&(r=i<3?void 0:r,i=1),t=Object(t);++o<i;){var l=n[o];l&&ze(t,l,o,r)}return t}));function Ne(e){return e}t.exports=Ze}),f=function(e){return Array.from(e.querySelectorAll("a")).some(function(e){return 1===e.querySelectorAll("img").length})},p=function(e){return{GALLERY:".".concat(e),TITLE:".".concat(e,"__title"),FIGURE:".".concat(e,"__figure"),LINK:".".concat(e,"__link"),THUMB:".".concat(e,"__thumbnail"),CAPTION:".".concat(e,"__caption")}},m=function(e){if(window.location.hash){var t=window.location.hash.substr(1).split("&").map(function(e){return e.split("=")}).find(function(t){return t[0]===e});return t?t[1]:t}},h={onInit:function(){},onOpen:function(){},photoswipeUI:c,selectors:{PSWP:".pswp",GALLERY:"figure",TITLE:"figcaption",FIGURE:"figure",LINK:"a",THUMB:"img",CAPTION:"figcaption"}};export default(function(){function e(t,n){var o=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.galleryElement=t,n.structure&&!n.selectors&&(process.emitWarning('The "structure" option has been renamed "selectors".\n"structure" will be removed in a future update.',"DeprecationWarning"),n.selectors=n.structure),this.config=d({},e.Default,n),!f(this.galleryElement))throw new Error("Gallery elements must contain a linked image (a[href]>img[src]).\n",this.galleryElement);this.onClick=this.clickHandler.bind(this);var i=this.config.bemRoot?p(this.config.bemRoot):{};this.selectors=d({},this.config.selectors,i);var r=this.galleryElement.querySelectorAll(this.selectors.FIGURE);this.figures=r.length?r:[this.galleryElement],this.items=Array.from(this.figures).map(function(e){return o.parseFigure(e)}),this.figures.forEach(function(e){e.querySelector(o.selectors.LINK).addEventListener("click",o.onClick)}),this.enabled=!0,"function"==typeof this.config.onInit&&this.config.onInit.call(this,this.figures)}var i,r,a;return i=e,a=[{key:"Default",get:function(){return h}},{key:"pid",get:function(){var e=m("pid");return e?parseInt(e,10):void 0}},{key:"gid",get:function(){var e=m("gid");return e?parseInt(e,10):void 0}}],(r=[{key:"enable",value:function(){this.enabled=!0}},{key:"disable",value:function(){this.enabled=!1}},{key:"toggle",value:function(){this.enabled=!this.enabled}},{key:"open",value:function(e,t){var o=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},i=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(o).filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),i.forEach(function(t){n(e,t,o[t])})}return e}({index:e},this.pswpOptions);if(i&&(this.opts.showAnimationDuration=0),this.pswp=new l(this.pswpEl,this.config.photoswipeUI,this.items,r),this.enabled){this.pswp.init(),this.isOpen=!0,"function"==typeof this.config.onOpen&&this.config.onOpen.call(this,this.pswp),new u(this.pswpEl);var a=0;this.pswpEl.addEventListener("keydown",function(e){"Tab"===e.key&&(o.pswp.ui.setIdle(!1),clearTimeout(a),a=setTimeout(function(){o.pswp.ui.setIdle(!0)},o.pswp.options.timeToIdle))}),this.pswp.listen("close",function(){var e=o.pswp.getCurrentIndex();o.galleryElement.contains(t)||!t?o.figures[e].querySelector(o.selectors.LINK).focus():t.focus(),o.isOpen=!1})}return this.pswp}},{key:"initListeners",value:function(){var e=this;this.figures.forEach(function(t){t.querySelector(e.selectors.LINK).addEventListener("click",e.onClick)})}},{key:"clickHandler",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event;e.preventDefault();var t=e.target||e.srcElement,n=t.closest(this.selectors.FIGURE)||this.galleryElement,o=Array.from(this.figures).indexOf(n);this.open(o,t)}},{key:"parseFigure",value:function(e){var t=e.querySelector(this.selectors.LINK),n=e.querySelector(this.selectors.THUMB),o=e.querySelector(this.selectors.CAPTION),i=t.getAttribute("data-size").split("x"),r={el:e,h:parseInt(i[1],10),w:parseInt(i[0],10),src:t.getAttribute("href")||t.getAttribute("data-href")};return n&&(r.alt=n.getAttribute("alt"),r.msrc=n.getAttribute("src")),o&&o.innerHTML.length>0&&(r.title=o.innerHTML),r}},{key:"pswpEl",get:function(){return document.querySelector(this.selectors.PSWP)||new Error("Make sure to include the .pswp galleryElement on your page")}},{key:"pswpOptions",get:function(){var e=this,t=this.config,n=(t.bemRoot,t.onInit,t.onOpen,t.photoswipeUI,t.selectors,t.structure,o(t,["bemRoot","onInit","onOpen","photoswipeUI","selectors","structure"]));return d({},n,{galleryUID:this.config.galleryUID||this.galleryElement.getAttribute("data-pswp-uid"),getThumbBoundsFn:function(t){var n=e.items[t].el.querySelector(e.selectors.THUMB),o=window.pageYOffset||document.documentElement.scrollTop,i=n.getBoundingClientRect();return{x:i.left,y:i.top+o,w:i.width}}})}}])&&t(i.prototype,r),a&&t(i,a),e}());
  