-1}function me(e){return pe(e)?!(ya.overrides.videoAutoPlay||ya.overrides.vimeoDefault):!ya.overrides.videoAutoPlay}function ve(e){switch(e){case"fade":case"hSlide":case"mSlide":case"hScroll":case"hScrollNC":case"grid":return"x";case"vSlide":case"vScroll":case"vScrollNC":return"y"}}function ge(e){return"%SPACER%"===e.label}function fe(e){return e&&e.media&&1===e.media.length&&/html|contact/.test(l(e.media[0]).type)}function be(e){var t=h(e);return!b(e)&&(e.isIndex?e.key:t?t.key:e.key)}function Ce(e){return function(){function t(){e.webkitSupportsPresentationMode&&e.webkitSupportsPresentationMode("fullscreen")&&"inline"===e.webkitPresentationMode?e.removeAttribute("controls"):document.isFullscreen||document.webkitIsFullscreen||e.removeAttribute("controls")}document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement?document.webkitExitFullscreen():e.webkitSupportsPresentationMode&&e.webkitSupportsPresentationMode("fullscreen")?(e.webkitSetPresentationMode("fullscreen"),e.setAttribute("controls",!0)):e.requestFullscreen?(e.requestFullscreen(),e.setAttribute("controls",!0)):e.webkitRequestFullscreen&&(e.webkitRequestFullscreen(),e.setAttribute("controls",!0)),document.addEventListener("fullscreenchange",t,!1),document.addEventListener("webkitfullscreenchange",t,!1),e.addEventListener("webkitendfullscreen",t,!1)}}function we(e){function t(e){e.isOpen?o.closeItem(e):o.openItem(e)}function i(){n=new De,n.gap=o.gap,n.axis=o.axis,n.align=o.align,n.wrap=o.wrap,n.perpLength=0}e=e||{};var n,o=new ma(e),a=[];return o.identity="menu",o.element.setAttribute("data-identity","menu"),o.gap=e.gap||1,o.axis=e.axis||"y",o.align=e.align||"left",o.wrap=e.wrap||!1,o.perpLength=e.perpLength||o.width,o.expand="auto",o.toggle=e.toggle||!0,o.updateSpeed=e.updateSpeed||.35,o.animate=e.animate||!0,o.addEventListener(En,o.select),o.addItem=function(e,t,i,n){"all"===o.expand&&(n=!0);var r={container:e,title:t,content:i,isOpen:n||!1,hasSubs:e.hasSubs||!1};"x"===o.axis&&Oi.dropdownSubMenu?oe()||le()?(t.addEventListener("click",function(){o.animate=!0,o.updateSpeed=.25,o.openItem(r)}),i&&i.addEventListener("click",function(){o.closeItem(r)})):(t.addEventListener("mouseover",function(){o.animate=!0,o.updateSpeed=.25,o.openItem(r)}),t.addEventListener("mouseout",function(){o.animate=!0,o.updateSpeed=.25,o.closeItem(r)}),i&&(i.addEventListener("mouseover",function(){o.openItem(r)}),i.addEventListener("mouseout",function(){o.closeItem(r)}))):t.addEventListener(Sn,o.select),a.push(r),t.accordionItem=r,o.addChild(e)},o.select=function(e){for(var i=a.length;i--;)a[i]===this.accordionItem?"y"!==o.axis&&"x"===o.axis&&Oi.dropdownSubMenu||(o.toggle?t(this.accordionItem):this.accordionItem.isOpen||o.openItem(this.accordionItem),o.dispatchEvent(zn,this.accordionItem)):"single"===o.expand&&o.closeItem(a[i]);o.layout(bo)},o.closeItem=function(e){"all"!==o.expand&&(e.isOpen=!1,e.content&&(e.content.overflow="hidden",Ze(e.content,o.animate?o.updateSpeed:0,{height:0}),e.container.height=e.title.element.offsetHeight))},o.openItem=function(e){e.isOpen=!0,e.content&&(Ze(e.content,o.animate?o.updateSpeed:0,{height:e.contentHeight,onComplete:function(){Oi.dropdownSubMenu&&/top|bottom/.test(ya.menuView.placement())||(e.content.overflow="visible")}}),e.container.height=e.title.element.offsetHeight+e.contentHeight)},o.layout=function(e){function t(e,t,i){return e+(t<0?-t:0)+(i+t-e<0?0:i+t-e)}o.updateSpeed=e||0,i();var r,l,s=a.length,d=-o.gap;for(n.perpLength=0,r=0;rn.perpLength?u:n.perpLength:n.perpLength=h>n.perpLength?h:n.perpLength,n.addItem(h,u)}n.layoutItems();var p="x"===o.axis?o.gap+d:0,m="x"===o.axis?0:o.gap+d,v=n.getBounds(),g="x"===o.axis?v.width-o.gap:n.perpLength,f=v.height+("x"===o.axis?0:o.gap+d);for(r=0;rwa.menuView.width()&&(g=C)}}o.width=g,o.height=f,o.dispatchEvent(kn,{width:g,height:f})},o}function ye(e,t,i){var n=new Le({hRange:i.hRange,vRange:i.vRange,hAlign:i.hAlign,vAlign:i.vAlign,width:i.width||e.width,height:i.height||e.height,hOffset:i.hOffset,vOffset:i.vOffset}),o=i.hOrigin||0,a=i.vOrigin||0,r={x:Math.round(n.x+o),y:Math.round(n.y+a),onComplete:i.onComplete,onCompleteParams:i.onCompleteParams,onCompleteScope:i.onCompleteScope,onUpdate:i.onUpdate,onUpdateParams:i.onUpdateParams,onUpdateScope:i.onUpdateScope,onInit:i.onInit,onInitScope:i.onInitScope,onInitParams:i.onInitParams};return Ze(e,t,r),r}function Le(e){e=e||{};var t=e.hRange||0,i=e.vRange||0,n=e.width||0,o=e.height||0,a=e.hAlign||"left",r=e.vAlign||"top",l=e.hOffset||0,s=e.vOffset||0;return{set hRange(e){t=e},set vRange(e){i=e},set width(e){n=e},set height(e){o=e},set hAlign(e){a=e},set vAlign(e){r=e},set hOffset(e){l=e},set vOffset(e){s=e},get x(){return"center"===a?.5*(t-n)+l:"right"===a?t-n-l:l},get y(){return"center"===r||"middle"===r?.5*(i-o)+s:"bottom"===r?i-o-s:s}}}function Se(e){function t(){return{left:{arrow1:{fill:Oi.cursorColor,d:fa.arrow1Left,stroke:Oi.cursorColor,strokeWidth:0},arrow2:{fill:Oi.cursorColor,d:fa.arrow2Left,stroke:Oi.cursorColor,strokeWidth:0},arrow3:{fill:"none",d:fa.arrow3Left,stroke:Oi.cursorColor,strokeWidth:1.5},plus1:{fill:Oi.cursorColor,d:fa.plus1Left,stroke:Oi.cursorColor,strokeWidth:0},plus2:{fill:Oi.cursorColor,d:fa.plus2Left,stroke:Oi.cursorColor,strokeWidth:0},none:{fill:"none",d:"",stroke:"none",strokeWidth:0},disabled:{fill:"none",d:"",stroke:"none",strokeWidth:0}},right:{arrow1:{fill:Oi.cursorColor,d:fa.arrow1Right,stroke:Oi.cursorColor,strokeWidth:0},arrow2:{fill:Oi.cursorColor,d:fa.arrow2Right,stroke:Oi.cursorColor,strokeWidth:0},arrow3:{fill:"none",d:fa.arrow3Right,stroke:Oi.cursorColor,strokeWidth:1.5},plus1:{fill:Oi.cursorColor,d:fa.plus1Right,stroke:Oi.cursorColor,strokeWidth:0},plus2:{fill:Oi.cursorColor,d:fa.plus2Right,stroke:Oi.cursorColor,strokeWidth:0},none:{fill:"none",d:"",stroke:"none",strokeWidth:0},disabled:{fill:"none",d:"",stroke:"none",strokeWidth:0}}}}function i(){var e=ji!==Di&&ji!==Bi&&Oi.cursorIconBlendMode?Oi.cursorIconBlendMode:"normal";v.element.style["mix-blend-mode"]=e}function n(e){S=e||"x"}function o(e){x=!/none|disabled/.test(Oi.navCursorType)&&e}function a(e){return so&&e.touches?e.touches[0].pageX:e.clientX}function r(e){return so&&e.touches?e.touches[0].pageY:e.clientY}function l(){g=new ba,g.left=-20,g.top=-20,g.width=40,g.height=40,v.addChild(g),g.element.style["pointer-events"]="none",v.svg=g,f=new et,f.id="icon",g.addChild(f),f.element.style["pointer-events"]="none",v.iconLeft=f,b=new et,b.id="icon",g.addChild(b),b.element.style["pointer-events"]="none",v.iconCenter=b,v.iconCenter.d=fa.cursorThumbs,C=new et,C.id="icon",g.addChild(C),C.element.style["pointer-events"]="none",v.iconRight=C,s(),va.addEventListener(sn,d),v.listenerAdded=!0}function s(){var e=ji!==Di&&ji!==Bi&&Oi.cursorIconBlendMode?Oi.cursorIconBlendMode:"normal";v.cursorIconStyle=Oi.cursorIconStyle||"arrow2";var t=L.left[v.cursorIconStyle],i=L.right[v.cursorIconStyle];v.element.style["mix-blend-mode"]=e,v.navCursorType=Oi.navCursorType,v.iconLeft.d=t.d,v.iconLeft.fill=t.fill,v.iconLeft.stroke=t.stroke,v.iconLeft.strokeWidth=t.strokeWidth,v.iconCenter.fill=Oi.cursorColor,v.iconRight.d=i.d,v.iconRight.fill=i.fill,v.iconRight.stroke=i.stroke,v.iconRight.strokeWidth=i.strokeWidth}function d(e){if(v.enabled){if(e.target!==g.element&&e.target!==f.element&&e.target!==b.element&&e.target!==C.element){var i=a(e),n=r(e),o=ya.mediaView.x(),l=ya.mediaView.y(),d=ya.mediaView.width(),c=ya.mediaView.height();v.transition=0,v.translateX=i-2,v.translateY=n-2,e.target.navigationCursor&&v.enabled?w||h(e):w&&u(e);var m=x?.333*d:.5*d,M=x?.333*c:.5*c,V="x"===S?m:M,T="x"===S?i-o:n-l,E=V,z=2*V;(Oi.cursorColor!==L.left.arrow1.fill||Oi.cursorIconStyle!==v.cursorIconStyle&&Oi.navCursorType!==v.navCursorType)&&(L=t(),s()),TE&&Tz)&&(v.iconLeft.alpha=0,v.iconCenter.alpha=0,v.iconRight.alpha=1,v.svg.rotate="y"===S&&/arrow/.test(v.cursorIconStyle)?90:0,v.type="next")}}else p(e);clearTimeout(y),y=setTimeout(function(){p(e)},5e3)}function c(t){t.target.navigationCursor&&v.enabled&&(v.alpha=0,w=!1,"thumbs"===v.type?e.events.dispatchEvent(Go,v.type):e.events.dispatchEvent(Zo,{navDir:v.type}))}function h(e){"cursor"===Oi.navCursorType?(w=!0,v.display="block",v.alpha=.85,/none/.test(Oi.cursorIconStyle)||(e.target.style.cursor="none",v.iconLeft.cursor="none",v.iconCenter.cursor="none",v.iconRight.cursor="none",v.svg.cursor="none",v.cursor="none"),M||(va.element.addEventListener(Sn,c),va.element.addEventListener("contextmenu",m),va.element.addEventListener("dragstart",m),M=!0)):v.display="none"}function u(){w&&(w=!1,v.alpha=0,v.display="none"),M&&(va.element.removeEventListener(Sn,c),va.element.removeEventListener("contextmenu",m),va.element.removeEventListener("dragstart",m),M=!1)}function p(e){w=!1,v.alpha=0,v.display="none",e&&e.target&&e.target.style&&(e.target.style.cursor="default"),v.iconLeft.cursor="default",v.iconCenter.cursor="default",v.iconRight.cursor="default",v.svg.cursor="default",v.cursor="default","disabled"===Oi.navCursorType?v.display="none":M||(va.element.addEventListener(Sn,c),va.element.addEventListener("contextmenu",m),va.element.addEventListener("dragstart",m),M=!0)}function m(e){var t=void 0===Pi.disableRightClick||Pi.disableRightClick;t&&e.preventDefault()}var v=new ma({events:new Ke});v.position="fixed";var g,f,b,C,w,y,L=t(),S="x",x=!1,M=!1;return v.enabled=!0,v.zIndex=999,v.alpha=0,v.display="none",v.addEventListener("cursorAxisUpdate",n),v.addEventListener("cursorThumbsUpdate",o),v.addEventListener("cursorBlendMode",i),v.destroy=function(){va.removeEventListener(sn,d),v.removeEventListener("cursorAxisUpdate",n),v.removeEventListener("cursorThumbsUpdate",o),v.removeEventListener("cursorBlendMode",i),v.iconLeft.cursor="default",v.iconCenter.cursor="default",v.iconRight.cursor="default",v.svg.cursor="default",v.cursor="default",M&&(va.element.removeEventListener(Sn,c),va.element.removeEventListener("contextmenu",m),va.element.removeEventListener("dragstart",m),M=!1),v.text=""},l.call(v),v}function xe(e){var t=new ma,i=t;t.element.className="staticnav",t.axis=e.axis||"x",t.zone=e.zone,t.zIndex=e.zIndex;var n=new ma,o=new ba,a=new ba({type:"g"}),r=new et,l=new ma,s=new ba,d=new ba({type:"g"}),c=new et;n.zIndex=e.zIndex,n.position="absolute",n.width=100*e.scale,n.height=100*e.scale,o.width=100*e.scale,o.height=100*e.scale,n.addEventListener("click",function(){e.prevClick(i)}),r.d=e.paths.prev.d,r.fill=e.paths.prev.fill,r.stroke=e.paths.prev.stroke,r.strokeWidth=e.paths.prev.strokeWidth,o.addChild(a),a.addChild(r),n.addChild(o),l.zIndex=e.zIndex,l.position="absolute",l.width=100*e.scale,l.height=100*e.scale,s.width=100*e.scale,s.height=100*e.scale,l.addEventListener("click",function(){e.nextClick(i)}),c.d=e.paths.next.d,c.fill=e.paths.next.fill,c.stroke=e.paths.next.stroke,c.strokeWidth=e.paths.next.strokeWidth,s.addChild(d),d.addChild(c),l.addChild(s),t.addChild(n),t.addChild(l);var h=ji!==Di&&ji!==Bi&&Oi.cursorIconBlendMode?Oi.cursorIconBlendMode:"normal";return n.element.style["mix-blend-mode"]=h,l.element.style["mix-blend-mode"]=h,t.updateAxis=function(e){t.axis=e,n.element.style.transformOrigin="center",l.element.style.transformOrigin="center","y"===t.axis?(n.position="fixed",l.position="fixed",n.element.style.transform="rotate(90deg)",l.element.style.transform="rotate(90deg)"):(n.position="absolute",l.position="absolute",n.element.style.transform="rotate(0deg)",l.element.style.transform="rotate(0deg)"),t.resize(t.zone)},t.resize=function(i){t.zone=i;var o,r;if("y"===t.axis)switch(e.align){case"start":o={x:i.x,y:i.y},r={x:i.x,y:i.y+i.height-l.height};break;case"end":o={x:i.x+i.width-n.width,y:i.y},r={x:i.x+i.width-l.width,y:i.y+i.height-l.height};break;default:o={x:i.x+(i.width-n.width)/2,y:i.y},r={x:i.x+(i.width-l.width)/2,y:i.y+i.height-l.height}}else switch(e.align){case"start":o={x:i.x,y:i.y},r={x:i.x+i.width-l.width,y:i.y};break;case"end":o={x:i.x,y:i.y+i.height-n.height},r={x:i.x+i.width-l.width,y:i.y+i.height-l.height};break;default:o={x:i.x,y:i.y+(i.height-n.height)/2},r={x:i.x+i.width-l.width,y:i.y+(i.height-l.height)/2}}n.x=o.x+e.offset.prevX,n.y=o.y+e.offset.prevY,l.x=r.x+e.offset.nextX,l.y=r.y+e.offset.nextY,a.scale=e.scale,d.scale=e.scale},t.hide=function(e){switch(e){case"prev":n.display="none";break;case"next":l.display="none";break;default:n.display="none",l.display="none"}},t.show=function(e){switch(e){case"prev":n.display="block";break;case"next":l.display="block";break;default:n.display="block",l.display="block"}},t.resize(e.zone),t.updateAxis(e.axis),t}function Me(e){function t(e){u.text=e.target.tooltip,u.alpha=1,c.width=u.element.offsetWidth+2*y,c.height=u.element.offsetHeight+2*y,d.width=c.width+2*w,d.height=c.height+2*w,V=M+d.height+.5*w,T=M+w}function i(e){S=e.pageX/window.innerWidth;var t=Math.round(d.width*S);t-h.point-bd.width?(h.x=d.width-(w+h.width+b),d.x=e.pageX-d.width+w+h.point+b):(h.x=t-(w-h.width),d.x=e.pageX-t)}function n(e){e.pageY=o-1&&t<=o+1},default:function(e){return e.isInViewport}};this.update=function(e){setTimeout(function(){e&&(o=e),n()},0)}}function Ee(e,t){function i(e){Ze(this,.2,{backgroundColor:Ea.bgColorLighter,fontColor:Ea.fontColorSelected})}function n(e){Ze(this,.2,{backgroundColor:Ea.bgColor,fontColor:Ea.fontColor})}t=t||{};var o=new ma;o.backgroundColor=t.backgroundColor||Ea.bgColorLight,o.width=250,o.height=150,o.borderRadius=4,o.overflow="hidden",o.boxShadow=Ea.shadowDark,o.addEventListener(Sn,function(e){e.stopPropagation()});var a=new ma;a.x=25,a.y=20,a.fontColor=t.fontColor||Ea.fontColor,a.fontFamily="Helvetica Neue, Arial, sans-serif",a.fontSize=15.5,a.selectable=!0,a.text=e,a.textAlign="center";var r=new ma({type:"button"});r.width=65,r.height=40,r.text="OK",r.outline="none",r.border="none",r.fontWeight="bold",r.fontSize=Ea.fontSize,r.fontColor=Ea.fontColor,r.fontFamily="Helvetica Neue, Arial, sans-serif",r.backgroundColor=Ea.bgColor,o.addChild(r),o.addChild(a);var l=[];dx&&q(dx,"site.siteView")&&(l=[q(dx,"site.siteView")]),dx&&q(dx,"admin.adminView")&&(l=[dx.site.siteView,dx.admin.adminView]);var s=new ca(o,{userOverride:t.userOverride||!0,backgroundColor:t.backgroundColor||"#000000",alpha:t.alpha||.5,blurLayers:t.blurLayers||l});s.open(),r.addEventListener(rn,i),r.addEventListener(cn,n),r.addEventListener($i,i),r.addEventListener(en,n),r.addEventListener(Sn,function(e){t.onClose&&t.onClose(),s.close()});var d=r.element.offsetHeight,c=a.element.offsetWidth;return o.width=c+50,a.width=o.width-50,o.height=a.element.offsetHeight+d+50,r.width=o.width,r.y=o.height-d-0,s.overlayResize(),r.focus(),s}function ze(e,t){function i(e){Ze(this,.2,{backgroundColor:Ea.bgColorLighter,fontColor:Ea.fontColorSelected})}function n(e){a.call(this)}function o(e){va.activeFocus&&(a.call(va.activeFocus),va.activeFocus.blur()),Ze(this,.2,{backgroundColor:Ea.bgColorLighter,fontColor:Ea.fontColorSelected})}function a(e){Ze(this,.2,{backgroundColor:Ea.bgColor,fontColor:Ea.fontColor})}t=t||{};var r,l=new ma;l.backgroundColor=t.backgroundColor||Ea.bgColorLight,l.width=t.width||250,l.height=150,l.borderRadius=5,l.overflow="hidden",l.boxShadow=Ea.shadowDark,l.addEventListener(Sn,function(e){e.stopPropagation()});var s=new ma;s.x=25,s.y=23,s.fontColor=t.fontColor||Ea.fontColor,s.fontFamily="Helvetica Neue, Arial, sans-serif",s.fontSize=15.5,s.selectable=!0,s.text=e,s.textAlign="center";var d=new ma({type:"button"});d.width=65,d.height=40,d.text=t.cancelLabel||"CANCEL",d.outline="none",d.border="none",d.fontWeight="bold",d.fontSize=Ea.fontSize,d.fontColor=Ea.fontColor,d.fontFamily="Helvetica Neue, Arial, sans-serif",d.backgroundColor=Ea.bgColor,l.addChild(d);var c=new ma({type:"button"});c.width=65,c.height=40,c.text=t.okLabel||"OK",c.outline="none",c.border="none",c.fontWeight="bold",c.fontSize=Ea.fontSize,c.fontColor=Ea.fontColor,c.fontFamily="Helvetica Neue, Arial, sans-serif",c.backgroundColor=Ea.bgColor,l.addChild(c),l.addChild(s);var h=[dx.site.siteView];dx&&q(dx,"admin.adminView")&&(h=[dx.site.siteView,dx.admin.adminView]);var u=new ca(l,{userOverride:!0,backgroundColor:"#000000",alpha:.5,blurLayers:h,onClose:function(){t.onCancel&&!r&&t.onCancel()}});u.open(),d.addEventListener(rn,o),d.addEventListener(cn,a),c.addEventListener(rn,o),c.addEventListener(cn,a),d.addEventListener($i,i),d.addEventListener(en,n),c.addEventListener($i,i),c.addEventListener(en,n),d.addEventListener(Sn,function(e){t.onCancel&&t.onCancel(),u.close()}),c.addEventListener(Sn,function(e){r=!0,t.onConfirm&&t.onConfirm(),u.close()});var p=c.element.offsetHeight,m=s.element.offsetWidth;return l.width=m+50,s.width=l.width-50,l.height=s.element.offsetHeight+d.element.offsetHeight+p+50,d.width=l.width,d.y=l.height-d.height-p,c.width=l.width,c.y=l.height-p-0,u.overlayResize(),c.focus(),u}function ke(e){function t(){u.width=p,u.height=m,l=new ma,l.backgroundColor=h,l.boxShadow="0px 2px 10px rgba(0,0,0,0.05)",l.borderRadius=2,l.width=p,l.height=m,r=new Je,r.backgroundColor="transparent",r.fontFamily=Oi.menuFont,r.fontColor=c,r.fontSize=16,r.height=m,r.x=0,r.y=0,r.element.style.padding="0px 46px",r.addEventListener($i,a),r.addEventListener(en,o),r.element.addEventListener(Sn,function(e){e.stopPropagation()}),r.element.tabIndex=1,u.setMessage("PASSWORD"),s=new ba;var e=new et;e.d=fa.arrowRight,e.strokeWidth=3,e.fill="none",e.stroke=c,s.addChild(e),s.width=11,s.height=15,s.x=p-.5*(m-s.width),s.y=.5*(m-s.height),s.alpha=.5,s.cursor="pointer",s.addEventListener(rn,function(){Ze(this,bo,{alpha:1})}),s.addEventListener(cn,function(){Ze(this,bo,{alpha:.5})}),r.width=p-m-96,u.addChild(l),u.addChild(r),u.addChild(s);var t=dx&&q(dx,"admin.adminView")?[dx.site.siteView,dx.admin.adminView]:[dx.site.siteView];d=new ca(u,{userOverride:!0,backgroundColor:b,alpha:C,blurLayers:t,zIndex:99}),d.zIndex=99,u.open(),d.onClose=function(){f=!1,r.removeEventListener(mn,i),s.removeEventListener(Sn,n)},u.overlay=d,d.overlayResize(),f=!0}function i(e){f&&13===e.keyCode&&n(e)}function n(t){u.events.dispatchEvent("SITE_SERVICE_PASSWORD_CHECK",{sectionKey:e.section.key,value:r.value})}function o(e){va.isInputFocus=!1,""===r.value&&u.setMessage("PASSWORD")}function a(e){va.isInputFocus=!0,r.value=""}var r,l,s,d,c,h,u=new ma({events:e.events}),p=.9*va.width>800?800:.9*va.width,m=78,v=!(!Oi.inputOverlayFontColor||!Oi.inputOverlayBarColor),g=!(!Oi.menuOverlayFontColor||!Oi.menuOverlayBgColor);v?(c=Oi.inputOverlayFontColor,h=Oi.inputOverlayBarColor):g?(c=Oi.menuOverlayFontColor,
h=Oi.menuOverlayBgColor):(c="#000000",h="#FFFFFF");var f,b=Oi.inputOverlayBgColor||Oi.menuOverlayBgColor||"#000000",C=Oi.inputOverlayBgAlpha||Oi.menuOverlayBgAlpha||.5;return u.updateSpeed=0,u.addEventListener(Co,function(e){}),u.updatePosition=function(e){p=.9*va.width>800?800:.9*va.width,s.x=p-.5*(m-s.width),r.width=p-m-96,l.width=p,u.width=p,u.x=wa.mediaView.x()+.5*(wa.mediaView.width()-p),u.y=wa.mediaView.y()+.5*(wa.mediaView.height()-m),u.updateSpeed=bo},u.close=function(){f=!1,r.removeEventListener(mn,i),s.removeEventListener(Sn,n),d.close()},u.setMessage=function(e){r.value=e},u.open=function(t){t&&(e.section=t),d.open(),setTimeout(function(){r.addEventListener(mn,i),s.addEventListener(Sn,n)},100),f=!0},t(),u}function Oe(e){function t(){b.width=C,b.height=w,h=new ma,h.backgroundColor=f,h.boxShadow="0px 2px 10px rgba(0,0,0,0.05)",h.borderRadius=2,h.width=C,h.height=w,c=new Je,c.backgroundColor="transparent",c.fontFamily=Oi.menuFont,c.fontColor=g,c.fontSize=16,c.height=w,c.x=0,c.y=0,c.element.style.padding="0px 46px",c.addEventListener($i,d),c.addEventListener(en,s),c.element.addEventListener(Sn,function(e){e.stopPropagation()}),c.element.tabIndex=1,b.setMessage("Search"),u=new ba,x=new et,x.d=fa.search,x.fill=g,x.fillRule="evenodd",u.addChild(x),u.width=25,u.height=25,u.x=C-u.width-24,u.y=.5*(w-u.height),u.alpha=.5,u.cursor="pointer",u.addEventListener(rn,function(){Ze(this,bo,{alpha:1})}),u.addEventListener(cn,function(){Ze(this,bo,{alpha:.5})}),c.width=C-w-92,m=new ma,m.display="flex",m.width=C-20,m.x=20,m.y=w,m.zIndex=-1,v=new ba,v.element.style["user-select"]="none",v.alpha=0,v.x=4,v.width=14,v.height=14,v.transition=.25,v.cursor="pointer",v.addEventListener("click",function(){a(c.value),c.value=""}),v.alpha=0,M=new et,M.d=fa.plusSmall,M.strokeWidth=2,M.fill="none",M.stroke=g,v.addChild(M),b.addChild(v),b.addChild(h),b.addChild(c),b.addChild(u),b.addChild(m);var e=dx&&q(dx,"admin.adminView")?[dx.site.siteView,dx.admin.adminView]:[dx.site.siteView];p=new ca(b,{userOverride:!0,backgroundColor:E,alpha:z,blurLayers:e,zIndex:99}),p.onClose=function(){V=!1,c.removeEventListener(mn,r),u.removeEventListener(Sn,l)},b.open(),b.overlay=p,p.overlayResize(),V=!0}function i(e){m.text="",e=e.filter(function(e,t,i){return i.indexOf(e)===t}).map(n),e.forEach(function(e){m.addChild(e)})}function n(e){var t=new ma;t.position="relative",t.backgroundColor=T(f,.35),t.boxShadow="0px 2px 10px rgba(0,0,0,0.05)",t.borderRadius=20,t.display="flex",t.element.style.padding="3px 8px 3px 10px",t.element.style.margin="8px 0 0 8px";var n=new Ue;n.position="relative",n.background="transparent",n.fontSize=12,n.fontFamily=Oi.menuFont,n.color=g,n.text="×",n.alpha=.2,n.top=0,n.cursor="pointer",n.addEventListener(rn,function(){Ze(this,bo,{alpha:1})}),n.addEventListener(cn,function(){Ze(this,bo,{alpha:.2})});var o=new ma;return o.position="relative",o.color=g,o.fontSize=12,o.fontFamily=Oi.menuFont,o.paddingRight=7,o.text=e,n.addEventListener("click",function(){y=y.filter(function(t){return e!==t}),i(y)}),t.addChild(o),t.addChild(n),t}function o(e){return e.replace(/^\s+|\s+$/g,"")}function a(e){""===c.value||c.isPlaceholder||(y=y.concat(c.value.split(",").map(o)),i(y)),v.y=w+4+.5*((m.element.offsetHeight||25)-14)}function r(e){V&&(13===e.keyCode?""===c.value||c.isPlaceholder?y.length&&l():(a(c.value),c.value="",l()):(v.y=w+4+.5*((m.element.offsetHeight||25)-14),v.alpha=""===c.value||c.isPlaceholder?0:1,c.isPlaceholder=!1))}function l(t){c.value&&!c.isPlaceholder&&(y=y.concat(c.value.split(",").map(o))),y.length&&b.events.dispatchEvent("SEARCH_SUBMIT",Object.assign({},e.navEvent,{searchTerm:y.join(","),searchSubmit:!0}))}function s(e){va.isInputFocus=!1,""===c.value&&b.setMessage("Search")}function d(e){va.isInputFocus=!0,c.isPlaceholder&&(c.value="")}var c,h,u,p,m,a,v,g,f,b=new ma({events:e.events}),C=.9*va.width>800?800:.9*va.width,w=78,y=e.tags||[],L=!(!Oi.inputOverlayFontColor||!Oi.inputOverlayBarColor),S=!(!Oi.menuOverlayFontColor||!Oi.menuOverlayBgColor);L?(g=Oi.inputOverlayFontColor,f=Oi.inputOverlayBarColor):S?(g=Oi.menuOverlayFontColor,f=Oi.menuOverlayBgColor):(g="#000000",f="#FFFFFF");var x,M,V,E=Oi.inputOverlayBgColor||Oi.menuOverlayBgColor||"#000000",z=Oi.inputOverlayBgAlpha||Oi.menuOverlayBgAlpha||.5;return b.updateSpeed=0,b.addEventListener(Co,function(e){}),b.updatePosition=function(e){C=.9*va.width>800?800:.9*va.width,u.x=C-u.width-24,c.width=C-w-92,h.width=C,m.width=C,v.y=w+4+.5*((m.element.offsetHeight||25)-14),b.width=C,b.x=wa.mediaView.x()+.5*(wa.mediaView.width()-C),b.y=wa.mediaView.y()+.5*(wa.mediaView.height()-w),b.updateSpeed=bo},b.setMessage=function(e){c.value=e,c.isPlaceholder=!0},b.setTags=function(e){y=e},b.setSortBy=function(e){},b.close=function(){V=!1,c.removeEventListener(mn,r),u.removeEventListener(Sn,l),p.close()},b.blur=function(){c.element.blur()},b.open=function(t){t&&(e.section=t),p.open(),i(y),setTimeout(function(){c.addEventListener(mn,r),u.addEventListener(Sn,l)},100),V=!0},t(),b}function Ie(e,t,i){var n=new Fe({type:i.type,hRange:i.hRange,vRange:i.vRange,width:i.width||e.width,height:i.height||e.height,disableOrientationCheck:i.disableOrientationCheck}),o=new Le({hRange:i.hRange,vRange:i.vRange,hAlign:i.hAlign,vAlign:i.vAlign,width:n.width,height:n.height}),a={x:Math.round(o.x),y:Math.round(o.y),width:n.width,height:n.height,onComplete:i.onComplete,onCompleteParams:i.onCompleteParams,onCompleteScope:i.onCompleteScope,onUpdate:i.onUpdate,onUpdateParams:i.onUpdateParams,onUpdateScope:i.onUpdateScope,onInit:i.onInit,onInitScope:i.onInitScope,onInitParams:i.onInitParams};return i.onComplete&&(a.onComplete=i.onComplete),e&&Ze(e,t,a),{scale:n,align:o}}function Ae(e){function t(e){var t=e.match(/[@]([0-9]*\.?[0-9]+)?[x]/i),i=e.match(/__at__([0-9]*\.?[0-9]+)?x/i);return t?Number(t[1]):i?Number(i[1]):1}var i=e.width,n=e.height,o=t(e.filename);return{width:Math.round(i/o),height:Math.round(n/o)}}function Fe(e){function t(){return m=d/c,"fit"===l||"native"===l?mp}function i(){p=h/u,n(),"fitWidth"===e.type||t()?(h=d,u=d/p):c?(h=c*p,u=c):(h=d,u=d/p),"native"===e.type&&(h>e.width||u>e.height)&&(h=e.width,u=e.height)}function n(){s||o(h,u,d,c)||r(h,u)||(l="fit")}function o(e,t,i,n){return a(e,t)===a(i,n)}function a(e,t){return e>t}function r(e,t){return e===t}e=e||{};var l=e.type||"fit",s=e.disableOrientationCheck||!1,d=e.hRange,c=e.vRange,h=e.width||0,u=e.height||0,p=-1,m=-1;return i(),{set hRange(e){d=e},set vRange(e){c=e},set type(e){l=e},get type(){return l},set width(e){h=e},set height(e){u=e},get width(){return h},get height(){return u}}}function Pe(e,t,i){function n(e,t){e>t?u.alignSave||(u.alignSave=u.align,u.align="width"===u.dim?"left":"top",l=u.alignment()):(u.alignSave&&(u.align=u.alignSave,delete u.alignSave),l=u.alignment())}function o(e,t){e1?1:e,l=e},get position(){return s},set position(e){s=e},get scrollDist(){return d},set scrollDist(e){d=e},get ing(){return c},set ing(e){c=e}};u.perpAxis="x"===i.axis?"y":"x",u.dim="x"===i.axis?"width":"height",u.perpDim="x"===i.axis?"height":"width",u.alpha=isNaN(i.alpha)?.35:i.alpha;var p=!1,m="width"===u.dim?"offsetWidth":"offsetHeight";return u.alignment=function(){switch(u.align){case"middle":case"center":return.5;case"right":case"bottom":return 1;default:return 0}},u.scrollTo=function(e){u.bar&&u.bar.scrollTo(e,0)},u.update=function(t,a,c){t=t||0,p||(p=!0,c||u.dispatchEvent("scrollStart"));var v=u.mask.element[m],g=(u.margin||u.marginTop)+e.element[m]+(u.margin||u.marginBottom);if(g&&v){d=g-v,u.captionScroll?n(g,v):o(g,v),s=-(d*l)+(u.margin||u.marginTop);var f={};e.transition=0,"translate"===u.property?f["translate"+i.axis.toUpperCase()]=ea.round(s):f[i.axis]=ea.round(s),f.ease="cubic-bezier(0.5, 0.5, 0.5, 0.8)",u.hvr&&(f.onUpdate=function(){u.dispatchEvent($n)}),Ze(e,t,f),u.bar&&u.bar.moveHandle(0),u.bar&&"when scrolling"===u.visibility&&(u.bar.show(),u.bar.checkVisible()),clearTimeout(r),r=setTimeout(function(){h||u.dispatchEvent("scrollStop"),u.bar&&"when scrolling"===u.visibility&&(u.bar.hide(),u.bar.checkVisible()),p=!1,u.bar&&u.bar.resize(),h=!1},200)}},u.resize=function(e){u.update(e||0,!1,!0),u.bar&&u.bar.resize()},u.destroy=function(){u.bar&&u.bar.destroy(),u.wheel&&u.wheel.destroy(),u.hvr&&u.hvr.destroy(),u.touch&&u.touch.destroy()},u.hide=function(){u.bar&&(u.bar.hide(),u.bar.checkVisible())},u.show=function(){u.bar&&(u.bar.show(),u.bar.checkVisible())},u.enable=function(){u.disabled=!1,u.bar&&u.bar.enable()},u.disable=function(){u.disabled=!0,u.bar&&u.bar.disable()},u.setAlpha=function(e){u.bar&&u.bar.setAlpha(e)},u.getBack=function(){return u.bar?u.bar.getBack():null},a(),u.resize(),u.update(),ha.register(u),u}function He(e){function t(t){var i="when scrolling"===e.visibility?.5:1;!e.active&&/hidden/.test(e.visibility)&&(i=0),Ze(v,.35,{alpha:i,backgroundColor:e.hover})}function i(t){!e.ing&&/when scrolling|hidden/.test(e.visibility)&&Ze(v,.35,{alpha:0,backgroundColor:e.color})}function n(t){var i="when scrolling"===e.visibility?.5:1;!e.active&&/hidden/.test(e.visibility)&&(i=0),Ze(v,.35,{alpha:i,backgroundColor:e.hover}),u=r(t)-m[e.axis]-v[e.axis],va.addEventListener(dn,a,!1),va.addEventListener(sn,o,!1),va.addEventListener(on,a,!1),va.addEventListener(nn,o,!1)}function o(t){e.ing===!1&&(e.ing=!0,t.preventDefault()),window.getSelection().removeAllRanges(),h=r(t)-u-m[e.axis],e.percent=(h-m[e.axis])/(m[e.dim]-v[e.dim]),e.update(0),e.dispatchEvent($n)}function a(t){setTimeout(function(){e.ing=!1},10),Ze(v,.35,{backgroundColor:e.color}),va.removeEventListener(sn,o),va.removeEventListener(dn,a),va.removeEventListener(on,a,!1),va.removeEventListener(nn,o,!1)}function r(t){return"x"===e.axis?O(t):I(t)}function l(){return"x"===e.axis?e.offsetX:e.offsetY}function s(){return"y"===e.axis?e.offsetX:e.offsetY}var d=e.obj,c=e.mask,h=0,u=0,p=!0,m=this.back=new ma;m.alpha=0,m.selectable=!0,m.backgroundColor=e.color,e.zIndex&&(m.zIndex=e.zIndex),e.parent.addChild(m);var v=this.handle=new ma;v.alpha=0,v.backgroundColor=e.color,e.zIndex&&(v.zIndex=e.zIndex),v.selectable=!1,v.cursor="default",v.borderRadius=e.rounded?Math.ceil(e.width/2):0,v.style.pointerEvents="auto",e.parent.addChild(v),v.addEventListener(rn,t),v.addEventListener(cn,i),v.addEventListener(ln,n),v.addEventListener(tn,n),this.moveHandle=function(t){v.transition=t||0,v[e.axis]=(m[e.dim]-v[e.dim])*e.percent+m[e.axis],"hidden"===e.visibility?v.alpha=0:"when scrolling"===e.visibility?v.alpha=.5:v.alpha=1},this.resize=function(){m.transition=bo,v.transition=bo,m[e.perpDim]=e.width,m[e.dim]=c[e.dim],e.parent===c?m[e.axis]=l():m[e.axis]=c[e.axis]+l(),v[e.perpDim]=e.width,"left"===e.side||"top"===e.side?(m[e.perpAxis]=c[e.perpAxis]-e.width+s(),v[e.perpAxis]=c[e.perpAxis]-e.width+s()):(m[e.perpAxis]=c[e.perpAxis]+c[e.perpDim]+s(),v[e.perpAxis]=c[e.perpAxis]+c[e.perpDim]+s()),this.moveHandle(0),setTimeout(this.checkVisible,0)},this.checkVisible=function(){m.style.transition="opacity 750ms",v.style.transition="opacity 750ms";var t="offset"+e.dim[0].toUpperCase()+e.dim.substr(1),i=c.element[t],n=(e.margin||e.marginTop)+d.element[t]+(e.margin||e.marginBottom),o=i/n*i;o=m[e.dim]?(m.transition=0,m.alpha=0,m.display="none",v.transition=0,v.alpha=0,v.display="none",v[e.dim]=m[e.dim],e.scrollTo(0,0)):(Ze(m,.35,{alpha:0,onComplete:function(){this.dislplay="none"}}),Ze(v,.35,{alpha:0,onComplete:function(){setTimeout(function(){v.dislplay="none"},200),e.scrollTo(0,0)}}))},this.destroy=function(){e.parent.removeChild(v),e.parent.removeChild(m),v.removeEventListener(rn,t),v.removeEventListener(cn,i),v.removeEventListener(ln,n),v.removeEventListener(tn,n)},this.setAlpha=function(e){v.alpha=m.alpha=e},this.getBack=function(){return m},this.scrollTo=function(e){},this.hide=function(){p=!1},this.show=function(){p=!0},this.disable=function(){v.removeEventListener(rn,t),v.removeEventListener(cn,i),v.removeEventListener(ln,n),v.removeEventListener(tn,n)},this.enable=function(){v.addEventListener(rn,t),v.addEventListener(cn,i),v.addEventListener(ln,n),v.addEventListener(tn,n)}}function Re(e){function t(t){e.active&&!e.ing&&e.dispatchEvent("WINDOW_SCROLL_TOP")}function i(t){ha.setActive(e),r=o(t),l=e.percent||0,e.mask.addEventListener(on,a),e.mask.addEventListener(nn,n)}function n(t){e.ing===!1&&(e.ing=!0,ae()&&!Pi.podUseDesktop&&window.scrollTo(0,1),t.preventDefault()),s=o(t)-r,e.percent=-(s/e.scrollDist)+l,e.percent=e.percent<0?0:e.percent,e.percent=e.percent>1?1:e.percent,e.update(0),e.dispatchEvent($n)}function o(t){return"x"===e.axis?so?event.touches[0].pageX:event.clientX:so?event.touches[0].pageY:event.clientY}function a(t){e.ing=!1,e.mask.removeEventListener(on,a),e.mask.removeEventListener(nn,n)}var r=0,l=0,s=0;e.mask.addEventListener(tn,i),ae()&&e.scrollTopCheck&&window.addEventListener("scroll",t),this.destroy=function(){r&&(e.ing=!1,e.mask.removeEventListener(on,a),e.mask.removeEventListener(nn,n))}}function je(e){function t(){var t="offset"+e.dim[0].toUpperCase()+e.dim.substr(1),i=(e.margin||e.marginTop)+e.obj.element[t]+(e.margin||e.marginBottom),n=i-e.mask.element[t];return n>0}function i(){t()&&(s=!0,ha.focusTarget=l,va.addEventListener(un,o,!1),va.addEventListener(hn,o,!1))}function n(){s=!1,va.removeEventListener(un,o,!1),va.removeEventListener(hn,o,!1)}function o(t){if(e.active){var i="x"===e.axis?t.deltaX:t.deltaY;(Math.abs(t.deltaX)>Math.abs(t.deltaY)&&"x"===e.axis||Math.abs(t.deltaY)>Math.abs(t.deltaX)&&"y"===e.axis)&&(e.percent>=0&&e.percent<1&&i>0?(a(i),t.preventDefault()):e.percent>0&&e.percent<=1&&i<0&&(a(i),t.preventDefault()))}}function a(t){t="bottom"===e.align?t=-t:t,isNaN(e.percent)&&(e.percent=0);var i="offset"+e.dim[0].toUpperCase()+e.dim.substr(1),n=(e.margin||e.marginTop)+e.obj.element[i]+(e.margin||e.marginBottom),o=n-e.mask.element[i],a=e.percent+t/o;e.percent=a<0?0:a,e.percent=a>1?1:a,e.update(0),e.dispatchEvent($n)}var r=e.mask,l=this,s=!1;e.active=!1,r.addEventListener(rn,i),r.addEventListener(cn,n),this.destroy=function(){r.removeEventListener(rn,i),s&&n()}}function Be(e){function t(){e.mask.addEventListener(sn,o),va.addEventListener(sn,i)}function i(t){e.mask.hitTestPoint(O(t),I(t))?c=!0:c&&(c=!1,n())}function n(){clearTimeout(r),e.mask.removeEventListener(sn,o),va.removeEventListener(sn,i)}function o(t){l.enabled&&(r=setTimeout(function(){var i="x"===e.axis?t.mouseX:t.mouseY,n="offset"+e.dim[0].toUpperCase()+e.dim.substr(1);s=i/e.mask.element[n],0===s&&i>.5*e.mask.element[n]?s=.98:0===s&&i<.5*e.mask.element[n]&&(s=.15),e.percent=s>.5?1:0;var o=e.position,r=e.obj._private[e.axis],l=Math.abs(o-r),h=Math.abs(l)/e.maxSpeed;if(d+=.1*(h-d),d+=.1*(a()-d),e.update(d,!0),e.dispatchEvent($n),!c){var u,p={};u="x"===e.axis?e.obj.element.offsetLeft:e.obj.element.offsetTop,p[e.axis]=ea.round(u),Ze(e.obj,1,p)}},50))}function a(){var t=s<.5?2*s:s*-2+2;return Math.round(Math.pow(t,5)*e.maxSpeed+e.minSpeed)}var r,l=this,s=0,d=0,c=!1;return l.enabled=!0,l.destroy=n,e.mask.addEventListener(rn,t),l}function De(e){function t(e,t,n){return f.wrap?t:i(e,t,n)}function i(e,t,i){return"x"===e&&"center"===f.align||"y"===e&&"middle"===f.align?.5*(f.perpLength-i):"x"===e&&"right"===f.align||"y"===e&&"bottom"===f.align?f.perpLength-i:t}function n(t){if("y"===f.axis){var i=b[t].width;"thumbs"===e.name&&/fill|vMasonry/.test(e.type)&&(i=r(v+1,f.numberOfColumns)?f.lastColumnWidth:f.gridWidths),f.isWrap=w[g]&&b[t]&&w[g].size+i>f.perpLength,!f.wrap||f.isWrap?(g+=1,v=0):f.wrap&&!f.horizontalMasonry&&(v+=1)}else!f.wrap||C[v]&&b[t]&&C[v].size+b[t].height>f.perpLength?(v+=1,g=0):f.wrap&&(g+=1)}function o(e,t){for(var i=t.length,n=t[0]&&t[0].size?t[0].size:0;i--;)t[0]&&t[i].size<=n&&(n=t[i].size,e=i);return e}function a(e){for(var t=e.length,i=0;t--;)e[t]&&e[t].size>i&&(i=e[t].size);return i}function r(e,t){return e===t-1}function l(e){return!!e.ids.filter(function(e){return b[e].isDoubleSize}).length}function s(e){var t=b[e.ids[0]],i=t.isDoubleSize?Math.round(.5*(t.height-f.vGap)):t.height;return l(e)?2*i+f.vGap:i}function d(e){if(y.length)for(var t=0,i=y.length;tw+g?(c="top",h=b,m=v):b+v1&&(B=f.perpLength-j),F.x=Math.round(B),F.y=Math.round(z),F.height=Math.round(H),F.width=Math.round(j),r.scaledSize=F.x+F.width,r.remainder=A}r.gapRowIds=r.gapRowIds.map(function(t){return e[t].id=t,e[t]}).sort(function(e,t){return e.xt.x?1:0}).map(function(e){return e.id});for(var D=0,_=r.gapRowIds.length;D<_;D++){var A,F=e[r.gapRowIds[D]],P=e[r.gapRowIds[D-1]],H=T,R=p(D,_),j=H*(F.width/F.height),B=P?P.x+P.width+f.hGap:0;F.isDoubleSize||(u(/gap|equal/,c)&&R&&(A=n-(B+j),B+j1&&b[p].isDoubleSize){if(r(i,f.numberOfColumns)){var P=b[p],H=C[i].size,R=C[i-1].size,j=(i-1)*(x+f.hGap);if(M=t("x",j,x),R<=H){var B=H-R;y.push({x:t("x",j,x),y:R,size:B,isLastColumn:!0}),C[i].size+=P.height+f.vGap,C[i-1].size+=P.height+B+f.vGap}else{var B=R-H,D=i*(x+f.hGap);y.push({x:t("x",D,x),y:C[i].size,size:B,isLastColumn:!0}),T=R,C[i-1].size+=P.height+f.vGap,C[i].size+=P.height+B+f.vGap}C[i].ids.push(p)}else{var _=0;C[i+1]&&C[i+1].size>C[i].size&&(_=C[i+1].size-C[i].size,y.push({x:t("x",M,x),y:C[i].size,size:_}),T=C[i+1].size),C[i].size+=b[p].height+f.vGap+_,C[i+1]||(C[i+1]={size:0,ids:[]}),C[i+1].size+=b[p].height+f.vGap}C[i].ids.push(p)}else C[i].ids.push(p),C[i].size+=b[p].height+f.vGap;S===!1&&(b[p].x=t("x",M,x),b[p].y=t("y",T,V))}f.isWrap=!1}if(f.horizontalMasonry){var W;if(0===w[u].ids.length&&(W=w.pop()),f.masonryFill&&w.length>1){C[0].size=0;for(var N,X=f.perpLength,Y=.5*X,p=0,L=w.length;p-i||n<-i}function r(){m&&!v?(n(),d=requestAnimationFrame(r)):m||(gd.width?(h.x=d.width-(w+h.width+b),d.x=e.pageX-d.width+w+h.point+b):(h.x=t-(w-h.width),d.x=e.pageX-t)}function n(e){e.pageY=ea.abs(n)?i>0?"right":"left":ea.abs(i)0?"down":"up")}function a(t){d=(new Date).getTime();var i=r(s,d,t.pageX-u);e.events.dispatchEvent(Ro,{flickSpeed:i,isMove:w,swipeDirection:c.swipeDirection}),c.startdrag=!1,c.swipeDirection=!1,w=!1,sectionEnd=!1,f=0}function r(e,t,i){var n=1,o=.7,a=(t-e)/Math.abs(i);return a>n&&(a=n),a=ea.abs(t)?e>0?"right":"left":ea.abs(e)0?"down":"up")}function a(t){if(c.startdrag&&va.zoom<=1){d=(new Date).getTime();var i=r(s,d,u-m);e.events.dispatchEvent(Ro,{flickSpeed:i,isMove:w,swipeDirection:c.swipeDirection}),c.startdrag=!1,c.swipeDirection=!1,w=!1,sectionEnd=!1,f=0,u=0,p=0}}function r(e,t,i){var n=1,o=.5,a=(t-e)/Math.abs(i);return a>n&&(a=n),a-1?o():n()},1e3*g)}function n(){l(),r()}function o(){s(),a()}function a(){if(!document.getElementById("likesrc")){var e=document.createElement("script");e.setAttribute("id","likesrc"),e.setAttribute("type","text/javascript"),e.setAttribute("src","http://connect.facebook.net/en_US/all.js#xfbml=1"),document.getElementsByTagName("head")[0].appendChild(e)}}function r(){if(!document.getElementById("plus1src")){var e=document.createElement("script");e.setAttribute("id","plus1src"),e.setAttribute("type","text/javascript"),e.setAttribute("src","http://apis.google.com/js/plusone.js"),document.getElementsByTagName("head")[0].appendChild(e)}}function l(){if(Ye.plusDiv)Ye.plusDiv.alpha=0,Ye.plusDiv.display="block",u(Ye.plusDiv,0),Ye.plusDiv.alpha=1;else{var e=c("plus1",100,40);e.overflow="hidden",e.text="";var i=h();i.x=e.width-2,i.y=2,e.addChild(i),va.addChild(e),Ye.plusDiv=e,Ye.plusClose=i}Ye.plusClose.addEventListener(Sn,p)}function s(){if(Ye.likeDiv)Ye.likeDiv.alpha=0,Ye.likeDiv.display="block",u(Ye.likeDiv,0),Ye.likeDiv.alpha=1;else{var e=c("like",320,40);e.overflow="visible",e.text="";var t=h();t.x=e.width-2,t.y=2,e.addChild(t),va.addChild(e),Ye.likeDiv=e,Ye.likeClose=t}Ye.likeClose.addEventListener(Sn,p)}function d(){v.backgroundColor=T("#000000",.65),v.width=va.width,v.alpha=0,v.addEventListener(Sn,p),m.addChild(v),v.height=va.height,va.addChild(m),Ze(v,g,{alpha:1})}function c(e,t,i){var n=new ma;return n.element.setAttribute("id",e),n.backgroundColor=T("#FFFFFF",.85),n.x=.5*(va.width-t),n.y=.5*(va.height-i),n.width=t,n.height=i,n.paddingTop=20,n.paddingBottom=2,n.paddingLeft=15,n.zIndex=2e3,n}function h(){var e=new ba;e.width=14,e.height=14,e.rotate=0;var t=new et;return t.id="icon",t.d=fa.close,t.strokeWidth=2,t.fill="none",t.stroke="#555",e.addChild(t),e}function u(e,t){if(e&&"block"===e.style.display){var i=.5*(va.width-e.width),n=.5*(va.height-e.height);Ze(e,t,{x:i,y:n})}}function p(e){e.target.removeEventListener(Sn,p),Ze(v,g,{alpha:0,onComplete:function(){va.removeChild(m)}}),Ye.plusDiv&&(Ye.plusDiv.display="none"),Ye.likeDiv&&(Ye.likeDiv.display="none")}var m=new at({events:e.events}),v=new ma,g=.35;return m.overflow="hidden",m.events.addEventListener(Qi,function(e){m.resize()}),i(),m.resize=function(){Ze(v,g,{width:va.width,height:va.height}),u(Ye.plusDiv,g),u(Ye.likeDiv,g)},m}function Ze(e,t,i){function n(){i.onInit&&o(),setTimeout(r,1e3*t),i.onUpdate&&(d=requestAnimationFrame(a)),l(t);var e;for(e in i)/delay|ease|overwrite|css|onComplete|onCompleteScope|onCompleteParams|onUpdate|onUpdateScope|onUpdateParams|onInit|onInitScope|onInitParams/.test(e)||s(e,i[e]);
}function o(){i.onInit.apply(i.onInitScope||e,i.onInitParams||[!1])}function a(){d&&(d=requestAnimationFrame(a)),i.onUpdate.apply(i.onUpdateScope||e,i.onUpdateParams||[!1])}function r(t){d&&cancelAnimationFrame(d),i.onComplete&&i.onComplete.apply(i.onCompleteScope||e,i.onCompleteParams||[!1]),i={},l(0)}function l(t){t?(t="all "+t+"s",i.ease&&(t+=" "+i.ease)):t="",e&&e.style&&(e.style.WebkitTransition=t,e.style.MozTransition=t,e.style.OTransition=t,e.style.transition=t)}function s(t,i){e&&e.element?e[t]=i:e&&e.style&&(e.style[t]=i)}if(this===window)return new Ze(e,t,i);var d,c=i.delay||0;this.destroy=function(){delete i.onComplete},setTimeout(n,1e3*c)}function Ge(e){e=e||{},e.type="img",e.className="Bitmap";var t=new ma(e);return t.element.style["user-select"]="none",t}function Ue(e){e=e||{},e.type="button",e.className="Button";var t=new ma(e);return t.borderRadius=0,t.enable=function(){this.alpha=1,this.element.removeAttribute("disabled")},t.disable=function(){this.alpha=.25,this.element.setAttribute("disabled",!0)},t}function qe(e){var t=e||{};t.events=t.events||new Ke;var i,n={listeners:t.events.listeners,dispatchEvent:t.events.dispatchEvent,addEventListener:t.events.addEventListener,removeEventListener:t.events.removeEventListener};for(i in n)t[i]=n[i];return t}function Ke(){function e(e,t){for(var i=t.length;i--;)if(e.callback===t[i].callback&&e.target===t[i].target)return!0;return!1}var t=!1;return{listeners:{},addEventListener:function(t,i){this.listeners[t]||(this.listeners[t]=[]);var n={type:t,callback:i,target:this};e(n,this.listeners[t])||this.listeners[t].push(n)},removeEventListener:function(e,t){if(!this.listeners[e],t&&"function"==typeof t){if(this.listeners[e])for(var i=0,n=this.listeners[e].length;i-264?a.y-=24:a.y=0)}e=e||{};var i=(e.type||"spinner",e.alpha||.75),n=e.color||"#FFFFFF",o=new ma;o.width=24,o.height=24,o.alpha=i,o.overflow="hidden";var a=new Ge;a.width=24,a.height=288,"#FFFFFF"===n?a.src=uo+"loader1.png":a.src=uo+"loader2.png",o.addChild(a);var r=setInterval(t,80);return o.removeLoader=function(){clearInterval(r)},o}function $e(){function e(){d&&d(function(){r.zoom<=1&&!r.isInputFocus&&(document.body.style["-webkit-overflow-scrolling"]="touch")})}var t,i=!1,n=1,o={},a="Stage",r={children:[],dragElements:[],activeFocus:void 0,isInputFocus:void 0,element:document.body,listeners:pa.listeners,dispatchEvent:pa.dispatchEvent,addEventListener:pa.addEventListener,removeEventListener:pa.removeEventListener,addChild:function(e){e.element.parentNode||document.body.appendChild(e.element),e.parent=this,this.children.push(e),e.dispatchEvent(Co,e)},get topParentName(){return a},addChildAt:function(e,t){},removeChild:function(e){e.events&&e.events.removeAllListeners(e),e.removeLoader&&e.removeLoader(),e.element.parentNode&&document.body.removeChild(e.element);for(var t=this.children.length;t--;)this.children[t]===e&&this.children.splice(t,1);e=null},removeChildren:function(e){if(e&&e.children&&e.children.length>0)for(var t=e.children.length;t--;)this.removeChildren(e.children[t]),e.removeChild(e.children[t])},moveToTop:function(e){for(var t=0,i=this.children.length;i--;)this.children[i].zIndex>=t&&!this.children[i]===e?t=this.children[i].zIndex+1:this.children[i].zIndex--;e.zIndex=t},domContentLoaded:function(){t||(setTimeout(function(){r.element=document.body,i||(document.body.style.overflow="hidden"),document.body.style.margin=0,document.body.style.padding=0,r.dispatchEvent(Ki,r)},10),t=!0)},documentReadyListener:function(){function e(e){return Object.keys(e).map(function(t){return e[t]})}function t(e){return e.reduce(function(e,t){return t&&t.override&&(t.overrides.captionFont&&e.push(t.overrides.captionFont),t.overrides.pageTextFont&&e.push(t.overrides.pageTextFont),t.overrides.pageTitleFont&&e.push(t.overrides.pageTitleFont)),t&&t.thumb&&t.thumb.titleFont&&e.push(t.thumb.titleFont),e},[])}function i(e,t,i){return i.indexOf(e)===t}function n(e,t,i){var n=x(e);return"system"!==n.service}function o(e){return e.reduce(function(e,t){if(!t)return e;var i=x(t);if(i&&i.family&&i.weight&&i.charset&&i.service){e[i.service]||(e[i.service]={families:[]});var n=i.family,o=i.weight.join(","),a=i.charset;e[i.service].families.push(n+":"+o+":"+a)}return e},{})}var a=[Oi.captionFont,Oi.contactFont,Oi.contactTitleFont,Oi.copyrightFont,Oi.logoFont,Oi.menuFont,Oi.navbarFont,Oi.pageTextFont,Oi.pageTitleFont,Oi.thumbnailTitleFont,Oi.thumbnailTitleBlockFont||""];!ki&&Oi.menuFontMobile&&a.push(Oi.menuFontMobile),!ki&&Oi.menuFontTablet&&a.push(Oi.menuFontTablet),!ki&&Oi.mobileLogoFont&&a.push(Oi.mobileLogoFont),!ki&&Oi.tabletLogoFont&&a.push(Oi.tabletLogoFont),WebFontConfig={loading:function(){},fontloading:function(e,t){},fontactive:function(e,t){},fontinactive:function(e,t){},active:function(){r.domContentLoaded(),r.style=document.body.style,r.element=document.body},inactive:function(){r.domContentLoaded(),r.style=document.body.style,r.element=document.body}};var l=a.concat(t(e(Fi))).filter(i).filter(n),s=o(l);s.google&&(WebFontConfig.google=s.google),s.typekit&&Pi.typekitId&&(WebFontConfig.typekit={id:Pi.typekitId}),s.custom&&Pi.customFonts.length&&(WebFontConfig.custom=s.custom,WebFontConfig.custom.urls=["http://"+window.location.host+"/css"]),WebFontConfig.custom||WebFontConfig.google||(r.domContentLoaded(),r.style=document.body.style,r.element=document.body)},globalToLocal:function(e){return{x:e.x,y:e.y}},localToGlobal:function(e){return{x:e.x,y:e.y}},event:function(e){var t={type:e.type,target:e.target,currentTarget:e.target,x:e.x,y:e.y,keyCode:e.which,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,mouseX:e.clientX-r.stageX,mouseY:e.clientY-r.stageY,deltaX:e.deltaX||-e.wheelDeltaX||0,deltaY:e.deltaY||-e.wheelDeltaY||0,preventDefault:function(){e.preventDefault()},stopPropagation:function(){e.stopPropagation()},dataTransfer:e.dataTransfer};"Windows"===ta?(t.deltaX=Math.max(-50,Math.min(50,e.deltaX)),t.deltaY=Math.max(-50,Math.min(50,e.deltaY)),"Firefox"===ia&&(t.deltaX=20*e.deltaX,t.deltaY=20*e.deltaY)):"Firefox"===ia&&"Macintosh"===ta&&1===e.deltaMode&&(t.deltaX=20*e.deltaX,t.deltaY=20*e.deltaY),e.touches&&(t.touches=e.touches),e.type!==un&&e.type!==hn||(t.type=hn),e.type!==Ji&&e.type!==ao&&e.type!==ro&&e.type!==no||(n=window.visualViewport?window.visualViewport.scale:oe()||le()?document.documentElement.clientWidth/window.innerWidth:document.documentElement.clientHeight/window.innerHeight,n=n<1?1:n),ha&&e.clientX&&e.clientY&&ha.hitMask(e.clientX,e.clientY),/click|key|touch|down/.test(e.type)&&(r.userInteraction=!0),r.dispatchEvent(e.type,t)},get disableScroll(){return r._disableScroll},set disableScroll(e){if("Safari"!==ia){r._disableScroll=e;var t=document.getElementsByTagName("html")[0];e?(r._previousOverflow={x:document.body.style.overflowX,y:document.body.style.overflowY},t.style.overflow="hidden",r.element.style.overflow="hidden"):(t.style.overflow="initial",r._previousOverflow&&(r.element.style.overflowX=r._previousOverflow.x,r.element.style.overflowY=r._previousOverflow.y))}},get getChildren(){return children},get images(){return document.images},get forms(){return document.forms},get links(){return document.links},get anchors(){return document.anchors},get scripts(){return document.scripts},get plugins(){return document.plugins},get embeds(){return document.embeds},get width(){var e=window.innerWidth,t=e*n;return n<=1?t:e},get height(){var e=window.innerHeight,t=e*n;return n<=1?t:e},get stageX(){return 0},get stageY(){return 0},get scrollX(){return o.scrollX||window.scrollX},set scrollX(e){o.scrollX=e},get scrollY(){return o.scrollY||window.scrollY},set scrollY(e){o.scrollY=e},get selectable(){return i},set selectable(e){i=e},get zoom(){return n},set zoom(e){n=e},get backgroundColor(){return o.backgroundColor||document.body.style.backgroundColor},set backgroundColor(e){o.backgroundColor=e,document.body.style.backgroundColor=e},get transition(){return o.transition},set transition(e){o.transition=e,e=0===e?"none":"all "+e+"s",document.body.style.WebkitTransition=e,document.body.style.MozTransition=e,document.body.style.OTransition=e,document.body.style.transition=e},get disableKeyNavigation(){return o.disableKeyNavigation},set disableKeyNavigation(e){o.disableKeyNavigation=e},focus:function(){r.activeFocus=r},blur:function(){}};r.proxy=r;var l=document.createElement("div");l.className="scrollbar-measure",document.body.appendChild(l);var s=l.offsetWidth-l.clientWidth;document.body.removeChild(l),Qo=0===s;var d;ji!==Di&&ji!==Bi||(d=ce(200)),window.addEventListener(no,function(t){setTimeout(function(){e(),r.event(t)},200)},!1),window.addEventListener($n,function(e){r.scrollY=window.scrollY,r.event(e)},!1),window.addEventListener(tn,r.event,!1),window.addEventListener(nn,r.event,!1),window.addEventListener(on,r.event,!1),window.addEventListener(an,r.event,!1),window.addEventListener(rn,r.event,!1),window.addEventListener(ln,r.event,!1),window.addEventListener(sn,r.event,!1),window.addEventListener(dn,r.event,!1),window.addEventListener(cn,r.event,!1),window.addEventListener(Sn,r.event,!1),window.addEventListener(Ji,r.event,!1),window.addEventListener(oo,r.event,!1),window.addEventListener(ao,r.event,!1),window.addEventListener(ro,r.event,!1),window.addEventListener(mn,r.event,!1),window.addEventListener(pn,r.event,!1);var c;return window.addEventListener(Ji,function(e){clearTimeout(c),c=setTimeout(function(){r.dispatchEvent(Qi,e)},200)},!1),window.addEventListener(no,function(e){r.dispatchEvent(no,e)},!1),window.addEventListener(un,r.event,{passive:!1}),window.addEventListener(hn,r.event,{passive:!1}),r.documentReadyListener(),r}function et(){return new ba({type:"path"})}function tt(){return new ba({type:"rect"})}function it(){return new ba({type:"circle"})}function nt(e){var t;return e=e||{},e.type="textarea",e.className="TextArea",t=new ma(e),t.borderRadius=0,t.style["-webkit-appearance"]="none",t.element.addEventListener("focus",function(){"Safari"===ia&&document.webkitCancelFullScreen(),va.disableKeyNavigation=!0,va.activeFocus=t,va.isInputFocus=!0}),t.element.addEventListener("blur",function(){va.disableKeyNavigation=!1,va.isInputFocus=!1}),t}function ot(e){e=e||{},e.type="span",e.className="TextField";var t=new ma(e);return t.selectable=!0,t.fontFamily="sans-serif",t.element.addEventListener("focus",function(){va.disableKeyNavigation=!0,va.activeFocus=t,va.isInputFocus=!0}),t.element.addEventListener("blur",function(){va.disableKeyNavigation=!1,va.isInputFocus=!1}),t}function at(e){var t=e||{};return t.events=t.events||new Ke,new ma(t)}function rt(e){function t(e){a.dispatchEvent(vo,e),r&&a.play()}function i(e){a.dispatchEvent(qi,e)}function n(e,t){var i=a.element.canPlayType(e+';codecs="'+t+'"');return""!==i}function o(){a.dispatchEvent("playbackEnd")}e=e||{},e.type="video",e.className="VideoPlayer";var a=new ma(e),r=!1;a.element.setAttribute("playsinline",!0),a.element.addEventListener(vo,t,!1),a.element.addEventListener(qi,i,!1),a.width=e.width||640,a.height=e.height||480,a.parent=e.parent,a.hud=new lt(a),a.hud.disable();var l=e.alwaysMuted,s=!0,c=new Ue;return c.x=20,c.y=20,c.zIndex=10,c.borderRadius=2,c.backgroundColor="white",c.text="TAP TO UNMUTE",c.display="none",c.element.style.padding="3px 6px",a.unmuteBtn=c,a.unmuteClick=function(){a.hud.unmute(),a.hud.enable(),c.display="none",c.removeEventListener("click",a.unmuteClick),l=!1},c.addEventListener("click",a.unmuteClick),a.unmuteBtn=c,a.parent.addChild(c),a.disableUnmuteButton=function(){s=!1,c.display="none"},a.play=function(){var e=a.element.play();void 0!==e&&e.then(function(){a.paused=!1,l?a.element.muted=!0:va.userInteraction&&(c.display="none",a.hud?a.hud.unmute():a.element.muted=!1),a.dispatchEvent(Gn)}).catch(function(){a&&(a.hud?a.hud.mute():a.element.muted=!0,s&&(c.display="block"),a.element.play(),a.paused=!1,a.dispatchEvent(Gn))})},a.pause=function(){a.element.pause(),a.paused=!0,a.dispatchEvent(Zn)},a.togglePlay=function(){a.element.paused?a.play():a.pause()},a.setSize=function(e,t,i){a&&(0===i?(a.width=e,a.height=t):Ze(a,i,{width:e,height:t}))},a.setSource=function(e,t){t&&a.element.setAttribute("autoplay",!0),n("video/mp4","avc1.42E01E, mp4a.40.2")?(a.src=d(e),a.element.addEventListener("ended",o),t&&(r=!0)):B(co+e.replace(z(e),"webm"))?(a.src=d(e.replace(z(e),"webm")),a.element.addEventListener("ended",o),t&&(r=!0)):window.open(co+e)},a.destroy=function(){a&&(a.element.removeEventListener("ended",o),a.removeKeyListener(),a.element.removeEventListener(vo,t,!1),a=null)},a.removeKeyListener=function(){},a}function lt(e){function t(){S.height=50,S.width=e.width,S.alpha=0,S.zIndex=5,e.parent.addChild(S);var t;t=e.element.paused?fa.pause:fa.play,v=a(t,h),S.addChild(v),g=a(fa.fullscreen,Ce(e.element)),S.addChild(g);var i=fa.volume,n=u;ji===Bi&&(i="",n=function(){}),f=a(i,n),S.addChild(f),r(),S.interval=setInterval(d,100),e.element.addEventListener("ended",c)}function i(t){if(!oe()&&!le()){clearTimeout(L);var i=O(t),a=ya.siteView.unifiedPageScroll()||/unifiedSiteScroll/.test(ya.overrides.siteDisplayBehavior)?t.pageY:I(t);e.hitTestAbs(i,a)?(n(),L=setTimeout(function(){o()},3e3)):o()}}function n(){T||(T=!0,S.display="block",Ze(S,bo,{alpha:1}))}function o(){T&&(T=!1,Ze(S,bo,{alpha:0,onComplete:function(){S.display="none",T=!1}}))}function a(e,t){var i=new ma;i.width=x,i.height=M,i.backgroundColor=V;var n=new ba;n.id="svg",n.width=12,n.height=12,n.left=ea.round(.5*(i.width-n.width)),n.top=ea.round(.5*(i.height-n.height)),i.addChild(n);var o=new et;o.id="icon",o.d=e,o.fill="#FFFFFF",o.alpha=.65,n.addChild(o);var a=new ma;return a.width=i.width,a.height=i.height,i.addChild(a),i.hit=a,i.icon=o,i.svg=n,a.icon=o,a.bg=i,a.addEventListener(Sn,t),a.addEventListener(rn,function(){Ze(this.bg,bo,{backgroundColor:"rgba(0,0,0,0.85)"}),Ze(this.icon,bo,{alpha:1})}),a.addEventListener(cn,function(){Ze(this.bg,bo,{backgroundColor:V}),Ze(this.icon,bo,{alpha:.65})}),i}function r(){b=new ma,b.zIndex=-1,b.backgroundColor=V,b.height=M,S.addChild(b),b.buffer=new ma,b.buffer.backgroundColor="#FFFFFF",b.buffer.alpha=.12,b.buffer.width=1,b.buffer.height=S.height,b.addChild(b.buffer),b.progress=new ma,b.progress.backgroundColor="#FFFFFF",b.progress.alpha=.25,b.progress.width=1,b.progress.height=S.height,b.addChild(b.progress),b.time=new ma,b.time.fontFamily="Arial, Helvetia, sans-serif",b.time.fontColor="#FFF",b.time.fontSize=10,b.time.text="00:00 / 00:00",b.time.alpha=1,b.addChild(b.time),b.time.x=10,b.time.y=20,b.head=new ma,b.head.backgroundColor="#FFFFFF",b.head.alpha=0,b.head.x=30,b.head.width=1,b.head.height=S.height,b.addChild(b.head),b.headTime=new ma,b.headTime.fontFamily="Arial, Helvetia, sans-serif",b.headTime.fontColor="#FFFFFF",b.headTime.fontSize=10,b.headTime.alpha=0,b.headTime.text="00:00",b.headTime.x=30,b.headTime.y=-15,b.addChild(b.headTime),b.hit=new ma,b.hit.height=S.height,b.addChild(b.hit),oe()||le()||(b.hit.addEventListener(rn,function(){Ze(b.buffer,bo,{alpha:.2}),Ze(b.progress,bo,{alpha:.4}),Ze(b.time,bo,{alpha:1}),Ze(b.head,bo,{alpha:1}),Ze(b.headTime,bo,{alpha:1}),Ze(b,bo,{backgroundColor:"rgba(0,0,0,0.85)"})}),b.hit.addEventListener(cn,function(){Ze(b.buffer,bo,{alpha:.12}),Ze(b.progress,bo,{alpha:.25}),Ze(b.time,bo,{alpha:.5}),Ze(b.head,bo,{alpha:0}),Ze(b.headTime,bo,{alpha:0}),Ze(b,bo,{backgroundColor:V})}),b.hit.addEventListener(sn,l)),b.hit.addEventListener(Sn,s)}function l(t){var i=p(t);b.head.transition=0,b.head.x=i,b.headTime.transition=0,b.headTime.x=i,b.headTime.text=m(i/y*e.element.duration)}function s(t){var i=p(t);b.head.x=i,b.headTime.x=i;var n=i/y*e.element.duration;e.element.currentTime=n,b.headTime.text=m(n),d(e)}function d(){e.element.buffered.length>0&&(bufferedPercent=e.element.buffered.end(0)/e.element.duration,b.buffer.transition=0,b.buffer.width=bufferedPercent*y,playedPercent=e.element.currentTime/e.element.duration,b.progress.transition=0,b.progress.width=playedPercent*y,b.time.text=m(e.element.currentTime)+" / "+m(e.element.duration))}function c(){clearInterval(S.interval)}function h(){e.element.paused?(e.play(),v.icon.d=fa.pause,S.interval=setInterval(d,50)):(e.pause(),v.icon.d=fa.play)}function u(){e.element.muted?S.unmute():S.mute()}function p(e){return so&&e.touches?e.touches[0].offsetX-x-b.x:e.offsetX}function m(e){return minutes=Math.floor(e/60),e=Math.floor(e-60*minutes),minutes=minutes<10?"0"+minutes:minutes,e=e<10?"0"+e:e,minutes+":"+e}var v,g,f,b,C,w,y,L,S=new ma,x=50,M=50,V="rgba(0,0,0,0.65)",T=!0;return S.show=n,S.hide=o,S.resize=function(e,t,i,n,o){var a=t,r=i,l=n,s=o;C=n,w=o,y=l-3*x,0===e?(S.width=l,S.x=ea.floor(a),S.y=ea.floor(r+s-S.height),g.x=l-g.width,f.x=l-g.width-f.width,b.x=x,b.width=y,b.hit.width=y):(Ze(S,e,{width:l,x:a,y:r+o-S.height}),Ze(g,e,{x:l-g.width}),Ze(f,e,{x:l-g.width-f.width}),Ze(b,e,{x:x,width:y}),Ze(b.hit,e,{width:y})),d()},S.mute=function(){e.element.muted=!0,f.icon.d=fa.mute},S.unmute=function(){e.element.muted=!1,f.icon.d=fa.volume},S.disable=function(){o(),oe()||le()||va.removeEventListener(sn,i)},S.enable=function(){n(),oe()||le()||va.addEventListener(sn,i)},t.call(S),S}function st(e){function t(e){var t=new Ue;return t.x=20,t.y=20,t.zIndex=10,t.borderRadius=2,t.backgroundColor="white",t.text="TAP TO UNMUTE",t.display="block",t.element.style.padding="3px 6px",e.unmuteBtn=t,e.unmuteClick=function(){t.display="none",t.removeEventListener("click",e.unmuteClick),e.element.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:1}),s)},t.addEventListener("click",e.unmuteClick),e.unmuteBtn=t,e.addEventListener("load",function(){setTimeout(function(){e.parent.addChild(t)},1e3)}),e.disableUnmuteButton=function(){t.display="none"},t}function i(){c.ended||c.dispatchEvent("playbackEnd"),c.ended=!0}function n(){l="player"+st.getNextPlayerID(),c.element.id=l,c.element.setAttribute("frameborder","0"),c.element.setAttribute("webkitAllowFullScreen",""),c.element.setAttribute("mozallowfullscreen",""),c.element.setAttribute("allowFullScreen",""),c.element.style["user-select"]="none"}function o(t){var n;try{n=JSON.parse(t.data)}catch(e){n={}}if(n.player_id===l)switch("ready"===n.event&&setTimeout(function(){a(n)},10),"error"===n.event,"getVideoWidth"===n.method&&n.value&&n.value!==c.videoWidth&&(e.thumbBuild||(c.width=n.value,c.element.setAttribute("width",n.value)),c.videoWidth=n.value,c.videoHeight&&c.dispatchEvent(go)),"getVideoHeight"===n.method&&n.value&&n.value!==c.videoHeight&&(e.thumbBuild||(c.height=n.value,c.element.setAttribute("height",n.value)),c.videoHeight=n.value,c.videoWidth&&c.dispatchEvent(go)),n.event){case"finish":i();break;case"pause":n.data.seconds>=n.data.duration-1?i():(c.dispatchEvent(Zn),"function"==typeof c.onpause&&c.onpause(),c.paused=!0);break;case"play":c.dispatchEvent(Gn),"function"==typeof c.onplay&&c.onplay(),c.paused=!1}}function a(e){c&&(c.loaded=!0,"Chrome"!==ia&&va.userInteraction||!d||c.element.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:0}),s),c&&c.element.contentWindow&&(c.element.contentWindow.postMessage(JSON.stringify({method:"getVideoWidth",value:e.player_id}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"getVideoHeight",value:e.player_id}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"finish"}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"pause"}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"play"}),s),c.element.contentWindow.postMessage(JSON.stringify({method:"addEventListener",value:"error"}),s)))}function r(e){c&&oa[e.keyCode]===wn&&c.togglePlay()}e=e||{},e.type="iframe",e.className="VimeoPlayer";var l,s,d,c=new ma(e),h="";return c.parent=e.parent,c.style.pointerEvents="auto",oe()&&e.thumbBuild&&(c.style.position="fixed"),n(),window.addEventListener("message",o,!1),c.setSource=function(i,n){d=!!n;try{s="http://player.vimeo.com/video/"+i.split("vimeo:")[1],h=s;var o=n?"&autoplay=1":"";ya.overrides.videoLoop?c.src=s+"?api=1&autopause=0&loop=1&wmode=opaque"+o+"&player_id="+l:c.src=s+"?api=1&autopause=0&wmode=opaque"+o+"&player_id="+l;var a=c.width||e.width||640,r=c.height||e.height||480;c.element.setAttribute("width",a),c.element.setAttribute("height",r),c.width=a,c.height=r,n&&(c.element.setAttribute("allow","autoplay"),va.userInteraction?(c.unmuteBtn&&(c.unmuteBtn.display="none",c.unmuteBtn.removeEventListener("click",c.unmuteClick)),c.element.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:1}),s)):t(c)),c.element.setAttribute("frameborder",0),c.element.setAttribute("webkitallowfullscreen",!0),c.element.setAttribute("mozallowfullscreen",!0),c.element.setAttribute("allowfullscreen",!0)}catch(e){}},c.togglePlay=function(){c.paused?c.play():c.pause()},c.setLoop=function(e){c&&c.loaded&&c.element.contentWindow&&(window.addEventListener("message",o,!1),c.element.contentWindow.postMessage(JSON.stringify({method:"loop",value:e}),h))},c.play=function(){c.ended=!1,va.userInteraction?(c.unmuteBtn&&(c.unmuteBtn.display="none",c.unmuteBtn.removeEventListener("click",c.unmuteClick)),c.element.contentWindow.postMessage(JSON.stringify({method:"setVolume",value:1}),s)):t(c),window.addEventListener("message",o,!1),c&&c.element.contentWindow&&(c.loaded?(c.element.contentWindow.postMessage(JSON.stringify({method:"play",value:""}),h),va.addEventListener(pn,r),c.paused=!1,c.dispatchEvent(Gn)):c.element.addEventListener("load",function(){c.loaded=!0,c.element.contentWindow.postMessage(JSON.stringify({method:"play",value:""}),h),va.addEventListener(pn,r),c.paused=!1,c.dispatchEvent(Gn)}))},c.pause=function(){c&&c.loaded&&c.element.contentWindow&&(c.element.contentWindow.postMessage(JSON.stringify({method:"pause",value:""}),h),c.paused=!0)},c.setSize=function(e,t){c&&(c.transition=0,c.width=e,c.height=t)},c.align=function(e,t){c&&(c.transition=0,c.style.left=e+"px",c.style.top=t+"px")},c.destroy=function(){window.removeEventListener("message",o,!1),c.removeKeyListener(),c=null},c.removeKeyListener=function(){va.removeEventListener(pn,r)},c}function dt(e){function t(){if(Oi.siteDisplayBehavior||Oi.unifiedPageScrolling||(Oi.siteDisplayBehavior="none"),ji!==Di&&ji!==Bi||(Oi.siteDisplayBehavior="none"),/disabled/.test(Oi.cursorIconStyle)?Oi.navCursorType=Oi.cursorIconStyle:Oi.navCursorType=Oi.navCursorType?Oi.navCursorType:"cursor",va.backgroundColor=Oi.siteBackgroundColor,re()&&(Oi.mobileAutoPlay=!1),me.siteView.updateStyle(),N(),e.parentView=me.siteView,e.parentController=me,e.events=me.events,e.siteControllerEvents=me.events,me.sectionController=new e.SectionController(e),me.menuController=new e.MenuController(e),e.menuController=me.menuController,ji===Di||ji===Bi&&Oi.footerOnMenuTablet||(me.footerController=new e.FooterController(e)),me.logoController=new e.LogoController(e),me.navbarController=new e.NavbarController(e),me.caption=new Ma,me.siteView.addChild(me.caption.container),me.addressController=new e.AddressController(e),"cursor"!==Oi.navCursorType||oe()||le()||(me.cursor=new e.Cursor(e),me.siteView.addChild(me.cursor)),me.tooltip=new e.Tooltip(e),me.service=new e.SiteService(e),isLogin&&(Pi.adminLockout?Ee("ADMIN LOCKED FOR MAINTENANCE.
Please try again later.
If problem persists, contact support."):ne(ia,na)?me.login=new zi(e):Ee("Admin not supported for this browser ["+ia+" "+na+"]. Please use latest version of Chrome, Firefox, Safari or MS Edge.")),me.events.dispatchEvent(Rn,{id:"layoutModelInit"}),me.events.addEventListener(Go,m),me.events.addEventListener(Zo,v),me.events.addEventListener(Xn,g),me.events.addEventListener(Nn,b),me.events.addEventListener(Kn,f),me.events.addEventListener(Jn,w),me.events.addEventListener(Yn,C),me.events.addEventListener(On,x),me.events.addEventListener("ADDRESS_URI_CHANGE_PASSIVE",M),me.events.addEventListener(An,n),me.events.addEventListener(Vo,Q),me.events.addEventListener(zo,$),me.events.addEventListener(Io,ee),me.events.addEventListener(eo,p),me.events.addEventListener("OVER_LOGO",te),me.events.addEventListener("privateGalleryAuthCheck",P),me.events.addEventListener("passwordViewUpdate",H),me.events.addEventListener("updateAssetId",V),me.events.addEventListener("UPDATE_CONTENT_HEIGHT",X),me.events.addEventListener(Jo,o),me.events.addEventListener("siteAnchorCaptionUpdate",E),me.events.addEventListener("SEARCH_SUBMIT",A),va.addEventListener(Qi,h),va.addEventListener(ro,d),va.addEventListener(no,u),va.addEventListener(pn,L),(oe()||le())&&window.addEventListener("scroll",function(){clearTimeout(pe),fe=!0,pe=setTimeout(function(){pe=null,fe=!1,c()&&(me.events.dispatchEvent(Qi),Ce=!1)},200)}),va.zoom>1?me.events.dispatchEvent(Qi):h(),me.events.addEventListener("cursorAxisUpdate",ae),io=90===Math.abs(window.orientation)?"horizontal":"vertical",window.isStaging){var t=de();me.siteView.addChild(t)}}function n(){dx.admin.events.addEventListener(Fn,j),dx.admin.events.addEventListener(Pn,B),dx.admin.events.addEventListener(Hn,_),dx.admin.events.addEventListener(Rn,W),dx.admin.events.addEventListener(jn,Y),dx.admin.events.addEventListener(Bn,Z),dx.admin.events.addEventListener(Dn,G),dx.admin.events.addEventListener(_n,U),dx.admin.events.addEventListener(Wn,J),dx.admin.events.addEventListener(Uo,a),dx.admin.events.addEventListener(qo,s),me.events.addEventListener("adminPageviewImageSizes",function(e){dx.admin.events.dispatchEvent("adminPageviewImageSizes",e)})}function o(){me.events.dispatchEvent(Ko,{name:"js"})}function a(){me.events.dispatchEvent(Uo)}function s(){me.events.dispatchEvent(qo)}function d(){va.zoom<=1}function c(){return(oe()||le())&&Ce&&window.innerHeight===document.documentElement.clientHeight}function h(e){if(/responsive/.test(Oi.menuAlignHorizontal)){var t=1;oe()&&(t=window.devicePixelRatio||1);var i=(Oi.screenWidthBreakpoint||800)*t,n=wa.isMenuResponsiveOverlay;wa.isMenuResponsiveOverlay=va.width-1)&&o&&"site"===a?(me.caption.text=F(o),me.caption.show(z)):(me.caption.text="",me.caption.hide(),me.caption.scroll&&me.caption.scroll.destroy())}}function E(e){if(ce&&ce.asset&&me.caption){var e=e||ce.asset;e.overrides||(e.overrides={}),be=e.overrides||{},me.caption.text=F(k(e));var t=i(ce.section)&&Oi.slideshowCaptions,n=K(ji!==Di||t?void 0:"site",e.overrides.captionAnchorTo,ya.overrides.captionAnchorTo);"site"===n&&(t||ce.mode.indexOf("caption")>-1)?me.caption.show(z):(me.caption.text="",me.caption.hide(),me.caption.scroll&&me.caption.scroll.destroy())}else me.caption&&(me.caption.text="",me.caption.hide(),me.caption.scroll&&me.caption.scroll.destroy())}function z(){ji!==Di&&(me.caption.container.position="fixed"),me.caption.container.transition=0,me.caption.container.zIndex=ya.captionView.zIndex(),K(be.captionCloseButton,ya.overrides.captionCloseButton)?me.caption.showCloseButton():me.caption.hideCloseButton();var e={onInit:function(){me.caption.scroll&&me.caption.scroll.hide()},onComplete:function(){me.caption.scroll&&(me.caption.scroll.show(),me.caption.scroll.resize())}},t=K(be.captionBackgroundRectColor,ya.overrides.captionBackgroundRectColor),i=K(ji===Di?Oi.overlayAlpha:void 0,be.captionBackgroundAlpha,ya.overrides.captionBackgroundAlpha);me.caption.backgroundColor=T(t,i),me.caption.fontFamily=be.captionFont||ya.overrides.captionFont,me.caption.fontSize=va.width0&&!ya.getPassedSection(he.id))re=e,ce.events.dispatchEvent("privateGalleryAuthCheck",{section:he});else if(n&&n.password.length>0&&!ya.getPassedSection(n.id))re=e,ce.events.dispatchEvent("privateGalleryAuthCheck",{section:n});else if(he){re=void 0;var r=c(he),n=a(he),h={section:he,searchTags:be&&be.search&&be.search.split(",")||[],sortBy:be&&be.sort||"date-asc",parentSection:n,mediaToRender:y(he.mediaItems),path:ue,assetId:pe,asset:l(he.mediaItems[pe]),mode:me,prevState:{section:ve.section,mode:ve.mode,assetId:ve.assetId},info:{isInit:ge,isSectionChange:he!==q(ve,"section")||fe,isPasswordSection:Ce,isSearchSubmit:fe,isParentSectionChange:n!==q(ve,"parentSection"),isAssetChange:pe!==q(ve,"assetId"),isModeChange:me!==q(ve,"mode"),isLandingMedia:i(he),mediaViewState:r,isDeepLink:ge&&"/"!==e,isMediaViewStateChange:q(ve,"info.mediaViewState")!==r,isIntroGallery:he.isIntroGallery,flickSpeed:se,lastUri:oe,isThumbsFirst:s(he),isMobileVideoClick:de,isBlog:w(he.id)}};ce.setTitle(),wa.updateSectionState(he.key,{assetId:pe,mode:me}),wa._section=h.section,wa._uriState=h,ae=h,fe=!1,Ce=!1,t?ce.events.dispatchEvent("ADDRESS_URI_CHANGE_PASSIVE",ae):o(),d(he),ve=h,oe=e,ge=!1,se=void 0,de=!1}}function o(){ce.events.dispatchEvent(On,ae)}function r(){ae.asset=l(he.mediaItems[pe]),ce.events.dispatchEvent(On,ae)}function d(e){var t=l(e.media[0]);"link"!==t.type||t.thumb||("_blank"===t.linkTarget?window.open(t.content):"_self"===t.linkTarget&&(window.location.href=t.content))}function c(e){return e.slideshow||e.label===_i?"landingMedia":"mediaView"}function u(e){pe=w(he.id)?C(e.id,he.mediaItems.length-1):e.id,k(),La.setValue(D(),!0,!1)}function p(e){e.section&&he.key!==e.section.key&&(me=e.mode,pe=e.assetId,he=e.section,e.path=e.section.key,clearTimeout(we),we=setTimeout(function(){Z(e,!0)},30))}function m(e,t){if(e.indexOf("/")>-1){var i=e.split("/");return i[0]==t||i[1]==t}return e==t}function v(e,t){return e.indexOf(t)>-1}function f(e){return e.split("&").reduce(function(e,t){var i=t.split("=");return e[i[0]]=i[1],e},{originalQuery:"?"+e})}function b(e){var t=e.split("?")[1];return t?f(t):{}}function L(){return Object.keys(Fi).reduce(function(e,t){var i=Fi[t];return i.password.length>0||!i.visible?e.concat(i.media):e},[])}function S(e){var t=be.search;if(be=b(e),t&&be.search&&t!==be.search&&(fe=!0),e=e.replace(/^\/|\/$/g,"").replace(be.originalQuery,"").split("/"),me=A(e),delete he.isIntroGallery,he=x(e),be.search&&!he.isSearch)be={};else if(be.search&&he.isSearch){var i=be.search,n=be.sort&&be.sort.split("-")||["date","asc"],o=n[0],a=n[1],r=L(),l=Object.keys(Ii).filter(function(e){return r.indexOf(Number(e))===-1}).map(function(e){var t=Ii[e];return t.keywords=t.keywords||[],Date.parse(t.dateAdded)?t.dateAdded=new Date(t.dateAdded).toISOString():t.dateAdded=(new Date).toISOString(),t}).filter(function(e){var t=(Pi.searchCaptions||Pi.searchLabels||e.keywords.length)&&/image|video/.test(e.type);return(Pi.globalMediaSearch||e.searchable)&&t}).filter(function(e){var t=i.split(",").map(function(e){return"\\b"+e.replace(/\s+/g,".*")}).join("|"),n=new RegExp(t,"gi"),o=Pi.searchCaptions&&n.test(e.caption),a=Pi.searchLabels&&n.test(e.label),r=e.keywords.reduce(function(e,t){return e?e:n.test(t)},!1);return r||o||a}).sort(function(e,t){var i="size"===o?e.size.bytes:e[o],n="size"===o?t.size.bytes:t[o];return i>n?1:i0)for(var n=0;n1&&ee("thumbs")}function k(){if(ji!==Di&&he&&(pe>-1||he.isSearch)){var e=l(he.mediaItems[pe]);e||(e={overrides:{}});var t=K(e.overrides.captionDefault,ya.overrides.captionDefault);ji===Di&&(t=!1),"caption"===le?ee("caption"):""===le?te("caption"):t?ee("caption"):te("caption"),J()}}function O(e){var t=V(e.split("/"));return t?H(e).replace(H(t),""):e}function I(e){var t=W(e.join("/")),i=O(t),n=i.split("/")[1];return!isNaN(n)&&Number(n)}function A(e){var t=/thumbs|share|inquiry|caption|fotomoto/;return t.test(e[3])?e[3]:t.test(e[2])?e[2]:t.test(e[1])?e[1]:""}function F(e){return"mailTo:"+e.replace("mailto:","").replace("mailTo:","")}function P(e){var t=/[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]{2,4}/g.test(e.path);return!!t&&function(){window.location.href=F(e.path)}}function R(e){return("[one]"===e.label||"[like]"===e.label)&&function(){ce.events.dispatchEvent(eo,e)}}function j(e){return"_blank"===e.linkTarget&&function(){window.open(e.path)}}function B(e){return!N(e)&&"_self"===e.linkTarget&&"external"===e.type&&function(){window.location.href=e.path}}function D(){var e=W(ue),t=e,i=be.originalQuery;if(he&&!_(ue)){var n=Y(t);if(n){t=n&&n.key||"",t="/"+t+"/";var o=I(e.split("/"));o&&pe>-1&&(pe=o-1),pe>-1&&(t+=Number(pe)+1+"/"),me.length>0&&(t+=me+"/")}else t="/"}return n&&"landingMedia"===n.key&&(t="/"),i?t+i:t}function _(e){return/^(ht|f)tp(s?):\/\//.test(e)}function W(e){var t=window.location.protocol+"//"+window.location.host;return"string"==typeof e?e.replace(t,"").replace(/^\/|\/$/g,""):""}function N(e){return!!e.path&&(M(e.path.split("/"))?(e.section=M(e.path.split("/")),e.type="internal",!0):(e.path=W(e.path),e.section=Y(e.path),e.type="internal",!0))}function X(e){e.section&&!i(e.section)&&(!e.isThumbClick&&g(e.section)?ee("thumbs"):"none"===ya.overrides.thumbnailType?te("thumbs"):e.section.mediaItems.length>1&&ya.overrides.thumbnailDefaultOn&&!e.isThumbClick?ee("thumbs"):e.section.mediaItems.length>1&&e.isThumbClick&&"strip"===ya.overrides.thumbnailType&&ya.overrides.thumbnailDefaultOn&&"displace"===ya.overrides.thumbnailDock&&ee("thumbs"),e.nothumbs&&te("thumbs"),!e.isThumbClick&&s(e.section)&&0===pe&&$("thumbs")&&(pe=-1))}function Y(e){var t,i=e.split("/"),n=i[0];return i[0]&&i[1]&&(t=i[0]+"/"+i[1]),t?x(t.split("/")):!!n&&x(n.split("/"))}function Z(e,t){action=R(e)||P(e)||j(e)||B(e)||G(e,t),action()}function G(e,t){return e.section?(ya.section(e.section),he=e.section,he.isSearch||(be={}),fe=e.searchSubmit):e.section||e.path||(S(""),ya.section(he)),ue=e.path,pe=e.section&&w(e.section.id)?K(e.assetId,e.section.mediaItems.length-1):e.assetId||0,me=e.mode,de=!!e.isMobileVideoClick,t||X(e),k(),te("inquiry"),te("share"),function(){var i;e.section&&e.section.isSearch&&e.searchTerm?(be={},i=D()+"?search="+e.searchTerm,e.section.sortBy&&(i+="&sort="+(e.section.sortBy||"date-asc"))):i=D(),La.setValue(i,t,!t)}}function U(e){ie(e),J(),La.setValue(D())}function J(){$("thumbs")&&/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)&&te("caption")}function Q(e){var t=he.mediaItems.length-1;w(he.id)&&(pe=C(pe,t)),w(he.id)?"next"===e.navDir?pe=pe>0?pe-1:0:"prev"===e.navDir&&(pe=pe0?pe-1:0:"next"===e.navDir&&(pe=ji===Di||ji===Bi?pe-1&&(a.footerView.updateStyle(e),a.footerView.updatePosition(e)))}function n(){ji===Di&&a.footerView.hide()}function o(){a.footerView.show()}var a=new qe({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents});return a.updateSpeed=0,a.footerView=new e.FooterView(e),a.footerView.alpha=0,a.parentView.addChild(a.footerView),a.events.addEventListener(Rn,i),a.events.addEventListener(jn,i),a.events.addEventListener(_n,i),a.events.addEventListener(Qi,a.footerView.updatePosition),a.events.addEventListener(Bo,n),a.events.addEventListener(jo,o),a.events.addEventListener(In,function(){a.footerView.updateSpeed=0,a.footerView.updatePosition()}),a.events.addEventListener("UPDATE_CONTENT_HEIGHT",function(){a.footerView.updateSpeed=0,a.footerView.updatePosition()}),a.footerView.addEventListener(Kn,t),a}function gt(e){function t(e){"Safari"===ia&&(w.translateZ=0)}function i(e){"Safari"===ia&&(w.style["-webkit-transform"]="none",w.style["-ms-transform"]="none",w.style.transform="none")}function n(){L=""!==ya.copyright?[ya.copyright].concat(S(ya.socialLinks)):S(ya.socialLinks);var e=0,t=L.length,i=ji===Di?"y":"x";for(C=new f("x"),b=new f(i),w.addChild(b),w.addChild(C);e0&&g()}function o(e){return/src=/.test(e.label)}function a(e){e=e.replace(/\[|\]|\s+/g,"");var t="",i=20,n=20;if(e.indexOf(",")>-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 r(e){var t=a(e.label),i=new Ge;return i.src=Pi.cdnSslUri+"/"+t.path,i.width=t.width,i.height=t.height,i.element.style.cursor="pointer",i.customLabel=e.label.toLowerCase(),i}function s(t,i,n){var o=sa[t.label.toLowerCase()],a=new e.Bitmap;return a.src=uo+o.filename,a.width=o.width,a.height=o.height,a.element.style.cursor="pointer",a.addEventListener(Ki,h),a}function d(e){switch(Oi.footerIconShape){case"standard":return e.svgStdPath;case"rectangle":return e.svgRectPath;case"circle":return e.svgCircPath}}function c(e){var t=sa[e.label.toLowerCase()],i=new ba,n=new ba({type:"g"}),o=new et,a=ji===Bi||ji===Di?1:Oi.footerIconScale;if(n.scale=a,/circle|rectangle/.test(Oi.footerIconShape)){var r=new tt;r.rx="circle"===Oi.footerIconShape?t.bgCircRadius:t.bgRectRadius,r.width=t.width,r.height=t.height,r.fill=Oi.footerIconColor,n.addChild(r)}return o.d=d(t),o.fill="standard"===Oi.footerIconShape?Oi.footerIconColor:Oi.footerIconBgColor,o.fillRule="evenodd",n.addChild(o),i.addChild(n),i.width=t.width*a,i.height=t.height*a,i.element.style.cursor="pointer",i.socialLabel=e.label.toLowerCase(),i}function h(e){g(),w.updatePosition()}function u(e){var t=l(e);return e&&t&&t.label&&sa[t.label.toLowerCase()]&&!isNaN(e)}function p(t){var i=document.createElement("span"),n=x(Oi.copyrightFont);i.style.position="absolute",i.style.display="block",ji===Di&&(i.style.width=va.width-12+"px"),i.style.fontFamily=n.family,i.style.textTransform=Oi.copyrightTextTransform||"none",i.style.fontWeight=n.weight,i.style.fontSize=Oi.copyrightFontSize.toString().replace("px","")+"px",i.style.letterSpacing=Oi.footerKerning+"px",i.innerHTML=t,i.whiteSpace=ji===Di?"normal":"nowrap",document.body.appendChild(i);var o=new e.Sprite;return o.fontFamily=Oi.copyrightFont,o.textTransform=Oi.copyrightTextTransform||"none",o.fontSize=Oi.copyrightFontSize.toString().replace("px","")+"px",o.fontColor=Oi.copyrightColor,o.letterSpacing=Oi.footerKerning,o.text=t,o.width=i.offsetWidth,o.height=i.offsetHeight,o.textWrap=ji===Di,document.body.removeChild(i),i=null,o}function m(e){this.btn.txt?Ze(this.btn.txt,bo,{fontColor:T(Oi.copyrightColor,.5)}):Ze(this.btn,bo,{alpha:.5})}function v(e){this.btn.txt?Ze(this.btn.txt,bo,{fontColor:T(Oi.copyrightColor,1)}):Ze(this.btn,bo,{alpha:1})}function g(){var e,t=w.children,i=t.length;for(b.layoutContent(),C.layoutContent(),y=new De,y.gap=0,y.axis=ji===Di?"y":"x",y.align="left",y.wrap=!1,"x"===y.axis?y.perpLength=va.height:y.perpLength=va.width,e=0;e0&&ji!==Di&&(b.y=C.height-b.height);var o=y.getBounds();w.transition=0,w.width=o.width,w.height=o.height}function f(e){var t=new ma;return t.layoutContent=function(){var i=new De;i.gap=6,i.axis=e,i.align="left",i.wrap=!1,i.perpLength=150;for(var n=0,o=t.children,a=o.length;n-1||(this.txt?Ze(this.txt,bo,{ease:"ease-out",fontColor:T(Oi.logoFontColor,.5)}):Ze(this,bo,{ease:"ease-out",alpha:.5}))}function n(e){this.txt&&this.txt.text.indexOf("-1||(this.txt?Ze(this.txt,bo,{fontColor:T(Oi.logoFontColor,1)}):Ze(this,bo,{alpha:1}))}function o(){ji!==Di&&r()}function a(){l()}function r(){d.logoView.style.pointerEvents="none",Ze(d.logoView,bo,{alpha:0,display:"none"})}function l(){d.logoView.display="block",Ze.defer(d.logoView,bo,{alpha:1,onComplete:function(){d.logoView.style.pointerEvents="auto"}})}function s(e){if(this.txt&&this.txt.text.indexOf("-1);else{var t={type:"internal",path:"",target:"_self"};d.events.dispatchEvent(Jn,t)}}var d=new qe({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents});return d.updateSpeed=0,d.logoView=new e.LogoView({parentView:d.parentView,parentController:d,events:e.siteControllerEvents}),d.logoView.alpha=0,d.events.addEventListener("LOGO_CHILD_ADDED",l),ji===Di?e.menuController.menuView.mask.addChild(d.logoView):"menu"===Oi.logoPlacement?e.menuController.menuView.addChild(d.logoView):d.parentView.addChild(d.logoView),d.events.addEventListener(_n,function(e){/intro|logo/.test(e.id)&&(d.logoView.updateStyle(e),d.logoView.updatePosition(e))}),d.events.addEventListener(Rn,t),d.events.addEventListener(Qi,d.logoView.updatePosition),d.events.addEventListener(Bo,o),d.events.addEventListener(jo,a),d.logoView.addEventListener(Sn,s),ji!==Di&&ji!==Bi&&(d.logoView.addEventListener(rn,i),d.logoView.addEventListener(cn,n)),d}function bt(e){function t(e){var t=void 0===Pi.disableRightClick||Pi.disableRightClick;t&&e.preventDefault()}function i(e){"Safari"===ia&&(g.translateZ=0)}function n(e){"Safari"===ia&&(g.style["-webkit-transform"]="none",g.style["-ms-transform"]="none",g.style.transform="none")}function o(e){g.events.dispatchEvent("OVER_LOGO")}function a(){return ji===Di?K(Oi.mobileLogoFontSize,Oi.logoFontSize):ji===Bi?K(Oi.tabletLogoFontSize,Oi.logoFontSize):Oi.logoFontSize}function r(){return ji===Di?K(Oi.mobileLogoFontColor,Oi.logoFontColor):ji===Bi?K(Oi.tabletLogoFontColor,Oi.logoFontColor):Oi.logoFontColor}function l(){return ji===Di?K(Oi.mobileLogoFont,Oi.logoFont):ji===Bi?K(Oi.tabletLogoFont,Oi.logoFont):Oi.logoFont}function s(){return ji===Di?K(Oi.mobileLogoKerning,Oi.logoKerning):ji===Bi?K(Oi.tabletLogoKerning,Oi.logoKerning):Oi.logoKerning}function d(e,t){var i=document.createElement("img");i.addEventListener("load",function(e){var n=i.offsetWidth,o=i.offsetHeight;document.body.removeChild(i),t({width:n,height:o})}),i.style.opacity=0,document.body.appendChild(i),i.src=e}function c(){v=!0,setTimeout(function(){g.updatePosition(),g.events.dispatchEvent(Qn),Ze.defer(g.img,bo,{alpha:1}),g.events.dispatchEvent("LOGO_LOADED")},10),g.img.element.removeEventListener(Ki,c)}var h,u,p,m,v,g=new at({events:e.events});return ji===Di?g.textWrap=!0:g.textWrap=!1,g.zIndex=ya.logoView.zIndex(),ji!==Di&&ji!==Bi&&(g.position=Oi.logoPositionFixed?"fixed":"absolute"),g.updateSpeed=0,g.events.addEventListener("fillSiteMode",i),g.events.addEventListener("nonFillSiteMode",n),g.element.addEventListener("contextmenu",t),g.element.addEventListener("dragstart",t),g.addEventListener(Co,function(e){g.updatePosition(),setTimeout(function(){g.updatePosition(),g.updateSpeed=bo},500),g.events.dispatchEvent("LOGO_CHILD_ADDED")}),g.addEventListener(rn,o),g.updatePosition=function(e){if(g.zIndex=ya.logoView.zIndex(),ji!==Di&&ji!==Bi&&(g.position=Oi.logoPositionFixed?"fixed":"absolute"),g.transition=0,g.txt)ji===Di?(g.txt.width=va.width,g.width=va.width):g.width=g.txt.element.offsetWidth,g.height=g.txt.element.offsetHeight;else if(g.img&&v&&(!e||!e.action||"changeTemplate"!==e.action))if(ji===Di&&(Oi.mobileLogoWidth||Oi.mobileLogoHeight)||Oi.logoWidth||Oi.logoHeight){var t=E(Oi.logoWidth,va.width)||2e3,i=E(Oi.logoHeight,va.height)||2e3;ji===Di&&(t=E(Oi.mobileLogoWidth,va.width)||t,i=E(Oi.mobileLogoHeight,va.height)||i,t=(E(Oi.mobileLogoWidth,va.width)||E(Oi.logoWidth,va.width)||2e3)>va.width-2*E(Oi.mobileLogoOffsetX,va.width)?va.width-2*E(Oi.mobileLogoOffsetX,va.width):t,i=E(Oi.mobileLogoHeight,va.height)||E(Oi.logoHeight,va.height)||2e3);var n={type:"fit",hRange:t,vRange:i,width:p,height:m,disableOrientationCheck:!0},o=Fe(n);g.img.width=o.width,g.img.height=o.height,g.width=o.width,g.height=o.height}else if(!e||!e.action||"changeTemplate"!==e.action){var a={width:p,height:m,filename:h},r=Ae(a),t=r.width;ji===Di&&(t=r.width>va.width-2*E(Oi.mobileLogoOffsetX,va.width)?va.width-2*E(Oi.mobileLogoOffsetX,va.width):t);var o=Fe({type:"fit",hRange:t,vRange:r.height,width:p,height:m,disableOrientationCheck:!0});g.img.width=o.width,g.img.height=o.height,g.width=o.width,g.height=o.height}Ze.defer(g,0,{x:wa.logoView.x(g.width),y:wa.logoView.y(g.height)})},g.updateStyle=function(t){if(t&&t.id&&/logo|layoutModelInit/i.test(t.id)){var i=ji!==Di&&ji!==Bi&&Oi.logoBlendMode?Oi.logoBlendMode:"normal";g.element.style["mix-blend-mode"]=i;var n=ya.logoFile||Oi.logoFile||"";if(ji===Di&&(n=Pi.mobileLogoFile||Oi.mobileLogoFile||n),ji===Bi&&(n=Pi.tabletLogoFile||Oi.tabletLogoFile||n),h=n.indexOf("dxlogo1__at__2x.png")>-1||n.indexOf("dxlogo2__at__2x.png")>-1?ho+"/media/"+n:""!==n?Pi.cdnSslUri+"/"+n:void 0,g.txt&&(g.removeChild(g.txt),g.txt=void 0),h&&h!==u)g.img&&(g.removeChild(g.img),g.img=void 0),g.img=new Ge,g.img.element.style["user-select"]="none",g.img.alpha=0,g.img.element.setAttribute("class","logoImage"),d(h,function(e){p=e.width,m=e.height,u=h,g.img.element.src=h}),g.img.element.addEventListener("load",c),g.addChild(g.img),g.img.element.style.cursor="pointer";else if(!h){g.img&&(g.removeChild(g.img),g.img=void 0),h=void 0,u=void 0,v=!1;var o=ya.logoText||Oi.logoText||"",f=ya.logoHtml||Oi.logoHtml||"";g.txt=new ma,g.txt.text=f.replace(/(\\*'|\\*")/g,"'")||o.replace(/(\\*'|\\*")/g,"'"),g.txt.element.setAttribute("class","logoText"),g.txt.element.style["user-select"]="none",g.addChild(g.txt),g.txt.element.style.cursor="pointer",ji===Di&&(g.txt.textAlign=Oi.mobileLogoAlignHorizontal||"left");var b=a(),C=r(),w=l(),y=s();b!==g.txt.fontSize&&(g.txt.fontSize=b),C!==g.txt.fontColor&&Ze(g.txt,e.parentController.updateSpeed,{
fontColor:C}),w!==g.txt.fontFamily&&(g.txt.fontFamily=w),y!==g.txt.letterSpacing&&(g.txt.letterSpacing=y),Oi.logoTextTransform&&Oi.logoTextTransform!==g.txt.textTransform&&(g.txt.textTransform=Oi.logoTextTransform)}}},g}function Ct(e){function t(){}function n(){F&&s(),F!==!1&&(F=void 0)}function o(){void 0===F&&(F=!0),F&&s()}function a(e){D||t(e),clearTimeout(D),o(e),D=setTimeout(function(){n(e),D=null},300)}function s(){z&&"multiple"===wa.sectionDisplayMode&&Object.keys(z).map(function(e){return z[e]}).forEach(function(e){var t=e.view.y;window.scrollY+.5*window.innerHeight>=t&&window.scrollY+.5*window.innerHeight<=t+e.view.height&&(e.controller.checkCaption(),ya.section(e.controller.section),R.dispatchEvent("cursorAxisUpdate",ve(ya.overrides.transitionType)),R.dispatchEvent("updateSectionPassive",{section:e.controller.section,assetId:e.controller.getCurrentAssetId(),mode:e.controller.getCurrentMode()}))})}function d(e){return ya.section(e),!i(e)&&ya.overrides.thumbnailDefaultOn&&/fill|paginated|vMasonry|hMasonry/i.test(ya.overrides.thumbnailType)&&1===Oi.overlayAlpha||g(e)}function c(e){return d(e)?"thumbs":h(e)&&u(e)?"thumbs-caption":h(e)?"thumbs":u(e)?"caption":""}function h(e){return ya.section(e),!i(e)&&"none"!==ya.overrides.thumbnailType&&(ya.overrides.thumbnailDefaultOn||g(e))&&e&&e.media&&e.media.length>1}function u(e){ya.section(e);var t=l(e.mediaItems[0]);return t||(t={overrides:{}}),ji!==Di&&K(t.overrides.captionDefault,ya.overrides.captionDefault)}function p(e){var t=new ma,i=new ba,n=new ba({type:"g"}),o=new et,a=100*e.scale;t.zIndex=5,t.width=a,t.height=a,t.element.style["mix-blend-mode"]=e.blendMode,t.alpha=0,t.addEventListener("click",function(){var e=z[1];if(e){var t=e.view.y-ya.mediaView.y(e.controller.section.key);ua.to(window,.35,{scrollY:t,ease:so?"outQuart":"inOutCubic"})}});var r;return t.updatePosition=function(i){clearTimeout(r),r=setTimeout(function(i){t.y=i-a-e.offsetY,t.x=.5*(va.width-a),Ze(t,bo,{alpha:1})},1e3,i)},i.position="absolute",i.width=a,i.height=a,t.element.style.transformOrigin="center",n.scale=e.scale,o.d=e.path,o.fill="none",o.stroke=e.color,o.strokeWidth=e.strokeWidth,i.addChild(n),n.addChild(o),t.addChild(i),t}function m(e){return!e.hideFromUnifiedSite&&"%SPACER%"!==e.label&&e.visible&&(!!g(e)||e.mediaItems.length)&&(!e.password.length||ya.getPassedSection(e.id))&&!/overlay|none|unifiedPageScrolling/.test(e.displayBehavior)&&(!v(e)||e.isIndex)}function v(e){var t=l(e.media[0]);return!!t&&("link"===t.type&&!e.mediaItems.length)}function f(e){function t(){wa.sectionDisplayMode="multiple";var t=e.media.map(r).filter(m);if("ROOT_SECTION"===e.label&&ya.backgroundImages.length){var n=ya.backgroundImages.filter(function(e){return!!Ii[e]}),o={id:_i,key:"/",label:_i,visible:1,password:"",media:n,mediaItems:n,overrides:{captionDefault:Oi.slideshowCaptions}};t=[o].concat(t)}var a=t[0];t[1];("ROOT_SECTION"===e.label&&Oi.slideshowScrollDownIcon&&i(a)||e.scrollDownIcon||a&&a.scrollDownIcon)&&(b=p({path:fa.arrow3Down,color:Oi.scrollDownIconColor||"#F2F2F2",strokeWidth:Oi.scrollDownIconStrokeWidth||1,scale:Oi.scrollDownIconScale||1,offsetY:Oi.scrollDownIconOffsetY||0,blendMode:Oi.scrollDownIconBlendMode||"normal"}),H.addChild(b)),z=t.reduce(function(e,n,o){ya.section(n);var a={section:n,mediaToRender:y(n.mediaItems),path:n.key,assetId:d(n)?-1:0,asset:l(n.mediaItems[0]),mode:c(n),info:{isSectionChange:!0,isAssetChange:!0,isModeChange:!1,isLandingMedia:i(n),mediaViewState:i(n)?"landingMedia":"mediaView",isDeepLink:!1,isMediaViewStateChange:!0,isIntroGallery:n.isIntroGallery,flickSpeed:.35,lastUri:"/",isThumbsFirst:d(n),isMobileVideoClick:!1,isBlog:w(n.id)}};wa.updateSectionState(n.key,{assetId:a.assetId,mode:a.mode});var r=new j(R,H,null,{position:o,length:t.length});return wa._uriState=a,r.controller.build(a),e.concat(r)},[]),window.addEventListener("scroll",f)}function n(e){clearTimeout(L),L=setTimeout(function(){var t=0,i=Oi.marginOverlap||0,n=z[0].controller.section,o=E(Oi.sitePaddingTop,va.height),a=o;if(_(n))a=0;else if(/top/.test(ya.menuView.placement())&&!Oi.isMenuScrollReveal){var r=E(Oi.menuWidth,va.height)-E(Oi.menuOffsetX,va.height);a=o+r-i}var l=a||0,s=0;z.forEach(function(e,i,n){ya.section(e.controller.section);var o=n[i-1],a=o?o.view.y+(o.view.height||0):l,r=e.controller.getTotalHeight();s+=e.controller.section.media.length;e.controller.section;t+=r||0,e.view.transition=0,e.view.x=0,e.view.y=a,e.view.width=ya.mediaView.width(),e.view.height=r,e.view.mask.x=ya.mediaView.x(),e.view.container.y=0,e.view.mask.transition=0,e.view.mask.width=ya.mediaView.width(),e.view.mask.height=r}),H.totalHeight=t,H.height=t,wa.mediaModules=z,wa.mediaViewsHeight=H.totalHeight,b&&b.updatePosition(z[0].view.height),u(O,e)},500)}function o(){}function a(){g(),t()}function s(e){ya.section(e.controller.section);var t=e.view.y-ya.mediaView.y(e.controller.section.key);if(e===z[0])t=0;else{document.getElementsByClassName("SiteView")[0]}window.scrollTo(0,t)}function h(e){ya.section(e.controller.section);var t=e.view.y-ya.mediaView.y(e.controller.section.key);e===z[0]&&(t=0),ua.to(window,.35,{scrollY:t,ease:so?"outQuart":"inOutCubic"})}function u(e,t){if(C){var i=z.filter(function(t){return e.path===t.controller.section.key})[0];i||(i=z[0]),e.info.isParentSectionChange||t?s(i):e.info.isSectionChange?h(i):e.info.isModeChange&&h(i),C=!1}}function v(e,t){C=!0;var i=z.filter(function(t){return e.path===t.controller.section.key})[0];i||(i=z[0]),t&&!e.info.isParentSectionChange||i.controller.navigate(e),R.dispatchEvent("cursorAxisUpdate",i.controller.cursorAxis)}function g(){z.forEach(function(e){e.controller.destroy()}),window.removeEventListener("scroll",f),b&&H.removeChild(b)}function f(){clearTimeout(S),S=setTimeout(function(){z.forEach(function(e){e.view.lazyLoader&&e.view.lazyLoader.update(),e.controller.overlayController&&e.controller.overlayController.lazyLoaderUpdate()})},10)}var b,C;t();var L,S;return{type:"unified",layout:n,uriChange:v,modelChange:a,scrollTo:u,transition:o,destroy:g}}function b(){function e(e){clearTimeout(a),a=setTimeout(function(){var t=r.getTotalHeight();ya.section(l.section),Ze(l,0,{x:ya.mediaView.x(),y:ya.mediaView.y(l.section.key),width:ya.mediaView.width(),height:t});var i="none"===ya.overrides.siteDisplayBehavior&&/vScroll/.test(ya.overrides.transitionType)?ya.mediaView.zoneHeight():l.container.boundsHeight;Ze(l.mask,0,{width:ya.mediaView.width(),height:i}),wa._mediaContentHeight=t,l.lazyLoader&&l.lazyLoader.update(),"function"==typeof e&&setTimeout(e,500)},500)}function t(){}function i(e,t,i){t||r.navigate(e,i)}function n(){Ze(l.container,bo,{backgroundColor:ya.mediaView.backgroundColor()}),e(),r.destroyStaticNav(),r.createStaticNav()}wa.sectionDisplayMode="single";var o=new j(R,H);k=o;var a,r=o.controller,l=o.view;return{type:"legacy",module:o,layout:e,uriChange:i,modelChange:n,transition:t,destroy:function(){o.controller.destroy()}}}function C(){function e(){var e=r.getTotalHeight();ya.section(l.section),l.x=0,l.y=0,l.width=va.width,l.height=va.height,l.mask.width=ya.mediaView.width(),l.mask.height=ya.mediaView.contentHeight(),wa._mediaContentHeight=e,l.lazyLoader&&l.lazyLoader.update()}function t(){}function i(e){r.navigate(e)}function n(){ya.section(l.section),Ze(l.container,bo,{backgroundColor:ya.mediaView.backgroundColor()}),e(),r.destroyStaticNav(),r.createStaticNav()}wa.lastSectionDisplayMode=wa.sectionDisplayMode,wa.sectionDisplayMode=/unifiedSiteScroll/.test(ya.overrides.siteDisplayBehavior)?"multiple":"single";var o=!0,a=new j(R,H,o);k=a;var r=a.controller,l=a.view;return{type:"overlay",module:a,layout:e,uriChange:i,modelChange:n,transition:t,destroy:function(){a.controller.destroy()}}}function L(e){R.removeEventListener("UPDATE_CONTENT_HEIGHT",function(){W(e.layout)}),R.removeEventListener(Rn,e.modelChange),R.removeEventListener(Wn,e.modelChange),R.removeEventListener(_n,function(t){/backgroundimages|template|staging/.test(t.id)&&e.modelChange()}),R.removeEventListener("mediaOverlayClose",function(){I||R.dispatchEvent(No,{type:"internal",path:"",target:"_self"})})}function S(e){R.addEventListener("UPDATE_CONTENT_HEIGHT",function(){W(e.layout)}),R.addEventListener(Rn,e.modelChange),R.addEventListener(Wn,e.modelChange),R.addEventListener(_n,function(t){/backgroundimages|template|staging/.test(t.id)&&e.modelChange()}),R.addEventListener("mediaOverlayClose",function(){B&&ya.section(B.section),I?R.dispatchEvent("updateSectionPassive",{section:B.section,assetId:B.assetId,mode:B.mode}):R.dispatchEvent(No,{type:"internal",path:"",target:"_self"})})}function x(e){O=e;var t=!1;switch(ya.section(e.section),ya.overrides.siteDisplayBehavior){case"unifiedSiteScrollVertical":A&&A.module.view.close(function(){A&&A.destroy(),A=null}),I?e.info.isParentSectionChange||I&&"legacy"===I.type||e.info.isPasswordSection||e.info.isSearchSubmit?(I&&(L(I),I.destroy()),I=f(e.parentSection),S(I),t=!0,I.uriChange(e,t),I.layout(t)):e.info.isModeChange?(I.uriChange(e,t),I.layout(t)):(I.uriChange(e,t),I.scrollTo(e,t)):(I=f(e.parentSection),S(I),t=!0,I.uriChange(e,t),I.layout(t));break;case"overlay":e.info.isSectionChange&&A&&(L(A),A.destroy(),A=null),A||(B=e.prevState,A=C(),S(A),t=!0,A.module.controller.build(e)),A.uriChange(e,t),A.layout(),A.module.view.open(),P=wa.sectionDisplayMode;break;default:if(A&&A.module.view.close(function(){A&&A.destroy(),A=null}),e.info.isSectionChange||I&&"unified"===I.type){I&&(L(I),I.destroy()),I=b(),S(I),I.module.controller.build(e),t=!0;var i=!0;I.layout(function(){var t=e.assetId<1;I.uriChange(e,t,i)})}else e.info.isModeChange?(I.uriChange(e,t),I.layout()):I&&I.uriChange(e,t)}}function M(e,t){return e.key===t.section.key}function V(e){if(/unifiedSiteScroll/.test(ya.overrides.siteDisplayBehavior))z&&Object.keys(z).map(function(e){return z[e]}).forEach(function(t){var i;if(M(t.controller.section,e)&&(ya.section(t.controller.section),!/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)||!/thumbs/.test(e.mode))){var n=t.view.container.children[e.assetId];i=n?n.id:void 0}t.events.dispatchEvent("spacebarTogglePlay",i)});else if(k){if(ya.section(k.controller.section),!/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)||!/thumbs/.test(e.mode))var t=k.view.container.children[e.assetId],i=t?t.id:void 0;k.events.dispatchEvent("spacebarTogglePlay",i)}}function T(e){if(/unifiedSiteScroll/.test(ya.overrides.siteDisplayBehavior))z&&Object.keys(z).map(function(e){return z[e]}).forEach(function(t){var i;if(M(t.controller.section,e)&&(ya.section(t.controller.section),(!/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)||!/thumbs/.test(e.mode))&&ya.mediaView.videoAutoPlay())){var n=t.view.container.children[e.assetId];i=n?n.id:void 0}t.events.dispatchEvent("mediaAutoPlay",i)});else if(k){if(ya.section(k.controller.section),(!/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)||!/thumbs/.test(e.mode))&&ya.mediaView.videoAutoPlay())var t=k.view.container.children[e.assetId],i=t?t.id:void 0;k.events.dispatchEvent("mediaAutoPlay",i)}}var z,k,O,I,A,F,P,H=e.parentView,R=e.siteControllerEvents,j=e.MediaModule,B={};/unifiedSiteScroll/.test(ya.overrides.siteDisplayBehavior)&&window.addEventListener("scroll",a);var D,W=ce(500);R.addEventListener("autoplayTarget",T),R.addEventListener("spacebarPlay",V),R.addEventListener(In,x),R.addEventListener(Rn,function(e){/siteDisplayBehavior|transitionType/.test(e.id)&&I&&(L(I),I.destroy(),ya.section(O.section),"unifiedSiteScrollVertical"===ya.overrides.siteDisplayBehavior?I=f(O.parentSection):(I=b(),I.module.controller.build(O)),S(I),built=!0,I.layout())}),R.addEventListener(Wn,function(){I&&(L(I),I.destroy(),ya.section(O.section),"unifiedSiteScrollVertical"===ya.overrides.siteDisplayBehavior?I=f(O.parentSection):(I=b(),I.module.controller.build(O)),S(I),built=!0,I.layout())})}function wt(e){function t(e){1===T.assetId&&"right"===e.swipeDirection?z.touchNav&&(z.touchNav.disabled=!0):z.touchNav&&(z.touchNav.disabled=!1),e.isMove?n()&&"right"===e.swipeDirection?l():o()&&"left"===e.swipeDirection?l():"left"===e.swipeDirection||"right"===e.swipeDirection?(e.navDir="left"===e.swipeDirection?"next":"prev",x.dispatchEvent(Yo,e)):l():e.isMove&&/left|right/.test(e.swipeDirection)&&l()}function i(){w||r(),"mSlide"!==y||z.touchNav||a(),w(),/scroll/i.test(y)||l()}function n(){return 0===T.assetId}function o(){return T.assetId===S(T.section.media).length-1}function a(){z.touchNav=new Xe({events:x,mediaViewContainer:V}),z.touchNav.section=T.section&&T.section.key||"no section"}function r(){ya.section(T.section),M.scroll&&(M.scroll.destroy(),M.scroll=null),y=ya.overrides.transitionType;var t="fade"===y||"mSlide"===y?"fade":"default",i=M.container,n=M.mask;M.lazyLoader=new Te(i,n,{type:t,property:"translate"}),M.lazyLoader.name="mediaView",b&&"function"==typeof b.destroy&&b.destroy(),x.dispatchEvent("cursorAxisUpdate",ve(y));var o=ya.mediaView.transitionDuration();switch(y){case"fade":C=new Vt({siteView:e.siteView,mediaView:M,mediaViewContainer:V,localEvents:x}),b=new Tt({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:V,localEvents:x});break;case"hSlide":C=new jt({siteView:e.siteView,mediaView:M,mediaViewContainer:V,localEvents:x}),b=new Bt({transitionDuration:o,mediaView:M,mediaViewContainer:V,localEvents:x});break;case"vSlide":C=new Dt({siteView:e.siteView,mediaView:M,mediaViewContainer:V,localEvents:x}),b=new _t({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:V,localEvents:x});break;case"hScroll":C=new kt({siteView:e.siteView,mediaView:M,localEvents:x}),b=new Ot({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:x});break;case"hScrollNC":C=new It({siteView:e.siteView,mediaView:M,localEvents:x}),b=new At({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:x});break;case"vScroll":C=new Ft({siteView:e.siteView,mediaView:M,localEvents:x}),b=new Pt({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:x});break;case"vScrollNC":C=new Ht({siteView:e.siteView,mediaView:M,localEvents:x}),b=new Rt({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:x});break;case"grid":C=new Et({siteView:e.siteView,mediaView:M,mediaViewContainer:V,localEvents:x}),b=new zt({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:V,localEvents:x});break;case"mSlide":C=new Wt({siteView:e.siteView,mediaView:M,mediaViewContainer:V,localEvents:x}),b=new Nt({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:V,localEvents:x});break;case"vScrollStatic":C=new Xt({siteView:e.siteView,mediaView:M,localEvents:x}),b=new Yt}w=function(){ya.section(T.section),C()}}function l(){var e=oe()||le()?0:.85;1===va.zoom&&(T.mediaToRender&&T.mediaToRender.length>T.assetId&&b?T.assetId>-1&&b(T.assetId,e):b&&b(0,e))}function s(e){b(e,0)}function d(){1===va.zoom&&ae()&&!Pi.podUseDesktop&&window.scrollTo(1,0),w&&w(),T.mediaToRender&&T.mediaToRender.length>0&&T.assetId>-1&&(b||r(),"mSlide"!==y||z.touchNav||a(),/^unifiedSite/.test(ya.overrides.siteDisplayBehavior)||s(T.assetId)),L=!1,M&&M.lazyLoader&&M.lazyLoader.update()}function c(e){L=!0}function h(e){u(e),g()}function u(){r(),"mSlide"!==y||z.touchNav||a(),w()}function p(e){"siteDisplayBehavior"===e.id&&r(),"mSlide"!==y||z.touchNav||a(),w&&w()}function m(e,t){return e.key===t.section.key}function v(e){clearTimeout(k),k=setTimeout(function(){E=e.id,T&&m(M.section,T)&&(T.assetId=e.id)},200)}function g(){V.transition=0,Math.abs(V.translateX)>0&&(V.translateX=0),Math.abs(V.translateY)>0&&(V.translateY=0),V.x=0,V.y=0,Ze(V,bo,{backgroundColor:ya.mediaView.backgroundColor()})}function f(){b&&b.destroy&&b.destroy(),w=void 0,b=void 0,x.removeEventListener(Rn,p),x.removeEventListener(Wn,p),x.removeEventListener(Rn,p),x.removeEventListener(Ji,d),x.removeEventListener(no,c),x.removeEventListener("layoutMediaView",h),x.removeEventListener("mediaSizeUpdate",i),x.removeEventListener("MEDIA_HEIGHT_CHANGE",i),x.removeEventListener("assetReset",l),x.removeEventListener(Ro,t),x.removeEventListener("ScrollTransition/updateAssetId",v),M.scroll&&M.scroll.destroy(),z.touchNav&&z.touchNav.destroy(),z.touchNav=null,M.scroll=null}var b,C,w,y,L,x=e.localEvents,M=e.mediaView,V=e.mediaView.container,T={assetId:0},E=0,z=this;x.addEventListener("layoutMediaView",h),x.addEventListener(Wn,p),x.addEventListener(Rn,p),x.addEventListener(Ji,d),x.addEventListener(no,c),x.addEventListener("mediaSizeUpdate",i),x.addEventListener("MEDIA_HEIGHT_CHANGE",i),x.addEventListener("assetReset",l),x.addEventListener(Ho,function(e){n()&&"prev"===e&&z.touchNav&&(z.touchNav.disabled=!0)}),x.addEventListener(Bo,function(e){z.touchNav&&(z.touchNav.disabled=!1)}),x.addEventListener(Ro,t),x.addEventListener("ScrollTransition/updateAssetId",v),this.init=function(e){T=e,V.transition=0,V.alpha=0,w||r(),"mSlide"!==y||z.touchNav||a(),w(),setTimeout(function(){Ze(V,ya.mediaView.transitionDuration(),{alpha:1})},1e3)},this.updateState=function(e){T=e},this.uriChange=function(e,t){T=e,ya.section(T.section);var i=V.children.length>0;if(T.mediaToRender&&i){if(t||(T.mode.indexOf("thumbs")!==-1&&T.assetId===-1&&(V.transition=0,V.alpha=0),T.assetId>-1&&(T.info.isDeeplink?s(T.assetId):ya.siteView.unifiedPageScroll()&&T.info.isModeChange&&/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)&&/thumbs/.test(T.mode)?(V.transition=0,V.alpha=0,setTimeout(function(){Ze(V,ya.mediaView.transitionDuration(),{alpha:1})},1e3*bo+10)):T.info.isModeChange&&/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)&&/thumbs/.test(T.info.lastUri)?(V.transition=0,V.alpha=0,ya.siteView.unifiedPageScroll()?setTimeout(function(){s(T.assetId),Ze(V,ya.mediaView.transitionDuration(),{alpha:1})},1e3*bo+10):(s(T.assetId),setTimeout(function(){Ze(V,ya.mediaView.transitionDuration(),{alpha:1})},500*bo))):T.info.isModeChange&&/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)&&/thumbs/.test(T.mode)||(b||r(),"mSlide"!==y||z.touchNav||a(),z.touchNav?(1!==va.zoom||ji!==Di||Pi.podUseDesktop||M.mask.element.scrollTo(0,0),Ze(V,ya.mediaView.transitionDuration(),{alpha:1}),b(T.assetId,T.info.flickSpeed,z.touchNav.swipeDirection)):T.info.isSectionChange?(V.transition=0,b(T.assetId,T.info.flickSpeed),setTimeout(function(){Ze(V,ya.mediaView.transitionDuration(),{alpha:1})},1e3*bo+10)):(Ze(V,ya.mediaView.transitionDuration(),{alpha:1}),b(T.assetId,T.info.flickSpeed))))),T.assetId>-1&&(!/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)||!/thumbs/.test(e.mode))&&ya.mediaView.videoAutoPlay()){var n=V.children[T.assetId]&&V.children[T.assetId].id;x.dispatchEvent("mediaAutoPlay",n)}else if(!(/fill|vMasonry|hMasonry/.test(ya.overrides.thumbnailType)&&/thumbs/.test(e.mode)||ji!==Di)){var n=V.children[T.assetId]&&V.children[T.assetId].id,o=Ii[n];o&&"video"===o.type&&0!==o.content.indexOf("vimeo")&&ya.mediaView.videoAutoPlay()&&x.dispatchEvent("mediaAutoPlay",n)}T.assetId>-1&&V.children[T.assetId]&&"html"===V.children[T.assetId].type&&x.dispatchEvent(Jo),z.touchNav&&(z.touchNav.assetId=e.assetId)}};var k;return this.destroy=f,z}function yt(e){function t(e){f(S),g.resume()}function i(e){var t=y.children[S];return t&&l(t.id)}function n(){S=0,f(S),C.dispatchEvent("siteAnchorCaptionUpdate",i(S)),C.dispatchEvent("showCaption",x)}function o(){S=r(),x.assetId=S;var e=y.children[S];isLogin?(f(S),g.pause()):"video"===e.type?(g.pause(),setTimeout(function(){f(S),e.autoPlay()},100),C.addEventListener("playbackEnd",a)):/html/.test(e.type)?f(S):/image/.test(e.type)&&e.loaded?f(S):/image/.test(e.type)&&!e.loaded&&(g.pause(),e.addEventListener(fo,t)),C.dispatchEvent("siteAnchorCaptionUpdate",i(S)),Oi.slideshowCaptions?C.dispatchEvent("showCaption",x):C.dispatchEvent("hideCaption",x),w.lazyLoader.update()}function a(e){g.resume(),o()}function r(){return S1||"video"===o.type)?(g&&g.destroy(),d()):n()}},this.destroy=function(){b=void 0,f=void 0,C.removeEventListener(Rn,m),C.removeEventListener(Ji,h),C.removeEventListener("layoutMediaView",u),C.removeEventListener(_n,v),C.removeEventListener("mediaSizeUpdate",p),C.removeEventListener("assetReset",s),g&&g.destroy()},c()}function Lt(e){function t(e){n()}function i(e){n()}function n(){d.section&&ya.section(d.section),Ze(l,bo,{backgroundColor:ya.mediaView.backgroundColor()})}function o(e){l.removeChildren(l);for(var t=0,i=e.length;ti.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=e.mediaViewContainer,a=e.localEvents,r=e.mediaView;return t}function Tt(e){function t(e,t){t=void 0!==t?t:a;var l=0,s=i.children,d=s.length;for(n.dispatchEvent(po);li.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=De,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function zt(e){function t(e,t){var t=void 0!==t?t:a,r=i.children[e];if(r){var l=r.x,s=r.y;anime({targets:i,duration:1e3*t,translateX:-l,translateY:-s,easing:so?"easeOutQuart":"easeInOutCubic",complete:function(){n.dispatchEvent(mo),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}})}}var i=e.mediaViewContainer,n=e.localEvents,o=e.mediaView,a=e.transitionDuration;return n.dispatchEvent(po),t.destroy=function(){},t}function kt(e){function t(e,t){return e.contentHeight&&1===t}function i(){var e=new o;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=ya.mediaView.height(a.section.key),a.section&&ya.section(a.section);var i=ya.mediaView.height(a.section.key),s=a.maxScroll&&/unifiedSite/.test(ya.overrides.siteDisplayBehavior);s&&(i=wa.getMaxScrollSectionHeight(a));for(var d=0,c=l.children,h=c.length;di.v&&(r=i.v),
e.height=r+t.top+t.bottom}else e.height=ya.mediaView.height()}e.updatePosition()}var o=De,a=e.mediaView,r=e.localEvents,l=a.container,s=a.mask;if("native"===ya.overrides.imageVideoScrollType)s.element.style.overflowY="hidden",s.element.style.overflowX="scroll";else if(Qo&&("nativeMacOs"===ya.overrides.imageVideoScrollType||Oi.globalSmoothScroll))s.element.style.overflowY="hidden",s.element.style.overflowX="scroll";else{a.scroll&&a.scroll.destroy();var d={name:"horiz scroll",types:["bar","wheel","touch"],axis:"x",align:"left",color:ya.overrides.imageVideoScrollbarColor,hover:ya.overrides.imageVideoScrollbarHover,side:ya.overrides.imageVideoScrollbarAlignment,alpha:ya.overrides.imageVideoScrollbarBgTransparency,width:ya.overrides.imageVideoScrollbarWidth,offsetX:ya.overrides.imageVideoScrollbarHorizontalOffset,offsetY:ya.overrides.imageVideoScrollbarVerticalOffset,topPad:0,property:"translate",zIndex:ya.mediaView.zIndex,rounded:ya.overrides.imageVideoScrollbarRounded,visibility:ya.overrides.imageVideoScrollbarVisibility};("nativeMacOs"===ya.overrides.imageVideoScrollType||Oi.globalSmoothScroll)&&(d.margin=0,d.color="#000000",d.hover="#000000",d.side="bottom",d.alpha=0,d.width=7,d.offsetX=0,d.offsetY=0,d.rounded=!0,d.visibility="when scrolling"),a.scroll=new Pe(l,s,d)}return i}function Ot(e){function t(e,t){p=e;var t=void 0!==t?t:C;b.dispatchEvent(po);var a=g.children[e];if(a){var r=a.x,l=a.y,s=o(e,g.children.length);f.width=ya.mediaView.width();var d=Le({width:a.width,hRange:f.width,hAlign:s});if(r=a.x-d.x,u=!0,c=!1,v.scroll){var h=g.width-f.width,w=r/h;v.scroll.percent=w,v.scroll.bar.moveHandle(ya.mediaView.transitionDuration()),Ze(g,t,{translateX:-r,translateY:-l,ease:so?$o.quart.out:$o.cubic.inOut,onComplete:function(){u=!1,c=void 0,b.dispatchEvent(mo),setTimeout(function(){v.lazyLoader&&v.lazyLoader.update()},360)}})}else t?(m&&m.kill(),m=ua.to(f,t,{scrollLeft:r,scrollTop:l,ease:so?"outQuart":"inOutCubic",onComplete:function(){u=!1,c=void 0,b.dispatchEvent(mo),v.lazyLoader&&v.lazyLoader.update()}})):setTimeout(function(){f.scrollLeft=r,f.scrollTop=l,u=!1,c=void 0,b.dispatchEvent(mo),v.lazyLoader&&v.lazyLoader.update()},10);u?i(e):n()}}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:ya.overrides.imageVideoInactiveAlpha;Ze(i,ya.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)Ze(g.children[e],ya.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return 0===e?"left":e===t-1?"right":ya.mediaView.hAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.width;v.scroll?-g.translateX+i>=t.x&&-g.translateX+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollLeft+i>=t.x&&f.scrollLeft+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener($n,s)):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener($n,s)):f.element&&f.element.removeEventListener("scroll",d)},t}function It(e){function t(){var e=new n;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=ya.mediaView.height(o.section.key),o.section&&ya.section(o.section);var t=0,l=r.children,s=l.length,d=ya.mediaView.height(o.section.key),c=o.maxScroll&&/unifiedSite/.test(ya.overrides.siteDisplayBehavior);for(c&&(d=wa.getMaxScrollSectionHeight(o));ti.v&&(r=i.v),e.height=r+t.top+t.bottom}else e.height=ya.mediaView.height()}e.updatePosition()}var n=De,o=e.mediaView,a=e.localEvents,r=o.container,l=o.mask;if("native"===ya.overrides.imageVideoScrollType)l.element.style.overflowY="hidden",l.element.style.overflowX="scroll";else if(Qo&&("nativeMacOs"===ya.overrides.imageVideoScrollType||Oi.globalSmoothScroll))l.element.style.overflowY="hidden",l.element.style.overflowX="scroll";else{o.scroll&&o.scroll.destroy();var s={name:"horiz scroll",types:["bar","wheel","touch"],axis:"x",align:"left",color:ya.overrides.imageVideoScrollbarColor,hover:ya.overrides.imageVideoScrollbarHover,side:ya.overrides.imageVideoScrollbarAlignment,alpha:ya.overrides.imageVideoScrollbarBgTransparency,width:ya.overrides.imageVideoScrollbarWidth,offsetX:ya.overrides.imageVideoScrollbarHorizontalOffset,offsetY:ya.overrides.imageVideoScrollbarVerticalOffset,topPad:0,property:"translate",zIndex:ya.mediaView.zIndex,rounded:ya.overrides.imageVideoScrollbarRounded,visibility:ya.overrides.imageVideoScrollbarVisibility};("nativeMacOs"===ya.overrides.imageVideoScrollType||Oi.globalSmoothScroll)&&(s.margin=0,s.color="#000000",s.hover="#000000",s.side="bottom",s.alpha=0,s.width=7,s.offsetX=0,s.offsetY=0,s.rounded=!0,s.visibility="when scrolling"),o.scroll=new Pe(r,l,s)}return t}function At(e){function t(e,t){p=e;var t=void 0!==t?t:C;b.dispatchEvent(po);var a=g.children[e];if(a){var r=a.x,l=a.y,s=o(e,g.children.length);f.width=ya.mediaView.width();var d=Le({width:a.width,hRange:f.width,hAlign:s});if(r=a.x-d.x,u=!0,c=!1,v.scroll){var h=g.width-f.width,w=r/h;v.scroll.percent=w,v.scroll.bar.moveHandle(ya.mediaView.transitionDuration()),Ze(g,t,{translateX:-r,translateY:-l,ease:so?$o.quart.out:$o.cubic.inOut,onComplete:function(){u=!1,c=void 0,b.dispatchEvent(mo),setTimeout(function(){v.lazyLoader&&v.lazyLoader.update()},360)}})}else t?(m&&m.kill(),m=ua.to(f,t,{scrollLeft:r,scrollTop:l,ease:so?"outQuart":"inOutCubic",onComplete:function(){u=!1,c=void 0,b.dispatchEvent(mo),v.lazyLoader&&v.lazyLoader.update()}})):setTimeout(function(){f.scrollLeft=r,f.scrollTop=l,u=!1,c=void 0,b.dispatchEvent(mo),v.lazyLoader&&v.lazyLoader.update()},10);u?i(e):n()}}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:ya.overrides.imageVideoInactiveAlpha;Ze(i,ya.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)Ze(g.children[e],ya.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return 0===e?"left":e===t-1?"right":ya.mediaView.hAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.width;v.scroll?-g.translateX+i>=t.x&&-g.translateX+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollLeft+i>=t.x&&f.scrollLeft+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener($n,s)):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener($n,s)):f.element&&f.element.removeEventListener("scroll",d)},t}function Ft(e){function t(){clearTimeout(d),d=setTimeout(function(){var e=new n;e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=ya.mediaView.width(),e.name="vScroll",o.section&&ya.section(o.section);for(var t=0,l=r.children,s=l.length;tya.mediaView.zoneHeight(v.section.key)&&ji!==Di?i(e):n()}},"Firefox"===ia?1e3:300)}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:ya.overrides.imageVideoInactiveAlpha;Ze(i,ya.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)Ze(g.children[e],ya.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return w(v.section.id)?"top":0===e?"top":e===t-1?"bottom":ya.mediaView.vAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.height;v.scroll?-g.translateY+i>=t.y&&-g.translateY+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):ya.siteView.unifiedPageScroll()?window.scrollY+.5*window.innerHeight>=t.absY&&window.scrollY+.5*window.innerHeight<=t.absY+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollTop+i>=t.y&&f.scrollTop+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener($n,s)):ya.siteView.unifiedPageScroll()?window.addEventListener("scroll",d):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener($n,s)):ya.siteView.unifiedPageScroll()?window.removeEventListener("scroll",d):f.element&&f.element.removeEventListener("scroll",d)},t}function Ht(e){function t(){clearTimeout(d),d=setTimeout(function(){var e=new n;e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=ya.mediaView.width(),o.section&&ya.section(o.section);for(var t=0,l=r.children,s=l.length;tya.mediaView.zoneHeight(v.section.key)?i(e):n()}},"Firefox"===ia?1e3:300)}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:ya.overrides.imageVideoInactiveAlpha;Ze(i,ya.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)Ze(g.children[e],ya.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return w(v.section.id)?"top":0===e?"top":e===t-1?"bottom":ya.mediaView.vAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.height;v.scroll?-g.translateY+i>=t.y&&-g.translateY+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):ya.siteView.unifiedPageScroll()?window.scrollY+.5*window.innerHeight>=t.absY&&window.scrollY+.5*window.innerHeight<=t.absY+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollTop+i>=t.y&&f.scrollTop+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener($n,s)):ya.siteView.unifiedPageScroll()?window.addEventListener("scroll",d):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener($n,s)):ya.siteView.unifiedPageScroll()?window.removeEventListener("scroll",d):f.element&&f.element.removeEventListener("scroll",d)},t}function jt(e){function t(){l.mask.element.scrollLeft=0,l.mask.element.scrollTop=0,l.mask.element.style.overflow="hidden";var e=new o;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=ya.mediaView.height(l.section.key),l.section&&ya.section(l.section);var t=0,s=a.children,d=s.length,c=ya.mediaView.width(),h=ya.mediaView.height(l.section.key),u=l.maxScroll&&/unifiedSite/.test(ya.overrides.siteDisplayBehavior);for(u&&(h=wa.getMaxScrollSectionHeight(l));ti.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=De,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function Bt(e){function t(e,t){var t=void 0!==t?t:a;n.dispatchEvent(po);var r=i.children[e];if(r){var l=r.x,s=r.y;if(Ze(i,t,{translateX:-l,translateY:-s,ease:so?$o.quart.out:$o.cubic.inOut,onComplete:function(){n.dispatchEvent(mo),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}}),ji===Di)for(var d=i.children,c=0;ci.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=De,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function _t(e){function t(e,t){var t=void 0!==t?t:a;n.dispatchEvent(po);var r=i.children[e];if(r){var l=r.x,s=r.y;Ze(i,t,{translateX:-l,translateY:-s,ease:so?$o.quart.out:$o.cubic.inOut,onComplete:function(){n.dispatchEvent(mo),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}})}}var i=e.mediaViewContainer,n=e.localEvents,o=e.mediaView,a=e.transitionDuration;return t.destroy=function(){},t}function Wt(e){function t(){l.mask.element.scrollLeft=0,l.mask.element.scrollTop=0,l.mask.element.style.overflow="hidden";var e=new o;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=ya.mediaView.height(l.section.key),l.section&&ya.section(l.section);var t=0,s=a.children,d=s.length,c=ya.mediaView.height(l.section.key),h=l.maxScroll&&/unifiedSite/.test(ya.overrides.siteDisplayBehavior);for(h&&(c=wa.getMaxScrollSectionHeight(l));ti.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=De,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function Nt(e){function t(e,t,l){var t=void 0!==t?t:r;o.dispatchEvent(po);var s=$o.quart.out,d=n.children,c=d[e-1],h=d[e],u=d[e+1];c&&setTimeout(function(){c.transition=0,"right"===l&&(c.translateX=-ya.mediaView.width()),c.display="block",c.updateSpeed=0,c.updatePosition(),c.loaded||c.load(),Ze.defer(c,t,{translateX:-ya.mediaView.width(),alpha:1,ease:s})},0),h&&(h.transition=0,h.display="block",h.updateSpeed=0,h.updatePosition(),h.loaded||h.load(),clearTimeout(i),i=setTimeout(function(){d.filter(function(e){return e!==h&&e!==c&&e!==u}).forEach(function(e){e.display="none"})},200),Ze.defer(h,t,{translateX:0,alpha:1,ease:s,onComplete:function(){o.dispatchEvent(mo),a.lazyLoader&&a.lazyLoader.update()}})),u&&setTimeout(function(){u.transition=0,"left"===l&&(u.translateX=ya.mediaView.width()),u.display="block",u.updateSpeed=0,u.updatePosition(),u.loaded||u.load(),Ze.defer(u,t,{translateX:ya.mediaView.width(),alpha:1,ease:s})},0)}var i,n=e.mediaViewContainer,o=e.localEvents,a=e.mediaView,r=e.transitionDuration;return t.destroy=function(){},t}function Xt(e){function t(){var e=new n;e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=ya.mediaView.width(),o.section&&ya.section(o.section);for(var t=0,l=r.children,s=l.length;t").replace(/\\r\\n/g,"
").replace(/\n\r/g,"
").replace(/\\n\\r/g,"
").replace(/\r/g,"
").replace(/\\r/g,"
").replace(/\n/g,"
").replace(/\\n/g,"
").replace(/\\/g,""),k.selectable=!0,k.setClass("dx_page_text ql-editor"),k.fontFamily=Oi.contactFont,k.fontSize=Oi.contactFontSize,k.fontColor=Oi.contactFontColor,k.textAlign="right",k.textWrap=!1,z.addChild(k),z.addChild(O);var n=z.element.getElementsByTagName("img"),o=n.length;if(n.length>0)for(;o--;){var a=n[o];a.addEventListener(Ki,function(e){g()})}F>320&&(F=320,k.width=320,k.textWrap=!0,k.style["word-wrap"]="break-word");for(var o=0,r=L.length,s=0;oO.height?y+=k.element.offsetHeight+t:(y+=O.height,y+=M.element.offsetHeight+5+t),z.height=y}function r(){if(ya.section(V.section),ji===Di||ji===Bi)V.element.style.overflowY="scroll",V.element.style.overflowX="hidden",V.element.style["-webkit-overflow-scrolling"]="touch";else if(ya.siteView.unifiedPageScroll()&&/vScroll/.test(ya.overrides.transitionType))a(),setTimeout(function(){ya.section(V.section);var e=y;e=e>ya.mediaView.height()?e:ya.mediaView.height();var t=e!==V.contentHeight;V.contentHeight=e,V.height=e,t&&A.dispatchEvent("MEDIA_HEIGHT_CHANGE")},30);else if("native"===Oi.pageScrollType)V.element.style.overflowY="scroll",V.element.style.overflowX="hidden";else if("Macintosh"===ta&&"nativeMacOs"===Oi.pageScrollType)V.element.style.overflowY="scroll",V.element.style.overflowX="hidden";else{V.scroll&&V.scroll.destroy();var e=Oi.pageScrollbarWidth,t=ji===Di?-(e+5):Oi.pageScrollbarHorizontalOffset,i="right"===Oi.pageScrollbarAlignment?-t-e:t+e,n={name:"text page",types:["bar","wheel","touch"],axis:"y",align:"top",margin:Oi.pageScrollVerticalMargin,color:Oi.pageScrollbarColor,hover:Oi.pageScrollbarHover,side:Oi.pageScrollbarAlignment,alpha:Oi.pageScrollbarBgAlpha,width:e,offsetX:i,offsetY:Oi.pageScrollbarVerticalOffset,property:"translate",rounded:Oi.pageScrollbarRounded,visibility:Oi.pageScrollbarVisibility,scrollTopCheck:!0,parent:V};"nativeMacOs"===Oi.pageScrollType&&(n.margin=0,n.color="#000000",n.hover="#000000",n.side="right",n.alpha=0,n.width=7,n.offsetX=0,n.offsetY=0,n.rounded=!0,n.visibility="when scrolling"),V.scroll=new Pe(z,V,n),V.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){V.scroll.percent=0,V.scroll.update(bo)})}}function l(e){function t(e){A.removeEventListener("destroy",t),o.removeEventListener($i,s),o.removeEventListener(en,d)}var i=new ma;i.width=300;var n=new ot;n.fontFamily=Oi.contactTitleFont,n.fontColor=Oi.contactFontColor,n.fontSize=11,n.text=e,n.selectable=!1,i.addChild(n);var o="Comments"===e?new nt:new Je;return o.backgroundColor=T(Oi.contactFieldRectColor,.1),o.border="1px solid "+T(Oi.contactFieldRectColor,.3),o.fontFamily=Oi.contactTitleFont,o.fontColor=Oi.contactFontColor,o.fontSize=16,o.height="Comments"===e?150:20,o.width=300,o.y=17,o.addEventListener($i,s),o.addEventListener(en,d),A.addEventListener("destroy",t),i.addChild(o),i.id=e,i.input=o,i}function s(e){Ze(this,bo,{backgroundColor:T(Oi.contactFieldRectColor,.2),border:"1px solid "+T(Oi.contactFieldRectColor,.7)})}function d(e){Ze(this,bo,{backgroundColor:T(Oi.contactFieldRectColor,.1),border:"1px solid "+T(Oi.contactFieldRectColor,.3)})}function c(e){Ze(this,bo,{backgroundColor:T(Oi.contactFieldRectColor,.8)})}function h(e){Ze(this,bo,{backgroundColor:T(Oi.contactFieldRectColor,1)})}function u(e){I.text=e.response,I.x=F+17,Ze(O,bo,{alpha:0,onComplete:function(e){O.display="none"}}),Ze(I,bo,{alpha:1})}function p(e){var t=Ii[V.id],i=[].slice.apply(O.children).filter(function(e){return e.id}).reduce(function(e,t){if(e){if(e[t.id]=t.input.value||"","Name"===t.id&&""===t.input.value)return Ee("Name field cannot be blank."),!1;if("Email"===t.id&&(t.input.value.indexOf("@")===-1||t.input.value.indexOf(".")===-1))return Ee("Please enter valid email address."),!1;if("Comments"===t.id&&""===t.input.value)return Ee("Comments field cannot be blank."),!1}return e},{});i.Title=t.label,i.toEmail=t.content.contactFormEmail,i.subject=t.content.contactFormSubject,i&&A.dispatchEvent(Vo,i)}function m(e){ya.section(V.section),Ze(V,V.updateSpeed,{backgroundColor:ya.mediaView.backgroundColor()})}function v(){return ya.section(V.section),ji===Di||z.width+16>ya.mediaView.width()}function g(e){ya.section(V.section),wa.activeMediaType=V.type,F=k.element.offsetWidth,F>320&&(F=320,k.width=320,k.textWrap=!0,k.style["word-wrap"]="break-word"),z.width=F+O.width+18,v()?(k.x=8,O.x=-8,Oi.contactTitleShow?(x&&(x.x=8,x.y=E(Oi.contactTitleFontSize,100)),k.y=x.y+E(Oi.contactTitleFontSize,100)+16,O.y=k.y+k.element.offsetHeight+16):(k.y=0,O.y=k.element.offsetHeight),V.scroll&&(V.scroll.align="top"),O.borderLeft="1px solid "+T(Oi.contactFieldRectColor,0),k.textAlign="left"):(k.x=0,k.y=0,O.x=F+16,O.y=44,O.borderLeft="1px solid "+T(Oi.contactFieldRectColor,.3),k.textAlign="right",Oi.contactTitleShow&&x&&(x.textWrap=!0,x.x=F+32,x.y=E(Oi.contactTitleFontSize,100)-33),V.scroll&&(V.scroll.align="top")),w&&!w.contactFormExtra&&(V.scroll&&(V.scroll.align="top"),O.borderLeft="1px solid "+T(Oi.contactFieldRectColor,0),O.x=-8,x&&(x.x=8)),z.transition=0,a(),Ze.defer(z,V.updateSpeed,{x:f(),y:b(),onComplete:function(){V.scroll&&V.scroll.resize(),Ze(z,bo,{alpha:1})}}),V.updateSpeed=bo,isInit=!1,r()}function f(){if(ya.section(V.section),wa._activeView="contact",z.width+16>ya.mediaView.width()){var e=Math.round(.5*(ya.mediaView.width()-O.width));return e}var e=Math.round(.5*(ya.mediaView.width()-z.width));return e}function b(){return ya.section(V.section),wa._activeView="contact",y>ya.mediaView.height()?ji===Di||ji===Bi?40:22:Math.round(.5*(ya.mediaView.height()-y))}function C(e){A.removeEventListener(Ji,g),A.removeEventListener(Rn,g),A.removeEventListener("destroy",C),A.removeEventListener("showCursor",t),A.removeEventListener("hideCursor",n),A.removeEventListener(Eo,u),V.removeEventListener(Co,o)}var w,y,L,x,M,V=new ma({events:e.events}),z=new ma,k=new ma,O=new ma,I=new ma,A=e.localEvents,F=0;return V.section=e.section,V.alpha=0,z.alpha=0,z.selectable=!0,V.updateSpeed=0,V.id=e.mediaItem.id,V.type=e.mediaItem.type,V.dims=e.size.content,V.element.navigationCursor=!i(V.section),V.mediaItem=e.mediaItem,V.addEventListener(Co,o),A.addEventListener(Ji,g),A.addEventListener(Rn,g),A.addEventListener("destroy",C),A.addEventListener("showCursor",t),A.addEventListener("hideCursor",n),V.load=function(){V.loaded=!0},V.unload=function(){},V.show=function(){V.display="block",Ze(V,bo,{alpha:1})},V.hide=function(){Ze(V,bo,{alpha:0,onComplete:function(){V.display="none"}})},V.updatePosition=g,V}function Gt(e){function t(){i(C.section)||(C.element.navigationCursor=!0,S.element.navigationCursor=!0,x.element.navigationCursor=!0),S.element.addEventListener("contextmenu",n),S.element.addEventListener("dragstart",n),C.element.style["user-select"]="none",x.element.style["user-select"]="none",S.element.style["user-select"]="none",C.addChild(x),x.addChild(S),"spinner"===ya.overrides.imageVideoLoaderType&&(y=new Qe({color:e.loaderColor}),x.addChild(y)),r(),m()}function n(e){var t=void 0===Pi.disableRightClick||Pi.disableRightClick;t&&e.preventDefault()}function o(){i(C.section)||(C.element.navigationCursor=!0,S.element.navigationCursor=!0,x.element.navigationCursor=!0)}function a(){C.element.navigationCursor=!1,S.element.navigationCursor=!1,x.element.navigationCursor=!1}function r(){ya.section(C.section),S&&Oi.imageRendering.optimizeQuality&&(S.style["image-rendering"]="optimizeQuality"),S&&Oi.imageRendering.webkitOptimizeContrast&&(S.style["image-rendering"]="-webkit-optimize-contrast"),S&&"Safari"===ia&&Oi.imageRendering.webkitBackfaceVisibility&&(S.element.style["-webkit-backface-visibility"]="hidden"),S&&ji===Di&&(S.element.style["-webkit-backface-visibility"]="hidden"),ji===Di?Ze(C,C.updateSpeed,{backgroundColor:Oi.containerColorMobile||ya.mediaView.backgroundColor()}):ji===Bi?Ze(C,C.updateSpeed,{backgroundColor:Oi.containerColorTablet||ya.mediaView.backgroundColor()}):Ze(C,C.updateSpeed,{backgroundColor:ya.mediaView.backgroundColor()}),u(B)}function l(){if(/media/.test(L.captionAnchorTo)||/media/.test(ya.overrides.captionAnchorTo)){ya.section(C.section),wa.activeMediaType=C.type,w.container.transition=0,K(L.captionCloseButton,ya.overrides.captionCloseButton)?w.showCloseButton():w.hideCloseButton();var t={onInit:function(){w.scroll&&w.scroll.hide()},onComplete:function(){w.scroll&&(w.scroll.show(),w.scroll.resize())}},n=L.captionBackgroundRectColor||ya.overrides.captionBackgroundRectColor,o=K(L.captionBackgroundAlpha,ya.overrides.captionBackgroundAlpha);if(w.backgroundColor=T(n,o),w.fontFamily=L.captionFont||ya.overrides.captionFont,w.fontSize=va.width-1)&&w.show(l)}}function p(){var e=i(C.section)&&Oi.slideshowCaptions;e||w.hide()}function m(){ya.section(C.section),wa.activeMediaType=C.type,P=ya.mediaView.maskWidth(C.width),H=ya.mediaView.maskHeight(C.height,C.section.key),Ze(x,C.updateSpeed,{x:ya.mediaView.maskX(),y:ya.mediaView.maskY(C.section.key),width:P,height:H}),f(),R&&g(),u(B)}function v(){C.updateSpeed=0,R=!0,this.width&&M!==this.width&&(M=this.width),this.height&&V!==this.height&&(V=this.height),y&&(y.removeLoader(),x.removeChild(y)),m(),u(B),C.dispatchEvent(fo,{type:"image",id:e.mediaItem.id,width:this.width,height:this.height}),C.events.dispatchEvent(fo,{type:"image",id:e.mediaItem.id,width:this.width,height:this.height}),C.updateSpeed=bo,"Safari"===ia&&/hScroll/.test(ya.overrides.transitionType)&&S.element.setAttribute("nopin","nopin")}function g(){ya.section(C.section);var e=Ie(null,0,{type:ya.mediaView.imageScaleType(),width:M,height:V,hRange:P,vRange:H,hAlign:ya.mediaView.hAlign(),vAlign:ya.mediaView.vAlign(),disableOrientationCheck:A()});E=Math.ceil(e.scale.width),z=Math.ceil(e.scale.height),O=Math.floor(e.align.x),I=Math.floor(e.align.y),Ze(S,C.updateSpeed,{x:O,y:I,width:E,height:z,onComplete:function(){setTimeout(function(){Ze(S,ya.mediaView.transitionDuration(),{alpha:1,ease:"cubic-bezier(0.7, 0, 0.3, 1)"})},0)}}),u(B)}function f(){y&&(y.x=.5*(P-y.width),y.y=.5*(H-y.height))}function b(){j.removeEventListener("destroy",b),j.removeEventListener(Ji,m),j.removeEventListener(Rn,m),j.removeEventListener("showCursor",o),j.removeEventListener("hideCursor",a),S.removeEventListener(Ki,v),C.removeEventListener(Co,t)}var C=new ma({events:e.localEvents});C.alpha=0,C.updateSpeed=0,C.overflow="hidden",C.id=e.mediaItem.id,C.type=e.mediaItem.type,C.dims=e.size.content,C.section=e.section,C.state=e.state,C.mediaItem=e.mediaItem;var w,y,L,S=new Ge,x=new ma,M=e.size.content.width,V=e.size.content.height,E=0,z=0,O=0,I=0,P=0,H=0,R=!1,j=e.localEvents,B=e.state;S.alpha=0,S.selectable=!1,x.overflow="hidden",j.addEventListener(Ji,m),j.addEventListener(Rn,m),j.addEventListener("destroy",b),j.addEventListener("showCursor",o),j.addEventListener("hideCursor",a),C.addEventListener(Co,t);var D=k(e.mediaItem);return w||""===D||(w=new Ma,L=e.mediaItem.overrides||{},j.addEventListener("showCaption",u),j.addEventListener("hideCaption",p),j.addEventListener("checkCaption",s),c(D)),C.load=function(){C.loaded=!0,S.addEventListener(Ki,v),S.src=d(e.mediaItem.content,e.mediaItem.demoFile),""!==D&&(C.addChild(w.container),l())},C.unload=function(){},C.hide=function(){1===C.alpha&&Ze(C,bo,{alpha:0,onComplete:function(){C.display="none"}})},C.show=function(){0===C.alpha&&(C.display="block",Ze(C,bo,{alpha:1}))},C.updatePosition=m,C}function Ut(e){function t(e){i(I.section)||(I.element.navigationCursor=!0,M&&(M.element.navigationCursor=!0),P.element.navigationCursor=!0)}function n(e){I.element.navigationCursor=!1,M&&(M.element.navigationCursor=!1),P.element.navigationCursor=!1}function o(e){/page|imageRendering/.test(e.id)&&(C(),w())}function a(){ya.section(I.section),e.mediaItem.content=ue(e.mediaItem.content),I.loaded=!1;var t=Ae({width:H,height:R,filename:e.mediaItem.featuredImage});H=Math.round(t.width),R=Math.round(t.height),b()&&!x()?(M=new Ge,M.dataSrc=d(e.mediaItem.featuredImage,e.mediaItem.demoFile),i(I.section)||(M.element.navigationCursor=!0,P.element.navigationCursor=!0),M.addEventListener(Ki,L),M.alpha=0,I.addChild(M)):(I.events.dispatchEvent(fo,{}),setTimeout(function(){I.updateSpeed=ya.mediaView.transitionDuration()},0));var n="";if(f()){var o=ya.overrides.pageTitleFont.split(":"),a=o[0],r=o[1],l=E(ya.overrides.pageTitleFontSize,22);n+="雷霆vp加速器-outline
"}X=x(),x()&&b()&&(n+="
"),n+=F(e.mediaItem.content);var s=A.element.getElementsByClassName("no-lazy-load");s.length||(A.text=n.replace(/src\=/g,"data-src=")),P.addChild(A),I.addChild(P),O=A.element.getElementsByClassName("responsive"),k=A.element.getElementsByClassName("responsive-width")}function r(e){return function(t){return e.replace(/[^ -~]+/g,"")===t.src}}function l(e){return e.savedOpacity=e.style.opacity,e.style.opacity=0,e.originalWidth=e.style.width,e.originalHeight=e.style.height,e}function s(e){a(),B=Math.round(ya.mediaView.maskWidth(I.element.offsetWidth)),ya.overrides.pageMaxWidth&&B>ya.overrides.pageMaxWidth&&(B=ya.overrides.pageMaxWidth),z=c(A.element),T=z.filter(function(e){return"img"===e.tagName.toLowerCase()}).map(l),C(),w(),setTimeout(function(){C(),w()},150)}function c(e){return Array.prototype.slice.apply(e.getElementsByTagName("img")).concat(Array.prototype.slice.apply(e.getElementsByTagName("video"))).concat(Array.prototype.slice.apply(e.getElementsByTagName("iframe"))).concat(Array.prototype.slice.apply(e.getElementsByTagName("input")))}function h(e){var t=e.reduce(function(e,t){if("img"===t.img.tagName.toLowerCase()){var i=t.img.src.replace(N,"");e=e.concat({src:i,width:t.img.naturalWidth,height:t.img.naturalHeight})}return e},[]);JSON.stringify(I.mediaItem.size.pageImages)!==JSON.stringify(t)&&(I.mediaItem.size.pageImages=t,W.dispatchEvent("adminPageviewImageSizes",I.mediaItem))}function u(e){return new Promise(function(t,i){var n,o=e.getAttribute("data-src");"img"===e.tagName.toLowerCase()?(n=setInterval(function(){e.naturalWidth&&e.naturalHeight&&(e.metaLoaded=!0,clearInterval(n),t({img:e}))},10),e.addEventListener("load",function(){Ze(e,.35,{opacity:e.savedOpacity||1})}),e.addEventListener("error",function(){clearInterval(n)}),setTimeout(function(){n&&clearInterval(n)},1e4)):t({img:e}),e.src=o})}function p(e){Promise.all(e.map(u)).then(h).then(w).catch(function(e){})}function m(){return"native"===ya.overrides.pageScrollType||Qo&&("nativeMacOs"===ya.overrides.pageScrollType||Oi.globalSmoothScroll)}function v(){if(ya.section(I.section),ji!==Di&&ji!==Bi||(P.element.style["-webkit-overflow-scrolling"]="touch"),/vScroll/.test(ya.overrides.transitionType)&&ya.siteView.unifiedPageScroll())P.element.style.overflow="hidden",P.element.style["-webkit-overflow-scrolling"]="touch",Ze.defer(A,bo,{alpha:1});else if(m()||/unifiedSite/.test(ya.overrides.siteDisplayBehavior))P.element.style.overflowY="auto",P.element.style.overflowX="hidden",P.element.style["-webkit-overflow-scrolling"]="touch",Ze.defer(A,bo,{alpha:1});else{I.scroll&&I.scroll.destroy();var e=ya.overrides.pageScrollbarWidth,t=ji===Di?-(e+5):ya.overrides.pageScrollbarHorizontalOffset,i="right"===ya.overrides.pageScrollbarAlignment?-t-e:t+e,n={name:"text page",types:["bar","wheel","touch"],axis:"y",align:"top",margin:ya.overrides.pageScrollVerticalMargin,color:ya.overrides.pageScrollbarColor,hover:ya.overrides.pageScrollbarHover,side:ya.overrides.pageScrollbarAlignment,alpha:ya.overrides.pageScrollbarBgAlpha,width:e,offsetX:i,offsetY:ya.overrides.pageScrollbarVerticalOffset,property:"translate",rounded:ya.overrides.pageScrollbarRounded,visibility:ya.overrides.pageScrollbarVisibility,scrollTopCheck:!0};("nativeMacOs"===ya.overrides.pageScrollType||Oi.globalSmoothScroll)&&(n.margin=0,n.color="#000000",n.hover="#000000",n.side="right",n.alpha=0,n.width=7,n.offsetX=0,n.offsetY=0,n.rounded=!0,n.visibility="when scrolling"),I.scroll=new Pe(A,P,n),I.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){I.scroll.percent=0,I.scroll.update(bo)})}ya.section(I.section);var o=E(ya.overrides.pageMarginTop,va.height),a=E(ya.overrides.pageMarginBottom,va.height),r=o+A.element.offsetHeight+a;b()&&!x()&&(r=r>o+M.element.offsetHeight+a?r:o+M.element.offsetHeight+a),Y=r!==I.contentHeight,I.contentHeight=r,g(I.section)?(wa._mediaMarginPrefix="page",P.height=Math.round(ya.mediaView.maskHeight(void 0,I.section.key)),I.height=Math.round(ya.mediaView.height(I.section.key))):(P.height=r,I.height=r),Y&&W.dispatchEvent("MEDIA_HEIGHT_CHANGE"),I.scroll&&I.scroll.resize(),Ze.defer(A,bo,{alpha:1})}function g(e){return ya.section(I.section),(ji!==Di||!/vScroll/.test(ya.overrides.transitionType))&&("none"===ya.overrides.siteDisplayBehavior||!/vScroll/.test(ya.overrides.transitionType)&&e.media.length>1)}function f(){return ya.section(I.section),ya.overrides.pageTitle&&""!==e.mediaItem.label}function b(){return""!==e.mediaItem.featuredImage}function C(e){ya.section(I.section),M&&Oi.imageRendering.optimizeQuality&&(M.style["image-rendering"]="optimizeQuality"),M&&Oi.imageRendering.webkitOptimizeContrast&&(M.style["image-rendering"]="-webkit-optimize-contrast"),M&&"Safari"===ia&&Oi.imageRendering.webkitBackfaceVisibility&&(M.style["-webkit-backface-visibility"]="hidden"),A.fontFamily=ya.overrides.pageTextFont,A.fontColor=ya.overrides.pageTextFontColor,A.fontSize=ya.overrides.pageTextFontSize,A.letterSpacing=ya.overrides.pageTextKerning,Ze(I,I.updateSpeed,{backgroundColor:ya.mediaView.backgroundColor()})}function w(e){ya.section(I.section),wa.activeMediaType=I.type;var t=Math.round(ya.mediaView.maskX()),i=Math.round(ya.mediaView.maskY(I.section.key)),n=ya.mediaView.maskWidth(I.element.offsetWidth);if(B=Math.round(ya.mediaView.maskWidth(I.element.offsetWidth)),D=Math.round(ya.mediaView.maskHeight(I.element.offsetHeight,I.section.key)),ya.overrides.pageMaxWidth&&B>ya.overrides.pageMaxWidth)switch(B=ya.overrides.pageMaxWidth,ya.overrides.pageMaxAlign){case"center":t+=Math.round(.5*(n-B));break;case"right":t+=Math.round(n-B)}M&&b()&&!x()&&(t+=H+j,B-=H+j,Ze(M,I.updateSpeed,{x:t-H-j,y:i})),!X&&x()?(M&&(I.removeChild(M),M=void 0),a(),z=c(A.element),T=z.filter(function(e){return"img"===e.tagName.toLowerCase()}).map(l)):X&&!x()&&(A.text="",a(),z=c(A.element),T=z.filter(function(e){return"img"===e.tagName.toLowerCase()}).map(l)),Ze(P,0,{x:t,y:i,width:B,height:D}),Ze(A,0,{width:B}),y(),O&&O.length>0?((oe()||le())&&(P.style.overflow="auto",P.style["-webkit-overflow-scrolling"]="touch"),Ze.defer(A,bo,{alpha:1})):v()}function y(){if(O){var e=O[0];e&&(e.style.overflow="hidden",e.style.width=B-e.offsetLeft+"px",e.style.height=D-e.offsetTop+"px",e.style.border="none")}if(k){var t=k[0];t&&(t.style.overflow="hidden",t.style.width=B-t.offsetLeft+"px",t.style.border="none")}if(T){var i=T.length;if(i>0)for(;i--;){var n=T[i],o=n.getAttribute("data-src")?n.getAttribute("data-src").replace(N,""):"";if(o&&I.mediaItem.size.pageImages){var a=window.getComputedStyle(n),l=a.getPropertyValue("max-width"),s=n.getAttribute("width"),d=n.getAttribute("height");if(n.metaLoaded)n.originalWidth?n.style.width=n.originalWidth:s?n.style.width=s+"px":n.style.removeProperty("width"),n.originalHeight?n.style.height=n.originalHeight:d?n.style.height=d+"px":n.style.removeProperty("height"),"none"===l&&(n.style.maxWidth="100%");else{V=!0;var c=I.mediaItem.size.pageImages.filter(r(o)),h=c[0]||{},u=h.width||n.naturalWidth,p=h.height||n.naturalHeight,m=parseFloat(a.getPropertyValue("width"),10)||s||u,v=(m>B?B:m)||B,g=p/u;n.style.width=v+"px",n.style.height=g*v+"px"}}}}}function L(t){I.updateSpeed=0,_=!0;var i=Ae({width:M.element.offsetWidth,height:M.element.offsetHeight,filename:M.src});H=Math.round(i.width),R=Math.round(i.height),M.width=H,M.height=R,Ze(M,1,{alpha:1}),I.updateSpeed=ya.mediaView.transitionDuration(),I.events.dispatchEvent(fo,{type:"featuredImage",id:e.mediaItem.id,width:M.width,height:M.height})}function S(e){W.removeEventListener(Ji,w),W.removeEventListener(Rn,w),W.removeEventListener("destroy",S),W.removeEventListener("showCursor",t),W.removeEventListener("hideCursor",n),M&&M.removeEventListener(Ki,L),I.removeEventListener(Co,s)}function x(){return ji===Di||(va.width<(Oi.screenWidthBreakpoint||800)||!!(H&&ya.mediaView.maskWidth(I.width)-1)&&$.show(E)}}function H(){$.hide(),$.scroll&&$.scroll.destroy()}function R(){ya.section(q.section),J&&Oi.imageRendering.optimizeQuality&&(J.style["image-rendering"]="optimizeQuality"),J&&Oi.imageRendering.webkitOptimizeContrast&&(J.style["image-rendering"]="-webkit-optimize-contrast"),J&&"Safari"===ia&&Oi.imageRendering.webkitBackfaceVisibility&&(J.style["-webkit-backface-visibility"]="hidden"),wa.activeMediaType=q.type,ge=ya.mediaView.maskWidth(q.width),fe=ya.mediaView.maskHeight(q.height,q.section.key),u(),P(Ee),Ze(Q,q.updateSpeed,{x:ya.mediaView.maskX(),y:ya.mediaView.maskY(q.section.key),width:ge,height:fe,onComplete:function(){u()}}),te&&G(),pe(e.mediaItem)&&oe()||Ve||te&&Ze(te,bo,{alpha:1}),Ve&&!Me&&B(),Me&&D()}function j(){q.updateSpeed=0,Ve=!0,R(),B(),te&&Ze(te,bo,{alpha:0}),q.events.dispatchEvent(fo,{type:"posterImage",id:e.mediaItem.id,width:se,height:de}),q.updateSpeed=bo,re.addEventListener(Ki,h),re.src=uo+"play@2x.png",P(Ee),"Safari"===ia&&/hScroll/.test(ya.overrides.transitionType)&&J.element.setAttribute("nopin","nopin")}function B(){ya.section(q.section),wa.activeMediaType=q.type,ge=ya.mediaView.maskWidth(q.width),fe=ya.mediaView.maskHeight(q.height,q.section.key);var e=Ie({},0,{type:ya.mediaView.imageScaleType(),width:se,height:de,hRange:ge,vRange:fe,hAlign:ya.mediaView.hAlign(),vAlign:ya.mediaView.vAlign(),disableOrientationCheck:A()});ce=Math.ceil(e.scale.width),he=Math.ceil(e.scale.height),ue=Math.floor(e.align.x),ve=Math.floor(e.align.y),Ze(J,q.updateSpeed,{x:ue,y:ve,width:ce,height:he,onComplete:function(){setTimeout(function(){ya.section(q.section),i(q.section)||Ze(J,ya.mediaView.transitionDuration(),{alpha:1,ease:"cubic-bezier(0.7, 0, 0.3, 1)"})},1e3)}}),$&&E()}function D(t){ya.section(q.section),wa.activeMediaType=q.type,t&&(q.playState=t),ee.display="block",setTimeout(function(){ee.display="block"},1e3),ge=ya.mediaView.maskWidth(q.width),fe=ya.mediaView.maskHeight(q.height,q.section.key);var i=Ie({},0,{type:ya.mediaView.videoScaleType(pe(e.mediaItem)),width:be,height:Ce,hRange:ge,vRange:fe,hAlign:ya.mediaView.hAlign(),vAlign:ya.mediaView.vAlign(),disableOrientationCheck:A()});if(Se=Math.floor(i.align.x),xe=Math.floor(i.align.y),we=Math.ceil(i.scale.width),Le=Math.ceil(i.scale.height),we&&Le){if(Ze(ee,q.updateSpeed,{x:Se,y:xe,width:we,height:Le,onComplete:function(){setTimeout(function(){Ze(ee,bo,{alpha:1,ease:"cubic-bezier(0.7, 0, 0.3, 1)"})},1e3)}}),ee.setSize(we,Le,q.updateSpeed),Y(i),ee.hud){var n=Math.floor(i.align.x),o=Math.floor(i.align.y),a=we,r=Le;we>ya.mediaView.maskWidth()&&"hScroll"!==ya.overrides.transitionType?(n=0,a=ya.mediaView.maskWidth(),r=ya.mediaView.maskHeight(void 0,q.section.key)):Le>ya.mediaView.maskHeight(void 0,q.section.key)&&(o=0,a=ya.mediaView.maskWidth(),r=ya.mediaView.maskHeight(void 0,q.section.key)),ee.hud.resize(q.updateSpeed,n,o,a,r);var l=i.align.x>0?i.align.x:0,s=i.align.y>0?i.align.y:0;ee.unmuteBtn.x=Math.round(l)+20,ee.unmuteBtn.y=Math.round(s)+20}$&&E()}}function _(){return{banner:{width:0,height:0},hdpopup:{width:170,height:180},shareCtrls:{width:50,height:180},videoCtrls:{width:we,height:50}}}function W(){return{banner:{width:550,height:180},hdpopup:{width:170,height:180},shareCtrls:{width:50,height:180},videoCtrls:{width:we,height:50}}}function N(){return{banner:{width:550,height:180},hdpopup:{width:170,height:180},shareCtrls:{width:50,height:180},videoCtrls:{width:we,height:50}}}function X(){return"ended"===q.playState?N():"paused"===q.playState?W():_()}function Y(e){if(ne){var t=X();le()&&(t.banner.width=540,t.banner.height=170);var i=.5*(we-t.banner.width),n=.5*(Le-t.banner.height);ne.top.x=e.align.x,ne.top.y=e.align.y,ne.top.width=we-t.shareCtrls.width,ne.top.height=n,ne.right.x=e.align.x+we-i,ne.right.y=e.align.y+t.shareCtrls.height,ne.right.width=i,ne.right.height=Le-t.shareCtrls.height-t.hdpopup.height,ne.bottom.x=e.align.x,ne.bottom.y=e.align.y+Le-n,ne.bottom.width=we-t.hdpopup.width,ne.bottom.height=n-t.videoCtrls.height,ne.left.x=e.align.x,ne.left.y=e.align.y,ne.left.width=i,ne.left.height=Le-t.videoCtrls.height}}function Z(t){t.id===e.mediaItem.id&&(e.mediaItem.thumb!==t.thumb,e.mediaItem.content!==t.content)}function G(){ya.section(q.section),te&&(te.transition=0,te.x=.5*(ya.mediaView.maskWidth(q.width)-te.width),te.y=.5*(ya.mediaView.maskHeight(q.height,q.section.key)-te.height))}function U(){q.events.removeEventListener(Un,p),q.events.removeEventListener(qn,m),q.events.removeEventListener(mo,f),q.events.removeEventListener(Uo,s),q.events.removeEventListener(qo,c),Te.removeEventListener(Ji,R),Te.removeEventListener(Rn,R),Te.removeEventListener("mediaSizeUpdate",R),Te.removeEventListener(jn,Z),Te.removeEventListener("mediaAutoPlay",l),Te.removeEventListener("spacebarTogglePlay",r),Te.removeEventListener("destroy",U),Te.removeEventListener("showCursor",t),Te.removeEventListener("hideCursor",n),J.removeEventListener(Ki,j),ee&&(ee.element.removeEventListener("webkitendfullscreen",w),pe(e.mediaItem)?ee.removeEventListener(go,S):ee.element.removeEventListener(vo,L,!1),ee.destroy()),q.removeEventListener(Co,o)}var q=new ma({events:e.localEvents});if(q.alpha=0,q.updateSpeed=0,q.overflow="hidden",q.id=e.mediaItem.id,q.type=e.mediaItem.type,q.dims=e.size.content,q.section=e.section,q.state=e.state,q.mediaItem=e.mediaItem,e.mediaItem.thumb.length||(Ii[q.id].size.thumb.width=1200,Ii[q.id].size.thumb.height=800),/mp4/.test(e.mediaItem.thumb)){var J=new ma({type:"video"});J.element.setAttribute("muted",!0),J.element.setAttribute("autoplay",!0),J.element.setAttribute("loop",!0),J.element.setAttribute("playsinline",!0),J.element.setAttribute("type","video/mp4")}else var J=new Ge;J.alpha=0,J.zIndex=1;var Q=new ma;Q.element.className="video.mask";var $,ee,te,ie,ne,ae,re=new Ge,se=e.size.thumb.width,de=e.size.thumb.height,ce=0,he=0,ue=0,ve=0,ge=0,fe=0,be=e.size.content.width,Ce=e.size.content.height,we=0,Le=0,Se=0,xe=0,Me=!1,Ve=!1,Te=e.localEvents,Ee=e.state;Q.overflow="hidden",re.width=70,re.height=70,re.alpha=0,re.zIndex=4,q.addEventListener(Co,o),q.events.addEventListener(qn,m),q.events.addEventListener(Uo,s),q.events.addEventListener(qo,c),Te.addEventListener(Ji,R),Te.addEventListener(Rn,function(){ee&&(pe(e.mediaItem)?ya.overrides.videoLoop?ee.setLoop("true"):ee.setLoop("false"):ya.overrides.videoLoop?ee.element.setAttribute("loop",!0):ee.element.removeAttribute("loop")),R()}),Te.addEventListener("mediaSizeUpdate",R),Te.addEventListener(jn,Z),Te.addEventListener("mediaAutoPlay",l),Te.addEventListener("spacebarTogglePlay",r),Te.addEventListener("destroy",U),Te.addEventListener("showCursor",t),Te.addEventListener("hideCursor",n);var ze=k(e.mediaItem);return $||""===ze||($=new Ma,$.container.zIndex=3,ie=e.mediaItem.overrides||{},Te.addEventListener("showCaption",P),Te.addEventListener("hideCaption",H),Te.addEventListener("checkCaption",z),O(ze)),q.load=function(){ya.section(q.section),q.loaded=!0,q.playState=ya.overrides.videoAutoPlay?"playing":"paused",""!==ze&&(q.addChild($.container),E()),me(e.mediaItem)?/mp4/.test(e.mediaItem.thumb)?(J.element.addEventListener(vo,function(e){j(),this.muted=!0,this.play()}),J.src=d(e.mediaItem.thumb,e.mediaItem.demoFile)):(J.addEventListener(Ki,j),e.mediaItem.thumb.length?J.src=d(e.mediaItem.thumb,e.mediaItem.demoFile):J.src=uo+"videoLarge2.png"):ee||(f(),ya.overrides.videoAutoPlay&&ji!==Di&&ji!==Bi||ee.setSource(e.mediaItem.content,!1),P(Ee))},q.unload=function(){},q.play=function(t){ya.section(q.section),t=void 0!==t?t:ya.overrides.videoAutoPlay,ee&&ee.src?ee.play():ee&&!ee.src?ee.setSource(e.mediaItem.content,t):ee||(f(),ee.setSource(e.mediaItem.content,t)),te&&(te.removeLoader(),te.zIndex=0),Ze(re,bo,{alpha:0,onComplete:function(){re.display="none"}}),i(q.section)&&!Oi.landingMediaUnmuteBtn&&("function"==typeof ee.disableUnmuteButton&&ee.disableUnmuteButton(),pe(e.mediaItem)||ee.hud.disable())},q.pause=function(){ee&&ee.pause()},q.destroy=function(){m()},q.autoPlay=function(){q.play(!0),ji!==Di&&R()},q.hide=function(){1===q.alpha&&Ze(q,bo,{alpha:0,onComplete:function(){q.display="none"}})},q.show=function(){0===q.alpha&&(q.display="block",Ze(q,bo,{alpha:1}))},q.updatePosition=R,q}function Kt(e){function t(){F.thumbs&&F.thumbs.getTotalHeight()&&(F.overlayView.contentHeight=F.thumbs.getTotalHeight()),F.overlayView.updatePosition()}function i(){F.overlayView.show(),F.thumbs.show()}function n(){F.overlayView.hide(),F.thumbs.hide()}function o(e){if(V){var t=r(e.id),i=t&&t.key.indexOf(V.key)>-1;(e&&"thumb"===e.field||e.section===V||i)&&(P=!0,V=e.section?e.section:V,F.overlayView.section=V,F.overlayView.updatePosition(e),v({mode:M,section:V}),F.thumbs&&F.thumbs.resize()),V=e.section?e.section:V,F.overlayView.section=V}else F.thumbs&&(n(),F.thumbs.scroll&&F.thumbs.scroll.destroy(),F.overlayView.removeChild(F.thumbs),delete F.thumbs)}function a(e){F.inquiry&&F.inquiry.updateInquiryInfo()}function s(e){e&&F.share&&(F.share.updateStyle(e),F.share.updatePosition(e)),e&&F.inquiry&&(F.inquiry.updateStyle(e),F.inquiry.updatePosition(e)),e&&/overlay/.test(e.id)&&("overlay"===ya.overrides.thumbnailDock||/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType))&&(P=!0,F.overlayView.updatePosition(e),"changeTemplate"===e.action||(j=!0,v({mode:M,section:V}))),e&&/paginated|static|thumbnail|menuWidth|menuAlignHorizontal|menuOffsetX|sitePaddingTop|sitePaddingRight|sitePaddingBottom|sitePaddingLeft/i.test(e.id)&&(P=!0,F.overlayView.updatePosition(e),"changeTemplate"===e.action||(j=!0,v({mode:M,section:V})),F.thumbs&&F.thumbs.resize())}function d(e){(e.info.isMediaViewStateChange||e.info.isModeChange)&&F.overlayView.updatePosition(e),e.assetId&&(T=e.assetId),e.section&&ya.section(e.section),ya.siteView.unifiedPageScroll()&&/strip/.test(ya.overrides.thumbnailType)?F.overlayView.position="fixed":F.overlayView.position="absolute",/inquiry|share|foto/.test(e.mode)?(F.overlayView.contentHeight=ya.mediaView.zoneHeight(e.section.key),F.overlayView.show(),w(e),y(e),c(e)):(w(e),y(e),c(e)),v(e)}function c(t){if(t.section&&t.mode.indexOf("fotomoto")>-1){var i=S(t.section.media),n=l(i[t.assetId]);return window.FOTOMOTO&&n&&n.type===Wi&&window.FOTOMOTO.API.showWindow(10,Pi.cdnSslUri+"/"+n.content),setTimeout(function(){e.siteEvents.dispatchEvent("clearFotomotoMode","fotomoto")},100),!0}return!1}function h(e,t){return!!t&&t.indexOf(e)!==-1}function u(e){F.thumbs&&!F.thumbs.scroll&&/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)?e.info&&e.info.isModeChange&&h("thumbs",e.mode)||(e.info&&!e.info.isSectionChange&&e.info.isModeChange&&h("thumbs",e.info.lastUri)?O=F.thumbs.mask.scrollY||window.scrollY:e.info&&e.info.isSectionChange&&(O=void 0)):O=void 0}function m(e){if(F.thumbs&&ya.section(F.thumbs.section),"unifiedSiteScrollVertical"!==ya.overrides.siteDisplayBehavior&&F.thumbs&&!F.thumbs.scroll&&/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&(info&&info.isSectionChange&&!info.isModeChange&&h("thumbs",M)?ya.siteView.unifiedPageScroll()&&window.scrollTo(0,0):info&&!info.isSectionChange&&info.isModeChange&&h("thumbs",M)&&(ya.siteView.unifiedPageScroll()?window.scrollTo(0,O||0):F.thumbs.mask.scrollY=O||0)),F.thumbs&&/strip/.test(ya.overrides.thumbnailType)&&h("thumbs",M))if(F.thumbs.scroll&&!F.thumbs.mouseHover)F.thumbs.scroll.percent=T/(k.length-1),F.thumbs.scroll.update(bo),F.thumbs.lazyLoader&&F.thumbs.lazyLoader.update();else if("strip"===ya.overrides.thumbnailType){var t=T/(k.length-1);if(/top|bottom/.test(ya.overrides.thumbnailSide)){var i=F.thumbs.mask.grid.width-F.thumbs.mask.width;ua.to(F.thumbs.mask,bo,{scrollLeft:Math.round(i*t),scrollTop:0,ease:so?"outQuart":"inOutCubic",onComplete:function(){F.thumbs&&F.thumbs.lazyLoader&&F.thumbs.lazyLoader.update()}})}else{var i=F.thumbs.mask.grid.height-F.thumbs.mask.height;ua.to(F.thumbs.mask,bo,{scrollLeft:0,scrollTop:Math.round(i*t),ease:so?"outQuart":"inOutCubic",onComplete:function(){F.thumbs&&F.thumbs.lazyLoader&&F.thumbs.lazyLoader.update()}})}}}function v(t){if(M=t.mode||"",V=t.section||V,F.overlayView.section=V,H=t.info?t.info.isModeChange:M!==t.mode&&V===t.section,info=t.info?t.info:{},t.assetId>-1&&(T=t.assetId),E=t.path||E,t.section&&(k=t.section.mediaItems||k),/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&/thumbs/.test(M)?(e.siteEvents.dispatchEvent(Un),setTimeout(function(){e.mediaView.scroll&&e.mediaView.scroll.hide()},20)):/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&setTimeout(function(){e.mediaView.scroll&&e.mediaView.scroll.show()},0),F.thumbs&&F.thumbs.section!==V&&(O=void 0),F.thumbs&&(F.thumbs.section!==V||P||j)&&(F.thumbs.scroll&&F.thumbs.scroll.destroy(),F.thumbs.lazyLoader&&delete F.thumbs.lazyLoader,F.overlayView.removeChild(F.thumbs),delete F.thumbs),k=t.section.media.filter(function(e){return null!==e}).filter(function(e){return!ge(r(e))}).map(function(e){var t=e<1e4?x(r(e)):JSON.parse(JSON.stringify(l(e)));return t}).filter(function(e){return!!e&&!e.slideshow}),k.filter(function(e){return"link"!==e.type}).forEach(function(e,t){e.assetId=t}),t.section&&t.section.thumb)if(z=t.section.thumb,!F.thumbs&&M.indexOf("thumbs")>-1&&k.length&&("hPaginatedGrid"===ya.overrides.thumbnailType?(F.thumbs=new Qt({assetId:T,path:E,mediaItems:k,settings:z,events:e.siteEvents,localEvents:e.localEvents,parent:e.siteView,scrollbarParent:A,section:V,thumbnailOnly:ya.overrides.thumbnailOnly,isIndexSection:g(V)}),F.overlayView.contentHeight=ya.mediaView.zoneHeight(t.section.key)):(F.thumbs=new ei({assetId:T,path:E,mediaItems:k,settings:z,events:e.siteEvents,localEvents:e.localEvents,parent:e.siteView,scrollbarParent:A,section:V,thumbnailOnly:ya.overrides.thumbnailOnly,isIndexSection:g(V)}),F.overlayView.contentHeight="strip"===ya.overrides.thumbnailType&&"unifiedSiteScrollVertical"===ya.overrides.siteDisplayBehavior?ya.mediaView.zoneHeight(t.section.key):F.thumbs.getTotalHeight()),F.thumbs.section=V,F.thumbs.settings=z,F.overlayView.addChild(F.thumbs)),F.thumbs&&M.indexOf("thumbs")>-1&&(!F.thumbs.toggleState()||P))setTimeout(function(){f(),m(t),i()},1e3*bo);else if(F.thumbs&&F.thumbs.toggleState()&&M.indexOf("thumbs")===-1)if(H)if(f(),ya.siteView.unifiedPageScroll()||/^unifiedSite/.test(ya.overrides.siteDisplayBehavior)&&"multiple"===wa.sectionDisplayMode||"strip"===ya.overrides.thumbnailType)n();else{var o=500*bo;setTimeout(function(){n()},o)}else e.siteEvents.addEventListener(po,b);u(t),setTimeout(function(){C(t),M.indexOf("thumbs")>-1&&m(t)},20),H=!1,P=!1,j=!1}function f(){"strip"===ya.overrides.thumbnailType&&"displace"===ya.overrides.thumbnailDock&&e.siteEvents.dispatchEvent("thumbStripDisplaceChange")}function b(){e.siteEvents.removeEventListener(po,b),1===Oi.overlayAlpha&&e.siteEvents.dispatchEvent("OPAQUE_OVERLAY_CLOSE"),n()}function C(){F.thumbs&&(T>-1?F.thumbs.highlight(T):F.thumbs.highlight(-1))}function w(t){return t.mode.indexOf("share")>-1?(F.share||(F.share=new Li(Object.assign({},e,{section:t.section})),F.share.pointerEvents="auto",F.overlayView.addChild(F.share)),F.share.updateContent(t),F.share.show(),!0):(F.share&&F.share.hide(),!1)}function y(t){return t.mode.indexOf("inquiry")>-1?(F.inquiry||(F.inquiry=new yi(Object.assign({},e,{section:t.section})),F.inquiry.pointerEvents="auto",F.overlayView.addChild(F.inquiry)),F.inquiry.updateContent(t),F.inquiry.show(),!0):(F.inquiry&&F.inquiry.hide(),!1)}function L(e){if(e.customThumb)return{name:e.customThumb,size:e.customThumbSize};if(e.media)for(var t=0;t9999){var i=l(e.media[t]);if(i.thumb)return{name:i.thumb,size:i.size.thumb,demoFile:i.demoFile};if("image"===i.type)return{name:i.content,size:i.size.content,demoFile:i.demoFile}}return{name:"",size:{width:0,height:0}}}function x(e){var t;if(e){var i=l(e.media[0]),n=L(e);p(i,e)?(t=JSON.parse(JSON.stringify(i)),t.size.thumb=n.size,t.thumb=n.name,t.demoFile=n.demoFile,t.subTitle=e.subTitle):t={size:{content:{width:0,height:0},thumb:{width:n.size.width,height:n.size.height},featuredImage:{width:0,height:0},bytes:0},slideshow:e.slideshow,label:e.label,subTitle:e.subTitle,alias:e.alias,title:"",type:"link",content:e.indexLink||e.key.replace(/ /g,"-"),thumb:n.name,linkTarget:e.linkTarget||"_self",caption:"",overrides:{thumbScaleFactor:e.overrides.thumbScaleFactor},featuredImage:"",filters:[],dateAdded:(new Date).toISOString(),demoFile:n.demoFile}}return!(!e||!e.visible)&&t}var M,V,T,E,z,k,O,I,A,F=new qe({parentView:e.mediaView.mask,parentController:e.parentController,events:e.siteEvents}),P=!1,H=!1,R=e.localEvents,j=!1;return F.overlayView=new Jt(e),F.overlayView.zIndex=ya.overlayView.zIndex,F.lazyLoaderUpdate=function(){F.thumbs&&F.thumbs.lazyLoader&&F.thumbs.lazyLoader.update()},/^unifiedSite|overlay/.test(ya.overrides.siteDisplayBehavior)?(A=e.mediaView,e.mediaView.addChild(F.overlayView)):(A=e.siteView,e.siteView.addChild(F.overlayView)),R.addEventListener("UPDATE_CONTENT_HEIGHT",function(e){V&&(I=V.key,ya.section(V)),"strip"===ya.overrides.thumbnailType?(F.overlayView.contentHeight=ya.mediaView.zoneHeight(I),F.overlayView.updatePosition()):e.thumbs&&(F.overlayView.contentHeight=e.thumbs,F.overlayView.updatePosition())}),e.siteEvents.addEventListener(Rn,s),F.uriChange=d,e.siteEvents.addEventListener(Wn,o),e.siteEvents.addEventListener(_n,a),e.siteEvents.addEventListener("UPDATE_CONTENT_HEIGHT",t),e.siteEvents.addEventListener("holdersBuilt",function(){C(),m()}),F.destroy=function(){F.thumbs&&(F.thumbs.scroll&&F.thumbs.scroll.destroy(),F.thumbs.staticNav&&F.thumbs.removeStaticNav()),/^unifiedSite/.test(ya.overrides.siteDisplayBehavior)?e.mediaView.mask.removeChild(F.overlayView):e.siteView.removeChild(F.overlayView),e.siteEvents.removeEventListener(Rn,s),F.uriChange=d,e.siteEvents.removeEventListener(Wn,o),e.siteEvents.removeEventListener(_n,a),e.siteEvents.removeEventListener("UPDATE_CONTENT_HEIGHT",t),e.siteEvents.removeEventListener("holdersBuilt",function(){thumbHoldersBuilt(),m()})},F.resize=function(e){F.overlayView.updatePosition(e),F.share&&F.share.updatePosition(e),F.inquiry&&F.inquiry.updatePosition(e),F.thumbs&&F.thumbs.resize()},F}function Jt(e){var t=new at({events:e.events});t.zIndex=ya.overlayView.zIndex,t.overflow=/hPaginatedGrid/.test(ya.overrides.thumbnailType)?"initial":"hidden",t.pointerEvents="none",t.updateSpeed=0,"Safari"===ia&&(t.style["-webkit-backface-visibility"]="hidden",t.style.transform="translateZ(0)"),t.element.setAttribute("class","OverlayView"),t.addEventListener(Co,function(){t.updatePosition()}),t.show=function(){t.display="block",Ze(t,bo,{alpha:1})},t.hide=function(){Ze(t,bo,{alpha:0,onComplete:function(){t.display="none"}})};var i=20;return t.updatePosition=function(){setTimeout(function(){t.section&&(t.sectionKey=t.section.key,ya.section(t.section)),t.overflow=/hPaginatedGrid/.test(ya.overrides.thumbnailType)?"initial":"hidden";var e=ya.overrides.siteDisplayBehavior&&/^unifiedSite/.test(ya.overrides.siteDisplayBehavior)?t.contentHeight||0:ya.overlayView.zoneHeight();"unifiedSiteScrollVertical"===ya.overrides.siteDisplayBehavior&&/strip/.test(ya.overrides.thumbnailType)&&(e=ya.mediaView.zoneHeight(t.sectionKey)),Ze.defer(t,0,{x:ya.overlayView.x(),y:ya.overlayView.y(t.sectionKey),width:ya.overlayView.zoneWidth(),height:e}),t.updateSpeed=bo},i)},t}function Qt(e){function t(e,t,i){var n=Mo[ya.overrides.thumbnailSize].width+i,o=Math.floor((e+i)/n);return o0?f-1:0;var t=h[f];Ze(c,.35,{x:-t.x,ease:$o.cubic.inOut,onComplete:function(){0===f?(e.hide("prev"),e.show("next")):f===h.length-1?(e.hide("next"),e.show("prev")):e.show(),t.lazyLoader.update()}})},nextClick:function(e){f=f+10&&(c=d(new ma),c.zIndex=1,c.element.className="paginated container",v.mask.element.className="paginated mask",v.mask.width=ya.mediaView.zoneWidth(),v.mask.height=ya.mediaView.zoneHeight(v.section.key),v.layout=function(){h.forEach(function(e,t){e.resize(),e.x=t*ya.mediaView.zoneWidth()})},v.transition=new $t({mediaView:v,mediaViewContainer:c,event:e.events}),v.resize=function(){d(c),f>h.length-1&&(f=h.length-1),v.staticNav&&(v.staticNav.resize({x:0,y:0,width:ya.overlayView.zoneWidth(),height:ya.mediaView.zoneHeight(v.section.key)}),h.length&&1!==h.length?0===f?(v.staticNav.hide("prev"),v.staticNav.show("next")):f===h.length-1?(v.staticNav.hide("next"),v.staticNav.show("prev")):v.staticNav.show():v.staticNav.hide()),v.layout(),h[f]&&Ze(c,.35,{x:-h[f].x})},v.removeStaticNav=function(){v.removeChild(v.staticNav)},v.staticNav=r(),h.length&&1!==h.length?0===f?(v.staticNav.hide("prev"),v.staticNav.show("next")):f===h.length-1?(v.staticNav.hide("next"),v.staticNav.show("prev")):v.staticNav.show():v.staticNav.hide(),v.resize()),v.show=function(){v.display="block",h.forEach(function(e,t){e.show()}),m=!0},v.hide=function(){h.forEach(function(e){e.hide()}),setTimeout(function(){v.display="none"},1e3*bo),m=!1},v.toggleState=function(){return m},v.highlight=function(){if(c){var e=c.children[f];e&&e.highlight()}},v.mask.addChild(c),v.addChild(v.mask),v.addChild(v.staticNav),v}function $t(e){function t(e,t){ya.section(o.section);var t=void 0!==t?t:ya.mediaView.transitionDuration();n.dispatchEvent(po);var a=so?$o.quart.out:$o.cubic.inOut,r=i.children[e];if(r){var l=r.x,s=r.y;if(Ze(i,t,{translateX:-l,translateY:-s,ease:a,onComplete:function(){n.dispatchEvent(mo),o.lazyLoader&&o.lazyLoader.update()}}),ji===Di)for(var d=i.children,c=0;c1?(c=2*Mo[ya.overrides.thumbnailSize].width+ya.overrides.thumbnailGap,h=2*Mo[ya.overrides.thumbnailSize].height+ya.overrides.thumbnailGap,u=2*Mo[ya.overrides.thumbnailSize].width+ya.overrides.thumbnailGap,g=2*Mo[ya.overrides.thumbnailSize].height+ya.overrides.thumbnailGap):(c=Mo[ya.overrides.thumbnailSize].width,h=Mo[ya.overrides.thumbnailSize].height,u=Mo[ya.overrides.thumbnailSize].width,g=Mo[ya.overrides.thumbnailSize].height);var S=c,x=h;y.width=S,y.height=x,y.filename=n(l,c,h),y.original=o(l,c,h),w(e.section.id)?y.index=C(l.assetId,e.section.mediaItems.length-1):y.index=l.assetId,/mp4/.test(y.filename)?(y.thumb=new ma({type:"video"}),y.thumb.element.setAttribute("muted",!0),y.thumb.element.setAttribute("autoplay",!0),y.thumb.element.setAttribute("loop",!0),y.thumb.element.setAttribute("playsinline",!0),y.thumb.element.setAttribute("type","video/mp4")):y.thumb=new Ge,y.thumb.attempts=0,y.thumb.selectable=!1;var M=Fe({type:"fit",hRange:u,vRange:g,width:l.size.thumb.width||l.size.content.width||Mo[ya.overrides.thumbnailSize].width,height:l.size.thumb.height||l.size.content.height||Mo[ya.overrides.thumbnailSize].height,disableOrientationCheck:!0}),V=new Le({hRange:c,vRange:h,hAlign:ya.overrides.thumbnailAlignHorizontal||"center",vAlign:ya.overrides.thumbnailAlignVertical||"center",width:M.width,height:M.height});y.thumb.width=Math.ceil(M.width),y.thumb.height=Math.ceil(M.height),y.thumb.x=Math.floor(V.x),y.thumb.y=Math.floor(V.y),"strip"!==ya.overrides.thumbnailType&&("slideUp"===Oi.thumbLoadEffect?(y.alpha=0,y.translateX=0,y.translateY=70):"slideDown"===Oi.thumbLoadEffect&&(y.alpha=0,y.translateX=0,y.translateY=-70)),l.type===Ni&&ya.overrides.thumbnailVideoPlayIcon&&(pe(l)&&ya.overrides.vimeoDefault&&e.thumbnailOnly||m(y,c,h)),y.playBtn&&(y.playBtn.x=Math.round(.5*(c-50)),y.playBtn.y=Math.round(.5*(h-50)));var E=ni(e.isIndexSection);if(y.selectable=!0,E&&"none"!==E){y.label=new ot,y.label.selectable=!0;var z=l.alias||l.label;
l.subTitle&&(z+="
"+l.subTitle+"
"),y.label.text=z,y.label.element.style.wordBreak="break-word",y.label.fontFamily=ya.overrides.thumbnailTitleFont,y.label.fontColor=ya.overrides.thumbnailTitleFontColor,y.label.fontSize=ya.overrides.thumbnailTitleFontSize,y.label.width=c,y.label.textAlign=ri(e.isIndexSection),y.label.zIndex=5;var O=J(y.label);switch(E){case"top":y.label.y=K(ya.overrides.thumbnailLabelVerticalOffset,5),y.thumb.y=O.height+K(ya.overrides.thumbnailLabelVerticalOffset,5),U=O.height+2*K(ya.overrides.thumbnailLabelVerticalOffset,5)>U?O.height+2*K(ya.overrides.thumbnailLabelVerticalOffset,5):U,y.height=h+U;break;case"over":case"hover":l.type===Ni&&ya.overrides.thumbnailVideoPlayIcon?y.label.y=.5*(h-50)-O.height+K(ya.overrides.thumbnailLabelVerticalOffset,0):y.label.y=.5*(h-O.height)+K(ya.overrides.thumbnailLabelVerticalOffset,0),y.label.pointerEvents="none",ji===Di||oe()?y.label.alpha=1:ji===Bi||le()?y.label.alpha=1:"over"===E?y.label.alpha=1:y.label.alpha=0;break;case"bottom":default:y.label.y=h+K(ya.overrides.thumbnailLabelVerticalOffset,5),U=O.height+2*K(ya.overrides.thumbnailLabelVerticalOffset,5)>U?O.height+2*K(ya.overrides.thumbnailLabelVerticalOffset,5):U,y.height=h+U}y.addChild(y.label)}"spinner"===ya.overrides.thumbnailLoaderType&&(y.loader=new Qe({type:"spinner",alpha:.65,color:s()}),y.addChild(y.loader),y.loader.x=.5*(c-y.loader.width),y.loader.y=.5*(h-y.loader.height));var I=new ma;I.id="hit",I.zIndex=4,ji===Di&&"hover"===E?I.alpha=K(ya.overrides.thumbnailHoverAlphaMobile,ya.overrides.thumbnailHoverAlpha):ji===Bi&&"hover"===E?I.alpha=K(ya.overrides.thumbnailHoverAlphaTablet,ya.overrides.thumbnailHoverAlpha):I.alpha=0,I.y=0,I.width=S,I.height=x,I.backgroundColor=ya.overrides.thumbnailHoverColor,"Safari"===ia&&(I.style["-webkit-backface-visibility"]="hidden",I.style.transform="translateZ(0px)"),y.addChild(I),y.hit=I;var F=mi(),R=vi(F,ya.overrides.thumbnailMaxCols,ya.overrides.thumbnailGap),j=/hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryMaintainOrder,B=!(!(R>1&&/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType))||j)&&d;q.addItem(c,y.height,B),y.defaultWidth=S,y.defaultHeight=x,H.addChild(y),Z.push(y),e.thumbnailOnly&&"link"!==l.type||(oe()||le()||(I.addEventListener(rn,v),I.addEventListener(cn,f)),I.addEventListener(Sn,b)),I.element.addEventListener("contextmenu",r),I.element.addEventListener("dragstart",r),y.load=k,y.unload=A,a===i-1&&setTimeout(function(){P.gridContainer.addChild(H),N.holdersBuilt=!0,N.updateSpeed=bo,ya.section(N.section),N.events.dispatchEvent("holdersBuilt"),p(),N.resize()},0)}},0)}(a)}function u(e){var t=uo;switch(e){case Ni:t+="video2@2x.png";break;case Xi:t+="text3@2x.png";break;case Yi:t+="swf@2x.png";break;case Zi:t+="link@2x.png";break;case Gi:t+="pdf@2x.png";break;case Ui:t+="contact@2x.png"}return t}function p(){if(ya.section(e.section),/fill|hMasonry|vMasonry|hPaginatedGrid/.test(ya.overrides.thumbnailType))j=new Ci({titleBlock:B,container:N,mask:P,items:Z,side:ya.overrides.thumbnailSide,size:ya.overrides.thumbnailSize,horizontalMargin:E(ya.overrides.thumbnailHorizontalMargin,va.width),verticalMargin:B?G+E(ya.overrides.thumbnailVerticalMargin,va.height)-ya.overrides.thumbnailTitleBlockTopMargin:E(ya.overrides.thumbnailVerticalMargin,va.height),masonry:ya.overrides.thumbnailMasonry,tile:q,parent:N,grid:H,gap:ya.overrides.thumbnailGap,maxGap:U,events:e.events,localEvents:e.localEvents,isIndexSection:e.isIndexSection,section:e.section});else if("strip"===ya.overrides.thumbnailType){var t="displace"===ya.overrides.thumbnailDock?0:24;"Safari"===ia&&(N.style["-webkit-backface-visibility"]="hidden");var i=li()?E(ya.overrides.thumbnailHorizontalMargin,va.width):E(ya.overrides.thumbnailVerticalMargin,va.height),n=wa.mediaView.size;_=new Ve(N,{get x(){return n.x()},get y(){return n.y(e.section.key)},get width(){return n.width()},get height(){var t=ya.mediaView.zoneHeight(e.section.key);return t}},{side:ya.overrides.thumbnailSide,align:"left",pOffset:i,margin:0,reveal:t,updateSpeed:bo}),j=new wi({section:e.section,dock:_,container:N,mask:P,items:Z,side:ya.overrides.thumbnailSide,size:ya.overrides.thumbnailSize,horizontalMargin:E(ya.overrides.thumbnailHorizontalMargin,va.width),verticalMargin:E(ya.overrides.thumbnailVerticalMargin,va.height),tile:q,parent:N,localEvents:e.localEvents})}}function m(e,t,i){var n=new Ge;n.src=uo+"play@2x.png",n.width=50,n.height=50,n.alpha=0,n.zIndex=3,n.thumbHolder=e,n.index=e.index,Ze(n,1,{alpha:.85}),e.playBtn=n,e.addChild(n)}function v(t){if(ya.section(e.section),t.target.parent.label){var i=g(e.section);(i&&"hover"===ya.overrides.thumbnailLabelPosition||!i&&"hover"===ya.overrides.thumbnailStdLabelPosition)&&Ze(t.target.parent.label,.35,{alpha:1})}Ze(t.target,.35,{alpha:a(),backgroundColor:ya.overrides.thumbnailHoverColor})}function f(t){if(ya.section(e.section),"link"===t.target.parent.mediaItem.type||W!==t.target.parent.index||0===r()?Ze(t.target,.2,{alpha:0}):Ze(t.target,.2,{alpha:r(),backgroundColor:ya.overrides.thumbnailSelectedColor}),t.target.parent.label){var i=g(e.section);(i&&"hover"===ya.overrides.thumbnailLabelPosition||!i&&"hover"===ya.overrides.thumbnailStdLabelPosition)&&Ze(t.target.parent.label,.35,{alpha:0})}}function b(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,Ze(t.target.parent.vimeo,bo,{alpha:1})):"link"===i.type?N.events.dispatchEvent(Yn,{nothumbs:/nothumbs(\/|)$/.test(i.content),type:"internal",path:i.content.replace(/nothumbs(\/|)/i,""),linkTarget:i.linkTarget,isThumbClick:!1}):(ya.section(e.section),N.events.dispatchEvent(Yn,{assetId:Number(t.target.parent.index),type:"internal",path:e.path,linkTarget:"_self",isThumbClick:!0,isMobileVideoClick:"video"===i.type&&ji===Di&&ya.overrides.mobileAutoPlay}))}function y(t){e.events.dispatchEvent(Go,"thumbs")}function L(e){var t=e.target;t.attempts<2&&t.parent.mediaItem.thumb?(t.src=ho+"/media/"+t.parent.mediaItem.thumb,t.attempts++):t.removeEventListener(qi,L)}function S(e){return lo?e.width>500||e.height>500:e.width>1e3||e.height>1e3}function x(t){var i=t.thumb,n=t.mediaItem,o=new st({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(go,function(e){o.play()}),e.thumbnailOnly&&(ya.overrides.vimeoDefault?(o.zIndex=5,Ze(o,bo,{alpha:1}),Ze(i,bo,{alpha:0}),o.setSource(n.content)):t.hit.element.onclick=function(e){o.zIndex=5,Ze(o,bo,{alpha:1}),Ze(i,bo,{alpha:0}),o.setSource(n.content)}),o.onplay=function(){I(o)},o.onpause=function(){}}function V(e){var t=e.thumb,i=e.mediaItem,n=new rt({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(){I(n),n.setSource(i.content),n.play(),n.element.style.zIndex=5,Ze(n,bo,{alpha:1}),Ze(t,bo,{alpha:0})},n.element.onclick=function(){n.paused?(I(n),n.play()):n.pause()}}function k(){var t=this,i=(t.thumb,t.mediaItem);ya.section(e.section),!j||t.loaded&&t.thumb.src||(/mp4/.test(t.filename)?(t.thumb.element.addEventListener(vo,function(e){j.thumbLoaded.call(t.thumb),this.muted=!0,this.play()}),t.thumb.src=t.filename):(t.thumb.addEventListener(Ki,j.thumbLoaded),S(t.thumb)||ya.overrides.thumbnailFullRes?t.thumb.src=t.original:t.thumb.src=t.filename),t.thumb.addEventListener(qi,L),t.thumb.alpha=0,t.loaded=!0,t.addChild(t.thumb)),i.type!==Ni||t.vimeo||t.video||(pe(i)&&(ji===Di&&ya.overrides.mobileAutoPlay||e.thumbnailOnly)?x(t):e.thumbnailOnly&&V(t))}function O(e){return"video"===e.mediaItem.type&&(e.vimeo||e.video)}function I(e){N.mask.grid.children.filter(O).forEach(function(t){pe(t.mediaItem)?t.vimeo!==e&&t.vimeo.pause():t.video!==e&&t.video.pause()})}function A(){this.mediaItem.type===Ni&&this.vimeo&&0===this.mediaItem.content.indexOf("vimeo")&&ji===Di&&this.removeChild(this.vimeo)}function F(){D.state=!0,N.holdersBuilt&&(N.updateSpeed=bo)}ya.section(e.section);var P,H,R,j,B,D,_,W,N=new ma({events:e.events}),X="left"===ya.overrides.thumbnailSide||"right"===ya.overrides.thumbnailSide||/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)?"y":"x",Y="y"===X?"top":"left",Z=[],G=0,U=ya.overrides.thumbnailGap,q=new De({name:"thumbs",type:ya.overrides.thumbnailType,marginHorizontal:E(ya.overrides.thumbnailHorizontalMargin,va.width),marginVertical:E(ya.overrides.thumbnailVerticalMargin,va.height),maintainOrder:/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryMaintainOrder,horizontalMasonry:/hMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryEvenRowHeight,masonryFill:/hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryFill,gap:ya.overrides.thumbnailGap});return N.getTotalHeight=function(){return j?j.totalHeight:0},N.currentThumb=1,N.settings=e.settings,N.section=e.section,N.tile=q,N.pointerEvents="auto",N.isInit=!0,N.element.setAttribute("class","Thumbs.container"),N.selectable=!1,N.build=function(){ya.section(e.section),N.updateSpeed=0,N.holdersBuilt=!1,N.id="thumbs",N.overflow="hidden",N.zIndex=200,N.alpha=0,P=N.mask=new ma,P.id="mask",P.overflow="hidden",P.zIndex=1,P.element.setAttribute("class","Thumbs.mask"),("overlay"===ya.overrides.thumbnailDock||/fill|hMasonry|vMasonry|hPaginatedGrid/.test(ya.overrides.thumbnailType))&&(P.backgroundColor=T(Oi.overlayColor,Oi.overlayAlpha)),N.addChild(P),N.mask=P,H=new ma,H.id="grid",H.element.setAttribute("class","Thumbs.grid"),H.element.style.transform="translateZ(0)",/hMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryFill&&(H.overflow="hidden"),P.grid=H,R=new ma,R.id="grid-container",R.element.setAttribute("class","Thumbs.grid.container"),R.element.style.transform="translateZ(0)",P.gridContainer=R,P.addChild(R);var n={Containername:"thumbs"};(oe()||le())&&(n.domElementScroll=!0),ya.siteView.unifiedPageScroll()&&(/native/.test(ya.overrides.thumbnailScrollType)||Oi.globalSmoothScroll)&&"strip"!==ya.overrides.thumbnailType&&"MSIE"!==ia&&(n.windowScroll=!0),/slide/.test(Oi.thumbLoadEffect)&&(n.boundaryMultiplier=.9),Qo&&(/native/.test(ya.overrides.thumbnailScrollType)||Oi.globalSmoothScroll)?n.domElementScroll=!0:n.property="translate",n.targetChildren=H.children;var o="strip"===ya.overrides.thumbnailType?H:R;N.lazyLoader=new Te(o,P,n),N.lazyLoader.name="thumbs",D=new We({target:N,on:N.hide,off:N.show});var a,r,l=0,s=0,d=0,c=0;if(/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&e.section.thumb&&e.section.thumb.titleBlock&&(B=t(e.section),G=ya.overrides.thumbnailTitleBlockTopMargin+B.element.offsetHeight,B.y=ya.overrides.thumbnailTitleBlockTopMargin,P.gridContainer.addChild(B)),oe()||le())/^unified/.test(ya.overrides.siteDisplayBehavior)&&ji!==Di&&ji!==Bi||("y"===X?(P.element.style.overflowY="scroll",P.element.style.overflowX="hidden"):(P.element.style.overflowY="hidden",P.element.style.overflowX="scroll")),P.element.style["-webkit-overflow-scrolling"]="touch",H.element.addEventListener("touchstart",function(e){l=0,s=0,d=e.touches[0].pageX,c=e.touches[0].pageY}),H.element.addEventListener("touchmove",function(e){l=e.touches[0].pageX-d,s=e.touches[0].pageY-c,ea.abs(l)>ea.abs(s)?(l>0?P.element.scrollLeft>0&&P.element.scrollLeft<=H.width-ya.overlayView.zoneWidth()&&e.stopPropagation():"x"===X&&e.stopPropagation(),a=!0,r=!1):(r=!0,a=!1),N.lazyLoader&&N.lazyLoader.update()}),H.element.addEventListener("touchend",function(e){N.lazyLoader&&N.lazyLoader.update()}),P.element.addEventListener("scroll",function(){N.lazyLoader&&N.lazyLoader.update()}),ya.siteView.unifiedPageScroll()&&window.addEventListener("scroll",function(e){N.lazyLoader&&N.lazyLoader.update()});else if(/^unifiedSite/.test(ya.overrides.siteDisplayBehavior))window.addEventListener("scroll",function(e){N.lazyLoader&&N.lazyLoader.update()});else if(ya.siteView.unifiedPageScroll()&&/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&(/native/.test(ya.overrides.thumbnailScrollType)||Oi.globalSmoothScroll))window.addEventListener("scroll",function(e){N.lazyLoader&&N.lazyLoader.update()});else if(Qo&&(/native/.test(ya.overrides.thumbnailScrollType)||Oi.globalSmoothScroll))P.element.addEventListener("scroll",function(){N.lazyLoader&&N.lazyLoader.update()}),"y"===X?(P.element.style.overflowY="scroll",P.element.style.overflowX="hidden"):(P.element.style.overflowY="hidden",P.element.style.overflowX="scroll");else{i();var u="strip"===ya.overrides.thumbnailType?0:ya.overrides.thumbnailScrollbarWidth,p="right"===ya.overrides.thumbnailScrollbarAlignment?-ya.overrides.thumbnailScrollbarHorizontalOffset-u:ya.overrides.thumbnailScrollbarHorizontalOffset+u,m=li()?"x":"y";"strip"===ya.overrides.thumbnailType&&(Y="y"===X?ya.overrides.thumbnailAlignVertical||"center":ya.overrides.thumbnailAlignHorizontal||"center");var v={name:"thumbs",types:["bar","wheel","touch"],axis:m,align:Y,zIndex:ya.overlayView.zIndex+1,color:ya.overrides.thumbnailScrollbarColor,hover:ya.overrides.thumbnailScrollbarHover,side:ya.overrides.thumbnailScrollbarAlignment,alpha:ya.overrides.thumbnailScrollbarBgAlpha,width:u,offsetX:ya.overlayView.x()+p,offsetY:ya.overlayView.y(e.section.key)+ya.overrides.thumbnailScrollbarVerticalOffset,property:"translate",rounded:ya.overrides.thumbnailScrollbarRounded,visibility:ya.overrides.thumbnailScrollbarVisibility,parent:e.scrollbarParent};/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)?(v.marginTop=B?ya.overrides.thumbnailTitleBlockTopMargin:E(ya.overrides.thumbnailVerticalMargin,va.height),v.marginBottom=E(ya.overrides.thumbnailVerticalMargin,va.height)):v.margin=0,(/native/.test(ya.overrides.thumbnailScrollType)||Oi.globalSmoothScroll)&&(v.margin=0,v.color="#000000",v.hover="#000000",v.side="right",v.alpha=0,v.width=u,v.offsetX=ya.overlayView.x()-10,v.offsetY=ya.overlayView.y(e.section.key),v.rounded=!0,v.visibility="when scrolling");var o="strip"===ya.overrides.thumbnailType?H:R;N.scroll=new Pe(o,P,v)}N.scroll&&(N.scroll.addEventListener($n,function(){N.lazyLoader&&N.lazyLoader.update()}),N.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){N.scroll.percent=0,N.scroll.update(bo)})),e.mediaItems.length>0&&h(),D.state=!0,N.resize(),D.state=!1,N.isInit=!1},N.resizeThumbVideo=function(){N.mask.grid.children.filter(O).forEach(function(e){e.video?e.video.setSize(e.width,e.height):e.vimeo&&e.vimeo.setSize(e.width,e.height)})},N.highlight=function(t){if(ya.section(e.section),ji!==Di&&!e.thumbnailOnly){var i=Z.length;for(W=Number(void 0!==t?t:e.assetId);i--;)if(i!==W){var n=Z[i].hit.parent.mediaItem,o=ni(e.isIndexSection);fi(n)||ji===Di||ji===Bi||(Ze(Z[i].hit,bo,{alpha:0}),Z[i].hit.parent.label&&"hover"===o&&ji!==Di&&ji!==Bi&&Ze(Z[i].hit.parent.label,.35,{alpha:0}))}if(W>-1&&Z[W]&&"link"!==Z[W].hit.parent.mediaItem.type){N.currentThumb=W+1;var n=Z[W].hit.parent.mediaItem,o=ni(e.isIndexSection);Ze(Z[W].hit,bo,{alpha:r(),backgroundColor:ya.overrides.thumbnailSelectedColor}),Z[W].hit.parent.label&&"hover"===o&&ji!==Di&&ji!==Bi&&Ze(Z[W].hit.parent.label,.35,{alpha:0})}}},N.hide=function(){D.state&&(ya.section(e.section),Ze(N,bo,{alpha:0,onComplete:function(){N.display="none",N.updateSpeed=0,D.state=!1}}),"strip"===ya.overrides.thumbnailType&&_&&_.hide(),N.scroll&&(N.scroll.disable(),N.scroll.hide()))},N.show=function(){D.state||(N.display="block",setTimeout(function(){ya.section(e.section),_&&_.resize(0),_&&_.show(),N.resize(),Ze(N,bo,{alpha:1,onComplete:F}),"scrollbar"===ya.overrides.thumbnailScrollType&&/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&N.scroll&&N.scroll.enable(),N.scroll&&(N.scroll.show(),N.scroll.update())},0))},N.toggle=function(){D.flip(),"strip"===ya.overrides.thumbnailType&&_.toggle(),D.state?N.show():N.hide()},N.toggleState=function(){return D.state},N.resize=function(){j||p(),j&&j.resize(),N.scroll&&N.scroll.resize()},N.build(),N}function ti(){var e=ya.overrides.thumbnailLabelPosition;return oe()&&(e=K(ya.overrides.thumbnailLabelPositionMobile,ya.overrides.thumbnailLabelPosition)),le()&&(e=K(ya.overrides.thumbnailLabelPositionTablet,ya.overrides.thumbnailLabelPosition)),e}function ii(){var e=ya.overrides.thumbnailStdLabelPosition;return oe()&&(e=K(ya.overrides.thumbnailStdLabelPositionMobile,ya.overrides.thumbnailStdLabelPosition)),le()&&(e=K(ya.overrides.thumbnailStdLabelPositionTablet,ya.overrides.thumbnailStdLabelPosition)),e}function ni(e){var t=ti(),i=ii();if(e){if(t)return t}else if(i)return i;return!1}function oi(){var e=ya.overrides.thumbnailLabelJustification;return e}function ai(){var e=ya.overrides.thumbnailStdLabelJustification;return e}function ri(e){var t=oi(),i=ai();if(e){if(t)return t}else if(i)return i;return"center"}function li(){return"strip"===ya.overrides.thumbnailType&&("top"===ya.overrides.thumbnailSide||"bottom"===ya.overrides.thumbnailSide)}function si(){return"strip"===ya.overrides.thumbnailType&&("left"===ya.overrides.thumbnailSide||"right"===ya.overrides.thumbnailSide)}function di(){return/hMasonry|vMasonry/.test(ya.overrides.thumbnailType)}function ci(e){return!bi(e)&&(li()||di()||si())?e.size.thumb.width||e.size.content.width:Mo[ya.overrides.thumbnailSize].width}function hi(e){return!bi(e)&&(li()||di()||si())?e.size.thumb.height||e.size.content.height:Mo[ya.overrides.thumbnailSize].height}function ui(e,t){if(/hMasonry/.test(ya.overrides.thumbnailType)||/vMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryFill)return gi(e,t);var i=Mo[ya.overrides.thumbnailSize].width,n=vi(mi(),ya.overrides.thumbnailMaxCols,t);return/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&e&&n>1?2*i+t:li()?10*i:i}function pi(e,t){var i=Mo[ya.overrides.thumbnailSize].height,n=vi(mi(),ya.overrides.thumbnailMaxCols,t);return/fill|hMasonry/.test(ya.overrides.thumbnailType)&&e&&n>1?2*i+t:di()&&!ya.overrides.thumbnailMasonryEvenRowHeight||si()?10*i:i}function mi(){var e=E(ya.overrides.thumbnailHorizontalMargin,va.width);return ya.overlayView.zoneWidth()-2*e}function vi(e,t,i){t=/fill|hPaginatedGrid/.test(ya.overrides.thumbnailType)?1/0:t;var n=Mo[ya.overrides.thumbnailSize].width+i,o=/vMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryFill?Math.round:Math.floor,a=o((e+i)/n);return a1?2*Math.round(a)+t:Math.round(a)}function fi(e){return"link"===e.type&&!!e.thumb}function bi(e){return!e.thumb&&"image"!==e.type}function Ci(e){function t(){if(ya.section(e.section),/hMasonry/.test(ya.overrides.thumbnailType)||/vMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryFill)r.perpLength=mi();else{var t=vi(mi(),ya.overrides.thumbnailMaxCols,ya.overrides.thumbnailGap),i=ui(!1,ya.overrides.thumbnailGap),n=ya.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*Mo[ya.overrides.thumbnailSize].width+ya.overrides.thumbnailGap,w=2*Mo[ya.overrides.thumbnailSize].height+ya.overrides.thumbnailGap,y=2*Mo[ya.overrides.thumbnailSize].width+ya.overrides.thumbnailGap,L=2*Mo[ya.overrides.thumbnailSize].height+ya.overrides.thumbnailGap):(C=Mo[ya.overrides.thumbnailSize].width,w=Mo[ya.overrides.thumbnailSize].height,y=Mo[ya.overrides.thumbnailSize].width,L=Mo[ya.overrides.thumbnailSize].height);var x=Fe({type:"fit",hRange:y,vRange:L,width:f.size.thumb.width||f.size.content.width||Mo[ya.overrides.thumbnailSize].width,height:f.size.thumb.height||f.size.content.height||Mo[ya.overrides.thumbnailSize].height,disableOrientationCheck:!0}),M=new Le({hRange:C,vRange:w,hAlign:ya.overrides.thumbnailAlignHorizontal||"center",vAlign:ya.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 V=/hMasonry|vMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryMaintainOrder,T=!(!(v>1&&/fill|hMasonry|vMasonry/.test(ya.overrides.thumbnailType))||V)&&b;r.addItem(C,w,T)}/fill|vMasonry/.test(ya.overrides.thumbnailType)&&(r.gridWidths=ui(!1,ya.overrides.thumbnailGap),r.lastColumnWidth=/vMasonry/.test(ya.overrides.thumbnailType)&&ya.overrides.thumbnailMasonryFill?m-(r.gridWidths+ya.overrides.thumbnailGap)*(v-1):r.gridWidths,r.numberOfColumns=v),r.items.length&&t(),setTimeout(function(){ya.section(e.section);var t=r.getBounds(),l=new Le({hRange:ya.overlayView.zoneWidth(),vRange:"hPaginatedGrid"===ya.overrides.thumbnailType?ya.mediaView.zoneHeight(e.section.key):ya.overlayView.zoneHeight(e.section.key),width:r.perpLength,height:t.height,hAlign:"center",vAlign:"hPaginatedGrid"===ya.overrides.thumbnailType?"center":"top",hOffset:0,vOffset:"hPaginatedGrid"===ya.overrides.thumbnailType?0:e.verticalMargin});if((ya.overrides.thumbnailMasonryFill||ya.overrides.thumbnailMasonryEvenRowHeight)&&/hMasonry|vMasonry/.test(ya.overrides.thumbnailType)?o.gridContainer.x=e.horizontalMargin:(o.gridContainer.x=Math.floor(l.x),a&&(a.width=r.perpLength,d=ya.overrides.thumbnailTitleBlockTopMargin+a.element.offsetHeight,a.y=ya.overrides.thumbnailTitleBlockTopMargin)),"hPaginatedGrid"===ya.overrides.thumbnailType?o.gridContainer.y=Math.floor(l.y):(o.gridContainer.y=0,o.grid.y=d+e.verticalMargin),n.width=ya.overlayView.zoneWidth(),o.width=ya.overlayView.zoneWidth(),o.grid.width=r.perpLength,o.gridContainer.width=r.perpLength,"hPaginatedGrid"===ya.overrides.thumbnailType){var c=ya.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(ya.overrides.siteDisplayBehavior)){var h=!g(e.section)&&ya.mediaView.height(e.section.key)>t.height?ya.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(ya.siteView.unifiedPageScroll()&&(ji!==Di&&oe()||ji!==Bi&&le()||/native/.test(ya.overrides.thumbnailScrollType)||Oi.globalSmoothScroll)){var u=t.height+e.verticalMargin;u=u>ya.mediaView.height()?u:ya.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=ya.overlayView.zoneHeight(),o.height=n.height,i.height=n.height,o.grid.height=t.height+e.verticalMargin,o.gridContainer.height=s;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"!==Oi.thumbLoadEffect&&"slideDown"!==Oi.thumbLoadEffect||Ze(this.parent,.85,{alpha:1,translateY:0}),Ze(this,.25,{alpha:1})}}function wi(e){function t(){switch(a){case"top":l.axis="x",l.perpLength=Mo[r].height,n.height=Mo[r].height,o.height=Mo[r].height;break;case"right":l.axis="y",l.perpLength=Mo[r].width,n.width=Mo[r].width,o.width=Mo[r].width;break;case"bottom":l.axis="x",l.perpLength=Mo[r].height,n.height=Mo[r].height,o.height=Mo[r].height;break;case"left":l.axis="y",l.perpLength=Mo[r].width,n.width=Mo[r].width,o.width=Mo[r].width}}function i(){l.layoutItems(),items=o.grid.children;for(var t=0,i=items.length;t573?573:ya.mediaView.width(),A=ya.mediaView.height(O.section.key)>400?400:ya.mediaView.height(O.section.key),g.height=g.element.offsetHeight,V.width=V.element.offsetWidth,f.y=g.height+10,Pi.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),wa.mediaView.width()>573?Pi.inquiryInfo?(w.x=222,w.y=b.y+b.element.offsetHeight+10):(w.x=222,w.y=C.y):(w.transition=0,w.x=.5*(wa.mediaView.width()-w.width),w.y=C.y+k+10,C.x=.5*(wa.mediaView.width()-C.width),g.x=.5*(wa.mediaView.width()-g.element.offsetWidth),f.alpha=0),V.x=w.element.offsetWidth-V.width,Pi.inquiryInfo?(F.x=w.x,F.y=b.y+b.element.offsetHeight+10):(F.x=w.x,F.y=40),0===O.updateSpeed?(O.width=ya.mediaView.width(),O.height=ya.mediaView.height(O.section.key),v.x=.5*(ya.mediaView.width()-I),v.y=.5*(ya.mediaView.height(O.section.key)-A),v.width=I,v.height=A):(Ze(O,O.updateSpeed,{width:ya.mediaView.width(),height:ya.mediaView.height(O.section.key)}),Ze(v,O.updateSpeed,{x:.5*(ya.mediaView.width()-I),y:.5*(ya.mediaView.height(O.section.key)-A),width:I,height:A})),E.width=ya.mediaView.width(),E.height=ya.mediaView.height(O.section.key),O.updateSpeed=bo},O.show=function(){O.updateSpeed=0,O.visible||(O.visible=!0,O.display="block",Ze(O,bo,{alpha:1}),Ze(w,bo,{alpha:1}),Ze(F,bo,{alpha:0})),O.updatePosition()},O.hide=function(){O.visible&&(O.visible=!1,Ze(O,bo,{alpha:0,onComplete:function(){this.display="none"}}))},O.updateInquiryInfo=function(){g.text=Pi.inquiryTitle?Pi.inquiryTitle:"Inquire about this image",Pi.inquiryInfo&&(b.text=Pi.inquiryInfo),O.updatePosition()},O.updateContent=function(e){var t=S(e.section.media);y=l(t[e.assetId]),C&&v.removeChild(C),C=new Ge,C.alpha=0,Pi.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(Ki,i)},O.addEventListener(Co,function(e){t.call(O)}),O}function Li(e){function t(){g=new ma,g.backgroundColor="#cccccc",g.alpha=0,g.addEventListener(ln,o),C.addChild(g),a=new ma,a.width=w,a.height=y,C.addChild(a),r=new ot,r.text="Share this item",r.fontFamily=ya.overrides.overlayTitleFont,r.fontColor=ya.overrides.overlayTitleFontColor,r.fontSize=ya.overrides.overlayTitleFontSize,a.addChild(r),r.height=r.element.offsetHeight,s=new ma,s.backgroundColor=T(ya.overrides.overlayTitleFontColor,.35),s.width=w,s.height=1,s.y=ya.overrides.overlayTitleFontSize+10,a.addChild(s),d=new Ge,d.alpha=0,a.addChild(d),d.addEventListener(Ki,i),h=new ma,h.x=222,h.y=r.height+20,h.width=w-h.x,h.height=y-h.y,a.addChild(h);var e="http://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");p=new ma({type:"iframe"}),p.src="http://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 Ue,m.addEventListener("click",function(){var e="http://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");window.open("http://twitter.com/intent/tweet?text="+encodeURI(e),"_blank")});var t=new Ge;t.position="relative",t.width=20,t.height=20,t.src="http://33acda504924667afc4c-95ab99cbba1f87315d458f4e201677b2.ssl.cf1.rackcdn.com/icon/twitter@2x.png",m.addChild(t),v=new Ue,v.addEventListener("click",function(){var e="http://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");window.location.href="mailto:?subject=Shared item from "+window.location.host+"&body="+Pi.portfolioEmailMessage+"%0A%0A"+e});var l=new Ge;l.position="relative",l.width=20,l.height=20,l.src="http://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=ya.overrides.overlayTitleFont,L.fontColor=ya.overrides.overlayTitleFontColor,L.fontSize=14,a.addChild(L),C.updateStyle(),C.updatePosition(),C.show(),x.addEventListener(Oo,n)}function i(e){var t=Ae({width:this.width,height:this.element.offsetHeight,filename:d.src}),i=Ie(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,Ze(this,bo,{alpha:1}),C.updatePosition()}function n(e){L.text=e.response,Ze(h,bo,{alpha:0}),Ze(L,bo,{alpha:1}),C.addEventListener(ln,o)}function o(e){e.target===C&&C.removeEventListener(ln,o),x.dispatchEvent(Go,"share")}var a,r,s,d,h,u,p,m,v,g,f,b,C=new ma(e),w=573,y=400,L=new ma,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=T(Oi.overlayColor,Oi.overlayAlpha),C.zIndex=100,C.alpha=0,C.visible=!1,C.updateStyle=function(e){ya.overrides.overlayTitleFont!==r.fontFamily&&(r.fontFamily=ya.overrides.overlayTitleFont,p.fontFamily=ya.overrides.overlayTitleFont,m.fontFamily=ya.overrides.overlayTitleFont,v.fontFamily=ya.overrides.overlayTitleFont),ya.overrides.overlayTitleFontSize!==r.fontSize&&Ze(r,bo,{fontSize:ya.overrides.overlayTitleFontSize,onComplete:function(){C.updatePosition(e)}}),ya.overrides.overlayTitleFontColor!==r.fontColor&&(Ze(r,bo,{fontColor:ya.overrides.overlayTitleFontColor}),Ze(s,bo,{backgroundColor:T(ya.overrides.overlayTitleFontColor,.35)}),Ze(p,bo,{fontColor:T(Oi.overlayColor,.35),backgroundColor:T(ya.overrides.overlayTitleFontColor,.35)}),Ze(m,bo,{fontColor:T(Oi.overlayColor,.35),backgroundColor:T(ya.overrides.overlayTitleFontColor,.35)}),Ze(v,bo,{fontColor:T(Oi.overlayColor,.35),backgroundColor:T(ya.overrides.overlayTitleFontColor,.35)})),T(Oi.overlayColor,Oi.overlayAlpha)!==C.backgroundColor&&Ze(C,bo,{backgroundColor:T(Oi.overlayColor,Oi.overlayAlpha)})},C.updatePosition=function(e){ya.section(C.section),C.x=0,C.y=0,w=ya.mediaView.width()>573?573:ya.mediaView.width(),y=ya.mediaView.height(C.section.key)>400?400:ya.mediaView.height(C.section.key),d.x=2,d.y=r.height+20,s.y=ya.overrides.overlayTitleFontSize+10,wa.mediaMask.width()>573?(h.x=222,h.y=r.height+20):(h.transition=0,h.x=.5*(wa.mediaView.width()-h.width),h.y=d.y+b+10,d.x=.5*(wa.mediaView.width()-d.width),r.x=.5*(wa.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=ya.mediaView.width(),C.height=ya.mediaView.height(C.section.key),a.x=.5*(ya.mediaView.width()-w),a.y=.5*(ya.mediaView.height(C.section.key)-y),a.width=w,a.height=y):(Ze(C,C.updateSpeed,{width:ya.mediaView.width(),height:ya.mediaView.height(C.section.key)}),Ze(a,C.updateSpeed,{x:.5*(ya.mediaView.width()-w),y:.5*(ya.mediaView.height(C.section.key)-y),width:w,height:y})),g.width=ya.mediaView.width(),g.height=ya.mediaView.height(C.section.key),C.updateSpeed=bo},C.show=function(){C.updateSpeed=0,C.updatePosition(),C.visible||(C.visible=!0,C.display="block",Ze(C,bo,{alpha:1}),Ze(h,bo,{alpha:1}),Ze(L,bo,{alpha:0}))},C.hide=function(e){C.visible&&(C.visible=!1,Ze(C,bo,{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 Ge,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="http://"+window.location.host+window.location.pathname.split("/").slice(0,-1).join("/");p.src="http://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(Ki,i)},C.addEventListener(Co,function(e){t.call(C)}),C}function Si(e){function t(e){return window.scrollY>e?e:window.scrollY<0?0:window.scrollY}function i(e){Oi.menuRevealOnInit!==!1&&k&&e<10?C.menuView.dock.toggleState()||C.menuView.dock.show():e>va.height*Oi.menuScrollReveal?C.menuView.dock.toggleState()||C.menuView.dock.show():C.menuView.dock.toggleState()&&C.menuView.dock.hide()}function n(){"Safari"===ia&&(C.menuView.menuText.translateZ=0)}function o(){"Safari"===ia&&(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,ji===Di||ji===Bi){var t=e.info.isDeepLink||""===Oi.menuAutoCloseMobile||void 0===Oi.menuAutoCloseMobile||Oi.menuAutoCloseMobile;""===ya.introFile&&""===Oi.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"===ya.menuView.placement()?(!y&&C.menuView.dock.toggleState()&&C.menuView.closeDock(),y&&(Oi.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 Fi)Fi[t].media&&Fi[t].mediaItems&&Fi.hasOwnProperty(t)&&(e[t]={id:Fi[t].id,key:Fi[t].key,hideFromMenu:Fi[t].hideFromMenu,customLink:Fi[t].customLink,isIndex:Fi[t].isIndex,indexLink:Fi[t].indexLink,linkTarget:Fi[t].linkTarget,isOpen:Fi[t].isOpen,hideSubs:Fi[t].hideSubs,label:Fi[t].label,alias:Fi[t].alias,media:Fi[t].media.slice(0),mediaItems:Fi[t].mediaItems.slice(0),overrides:Fi[t].overrides,password:Fi[t].password,thumb:Fi[t].thumb,visible:Fi[t].visible,isSearch:Fi[t].isSearch});if((ji===Di||ji===Bi&&Oi.footerOnMenuTablet)&&(ya.socialLinks.forEach(function(t){var i=Ii[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)}),ya.copyright)){var i=u(e);e.copyright={id:i,key:"copyright",label:ya.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 qe({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents}),w=!0,y=!0,L=!0,x=350,M=!1,V=!1;C.updateSpeed=0,C.menuView=new e.MenuView(e),C.menuView.alpha=0,ji===Di&&ya.overrides.menuDisplaceMobile?(va.addChild(C.menuView),C.menuView.addChild(e.parentView)):ji===Bi&&ya.overrides.menuDisplaceTablet?(va.addChild(C.menuView),C.menuView.addChild(e.parentView)):C.parentView.addChild(C.menuView),e.model=Fi,C.menuView.menuText=new Mi(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(Rn,v),C.events.addEventListener(jn,g),C.events.addEventListener(Wn,p),C.events.addEventListener(no,function(){M=!0}),C.events.addEventListener(Qi,function(){wa.isMenuOverlayStateChange?(C.menuView.transition=0,C.menuView.alpha=0,setTimeout(function(){wa.isMenuResponsiveOverlay&&ji!==Di?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)):(ji===Di&&(M||L)&&(C.menuView.menuText.rebuild({model:m()}),M=!1),C.menuView.menuText.updatePosition(0),C.menuView.updatePosition(),ji===Di||ji===Bi||C.menuView.dock.toggleState()||Oi.isMenuScrollReveal||setTimeout(function(){C.menuView.display="none"},x)),x=50,L=!1}),C.events.addEventListener(In,r),C.events.addEventListener("SITE_URI_CHANGE_PASSIVE",s),C.events.addEventListener(Ro,a),C.events.addEventListener(_o,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(Wo,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 T,E=0,z=!1,k=!0,O=void 0===Oi.menuRevealOnInit||Oi.menuRevealOnInit;Oi.menuRevealOnInit===!1&&C.menuView.dock.hide(),window.addEventListener("scroll",function(){V=!1,Oi.isMenuScrollReveal&&/top/.test(ya.menuView.placement())&&(z=!0,clearTimeout(T),T=setTimeout(function(){var e=ya.siteView.height()-va.height;E=t(e),Oi.menuRevealOnInit!==!0&&k?(C.menuView.dock.hide(),O=!1):te()?(V=!0,i(E)):Oi.isMenuScrollReveal&&(0!==E&&E>window.oldScrollY-1?C.menuView.dock.toggleState()&&!k&&(C.menuView.dock.hide(),O=!1):Eea.abs(y)?(O=!0,z=!1,e.stopPropagation()):(z=!0,ji===Di&&(p.dock.toggleState()?p.dock.show(0):p.dock.hide(0)),O=!1),ji!==Di&&ji!==Bi||!O||e.preventDefault();var t=/left|top|bottom/.test(ya.menuView.placement())?"left":"right";if(ji!==Bi&&ji!==Di||(t="left"),O){p.transition=0;var i=w+x;"left"===t?p.dock.toggleState()?p.translateX=i>0?0:i:p.translateX=i<-wa.menuView.width()?-wa.menuView.width():i:p.translateX=i=e.touches[0].pageX&&(M="left"===t?"close":"open",V=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(nn,l),p.removeEventListener(on,s),p.removeEventListener(an,s)}function d(){p.dock.toggleState()?(H=!1,p.closeDock()):(H=!0,p.openDock())}function c(){C,h()}function h(){C=!0,Ze(v,bo,{alpha:1})}function u(){return ji!==Di&&ji!==Bi&&Oi.menuBlendMode&&"overlay"!==ya.menuView.placement()?Oi.menuBlendMode:"normal"}var p=new at({events:e.events});p.identity="menu",p.element.setAttribute("data-identity","menu"),p.isInitUri=!0,p.alpha=0,p.updateSpeed=0,p.zIndex=ya.menuView.zIndex,p.style.pointerEvents="none",p.x=0,p.y=0,p.position=ya.menuView.menuPositionFixed()||"overlay"===ya.menuView.placement()?"fixed":"absolute",p.element.style["mix-blend-mode"]=u();var m=(e.parentView,new ma);m.identity="menu",m.element.setAttribute("data-identity","menu"),m.element.setAttribute("class","mask"),m.backgroundColor=T("#FF0000",0),m.width=wa.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",V=0,z=!1,k=!1,O=!1,I=Q()?"top":"left",A=$()?wa.menuView.y():wa.menuView.x(),F=$()?wa.menuView.x():wa.menuView.y(),P={width:va.width,height:va.height};p.addEventListener(Co,function(){p.updatePosition(),"overlay"===ya.menuView.placement()?b=!1:Ze(p,bo,{delay:bo,alpha:1,onComplete:function(){b=!1}})}),p.dock=new Ve(p,P,{side:ji===Bi||ji===Di?"left":ya.menuView.placement(),align:I,margin:A,pOffset:F,reveal:0,disableResize:"overlay"===ya.menuView.placement()}),p.showCloseButton=function(){var e=ya.menuView.menuIconOverlayColor(),i=Number(Oi.menuIconSize||36),o=t(i);o.isClosed=!1,o.color=e,o.rotate=-180,o.line1Y=2*o.topMargin-(Number(Oi.menuIconLineWidth||1)+1),o.line3Y=2*o.topMargin-(Number(Oi.menuIconLineWidth||1)+1),o.leftMargin*=.5,n(o)},p.showMenuIcon=function(){var e=Number(Oi.menuIconSize||36),i=t(e);i.isClosed=!0,i.color=Oi.menuIconColor||"#333333",i.rotate=0,i.line1Y=i.topMargin,i.line3Y=3*i.topMargin,i.diagonal=i.width,n(i)},ji===Bi||ji===Di?(v=new ma,v.svg=new ba,v.path=new et,v.width=20,v.height=20,v.svg.width=20,v.svg.height=20,v.path.d=fa.menuIconMobile,v.path.strokeWidth=0,v.path.stroke="none",v.path.fill=Oi.menuIconColor||ya.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(Sn,d),p.events.addEventListener(Ro,a),p.addEventListener(tn,r),p.style.pointerEvents="auto"):"overlay"===ya.menuView.placement()&&i();var H=!1;return p.openDock=function(e){e=isNaN(e)?bo:e,va.zoom<=1&&(ji===Di||ji===Bi)?(p.events.dispatchEvent(jo),p.dock.show(e),clearInterval(g)):"overlay"===ya.menuView.placement()&&(p.showCloseButton(),p.dock.show(0,function(t){t.display="block",p.menuText.updatePosition(0),Ze(t,e,{delay:.15,alpha:1}),f=document.body.style.overflowY,document.body.style.overflowY="hidden"}))},p.closeDock=function(e){e=isNaN(e)?bo:e,va.zoom<=1&&!k&&(ji===Di||ji===Bi)?(p.dock.toggleState()&&p.events.dispatchEvent(Bo),p.dock.hide(e)):"overlay"===ya.menuView.placement()&&(p.showMenuIcon(),p.dock.hide(0,function(t){Ze(t,e,{delay:.05,alpha:0,onComplete:function(){t.display="none"}}),document.body.style.overflowY=f}))},p.updateStyle=function(){ji===Di?Ze(p,p.updateSpeed,{backgroundColor:T(Oi.menuBgColorMobile||Oi.menuBgColor,Oi.menuBgAlphaMobile||Oi.menuBgAlpha)}):ji===Bi?Ze(p,p.updateSpeed,{backgroundColor:T(Oi.menuBgColorTablet||Oi.menuBgColor,Oi.menuBgAlphaTablet||Oi.menuBgAlpha)}):Ze(p,0,{backgroundColor:T(ya.menuView.menuBgColor(),ya.menuView.menuBgAlpha())})},p.updatePosition=function(t){var n="layoutModelChange"===t,o=isNaN(t)?p.updateSpeed:t;p.position=ya.menuView.menuPositionFixed()||"overlay"===ya.menuView.placement()?"fixed":"absolute",p.element.style["mix-blend-mode"]=u();var a=q(p,"menuText.height")||0,r=wa.menuView.height()-wa.menuText.y(a),l=wa.menuText.y(a);if(ji===Di?r=wa._footerHeight?wa.menuView.height()-wa.menuText.y(a)-wa._footerHeight-2*wa.mobileFooterPadding:wa.menuView.height()-wa.menuText.y(a):r>wa.menuView.height()&&(r=wa.menuView.height(),l=0),ji!==Bi&&ji!==Di&&Oi.navbarAlignHorizontal===ya.menuView.placement()&&"bottom"===Oi.navbarAlignVertical&&wa._navbarVisible){var s=12;r=wa.navbarView.y()-E(Oi.sitePaddingTop,va.height)-l-Oi.menuOffsetY-s}ji===Bi||ji===Di?(v.x=wa.menuView.width()+16,v.y=16):"overlay"===ya.menuView.placement()?v&&!n||i():v&&(p.dock.show(0,function(e){e.display="block",Ze(e,o,{alpha:1})}),/overlay/.test(ya.menuView.placement())?va.removeChild(v):e.parentView.removeChild(v),v=null);var d=oe()&&"overlay"===ya.menuView.placement()?250:0;Ze(p,o,{width:wa.menuView.width(),height:wa.menuView.height()+d}),ji===Di?(Ze(m,o,{width:wa.menuView.width(),height:wa.menuView.height(),y:0}),p.menuText&&Ze(p.menuText,o,{y:l})):Ze(m,o,{width:wa.menuView.width(),height:r,y:l}),p.updateSpeed=bo,P.width=va.width,P.height=va.height,ji===Bi||ji===Di?p.dock.side="left":p.dock.side=ya.menuView.placement(),p.dock.align=Q()?"top":"left",p.dock.margin=$()?wa.menuView.y():wa.menuView.x(),p.dock.pOffset=$()?wa.menuView.x():wa.menuView.y(),p.dock.disableResize="overlay"===ya.menuView.placement(),p.dock.resize(b?0:bo),setTimeout(function(){p.scroll&&p.scroll.resize()},1e3*bo)},p.addContent=function(e){p.mask.addChild(e),setTimeout(function(){p.updateScroll()},1e3*bo)},p.removeContent=function(e){p.mask.removeChild(e),setTimeout(function(){p.updateScroll()},1e3*bo)},p.updateScroll=function(){if((oe()||le())&&(m.element.style["-webkit-overflow-scrolling"]="touch"),"native"===Oi.menuScrollType)p.style.pointerEvents="auto",!Q()&&Oi.dropdownSubMenu?m.element.style.overflow="visible":Q()?(m.element.style.overflowY="scroll",m.element.style.overflowX="hidden"):(m.element.style.overflowY="hidden",m.element.style.overflowX="scroll");else if(Qo&&("nativeMacOs"===Oi.menuScrollType||Oi.globalSmoothScroll||ji===Di))p.style.pointerEvents="auto",!Q()&&Oi.dropdownSubMenu?m.element.style.overflow="visible":Q()?(m.element.style.overflowY="scroll",m.element.style.overflowX="hidden"):m.element.style.overflow="auto";else if(Q()||!Oi.dropdownSubMenu){p.scroll&&p.scroll.destroy(),m.overflow="hidden";var e=Oi.menuScrollbarWidth,t="right"===Oi.menuScrollbarAlign?-e:-E(Oi.menuWidth,va.width),i=["bar","wheel","touch"],n=E(ya.menuView.menuTextPaddingHorizontal(),va.width),o={name:"menu",types:i,axis:Q()?"y":"x",align:Q()?"top":ya.menuView.menuTextAlignHorizontal(),alpha:Oi.menuScrollbarBgAlpha,color:Oi.menuScrollbarColor,hover:Oi.menuScrollbarHover,side:Oi.menuScrollbarAlignment,width:e,topPad:0,margin:Q()?2:n,offsetX:Q()?t:0,zIndex:500,rounded:ya.overrides.thumbnailScrollbarRounded,visibility:ya.overrides.thumbnailScrollbarVisibility};("nativeMacOs"===Oi.menuScrollType||Oi.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 Pe(p.menuText,m,o)}else p.style.pointerEvents="auto",m.element.style.overflow="visible"},p.updateStyle(),p}function Mi(e){function i(){_.text="",_.children=[],X=new we(e),X.alpha=0,ji===Di?X.gap=0:ji===Bi?X.gap=E(K(Oi.menuTextGapTablet,ya.menuView.menuTextGap()),100):X.gap=E(ya.menuView.menuTextGap(),100),Oi.menuExpandAll?X.expand="all":X.expand="single",X.toggle=!1,X.wrap=!1;var t=ji===Bi?Oi.menuTextAlignHorizontalTablet||"left":ya.menuView.menuTextAlignHorizontal(),i=t;ji===Di?i="left":/top|bottom/.test(ya.menuView.placement())&&ji!==Bi&&(i="top"),X.align=i,X.updateSpeed=_.updateSpeed,X.axis=Q()?"y":"x",X.perpLength=Q()?_.height:_.width,X.animate=!1,_.addChild(X),s(G,!1,X,!1),_.width=X.width,_.height=X.height,X.addEventListener(kn,r),r(),X.layout(),W&&_.selectMenuItem(),setTimeout(function(){o(),a(),_.events.dispatchEvent(_o),$=0},$)}function o(){I(),X.perpLength=Q()?_.height:_.width,X.layout()}function a(){setTimeout(function(){Ze(X,bo,{alpha:1})},350)}function r(e){e&&(_.width=e.width,_.height=e.height),_.x=Math.round(wa.menuText.x(_.width)),_.events.dispatchEvent(Wo)}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 Ge;return i.src=Pi.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=sa[e.label.toLowerCase()],i=new Ge;return i.src=uo+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(Oi.footerIconShape){case"standard":return e.svgStdPath;case"rectangle":return e.svgRectPath;case"circle":return e.svgCircPath}}function L(e){var t=sa[e.label.toLowerCase()],i=new ba;i.identity="menu",i.element.setAttribute("data-identity","menu");var n=new ba({type:"g"});n.identity="menu",n.element.setAttribute("data-identity","menu");var o=new et;o.identity="menu",o.element.setAttribute("data-identity","menu");var a=ji===Bi||ji===Di?1:Oi.footerIconScale;if(n.scale=a,/circle|rectangle/.test(Oi.footerIconShape)){var r=new tt;r.rx="circle"===Oi.footerIconShape?t.bgCircRadius:t.bgRectRadius,r.width=t.width,r.height=t.height,r.fill=Oi.footerIconColor,n.addChild(r)}return o.d=y(t),o.fill="standard"===Oi.footerIconShape?Oi.footerIconColor:Oi.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 ma({type:i});return n.identity="menu",n.element.setAttribute("data-identity","menu"),n.element.setAttribute("class","menuLabel"),n.element.style["user-select"]="none",ji===Di?(t?(n.fontFamily=Oi.menuSubFontMobile||Oi.menuFontMobile||Oi.menuFont,n.fontSize=Oi.menuSubFontSizeMobile||Oi.menuFontSizeMobile||Oi.menuSubFontSize,n.textTransform=Oi.menuSubTextTransform||"none"):(n.fontFamily=Oi.menuFontMobile||Oi.menuFont,n.fontSize=Oi.menuFontSizeMobile||Oi.menuFontSize,n.textTransform=Oi.menuTextTransform||"none"),n.fontColor=Oi.menuFontColorMobile||Oi.menuFontColor):ji===Bi?(t?(n.fontFamily=Oi.menuSubFontTablet||Oi.menuFontTablet||Oi.menuFont,n.fontSize=Oi.menuSubFontSizeTablet||Oi.menuFontSizeTablet||Oi.menuSubFontSize,n.textTransform=Oi.menuSubTextTransform||"none"):(n.fontFamily=Oi.menuFontTablet||Oi.menuFont,
n.fontSize=Oi.menuFontSizeTablet||Oi.menuFontSize,n.textTransform=Oi.menuTextTransform||"none"),n.fontColor=Oi.menuFontColorTablet||Oi.menuFontColor):(t?(n.fontFamily=Oi.menuSubFont||Oi.menuFont,n.fontSize=ya.menuView.menuSubFontSize(),n.textTransform=Oi.menuSubTextTransform||"none"):(n.fontFamily=Oi.menuFont,n.fontSize=ya.menuView.menuFontSize(),n.textTransform=Oi.menuTextTransform||"none"),n.fontColor=ya.menuView.menuFontColor()),n.fontStyle=Oi.menuFontStyle||"normal",n.letterSpacing=Oi.menuKerning,n.textWrap=ji===Di,n.text="%spacer%"===e.toLowerCase()?" ":e,n.label=n,"%spacer%"!==e.toLowerCase()&&(n.cursor="pointer"),n}function M(e){var t=isNaN(Oi.menuIndentMobile)?20:Oi.menuIndentMobile,i=isNaN(Oi.menuSubIndentMobile)?t+10:t+Oi.menuSubIndentMobile;return e?i:t}function V(e,t){var i,n=Oi.menuTextAlignHorizontalMobile?Oi.menuTextAlignHorizontalMobile:"left",o=M(t),a=""===Oi.menuLinesMobile||void 0===Oi.menuLinesMobile||Oi.menuLinesMobile,r=Oi.menuLineHeightMobile||60;switch(n){case"left":i="flex-start";break;case"center":i="center";break;case"right":i="flex-end"}var l=new ma;return l.identity="menu",l.element.setAttribute("data-identity","menu"),l.addChild(e),l.label=e,l.width=wa.menuView.width(),l.minHeight=r,l.position="relative",l.display="flex",l.style.justifyContent=i,l.style.alignItems="center",a&&(l.borderBottom="1px solid "+T(ya.menuView.menuFontColor(),ya.menuView.menuBgAlpha()+.15)),e.position="relative",wa.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"===Oi.menuBulletType)t=new Ge,t.isSub=e,wa.menuBullet.updateSize(e),t.alpha=0,_.addChild(t),t.element.addEventListener(Ki,function(i){var n={width:i.target.offsetWidth,height:i.target.offsetHeight,filename:this.src};setTimeout(function(){var i=Ae(n);t.width=i.width,t.height=i.height,wa.menuBullet.width=i.width,wa.menuBullet.height=i.height,t.width=wa.menuBullet.width,e?(t.x=Math.round(-(t.width+15)+Oi.menuSubBulletOffsetHorizontal),t.y=0+Oi.menuSubBulletOffsetVertical):(t.x=Math.round(-(t.width+15)+Oi.menuBulletOffsetHorizontal),t.y=0+Oi.menuBulletOffsetVertical)},10)}),t.src=Pi.cdnSslUri+"/menu-bullet__at__2x.png";else if(/^underline/.test(Oi.menuBulletType)){var i=Number(Oi.menuBulletType.split("_")[1]);t=new ma,t.identity="menu",t.element.setAttribute("data-identity","menu"),t.isSub=e,t.backgroundColor=T(ya.menuView.menuFontColor(),0),t.width=0,t.height=i}else t=new ma,t.identity="menu",t.element.setAttribute("data-identity","menu"),t.isSub=e,wa.menuBullet.updateSize(e),t.fontFamily=Oi.menuFont,t.fontColor=T(ya.menuView.menuFontColor(),0),t.fontSize=e?ya.menuView.menuSubFontSize():ya.menuView.menuFontSize(),t.width=wa.menuBullet.width,t.text=Va[Oi.menuBulletType],e?(t.x=Math.round(-(t.width+15)+Oi.menuSubBulletOffsetHorizontal),t.y=0+Oi.menuSubBulletOffsetVertical):(t.x=Math.round(-(t.width+15)+Oi.menuBulletOffsetHorizontal),t.y=0+Oi.menuBulletOffsetVertical);return t}function k(){var e="inherit"===ya.menuView.menuSubTextAlignHorizontal()?ya.menuView.menuTextAlignHorizontal():ya.menuView.menuSubTextAlignHorizontal();return ji===Di?Oi.menuTextAlignHorizontalMobile||"left":ji===Bi?Oi.menuTextAlignHorizontalTablet||"left":e}function O(){return ji===Di?0:ji===Bi?K(Oi.menuSubIndentTablet,Oi.menuSubIndent):Oi.menuSubIndent}function I(){for(var e=0,t=U.length,i=k(),n=K(Oi.menuSubTextPaddingHorizontal,5);eo.tile.perpLength?a:o.tile.perpLength,o.tile.addItem(a,r)}o.tile.layoutItems();var l=ya.menuView.menuSubTextGap();ji===Bi&&(l=K(Oi.menuTextGapTablet,ya.menuView.menuSubTextGap())),l=E(l,100);for(var s=0;s0){for(c=new De({id:"nav"}),c.gap=Oi.navbarGap+2,c.axis="horizontal"===Oi.navbarLayout?"x":"y",c.align="vertical"===Oi.navbarLayout?Oi.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===_i&&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(Oi.navbarFontSize,100),h.parent.removeChildren(h);for(var e in Ai)if(Ai.hasOwnProperty(e)){if("fullscreen"===Ai[e].type&&!P())continue;if("thumbs"===Ai[e].type&&"none"===C)continue;if("fotomoto"===Ai[e].type&&!w)continue;if(!/caption|inquiry|fotomoto/.test(Ai[e].type)&&ji===Di)continue;if(ji===Di&&!m)continue;var r=new ma;h.addChild(r),"caption"===Ai[e].type&&p&&(r.alpha=""===p.caption?.35:1),ji===Di&&v&&"caption"===v&&"caption"===Ai[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"===Ai[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"===Ai[e].iconType||"count"===Ai[e].type?(r.label=o(Ai[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"===Ai[e].iconType?(r.icon=a(Ai[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))+Oi.navbarIconOffsetY):"both"===Ai[e].iconType&&(r.icon=a(Ai[e].type),r.addChild(r.icon),r.label=o(Ai[e].name),r.addChild(r.label),"next"===Ai[e].type?("vertical"===Oi.navbarLayout?(r.label.x=-3,r.icon.left=Math.round(r.label.element.offsetWidth-Oi.navbarIconOffsetX)):(r.label.x=0,r.icon.left=Math.round(r.label.element.offsetWidth-Oi.navbarIconOffsetX+3)),r.label.y=.5*(L-r.label.element.offsetHeight),r.icon.top=Math.round(.5*(L-r.icon.height)+Oi.navbarIconOffsetY),r.width=r.icon.width+r.label.element.offsetWidth-Oi.navbarIconOffsetX):(r.icon.left=0,r.icon.top=Math.round(.5*(L-r.icon.height)+Oi.navbarIconOffsetY),r.label.x=r.icon.width-Oi.navbarIconOffsetX+3,r.label.y=.5*(L-r.label.element.offsetHeight),r.width=r.icon.width+r.label.element.offsetWidth-Oi.navbarIconOffsetX+3),r.height=L);var l=new ma;l.width=r.element.offsetWidth,l.height=r.element.offsetHeight,l.type=Ai[e].type,l.tooltip=Ai[e].tooltip,r.label&&(l.label=r.label),r.icon&&(l.icon=r.icon),r.addChild(l),r.hit=l,"count"===Ai[e].type?(u=r,u.label.text=f+1+" of "+b,u.width=u.label.element.offsetWidth,l.width=u.label.element.offsetWidth):"spacer"===Ai[e].type||(l.addEventListener(rn,i),l.addEventListener(cn,n),l.addEventListener(Sn,t)),r.label&&(r.label.element.style["user-select"]="none")}Object.keys(Ai).length>0&&(d(),h.updatePosition())};return h}function Ei(e){function t(){l=new ma,l.backgroundColor=Oi.siteBackgroundColor,l.width=va.width,l.height=va.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(Do))},i.open("GET",e,!0),i.send(null)}function n(){var e=/https/.test(ya.introFile||Oi.introFile)?ya.introFile||Oi.introFile:Pi.cdnSslUri+"/"+(ya.introFile||Oi.introFile);/jpeg$|jpg$|gif$|png$/.test(ya.introFile||Oi.introFile)?(s=new Ge,s.alpha=0,s.addEventListener(Ki,r),s.addEventListener("error",function(){d.events.dispatchEvent(Do)}),s.src=e,d.addChild(s)):/htm$|html$/.test(ya.introFile||Oi.introFile)&&(s=new ma,s.alpha=0,s.width=va.width,s.height=va.height,s.overflow="auto",i(e,function(e){Ze(s,1,{alpha:1}),h=bo,s.text=e}),d.addChild(s))}function o(e){e!==!1&&void 0!==e&&null!==e||(e=1.5),setTimeout(function(){Ze(s,e,{alpha:0,onComplete:function(){d.events.dispatchEvent(Do)}})},1e3*(Oi.introDuration||c))}function a(){return ji===Di?Oi.introScaleTypeMobile||Oi.introScaleType:ji===Bi?Oi.introScaleTypeTablet||Oi.introScaleType:Oi.introScaleType}function r(e){var t=Ae({width:s.element.offsetWidth,height:s.element.offsetHeight,filename:ya.introFile||Oi.introFile});Ie(s,0,{type:a(),width:t.width,height:t.height,hRange:va.width,vRange:va.height,hAlign:"center",vAlign:"center",disableOrientationCheck:!0,onComplete:function(){Ze(s,1,{alpha:1,onComplete:o}),h=bo}})}var l,s,d=new ma({events:e.events}),c=1.4,h=(e.parentView,0);return d.element.id="IntroView",d.zIndex=ya.introView.zIndex,e.events.addEventListener("introFadeOut",o),d.addEventListener(Co,function(e){t(),n()}),d.updatePosition=function(e){l.width=va.width,l.height=va.height,/htm$|html$/.test(ya.introFile||Oi.introFile)&&(s.width=va.width,s.height=va.height),s&&Ze(s,h,{x:.5*(va.width-s.width),y:.5*(va.height-s.height)})},d}function zi(t){function i(e){Ze(this,.2,{fontColor:Ea.fontColorLightest,borderBottom:"1px solid "+Ea.bgColorDark,boxShadow:"0 1px 0 0 "+Ea.bgColorDark,ease:"ease-out"}),Ze(this.label,.2,{fontSize:12,y:this.y-15,ease:"ease-out"})}function n(e){Ze(this,.2,{fontColor:Ea.fontColorLightest,borderBottom:"1px solid "+Ea.bgColorDarkest,boxShadow:"0 1px 0 0 #333",ease:"ease-out"}),this.value||Ze(this.label,.2,{fontSize:15,y:this.y+5,ease:"ease-out"})}function o(e){Ze(this,.2,{fontColor:Ea.fontColorSelected,ease:"ease-out"})}function a(e){Ze(this,.2,{fontColor:Ea.fontColorLight,ease:"ease-out"})}function r(e){Ze(this,.2,{fontColor:Ea.fontColorSelected,ease:"ease-out"})}function l(e){Ze(this,.2,{fontColor:Ea.fontColorLight,ease:"ease-out"})}function s(){}function d(){}function c(){Pi.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 ma;v.width=m,v.height=350,v.borderRadius=4,v.addEventListener(Sn,function(e){e.stopPropagation()});var g=new ma("h1");g.x=-2,g.y=2,g.width=m,g.height=50,g.fontColor=Ea.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 Je;f.x=0,f.y=75,f.width=m,f.height=40,f.fontColor=Ea.fontColor,f.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",f.fontSize=16,f.fontWeight=700,f.value="",f.backgroundColor="transparent",f.borderBottom="1px solid "+Ea.bgColorDarkest,f.boxShadow="0 1px 0 0 #333",f.element.tabIndex=1,v.addChild(f),f.label=new ma,f.label.x=0,f.label.y=f.value?f.y-15:f.y+5,f.label.fontColor=Ea.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 Je;b.x=0,b.y=145,b.width=m,b.height=40,b.fontColor=Ea.fontColor,b.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",b.fontSize=16,b.fontWeight=700,b.value="",b.backgroundColor="transparent",b.borderBottom="1px solid "+Ea.bgColorDarkest,b.boxShadow="0 1px 0 0 #333",b.element.tabIndex=2,b.element.setAttribute("type","password"),v.addChild(b),b.label=new ma,b.label.x=0,b.label.y=b.value?b.y-15:b.y+5,b.label.fontColor=Ea.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 Ue;C.x=0,C.y=220,C.width=m,C.height=45,C.fontColor=Ea.fontColor,C.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",C.fontWeight=400,C.fontSize=13,C.text=Pi.adminLockout?"ADMIN LOCKED FOR MAINTENANCE":"LOGIN",C.textAlign="center",C.element.tabIndex=3,C.borderRadius=3,C.backgroundColor=Pi.adminLockout?"#ff295e":"#2FA0D8",C.fontColor=Ea.bgColorLighter,C.boxShadow="0 2px 5px 0 rgba(0,0,0,0.16)",v.addChild(C),C.addEventListener(rn,function(){Ze(this,.2,{backgroundColor:Pi.adminLockout?"#ff295e":"#4bb7ed",boxShadow:"0 10px 20px 0 rgba(0,0,0,0.6)",ease:"ease-out"})}),C.addEventListener($i,function(){Ze(this,.2,{backgroundColor:Pi.adminLockout?"#ff295e":"#4bb7ed",boxShadow:"0 10px 20px 0 rgba(0,0,0,0.6)",ease:"ease-out"})}),C.addEventListener(cn,function(){Ze(this,.2,{backgroundColor:Pi.adminLockout?"#ff295e":"#2FA0D8",boxShadow:"0 2px 5px 0 rgba(0,0,0,0.16)",ease:"ease-out"})}),C.addEventListener(en,function(){Ze(this,.2,{backgroundColor:Pi.adminLockout?"#ff295e":"#2FA0D8",boxShadow:"0 2px 5px 0 rgba(0,0,0,0.16)",ease:"ease-out"})}),f.addEventListener($i,i),f.addEventListener(en,n),b.addEventListener($i,i),b.addEventListener(en,n);var w=new ma({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=Ea.fontSize,w.fontColor=Ea.fontColorLight,w.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",w.backgroundColor="transparent",w.element.tabIndex=4,v.addChild(w);var y=new ma({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=Ea.fontSize,y.fontColor=Ea.fontColorLight,y.fontFamily="RobotoDraft, Helvetica Neue, sans-serif",y.backgroundColor="transparent",y.element.tabIndex=5,v.addChild(y),w.addEventListener(rn,r),w.addEventListener(cn,l),y.addEventListener(rn,r),y.addEventListener(cn,l),w.addEventListener($i,o),w.addEventListener(en,a),y.addEventListener($i,o),y.addEventListener(en,a),w.addEventListener(Sn,function(e){h(),p.close()}),C.addEventListener(Sn,function(e){c()}),y.addEventListener(Sn,function(t){new e({url:"/dx/service/login/forget",params:{},callback:function(e){Ee("Please check your email for password reset instructions.")}})}),p="MSIE"===ia?Ee("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 ca(v,{userOverride:!1,blurLayers:[t.parentView],backgroundColor:"#000000",alpha:.8,onOpen:s,onClose:d}),p.open(),p.overlayResize(),ji!==Di&&ji!==Bi&&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 ki=!1,Oi=(window.DX_MODEL.account,window.DX_MODEL.layout),Ii=window.DX_MODEL.media,Ai=window.DX_MODEL.navbar,Fi=window.DX_MODEL.sections,Pi=window.DX_MODEL.settings,Hi=window.DX_MODEL.files;!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.anime=t()}(window,function(){"use strict";function e(e,t,i){return Math.min(Math.max(e,t),i)}function t(e,t){return e.indexOf(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=Q[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;a1&&(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 V(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 T(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+=T(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 T({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)+T(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=V(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 A(e){return s(e?d(K.arr(e)?e.map(c):c(e)):[],function(e,t,i){return i.indexOf(e)===t})}function F(e){var t=A(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&&(T.began=!0,d("begin")),!T.loopBeg