"),L.label.text=R,L.label.element.style.wordBreak="break-word",L.label.fontFamily=Ma.overrides.thumbnailTitleFont,L.label.fontColor=Ma.overrides.thumbnailTitleFontColor,L.label.fontSize=Ma.overrides.thumbnailTitleFontSize,L.label.width=c,L.label.textAlign=di(e.isIndexSection),L.label.zIndex=5;var B=J(L.label);switch(P){case"top":L.label.y=K(Ma.overrides.thumbnailLabelVerticalOffset,5),L.thumb.y=B.height+K(Ma.overrides.thumbnailLabelVerticalOffset,5),q=B.height+2*K(Ma.overrides.thumbnailLabelVerticalOffset,5)>q?B.height+2*K(Ma.overrides.thumbnailLabelVerticalOffset,5):q,L.height=u+q;break;case"over":case"hover":l.type===Gi&&Ma.overrides.thumbnailVideoPlayIcon?L.label.y=.5*(u-50)-B.height+K(Ma.overrides.thumbnailLabelVerticalOffset,0):L.label.y=.5*(u-B.height)+K(Ma.overrides.thumbnailLabelVerticalOffset,0),L.label.pointerEvents="none",Wi===Xi||oe()?L.label.alpha=1:Wi===Ni||le()?L.label.alpha=1:"over"===P?L.label.alpha=1:L.label.alpha=0;break;case"bottom":default:L.label.y=u+K(Ma.overrides.thumbnailLabelVerticalOffset,5),q=B.height+2*K(Ma.overrides.thumbnailLabelVerticalOffset,5)>q?B.height+2*K(Ma.overrides.thumbnailLabelVerticalOffset,5):q,L.height=u+q}L.addChild(L.label)}"spinner"===Ma.overrides.thumbnailLoaderType&&(L.loader=new tt({type:"spinner",alpha:.65,color:s()}),L.addChild(L.loader),L.loader.x=.5*(c-L.loader.width),L.loader.y=.5*(u-L.loader.height));var j=new Ca;j.id="hit",j.zIndex=4,Wi===Xi&&"hover"===P?j.alpha=K(Ma.overrides.thumbnailHoverAlphaMobile,Ma.overrides.thumbnailHoverAlpha):Wi===Ni&&"hover"===P?j.alpha=K(Ma.overrides.thumbnailHoverAlphaTablet,Ma.overrides.thumbnailHoverAlpha):j.alpha=0,j.y=0,j.width=x,j.height=M,j.backgroundColor=Ma.overrides.thumbnailHoverColor,"Safari"===ra&&(j.style["-webkit-backface-visibility"]="hidden",j.style.transform="translateZ(0px)"),L.addChild(j),L.hit=j;var _=fi(),W=bi(_,Ma.overrides.thumbnailMaxCols,Ma.overrides.thumbnailGap),N=/hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryMaintainOrder,Y=!(!(W>1&&/fill|hMasonry|vMasonry/.test(Ma.overrides.thumbnailType))||N)&&d;$.addItem(c,L.height,Y),L.defaultWidth=x,L.defaultHeight=M,D.addChild(L),G.push(L),e.thumbnailOnly&&"link"!==l.type||(oe()||le()||(j.addEventListener(cn,f),j.addEventListener(mn,b)),j.addEventListener(Vn,y)),j.element.addEventListener("contextmenu",r),j.element.addEventListener("dragstart",r),L.load=O,L.unload=A,a===i-1&&setTimeout(function(){H.gridContainer.addChild(D),X.holdersBuilt=!0,X.updateSpeed=Lo,Ma.section(X.section),X.events.dispatchEvent("holdersBuilt"),m(),X.resize()},0)}},0)}(a)}function p(e){var t=go;switch(e){case Gi:t+="video2@2x.png";break;case Ui:t+="text3@2x.png";break;case qi:t+="swf@2x.png";break;case Ki:t+="link@2x.png";break;case Ji:t+="pdf@2x.png";break;case $i:t+="contact@2x.png"}return t}function m(){if(Ma.section(e.section),/fill|hMasonry|vMasonry|hPaginatedGrid/.test(Ma.overrides.thumbnailType))B=new Li({titleBlock:j,container:X,mask:H,items:G,side:Ma.overrides.thumbnailSide,size:Ma.overrides.thumbnailSize,horizontalMargin:E(Ma.overrides.thumbnailHorizontalMargin,wa.width),verticalMargin:j?U+E(Ma.overrides.thumbnailVerticalMargin,wa.height)-Ma.overrides.thumbnailTitleBlockTopMargin:E(Ma.overrides.thumbnailVerticalMargin,wa.height),masonry:Ma.overrides.thumbnailMasonry,tile:$,parent:X,grid:D,gap:Ma.overrides.thumbnailGap,maxGap:q,events:e.events,localEvents:e.localEvents,isIndexSection:e.isIndexSection,section:e.section});else if("strip"===Ma.overrides.thumbnailType){var t="displace"===Ma.overrides.thumbnailDock?0:24;"Safari"===ra&&(X.style["-webkit-backface-visibility"]="hidden");var i=ci()?E(Ma.overrides.thumbnailHorizontalMargin,wa.width):E(Ma.overrides.thumbnailVerticalMargin,wa.height),n=xa.mediaView.size;W=new Ee(X,{get x(){return n.x()},get y(){return n.y(e.section.key)},get width(){return n.width()},get height(){var t=Ma.mediaView.zoneHeight(e.section.key);return t}},{side:Ma.overrides.thumbnailSide,align:"left",pOffset:i,margin:0,reveal:t,updateSpeed:Lo}),B=new Si({section:e.section,dock:W,container:X,mask:H,items:G,side:Ma.overrides.thumbnailSide,size:Ma.overrides.thumbnailSize,horizontalMargin:E(Ma.overrides.thumbnailHorizontalMargin,wa.width),verticalMargin:E(Ma.overrides.thumbnailVerticalMargin,wa.height),tile:$,parent:X,localEvents:e.localEvents})}}function v(e,t,i){var n=new Ke;n.src=go+"play@2x.png",n.width=50,n.height=50,n.alpha=0,n.zIndex=3,n.thumbHolder=e,n.index=e.index,qe(n,1,{alpha:.85}),e.playBtn=n,e.addChild(n)}function f(t){if(Ma.section(e.section),t.target.parent.label){var i=g(e.section);(i&&"hover"===Ma.overrides.thumbnailLabelPosition||!i&&"hover"===Ma.overrides.thumbnailStdLabelPosition)&&qe(t.target.parent.label,.35,{alpha:1})}qe(t.target,.35,{alpha:a(),backgroundColor:Ma.overrides.thumbnailHoverColor})}function b(t){if(Ma.section(e.section),"link"===t.target.parent.mediaItem.type||N!==t.target.parent.index||0===r()?qe(t.target,.2,{alpha:0}):qe(t.target,.2,{alpha:r(),backgroundColor:Ma.overrides.thumbnailSelectedColor}),t.target.parent.label){var i=g(e.section);(i&&"hover"===Ma.overrides.thumbnailLabelPosition||!i&&"hover"===Ma.overrides.thumbnailStdLabelPosition)&&qe(t.target.parent.label,.35,{alpha:0})}}function y(t){t.stopPropagation();var i=t.target.parent.mediaItem;"string"==typeof i.content&&0===i.content.indexOf("vimeo:")&&t.target.parent.vimeo?(t.target.parent.vimeo.setSource(i.content),t.target.parent.vimeo.element.style.zIndex=5,qe(t.target.parent.vimeo,Lo,{alpha:1})):"link"===i.type?X.events.dispatchEvent(qn,{nothumbs:/nothumbs(\/|)$/.test(i.content),type:"internal",path:i.content.replace(/nothumbs(\/|)/i,""),linkTarget:i.linkTarget,isThumbClick:!1}):(Ma.section(e.section),X.events.dispatchEvent(qn,{assetId:Number(t.target.parent.index),type:"internal",path:e.path,linkTarget:"_self",isThumbClick:!0,isMobileVideoClick:"video"===i.type&&Wi===Xi&&Ma.overrides.mobileAutoPlay}))}function L(t){e.events.dispatchEvent(Jo,"thumbs")}function S(e){var t=e.target;t.attempts<2&&t.parent.mediaItem.thumb?(t.src=vo+"/media/"+t.parent.mediaItem.thumb,t.attempts++):t.removeEventListener(Qi,S)}function x(e){return uo?e.width>500||e.height>500:e.width>1e3||e.height>1e3}function T(t){var i=t.thumb,n=t.mediaItem,o=new ht({parent:t,thumbBuild:!0,width:Math.floor(t.width),height:Math.floor(t.height)});o.setSize(Math.floor(t.width),Math.floor(t.height)),o.zIndex=-2,o.alpha=0,t.addChild(o),t.vimeo=o,o.addEventListener(wo,function(e){o.play()}),e.thumbnailOnly&&(Ma.overrides.vimeoDefault?(o.zIndex=5,qe(o,Lo,{alpha:1}),qe(i,Lo,{alpha:0}),o.setSource(n.content)):t.hit.element.onclick=function(e){o.zIndex=5,qe(o,Lo,{alpha:1}),qe(i,Lo,{alpha:0}),o.setSource(n.content)}),o.onplay=function(){F(o)},o.onpause=function(){}}function k(e){var t=e.thumb,i=e.mediaItem,n=new dt({parent:e,thumbBuild:!0,width:Math.floor(e.hit.width),height:Math.floor(e.hit.height)});n.alpha=0,e.addChild(n),e.video=n,e.hit.element.onclick=function(){F(n),n.setSource(i.content),n.play(),n.element.style.zIndex=5,qe(n,Lo,{alpha:1}),qe(t,Lo,{alpha:0})},n.element.onclick=function(){n.paused?(F(n),n.play()):n.pause()}}function O(){var t=this,i=(t.thumb,t.mediaItem);Ma.section(e.section),!B||t.loaded&&t.thumb.src||(/mp4/.test(t.filename)?(t.thumb.element.addEventListener(Co,function(e){B.thumbLoaded.call(t.thumb),this.muted=!0,this.play()}),t.thumb.src=t.filename):(t.thumb.addEventListener(en,B.thumbLoaded),x(t.thumb)||Ma.overrides.thumbnailFullRes?t.thumb.src=t.original:t.thumb.src=t.filename),t.thumb.addEventListener(Qi,S),t.thumb.alpha=0,t.loaded=!0,t.addChild(t.thumb)),i.type!==Gi||t.vimeo||t.video||(pe(i)&&(Wi===Xi&&Ma.overrides.mobileAutoPlay||e.thumbnailOnly)?T(t):e.thumbnailOnly&&k(t))}function I(e){return"video"===e.mediaItem.type&&(e.vimeo||e.video)}function F(e){X.mask.grid.children.filter(I).forEach(function(t){pe(t.mediaItem)?t.vimeo!==e&&t.vimeo.pause():t.video!==e&&t.video.pause()})}function A(){this.mediaItem.type===Gi&&this.vimeo&&0===this.mediaItem.content.indexOf("vimeo")&&Wi===Xi&&this.removeChild(this.vimeo)}function P(){_.state=!0,X.holdersBuilt&&(X.updateSpeed=Lo)}Ma.section(e.section);var H,D,R,B,j,_,W,N,X=new Ca({events:e.events}),Y="left"===Ma.overrides.thumbnailSide||"right"===Ma.overrides.thumbnailSide||/fill|hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)?"y":"x",Z="y"===Y?"top":"left",G=[],U=0,q=Ma.overrides.thumbnailGap,$=new Ne({name:"thumbs",type:Ma.overrides.thumbnailType,marginHorizontal:E(Ma.overrides.thumbnailHorizontalMargin,wa.width),marginVertical:E(Ma.overrides.thumbnailVerticalMargin,wa.height),maintainOrder:/fill|hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryMaintainOrder,horizontalMasonry:/hMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryEvenRowHeight,masonryFill:/hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryFill,gap:Ma.overrides.thumbnailGap});return X.getTotalHeight=function(){return B?B.totalHeight:0},X.currentThumb=1,X.settings=e.settings,X.section=e.section,X.tile=$,X.pointerEvents="auto",X.isInit=!0,X.element.setAttribute("class","Thumbs.container"),X.selectable=!1,X.build=function(){Ma.section(e.section),X.updateSpeed=0,X.holdersBuilt=!1,X.id="thumbs",X.overflow="hidden",X.zIndex=200,X.alpha=0,H=X.mask=new Ca,H.id="mask",H.overflow="hidden",H.zIndex=1,H.element.setAttribute("class","Thumbs.mask"),("overlay"===Ma.overrides.thumbnailDock||/fill|hMasonry|vMasonry|hPaginatedGrid/.test(Ma.overrides.thumbnailType))&&(H.backgroundColor=V(Pi.overlayColor,Pi.overlayAlpha)),X.addChild(H),X.mask=H,D=new Ca,D.id="grid",D.element.setAttribute("class","Thumbs.grid"),D.element.style.transform="translateZ(0)",/hMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryFill&&(D.overflow="hidden"),H.grid=D,R=new Ca,R.id="grid-container",R.element.setAttribute("class","Thumbs.grid.container"),R.element.style.transform="translateZ(0)",H.gridContainer=R,H.addChild(R);var n={Containername:"thumbs"};(oe()||le())&&(n.domElementScroll=!0),Ma.siteView.unifiedPageScroll()&&(/native/.test(Ma.overrides.thumbnailScrollType)||Pi.globalSmoothScroll)&&"strip"!==Ma.overrides.thumbnailType&&"MSIE"!==ra&&(n.windowScroll=!0),/slide/.test(Pi.thumbLoadEffect)&&(n.boundaryMultiplier=.9),ia&&(/native/.test(Ma.overrides.thumbnailScrollType)||Pi.globalSmoothScroll)?n.domElementScroll=!0:n.property="translate",n.targetChildren=D.children;var o="strip"===Ma.overrides.thumbnailType?D:R;X.lazyLoader=new ze(o,H,n),X.lazyLoader.name="thumbs",_=new Ye({target:X,on:X.hide,off:X.show});var a,r,l=0,s=0,d=0,c=0;if(/fill|hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)&&e.section.thumb&&e.section.thumb.titleBlock&&(j=t(e.section),U=Ma.overrides.thumbnailTitleBlockTopMargin+j.element.offsetHeight,j.y=Ma.overrides.thumbnailTitleBlockTopMargin,H.gridContainer.addChild(j)),oe()||le())/^unified/.test(Ma.overrides.siteDisplayBehavior)&&Wi!==Xi&&Wi!==Ni||("y"===Y?(H.element.style.overflowY="scroll",H.element.style.overflowX="hidden"):(H.element.style.overflowY="hidden",H.element.style.overflowX="scroll")),H.element.style["-webkit-overflow-scrolling"]="touch",D.element.addEventListener("touchstart",function(e){l=0,s=0,d=e.touches[0].pageX,c=e.touches[0].pageY}),D.element.addEventListener("touchmove",function(e){l=e.touches[0].pageX-d,s=e.touches[0].pageY-c,oa.abs(l)>oa.abs(s)?(l>0?H.element.scrollLeft>0&&H.element.scrollLeft<=D.width-Ma.overlayView.zoneWidth()&&e.stopPropagation():"x"===Y&&e.stopPropagation(),a=!0,r=!1):(r=!0,a=!1),X.lazyLoader&&X.lazyLoader.update()}),D.element.addEventListener("touchend",function(e){X.lazyLoader&&X.lazyLoader.update()}),H.element.addEventListener("scroll",function(){X.lazyLoader&&X.lazyLoader.update()}),Ma.siteView.unifiedPageScroll()&&window.addEventListener("scroll",function(e){X.lazyLoader&&X.lazyLoader.update()});else if(/^unifiedSite/.test(Ma.overrides.siteDisplayBehavior))window.addEventListener("scroll",function(e){X.lazyLoader&&X.lazyLoader.update()});else if(Ma.siteView.unifiedPageScroll()&&/fill|hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)&&(/native/.test(Ma.overrides.thumbnailScrollType)||Pi.globalSmoothScroll))window.addEventListener("scroll",function(e){X.lazyLoader&&X.lazyLoader.update()});else if(ia&&(/native/.test(Ma.overrides.thumbnailScrollType)||Pi.globalSmoothScroll))H.element.addEventListener("scroll",function(){X.lazyLoader&&X.lazyLoader.update()}),"y"===Y?(H.element.style.overflowY="scroll",H.element.style.overflowX="hidden"):(H.element.style.overflowY="hidden",H.element.style.overflowX="scroll");else{i();var h="strip"===Ma.overrides.thumbnailType?0:Ma.overrides.thumbnailScrollbarWidth,p="right"===Ma.overrides.thumbnailScrollbarAlignment?-Ma.overrides.thumbnailScrollbarHorizontalOffset-h:Ma.overrides.thumbnailScrollbarHorizontalOffset+h,m=ci()?"x":"y";"strip"===Ma.overrides.thumbnailType&&(Z="y"===Y?Ma.overrides.thumbnailAlignVertical||"center":Ma.overrides.thumbnailAlignHorizontal||"center");var v={name:"thumbs",types:["bar","wheel","touch"],axis:m,align:Z,zIndex:Ma.overlayView.zIndex+1,color:Ma.overrides.thumbnailScrollbarColor,hover:Ma.overrides.thumbnailScrollbarHover,side:Ma.overrides.thumbnailScrollbarAlignment,alpha:Ma.overrides.thumbnailScrollbarBgAlpha,width:h,offsetX:Ma.overlayView.x()+p,offsetY:Ma.overlayView.y(e.section.key)+Ma.overrides.thumbnailScrollbarVerticalOffset,property:"translate",rounded:Ma.overrides.thumbnailScrollbarRounded,visibility:Ma.overrides.thumbnailScrollbarVisibility,parent:e.scrollbarParent};/fill|hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)?(v.marginTop=j?Ma.overrides.thumbnailTitleBlockTopMargin:E(Ma.overrides.thumbnailVerticalMargin,wa.height),v.marginBottom=E(Ma.overrides.thumbnailVerticalMargin,wa.height)):v.margin=0,(/native/.test(Ma.overrides.thumbnailScrollType)||Pi.globalSmoothScroll)&&(v.margin=0, v.color="#000000",v.hover="#000000",v.side="right",v.alpha=0,v.width=h,v.offsetX=Ma.overlayView.x()-10,v.offsetY=Ma.overlayView.y(e.section.key),v.rounded=!0,v.visibility="when scrolling");var o="strip"===Ma.overrides.thumbnailType?D:R;X.scroll=new Re(o,H,v)}X.scroll&&(X.scroll.addEventListener(no,function(){X.lazyLoader&&X.lazyLoader.update()}),X.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){X.scroll.percent=0,X.scroll.update(Lo)})),e.mediaItems.length>0&&u(),_.state=!0,X.resize(),_.state=!1,X.isInit=!1},X.resizeThumbVideo=function(){X.mask.grid.children.filter(I).forEach(function(e){e.video?e.video.setSize(e.width,e.height):e.vimeo&&e.vimeo.setSize(e.width,e.height)})},X.highlight=function(t){if(Ma.section(e.section),Wi!==Xi&&!e.thumbnailOnly){var i=G.length;for(N=Number(void 0!==t?t:e.assetId);i--;)if(i!==N){var n=G[i].hit.parent.mediaItem,o=ri(e.isIndexSection);wi(n)||Wi===Xi||Wi===Ni||(qe(G[i].hit,Lo,{alpha:0}),G[i].hit.parent.label&&"hover"===o&&Wi!==Xi&&Wi!==Ni&&qe(G[i].hit.parent.label,.35,{alpha:0}))}if(N>-1&&G[N]&&"link"!==G[N].hit.parent.mediaItem.type){X.currentThumb=N+1;var n=G[N].hit.parent.mediaItem,o=ri(e.isIndexSection);qe(G[N].hit,Lo,{alpha:r(),backgroundColor:Ma.overrides.thumbnailSelectedColor}),G[N].hit.parent.label&&"hover"===o&&Wi!==Xi&&Wi!==Ni&&qe(G[N].hit.parent.label,.35,{alpha:0})}}},X.hide=function(){_.state&&(Ma.section(e.section),qe(X,Lo,{alpha:0,onComplete:function(){X.display="none",X.updateSpeed=0,_.state=!1}}),"strip"===Ma.overrides.thumbnailType&&W&&W.hide(),X.scroll&&(X.scroll.disable(),X.scroll.hide()))},X.show=function(){_.state||(X.display="block",setTimeout(function(){Ma.section(e.section),W&&W.resize(0),W&&W.show(),X.resize(),qe(X,Lo,{alpha:1,onComplete:P}),"scrollbar"===Ma.overrides.thumbnailScrollType&&/fill|hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)&&X.scroll&&X.scroll.enable(),X.scroll&&(X.scroll.show(),X.scroll.update())},0))},X.toggle=function(){_.flip(),"strip"===Ma.overrides.thumbnailType&&W.toggle(),_.state?X.show():X.hide()},X.toggleState=function(){return _.state},X.resize=function(){B||m(),B&&B.resize(),X.scroll&&X.scroll.resize()},X.build(),X}function oi(){var e=Ma.overrides.thumbnailLabelPosition;return oe()&&(e=K(Ma.overrides.thumbnailLabelPositionMobile,Ma.overrides.thumbnailLabelPosition)),le()&&(e=K(Ma.overrides.thumbnailLabelPositionTablet,Ma.overrides.thumbnailLabelPosition)),e}function ai(){var e=Ma.overrides.thumbnailStdLabelPosition;return oe()&&(e=K(Ma.overrides.thumbnailStdLabelPositionMobile,Ma.overrides.thumbnailStdLabelPosition)),le()&&(e=K(Ma.overrides.thumbnailStdLabelPositionTablet,Ma.overrides.thumbnailStdLabelPosition)),e}function ri(e){var t=oi(),i=ai();if(e){if(t)return t}else if(i)return i;return!1}function li(){var e=Ma.overrides.thumbnailLabelJustification;return e}function si(){var e=Ma.overrides.thumbnailStdLabelJustification;return e}function di(e){var t=li(),i=si();if(e){if(t)return t}else if(i)return i;return"center"}function ci(){return"strip"===Ma.overrides.thumbnailType&&("top"===Ma.overrides.thumbnailSide||"bottom"===Ma.overrides.thumbnailSide)}function hi(){return"strip"===Ma.overrides.thumbnailType&&("left"===Ma.overrides.thumbnailSide||"right"===Ma.overrides.thumbnailSide)}function ui(){return/hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)}function pi(e){return!yi(e)&&(ci()||ui()||hi())?e.size.thumb.width||e.size.content.width:zo[Ma.overrides.thumbnailSize].width}function mi(e){return!yi(e)&&(ci()||ui()||hi())?e.size.thumb.height||e.size.content.height:zo[Ma.overrides.thumbnailSize].height}function vi(e,t){if(/hMasonry/.test(Ma.overrides.thumbnailType)||/vMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryFill)return Ci(e,t);var i=zo[Ma.overrides.thumbnailSize].width,n=bi(fi(),Ma.overrides.thumbnailMaxCols,t);return/fill|hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)&&e&&n>1?2*i+t:ci()?10*i:i}function gi(e,t){var i=zo[Ma.overrides.thumbnailSize].height,n=bi(fi(),Ma.overrides.thumbnailMaxCols,t);return/fill|hMasonry/.test(Ma.overrides.thumbnailType)&&e&&n>1?2*i+t:ui()&&!Ma.overrides.thumbnailMasonryEvenRowHeight||hi()?10*i:i}function fi(){var e=E(Ma.overrides.thumbnailHorizontalMargin,wa.width);return Ma.overlayView.zoneWidth()-2*e}function bi(e,t,i){t=/fill|hPaginatedGrid/.test(Ma.overrides.thumbnailType)?1/0:t;var n=zo[Ma.overrides.thumbnailSize].width+i,o=/vMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryFill?Math.round:Math.floor,a=o((e+i)/n);return a1?2*Math.round(a)+t:Math.round(a)}function wi(e){return"link"===e.type&&!!e.thumb}function yi(e){return!e.thumb&&"image"!==e.type}function Li(e){function t(){if(Ma.section(e.section),/hMasonry/.test(Ma.overrides.thumbnailType)||/vMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryFill)r.perpLength=fi();else{var t=bi(fi(),Ma.overrides.thumbnailMaxCols,Ma.overrides.thumbnailGap),i=vi(!1,Ma.overrides.thumbnailGap),n=Ma.overrides.thumbnailGap*(t-1);r.perpLength=i*t+n}r.layoutItems();for(var a=o.grid.children,l=0,s=a.length;l1?(C=2*zo[Ma.overrides.thumbnailSize].width+Ma.overrides.thumbnailGap,w=2*zo[Ma.overrides.thumbnailSize].height+Ma.overrides.thumbnailGap,y=2*zo[Ma.overrides.thumbnailSize].width+Ma.overrides.thumbnailGap,L=2*zo[Ma.overrides.thumbnailSize].height+Ma.overrides.thumbnailGap):(C=zo[Ma.overrides.thumbnailSize].width,w=zo[Ma.overrides.thumbnailSize].height,y=zo[Ma.overrides.thumbnailSize].width,L=zo[Ma.overrides.thumbnailSize].height);var x=De({type:"fit",hRange:y,vRange:L,width:f.size.thumb.width||f.size.content.width||zo[Ma.overrides.thumbnailSize].width,height:f.size.thumb.height||f.size.content.height||zo[Ma.overrides.thumbnailSize].height,disableOrientationCheck:!0}),M=new xe({hRange:C,vRange:w,hAlign:Ma.overrides.thumbnailAlignHorizontal||"center",vAlign:Ma.overrides.thumbnailAlignVertical||"center",width:x.width,height:x.height});h[u].thumb.width=Math.ceil(x.width),h[u].thumb.height=Math.ceil(x.height),h[u].thumb.x=Math.round(M.x),h[u].thumb.y=Math.round(M.y),h[u].playBtn&&(h[u].playBtn.x=Math.round(.5*(C-50)),h[u].playBtn.y=Math.round(.5*(w-50))),h[u].width=C,h[u].height=w,h[u].hit.width=C,h[u].hit.height=w;var T=/hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryMaintainOrder,V=!(!(v>1&&/fill|hMasonry|vMasonry/.test(Ma.overrides.thumbnailType))||T)&&b;r.addItem(C,w,V)}/fill|vMasonry/.test(Ma.overrides.thumbnailType)&&(r.gridWidths=vi(!1,Ma.overrides.thumbnailGap),r.lastColumnWidth=/vMasonry/.test(Ma.overrides.thumbnailType)&&Ma.overrides.thumbnailMasonryFill?m-(r.gridWidths+Ma.overrides.thumbnailGap)*(v-1):r.gridWidths,r.numberOfColumns=v),r.items.length&&t(),setTimeout(function(){Ma.section(e.section);var t=r.getBounds(),l=new xe({hRange:Ma.overlayView.zoneWidth(),vRange:"hPaginatedGrid"===Ma.overrides.thumbnailType?Ma.mediaView.zoneHeight(e.section.key):Ma.overlayView.zoneHeight(e.section.key),width:r.perpLength,height:t.height,hAlign:"center",vAlign:"hPaginatedGrid"===Ma.overrides.thumbnailType?"center":"top",hOffset:0,vOffset:"hPaginatedGrid"===Ma.overrides.thumbnailType?0:e.verticalMargin});if((Ma.overrides.thumbnailMasonryFill||Ma.overrides.thumbnailMasonryEvenRowHeight)&&/hMasonry|vMasonry/.test(Ma.overrides.thumbnailType)?o.gridContainer.x=e.horizontalMargin:(o.gridContainer.x=Math.floor(l.x),a&&(a.width=r.perpLength,d=Ma.overrides.thumbnailTitleBlockTopMargin+a.element.offsetHeight,a.y=Ma.overrides.thumbnailTitleBlockTopMargin)),"hPaginatedGrid"===Ma.overrides.thumbnailType?o.gridContainer.y=Math.floor(l.y):(o.gridContainer.y=0,o.grid.y=d+e.verticalMargin),n.width=Ma.overlayView.zoneWidth(),o.width=Ma.overlayView.zoneWidth(),o.grid.width=r.perpLength,o.gridContainer.width=r.perpLength,"hPaginatedGrid"===Ma.overrides.thumbnailType){var c=Ma.mediaView.zoneHeight(e.section.key);n.height=c,o.height=c,i.height=c,o.grid.height=t.height,o.gridContainer.height=t.height,s=c}else if(/^unifiedSite/.test(Ma.overrides.siteDisplayBehavior)){var h=!g(e.section)&&Ma.mediaView.height(e.section.key)>t.height?Ma.mediaView.height(e.section.key):t.height,u=h+e.verticalMargin;s=d+(u+e.verticalMargin),n.height=s,o.height=s,o.grid.height=u,o.gridContainer.height=s}else if(Ma.siteView.unifiedPageScroll()&&(Wi!==Xi&&oe()||Wi!==Ni&&le()||/native/.test(Ma.overrides.thumbnailScrollType)||Pi.globalSmoothScroll)){var u=t.height+e.verticalMargin;u=u>Ma.mediaView.height()?u:Ma.mediaView.height(),s=d+(u+e.verticalMargin),n.height=s,o.height=s,o.grid.height=u,o.gridContainer.height=s}else s=d+(t.height+e.verticalMargin),n.height=Ma.overlayView.zoneHeight(),o.height=n.height,i.height=n.height,o.grid.height=t.height+e.verticalMargin,o.gridContainer.height=s;a&&"bottom"===Pi.thumbnailTitleBlockPosition&&(a.y=t.height+e.verticalMargin+Ma.overrides.thumbnailTitleBlockTopMargin,o.grid.y=e.verticalMargin),i.totalHeight=s,e.localEvents.dispatchEvent("UPDATE_CONTENT_HEIGHT",{thumbs:s}),n.resizeThumbVideo()},20)},this.thumbLoaded=function(e){this.parent.loader&&this.parent.removeChild(this.parent.loader),"slideUp"!==Pi.thumbLoadEffect&&"slideDown"!==Pi.thumbLoadEffect||qe(this.parent,.85,{alpha:1,translateY:0}),qe(this,.25,{alpha:1})}}function Si(e){function t(){switch(a){case"top":l.axis="x",l.perpLength=zo[r].height,n.height=zo[r].height,o.height=zo[r].height;break;case"right":l.axis="y",l.perpLength=zo[r].width,n.width=zo[r].width,o.width=zo[r].width;break;case"bottom":l.axis="x",l.perpLength=zo[r].height,n.height=zo[r].height,o.height=zo[r].height;break;case"left":l.axis="y",l.perpLength=zo[r].width,n.width=zo[r].width,o.width=zo[r].width}}function i(){l.layoutItems(),items=o.grid.children;for(var t=0,i=items.length;t573?573:Ma.mediaView.width(),F=Ma.mediaView.height(O.section.key)>400?400:Ma.mediaView.height(O.section.key),g.height=g.element.offsetHeight,T.width=T.element.offsetWidth,f.y=g.height+10,Bi.inquiryInfo?(b.y=g.height+20,C.x=2,C.y=b.y+b.element.offsetHeight+10):(C.x=2,C.y=g.height+20),xa.mediaView.width()>573?Bi.inquiryInfo?(w.x=222,w.y=b.y+b.element.offsetHeight+10):(w.x=222,w.y=C.y):(w.transition=0,w.x=H,w.width=Ma.mediaView.width()-2*H,w.y=C.y+k+10,C.x=.5*(xa.mediaView.width()-C.width),g.x=.5*(xa.mediaView.width()-g.element.offsetWidth),L.input.width=.5*w.width-H,x.input.width=.5*w.width,M.input.width=w.width,x.x=.5*w.width,f.alpha=0),T.x=w.element.offsetWidth-T.width,Bi.inquiryInfo?(A.x=w.x,A.y=b.y+b.element.offsetHeight+10):(A.x=w.x,A.y=40),0===O.updateSpeed?(O.width=Ma.mediaView.width(),O.height=Ma.mediaView.height(O.section.key),v.x=.5*(Ma.mediaView.width()-I),v.y=.5*(Ma.mediaView.height(O.section.key)-F),v.width=I,v.height=F):(qe(O,O.updateSpeed,{width:Ma.mediaView.width(),height:Ma.mediaView.height(O.section.key)}),qe(v,O.updateSpeed,{x:.5*(Ma.mediaView.width()-I),y:.5*(Ma.mediaView.height(O.section.key)-F),width:I,height:F})),E.width=Ma.mediaView.width(),E.height=Ma.mediaView.height(O.section.key),O.updateSpeed=Lo},O.show=function(){O.updateSpeed=0,O.visible||(O.visible=!0,O.display="block",qe(O,Lo,{alpha:1}),qe(w,Lo,{alpha:1}),qe(A,Lo,{alpha:0})),O.updatePosition()},O.hide=function(){O.visible&&(O.visible=!1,qe(O,Lo,{alpha:0,onComplete:function(){this.display="none"}}))},O.updateInquiryInfo=function(){g.text=Bi.inquiryTitle?Bi.inquiryTitle:"Inquire about this image",Bi.inquiryInfo&&(b.text=Bi.inquiryInfo),O.updatePosition()},O.updateContent=function(e){var t=S(e.section.media);y=l(t[e.assetId]),C&&v.removeChild(C),C=new Ke,C.alpha=0,Bi.inquiryInfo?(C.x=2,C.y=b.y+b.element.offsetHeight+10):(C.x=2,C.y=g.height+20),C.src=c(200,200,y.thumb||y.content,y.demoFile),C.width=200,v.addChild(C),C.addEventListener(en,i)},O.addEventListener(So,function(e){t.call(O)}),O}function Mi(e){function t(){g=new Ca,g.backgroundColor="#cccccc",g.alpha=0,g.addEventListener(hn,o),C.addChild(g),a=new Ca,a.width=w,a.height=y,C.addChild(a),r=new lt,r.text="Share this item",r.fontFamily=Ma.overrides.overlayTitleFont,r.fontColor=Ma.overrides.overlayTitleFontColor,r.fontSize=Ma.overrides.overlayTitleFontSize,a.addChild(r),r.height=r.element.offsetHeight,s=new Ca,s.backgroundColor=V(Ma.overrides.overlayTitleFontColor,.35),s.width=w,s.height=1,s.y=Ma.overrides.overlayTitleFontSize+10,a.addChild(s),d=new Ke,d.alpha=0,a.addChild(d),d.addEventListener(en,i),h=new Ca,h.x=222,h.y=r.height+20,h.width=w-h.x,h.height=y-h.y,a.addChild(h);var e="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");p=new Ca({type:"iframe"}),p.src="https://www.facebook.com/plugins/share_button.php?href="+encodeURIComponent(e)+"&width="+M.width+"&layout="+M.layout+"&action=like&size="+M.size+"&show_faces="+M.showFaces+"&share="+M.showShareButton+"&height="+M.height,p.width=M.width,p.height=M.height,p.element.setAttribute("scrolling","no"),p.element.setAttribute("frameborder","0"),p.element.setAttribute("allowTransparency","true"),m=new Je,m.addEventListener("click",function(){var e="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");window.open("https://twitter.com/intent/tweet?text="+encodeURI(e),"_blank")});var t=new Ke;t.position="relative",t.width=20,t.height=20,t.src="https://33acda504924667afc4c-95ab99cbba1f87315d458f4e201677b2.ssl.cf1.rackcdn.com/icon/twitter@2x.png",m.addChild(t),v=new Je,v.addEventListener("click",function(){var e="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");window.location.href="mailto:?subject=Shared item from "+window.location.host+"&body="+Bi.portfolioEmailMessage+"%0A%0A"+e});var l=new Ke;l.position="relative",l.width=20,l.height=20,l.src="https://33acda504924667afc4c-95ab99cbba1f87315d458f4e201677b2.ssl.cf1.rackcdn.com/icon/email@2x.png",v.addChild(l),p.y=0,m.y=30,v.y=60,h.addChild(p),h.addChild(m),h.addChild(v),L.alpha=0,L.x=h.x,L.y=40,L.fontFamily=Ma.overrides.overlayTitleFont,L.fontColor=Ma.overrides.overlayTitleFontColor,L.fontSize=14,a.addChild(L),C.updateStyle(),C.updatePosition(),C.show(),x.addEventListener(Po,n)}function i(e){var t=He({width:this.width,height:this.element.offsetHeight,filename:d.src}),i=Pe(null,0,{type:"fit",width:t.width,height:t.height,hRange:200,vRange:oe()?200:300,hAlign:0,vAlign:0,disableOrientationCheck:!0});f=Math.ceil(i.scale.width),b=Math.ceil(i.scale.height),this.width=f,this.height=b,qe(this,Lo,{alpha:1}),C.updatePosition()}function n(e){L.text=e.response,qe(h,Lo,{alpha:0}),qe(L,Lo,{alpha:1}),C.addEventListener(hn,o)}function o(e){e.target===C&&C.removeEventListener(hn,o),x.dispatchEvent(Jo,"share")}var a,r,s,d,h,u,p,m,v,g,f,b,C=new Ca(e),w=573,y=400,L=new Ca,x=e.localEvents;C.section=e.section;var M={layout:"button",size:"small",showFaces:!1,showShareButton:!0,width:67,height:20};return C.updateSpeed=0,C.backgroundColor=V(Pi.overlayColor,Pi.overlayAlpha),C.zIndex=100,C.alpha=0,C.visible=!1,C.updateStyle=function(e){Ma.overrides.overlayTitleFont!==r.fontFamily&&(r.fontFamily=Ma.overrides.overlayTitleFont,p.fontFamily=Ma.overrides.overlayTitleFont,m.fontFamily=Ma.overrides.overlayTitleFont,v.fontFamily=Ma.overrides.overlayTitleFont),Ma.overrides.overlayTitleFontSize!==r.fontSize&&qe(r,Lo,{fontSize:Ma.overrides.overlayTitleFontSize,onComplete:function(){C.updatePosition(e)}}),Ma.overrides.overlayTitleFontColor!==r.fontColor&&(qe(r,Lo,{fontColor:Ma.overrides.overlayTitleFontColor}),qe(s,Lo,{backgroundColor:V(Ma.overrides.overlayTitleFontColor,.35)}),qe(p,Lo,{fontColor:V(Pi.overlayColor,.35),backgroundColor:V(Ma.overrides.overlayTitleFontColor,.35)}),qe(m,Lo,{fontColor:V(Pi.overlayColor,.35),backgroundColor:V(Ma.overrides.overlayTitleFontColor,.35)}),qe(v,Lo,{fontColor:V(Pi.overlayColor,.35),backgroundColor:V(Ma.overrides.overlayTitleFontColor,.35)})),V(Pi.overlayColor,Pi.overlayAlpha)!==C.backgroundColor&&qe(C,Lo,{backgroundColor:V(Pi.overlayColor,Pi.overlayAlpha)})},C.updatePosition=function(e){Ma.section(C.section),C.x=0,C.y=0,w=Ma.mediaView.width()>573?573:Ma.mediaView.width(),y=Ma.mediaView.height(C.section.key)>400?400:Ma.mediaView.height(C.section.key),d.x=2,d.y=r.height+20,s.y=Ma.overrides.overlayTitleFontSize+10,xa.mediaMask.width()>573?(h.x=222,h.y=r.height+20):(h.transition=0,h.x=.5*(xa.mediaView.width()-h.width),h.y=d.y+b+10,d.x=.5*(xa.mediaView.width()-d.width),r.x=.5*(xa.mediaView.width()-r.element.offsetWidth),p.x=.5*(h.width-67),m.x=.5*(h.width-20),v.x=.5*(h.width-20),s.alpha=0),0===C.updateSpeed?(C.width=Ma.mediaView.width(),C.height=Ma.mediaView.height(C.section.key),a.x=.5*(Ma.mediaView.width()-w),a.y=.5*(Ma.mediaView.height(C.section.key)-y),a.width=w,a.height=y):(qe(C,C.updateSpeed,{width:Ma.mediaView.width(),height:Ma.mediaView.height(C.section.key)}),qe(a,C.updateSpeed,{x:.5*(Ma.mediaView.width()-w),y:.5*(Ma.mediaView.height(C.section.key)-y),width:w,height:y})),g.width=Ma.mediaView.width(),g.height=Ma.mediaView.height(C.section.key),C.updateSpeed=Lo},C.show=function(){C.updateSpeed=0,C.updatePosition(),C.visible||(C.visible=!0,C.display="block",qe(C,Lo,{alpha:1}),qe(h,Lo,{alpha:1}),qe(L,Lo,{alpha:0}))},C.hide=function(e){C.visible&&(C.visible=!1,qe(C,Lo,{alpha:0,onComplete:function(){this.display="none"}}))},C.updateContent=function(e){var t=S(e.section.media);u=l(t[e.assetId]),r.text="Share this "+u.type;var n=r.element.offsetHeight;d&&a.removeChild(d),d=new Ke,d.alpha=0,d.x=2,d.y=n+20,d.width=200,d.src=c(200,200,u.thumb||u.content,u.demoFile),h.y=n+20;var o="https://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");p.src="https://www.facebook.com/plugins/share_button.php?href="+encodeURIComponent(o)+"&width="+M.width+"&layout="+M.layout+"&action=like&size="+M.size+"&show_faces="+M.showFaces+"&share="+M.showShareButton+"&height="+M.height,a.addChild(d),d.addEventListener(en,i)},C.addEventListener(So,function(e){t.call(C)}),C}function Ti(e){function t(e){return window.scrollY>e?e:window.scrollY<0?0:window.scrollY}function i(e){Pi.menuRevealOnInit!==!1&&k&&e<10?C.menuView.dock.toggleState()||C.menuView.dock.show():e>wa.height*Pi.menuScrollReveal?C.menuView.dock.toggleState()||C.menuView.dock.show():C.menuView.dock.toggleState()&&C.menuView.dock.hide()}function n(){"Safari"===ra&&(C.menuView.menuText.translateZ=0)}function o(){"Safari"===ra&&(C.menuView.menuText.style["-webkit-transform"]="none",C.menuView.menuText.style["-ms-transform"]="none",C.menuView.menuText.style.transform="none")}function a(){C.menuView.dock.toggleState()&&C.menuView.closeDock()}function r(e){if(C.menuView.isInitUri=!1,Wi===Xi||Wi===Ni){var t=e.info.isDeepLink||""===Pi.menuAutoCloseMobile||void 0===Pi.menuAutoCloseMobile||Pi.menuAutoCloseMobile;""===Ma.introFile&&""===Pi.introFile||e.path?!y&&I(e)&&C.menuView.dock.toggleState()?setTimeout(C.menuView.closeDock,200):y||t?t&&C.menuView.dock.toggleState()&&setTimeout(C.menuView.closeDock,2e3):C.menuView.dock.toggleState()&&(clearTimeout(b),b=setTimeout(C.menuView.closeDock,200)):(C.menuView.dock.toggleState()||C.menuView.openDock(),t&&setTimeout(C.menuView.closeDock,2e3))}else"overlay"===Ma.menuView.placement()?(!y&&C.menuView.dock.toggleState()&&C.menuView.closeDock(),y&&(Pi.menuOpenOverlayOnInit?C.menuView.openDock():C.menuView.closeDock(),C.menuView.dock.toggleState()?C.menuView.showCloseButton():C.menuView.showMenuIcon())):te()&&i();s(e),y=!1}function s(e){C.menuView.menuText.setActiveMenuItem(e)}function d(e){var t=S(e.value);return"media"===e.field&&"update"===e.method&&1===t.length&&"link"===l(t[0]).type}function c(e){return"media"===e.field&&"update"===e.method&&""===e.value}function h(e){setTimeout(function(){C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.rebuild({model:e})},400)}function p(e){f&&clearTimeout(f),f=setTimeout(function(){e.action&&"sectionReorder"===e.action||(e.action&&"remove"===e.action?c(e)&&h(m()):e.action&&"addMediaToSection"===e.action||(e.action&&"addSelectionToSection"===e.action?d(e)&&h(m()):h(m())))},0)}function m(){var e={};for(var t in Ri)Ri[t].media&&Ri[t].mediaItems&&Ri.hasOwnProperty(t)&&(e[t]={id:Ri[t].id,key:Ri[t].key,hideFromMenu:Ri[t].hideFromMenu,customLink:Ri[t].customLink,isIndex:Ri[t].isIndex,indexLink:Ri[t].indexLink,linkTarget:Ri[t].linkTarget,isOpen:Ri[t].isOpen,hideSubs:Ri[t].hideSubs,label:Ri[t].label,alias:Ri[t].alias,media:Ri[t].media.slice(0),mediaItems:Ri[t].mediaItems.slice(0),overrides:Ri[t].overrides,password:Ri[t].password,thumb:Ri[t].thumb,visible:Ri[t].visible,isSearch:Ri[t].isSearch,isLightbox:Ri[t].isLightbox});if((Wi===Xi||Wi===Ni&&Pi.footerOnMenuTablet)&&(Ma.socialLinks.forEach(function(t){var i=Hi[t],n=u(e);e[t]={id:n,key:i.label,label:i.label,media:[t],mediaItems:[],overrides:{},password:"",thumb:{},visible:!0},e.ROOT_SECTION.media.push(n)}),Ma.copyright)){var i=u(e);e.copyright={id:i,key:"copyright",label:Ma.copyright,media:[],mediaItems:[],overrides:{},password:"",thumb:{},visible:!0},e.ROOT_SECTION.media.push(i)}return e}function v(e){if(w||e&&/menu|marginOverlap|dropdownSubMenu|sitePaddingTop|sitePaddingRight|sitePaddingBottom|sitePaddingLeft|footerIcon/.test(e.id)){C.menuView.updateStyle();var t=m();C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.rebuild({model:t}),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition("layoutModelChange"),C.menuView.updateScroll(),w=!1,h(t)}}function g(e){"link"===e.type&&"Footer Links"!==e.filters&&(C.menuView.updateStyle(),C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.rebuild({model:m()}),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition(),C.menuView.updateScroll())}var f,b,C=new $e({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents}),w=!0,y=!0,L=!0,x=350,M=!1,T=!1;C.updateSpeed=0,C.menuView=new e.MenuView(e),C.menuView.alpha=0,Wi===Xi&&Ma.overrides.menuDisplaceMobile?(wa.addChild(C.menuView),C.menuView.addChild(e.parentView),C.menuView.setClass("MenuView invertSite")):Wi===Ni&&Ma.overrides.menuDisplaceTablet?(wa.addChild(C.menuView),C.menuView.addChild(e.parentView),C.menuView.setClass("MenuView invertSite")):(C.parentView.addChild(C.menuView),C.parentView.setClass("SiteView invertSite")),e.model=Ri,C.menuView.menuText=new Ei(e),C.menuView.menuText.element.setAttribute("class","menuText"),C.menuView.addContent(C.menuView.menuText),C.events.addEventListener("menuUpdatePosition",function(){C.menuView.updatePosition()}),C.events.addEventListener(_n,v),C.events.addEventListener(Wn,g),C.events.addEventListener(Zn,p),C.events.addEventListener(lo,function(){M=!0}),C.events.addEventListener(nn,function(){xa.isMenuOverlayStateChange?(C.menuView.transition=0, C.menuView.alpha=0,setTimeout(function(){xa.isMenuResponsiveOverlay&&Wi!==Xi?C.menuView.closeDock(0):C.menuView.openDock(0),C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.rebuild({model:m()}),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition(0),C.menuView.updateStyle(0),C.menuView.updateScroll(),C.menuView.dock.toggleState()&&setTimeout(function(){C.menuView.transition=0,C.menuView.alpha=1},350)},x)):(Wi===Xi&&(M||L)&&(C.menuView.menuText.rebuild({model:m()}),M=!1),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition(),Wi===Xi||Wi===Ni||C.menuView.dock.toggleState()||Pi.isMenuScrollReveal||setTimeout(function(){C.menuView.display="none"},x)),x=50,L=!1}),C.events.addEventListener(Hn,r),C.events.addEventListener("SITE_URI_CHANGE_PASSIVE",s),C.events.addEventListener(_o,a),C.events.addEventListener(Yo,function(){f=setTimeout(function(){C.menuView.dock.toggleState()&&(C.menuView.menuText.display="block",C.menuView.display="block"),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition()},0)}),C.events.addEventListener(Zo,C.menuView.updatePosition),C.events.addEventListener("fillSiteMode",n),C.events.addEventListener("nonFillSiteMode",o),C.events.addEventListener("LOGO_LOADED",function(){C.menuView.menuText.display="block",C.menuView.display="block",C.menuView.menuText.updatePosition(0),C.menuView.updatePosition()});var V,E=0,z=!1,k=!0,O=void 0===Pi.menuRevealOnInit||Pi.menuRevealOnInit;Pi.menuRevealOnInit===!1&&C.menuView.dock.hide(),window.addEventListener("scroll",function(){T=!1,Pi.isMenuScrollReveal&&/top/.test(Ma.menuView.placement())&&(z=!0,clearTimeout(V),V=setTimeout(function(){var e=Ma.siteView.height()-wa.height;E=t(e),Pi.menuRevealOnInit!==!0&&k?(C.menuView.dock.hide(),O=!1):te()?(T=!0,i(E)):Pi.isMenuScrollReveal&&(0!==E&&E>window.oldScrollY-1?C.menuView.dock.toggleState()&&!k&&(C.menuView.dock.hide(),O=!1):Eoa.abs(y)?(O=!0,z=!1,e.stopPropagation()):(z=!0,Wi===Xi&&(p.dock.toggleState()?p.dock.show(0):p.dock.hide(0)),O=!1),Wi!==Xi&&Wi!==Ni||!O||e.preventDefault();var t=/left|top|bottom/.test(Ma.menuView.placement())?"left":"right";if(Wi!==Ni&&Wi!==Xi||(t="left"),O){p.transition=0;var i=w+x;"left"===t?p.dock.toggleState()?p.translateX=i>0?0:i:p.translateX=i<-xa.menuView.width()?-xa.menuView.width():i:p.translateX=i<=e.touches[0].pageX?(M="left"===t?"open":"close",T=e.touches[0].pageX):!z&&T>=e.touches[0].pageX&&(M="left"===t?"close":"open",T=e.touches[0].pageX)}}function s(){O&&"close"===M?(k=!1,p.dock.toggleState()&&p.closeDock()):O&&"open"===M&&(k=!1,p.dock.toggleState()||p.openDock()),k=!1,O=!1,p.removeEventListener(ln,l),p.removeEventListener(sn,s),p.removeEventListener(dn,s)}function d(){p.dock.toggleState()?(H=!1,p.closeDock()):(H=!0,p.openDock())}function c(){C,h()}function h(){C=!0,qe(v,Lo,{alpha:1})}function u(){return Wi!==Xi&&Wi!==Ni&&Pi.menuBlendMode&&"overlay"!==Ma.menuView.placement()?Pi.menuBlendMode:"normal"}var p=new st({events:e.events});p.identity="menu",p.element.setAttribute("data-identity","menu"),p.isInitUri=!0,p.alpha=0,p.updateSpeed=0,p.zIndex=Ma.menuView.zIndex,p.style.pointerEvents="none",p.x=0,p.y=0,p.position=Ma.menuView.menuPositionFixed()||"overlay"===Ma.menuView.placement()?"fixed":"absolute",p.element.style["mix-blend-mode"]=u();var m=(e.parentView,new Ca);m.identity="menu",m.element.setAttribute("data-identity","menu"),m.element.setAttribute("class","mask"),m.backgroundColor=V("#FF0000",0),m.width=xa.menuView.width(),p.mask=m,p.addChild(m);var v,g,f,b=!0,C=!1,w=0,y=0,L=0,S=0,x=0,M="open",T=0,z=!1,k=!1,O=!1,I=$()?"top":"left",F=Q()?xa.menuView.y():xa.menuView.x(),A=Q()?xa.menuView.x():xa.menuView.y(),P={width:wa.width,height:wa.height};p.addEventListener(So,function(){p.updatePosition(),"overlay"===Ma.menuView.placement()?b=!1:qe(p,Lo,{delay:Lo,alpha:1,onComplete:function(){b=!1}})}),p.dock=new Ee(p,P,{side:Wi===Ni||Wi===Xi?"left":Ma.menuView.placement(),align:I,margin:F,pOffset:A,reveal:0,disableResize:"overlay"===Ma.menuView.placement()}),p.showCloseButton=function(){var e=Ma.menuView.menuIconOverlayColor(),i=Number(Pi.menuIconSize||36),o=t(i);o.isClosed=!1,o.color=e,o.rotate=-180,o.line1Y=2*o.topMargin-(Number(Pi.menuIconLineWidth||1)+1),o.line3Y=2*o.topMargin-(Number(Pi.menuIconLineWidth||1)+1),o.leftMargin*=.5,n(o)},p.showMenuIcon=function(){var e=Number(Pi.menuIconSize||36),i=t(e);i.isClosed=!0,i.color=Pi.menuIconColor||"#333333",i.rotate=0,i.line1Y=i.topMargin,i.line3Y=3*i.topMargin,i.diagonal=i.width,n(i)},Wi===Ni||Wi===Xi?(v=new Ca,v.svg=new La,v.path=new nt,v.width=20,v.height=20,v.svg.width=20,v.svg.height=20,v.path.d=ya.menuIconMobile,v.path.strokeWidth=0,v.path.stroke="none",v.path.fill=Pi.menuIconColor||Ma.overrides.overlayTitleFontColor||"#606060",v.addChild(v.svg),v.svg.addChild(v.path),v.zIndex=50,v.padding=8,v.alpha=1,v.style.pointerEvents="auto",v.y=16,p.addChild(v),v.addEventListener(Vn,d),p.events.addEventListener(_o,a),p.addEventListener(rn,r),p.style.pointerEvents="auto"):"overlay"===Ma.menuView.placement()&&i();var H=!1;return p.openDock=function(e){e=isNaN(e)?Lo:e,Wi===Xi||Wi===Ni?(p.events.dispatchEvent(Wo),p.dock.show(e),clearInterval(g)):"overlay"===Ma.menuView.placement()&&(p.showCloseButton(),p.dock.show(0,function(t){t.display="block",p.menuText.updatePosition(0),qe(t,e,{delay:.15,alpha:1}),f=document.body.style.overflowY,document.body.style.overflowY="hidden"}))},p.closeDock=function(e){e=isNaN(e)?Lo:e,k||Wi!==Xi&&Wi!==Ni?"overlay"===Ma.menuView.placement()&&(p.showMenuIcon(),p.dock.hide(0,function(t){qe(t,e,{delay:.05,alpha:0,onComplete:function(){t.display="none"}}),document.body.style.overflowY=f})):(p.dock.toggleState()&&p.events.dispatchEvent(No),p.dock.hide(e))},p.updateStyle=function(){Wi===Xi?qe(p,p.updateSpeed,{backgroundColor:V(Pi.menuBgColorMobile||Pi.menuBgColor,Pi.menuBgAlphaMobile||Pi.menuBgAlpha)}):Wi===Ni?qe(p,p.updateSpeed,{backgroundColor:V(Pi.menuBgColorTablet||Pi.menuBgColor,Pi.menuBgAlphaTablet||Pi.menuBgAlpha)}):qe(p,0,{backgroundColor:V(Ma.menuView.menuBgColor(),Ma.menuView.menuBgAlpha())})},p.updatePosition=function(t){var n="layoutModelChange"===t,o=isNaN(t)?p.updateSpeed:t;p.position=Ma.menuView.menuPositionFixed()||"overlay"===Ma.menuView.placement()?"fixed":"absolute",p.element.style["mix-blend-mode"]=u();var a=q(p,"menuText.height")||0,r=xa.menuView.height()-xa.menuText.y(a),l=xa.menuText.y(a);if(Wi===Xi?r=xa._footerHeight?xa.menuView.height()-xa.menuText.y(a)-xa._footerHeight-2*xa.mobileFooterPadding:xa.menuView.height()-xa.menuText.y(a):r>xa.menuView.height()&&(r=xa.menuView.height(),l=0),Wi!==Ni&&Wi!==Xi&&Pi.navbarAlignHorizontal===Ma.menuView.placement()&&"bottom"===Pi.navbarAlignVertical&&xa._navbarVisible){var s=12;r=xa.navbarView.y()-E(Pi.sitePaddingTop,wa.height)-l-Pi.menuOffsetY-s}Wi===Ni||Wi===Xi?(v.x=xa.menuView.width()+16,v.y=16):"overlay"===Ma.menuView.placement()?v&&!n||i():v&&(p.dock.show(0,function(e){e.display="block",qe(e,o,{alpha:1})}),/overlay/.test(Ma.menuView.placement())?wa.removeChild(v):e.parentView.removeChild(v),v=null);var d=oe()&&"overlay"===Ma.menuView.placement()?250:0;qe(p,o,{width:xa.menuView.width(),height:xa.menuView.height()+d}),Wi===Xi?(qe(m,o,{width:xa.menuView.width(),height:xa.menuView.height(),y:0}),p.menuText&&qe(p.menuText,o,{y:l})):qe(m,o,{width:xa.menuView.width(),height:r,y:l}),p.updateSpeed=Lo,P.width=wa.width,P.height=wa.height,Wi===Ni||Wi===Xi?p.dock.side="left":p.dock.side=Ma.menuView.placement(),p.dock.align=$()?"top":"left",p.dock.margin=Q()?xa.menuView.y():xa.menuView.x(),p.dock.pOffset=Q()?xa.menuView.x():xa.menuView.y(),p.dock.disableResize="overlay"===Ma.menuView.placement(),p.dock.resize(b?0:Lo),setTimeout(function(){p.scroll&&p.scroll.resize()},1e3*Lo)},p.addContent=function(e){p.mask.addChild(e),setTimeout(function(){p.updateScroll()},1e3*Lo)},p.removeContent=function(e){p.mask.removeChild(e),setTimeout(function(){p.updateScroll()},1e3*Lo)},p.updateScroll=function(){if((oe()||le())&&(m.element.style["-webkit-overflow-scrolling"]="touch"),"native"===Pi.menuScrollType)p.style.pointerEvents="auto",!$()&&Pi.dropdownSubMenu?m.element.style.overflow="visible":$()?(m.element.style.overflowY="scroll",m.element.style.overflowX="hidden"):(m.element.style.overflowY="hidden",m.element.style.overflowX="scroll");else if(ia&&("nativeMacOs"===Pi.menuScrollType||Pi.globalSmoothScroll||Wi===Xi))p.style.pointerEvents="auto",!$()&&Pi.dropdownSubMenu?m.element.style.overflow="visible":$()?(m.element.style.overflowY="scroll",m.element.style.overflowX="hidden"):m.element.style.overflow="auto";else if($()||!Pi.dropdownSubMenu){p.scroll&&p.scroll.destroy(),m.overflow="hidden";var e=Pi.menuScrollbarWidth,t="right"===Pi.menuScrollbarAlign?-e:-E(Pi.menuWidth,wa.width),i=["bar","wheel","touch"],n=E(Ma.menuView.menuTextPaddingHorizontal(),wa.width),o={name:"menu",types:i,axis:$()?"y":"x",align:$()?"top":Ma.menuView.menuTextAlignHorizontal(),alpha:Pi.menuScrollbarBgAlpha,color:Pi.menuScrollbarColor,hover:Pi.menuScrollbarHover,side:Pi.menuScrollbarAlignment,width:e,topPad:0,margin:$()?2:n,offsetX:$()?t:0,zIndex:500,rounded:Ma.overrides.thumbnailScrollbarRounded,visibility:Ma.overrides.thumbnailScrollbarVisibility};("nativeMacOs"===Pi.menuScrollType||Pi.globalSmoothScroll)&&(o.color="#000000",o.hover="#000000",o.side="right",o.alpha=0,o.width=7,o.offsetX=-10,o.offsetY=0,o.rounded=!0,o.visibility="when scrolling"),p.scroll=new Re(p.menuText,m,o)}else p.style.pointerEvents="auto",m.element.style.overflow="visible"},p.updateStyle(),p}function Ei(e){function i(){_.text="",_.children=[],X=new Le(e),X.alpha=0,Wi===Xi?X.gap=0:Wi===Ni?X.gap=E(K(Pi.menuTextGapTablet,Ma.menuView.menuTextGap()),100):X.gap=E(Ma.menuView.menuTextGap(),100),Pi.menuExpandAll?X.expand="all":X.expand="single",X.toggle=!1,X.wrap=!1;var t=Wi===Ni?Pi.menuTextAlignHorizontalTablet||"left":Ma.menuView.menuTextAlignHorizontal(),i=t;Wi===Xi?i="left":/top|bottom/.test(Ma.menuView.placement())&&Wi!==Ni&&(i="top"),X.align=i,X.updateSpeed=_.updateSpeed,X.axis=$()?"y":"x",X.perpLength=$()?_.height:_.width,X.animate=!1,_.addChild(X),s(G,!1,X,!1),_.width=X.width,_.height=X.height,X.addEventListener(An,r),r(),X.layout(),W&&_.selectMenuItem(),setTimeout(function(){o(),a(),_.events.dispatchEvent(Yo),Q=0},Q)}function o(){I(),X.perpLength=$()?_.height:_.width,X.layout()}function a(){setTimeout(function(){qe(X,Lo,{alpha:1})},350)}function r(e){e&&(_.width=e.width,_.height=e.height),_.x=Math.round(xa.menuText.x(_.width)),_.events.dispatchEvent(Zo)}function s(e,t,i,o){i.parentLabel=o;for(var a=0,r=e.length;a-1){var o=e.split(",");t=o[0].split("=")[1];var a=o[1].split("x");i=Number(a[0].split("=")[1]),n=Number(a[1])}else t=e.split("=")[1];return{path:t,width:i,height:n}}function C(e){var t=g(e.label),i=new Ke;return i.src=Bi.cdnSslUri+"/"+t.path,i.width=t.width,i.height=t.height,i.customLabel=e.label.toLowerCase(),i.cursor="pointer",i}function w(e){var t=ua[e.label.toLowerCase()],i=new Ke;return i.src=go+t.filename,i.width=t.width,i.height=t.height,i.style.padding="2px 0",i.socialLabel=e.label.toLowerCase(),i.cursor="pointer",i}function y(e){switch(Pi.footerIconShape){case"standard":return e.svgStdPath;case"rectangle":return e.svgRectPath;case"circle":return e.svgCircPath}}function L(e){var t=ua[e.label.toLowerCase()],i=new La;i.identity="menu",i.element.setAttribute("data-identity","menu");var n=new La({type:"g"});n.identity="menu",n.element.setAttribute("data-identity","menu");var o=new nt;o.identity="menu",o.element.setAttribute("data-identity","menu");var a=Wi===Ni||Wi===Xi?1:Pi.footerIconScale;if(n.scale=a,/circle|rectangle/.test(Pi.footerIconShape)){var r=new ot;r.rx="circle"===Pi.footerIconShape?t.bgCircRadius:t.bgRectRadius,r.width=t.width,r.height=t.height,r.fill=Pi.footerIconColor,n.addChild(r)}return o.d=y(t),o.fill="standard"===Pi.footerIconShape?Pi.footerIconColor:Pi.footerIconBgColor,o.fillRule="evenodd",n.addChild(o),i.addChild(n),i.width=t.width*a,i.height=t.height*a,i.socialLabel=e.label.toLowerCase(),i}function x(e,t){var i="%spacer%"===e.toLowerCase()?"span":"a",n=new Ca({type:i});return n.identity="menu",n.element.setAttribute("data-identity","menu"),n.element.setAttribute("class","menuLabel"),n.element.style["user-select"]="none",Wi===Xi?(t?(n.fontFamily=Pi.menuSubFontMobile||Pi.menuFontMobile||Pi.menuFont,n.fontSize=Pi.menuSubFontSizeMobile||Pi.menuFontSizeMobile||Pi.menuSubFontSize,n.textTransform=Pi.menuSubTextTransform||"none"):(n.fontFamily=Pi.menuFontMobile||Pi.menuFont,n.fontSize=Pi.menuFontSizeMobile||Pi.menuFontSize,n.textTransform=Pi.menuTextTransform||"none"),n.fontColor=Pi.menuFontColorMobile||Pi.menuFontColor):Wi===Ni?(t?(n.fontFamily=Pi.menuSubFontTablet||Pi.menuFontTablet||Pi.menuFont,n.fontSize=Pi.menuSubFontSizeTablet||Pi.menuFontSizeTablet||Pi.menuSubFontSize,n.textTransform=Pi.menuSubTextTransform||"none"):(n.fontFamily=Pi.menuFontTablet||Pi.menuFont,n.fontSize=Pi.menuFontSizeTablet||Pi.menuFontSize,n.textTransform=Pi.menuTextTransform||"none"),n.fontColor=Pi.menuFontColorTablet||Pi.menuFontColor):(t?(n.fontFamily=Pi.menuSubFont||Pi.menuFont,n.fontSize=Ma.menuView.menuSubFontSize(),n.textTransform=Pi.menuSubTextTransform||"none"):(n.fontFamily=Pi.menuFont,n.fontSize=Ma.menuView.menuFontSize(),n.textTransform=Pi.menuTextTransform||"none"),n.fontColor=Ma.menuView.menuFontColor()),n.fontStyle=Pi.menuFontStyle||"normal",n.letterSpacing=Pi.menuKerning,n.textWrap=Wi===Xi,n.text="%spacer%"===e.toLowerCase()?" ":e,n.label=n,"%spacer%"!==e.toLowerCase()&&(n.cursor="pointer"),n}function M(e){var t=isNaN(Pi.menuIndentMobile)?20:Pi.menuIndentMobile,i=isNaN(Pi.menuSubIndentMobile)?t+10:t+Pi.menuSubIndentMobile;return e?i:t}function T(e,t){var i,n=Pi.menuTextAlignHorizontalMobile?Pi.menuTextAlignHorizontalMobile:"left",o=M(t),a=""===Pi.menuLinesMobile||void 0===Pi.menuLinesMobile||Pi.menuLinesMobile,r=Pi.menuLineHeightMobile||60;switch(n){case"left":i="flex-start";break;case"center":i="center";break;case"right":i="flex-end"}var l=new Ca;return l.identity="menu",l.element.setAttribute("data-identity","menu"),l.addChild(e),l.label=e,l.width=xa.menuView.width(),l.minHeight=r,l.position="relative",l.display="flex",l.style.justifyContent=i,l.style.alignItems="center",a&&(l.borderBottom="1px solid "+V(Ma.menuView.menuFontColor(),Ma.menuView.menuBgAlpha()+.15)),e.position="relative",xa.menuBullet.updateSize(t),e.x=0,e.y=a?1:0,e.textAlign=n,e.paddingLeft=o,e.paddingRight=o,l}function z(e){var t;if("custom_png"===Pi.menuBulletType)t=new Ke,t.isSub=e,xa.menuBullet.updateSize(e),t.alpha=0,_.addChild(t),t.element.addEventListener(en,function(i){var n={width:i.target.offsetWidth,height:i.target.offsetHeight,filename:this.src};setTimeout(function(){var i=He(n);t.width=i.width,t.height=i.height,xa.menuBullet.width=i.width,xa.menuBullet.height=i.height,t.width=xa.menuBullet.width,e?(t.x=Math.round(-(t.width+15)+Pi.menuSubBulletOffsetHorizontal),t.y=0+Pi.menuSubBulletOffsetVertical):(t.x=Math.round(-(t.width+15)+Pi.menuBulletOffsetHorizontal),t.y=0+Pi.menuBulletOffsetVertical)},10)}),t.src=Bi.cdnSslUri+"/menu-bullet__at__2x.png";else if(/^underline/.test(Pi.menuBulletType)){var i=Number(Pi.menuBulletType.split("_")[1]);t=new Ca,t.identity="menu",t.element.setAttribute("data-identity","menu"),t.isSub=e,t.backgroundColor=V(Ma.menuView.menuFontColor(),0),t.width=0,t.height=i}else t=new Ca,t.identity="menu",t.element.setAttribute("data-identity","menu"),t.isSub=e,xa.menuBullet.updateSize(e),t.fontFamily=Pi.menuFont,t.fontColor=V(Ma.menuView.menuFontColor(),0),t.fontSize=e?Ma.menuView.menuSubFontSize():Ma.menuView.menuFontSize(),t.width=xa.menuBullet.width,t.text=ka[Pi.menuBulletType],e?(t.x=Math.round(-(t.width+15)+Pi.menuSubBulletOffsetHorizontal),t.y=0+Pi.menuSubBulletOffsetVertical):(t.x=Math.round(-(t.width+15)+Pi.menuBulletOffsetHorizontal),t.y=0+Pi.menuBulletOffsetVertical);return t}function k(){var e="inherit"===Ma.menuView.menuSubTextAlignHorizontal()?Ma.menuView.menuTextAlignHorizontal():Ma.menuView.menuSubTextAlignHorizontal();return Wi===Xi?Pi.menuTextAlignHorizontalMobile||"left":Wi===Ni?Pi.menuTextAlignHorizontalTablet||"left":e}function O(){return Wi===Xi?0:Wi===Ni?K(Pi.menuSubIndentTablet,Pi.menuSubIndent):Pi.menuSubIndent}function I(){for(var e=0,t=U.length,i=k(),n=K(Pi.menuSubTextPaddingHorizontal,5);eo.tile.perpLength?a:o.tile.perpLength,o.tile.addItem(a,r)}o.tile.layoutItems();var l=Ma.menuView.menuSubTextGap();Wi===Ni&&(l=K(Pi.menuTextGapTablet,Ma.menuView.menuSubTextGap())),l=E(l,100);for(var s=0;s0){for(c=new Ne({id:"nav"}),c.gap=Pi.navbarGap+2,c.axis="horizontal"===Pi.navbarLayout?"x":"y",c.align="vertical"===Pi.navbarLayout?Pi.navbarJustification:"left",c.wrap=!1,c.perpLength="x"===c.axis?t[0].element.offsetHeight:t[0].element.offsetWidth,e=0;ec.perpLength&&(c.perpLength=o):n>c.perpLength&&(c.perpLength=n),c.addItem(n,o)}for(c.layoutItems(),e=0;e1&&/image|video/.test(p.type)}/fill|hMasonry|vMasonry/.test(C)&&/thumbs/.test(v)?h.hide():e.section.id===Yi&&g?h.hide():(f=e.assetId===-1?0:e.assetId,b>1?(h.show(),window.FOTOMOTO&&p&&"image"===p.type?r(p.content):h.buildNavBtns()):h.hide())},h.buildNavBtns=function(){L=E(Pi.navbarFontSize,100),h.parent.removeChildren(h);for(var e in Di)if(Di.hasOwnProperty(e)){if("fullscreen"===Di[e].type&&!P())continue;if("thumbs"===Di[e].type&&"none"===C)continue;if("fotomoto"===Di[e].type&&!w)continue;if(!/caption|inquiry|fotomoto/.test(Di[e].type)&&Wi===Xi)continue;if(Wi===Xi&&!m)continue;var r=new Ca;h.addChild(r),"caption"===Di[e].type&&p&&(r.alpha=""===p.caption?.35:1),Wi===Xi&&v&&"caption"===v&&"caption"===Di[e].type&&p&&p.caption?(r.label=o("×",L+20),r.addChild(r.label),r.width=r.label.element.offsetWidth,r.height=L+10,r.label.x=0,r.label.y=.5*(L-r.label.element.offsetHeight)):"spacer"===Di[e].type?(r.label=o(" "),r.addChild(r.label),r.width=r.label.element.offsetWidth,r.height=L,r.label.x=0,r.label.y=.5*(L-r.label.element.offsetHeight)):"label"===Di[e].iconType||"count"===Di[e].type?(r.label=o(Di[e].name),r.addChild(r.label),r.width=r.label.element.offsetWidth,r.height=L,r.label.x=0,r.label.y=.5*(L-r.label.element.offsetHeight)):"icon"===Di[e].iconType?(r.icon=a(Di[e].type),r.addChild(r.icon),r.width=r.icon.width,r.height=L,r.icon.left=0,r.icon.top=Math.round(.5*(L-r.icon.height))+Pi.navbarIconOffsetY):"both"===Di[e].iconType&&(r.icon=a(Di[e].type),r.addChild(r.icon),r.label=o(Di[e].name),r.addChild(r.label),"next"===Di[e].type?("vertical"===Pi.navbarLayout?(r.label.x=-3,r.icon.left=Math.round(r.label.element.offsetWidth-Pi.navbarIconOffsetX)):(r.label.x=0,r.icon.left=Math.round(r.label.element.offsetWidth-Pi.navbarIconOffsetX+3)),r.label.y=.5*(L-r.label.element.offsetHeight),r.icon.top=Math.round(.5*(L-r.icon.height)+Pi.navbarIconOffsetY),r.width=r.icon.width+r.label.element.offsetWidth-Pi.navbarIconOffsetX):(r.icon.left=0,r.icon.top=Math.round(.5*(L-r.icon.height)+Pi.navbarIconOffsetY),r.label.x=r.icon.width-Pi.navbarIconOffsetX+3,r.label.y=.5*(L-r.label.element.offsetHeight),r.width=r.icon.width+r.label.element.offsetWidth-Pi.navbarIconOffsetX+3),r.height=L);var l=new Ca;l.width=r.element.offsetWidth,l.height=r.element.offsetHeight,l.type=Di[e].type,l.tooltip=Di[e].tooltip,r.label&&(l.label=r.label),r.icon&&(l.icon=r.icon),r.addChild(l),r.hit=l,"count"===Di[e].type?(u=r,u.label.text=f+1+" of "+b,u.width=u.label.element.offsetWidth,l.width=u.label.element.offsetWidth):"spacer"===Di[e].type||(l.addEventListener(cn,i),l.addEventListener(mn,n),l.addEventListener(Vn,t)),r.label&&(r.label.element.style["user-select"]="none")}Object.keys(Di).length>0&&(d(),h.updatePosition())};return h}function Oi(e){function t(){l=new Ca,l.backgroundColor=Pi.siteBackgroundColor,l.width=wa.width,l.height=wa.height,d.addChild(l)}function i(e,t){var i=new XMLHttpRequest;i.onload=function(){4===i.readyState&&(200===i.status||0==i.status?t(i.responseText):404===i.status&&d.events.dispatchEvent(Xo))},i.open("GET",e,!0),i.send(null)}function n(){var e=/https/.test(Ma.introFile||Pi.introFile)?Ma.introFile||Pi.introFile:Bi.cdnSslUri+"/"+(Ma.introFile||Pi.introFile);/jpeg$|jpg$|gif$|png$/.test(Ma.introFile||Pi.introFile)?(s=new Ke,s.alpha=0,s.addEventListener(en,r),s.addEventListener("error",function(){d.events.dispatchEvent(Xo)}),s.src=e,d.addChild(s)):/htm$|html$/.test(Ma.introFile||Pi.introFile)&&(s=new Ca,s.alpha=0,s.width=wa.width,s.height=wa.height,s.overflow="auto",i(e,function(e){qe(s,1,{alpha:1}),h=Lo,s.text=e}),d.addChild(s))}function o(e){e!==!1&&void 0!==e&&null!==e||(e=1.5),setTimeout(function(){qe(s,e,{alpha:0,onComplete:function(){d.events.dispatchEvent(Xo)}})},1e3*(Pi.introDuration||c))}function a(){return Wi===Xi?Pi.introScaleTypeMobile||Pi.introScaleType:Wi===Ni?Pi.introScaleTypeTablet||Pi.introScaleType:Pi.introScaleType}function r(e){var t=He({width:s.element.offsetWidth,height:s.element.offsetHeight,filename:Ma.introFile||Pi.introFile});Pe(s,0,{type:a(),width:t.width,height:t.height,hRange:wa.width,vRange:wa.height,hAlign:"center",vAlign:"center",disableOrientationCheck:!0,onComplete:function(){qe(s,1,{alpha:1,onComplete:o}),h=Lo}})}var l,s,d=new Ca({events:e.events}),c=1.4,h=(e.parentView,0);return d.element.id="IntroView",d.zIndex=Ma.introView.zIndex,e.events.addEventListener("introFadeOut",o),d.addEventListener(So,function(e){t(),n()}),d.updatePosition=function(e){l.width=wa.width,l.height=wa.height,/htm$|html$/.test(Ma.introFile||Pi.introFile)&&(s.width=wa.width,s.height=wa.height),s&&qe(s,h,{x:.5*(wa.width-s.width),y:.5*(wa.height-s.height)})},d}function Ii(t){function i(e){qe(this,.2,{fontColor:Pa.fontColorLightest,borderBottom:"1px solid "+Pa.bgColorDark,boxShadow:"0 1px 0 0 "+Pa.bgColorDark,ease:"ease-out"}),qe(this.label,.2,{fontSize:12,y:this.y-15,ease:"ease-out"})}function n(e){qe(this,.2,{fontColor:Pa.fontColorLightest,borderBottom:"1px solid "+Pa.bgColorDarkest,boxShadow:"0 1px 0 0 #333",ease:"ease-out"}),this.value||qe(this.label,.2,{fontSize:15,y:this.y+5,ease:"ease-out"})}function o(e){qe(this,.2,{fontColor:Pa.fontColorSelected,ease:"ease-out"})}function a(e){qe(this,.2,{fontColor:Pa.fontColorLight,ease:"ease-out"})}function r(e){qe(this,.2,{fontColor:Pa.fontColorSelected,ease:"ease-out"})}function l(e){qe(this,.2,{fontColor:Pa.fontColorLight,ease:"ease-out"})}function s(){}function d(){}function c(){Bi.adminLockout||new e({url:"/dx/service/login",params:{user:f.value,pass:b.value},callback:p.loginResponse})}function h(){new e({url:"/dx/service/logout",params:{},callback:p.logoutResponse})}function u(e){13===e.which&&c(),f.label.y=f.value?f.y-15:f.y+5,b.label.y=b.value?b.y-15:b.y+5}t=t||{};var p,m=345,v=new Ca;v.width=m,v.height=350,v.borderRadius=4,v.addEventListener(Vn,function(e){e.stopPropagation()});var g=new Ca("h1");g.x=-2,g.y=2,g.width=m,g.height=50,g.fontColor=Pa.fontColorLightest,g.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",g.fontSize=47,g.fontWeight=100,g.text="Photofolio Admin",g.textWrap=!1,g.textAlign="left",g.textShadow="0 1px 0 #333",v.addChild(g);var f=new et;f.x=0,f.y=75,f.width=m,f.height=40,f.fontColor=Pa.fontColor,f.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",f.fontSize=16,f.fontWeight=700,f.value="",f.backgroundColor="transparent",f.borderBottom="1px solid "+Pa.bgColorDarkest,f.boxShadow="0 1px 0 0 #333",f.element.tabIndex=1,v.addChild(f),f.label=new Ca,f.label.x=0,f.label.y=f.value?f.y-15:f.y+5,f.label.fontColor=Pa.fontColorLight,f.label.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",f.label.fontSize=15,f.label.fontWeight=700,f.label.text="email",f.label.pointerEvents="none",v.addChild(f.label);var b=new et;b.x=0,b.y=145,b.width=m,b.height=40,b.fontColor=Pa.fontColor,b.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",b.fontSize=16,b.fontWeight=700,b.value="",b.backgroundColor="transparent",b.borderBottom="1px solid "+Pa.bgColorDarkest,b.boxShadow="0 1px 0 0 #333",b.element.tabIndex=2,b.element.setAttribute("type","password"),v.addChild(b),b.label=new Ca,b.label.x=0,b.label.y=b.value?b.y-15:b.y+5,b.label.fontColor=Pa.fontColorLight,b.label.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",b.label.fontSize=15,b.label.fontWeight=700,b.label.text="password",b.label.pointerEvents="none",v.addChild(b.label);var C=new Je;C.x=0,C.y=220,C.width=m,C.height=45,C.fontColor=Pa.fontColor,C.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",C.fontWeight=400,C.fontSize=13,C.text=Bi.adminLockout?"ADMIN LOCKED FOR MAINTENANCE":"LOGIN",C.textAlign="center",C.element.tabIndex=3,C.borderRadius=3,C.backgroundColor=Bi.adminLockout?"#ff295e":"#2FA0D8",C.fontColor=Pa.bgColorLighter,C.boxShadow="0 2px 5px 0 rgba(0,0,0,0.16)",v.addChild(C),C.addEventListener(cn,function(){qe(this,.2,{backgroundColor:Bi.adminLockout?"#ff295e":"#4bb7ed",boxShadow:"0 10px 20px 0 rgba(0,0,0,0.6)",ease:"ease-out"})}),C.addEventListener(on,function(){qe(this,.2,{backgroundColor:Bi.adminLockout?"#ff295e":"#4bb7ed",boxShadow:"0 10px 20px 0 rgba(0,0,0,0.6)",ease:"ease-out"})}),C.addEventListener(mn,function(){qe(this,.2,{backgroundColor:Bi.adminLockout?"#ff295e":"#2FA0D8",boxShadow:"0 2px 5px 0 rgba(0,0,0,0.16)",ease:"ease-out"})}),C.addEventListener(an,function(){qe(this,.2,{backgroundColor:Bi.adminLockout?"#ff295e":"#2FA0D8",boxShadow:"0 2px 5px 0 rgba(0,0,0,0.16)",ease:"ease-out"})}),f.addEventListener(on,i),f.addEventListener(an,n),b.addEventListener(on,i),b.addEventListener(an,n);var w=new Ca({type:"button"});w.x=.5*m,w.y=270,w.width=.5*m,w.height=50,w.text="CANCEL",w.outline="none",w.border="none",w.fontWeight="bold",w.fontSize=Pa.fontSize,w.fontColor=Pa.fontColorLight,w.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",w.backgroundColor="transparent",w.element.tabIndex=4,v.addChild(w);var y=new Ca({type:"button"});return y.x=0,y.y=270,y.width=.5*m,y.height=50,y.text="FORGOT?",y.outline="none",y.border="none",y.fontWeight="bold",y.fontSize=Pa.fontSize,y.fontColor=Pa.fontColorLight,y.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",y.backgroundColor="transparent",y.element.tabIndex=5,v.addChild(y),w.addEventListener(cn,r),w.addEventListener(mn,l),y.addEventListener(cn,r),y.addEventListener(mn,l),w.addEventListener(on,o),w.addEventListener(an,a),y.addEventListener(on,o),y.addEventListener(an,a),w.addEventListener(Vn,function(e){h(),p.close()}),C.addEventListener(Vn,function(e){c()}),y.addEventListener(Vn,function(t){new e({url:"/dx/service/login/forget",params:{},callback:function(e){ke("Please check your email for password reset instructions.")}})}),p="MSIE"===ra?ke("The Dx admin requires the chrome browser to work properly (the front of your site works with all up to date browsers).",{userOverride:!1,blurLayers:[t.parentView],alpha:.5,onOpen:s,onClose:d}):new ma(v,{userOverride:!1,blurLayers:[t.parentView],backgroundColor:"#000000",alpha:.8,onOpen:s,onClose:d}),p.open(),p.overlayResize(),Wi!==Xi&&Wi!==Ni&&f.focus(),p.loginResponse=function(e){"pass"===e.status?location.assign("/"):C.text="TRY AGAIN"},p.logoutResponse=function(e){e&&location.assign("/")},window.addEventListener("keydown",u,!1),setTimeout(function(){f.label.y=f.value||f.element.focus?f.y-15:f.y+5,b.label.y=f.value?b.y-15:b.y+5},100),p}window.isLogin=!1;var Fi=!1,Ai=window.DX_MODEL.account,Pi=window.DX_MODEL.layout,Hi=window.DX_MODEL.media,Di=window.DX_MODEL.navbar,Ri=window.DX_MODEL.sections,Bi=window.DX_MODEL.settings,ji=window.DX_MODEL.files;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,function(){"use strict";function e(e){var t=this.constructor;return this.then(function(i){return t.resolve(e()).then(function(){return i})},function(i){return t.resolve(e()).then(function(){return t.reject(i)})})}function t(){}function i(e){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function n(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn(function(){var i=1===e._state?t.onFulfilled:t.onRejected;if(null!==i){var n;try{n=i(e._value)}catch(e){return void a(t.promise,e)}o(t.promise,n)}else(1===e._state?o:a)(t.promise,e._value)})):e._deferreds.push(t)}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void r(e);if("function"==typeof n)return void l(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,r(e)}catch(t){a(e,t)}}function a(e,t){e._state=2,e._value=t,r(e)}function r(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,o=e._deferreds.length;o>t;t++)n(e,e._deferreds[t]);e._deferreds=null}function l(e,t){var i=!1;try{e(function(e){i||(i=!0,o(t,e))},function(e){i||(i=!0,a(t,e))})}catch(e){if(i)return;i=!0,a(t,e)}}var s=setTimeout;i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,i){var o=new this.constructor(t);return n(this,new function(e,t,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=i}(e,i,o)),o},i.prototype.finally=e,i.all=function(e){return new i(function(t,i){function n(e,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var l=r.then;if("function"==typeof l)return void l.call(r,function(t){n(e,t)},i)}o[e]=r,0==--a&&t(o)}catch(e){i(e)}}if(!e||"undefined"==typeof e.length)throw new TypeError("Promise.all accepts an array");var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);for(var a=o.length,r=0;o.length>r;r++)n(r,o[r])})},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i(function(t){t(e)})},i.reject=function(e){return new i(function(t,i){i(e)})},i.race=function(e){return new i(function(t,i){for(var n=0,o=e.length;o>n;n++)e[n].then(t,i)})},i._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){s(e,0)},i._unhandledRejectionFn=function(e){void 0!==console&&console&&void 0};var d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in d?d.Promise.prototype.finally||(d.Promise.prototype.finally=e):d.Promise=i}),window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),i=document.getElementsByTagName("script")[0],n=null;t.type="text/css",t.id="matchmediajs-test",i?i.parentNode.insertBefore(t,i):document.head.appendChild(t),n="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle,e={matchMedium:function(e){var i="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=i:t.textContent=i,"1px"===n.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(){if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var e=window.matchMedia,t=e("only all").matches,i=!1,n=0,o=[],a=function(t){clearTimeout(n),n=setTimeout(function(){for(var t=0,i=o.length;t-1}function i(e,t){return e.apply(null,t)}function n(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map(function(e){return parseFloat(e)}):[]}function o(t,i){function o(e){var t=i?i*e/1e3:e;return t=h<1?Math.exp(-t*h*c)*(p*Math.cos(u*t)+m*Math.sin(u*t)):(p+m*t)*Math.exp(-t*c),0===e||1===e?e:1-t}var a=n(t),r=e(K.und(a[0])?1:a[0],.1,100),l=e(K.und(a[1])?100:a[1],.1,100),s=e(K.und(a[2])?10:a[2],.1,100),d=e(K.und(a[3])?0:a[3],.1,100),c=Math.sqrt(l/r),h=s/(2*Math.sqrt(l*r)),u=h<1?c*Math.sqrt(1-h*h):0,p=1,m=h<1?(h*c-d)/u:-d+c;return i?o:function(){var e=q.springs[t];if(e)return e;for(var i=0,n=0;;)if(1===o(i+=1/6)){if(++n>=16)break}else n=0;var a=i*(1/6)*1e3;return q.springs[t]=a,a}}function a(e){return void 0===e&&(e=10),function(t){return Math.round(t*e)*(1/e)}}function r(e,t){if(K.fnc(e))return e;var r=e.split("(")[0],l=$[r],s=n(e);switch(r){case"spring":return o(e,t);case"cubicBezier":return i(J,s);case"steps":return i(a,s);default:return i(l,s)}}function l(e){try{return document.querySelectorAll(e)}catch(e){return}}function s(e,t){for(var i=e.length,n=arguments.length>=2?arguments[1]:void 0,o=[],a=0;a<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}var i,n,o,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(a[1],10)/360,l=parseInt(a[2],10)/100,s=parseInt(a[3],10)/100,d=a[4]||1;if(0==l)i=n=o=s;else{var c=s<.5?s*(1+l):s+l-s*l,h=2*s-c;i=t(h,c,r+1/3),n=t(h,c,r),o=t(h,c,r-1/3)}return"rgba("+255*i+","+255*n+","+255*o+","+d+")"}(e):void 0;var t,i,n,o}function g(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function f(e,t){return K.fnc(e)?e(t.target,t.id,t.total):e}function b(e,t){return e.getAttribute(t)}function C(e,t,i){if(h([i,"deg","rad","turn"],g(t)))return t;var n=q.CSS[t+i];if(!K.und(n))return n;var o=document.createElement(e.tagName),a=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;a.appendChild(o),o.style.position="absolute",o.style.width=100+i;var r=100/o.offsetWidth;a.removeChild(o);var l=r*parseFloat(t);return q.CSS[t+i]=l,l}function w(e,t,i){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return i?C(e,o,i):o}}function y(e,t){return K.dom(e)&&!K.inp(e)&&(b(e,t)||K.svg(e)&&e[t])?"attribute":K.dom(e)&&h(U,t)?"transform":K.dom(e)&&"transform"!==t&&w(e,t)?"css":null!=e[t]?"object":void 0}function L(e){if(K.dom(e)){for(var t,i=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,o=new Map;t=n.exec(i);)o.set(t[1],t[2]);return o}}function S(e,i,n,o){var a,r=t(i,"scale")?1:0+(t(a=i,"translate")||"perspective"===a?"px":t(a,"rotate")||t(a,"skew")?"deg":void 0),l=L(e).get(i)||r;return n&&(n.transforms.list.set(i,l),n.transforms.last=i),o?C(e,l,o):l}function x(e,t,i,n){switch(y(e,t)){case"transform":return S(e,t,n,i);case"css":return w(e,t,i);case"attribute":return b(e,t);default:return e[t]||0}}function M(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=g(e)||0,o=parseFloat(t),a=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return o+a+n;case"-":return o-a+n;case"*":return o*a+n}}function T(e,t){if(K.col(e))return v(e);if(/\s/g.test(e))return e;var i=g(e),n=i?e.substr(0,e.length-i.length):e;return t?n+t:n}function V(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function E(e){for(var t,i=e.points,n=0,o=0;o0&&(n+=V(t,a)),t=a}return n}function z(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return a=e,2*Math.PI*b(a,"r");case"rect":return 2*b(o=e,"width")+2*b(o,"height");case"line":return V({x:b(n=e,"x1"),y:b(n,"y1")},{x:b(n,"x2"),y:b(n,"y2")});case"polyline":return E(e);case"polygon":return i=(t=e).points,E(t)+V(i.getItem(i.numberOfItems-1),i.getItem(0))}var t,i,n,o,a}function k(e,t){var i=t||{},n=i.el||function(e){for(var t=e.parentNode;K.svg(t)&&K.svg(t.parentNode);)t=t.parentNode;return t}(e),o=n.getBoundingClientRect(),a=b(n,"viewBox"),r=o.width,l=o.height,s=i.viewBox||(a?a.split(" "):[0,0,r,l]);return{el:n,viewBox:s,x:s[0]/1,y:s[1]/1,w:r/s[2],h:l/s[3]}}function O(e,t){function i(i){void 0===i&&(i=0);var n=t+i>=1?t+i:0;return e.el.getPointAtLength(n)}var n=k(e.el,e.svg),o=i(),a=i(-1),r=i(1);switch(e.property){case"x":return(o.x-n.x)*n.w;case"y":return(o.y-n.y)*n.h;case"angle":return 180*Math.atan2(r.y-a.y,r.x-a.x)/Math.PI}}function I(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=T(K.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:K.str(e)||t?n.split(i):[]}}function F(e){return s(e?d(K.arr(e)?e.map(c):c(e)):[],function(e,t,i){return i.indexOf(e)===t})}function A(e){var t=F(e);return t.map(function(e,i){return{target:e,id:i,total:t.length,transforms:{list:L(e)}}})}function P(e,t){var i=u(t);if(/^spring/.test(i.easing)&&(i.duration=o(i.easing)),K.arr(e)){var n=e.length;2!==n||K.obj(e[0])?K.fnc(t.duration)||(i.duration=t.duration/n):e={value:e}}var a=K.arr(e)?e:[e];return a.map(function(e,i){var n=K.obj(e)&&!K.pth(e)?e:{value:e};return K.und(n.delay)&&(n.delay=i?0:t.delay),K.und(n.endDelay)&&(n.endDelay=i===a.length-1?t.endDelay:0),n}).map(function(e){return m(e,i)})}function H(e,t){var i=[],n=t.keyframes;for(var o in n&&(t=m(function(e){for(var t=s(d(e.map(function(e){return Object.keys(e)})),function(e){return K.key(e)}).reduce(function(e,t){return e.indexOf(t)<0&&e.push(t),e},[]),i={},n=function(n){var o=t[n];i[o]=e.map(function(e){var t={};for(var i in e)K.key(i)?i==o&&(t.value=e[i]):t[i]=e[i];return t})},o=0;o2||(C=Math.round(C*m)/m)),v.push(C)}var L=p.length;if(L){f=p[0];for(var S=0;S0&&(V.began=!0,d("begin")),!V.loopBegan&&V.currentTime>0&&(V.loopBegan=!0,d("loopBegin")),u<=s&&0!==V.currentTime&&l(0),(u>=c&&V.currentTime!==a||!a)&&l(a),u>s&&u=a&&(S=0,V.remaining&&!0!==V.remaining&&V.remaining--,V.remaining?(L=x,d("loopComplete"),V.loopBegan=!1,"alternate"===V.direction&&n()):(V.paused=!0,V.completed||(V.completed=!0,d("loopComplete"),d("complete"),!V.passThrough&&"Promise"in window&&(T(),i(V)))))}void 0===t&&(t={});var h,u,v,g,f,b,C,w,y,L=0,S=0,x=0,M=0,T=null,V=(v=p(Z,u=t),g=p(G,u),f=H(g,u),b=A(u.targets),C=B(b,f),w=j(C,g),y=ee,ee++,m(v,{id:y,children:[],animatables:b,animations:C,duration:w.duration,delay:w.delay,endDelay:w.endDelay}));return i(V),V.reset=function(){var e=V.direction;V.passThrough=!1,V.currentTime=0,V.progress=0,V.paused=!0,V.began=!1,V.loopBegan=!1,V.changeBegan=!1,V.completed=!1,V.changeCompleted=!1,V.reversePlayback=!1,V.reversed="reverse"===e,V.remaining=V.loop,h=V.children;for(var t=M=h.length;t--;)V.children[t].reset();(V.reversed&&!0!==V.loop||"alternate"===e&&1===V.loop)&&V.remaining++,l(V.reversed?V.duration:0)},V.set=function(e,t){return R(e,t),V},V.tick=function(e){x=e,L||(L=x),c((x+(S-L))*_.speed)},V.seek=function(e){c(o(e))},V.pause=function(){V.paused=!0,a()},V.play=function(){V.paused&&(V.completed&&V.reset(),V.paused=!1,te.push(V),a(),Y||ne())},V.reverse=function(){n(),a()},V.restart=function(){V.reset(),V.play()},V.reset(),V.autoplay&&V.play(),V}function W(e,t){for(var i=t.length;i--;)h(e,t[i].animatable.target)&&t.splice(i,1)}var N,X,Y,Z={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},G={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},U=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],q={CSS:{},springs:{}},K={arr:function(e){return Array.isArray(e)},obj:function(e){return t(Object.prototype.toString.call(e),"Object")},pth:function(e){return K.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||K.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return K.hex(e)||K.rgb(e)||K.hsl(e)},key:function(e){return!Z.hasOwnProperty(e)&&!G.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}},J=function(){function e(e,t){return 1-3*t+3*e}function t(e,t){return 3*t-6*e}function i(e){return 3*e}function n(n,o,a){return((e(o,a)*n+t(o,a))*n+i(o))*n}function o(n,o,a){return 3*e(o,a)*n*n+2*t(o,a)*n+i(o)}var a=11,r=1/(a-1);return function(e,t,i,l){function s(t){for(var l=0,s=1,c=a-1;s!==c&&d[s]<=t;++s)l+=r;var h=l+(t-d[--s])/(d[s+1]-d[s])*r,u=o(h,e,i);return u>=.001?function(e,t,i,a){for(var r=0;r<4;++r){var l=o(t,i,a);if(0===l)return t;t-=(n(t,i,a)-e)/l}return t}(t,h,e,i):0===u?h:function(e,t,i,o,a){for(var r,l,s=0;(r=n(l=t+(i-t)/2,o,a)-e)>0?i=l:t=l,Math.abs(r)>1e-7&&++s<10;);return l}(t,l,l+r,e,i)}if(0<=e&&e<=1&&0<=i&&i<=1){var d=new Float32Array(a);if(e!==t||i!==l)for(var c=0;c<.5?t(e,i)(2*n)/2:1-t(e,i)(-2*n+2)/2}}}),N),Q={css:function(e,t,i){ return e.style[t]=i},attribute:function(e,t,i){return e.setAttribute(t,i)},object:function(e,t,i){return e[t]=i},transform:function(e,t,i,n,o){if(n.list.set(t,i),t===n.last||o){var a="";n.list.forEach(function(e,t){a+=t+"("+e+") "}),e.style.transform=a}}},ee=0,te=[],ie=[],ne=function(){function e(){Y=requestAnimationFrame(t)}function t(t){var i=te.length;if(i){for(var n=0;n-1&&(te.splice(a,1),i=te.length)}else o.tick(t);n++}e()}else Y=cancelAnimationFrame(Y)}return e}();return"undefined"!=typeof document&&document.addEventListener("visibilitychange",function(){document.hidden?(te.forEach(function(e){return e.pause()}),ie=te.slice(0),_.running=te=[]):ie.forEach(function(e){return e.play()})}),_.version="3.1.0",_.speed=1,_.running=te,_.remove=function(e){for(var t=F(e),i=te.length;i--;){var n=te[i],o=n.animations,a=n.children;W(t,o);for(var r=a.length;r--;){var l=a[r],s=l.animations;W(t,s),s.length||l.children.length||a.splice(r,1)}o.length||a.length||n.pause()}},_.get=x,_.set=R,_.convertPx=C,_.path=function(e,t){var i=K.str(e)?l(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:k(i),totalLength:z(i)*(n/100)}}},_.setDashoffset=function(e){var t=z(e);return e.setAttribute("stroke-dasharray",t),t},_.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?r(t.easing):null,o=t.grid,a=t.axis,l=t.from||0,s="first"===l,d="center"===l,c="last"===l,h=K.arr(e),u=h?parseFloat(e[0]):parseFloat(e),p=h?parseFloat(e[1]):0,m=g(h?e[1]:e)||0,v=t.start||0+(h?u:0),f=[],b=0;return function(e,t,r){if(s&&(l=0),d&&(l=(r-1)/2),c&&(l=r-1),!f.length){for(var g=0;g<0?-1*e:-e:Math.abs(b-e)}))}return v+(h?(p-u)/b:u)*(Math.round(100*f[t])/100)+m}},_.timeline=function(e){void 0===e&&(e={});var t=_(e);return t.duration=0,t.add=function(i,n){function o(e){e.passThrough=!0}var a=te.indexOf(t),r=t.children;a>-1&&te.splice(a,1);for(var l=0;l1,po=!!("ontouchstart"in window||window.navigator.maxTouchPoints),mo="media/original/",vo="https://33acda504924667afc4c-95ab99cbba1f87315d458f4e201677b2.ssl.cf1.rackcdn.com",go=vo+"/icon/",fo="transitionStart",bo="transitionEnd",Co="loadedmetadata",wo="vimeoMetadataLoaded",yo="mediaLoaded",Lo=.5,So="childAdded",xo="drop",Mo="dragenter",To="dragleave",Vo="dragover",Eo=[rn,ln,sn,dn,fn,bn,cn,hn,un,pn,mn,Vn,En,en,Qi,on,an,Mo,Vo,To,xo],zo={custom:{},small:{width:100,height:66},medium:{width:200,height:133},large:{width:300,height:200},xLarge:{width:400,height:266},xxLarge:{width:500,height:333},small_sq:{width:100,height:100},medium_sq:{width:200,height:200},large_sq:{width:300,height:300},xLarge_sq:{width:400,height:400},xxLarge_sq:{width:500,height:500},small_v:{width:66,height:100},medium_v:{width:133,height:200},large_v:{width:200,height:300},xLarge_v:{width:266,height:400},xxLarge_v:{width:333,height:500}},ko="contactFormSubmit",Oo="siteServiceContactFormSubmit",Io="contactFormSent",Fo="shareFormSubmit",Ao="siteServiceShareFormSubmit",Po="shareFormSent",Ho="inquiryFormSubmit",Do="siteServiceInquiryFormSubmit",Ro="inquiryFormSent",Bo="touchNavigationStart",jo="touchNavigationMove",_o="touchNavigationEnd",Wo="menuDockOpen",No="menuDockClose",Xo="introComplete",Yo="menuBuilt",Zo="menuSizeChange",Go="addressSectionChange",Uo="addressOverlayChange",qo="addressAssetChange",Ko="navbarNavClick",Jo="navbaOverlayBtnClick",$o="adminMouseDown",Qo="adminMouseUp",ea="siteServiceGetFile",ta="pageLoaded",ia="macScrollbars",na={linear:"linear",sine:{in:"cubic-bezier(0.47, 0, 0.745, 0.715)",out:"cubic-bezier(0.39, 0.575, 0.565, 1)",inOut:"cubic-bezier(0.445, 0.05, 0.55, 0.95)"},quad:{in:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",out:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",inOut:"cubic-bezier(0.455, 0.03, 0.515, 0.955)"},cubic:{in:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",out:"cubic-bezier(0.215, 0.61, 0.355, 1)",inOut:"cubic-bezier(0.645, 0.045, 0.355, 1)"},quart:{in:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",out:"cubic-bezier(0.165, 0.84, 0.44, 1)",inOut:"cubic-bezier(0.77, 0, 0.175, 1)"},quint:{in:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",out:"cubic-bezier(0.23, 1, 0.32, 1)",inOut:"cubic-bezier(0.86, 0, 0.07, 1)"},expo:{in:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",out:"cubic-bezier(0.19, 1, 0.22, 1)",inOut:"cubic-bezier(1, 0, 0, 1)"},circ:{in:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",out:"cubic-bezier(0.075, 0.82, 0.165, 1)",inOut:"cubic-bezier(0.785, 0.135, 0.15, 0.86)"},back:{in:"cubic-bezier(0.6, -0.28, 0.735, 0.045)",out:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",inOut:"cubic-bezier(0.68, -0.55, 0.265, 1.55)"}},oa={E:2.718281828459045,LN2:.6931471805599453,LN10:2.302585092994046,LOG2E:1.4426950408889634,LOG10E:.4342944819032518,PI:3.141592653589793,SQRT1_2:.7071067811865476,SQRT2:1.4142135623730951,floor:Math.floor,ceil:Math.ceil,round:Math.round,abs:Math.abs,pow:Math.pow,max:Math.max,min:Math.min,random:Math.random,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,cos:Math.cos,exp:Math.exp,log:Math.log,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan};window.requestAnimationFrame=window.requestAnimationFrame||function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}(),window.cancelAnimationFrame=window.cancelAnimationFrame||function(){return window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){window.clearTimeout(e)}}(),window.performance=window.performance||{},performance.now=function(){return performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return(new Date).getTime()}}();var aa=function(){var e=_i.toLowerCase();return/windows/.test(e)?"Windows":/macintosh/.test(e)?"Macintosh":/linux/.test(e)?"Linux":"Other"}(),ra=function(){var e=_i.toLowerCase();return/mobile/.test(e)?"Mobile "+ie(e):ie(e)}(),la=function(){var e,t=navigator.userAgent,i=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(i[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],Number(e[1])):"Chrome"===i[1]&&(e=t.match(/\bOPR\/(\d+)/)||t.match(/\bEdge\/(\d+)/),null!=e)?Number(e[1]):(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&i.splice(1,1,e[1]),Number(i[1]))}();Wi=function(){return le()&&!Bi.padUseDesktop?Ni:oe()&&!Bi.podUseDesktop?Xi:Ui}(),de();var sa={8:Tn,13:Mn,27:Sn,32:xn,37:Cn,38:wn,39:yn,40:Ln,16:zn,91:kn,93:kn,224:kn,17:On,65:"a",72:"h",77:"m"},da={DELETE:8,ENTER:13,ESCAPE:27,SPACE_BAR:32,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,LEFT_ARROW:37,RIGHT_ARROW:39,SHIFT:16,COMMAND:91,COMMAND:93,COMMAND:224,CONTROL:17,a:65,h:72,m:77},ca={filename:"email@2x.png",width:20,height:20,bgRectRadius:3,bgCircRadius:10,svgStdPath:"M17.977,14.762 L13.317,9.71 L17.981,5.038 C18.077,4.941 18.242,5.009 18.242,5.146 L18.242,14.659 C18.242,14.798 18.071,14.865 17.977,14.762 z M10.86,12.171 C10.592,12.439 10.229,12.59 9.851,12.59 L9.838,12.59 C9.453,12.59 9.084,12.437 8.811,12.165 L7.43,10.786 L2.69,15.611 C2.595,15.707 2.663,15.871 2.799,15.871 L17.191,15.871 C17.325,15.871 17.394,15.712 17.304,15.614 L12.559,10.469 L10.86,12.171 z M9.839,11.518 L9.839,11.518 C9.941,11.518 10.037,11.478 10.11,11.405 L17.165,4.338 C17.261,4.242 17.193,4.077 17.056,4.077 L2.597,4.077 C2.461,4.077 2.392,4.242 2.489,4.338 L9.568,11.406 C9.64,11.478 9.736,11.518 9.839,11.518 z M1.692,5.427 L1.692,14.722 C1.692,14.859 1.859,14.927 1.955,14.829 L6.671,10.028 L1.954,5.319 C1.857,5.222 1.692,5.291 1.692,5.427 z",svgRectPath:"M1.99079514,0 C0.891309342,0 0,0.898212381 0,1.99079514 L0,18.0092049 C0,19.1086907 0.898212381,20 1.99079514,20 L18.0092049,20 C19.1086907,20 20,19.1017876 20,18.0092049 L20,1.99079514 C20,0.891309342 19.1017876,0 18.0092049,0 L1.99079514,0 Z M17.9766923,14.7623077 L13.3169231,9.70953846 L17.9809231,5.03761538 C18.0773846,4.941 18.2423846,5.00930769 18.2423846,5.14576923 L18.2423846,14.6585385 C18.2423846,14.7979231 18.0712308,14.8648462 17.9766923,14.7623077 Z M10.8596923,12.1710769 C10.5922308,12.439 10.2291538,12.5896154 9.85053846,12.5896154 L9.83846154,12.5896154 C9.45323077,12.5896154 9.08369231,12.4367692 8.811,12.1645385 L7.42969231,10.7856154 L2.69,15.6105385 C2.59484615,15.7073846 2.66346154,15.871 2.79923077,15.871 L17.1914615,15.871 C17.3249231,15.871 17.3944615,15.7121538 17.304,15.6140769 L12.5590769,10.4688462 L10.8596923,12.1710769 Z M9.83853846,11.5176923 L9.83884615,11.5176923 C9.94115385,11.5176923 10.0373077,11.4777692 10.1096154,11.4053846 L17.1646923,4.33823077 C17.261,4.24169231 17.1926923,4.07692308 17.0563077,4.07692308 L2.59707692,4.07692308 C2.46061538,4.07692308 2.39230769,4.242 2.48892308,4.33838462 L9.56823077,11.4058462 C9.64038462,11.4780769 9.73638462,11.5176923 9.83853846,11.5176923 Z M1.69230769,5.427 L1.69230769,14.7220769 C1.69230769,14.8591538 1.85861538,14.9271538 1.95469231,14.8293846 L6.67115385,10.0281538 L1.95369231,5.31861538 C1.85715385,5.22230769 1.69230769,5.29069231 1.69230769,5.427 Z",svgCircPath:"M10,0 C4.4771525,0 0,4.47593818 0,10 C0,15.5228475 4.47593818,20 10,20 C15.5228475,20 20,15.5240618 20,10 C20,4.4771525 15.5240618,0 10,0 Z M16.9796058,14.8654487 L12.9023077,10.2337436 L16.9833077,5.95114744 C17.0677115,5.86258333 17.2120865,5.92519872 17.2120865,6.05028846 L17.2120865,14.7703269 C17.2120865,14.8980962 17.0623269,14.9594423 16.9796058,14.8654487 Z M10.7522308,12.4901538 C10.5182019,12.73575 10.2005096,12.8738141 9.86922115,12.8738141 L9.85865385,12.8738141 C9.52157692,12.8738141 9.19823077,12.7337051 8.959625,12.4841603 L7.75098077,11.2201474 L3.60375,15.6429936 C3.52049038,15.7317692 3.58052885,15.88175 3.69932692,15.88175 L16.2925288,15.88175 C16.4093077,15.88175 16.4701538,15.736141 16.391,15.6462372 L12.2391923,10.9297756 L10.7522308,12.4901538 Z M9.85872115,11.8912179 L9.85899038,11.8912179 C9.94850962,11.8912179 10.0326442,11.8546218 10.0959135,11.7882692 L16.2691058,5.31004487 C16.353375,5.22155128 16.2936058,5.07051282 16.1742692,5.07051282 L3.52244231,5.07051282 C3.40303846,5.07051282 3.34326923,5.22183333 3.42780769,5.3101859 L9.62220192,11.7886923 C9.68533654,11.8549038 9.76933654,11.8912179 9.85872115,11.8912179 Z M2.73076923,6.30808333 L2.73076923,14.8285705 C2.73076923,14.9542244 2.87628846,15.0165577 2.96035577,14.9269359 L7.08725962,10.5258077 L2.95948077,6.20873077 C2.87500962,6.12044872 2.73076923,6.18313462 2.73076923,6.30808333 Z"},ha={filename:"plus1b@2x.png",width:20,height:20,bgRectRadius:3,bgCircRadius:10,svgStdPath:"M6.336,3.8 C2.955,3.8 0.137,6.618 0.136,10 C0.137,13.382 2.955,16.2 6.336,16.2 C9.859,16.2 12.255,13.664 12.255,10.141 C12.255,9.718 12.255,9.155 12.114,8.732 L6.336,8.732 L6.336,11.127 L9.577,11.127 C9.296,12.537 8.027,13.664 6.336,13.664 C4.364,13.664 2.673,11.973 2.673,10 C2.673,8.027 4.364,6.337 6.336,6.336 C7.182,6.337