functionupdateNav(){vare=$btn.hasClass("hidden")?$nav.width():$nav.width()-$btn.width()-30;$vlinks.width()>e?(breaks.push($vlinks.width()),$vlinks.children().last().prependTo($hlinks),$btn.hasClass("hidden")&&$btn.removeClass("hidden")):(e>breaks[breaks.length-1]&&($hlinks.children().first().appendTo($vlinks),breaks.pop()),breaks.length<1&&($btn.addClass("hidden"),$hlinks.addClass("hidden"))),$btn.attr("count",breaks.length),$vlinks.width()>e&&updateNav()}!function(e,t){"object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)thrownewError("jQuery requires a window with a document");returnt(e)}:t(e)}("undefined"!=typeofwindow?window:this,function(e,t){functionn(e){vart=!!e&&"length"ine&&e.length,n=pe.type(e);return"function"===n||pe.isWindow(e)?!1:"array"===n||0===t||"number"==typeoft&&t>0&&t-1ine}functioni(e,t,n){if(pe.isFunction(t))returnpe.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)returnpe.grep(e,function(e){returne===t!==n});if("string"==typeoft){if(Te.test(t))returnpe.filter(t,e,n);t=pe.filter(t,e)}returnpe.grep(e,function(e){returnpe.inArray(e,t)>-1!==n})}functionr(e,t){doe=e[t];while(e&&1!==e.nodeType);returne}functiono(e){vart={};returnpe.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}functiona(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(ie.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}functions(){(ie.addEventListener||"load"===e.event.type||"complete"===ie.readyState)&&(a(),pe.ready())}functionl(e,t,n){if(void0===n&&1===e.nodeType){vari="data-"+t.replace(He,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeofn){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:De.test(n)?pe.parseJSON(n):n}catch(r){}pe.data(e,t,n)}elsen=void0}returnn}functionu(e){vart;for(tine)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}functionc(e,t,n,i){if(Ie(e)){varr,o,a=pe.expando,s=e.nodeType,l=s?pe.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(i||l[u].data)||void0!==n||"string"!=typeoft)returnu||(u=s?e[a]=ne.pop()||pe.guid++:a),l[u]||(l[u]=s?{}:{toJSON:pe.noop}),"object"!=typeoft&&"function"!=typeoft||(i?l[u]=pe.extend(l[u],t):l[u].data=pe.extend(l[u].data,t)),o=l[u],i||(o.data||(o.data={}),o=o.data),void0!==n&&(o[pe.camelCase(t)]=n),"string"==typeoft?(r=o[t],null==r&&(r=o[pe.camelCase(t)])):r=o,r}}functiond(e,t,n){if(Ie(e)){vari,r,o=e.nodeType,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){pe.isArray(t)?t=t.concat(pe.map(t,pe.camelCase)):tini?t=[t]:(t=pe.camelCase(t),t=tini?[t]:t.split(" ")),r=t.length;for(;r--;)deletei[t[r]];if(n?!u(i):!pe.isEmptyObject(i))return}(n||(deletea[s].data,u(a[s])))&&(o?pe.cleanData([e],!0):de.deleteExpando||a!=a.window?deletea[s]:a[s]=void0)}}}functionf(e,t,n,i){varr,o=1,a=20,s=i?function(){returni.cur()}:function(){returnpe.css(e,t,"")},l=s(),u=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==u&&+l)&&Me.exec(pe.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;doo=o||".5",c/=o,pe.style(e,t,c+u);while(o!==(o=s()/l)&&1!==o&&--a)}returnn&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}functionp(e){vart=We.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());returnn}functionh(e,t){varn,i,r=0,o="undefined"!=typeofe.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeofe.querySelectorAll?e.querySelectorAll(t||"*"):void0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||pe.nodeName(i,t)?o.push(i):pe.merge(o,h(i,t));returnvoid0===t||t&&pe.nodeName(e,t)?pe.merge([e],o):o}functionm(e,t){for(varn,i=0;null!=(n=e[i]);i++)pe._data(n,"globalEval",!t||pe._data(t[i],"globalEval"))}functiong(e){qe.test(e.type)&&(e.defaultChecked=e.checked)}functionv(e,t,n,i,r){for(varo,a,s,l,u,c,d,f=e.length,v=p(t),y=[],b=0;f>b;b++)if(a=e[b],a||0===a)if("object"===pe.type(a))pe.merge(y,a.nodeType?[a]:a);elseif(Ye.test(a)){
},css:l,isCell:"table-cell"==t.display,computed:a,numeric:s,width:u.win.right-u.win.left,height:u.win.bottom-u.win.top,mode:-1,inited:!1,parent:d,limit:{start:u.doc.top-s.top,end:c.doc.top+n.offsetHeight-d.numeric.borderBottomWidth-e.offsetHeight-s.top-s.marginBottom}};returnf}functionb(e){for(vart=0;e;)t+=e.offsetTop,e=e.offsetParent;returnt}functionx(e){varn=e.getBoundingClientRect();return{doc:{top:n.top+t.pageYOffset,left:n.left+t.pageXOffset},win:n}}functionw(){I=setInterval(function(){!c()&&E()},500)}functionC(){clearInterval(I)}functionT(){H&&(document[P]?C():w())}functionk(){H||(o(),p(),t.addEventListener("scroll",a),t.addEventListener("wheel",s),t.addEventListener("resize",E),t.addEventListener("orientationchange",E),e.addEventListener(B,T),w(),H=!0)}functionE(){if(H){h();for(vare=D.length-1;e>=0;e--)D[e]=y(D[e].node);p()}}functionS(){t.removeEventListener("scroll",a),t.removeEventListener("wheel",s),t.removeEventListener("resize",E),t.removeEventListener("orientationchange",E),e.removeEventListener(B,T),C(),H=!1}functionN(){S(),h()}functionL(){for(N();D.length;)D.pop()}functionA(e){for(vart=D.length-1;t>=0;t--)if(D[t].node===e)return;varn=y(e);D.push(n),H?d(n):k()}functionj(e){for(vart=D.length-1;t>=0;t--)D[t].node===e&&(f(D[t]),D.splice(t,1))}var_,I,D=[],H=!1,O=e.documentElement,M=function(){},P="hidden",B="visibilitychange";void0!==e.webkitHidden&&(P="webkitHidden",B="webkitvisibilitychange"),t.getComputedStyle||n();for(varF=["","-webkit-","-moz-","-ms-"],q=document.createElement("div"),$=F.length-1;$>=0;$--){try{q.style.position=F[$]+"sticky"}catch(z){}""!=q.style.position&&n()}o(),t.Stickyfill={stickies:D,add:A,remove:j,init:k,rebuild:E,pause:S,stop:N,kill:L}}(document,window),window.jQuery&&!function(e){e.fn.Stickyfill=function(e){returnthis.each(function(){Stickyfill.add(this)}),this}}(window.jQuery),$(document).ready(function(){vare=function(){$("body").css("margin-bottom",$(".page__footer").outerHeight(!0))},t=!1;e(),$(window).resize(function(){t=!0}),setInterval(function(){t&&(t=!1,e())},250),$("#main").fitVids(),$(".sticky").Stickyfill();varn=function(){vare=0===$(".author__urls-wrapper button").length?$(window).width()>1024:!$(".author__urls-wrapper button").is(":visible");e?(Stickyfill.rebuild(),Stickyfill.init(),$(".author__urls").show()):(Stickyfill.stop(),$(".author__urls").hide())};n(),$(window).resize(function(){n()}),$(".author__urls-wrapper button").on("click",function(){$(".author__urls").fadeToggle("fast",function(){}),$(".author__urls-wrapper button").toggleClass("open")}),$("a").smoothScroll({offset:-20}),$("a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif']").addClass("image-popup"),$(".image-popup").magnificPopup({type:"image",tLoading:"Loading image #%curr%...",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">Image #%curr%</a> could not be loaded.'},removalDelay:500,mainClass:"mfp-zoom-in",callbacks:{beforeOpen:function(){this.st.image.markup=this.st.image.markup.replace("mfp-figure","mfp-figure mfp-with-anim")}},closeOnContentClick:!0,midClick:!0})});