!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.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",B="getAttribute",u=a[c],q=a.setTimeout,d=a.requestAnimationFrame||q,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[B]("class")||"")&&i[t]},Z=function(e,t){U(e,t)||e.setAttribute("class",(e[B]("class")||"").trim()+" "+t)},Y=function(e,t){var i;(i=U(e,t))&&e.setAttribute("class",(e[B]("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[B]("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(){q(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():q(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][B](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[B](F.srcsetAttr);(t=F.customMedia[e[B]("data-media")||e[B]("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[B](F.srcsetAttr),r=e[B](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=q(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[B](F.sizesAttr)||e[B]("sizes")),o="auto"==n;(!o&&f||!i||!e[B]("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 q(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),q(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;r"+e.label+"",T.parseShareButtonOut&&(r=T.parseShareButtonOut(e,r));v.children[0].innerHTML=r,v.children[0].onclick=R}(),0}function r(e){for(var t=0;tT.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;it.min[e]?(i[e]=t.min[e],!0):i[e]=nt&&(me=0f.currItem.fitRatio&&Ft(J))}}var b,w,x,S,E,I,C,T,k,A,z,L,P,M,D,_,O,R,H,F,N,B,q,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=n(),Se=n(),Ee=n(),Ie={},Ce=0,Te={},ke=n(),Ae=0,ze=!0,Le=[],Pe={},Me=!1,De={},_e=function(e){var t=De[e];if(t){var i=Array.prototype.slice.call(arguments);i.shift();for(var n=0;nf.currItem.fitRatio?Me||(ri(f.currItem,!1,!0),Me=!0):Me&&(ri(f.currItem),Me=!1)),He(he,Ee.x,Ee.y,A))},Ne=function(e){e.container&&He(e.container.style,e.initialPosition.x,e.initialPosition.y,e.initialZoomLevel,e)},Be=function(e,t){t[B]=L+e+"px, 0px"+P},qe=function(e,t){var i;!m.loop&&t&&(i=S+(ke.x*Ce-e)/ke.x,t=Math.round(e-gt.x),(i<0&&0=Qt()-1&&t<0)&&(e=gt.x+t*m.mainScrollEndFriction)),gt.x=e,Be(e,E)},je=function(e,t){var i=yt[e]-Te[e];return Se[e]+xe[e]+i-t/z*i},We=function(e,t){e.x=t.x,e.y=t.y,t.id&&(e.id=t.id)},Ue=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},Ze=null,Ye=function(){Ze&&(h.unbind(document,"mousemove",Ye),h.addClass(p,"pswp--has_mouse"),m.mouseUsed=!0,_e("mouseUsed")),Ze=setTimeout(function(){Ze=null},100)},$e=function(e,t){e=ni(f.currItem,Ie,e);return t&&(pe=e),e},Ge=function(e){return(e=e||f.currItem).initialZoomLevel},Ke=function(e){return 0<(e=e||f.currItem).w?m.maxSpreadZoom:1},Qe={},Ve=0,Xe=function(e){Qe[e]&&(Qe[e].raf&&U(Qe[e].raf),Ve--,delete Qe[e])},Je=function(e){Qe[e]&&Xe(e),Qe[e]||(Ve++,Qe[e]={})},et=function(){for(var e in Qe)Qe.hasOwnProperty(e)&&Xe(e)},tt=function(e,t,i,n,o,r,s){var a,l=Oe();Je(e);function c(){if(Qe[e]){if(a=Oe()-l,n<=a)return Xe(e),r(i),void(s&&s());r((i-t)*o(a/n)+t),Qe[e].raf=W(c)}}c()},t={shout:_e,listen:a,viewportSize:Ie,options:m,isMainScrollAnimating:function(){return fe},getZoomLevel:function(){return A},getCurrentIndex:function(){return S},isDragging:function(){return ne},isZooming:function(){return ue},setScrollOffset:function(e,t){Te.x=e,G=Te.y=t,_e("updateScrollOffset",Te)},applyZoomPan:function(e,t,i,n){Ee.x=t,Ee.y=i,A=e,Fe(n)},init:function(){if(!b&&!w){var e;f.framework=h,f.template=p,f.bg=h.getChildByClass(p,"pswp__bg"),Z=p.className,b=!0,K=h.detectFeatures(),W=K.raf,U=K.caf,B=K.transform,$=K.oldIE,f.scrollWrap=h.getChildByClass(p,"pswp__scroll-wrap"),f.container=h.getChildByClass(f.scrollWrap,"pswp__container"),E=f.container.style,f.itemHolders=_=[{el:f.container.children[0],wrap:0,index:-1},{el:f.container.children[1],wrap:0,index:-1},{el:f.container.children[2],wrap:0,index:-1}],_[0].el.style.display=_[2].el.style.display="none",function(){if(B){var e=K.perspective&&!j;return L="translate"+(e?"3d(":"("),P=K.perspective?", 0px)":")"}B="left",h.addClass(p,"pswp--ie"),Be=function(e,t){t.left=e+"px"},Ne=function(e){var t=1=Qt())&&(S=0),f.currItem=Kt(S),(K.isOldIOSPhone||K.isOldAndroid)&&(ze=!1),p.setAttribute("aria-hidden","false"),m.modal&&(ze?p.style.position="fixed":(p.style.position="absolute",p.style.top=h.getScrollY()+"px")),void 0===G&&(_e("initialLayout"),G=Y=h.getScrollY());t="pswp--open ";for(m.mainClass&&(t+=m.mainClass+" "),m.showHideOpacity&&(t+="pswp--animate_opacity "),t+=j?"pswp--touch":"pswp--notouch",t+=K.animationName?" pswp--css_animation":"",t+=K.svg?" pswp--svg":"",h.addClass(p,t),f.updateSize(),I=-1,Ae=null,e=0;e<3;e++)Be((e+I)*ke.x,_[e].el.style);$||h.bind(f.scrollWrap,T,f),a("initialZoomInEnd",function(){f.setContent(_[0],S-1),f.setContent(_[2],S+1),_[0].el.style.display=_[2].el.style.display="block",m.focus&&p.focus(),h.bind(document,"keydown",f),K.transform&&h.bind(f.scrollWrap,"click",f),m.mouseUsed||h.bind(document,"mousemove",Ye),h.bind(window,"resize scroll orientationchange",f),_e("bindEvents")}),f.setContent(_[1],S),f.updateCurrItem(),_e("afterInit"),ze||(M=setInterval(function(){Ve||ne||ue||A!==f.currItem.initialZoomLevel||f.updateSize()},1e3)),h.addClass(p,"pswp--visible")}},close:function(){b&&(w=!(b=!1),_e("close"),h.unbind(window,"resize scroll orientationchange",f),h.unbind(window,"scroll",k.scroll),h.unbind(document,"keydown",f),h.unbind(document,"mousemove",Ye),K.transform&&h.unbind(f.scrollWrap,"click",f),ne&&h.unbind(window,C,f),clearTimeout(Q),_e("unbindEvents"),Vt(f.currItem,null,!0,f.destroy))},destroy:function(){_e("destroy"),Zt&&clearTimeout(Zt),p.setAttribute("aria-hidden","true"),p.className=Z,M&&clearInterval(M),h.unbind(f.scrollWrap,T,f),h.unbind(window,"scroll",f),xt(),et(),De=null},panTo:function(e,t,i){i||(e>pe.min.x?e=pe.min.x:epe.min.y?t=pe.min.y:tpe.min[e]||rpe.min[e]&&(c=m.panEndFriction,pe.min[e],i=pe.min[e]-Se[e]),(i<=0||l<0)&&1ut.x&&(o=ut.x)):pe.min.x!==pe.max.x&&(n=r)):(rf.currItem.fitRatio&&(Ee[e]+=t[e]*c)):(void 0!==o&&(qe(o,!0),le=o!==ut.x),pe.min.x!==pe.max.x&&(void 0!==n?Ee.x=n:le||(Ee.x+=t.x*c)),void 0!==o)},Rt=function(){if(ce){var e,t,i,n,o=ce.length;if(0!==o)if(We(ot,ce[0]),st.x=ot.x-at.x,st.y=ot.y-at.y,ue&&1f.currItem.initialZoomLevel+f.currItem.initialZoomLevel/15&&(be=!0),t=1,i=Ge(),n=Ke(),r=nt&&(st.x-=ce[0].x-lt.x),Math.abs(st.y)>=nt&&(st.y-=ce[0].y-lt.y)),at.x=ot.x,at.y=ot.y,0!==st.x||0!==st.y)){if("v"===me&&m.closeOnVerticalDrag&&!Et()){xe.y+=st.y,Ee.y+=st.y;var r=Lt();return te=!0,_e("onVerticalDrag",r),Re(r),void Fe()}zt(Oe(),ot.x,ot.y),se=!0,pe=f.currItem.bounds,Ot("x",st)||(Ot("y",st),Ue(Ee),Fe())}}},Ht=function(){var t,i,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(e){i=1pe.min[t]?n.backAnimDestination[t]=pe.min[t]:Ee[t]=Qt()&&(S=m.loop?0:Qt()-1,o=!0),o&&!m.loop||(Ae+=r,Ce-=r,i=!0));var o=ke.x*Ce,r=Math.abs(o-gt.x),s=i||o>gt.x==0The image could not be loaded.',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Yt.length}},ti=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},ii=function(e,t,i){var n=e.bounds;n.center.x=Math.round((Xt.x-t)/2),n.center.y=Math.round((Xt.y-i)/2)+e.vGap.top,n.max.x=t>Xt.x?Math.round(Xt.x-t):n.center.x,n.max.y=i>Xt.y?Math.round(Xt.y-i)+e.vGap.top:n.center.y,n.min.x=t>Xt.x?0:n.center.x,n.min.y=i>Xt.y?e.vGap.top:n.center.y},ni=function(e,t,i){if(!e.src||e.loadError)return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=ti(),e.initialPosition=e.bounds.center,e.bounds;var n,o=!i;return o&&(e.vGap||(e.vGap={top:0,bottom:0}),_e("parseVerticalMargin",e)),Xt.x=t.x,Xt.y=t.y-e.vGap.top-e.vGap.bottom,o&&(n=Xt.x/e.w,t=Xt.y/e.h,e.fitRatio=n=pe.max.x&&i<=pe.min.y&&i>=pe.max.y)&&e.preventDefault(),f.panTo(t,i)},toggleDesktopZoom:function(e){e=e||{x:Ie.x/2+Te.x,y:Ie.y/2+Te.y};var t=m.getDoubleTapZoom(!0,f.currItem),i=A===t;f.mouseZoomedIn=!i,f.zoomTo(i?f.currItem.initialZoomLevel:t,e,333),h[(i?"remove":"add")+"Class"](p,"pswp--zoomed-in")}}});function ui(){pi&&clearTimeout(pi),fi&&clearTimeout(fi)}function di(){var e=Ci(),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