!function(t,i){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("jquery")):t.jQueryBridget=i(t,t.jQuery)}(window,function(e,t){"use strict";function i(l,c,u){(u=u||t||e.jQuery)&&(c.prototype.option||(c.prototype.option=function(e){u.isPlainObject(e)&&(this.options=u.extend(!0,this.options,e))}),u.fn[l]=function(e){if("string"!=typeof e)return a=e,this.each(function(e,t){var i=u.data(t,l);i?(i.option(a),i._init()):(i=new c(t,a),u.data(t,l,i))}),this;var n,o,r,s,a,t=d.call(arguments,1);return o=t,s="$()."+l+'("'+(n=e)+'")',(e=this).each(function(e,t){var i=u.data(t,l);i?(t=i[n])&&"_"!=n.charAt(0)?(i=t.apply(i,o),r=void 0===r?i:r):p(s+" is not a valid method"):p(l+" not initialized. Cannot call methods, i.e. "+s)}),void 0!==r?r:e},n(u))}function n(e){!e||e&&e.bridget||(e.bridget=i)}var d=Array.prototype.slice,o=e.console,p=void 0===o?function(){}:function(e){o.error(e)};return n(t||e.jQuery),i}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},e=i[e]=i[e]||[];return-1==e.indexOf(t)&&e.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){e=this._events&&this._events[e];if(e&&e.length){t=e.indexOf(t);return-1!=t&&e.splice(t,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o=i)break;e=n,t=o}e!=this.scrollPageIndex&&(this.scrollPageIndex=e,this.setHistory(t.title,t.path))},i.debounceMethod(e,"onScrollHistory",150),n.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},n.setHistory=function(e,t){var i=this.options.history;i&&history[i+"State"]&&(history[i+"State"](null,e,t),this.options.historyTitle&&(document.title=e),this.dispatchEvent("history",null,[e,t]))},n.onUnload=function(){var e=this.scrollPageIndex;0!==e&&(e=this.scrollPages[e],e=t.pageYOffset-e.top+this.top,this.destroyHistory(),scrollTo(0,e))},n.onPageLoadHistory=function(e,t){this.setHistory(e.title,t)},e}),function(e,i){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],function(e,t){return i(0,e,t)}):"object"==typeof module&&module.exports?module.exports=i(0,require("./core"),require("fizzy-ui-utils")):i(0,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){function n(e,t){this.element=e,this.infScroll=t,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),t.on("request",this.disable.bind(this)),t.on("load",this.enable.bind(this)),t.on("error",this.hide.bind(this)),t.on("last",this.hide.bind(this))}return t.create.button=function(){var e=i.getQueryElement(this.options.button);e&&(this.button=new n(e,this))},t.destroy.button=function(){this.button&&this.button.destroy()},n.prototype.onClick=function(e){e.preventDefault(),this.infScroll.loadNextPage()},n.prototype.enable=function(){this.element.removeAttribute("disabled")},n.prototype.disable=function(){this.element.disabled="disabled"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},t.Button=n,t}),function(e,i){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],function(e,t){return i(0,e,t)}):"object"==typeof module&&module.exports?module.exports=i(0,require("./core"),require("fizzy-ui-utils")):i(0,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){function n(e){r(e,"none")}function o(e){r(e,"block")}function r(e,t){e&&(e.style.display=t)}var s=t.prototype;return t.create.status=function(){var e=i.getQueryElement(this.options.status);e&&(this.statusElement=e,this.statusEventElements={request:e.querySelector(".infinite-scroll-request"),error:e.querySelector(".infinite-scroll-error"),last:e.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},s.bindHideStatus=function(e){var t=this.options.append?"append":"load";this[e](t,this.hideAllStatus)},s.showRequestStatus=function(){this.showStatus("request")},s.showErrorStatus=function(){this.showStatus("error")},s.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},s.showStatus=function(e){o(this.statusElement),this.hideStatusEventElements(),o(this.statusEventElements[e])},s.hideAllStatus=function(){n(this.statusElement),this.hideStatusEventElements()},s.hideStatusEventElements=function(){for(var e in this.statusEventElements)n(this.statusEventElements[e])},t}),function(e){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}((window,function(e){return e})),function(t,i){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(e){return i(t,e)}):"object"==typeof module&&module.exports?module.exports=i(t,require("ev-emitter")):t.imagesLoaded=i(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function r(e,t){for(var i in t)e[i]=t[i];return e}function s(e,t,i){if(!(this instanceof s))return new s(e,t,i);var n,o=e;return(o="string"==typeof e?document.querySelectorAll(e):o)?(this.elements=(n=o,Array.isArray(n)?n:"object"==typeof n&&"number"==typeof n.length?c.call(n):[n]),this.options=r({},this.options),"function"==typeof t?i=t:r(this.options,t),i&&this.on("always",i),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(o||e))}function i(e){this.img=e}function n(e,t){this.url=e,this.element=t,this.img=new Image}var a=t.jQuery,l=t.console,c=Array.prototype.slice;(s.prototype=Object.create(e.prototype)).options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;nx
',t.appendChild(i.childNodes[1])),e&&r.extend(o,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];o.customSelector&&e.push(o.customSelector);var n=".fitvidsignore";o.ignore&&(n=n+", "+o.ignore);e=r(this).find(e.join(","));(e=(e=e.not("object object")).not(n)).each(function(){var e,t,i=r(this);0').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),i.removeAttr("height").removeAttr("width"))})})},r.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(e){var t=function(a,R){"use strict";if(R.getElementsByClassName){var H,F,N=R.documentElement,l=a.Date,n=a.HTMLPictureElement,c="addEventListener",q="getAttribute",u=a[c],B=a.setTimeout,d=a.requestAnimationFrame||B,p=a.requestIdleCallback,j=/^picture$/i,o=["load","error","lazyincluded","_lazyloaded"],i={},W=Array.prototype.forEach,U=function(e,t){return i[t]||(i[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),i[t].test(e[q]("class")||"")&&i[t]},Z=function(e,t){U(e,t)||e.setAttribute("class",(e[q]("class")||"").trim()+" "+t)},Y=function(e,t){var i;(i=U(e,t))&&e.setAttribute("class",(e[q]("class")||"").replace(i," "))},$=function(t,i,e){var n=e?c:"removeEventListener";e&&$(t,i),o.forEach(function(e){t[n](e,i)})},G=function(e,t,i,n,o){var r=R.createEvent("Event");return i||(i={}),i.instance=H,r.initEvent(t,!n,!o),r.detail=i,e.dispatchEvent(r),r},K=function(e,t){var i;!n&&(i=a.picturefill||F.pf)?(t&&t.src&&!e[q]("srcset")&&e.setAttribute("srcset",t.src),i({reevaluate:!0,elements:[e]})):t&&t.src&&(e.src=t.src)},Q=function(e,t){return(getComputedStyle(e,null)||{})[t]},s=function(e,t,i){for(i=i||e.offsetWidth;i49?function(){p(t,{timeout:r}),r!==F.ricTimeout&&(r=F.ricTimeout)}:X(function(){B(t)},!0);return function(e){var t;(e=!0===e)&&(r=33),i||(i=!0,t=o-(l.now()-n),t<0&&(t=0),e||t<9?s():B(s,t))}},ee=function(e){var t,i,n=99,o=function(){t=null,e()},r=function(){var e=l.now()-i;e0)&&"visible"!=Q(n,"overflow")&&(i=n.getBoundingClientRect(),o=w>i.left&&bi.top-1&&v500&&N.clientWidth>500?500:370:F.expand,u=c*F.expFactor,d=F.hFac,S=null,C2&&m>2&&!R.hidden?(C=u,k=0):C=m>1&&k>1&&T<6?c:I;t=s&&(v=i.top)<=y&&(w=i.right)>=s*d&&(b=i.left)<=g&&(x||w||b||v)&&(F.loadHidden||z(p[t]))&&(f&&T<3&&!a&&(m<3||k<4)||L(p[t],r))){if(O(p[t]),o=!0,T>9)break}else!o&&f&&!n&&T<4&&k<4&&m>2&&(h[0]||F.preloadAfterLoad)&&(h[0]||!a&&(x||w||b||v||"auto"!=p[t][q](F.sizesAttr)))&&(n=h[0]||p[t]);else O(p[t]);n&&!o&&O(n)}},i=J(e),P=function(e){Z(e.target,F.loadedClass),Y(e.target,F.loadingClass),$(e.target,M),G(e.target,"lazyloaded")},n=X(P),M=function(e){n({target:e.target})},D=function(t,i){try{t.contentWindow.location.replace(i)}catch(e){t.src=i}},_=function(e){var t,i=e[q](F.srcsetAttr);(t=F.customMedia[e[q]("data-media")||e[q]("media")])&&e.setAttribute("media",t),i&&e.setAttribute("srcset",i)},s=X(function(e,t,i,n,o){var r,s,a,l,c,u;(c=G(e,"lazybeforeunveil",t)).defaultPrevented||(n&&(i?Z(e,F.autosizesClass):e.setAttribute("sizes",n)),s=e[q](F.srcsetAttr),r=e[q](F.srcAttr),o&&(a=e.parentNode,l=a&&j.test(a.nodeName||"")),u=t.firesLoad||"src"in e&&(s||r||l),c={target:e},u&&($(e,A,!0),clearTimeout(d),d=B(A,2500),Z(e,F.loadingClass),$(e,M,!0)),l&&W.call(a.getElementsByTagName("source"),_),s?e.setAttribute("srcset",s):r&&!l&&(p.test(e.nodeName)?D(e,r):e.src=r),o&&(s||l)&&K(e,{src:r})),e._lazyRace&&delete e._lazyRace,Y(e,F.lazyClass),V(function(){(!u||e.complete&&e.naturalWidth>1)&&(u?A(c):T--,P(c))},!0)}),O=function(e){var t,i=r.test(e.nodeName),n=i&&(e[q](F.sizesAttr)||e[q]("sizes")),o="auto"==n;(!o&&f||!i||!e[q]("src")&&!e.srcset||e.complete||U(e,F.errorClass)||!U(e,F.lazyClass))&&(t=G(e,"lazyunveilread").detail,o&&te.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,T++,s(e,t,o,n,i))},o=function(){if(!f){if(l.now()-t<999)return void B(o,999);var e=ee(function(){F.loadMode=3,i()});f=!0,F.loadMode=3,i(),u("scroll",function(){3==F.loadMode&&(F.loadMode=2),e()},!0)}};return{_:function(){t=l.now(),H.elements=R.getElementsByClassName(F.lazyClass),h=R.getElementsByClassName(F.lazyClass+" "+F.preloadClass),u("scroll",i,!0),u("resize",i,!0),a.MutationObserver?new MutationObserver(i).observe(N,{childList:!0,subtree:!0,attributes:!0}):(N[c]("DOMNodeInserted",i,!0),N[c]("DOMAttrModified",i,!0),setInterval(i,999)),u("hashchange",i,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach(function(e){R[c](e,i,!0)}),/d$|^c/.test(R.readyState)?o():(u("load",o),R[c]("DOMContentLoaded",i),B(o,2e4)),H.elements.length?(e(),V._lsFlush()):i()},checkElems:i,unveil:O}}(),te=function(){var i,r=X(function(e,t,i,n){var o,r,s;if(e._lazysizesWidth=n,n+="px",e.setAttribute("sizes",n),j.test(t.nodeName||""))for(o=t.getElementsByTagName("source"),r=0,s=o.length;rT.fitControlsWidth?(t=T.barsSize,T.captionEl&&"auto"===t.bottom?(m||((m=a.createEl("pswp__caption pswp__caption--fake")).appendChild(a.createEl("pswp__caption__center")),h.insertBefore(m,f),a.addClass(h,"pswp__ui--fit")),T.addCaptionHTMLFn(e,m,!0)?(e=m.clientHeight,i.bottom=parseInt(e,10)||44):i.bottom=t.top):i.bottom="auto"===t.bottom?0:t.bottom,i.top=t.top):i.top=i.bottom=0}function d(){function e(e){if(e)for(var t=e.length,i=0;i"+e.label+"",T.parseShareButtonOut&&(o=T.parseShareButtonOut(e,o));v.children[0].innerHTML=o,v.children[0].onclick=s},R=0,H=function(){clearTimeout(z),R=0,w&&L.setIdle(!1)},F=function(e){E!==e&&(t(S,"preloader--active",!e),E=e)},N=[{name:"caption",option:"captionEl",onInit:function(e){f=e}},{name:"share-modal",option:"shareEl",onInit:function(e){v=e},onTap:function(){r()}},{name:"button--share",option:"shareEl",onInit:function(e){y=e},onTap:function(){r()}},{name:"button--zoom",option:"zoomEl",onTap:n.toggleDesktopZoom},{name:"counter",option:"counterEl",onInit:function(e){g=e}},{name:"button--close",option:"closeEl",onTap:n.close},{name:"button--arrow--left",option:"arrowEl",onTap:n.prev},{name:"button--arrow--right",option:"arrowEl",onTap:n.next},{name:"button--fs",option:"fullscreenEl",onTap:function(){p.isFullscreen()?p.exit():p.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){S=e}}];L.init=function(){var t;a.extend(n.options,_,!0),T=n.options,h=a.getChildByClass(n.scrollWrap,"pswp__ui"),(x=n.listen)("onVerticalDrag",function(e){M&&e<.95?L.hideControls():!M&&.95<=e&&L.showControls()}),x("onPinchClose",function(e){M&&e<.9?(L.hideControls(),t=!0):t&&!M&&.9=Yt()-1&&t<0)&&(e=wt.x+t*g.mainScrollEndFriction)),wt.x=e,nt(e,U)}function l(e,t){var i=xt[e]-$e[e];return We[e]+je[e]+i-t/Q*i}function b(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)}function c(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function p(e,t){return e=Vt(m.currItem,Ze,e),t&&(De=e),e}function w(e){return(e=e||m.currItem).initialZoomLevel}function x(e){return 0<(e=e||m.currItem).w?g.maxSpreadZoom:1}function S(e,t,i,n){return n===m.currItem.initialZoomLevel?(i[e]=m.currItem.initialPosition[e],!0):(i[e]=l(e,n),i[e]>t.min[e]?(i[e]=t.min[e],!0):i[e]De.min[e]||rDe.min[e]&&(c=g.panEndFriction,De.min[e],i=De.min[e]-We[e]),(i<=0||l<0)&&1ft.x&&(o=ft.x)):De.min.x!==De.max.x&&(n=r)):(rm.currItem.fitRatio&&(Ue[e]+=t[e]*c)):(void 0!==o&&(d(o,!0),ze=o!==ft.x),De.min.x!==De.max.x&&(void 0!==n?Ue.x=n:ze||(Ue.x+=t.x*c)),void 0!==o)}function H(e){var t;"mousedown"===e.type&&0m.currItem.fitRatio&&Mt(we))}}var q,B,j,W,U,Z,Y,$,G,K,Q,V,X,J,ee,te,ie,ne,oe,re,se,ae,le,ce,ue,de,pe,he,fe,me,ge,ye,ve,be,we,xe,Se,Ee,Ie,Ce,Te,ke,Ae,ze,Le,Pe,Me,De,_e,Oe,Re,He,Fe,Ne,qe,Be,je=n(),We=n(),Ue=n(),Ze={},Ye=0,$e={},Ge=n(),Ke=0,Qe=!0,Ve=[],Xe={},Je=!1,et={},tt=function(e){_e&&(e&&(K>m.currItem.fitRatio?Je||(Xt(m.currItem,!1,!0),Je=!0):Je&&(Xt(m.currItem),Je=!1)),a(_e,Ue.x,Ue.y,K))},it=function(e){e.container&&a(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},nt=function(e,t){t[ae]=V+e+"px, 0px"+X},ot=null,rt=function(){ot&&(f.unbind(document,"mousemove",rt),f.addClass(h,"pswp--has_mouse"),g.mouseUsed=!0,y("mouseUsed")),ot=setTimeout(function(){ot=null},100)},st={},at=0,t={shout:y,listen:r,viewportSize:Ze,options:g,isMainScrollAnimating:function(){return Oe},getZoomLevel:function(){return K},getCurrentIndex:function(){return W},isDragging:function(){return Ie},isZooming:function(){return Pe},setScrollOffset:function(e,t){$e.x=e,me=$e.y=t,y("updateScrollOffset",$e)},applyZoomPan:function(e,t,i,n){Ue.x=t,Ue.y=i,K=e,tt(n)},init:function(){if(!q&&!B){var e;m.framework=f,m.template=h,m.bg=f.getChildByClass(h,"pswp__bg"),pe=h.className,q=!0,ge=f.detectFeatures(),ue=ge.raf,de=ge.caf,ae=ge.transform,fe=ge.oldIE,m.scrollWrap=f.getChildByClass(h,"pswp__scroll-wrap"),m.container=f.getChildByClass(m.scrollWrap,"pswp__container"),U=m.container.style,m.itemHolders=te=[{el:m.container.children[0],wrap:0,index:-1},{el:m.container.children[1],wrap:0,index:-1},{el:m.container.children[2],wrap:0,index:-1}],te[0].el.style.display=te[2].el.style.display="none",function(){if(ae){var e=ge.perspective&&!ce;return V="translate"+(e?"3d(":"("),X=ge.perspective?", 0px)":")"}ae="left",f.addClass(h,"pswp--ie"),nt=function(e,t){t.left=e+"px"},it=function(e){var t=1=Yt())&&(W=0),m.currItem=Zt(W),(ge.isOldIOSPhone||ge.isOldAndroid)&&(Qe=!1),h.setAttribute("aria-hidden","false"),g.modal&&(Qe?h.style.position="fixed":(h.style.position="absolute",h.style.top=f.getScrollY()+"px")),void 0===me&&(y("initialLayout"),me=he=f.getScrollY());t="pswp--open ";for(g.mainClass&&(t+=g.mainClass+" "),g.showHideOpacity&&(t+="pswp--animate_opacity "),t+=ce?"pswp--touch":"pswp--notouch",t+=ge.animationName?" pswp--css_animation":"",t+=ge.svg?" pswp--svg":"",f.addClass(h,t),m.updateSize(),Z=-1,Ke=null,e=0;e<3;e++)nt((e+Z)*Ge.x,te[e].el.style);fe||f.bind(m.scrollWrap,$,m),r("initialZoomInEnd",function(){m.setContent(te[0],W-1),m.setContent(te[2],W+1),te[0].el.style.display=te[2].el.style.display="block",g.focus&&h.focus(),f.bind(document,"keydown",m),ge.transform&&f.bind(m.scrollWrap,"click",m),g.mouseUsed||f.bind(document,"mousemove",rt),f.bind(window,"resize scroll orientationchange",m),y("bindEvents")}),m.setContent(te[1],W),m.updateCurrItem(),y("afterInit"),Qe||(J=setInterval(function(){at||Ie||Pe||K!==m.currItem.initialZoomLevel||m.updateSize()},1e3)),f.addClass(h,"pswp--visible")}},close:function(){q&&(B=!(q=!1),y("close"),f.unbind(window,"resize scroll orientationchange",m),f.unbind(window,"scroll",G.scroll),f.unbind(document,"keydown",m),f.unbind(document,"mousemove",rt),ge.transform&&f.unbind(m.scrollWrap,"click",m),Ie&&f.unbind(window,Y,m),clearTimeout(ye),y("unbindEvents"),$t(m.currItem,null,!0,m.destroy))},destroy:function(){y("destroy"),Bt&&clearTimeout(Bt),h.setAttribute("aria-hidden","true"),h.className=pe,J&&clearInterval(J),f.unbind(m.scrollWrap,$,m),f.unbind(window,"scroll",m),Et(),A(),et=null},panTo:function(e,t,i){i||(e>De.min.x?e=De.min.x:eDe.min.y?t=De.min.y:tm.currItem.initialZoomLevel+m.currItem.initialZoomLevel/15&&(qe=!0),i=1,e=w(),r=x(),oDe.min[t]?n.backAnimDestination[t]=De.min[t]:Ue[t]=Yt()&&(W=g.loop?0:Yt()-1,o=!0),o&&!g.loop||(Ke+=r,Ye-=r,i=!0));var o=Ge.x*Ye,r=Math.abs(o-wt.x),s=i||o>wt.x==0The image could not be loaded.',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return jt.length}},Vt=function(e,t,i){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=Rt(),e.initialPosition=e.bounds.center,e.bounds;var n,o,r,s=!i;return s&&(e.vGap||(e.vGap={top:0,bottom:0}),y("parseVerticalMargin",e)),Gt.x=t.x,Gt.y=t.y-e.vGap.top-e.vGap.bottom,s&&(n=Gt.x/e.w,o=Gt.y/e.h,e.fitRatio=nGt.x?Math.round(Gt.x-n):r.center.x,r.max.y=o>Gt.y?Math.round(Gt.y-o)+t.vGap.top:r.center.y,r.min.x=n>Gt.x?0:r.center.x,r.min.y=o>Gt.y?t.vGap.top:r.center.y,s&&i===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds):void 0},Xt=function(e,t,i){var n;e.src&&(t=t||e.container.lastChild,n=i?e.w:Math.round(e.w*e.fitRatio),i=i?e.h:Math.round(e.h*e.fitRatio),e.placeholder&&!e.loaded&&(e.placeholder.style.width=n+"px",e.placeholder.style.height=i+"px"),t.style.width=n+"px",t.style.height=i+"px")};o("Controller",{publicMethods:{lazyLoadItem:function(e){e=s(e);var t=Zt(e);t&&(!t.loaded&&!t.loading||ee)&&(y("gettingData",e,t),t.src&&Ft(t))},initController:function(){f.extend(g,Qt,!0),m.items=jt=e,Zt=m.getItemAt,Yt=g.getNumItemsFn,g.loop,Yt()<3&&(g.loop=!1),r("beforeChange",function(e){for(var t=g.preload,i=null===e||0<=e,n=Math.min(t[0],Yt()),o=Math.min(t[1],Yt()),r=1;r<=(i?o:n);r++)m.lazyLoadItem(W+r);for(r=1;r<=(i?n:o);r++)m.lazyLoadItem(W-r)}),r("initialLayout",function(){m.currItem.initialLayout=g.getThumbBoundsFn&&g.getThumbBoundsFn(W)}),r("mainScrollAnimComplete",qt),r("initialZoomInEnd",qt),r("destroy",function(){for(var e,t=0;t=De.max.x&&i<=De.min.y&&i>=De.max.y)&&e.preventDefault(),m.panTo(t,i)},toggleDesktopZoom:function(e){e=e||{x:Ze.x/2+$e.x,y:Ze.y/2+$e.y};var t=g.getDoubleTapZoom(!0,m.currItem),i=K===t;m.mouseZoomedIn=!i,m.zoomTo(i?m.currItem.initialZoomLevel:t,e,333),f[(i?"remove":"add")+"Class"](h,"pswp--zoomed-in")}}});function ni(){return gi.hash.substring(1)}function oi(){si&&clearTimeout(si),li&&clearTimeout(li)}function ri(){var e=ni(),t={};if(e.length<5)return t;var i,n=e.split("&");for(r=0;r.theiaStickySidebar:after {content: ""; display: table; clear: both;}')),t.each(function(){var i,e={};e.sidebar=f(this),e.options=p||{},e.container=f(e.options.containerSelector),0==e.container.length&&(e.container=e.sidebar.parent()),e.sidebar.parents().css("-webkit-transform","none"),e.sidebar.css({position:"relative",overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),e.stickySidebar=e.sidebar.find(".theiaStickySidebar"),0==e.stickySidebar.length&&(i=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i,e.sidebar.find("script").filter(function(e,t){return 0===t.type.length||t.type.match(i)}).remove(),e.stickySidebar=f("").addClass("theiaStickySidebar").append(e.sidebar.children()),e.sidebar.append(e.stickySidebar)),e.marginBottom=parseInt(e.sidebar.css("margin-bottom")),e.paddingTop=parseInt(e.sidebar.css("padding-top")),e.paddingBottom=parseInt(e.sidebar.css("padding-bottom"));var t,n,o=e.stickySidebar.offset().top,r=e.stickySidebar.outerHeight();function d(){e.fixedScrollTop=0,e.sidebar.css({"min-height":"1px"}),e.stickySidebar.css({position:"static",width:"",transform:"none"})}e.stickySidebar.css("padding-top",1),e.stickySidebar.css("padding-bottom",1),o-=e.stickySidebar.offset().top,r=e.stickySidebar.outerHeight()-r-o,0==o?(e.stickySidebar.css("padding-top",0),e.stickySidebarPaddingTop=0):e.stickySidebarPaddingTop=1,0==r?(e.stickySidebar.css("padding-bottom",0),e.stickySidebarPaddingBottom=0):e.stickySidebarPaddingBottom=1,e.previousScrollTop=null,e.fixedScrollTop=0,d(),e.onScroll=function(e){if(e.stickySidebar.is(":visible"))if(f("body").width()e.container.width())return void d();var t,i,n,o,r,s,a,l,c=f(document).scrollTop(),u="static";c>=e.sidebar.offset().top+(e.paddingTop-e.options.additionalMarginTop)&&(i=e.paddingTop+p.additionalMarginTop,r=e.paddingBottom+e.marginBottom+p.additionalMarginBottom,o=e.sidebar.offset().top,n=e.sidebar.offset().top+(s=e.container,a=s.height(),s.children().each(function(){a=Math.max(a,f(this).height())}),a),t=0+p.additionalMarginTop,s=e.stickySidebar.outerHeight()+i+r