o.width?(r.x=o.width-(E+r.width+u),o.x=i.pageX-o.width+E+r.point+u):(r.x=t-(E-r.width),o.x=i.pageX-t),(i=e).pageYo||Mth.abs(stage.dragElements[t].deltaY)>o);r.dispatchEvent(DRAG_MOVE,e)}function d(e){stage.removeEventListener(MOUSE_MOVE,s),stage.removeEventListener(TOUCH_MOVE,s),stage.removeEventListener(MOUSE_UP,d),stage.removeEventListener(TOUCH_END,d),stage.removeEventListener(TOUCH_CANCEL,c),stage.removeEventListener(KEY_DOWN,h);for(var t=stage.dragElements.length;t--;)stage.dragElements[t].dragging=!1,stage.dragElements[t].alpha=1;r.dispatchEvent(DRAG_STOP,e)}function h(e){keyCode[e.keyCode]===ESCAPE&&c(e)}function c(e){stage.removeEventListener(MOUSE_MOVE,s),stage.removeEventListener(TOUCH_MOVE,s),stage.removeEventListener(MOUSE_UP,d),stage.removeEventListener(TOUCH_END,d),stage.removeEventListener(TOUCH_CANCEL,c),stage.removeEventListener(KEY_DOWN,h);for(var t=stage.dragElements.length;t--;)stage.dragElements[t].dragging=!1,stage.dragElements[t].alpha=1;r.dispatchEvent(DRAG_CANCEL,e)}i.addEventListener(MOUSE_DOWN,l),i.addEventListener(TOUCH_START,l)}function LazyLoader(r,e,l){l=l||{};var s=0,d={fade:function(e,t){return s-1<=t&&t<=s+1},default:function(e){return e.isInViewport}};this.update=function(a){setTimeout(function(){a&&(s=a);for(var e=0,t=l.targetChildren||r.children,i=t.length;ee.width||r>e.height)&&(a=e.width,r=e.height),{set hRange(e){n=e},set vRange(e){o=e},set type(e){t=e},get type(){return t},set width(e){a=e},set height(e){r=e},get width(){return a},get height(){return r}}}var Scrolls={arr:[],focusTarget:null,register:function(e){this.arr.push(e)},unRegister:function(e){for(var t=this.arr.length;t--;)e===this.arr[t]&&this.arr.splice(t,1)},resize:function(){if(0=l[i.dim]?(l.transition=0,l.alpha=0,l.display="none",s.transition=0,s.alpha=0,s.display="none",s[i.dim]=l[i.dim],i.scrollTo(0,0)):(Tween(l,.35,{alpha:0,onComplete:function(){this.dislplay="none"}}),Tween(s,.35,{alpha:0,onComplete:function(){setTimeout(function(){s.dislplay="none"},200),i.scrollTo(0,0)}}))},this.destroy=function(){i.parent.removeChild(s),i.parent.removeChild(l),s.removeEventListener(MOUSE_OVER,e),s.removeEventListener(MOUSE_OUT,d),s.removeEventListener(MOUSE_DOWN,h),s.removeEventListener(TOUCH_START,h)},this.setAlpha=function(e){s.alpha=l.alpha=e},this.getBack=function(){return l},this.scrollTo=function(e){},this.hide=function(){r=!1},this.show=function(){r=!0},this.disable=function(){s.removeEventListener(MOUSE_OVER,e),s.removeEventListener(MOUSE_OUT,d),s.removeEventListener(MOUSE_DOWN,h),s.removeEventListener(TOUCH_START,h)},this.enable=function(){s.addEventListener(MOUSE_OVER,e),s.addEventListener(MOUSE_OUT,d),s.addEventListener(MOUSE_DOWN,h),s.addEventListener(TOUCH_START,h)}}function ScrollTouch(t){var i=0,n=0,o=0;function a(e){!1===t.ing&&(t.ing=!0,isAppleMobile()&&!STATE.podUseDesktop&&window.scrollTo(0,1),e.preventDefault()),o=r()-i,t.percent=-(o/t.scrollDist)+n,t.percent=t.percent<0?0:t.percent,t.percent=1Math.abs(e.deltaY)&&"x"===i.axis||Math.abs(e.deltaY)>Math.abs(e.deltaX)&&"y"===i.axis)&&(0<=i.percent&&i.percent<1&&0.5*n.mask.element[t]?o=.98:0===o&&e<.5*n.mask.element[t]&&(o=.15),n.percent=.5{let d=0;return e.map(e=>{let t=e.width*=l,i=e.height*=l;e.isDoubleSize&&(o=(n=i+r)/i,t*=o,i=n);var n,o={...e,height:i,width:t,x:d,y:s};return d+=a+t,o})},calculateVoids=(e,t)=>splitWhen(e=>e.isDoubleSize,e).map(e=>({x:e[0].x,y:e[0].y+e[0].height+t,width:last(e).x+last(e).width-e[0].x,height:e[0].height,items:[]})),getItemsForRow=(n,o,a)=>(e,t,i)=>{return e.y=a,0e=>{var t=n[0].height/e.height;const i={width:e.width*t,height:e.height*t};return!e.isDoubleSize&&!!(t=n.find(e=>{return e.items.reduce((e,t)=>e+t.width+o,0)+i.width<=e.width+1}))&&(e.width=i.width,e.height=i.height,t.items.push(e),!0)},layoutVoid=l=>i=>{var e=tolerance(1,l),t=0===i.x,e=e(i.x+i.width);const n=i.items;var o=n.length;if(1===o){var a=n[0];a.x=e?i.x+i.width-a.width:t?i.x:i.x+(i.width-a.width)/2,a.y=i.y}else if(1e).reduce(sum,0);const r=(i.width-e)/(o-1);n.forEach((e,t)=>{t=n[t-1];e.x=t?t.x+t.width+r:i.x,e.y=i.y})}},buildRows=(e,t,i=[])=>{let{items:n,fill:o,hGap:a,vGap:r,targetWidth:l,isLastRow:s}=e,d=n;var[e,h]=partition(getItemsForRow(l,a,t),d),h=(d=h,Array(e.length-1).fill(0).reduce(e=>e+a,0)),[c,u]=partition(e=>e.isDoubleSize,e),T=l-c.map(e=>{var t=(e.height-r)/e.height,t=e.width*t;return e.width-t}).reduce(sum,0),E=last(e),e={items:e,y:t,width:E.x+E.width-h,hasMixed:!(!c.length||!u.length),voids:[],voidItems:[]},c=o?(T-h)/e.width:1,c=s&&2e)),e.voids.length&&([u,T]=partition(fillVoids(e.voids,a),d),e.voids.forEach(layoutVoid(l)),d=T,e.voidItems=u),d.length?[...i,e,...buildRows({items:d,fill:o,hGap:a,vGap:r,targetWidth:l},t+e.height+r,i)]:[...i,e]};class HMasonry{constructor(e){this.hGap=e.hGap,this.vGap=e.vGap,this.fill=!1!==e.fill,this.targetWidth=0}setItems(e){this.items=e.map((e,t)=>({...e,index:t}))}layout(){const e=JSON.parse(JSON.stringify(this.items));var t,i;this.bounds={width:0,height:0},this.items.length&&(this.rows=buildRows(this,0),i=[...(t=last(this.rows)).items,...t.voidItems].map(t=>e.find(e=>e.index===t.index)),i=buildRows({...this,items:i,isLastRow:!0},t.y)[0],this.rows=[...this.rows.slice(0,-1),i],this.layoutItems=this.rows.reduce((e,t)=>[...e,...t.items,...t.voidItems],[]),this.bounds={width:Math.max(...this.rows.map(({width:e})=>e)),height:i.y+i.height})}setTargetWidth(e){this.targetWidth=e}setHGap(e){this.hGap=e}setVGap(e){this.vGap=e}getVoids(){return this.rows.map(({voids:e})=>e).reduce((e,t)=>e.concat(t),[])}getItems(){return[...this.layoutItems||[]]}getBounds(){return this.bounds}}function Tile(L){L=L||{};var S,A,x,V,I=this,O=[],Y=[],b=[],y=[];function w(e,t,i){return I.wrap?t:(t=t,i=i,"x"===(e=e)&&"center"===I.align||"y"===e&&"middle"===I.align?.5*(I.perpLength-i):"x"===e&&"right"===I.align||"y"===e&&"bottom"===I.align?I.perpLength-i:t)}function M(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 C(e){for(var t=e.length,i=0;t--;)e[t]&&e[t].size>i&&(i=e[t].size);return i}function P(e){return!!e.ids.filter(function(e){return O[e].isDoubleSize}).length}function R(e){var t=O[e.ids[0]],i=t.isDoubleSize?Math.round(.5*(t.height-I.vGap)):t.height,t=1===e.ids.length&&t.isDoubleSize?I.vGap:0;return P(e)?2*i+t:i}function _(e){if(y.length)for(var t=0,i=y.length;tI.perpLength,!I.wrap||I.isWrap?(A+=1,S=0):I.wrap&&!I.horizontalMasonry&&(S+=1)):!I.wrap||Y[S]&&O[T]&&Y[S].size+O[T].height>I.perpLength?(S+=1,A=0):I.wrap&&(A+=1),A=A<0?0:A,Y[S=S<0?0:S]||I.numberOfColumns||(Y[S]={size:0,ids:[]}),b[A]||(b[A]={size:0,gapRowSize:0,ids:[],gapRowIds:[],doubleSizeIds:[]}),i="y"!==I.axis||I.maintainOrder?S:M(S,Y),n="y"===I.axis?A:M(A,b),m=!1,o=O[e].isDoubleSize?Math.round(.5*(O[e].width-I.hGap)):O[e].width,T=i*((o=I.gridWidths||o)+I.hGap),a=O[e].isDoubleSize?Math.round(.5*(O[e].height-I.vGap)):O[e].height,(I.horizontalMasonry||"x"===I.axis||"y"===I.axis&&I.maintainOrder)&&(T=b[n].size),r=Y[i].size,b[n].size+=O[e].width+I.hGap,O[e].isDoubleSize&&(b[n].doubleSizeIds.push(e),b[n].gapRowIds.push(e)),b[n].ids.push(e),b[n],I.horizontalMasonry&&I.isWrap?(Y[i].ids.push(e),h=n-1,l=Math.max(0,I.perpLength-b[h].gapRowSize),d=R(b[h]),(c=P(b[h]))&&(s=Math.round(.5*d),I.maintainOrder||y.push({rowId:h,gapType:"right",x:b[h].gapRowSize,y:Y[0].size+s+I.vGap,size:l})),I.maintainOrder||y.push({rowId:h,gapType:"top",x:b[h].size,y:r,size:Math.max(0,I.perpLength-b[h].size)}),O[e].isDoubleSize&&(b[n].gapRowSize+=O[e].width+I.hGap),Y[i].size+=c?d+I.vGap+I.vGap:d+I.vGap,r=Y[i].size,h=O.slice(e).map(function(e){return e.width+I.hGap}).reduce(D,0),I.isLastRow=O[e].width+h-I.hGapY[i].size&&(E=Y[i+1].size-Y[i].size,y.push({x:w("x",T,o),y:Y[i].size,size:E}),r=Y[i+1].size),Y[i].size+=O[e].height+I.vGap+E,Y[i+1]||(Y[i+1]={size:0,ids:[]}),Y[i+1].size+=O[e].height+I.vGap),Y[i].ids.push(e)):(Y[i].ids.push(e),Y[i].size+=O[e].height+I.vGap)),!1===m)&&(O[e].x=w("x",T,o),O[e].y=w("y",r,a)),I.isWrap=!1}if(I.horizontalMasonry){if(0===b[n].ids.length&&b.pop(),I.masonryFill&&1t.x?1:0}).map(function(e){return e.id});for(var C=0,_=r.gapRowIds.length;C<_;C++){var D,U,A=t[r.gapRowIds[C]],O=t[r.gapRowIds[C-1]],y=C===_-1,w=(b=p)*(A.width/A.height),M=O?O.x+O.width+I.hGap:0;A.isDoubleSize||(N(/gap|equal/,u)&&y&&(D=Math.max(0,o-(M+w))),y&&(U=I.perpLength-(M+w),N(/gap/,u)&&(T=U),M=I.perpLength-w),A.x=Math.round(M),A.y=Math.round(f),A.height=Math.round(b),A.width=Math.round(w),r.scaledGapRowSize=A.x+A.width,r.gapRemainder=D)}r.fullRowHeight=Math.round(m);r.maxRow=u;return 2o.width?(r.x=o.width-(E+r.width+u),o.x=i.pageX-o.width+E+r.point+u):(r.x=t-(E-r.width),o.x=i.pageX-t),(i=e).pageY=Mth.abs(n)?0=Mth.abs(t)?0",(t=r()).x=e.width-2,t.y=2,e.addChild(t),stage.addChild(e),Popup.likeDiv=e,Popup.likeClose=t),Popup.likeClose.addEventListener(CLICK,s),document.getElementById("likesrc")||((e=document.createElement("script")).setAttribute("id","likesrc"),e.setAttribute("type","text/javascript"),e.setAttribute("src","https://connect.facebook.net/en_US/all.js#xfbml=1"),document.getElementsByTagName("head")[0].appendChild(e))):(Popup.plusDiv?(Popup.plusDiv.alpha=0,Popup.plusDiv.display="block",l(Popup.plusDiv,0),Popup.plusDiv.alpha=1):((t=a("plus1",100,40)).overflow="hidden",t.text="",(i=r()).x=t.width-2,i.y=2,t.addChild(i),stage.addChild(t),Popup.plusDiv=t,Popup.plusClose=i),Popup.plusClose.addEventListener(CLICK,s),document.getElementById("plus1src")||((i=document.createElement("script")).setAttribute("id","plus1src"),i.setAttribute("type","text/javascript"),i.setAttribute("src","https://apis.google.com/js/plusone.js"),document.getElementsByTagName("head")[0].appendChild(i)))},1e3*o),t.resize=function(){Tween(i,o,{width:stage.width,height:stage.height}),l(Popup.plusDiv,o),l(Popup.likeDiv,o)},t}var Anim=function(){var s={linear:function(e,t,i,n){return i*e/n+t},inQuad:function(e,t,i,n){return i*(e/=n)*e+t},outQuad:function(e,t,i,n){return-i*(e/=n)*(e-2)+t},inOutQuad:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},inCubic:function(e,t,i,n){return i*(e/=n)*e*e+t},outCubic:function(e,t,i,n){return e/=n,i*(--e*e*e+1)+t},inOutCubic:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},inQuart:function(e,t,i,n){return i*(e/=n)*e*e*e+t},outQuart:function(e,t,i,n){return e/=n,-i*(--e*e*e*e-1)+t},inOutQuart:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},inQuint:function(e,t,i,n){return i*(e/=n)*e*e*e*e+t},outQuint:function(e,t,i,n){return e/=n,i*(--e*e*e*e*e+1)+t},inOutQuint:function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},inSine:function(e,t,i,n){return-i*Math.cos(e/n*(Math.PI/2))+i+t},outSine:function(e,t,i,n){return i*Math.sin(e/n*(Math.PI/2))+t},inOutSine:function(e,t,i,n){return-i/2*(Math.cos(Math.PI*e/n)-1)+t},inExpo:function(e,t,i,n){return i*Math.pow(2,10*(e/n-1))+t},outExpo:function(e,t,i,n){return i*(1-Math.pow(2,-10*e/n))+t},inOutExpo:function(e,t,i,n){return(e/=n/2)<1?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(2-Math.pow(2,-10*e))+t)},inCirc:function(e,t,i,n){return e/=n,-i*(Math.sqrt(1-e*e)-1)+t},outCirc:function(e,t,i,n){return e/=n,e--,i*Math.sqrt(1-e*e)+t},inOutCirc:function(e,t,i,n){return(e/=n/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:(e-=2,i/2*(Math.sqrt(1-e*e)+1)+t)}};function p(e,t,i,n){for(var o=0,a=[],r=0,l=Math.round((n-o)/(1e3/60));r=t&&!this.children[i]===e?t=this.children[i].zIndex+1:this.children[i].zIndex--;e.zIndex=t},e.prototype.event=function(e){this.proxy._private.selectable||TOUCH_DEVICE||"input"===this.proxy.vars.type||"textarea"===this.proxy.vars.type||this.proxy.vars.type;var t={type:e.type,target:this.proxy,currentTarget:this.proxy,keyCode:e.which,detail:e.detail,pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX||e.layerX,offsetY:e.offsetY||e.layerY,mouseX:e.clientX-this.proxy.stageX,mouseY:e.clientY-this.proxy.stageY,preventDefault:function(){e.preventDefault()},stopPropagation:function(){e.stopPropagation()},dataTransfer:e.dataTransfer};e.touches&&(t.touches=e.touches),this.proxy.dispatchEvent(e.type,t)},e.prototype.hitTestPoint=function(e,t){return this._private.width||(this._private.width=this.element.offsetWidth||this.element.scrollWidth||0),"none"!==this.style.display&&e>=this.stageX&&e<=this.stageX+this._private.width&&t>=this.stageY&&t<=this.stageY+this._private.height},e.prototype.hitTestAbs=function(e,t){return"none"!==this.style.display&&e>=this.scrollAbsX&&e<=this.scrollAbsX+this._private.width&&t>=this.scrollAbsY&&t<=this.scrollAbsY+this._private.height},e.prototype.globalToLocal=function(e){return{x:e.x-this.stageX,y:e.y-this.stageY}},e.prototype.localToGlobal=function(e){return{x:e.x+this.stageX,y:e.y+this.stageY}},e.prototype.focus=function(){"input"!==(stage.activeFocus=this).vars.type&&"textarea"!==this.vars.type&&"button"!==this.vars.type||this.element.focus()},e.prototype.blur=function(){"input"!==this.vars.type&&"textarea"!==this.vars.type&&"button"!==this.vars.type||this.element.blur()},e.prototype.getClass=function(){return this.element.className},e.prototype.setClass=function(e){return this.element.setAttribute("class",e)},t.forEach(function(t){/width|height|fontSize|src|transition/.test(t)||Object.defineProperty(e.prototype,t,{get:function(){return this._private[t]},set:function(e){this._private[t]=e,this.element.style[t]=-1=t&&!this.children[i]===e?t=this.children[i].zIndex+1:this.children[i].zIndex--;e.zIndex=t},domContentLoaded:function(){e||(setTimeout(function(){r.element=document.body,n||(document.body.style.overflow="hidden"),document.body.style.margin=0,document.body.style.padding=0,r.dispatchEvent(LOAD,r)},10),e=!0)},documentReadyListener:function(){var e=[LAYOUT_MODEL.captionFont,LAYOUT_MODEL.contactFont,LAYOUT_MODEL.contactTitleFont,LAYOUT_MODEL.copyrightFont,LAYOUT_MODEL.logoFont,LAYOUT_MODEL.menuFont,LAYOUT_MODEL.menuSubFont||"",LAYOUT_MODEL.navbarFont,LAYOUT_MODEL.pageTextFont,LAYOUT_MODEL.pageTitleFont,LAYOUT_MODEL.thumbnailTitleFont,LAYOUT_MODEL.thumbnailTitleBlockFont||""];LAYOUT_MODEL.menuIconFont&&e.push(LAYOUT_MODEL.menuIconFont),!isAdmin&&LAYOUT_MODEL.menuFontMobile&&e.push(LAYOUT_MODEL.menuFontMobile),!isAdmin&&LAYOUT_MODEL.menuFontTablet&&e.push(LAYOUT_MODEL.menuFontTablet),!isAdmin&&LAYOUT_MODEL.mobileLogoFont&&e.push(LAYOUT_MODEL.mobileLogoFont),!isAdmin&&LAYOUT_MODEL.tabletLogoFont&&e.push(LAYOUT_MODEL.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 t,e=e.concat((t=SECTIONS_MODEL,Object.keys(t).map(function(e){return t[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},[]))).filter(function(e,t,i){return i.indexOf(e)===t}).filter(function(e,t,i){return"system"!==getFontData(e).service}).reduce(function(e,t){var i,n,o;return t&&((t=getFontData(t))&&t.family&&t.weight&&t.charset&&t.service?(e[t.service]||(e[t.service]={families:[]}),i=t.family,n=t.weight.join(","),o=t.charset,e[t.service].families.push(i+":"+n+":"+o)):console.warn("Font:",t," did not load")),e},{});e.google&&(WebFontConfig.google=e.google),e.typekit&&SETTINGS_MODEL.typekitId&&(WebFontConfig.typekit={id:SETTINGS_MODEL.typekitId}),e.custom&&SETTINGS_MODEL.customFonts.length&&(WebFontConfig.custom=e.custom,WebFontConfig.custom.urls=["https://"+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};e.touches&&(t.touches=e.touches),e.type!==WHEEL&&e.type!==MOUSE_WHEEL||(t.type=MOUSE_WHEEL),e.type!==RESIZE&&e.type!==GESTURE_CHANGE&&e.type!==GESTURE_END&&e.type!==ORIENTATION_CHANGE||(o=(o=window.visualViewport?window.visualViewport.scale:isPod()||isPad()?document.documentElement.clientWidth/window.innerWidth:document.documentElement.clientHeight/window.innerHeight)<1?1:o),Scrolls&&e.clientX&&e.clientY&&Scrolls.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){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;return o<=1?e*o:e},get height(){var e=USER_AGENT!==MOBILE&&isPod()&&window.innerHeight===document.documentElement.clientHeight&&window.innerWidth>window.innerHeight?window.innerHeight+81:window.innerHeight;return o<=1?e*o:e},get stageX(){return 0},get stageY(){return 0},get scrollX(){return a.scrollX||window.scrollX},set scrollX(e){a.scrollX=e},get scrollY(){return a.scrollY||window.scrollY},set scrollY(e){a.scrollY=e},get selectable(){return n},set selectable(e){n=e},get zoom(){return o},set zoom(e){o=e},get backgroundColor(){return a.backgroundColor||document.body.style.backgroundColor},set backgroundColor(e){a.backgroundColor=e,document.body.style.backgroundColor=e},get transition(){return a.transition},set transition(e){e=0===(a.transition=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 a.disableKeyNavigation},set disableKeyNavigation(e){a.disableKeyNavigation=e},focus:function(){r.activeFocus=r},blur:function(){}},l=(r.proxy=r,document.createElement("div")),s=(l.className="scrollbar-measure",document.body.appendChild(l),l.offsetWidth-l.clientWidth);return document.body.removeChild(l),MAC_SCROLLBARS=0==s,USER_AGENT!==MOBILE&&USER_AGENT!==TABLET||(t=createDebounce(200)),window.addEventListener(ORIENTATION_CHANGE,function(e){setTimeout(function(){t&&t(function(){r.zoom<=1&&!r.isInputFocus&&(document.body.style["-webkit-overflow-scrolling"]="touch")}),r.event(e)},50)},!1),window.addEventListener(SCROLL,function(e){r.scrollY=window.scrollY,r.event(e)},!1),window.addEventListener(TOUCH_START,r.event,!1),window.addEventListener(TOUCH_MOVE,r.event,!1),window.addEventListener(TOUCH_END,r.event,!1),window.addEventListener(TOUCH_CANCEL,r.event,!1),window.addEventListener(MOUSE_OVER,r.event,!1),window.addEventListener(MOUSE_DOWN,r.event,!1),window.addEventListener(MOUSE_MOVE,r.event,!1),window.addEventListener(MOUSE_UP,r.event,!1),window.addEventListener(MOUSE_OUT,r.event,!1),window.addEventListener(CLICK,r.event,!1),window.addEventListener(RESIZE,r.event,!1),window.addEventListener(GESTURE_START,r.event,!1),window.addEventListener(GESTURE_CHANGE,r.event,!1),window.addEventListener(GESTURE_END,r.event,!1),window.addEventListener(KEY_UP,r.event,!1),window.addEventListener(KEY_DOWN,r.event,!1),window.addEventListener(RESIZE,function(e){clearTimeout(i),i=setTimeout(function(){isPod()?(window.innerHeight,window.innerWidth):r.dispatchEvent(RESIZE_END,e)},50)},!1),window.addEventListener(ORIENTATION_CHANGE,function(e){r.dispatchEvent(ORIENTATION_CHANGE,e)},!1),window.addEventListener(WHEEL,r.event,{passive:!1}),window.addEventListener(MOUSE_WHEEL,r.event,{passive:!1}),r.documentReadyListener(),r}var stage=Stage.call(Stage);function addChild(e){stage.addChild(e)}var svgPaths={navArrowRight:{default:"M1.4,11.984l4.244-4.242L1.4,3.5",thin:""},navArrowLeft:{default:"M6.644,3.5L2.4,7.742l4.244,4.242",thin:""},navArrowUp:{default:"m 1.4562498,8.21905 5.1000001,-5.4 5.7000001,5.4",thin:""},navArrowDown:{default:"m 1.4562498,1.44405 5.1000001,5.4 5.7000001,-5.4",thin:""},navFullscreen:{default:"M0,0h15v9H0V0z M2,2v5h11V2H2z",thin:"M1.5,1.5 L12.5,1.5 L12.5,7.5 L1.5,7.5 L1.5,1.5 z"},navShare:{default:"M9.056,5.4 L9.056,3 L14.5,7.2 L9.056,11.4 L9.056,8.94 C5.167,8.94 2.444,9.9 0.5,12 C1.278,9 3.611,6 9.056,5.4 z",thin:"M9.056,5.4 L9.056,3 L14.5,7.2 L9.056,11.4 L9.056,8.94 C5.167,8.94 2.444,9.9 0.5,12 C1.278,9 3.611,6 9.056,5.4 z"},navInfo:{default:"M0.576,10.401c0.384,0.922,0.924,1.724,1.621,2.404c2.891,2.908,7.741,2.946,10.624,0c2.904-2.923,2.905-7.705,0-10.629 c-2.88-2.92-7.736-2.881-10.624,0c-0.738,0.715-1.274,1.525-1.607,2.43C-0.192,6.534-0.197,8.465,0.576,10.401 C0.959,11.324,0.192,9.479,0.576,10.401z M1.9,5.131c0.311-0.753,0.745-1.403,1.303-1.95c2.34-2.383,6.292-2.274,8.654,0 c2.316,2.448,2.284,6.187,0,8.643c-2.387,2.29-6.288,2.39-8.654,0c-0.543-0.542-0.985-1.207-1.329-1.994 c-0.293-0.738-0.44-1.528-0.44-2.371C1.435,6.661,1.59,5.885,1.9,5.131C2.211,4.378,1.59,5.885,1.9,5.131z M4.792,7.981 c0.562,0,1.844-0.876,2.245-0.566C7.531,7.798,6.011,9.726,5.89,9.94c-0.605,1.064-0.754,2.451,0.931,2.24 c1.02-0.128,2.904-0.903,3.41-1.88c0.232-0.451-2.039,0.442-2.189,0.278C7.69,10.194,8.925,8.421,9.058,8.096 C10.812,3.81,4.583,6.318,4.792,7.981C4.796,7.981,4.792,7.981,4.792,7.981z M8.151,4.869c0.465,0.459,1.194,0.432,1.651-0.025 c0.701-0.62,0.341-1.849-0.572-2.041C8.067,2.56,7.326,4.053,8.151,4.869C8.38,5.094,7.923,4.644,8.151,4.869z",thin:"M7.5,12.5 C4.739,12.5 2.5,10.261 2.5,7.5 C2.5,4.739 4.739,2.5 7.5,2.5 C10.261,2.5 12.5,4.739 12.5,7.5 C12.5,10.261 10.261,12.5 7.5,12.5 z M7.5,5.694 L7.5,4.306 M7.5,10.37 L7.5,6.435"},navCart:{default:"M 1.248,8.985 H 3.254 V 6.989 H 1.248 V 8.985 z M 0,0 1.05,5.992 h 9.235 L 11.271,0.966 13.248,0.968 13.256,0 H 0 z m 3.25,3.981 h -1 v -1 h 1 v 1 z M 3.25,2 h -1 V 1 h 1 v 1 z m 2,2 h -1 V 3 h 1 v 1 z m 0,-2 h -1 V 1 h 1 v 1 z m 2,1.979 h -1 v -1 h 1 v 1 z M 7.25,2 h -1 V 1 h 1 v 1 z m 2,1.979 h -1 v -1 h 1 v 1 z M 9.25,2 h -1 V 1 h 1 V 2 z M 7.252,9.007 H 9.25 V 7.002 H 7.252 v 2.005 z",thin:"M3.673,7.806 C3.866,7.806 4.023,7.963 4.023,8.157 C4.023,8.35 3.866,8.507 3.673,8.507 C3.479,8.507 3.322,8.35 3.322,8.157 C3.322,7.963 3.479,7.806 3.673,7.806 z M10.034,1.526 L8.552,6.278 L2.701,6.278 L1.5,1.5 L11.542,1.5 M7.333,7.806 C7.139,7.806 6.982,7.963 6.982,8.157 C6.982,8.35 7.139,8.507 7.333,8.507 C7.527,8.507 7.684,8.35 7.684,8.157 C7.684,7.963 7.527,7.806 7.333,7.806 z"},navThumbs:{default:"M0,3h7v4H0V3z M0,8h7v4H0V8z M8,3h7v4H8V3z M8,8h7v4H8V8z",thin:"M1.5,3.5 L6.5,3.5 L6.5,6.5 L1.5,6.5 L1.5,3.5 z M8.5,3.5 L8.5,6.5 L13.5,6.5 L13.5,3.5 L8.5,3.5 z M1.5,8.5 L1.5,11.5 L6.5,11.5 L6.5,8.5 L1.5,8.5 z M8.5,8.5 L8.5,11.5 L13.5,11.5 L13.5,8.5 L8.5,8.5 z"},play:"M2,1l8,5.031L2,11V1z",pause:"M2,2h3v8H2V2z M7,2h3v8H7V2z",volume:"M2,7.5h1V10H2V7.5z M4,7h1v3H4V7z M6,6h1v4H6V6z M8,4h1v6H8V4z M10,2h1v8h-1V2z M0,8h1v2H0V8z",mute:"M2,8h1v2H2V8z M4,8h1v2H4V8z M6,8h1v2H6V8z M8,8h1v2H8V8z M10,8h1v2h-1V8z M0,8h1v2H0V8z",arrowLeft:"M 8.812269,1.1126749 2.1862736,7.2790289 8.876226,13.512325",arrowRight:"M 1.0939806,1.1126749 7.719976,7.2790289 1.0300236,13.512325",arrowUp:"M 1.1126747,8.812269 7.2790287,2.1862738 13.512325,8.876226",arrowDown:"M 1.1126747,1.0939808 7.2790287,7.719976 13.512325,1.0300238",arrowUpSmall:"M10.535,8.768L7,5.232L3.465,8.768",arrowDownSmall:"M3.465,5.232L7,8.768l3.535-3.535",arrowRightSmall:"M4.5,11.001L9.5,6l-5-5",arrowLeftSmall:"M9.5,2l-5,5.001l5,5",edit:"M4.244,7.759L9.203,2.8l2.151,2.151L6.396,9.909L2.8,11.397L4.244,7.759z",popout:"M3,8 L3,1 L12,1 L12,8 L10,8 L10,11 L0,11 L0,3 L3,3 L2,3 L2,4 L1.969,9 L10,9 L10,8 L3,8 z M10,3 L5,3 L5,6 L10,6 L10,3 z",remove:"M4,7h6 M7,2.5C4.515,2.5,2.5,4.515,2.5,7c0,2.486,2.015,4.5,4.5,4.5 c2.486,0,4.5-2.014,4.5-4.5C11.5,4.515,9.485,2.5,7,2.5z",spacer:"M12,10H2V4h10V10z",chart:"M1.844,9.188 L5.094,6.188 L7.031,8.562 L12.156,4.188",eyeSmall:"M2.613,6.95c0-1.391,2.021-2.518,4.513-2.518 c2.493,0,4.514,1.127,4.514,2.518 M7.125,5.691c-0.682,0-1.235,0.553-1.235,1.235c0,0.681,0.553,1.235,1.235,1.235 c0.681,0,1.235-0.554,1.235-1.235C8.36,6.244,7.807,5.691,7.125,5.691z",lock:"M10,9.875H4v-5h6V9.875z M9.5,4.625c0-1.381-1.119-2.5-2.5-2.5s-2.5,1.119-2.5,2.5 M5.5,4.625c0-0.828,0.672-1.5,1.5-1.5s1.5,0.672,1.5,1.5",plusSmall:"M3,7h8 M7,11V3",listSmall:"M11,4H3V3h8V4z M11,9H3v1h8V9z M11,6H3v1h8V6z",thumbXSmall:"M6,6H2V3h4V6z M12,3H8v3h4V3z M6,8H2v3h4V8z M12,8H8v3h4V8z",eyeHide:"M19.781,4.592 L21.552,6.272 L19.239,8.467 C21.488,9.601 23.362,11.298 25,13.186 C20.879,18.097 14.534,21.593 8.14,19.004 L5.219,21.776 L3.448,20.096 L5.761,17.9 C3.573,16.71 1.624,15.072 0,13.186 C2.735,10.019 6.181,7.253 10.432,6.602 C11.132,6.495 11.845,6.518 12.551,6.476 C14.03,6.531 15.436,6.958 16.838,7.386 L19.781,4.592 z M17.152,10.449 L16.088,11.458 L16.098,11.48 L11.356,15.995 L11.902,16.512 L16.432,12.199 C16.554,12.509 16.546,12.855 16.578,13.182 C16.578,15.412 14.674,17.221 12.324,17.22 C11.124,17.106 11.733,17.245 10.508,16.756 L10.108,17.135 C14.331,18.386 17.629,16.231 20.391,13.185 C19.486,12.082 18.4,11.139 17.152,10.449 z M12.357,8.854 C8.758,9.069 6.619,10.465 4.257,13.185 C5.207,14.373 6.45,15.227 7.71,16.051 L8.665,15.144 C8.045,13.746 8.2,14.412 8.07,13.182 C8.07,10.952 9.974,9.144 12.324,9.144 C13.614,9.267 12.915,9.119 14.391,9.709 L14.748,9.37 C13.149,8.884 13.947,9.051 12.357,8.854 z",minimize:"M0,11.5 L12,11.5",maximize:"M12,0 L12,12 L0,12 L0,0 L12,0 z M11,1.998 L1,1.998 L1,11.002 L11,11.002 L11,1.998 z",desktop:"M1.195,26.607 C0.561,26.543 0.018,26 -0.018,25.395 L0.018,3.755 C0.018,3.086 0.561,2.542 1.23,2.542 L30.805,2.542 C31.474,2.542 32.018,3.086 32.018,3.755 L31.982,25.394 C32.018,26 31.474,26.543 30.77,26.608 L18.932,26.607 C18.932,26.607 18.719,28.746 20.05,29.45 C20.9,29.9 20.558,30.258 20.558,30.258 L11.407,30.258 C11.407,30.258 11.09,29.93 11.95,29.5 C13.45,28.75 13.144,26.607 13.144,26.607 L1.195,26.607 z M30.237,4.404 L1.798,4.404 L1.798,20.531 L30.237,20.531 L30.237,4.404 z",tablet:"M25.638,0 C26.307,0 26.85,0.543 26.85,1.213 L26.85,30.787 C26.85,31.457 26.307,32 25.638,32 L6.362,32 C5.693,32 5.15,31.457 5.15,30.787 L5.15,1.213 C5.15,0.543 5.693,0 6.362,0 L25.638,0 z M16,29.476 C15.553,29.476 15.19,29.838 15.19,30.286 C15.19,30.733 15.553,31.095 16,31.095 C16.447,31.095 16.81,30.733 16.81,30.286 C16.81,29.838 16.447,29.476 16,29.476 z M25.188,3.231 L6.812,3.231 L6.812,28.769 L25.188,28.769 L25.188,3.231 z M15.896,1.406 C15.729,1.406 15.594,1.54 15.594,1.707 C15.594,1.874 15.729,2.009 15.896,2.009 C16.062,2.009 16.198,1.874 16.198,1.707 C16.198,1.54 16.062,1.406 15.896,1.406 z",mobile:"M21.718,0 C22.754,0 23.594,0.836 23.594,1.869 L23.594,30.131 C23.594,31.164 22.754,32 21.718,32 L10.282,32 C9.246,32 8.406,31.164 8.406,30.132 L8.406,1.868 C8.406,0.836 9.246,0 10.282,0 L21.718,0 z M16,28.5 C15.352,28.5 14.826,29.023 14.826,29.668 C14.826,30.314 15.352,30.837 16,30.837 C16.648,30.837 17.174,30.314 17.174,29.668 C17.174,29.023 16.648,28.5 16,28.5 z M22.539,4.083 L9.461,4.083 L9.461,27.345 L22.539,27.345 L22.539,4.083 z M17.287,2.563 L14.938,2.563 C14.876,2.563 14.825,2.623 14.825,2.697 L14.825,2.999 C14.825,3.073 14.875,3.133 14.938,3.133 L17.287,3.133 C17.351,3.133 17.402,3.073 17.402,2.999 L17.402,2.697 C17.402,2.623 17.351,2.563 17.287,2.563 z M16.117,1.042 C15.923,1.042 15.766,1.199 15.766,1.393 C15.766,1.586 15.923,1.743 16.117,1.743 C16.31,1.743 16.467,1.586 16.467,1.393 C16.467,1.199 16.31,1.042 16.117,1.042 z",close:"M0,0l12,12 M0,12l12-12",closeSmall:"M3,3l8,8 M3,11l8-8",plus:"M 6.5591462,0.00335385 6.5033537,13.059146",minus:"M 0.0033543,6.5033535 13.059146,6.5591465",operand:"m 0.07131516,7.5193495 14.99702684,0",fullscreen:"M0,2h2.77v0.898H0.923v1.801H0V2z M0,8.3h0.923v1.8H2.77V11H0V8.3z M1.846,3.8h8.308v5.4H1.846V3.8z M2.77,4.699V8.3h6.46 V4.699H2.77z M9.23,2H12v2.699h-0.923V2.898H9.23V2z M9.23,10.1h1.847V8.3H12V11H9.23V10.1z",resize:"M5.795,11l5.121-5.125 M9.293,11l1.623-1.623 M2.314,10.979l8.608-8.607",arrow1Left:"M7.5,20l18.338,18.336l6.662-6.664L20.829,20L32.5,8.327l-6.662-6.663L7.5,20z",arrow1Right:"M7.5,8.329L19.172,20L7.5,31.674l6.664,6.662L32.5,20L14.164,1.665L7.5,8.329z",arrow2Left:"M9.5,20l16.792,16.151l4.208-4.046L17.913,20L30.5,7.896l-4.208-4.047L9.5,20z",arrow2Right:"M9.5,7.894L22.084,20L9.5,32.104l4.208,4.047L30.5,20L13.708,3.849L9.5,7.894z",arrow3Left:"M66.5,15 L33.5,50 L66.5,85",arrow3Right:"M33,85 L67,50 L33,15",arrow3Down:"M15,33 L50,67 L85,33",plus1Left:"M0,15v10h40V15H0z",plus1Right:"M0,15v9.999h15V40h9.998V24.999H40V15H24.998V0H15v15H0z",plus2Left:"M5,17v6h30v-6H5z",plus2Right:"M5,17.001v5.998h12V35h6V22.999H35v-5.998H23.001V5h-6v12.001H5z",cursorThumbs:"M8,12h11v7H8V12z M8,20h11v7H8V20z M20,12h11v7H20V12z M20,20h11v7H20V20z",updates:"M7,3.563v4.649 M7,1.541C3.986,1.541,1.541,3.986,1.541,7c0,3.017,2.445,5.459,5.459,5.459c3.017,0,5.459-2.442,5.459-5.459C12.459,3.986,10.014,1.541,7,1.541z M6.333,9.022L7,9.832l0.665-0.81H6.333z",menuIconMobile:"M0,0 L20,0 L20,20 L0,20 L0,20 L20,20 L20,15 L0,15 L0,12 L20,12 L20,9 L0,9 L0,6 L20,6 L20,3 L0,3 L0,0 z",bigX:"M38.5,38.5L20.5,20.5L38.5,2.5L20.5,20.5L38.5,38.5ZM2.5,2.5L20.5,20.5L2.5,38.5L20.5,20.5L2.5,2.5Z",liveBtn:"M7,11.5 C4.515,11.5 2.5,9.485 2.5,7 C2.5,4.515 4.515,2.5 7,2.5 C9.485,2.5 11.5,4.515 11.5,7 C11.5,9.485 9.485,11.5 7,11.5 z",search:"M9.216,0.017 C11.426,0.129 13.407,1.063 15,2.577 L15,2.577 C17.352,4.953 18.186,8.521 17.078,11.685 C16.691,12.792 16.082,13.715 15.347,14.616 L16.512,14.302 L17.787,15.578 L17.785,15.587 L24.981,22.783 L22.771,24.993 L15.572,17.794 L15.571,17.794 L14.295,16.518 L14.61,15.349 C14.029,15.823 13.915,15.952 13.253,16.343 C10.537,17.95 7.052,17.95 4.336,16.343 C3.693,15.962 3.128,15.5 2.589,14.988 C-0.838,11.56 -0.838,6.004 2.589,2.577 C4.537,0.698 6.547,0.017 9.216,0.017 z M8.762,2.634 C7.117,2.657 5.65,3.34 4.446,4.433 C2.044,6.835 2.044,10.729 4.446,13.131 C6.847,15.533 10.742,15.533 13.143,13.131 C15.545,10.729 15.545,6.835 13.143,4.433 C12.001,3.289 10.672,2.791 9.089,2.639 L8.762,2.634 z",cloud:"M8.279,2.576 L9.048,2.632 C10.89,2.933 12.369,3.804 13.452,5.307 C13.976,5.2 13.716,5.232 14.233,5.206 C16.032,5.236 17.521,6.473 17.878,8.229 C19.765,8.595 20.911,10.333 21.003,12.16 C20.965,14.315 19.296,16.099 17.129,16.208 L15.216,16.217 L16.412,14.939 L17.011,14.931 L14.093,14.931 L10.825,18.424 L7.557,14.931 L5.001,14.931 L5.001,14.927 L7.553,14.927 L7.551,14.925 L9.688,14.925 L9.688,10.046 L11.962,10.046 L11.962,14.925 L14.099,14.925 L14.096,14.927 L17.013,14.927 L17.013,14.931 C18.528,14.846 19.699,13.681 19.725,12.16 C19.725,10.625 18.48,9.38 16.945,9.38 L16.85,9.385 C16.907,9.219 16.861,9.362 16.893,8.938 C16.893,7.48 15.711,6.298 14.253,6.298 C13.727,6.325 13.202,6.435 12.776,6.765 C12.033,5.001 10.151,3.977 8.299,3.932 C5.544,3.932 3.31,6.173 3.31,8.938 L3.324,9.229 C2.09,9.75 1.31,10.619 1.278,12.017 C1.278,13.631 2.593,14.939 4.207,14.939 L5.237,14.939 L6.433,16.217 L3.915,16.203 C1.655,16.105 0.108,14.161 0,12.017 C0.009,10.539 0.757,9.297 1.96,8.484 C2.144,5.037 4.983,2.743 8.279,2.576 z",attachment:"M9.931,1.636 C9.583,1.288 9.177,1.017 8.724,0.833 C8.286,0.655 7.824,0.564 7.349,0.564 C6.876,0.564 6.412,0.653 5.975,0.829 C5.522,1.012 5.116,1.279 4.767,1.626 L0.846,5.538 C0.571,5.811 0.358,6.13 0.212,6.487 C0.072,6.83 -0,7.194 -0,7.568 C-0,7.94 0.071,8.302 0.21,8.646 C0.353,9.001 0.565,9.32 0.838,9.594 C1.112,9.869 1.431,10.081 1.787,10.225 C2.131,10.365 2.494,10.436 2.867,10.436 C3.24,10.436 3.603,10.365 3.947,10.227 C4.304,10.082 4.623,9.87 4.898,9.597 L8.014,6.493 C8.214,6.294 8.368,6.062 8.473,5.802 C8.575,5.552 8.626,5.287 8.626,5.016 C8.626,4.458 8.409,3.937 8.014,3.545 C7.62,3.149 7.097,2.931 6.54,2.928 C5.982,2.927 5.457,3.144 5.062,3.539 L3.122,5.48 C3.023,5.579 2.97,5.708 2.97,5.846 C2.97,5.984 3.023,6.115 3.122,6.212 L3.13,6.22 C3.331,6.423 3.66,6.423 3.863,6.221 L5.808,4.282 C6.214,3.879 6.874,3.877 7.281,4.277 C7.477,4.472 7.583,4.732 7.583,5.011 C7.583,5.293 7.474,5.557 7.276,5.754 L4.161,8.857 C4.156,8.863 4.151,8.867 4.148,8.874 C3.804,9.209 3.35,9.392 2.868,9.389 C2.383,9.387 1.928,9.198 1.587,8.857 C1.417,8.683 1.285,8.48 1.194,8.255 C1.106,8.036 1.062,7.804 1.062,7.568 C1.062,7.084 1.248,6.631 1.587,6.291 C1.592,6.287 1.596,6.284 1.6,6.28 L5.513,2.369 C5.516,2.366 5.52,2.361 5.523,2.356 C5.771,2.113 6.059,1.923 6.38,1.795 C6.693,1.67 7.021,1.607 7.36,1.607 C7.698,1.607 8.028,1.672 8.339,1.797 C8.662,1.928 8.952,2.119 9.199,2.366 C9.447,2.613 9.638,2.903 9.769,3.226 C9.895,3.537 9.959,3.867 9.959,4.205 C9.959,4.545 9.895,4.876 9.768,5.19 C9.637,5.514 9.444,5.806 9.195,6.056 L6.491,8.751 C6.393,8.85 6.338,8.979 6.338,9.118 C6.338,9.257 6.393,9.387 6.49,9.484 L6.496,9.49 C6.697,9.692 7.026,9.692 7.228,9.49 L9.929,6.796 C10.277,6.447 10.548,6.041 10.733,5.588 C10.911,5.15 11,4.688 11,4.214 C11,3.74 10.91,3.278 10.733,2.841 C10.55,2.389 10.28,1.983 9.931,1.636 z",gear:"M10.329,6.099 L9.534,5.923 C9.522,5.462 9.423,5.017 9.239,4.597 L9.857,4.097 C9.956,4.016 9.971,3.871 9.891,3.772 L9.048,2.731 C9.009,2.683 8.954,2.653 8.893,2.646 C8.832,2.64 8.771,2.658 8.723,2.696 L8.121,3.185 C7.753,2.908 7.342,2.709 6.9,2.593 L6.9,1.827 C6.9,1.699 6.796,1.596 6.669,1.596 L5.329,1.596 C5.201,1.596 5.098,1.699 5.098,1.827 L5.098,2.594 C4.646,2.713 4.228,2.918 3.853,3.205 L3.245,2.72 C3.197,2.682 3.136,2.665 3.075,2.672 C3.015,2.679 2.959,2.71 2.921,2.757 L2.086,3.806 C2.048,3.854 2.031,3.915 2.038,3.976 C2.045,4.037 2.075,4.092 2.123,4.13 L2.747,4.627 C2.568,5.047 2.473,5.493 2.465,5.953 L1.669,6.137 C1.609,6.151 1.558,6.188 1.525,6.239 C1.493,6.291 1.482,6.354 1.496,6.413 L1.798,7.72 C1.827,7.844 1.95,7.921 2.075,7.893 L2.894,7.703 C3.108,8.095 3.389,8.438 3.731,8.724 L3.362,9.497 C3.336,9.552 3.333,9.616 3.353,9.673 C3.373,9.731 3.416,9.778 3.471,9.804 L4.681,10.381 C4.712,10.396 4.746,10.404 4.78,10.404 C4.806,10.404 4.832,10.399 4.857,10.391 C4.915,10.37 4.962,10.328 4.988,10.273 L5.361,9.49 C5.792,9.569 6.239,9.567 6.666,9.486 L7.046,10.264 C7.101,10.378 7.24,10.426 7.354,10.37 L8.559,9.782 C8.614,9.755 8.656,9.708 8.676,9.65 C8.696,9.592 8.692,9.529 8.665,9.474 L8.291,8.706 C8.631,8.416 8.909,8.07 9.119,7.676 L9.939,7.858 C10.064,7.885 10.187,7.807 10.214,7.683 L10.504,6.374 C10.532,6.25 10.453,6.127 10.329,6.099 z M7.516,6.013 C7.516,6.849 6.836,7.529 6,7.529 C5.164,7.529 4.484,6.849 4.484,6.013 C4.484,5.177 5.164,4.497 6,4.497 C6.836,4.497 7.516,5.177 7.516,6.013 z"},Svg=function(){var e={Sprite:Sprite}.Sprite,i=["backgroundPositionX","backgroundPositionY","backgroundRepeatX","backgroundRepeatY","baselineShift","borderBottomLeftRadius","borderBottomRightRadius","borderBottomWidth","borderImageWidth","borderLeftWidth","borderRadius","borderRightWidth","borderSpacing","borderTopLeftRadius","borderTopRightRadius","borderTopWidth","borderWidth","bottom","fontSize","height","left","letterSpacing","lineHeight","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","outlineOffset","outlineWidth","overflowX","overflowY","paddingBottom","paddingLeft","paddingRight","paddingTop","right","strokeWidth","textIndent","textLineThroughWidth","textOverlineWidth","textUnderlineWidth","top","width","wordSpacing"];function n(e){for(var t in this.vars={},e)this.vars[t]=e[t];var i=document.createElementNS("http://www.w3.org/2000/svg",this.vars.type||"svg");i.style.position="absolute",i.style.display="block",(i.proxy=this)._private={},this.element=i,this.children=[],this.style=i.style,this.name=this.vars.type||"svg",this.events=this.vars.events||globalEvents,this.listeners=this.events.listeners}for(var t=["dispatchEvent","addEventListener","removeEventListener","removeAllListeners","addChild","removeChild","removeChildren","childAdded","moveToTop","event","hitTestPoint","hitTestAbs","globalToLocal","localToGlobal","focus","blur"],o=["backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","border","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxShadow","boxSizing","bufferedRendering","clear","color","content","cursor","direction","display","float","font","fontFamily","fontKerning","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","height","imageRendering","left","letterSpacing","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","mask","maskType","maxHeight","maxWidth","maxZoom","minHeight","minWidth","minZoom","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","page","pageBreakAfter","paintOrder","pointerEvents","position","resize","right","size","src","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","tableLayout","textAlign","textAnchor","textDecoration","textIndent","textLineThroughColor","textLineThroughMode","textLineThroughStyle","textLineThroughWidth","textOverflow","textOverlineColor","textOverlineMode","textOverlineStyle","textOverlineWidth","textRendering","textShadow","textTransform","textUnderlineColor","textUnderlineMode","textUnderlineStyle","textUnderlineWidth","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","userZoom","verticalAlign","visibility","webkitBackfaceVisibility","webkitBoxShadow","webkitFilter","webkitFontSmoothing","webkitHighlight","webkitTransformStyle","webkitTransition","webkitTransitionDelay","webkitTransitionDuration","webkitTransitionProperty","webkitTransitionTimingFunction","webkitUserDrag","webkitUserModify","webkitUserSelect","whiteSpace","width","wordBreak","wordSpacing","wordWrap","zIndex","zoom"],a=["cx","cy","d","points","r","rx","ry","fill","stroke","width","height"],r=t.length;r--;)n.prototype[t[r]]=e.prototype[t[r]];return o.forEach(function(t){/fill|stroke|strokeWidth|width|height|x|y|transition/.test(t)||Object.defineProperty(n.prototype,t,{get:function(){return this._private[t]},set:function(e){this._private[t]=e,this.element.style[t]=-1=t.data.duration-1?n():(d.dispatchEvent(PAUSED),"function"==typeof d.onpause&&d.onpause(),d.paused=!0);break;case"play":d.dispatchEvent(PLAY),"function"==typeof d.onplay&&d.onplay(),d.paused=!1}}}function e(e){d&&keyCode[e.keyCode]===SPACE_BAR&&d.togglePlay()}return d.parent=a.parent,d.style.pointerEvents="auto",r="player"+VimeoPlayer.getNextPlayerID(),d.playerID=r,d.element.id=r,d.element.setAttribute("frameborder","0"),d.element.setAttribute("webkitAllowFullScreen",""),d.element.setAttribute("mozallowfullscreen",""),d.element.setAttribute("allowFullScreen",""),d.element.style["user-select"]="none",d.setSource=function(e,t){d.element.ownerDocument.defaultView.addEventListener("message",u()),s=!!t,d.element.setAttribute("allow","autoplay");try{l="https://player.vimeo.com/video/"+e.split("vimeo:")[1];var i=t?"&autoplay=1":"",n=(STATE.overrides.videoLoop?d.src=l+"?api=1&autopause=0&loop=1&wmode=opaque"+i+"&player_id="+r:d.src=l+"?api=1&autopause=0&wmode=opaque"+i+"&player_id="+r,d.width||a.width||640),o=d.height||a.height||480;d.element.setAttribute("width",n),d.element.setAttribute("height",o),d.width=n,d.height=o,t&&(stage.userInteraction?(d.unmuteBtn&&(d.unmuteBtn.display="none",d.unmuteBtn.removeEventListener("click",d.unmuteClick)),d.element.setAttribute("allow","autoplay"),d.element.contentWindow.postMessage(JSON.stringify({method:"setMuted",value:!1}),h)):d.unmuteBtn?(d.unmuteBtn.display="block",d.unmuteBtn.addEventListener("click",d.unmuteClick)):d.unmuteBtn||c(d)),d.element.setAttribute("frameborder",0),d.element.setAttribute("webkitallowfullscreen",!0),d.element.setAttribute("mozallowfullscreen",!0),d.element.setAttribute("allowfullscreen",!0)}catch(e){console.log("there may have been a vimeo api error: ",e)}},d.togglePlay=function(){d.paused?d.play():d.pause()},d.setLoop=function(e){d&&d.loaded&&d.element.contentWindow&&d.element.contentWindow.postMessage(JSON.stringify({method:"loop",value:e}),h)},d.play=function(){d.ended=!1,stage.userInteraction?(d.unmuteBtn&&(d.unmuteBtn.display="none",d.unmuteBtn.removeEventListener("click",d.unmuteClick)),d.element.contentWindow.postMessage(JSON.stringify({method:"setMuted",value:!1}),h)):d.unmuteBtn?(d.unmuteBtn.display="block",d.unmuteBtn.addEventListener("click",d.unmuteClick)):d.unmuteBtn||c(d),d&&d.element.contentWindow&&(d.loaded?(d.element.contentWindow.postMessage(JSON.stringify({method:"play",value:""}),h),stage.addEventListener(KEY_DOWN,e),d.paused=!1,d.dispatchEvent(PLAY)):d.element.addEventListener("load",function(){d.loaded=!0,d.element.contentWindow.postMessage(JSON.stringify({method:"play",value:""}),h),stage.addEventListener(KEY_DOWN,e),d.paused=!1,d.dispatchEvent(PLAY)}))},d.pause=function(){d&&d.loaded&&d.element.contentWindow&&(d.element.contentWindow.postMessage(JSON.stringify({method:"pause",value:""}),h),d.paused=!0)},d.setSize=function(e,t){d&&(d.transition=0,d.width=e,d.height=t)},d.align=function(e,t){d&&(d.transition=0,d.style.left=e+"px",d.style.top=t+"px")},d.destroy=function(){d.element.ownerDocument.defaultView.removeEventListener("message",u),d.removeKeyListener(),d=null},d.removeKeyListener=function(){stage.removeEventListener(KEY_DOWN,e)},d}function SiteController(a){var r,l,e,s,i,n,d=new ControllerProxy({events:new EventSandbox}),h=!0,o=!1,c={};function u(){dx.admin.events.addEventListener(ACCOUNT_MODEL_CHANGE,q),dx.admin.events.addEventListener(FONTS_MODEL_CHANGE,J),dx.admin.events.addEventListener(FILES_MODEL_CHANGE,Q),dx.admin.events.addEventListener(LAYOUT_MODEL_CHANGE,$),dx.admin.events.addEventListener(MEDIA_MODEL_CHANGE,ee),dx.admin.events.addEventListener(NAVBAR_MODEL_CHANGE,te),dx.admin.events.addEventListener(PDF_MODEL_CHANGE,ie),dx.admin.events.addEventListener(SETTINGS_MODEL_CHANGE,ne),dx.admin.events.addEventListener(SECTIONS_MODEL_CHANGE,oe),dx.admin.events.addEventListener(ADMIN_MOUSE_DOWN,t),dx.admin.events.addEventListener(ADMIN_MOUSE_UP,E),d.events.addEventListener("adminPageviewImageSizes",function(e){dx.admin.events.dispatchEvent("adminPageviewImageSizes",e)})}function T(){d.events.dispatchEvent(SITE_SERVICE_GET_FILE,{name:"js"})}function t(){d.events.dispatchEvent(ADMIN_MOUSE_DOWN)}function E(){d.events.dispatchEvent(ADMIN_MOUSE_UP)}function m(){stage.zoom}function g(e){var t,i;/responsive/.test(LAYOUT_MODEL.menuAlignHorizontal)?(t=LAYOUT_MODEL.screenWidthBreakpoint||800,i=layoutCalcs.isMenuResponsiveOverlay,layoutCalcs.isMenuResponsiveOverlay=USER_AGENT!==MOBILE&&stage.widthwindow.innerHeight?"horizontal":"vertical":(d.events.dispatchEvent(RESIZE_END),d.siteView.updatePosition(e),M()),s&&s.updatePosition(),l&&l.updatePosition()}function p(e){e=e.target.type;ORIENTATION=e?/landscape/.test(e)?"horizontal":"vertical":window.innerWidth>window.innerHeight?"horizontal":"vertical",setTimeout(function(){d.events.dispatchEvent(ORIENTATION_CHANGE),d.events.dispatchEvent(RESIZE_END)},500)}function v(e){popup=new a.Popup(a,e)}function f(e){d.events.dispatchEvent(ADDRESS_OVERLAY_CHANGE,e)}function L(e){d.events.dispatchEvent(ADDRESS_ASSET_CHANGE,e)}function S(){d.events.dispatchEvent(FULLSCREEN_TOGGLE)}function A(e){d.events.dispatchEvent(ADDRESS_SECTION_CHANGE,e)}function O(e){e.section&&e.section.isSearch?(s?(s.setTags(r.searchTags),s.open(e.section)):s=searchInput({navEvent:e,section:e.section,events:d.events,tags:r.searchTags}),"overlay"===STATE.menuView.placement()&&d.menuController.menuView.dock.toggleState()&&d.menuController.menuView.closeDock()):d.events.dispatchEvent(ADDRESS_SECTION_CHANGE,e)}function P(e){d.events.dispatchEvent(ADDRESS_SECTION_CHANGE,e)}function R(e){d.events.dispatchEvent(ADDRESS_SECTION_CHANGE,e)}function N(e){if((e.keyCode===keyName.LEFT_ARROW||e.keyCode===keyName.UP_ARROW||e.keyCode===keyName.RIGHT_ARROW||e.keyCode===keyName.DOWN_ARROW)&&!stage.disableKeyNavigation){var t;switch(e.keyCode){case keyName.LEFT_ARROW:case keyName.UP_ARROW:t="prev";break;case keyName.RIGHT_ARROW:case keyName.DOWN_ARROW:t="next"}t&&d.events.dispatchEvent(ADDRESS_ASSET_CHANGE,{navDir:t})}}function z(e){var t,i,n,o;r=e,STATE.section(e.section),d.siteView.setOverflow(),d.events.dispatchEvent("autoplayTarget",e),isFillSite()&&layoutCalcs.isLandingMedia?d.events.dispatchEvent("fillSiteMode"):d.events.dispatchEvent("nonFillSiteMode"),Y(e),e.info.isDeepLink||e.path&&!e.info.isIntroGallery||!h||!STATE.introFile&&!LAYOUT_MODEL.introFile?STATE.lightboxSection?(t=e,i=STATE.lightboxSection&&!STATE.lightboxSection.media.length,n=STATE.lightboxHash&&i,o=t.section.key===STATE.lightboxSection.key,n?d.service.getLightboxMedia(STATE.lightboxHash).then(function(e){STATE.lightboxSection.media=e.media.filter(function(e){return MEDIA_MODEL[e]&&!MEDIA_MODEL[e].disableLightbox}),STATE.lightboxSection.mediaItems=STATE.lightboxSection.media}).catch(function(e){localStorage.removeItem("lightboxHash"),console.log("Lightbox has no content",e)}).then(function(){o?y(t):d.events.dispatchEvent(SITE_URI_CHANGE,t)}):o&&i?y(t):d.events.dispatchEvent(SITE_URI_CHANGE,t)):d.events.dispatchEvent(SITE_URI_CHANGE,e):(d.savedUriInfo=e,d.events.addEventListener(INTRO_COMPLETE,C),d.introView=new a.IntroView(a),(USER_AGENT===MOBILE&&STATE.overrides.menuDisplaceMobile||USER_AGENT===TABLET&&STATE.overrides.menuDisplaceTablet?stage:d.siteView).addChild(d.introView),d.events.addEventListener(RESIZE_END,d.introView.updatePosition)),h=!1,!e.section.isSearch||e.section.mediaItems.length||e.section.media.length?e.section.isSearch&&s&&s.close():(s?(s.setTags(e.searchTags),s.open(e.section)):s=searchInput({navEvent:e,section:e.section,events:d.events,tags:e.searchTags}),s.blur(),s.setMessage("No results found")),l&&V(),isSlideshowGallery(r.section)&&LAYOUT_MODEL.slideshowCaptions||w(),I(),d.siteView.updatePosition(),b()}function b(){USER_AGENT!==MOBILE&&USER_AGENT!==TABLET||(d.menuController.menuView.dock.toggleState()||"site"===LAYOUT_MODEL.mobileLogoPlacement||"thumbs"===LAYOUT_MODEL.mobileLogoPlacement&&/thumbs/.test(layoutCalcs._uriState.mode)?d.logoController.show():d.logoController.hide())}function y(e){e.section.isUserEnableLightbox&&!STATE.userEnabledLightbox?confirm("Lightbox has no content. Would you like to enable lightbox on this site?",{onConfirm:function(){STATE.userEnabledLightbox=!0,d.events.dispatchEvent(SITE_URI_CHANGE,e)},onCancel:function(){d.events.dispatchEvent(SITE_URI_CHANGE,e)}}):alert("Lightbox has no content. You can add content to your lightbox from other galleries.",{onClose:function(){d.events.dispatchEvent(SITE_URI_CHANGE,e)}})}function k(e){Y(r=e),d.events.dispatchEvent("SITE_URI_CHANGE_PASSIVE",e),d.events.dispatchEvent("autoplayTarget",e),h=!1,l&&V(),isSlideshowGallery(r.section)&&LAYOUT_MODEL.slideshowCaptions||w()}function B(e){var t;USER_AGENT!==MOBILE&&(t=getCaptionText(e=getMediaById(removeLinksFromMedia(r.section.mediaItems)[e.id])),c=e.overrides||{},e=firstValid(e&&e.overrides.captionAnchorTo,STATE.overrides.captionAnchorTo),(isSlideshowGallery(r.section)&&LAYOUT_MODEL.slideshowCaptions||-1{i.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),document.body.removeChild(i)},66)}function U(e,t){D(URL.createObjectURL(e),t),setTimeout(function(){URL.revokeObjectURL(link.href)},250)}function x(n){return new Promise(function(e,t){var i=document.createElement("script");i.onload=e,i.onerror=t,document.head.append(i),i.src=n})}function W(){var i=STATE.lightboxSection.media;window.PDFDocument&&window.blobStream||Promise.all([x(CDN_PF_SSL_URI+"/scripts/blob-stream.js"),x(CDN_PF_SSL_URI+"/scripts/pdfkit.standalone.js"),d.service.getPdfModel()]).then(function(e){var t,r,e=e[2];"fail"===e.status?console.log("failed to get pdf model"):(PDF_MODEL=DX_MODEL.pdf=e,t="pdf"===(t=PDF_MODEL.pdfDocCustomName||window.location.host+"-lightbox").split(".").pop()?t:t+".pdf",r=i,new Promise(function(e,t){var i=new PDFDocument({size:[PDF_MODEL.pdfDocPageWidth,PDF_MODEL.pdfDocPageHeight],margins:{top:0,right:0,bottom:0,left:0}}),n=i.pipe(blobStream()),o=r.map(function(e){return MEDIA_MODEL[e]}),a=PDF_MODEL.pdfDocPageHeight/72;PDF_MODEL.pdfDocCoverImage?o.unshift({content:PDF_MODEL.pdfDocCoverImage}):PDF_MODEL.pdfDocCoverText&&(i.rect(0,0,PDF_MODEL.pdfDocPageWidth,PDF_MODEL.pdfDocPageHeight).fill(PDF_MODEL.pdfDocCoverBgColor),i.font("Helvetica",58).moveDown(Math.round(a/2)).fill(PDF_MODEL.pdfDocCoverTextColor).text(PDF_MODEL.pdfDocCoverText,{align:"center"}).addPage({size:[PDF_MODEL.pdfDocPageWidth,PDF_MODEL.pdfDocPageHeight],margins:{top:0,right:0,bottom:0,left:0}})),Promise.all(o.map(function(e){return fetch(SETTINGS_MODEL.cdnSslUri+"/"+e.content).then(function(e){return e.arrayBuffer()})})).then(function(e){e.forEach(function(e,t){try{0Please try again later.
If problem persists, contact support."):isSupportedBrowserForAdmin(BROWSER_NAME,BROWSER_VERSION)?d.login=new Login(a):alert("Admin not supported for this browser ["+BROWSER_NAME+" "+BROWSER_VERSION+"]. Please use latest version of Chrome, Firefox, Safari or MS Edge.")),d.events.dispatchEvent(LAYOUT_MODEL_CHANGE,{id:"layoutModelInit"}),d.events.addEventListener(NAVBAR_OVERLAY_BTN_CLICK,f),d.events.addEventListener(NAVBAR_NAV_CLICK,L),d.events.addEventListener(NAVBAR_FULLSCREEN,S),d.events.addEventListener(MENU_CLICK,O),d.events.addEventListener(FOOTER_CLICK,A),d.events.addEventListener(LOGO_CLICK,R),d.events.addEventListener(THUMB_CLICK,P),d.events.addEventListener(ADDRESS_URI_CHANGE,z),d.events.addEventListener("ADDRESS_URI_CHANGE_PASSIVE",k),d.events.addEventListener(ADMIN_LOADED,u),d.events.addEventListener(CONTACT_FORM_SUBMIT,ae),d.events.addEventListener(SHARE_FORM_SUBMIT,re),d.events.addEventListener(INQUIRY_FORM_SUBMIT,le),d.events.addEventListener(POP_UP,v),d.events.addEventListener("OVER_LOGO",se),d.events.addEventListener("privateGalleryAuthCheck",j),d.events.addEventListener("passwordViewUpdate",Z),d.events.addEventListener("updateAssetId",B),d.events.addEventListener("UPDATE_CONTENT_HEIGHT",function(){clearTimeout(n),n=setTimeout(function(){d.siteView.updatePosition()},50)}),d.events.addEventListener(PAGE_LOADED,T),d.events.addEventListener("siteAnchorCaptionUpdate",w),d.events.addEventListener("SEARCH_SUBMIT",H),d.events.addEventListener("lightboxDownloadOverlayOpen",F),d.events.addEventListener("lightboxUpdateItem",G),d.events.addEventListener("lightboxDownloadPdf",W),d.events.addEventListener("lightboxDownloadZip",X),d.events.addEventListener("attachmentDownload",K),d.events.addEventListener("MENU_DOCK_TOGGLE",b),stage.addEventListener(RESIZE_END,g),stage.addEventListener(GESTURE_END,m),(isPad()||isPod())&&screen&&screen.orientation?screen.orientation.addEventListener(CHANGE,p):stage.addEventListener(ORIENTATION_CHANGE,p),stage.addEventListener(KEY_DOWN,N),(isPod()||isPad())&&window.addEventListener("scroll",function(){clearTimeout(i),o=!0,i=setTimeout(function(){i=null,o=!1},200)}),1window.innerHeight?"horizontal":"vertical",window.isStaging&&((t=new Button).position="fixed",t.element.style.display="block",t.element.style.zIndex=500,t.text="VIEW LIVE SITE",t.fontColor="#FFF",t.backgroundColor="#51CC47",t.width=111,t.height=22,t.right=5,t.bottom=5,t.borderRadius=2,t.alpha=.8,t.addEventListener("mouseover",function(){t.alpha=1}),t.addEventListener("mouseout",function(){t.alpha=.8}),t.addEventListener(CLICK,function(){confirm("Switching to LIVE SITE, the page will refresh.",{onConfirm:function(){location.assign("/unstage")},onCancel:function(){}})}),e=t,d.siteView.addChild(e)),STATE.cacheLightboxSection()}.call(d),d}function SiteView(e){var t=new ViewProxy({events:e.siteControllerEvents});return t.zIndex=0,t.position=STATE.siteView.unifiedPageScroll()?"relative":"absolute",t.setOverflow=function(){USER_AGENT!==TABLET||!1===LAYOUT_MODEL.menuDisplaceTablet?USER_AGENT!==MOBILE&&/none/.test(STATE.overrides.siteDisplayBehavior)||/^unified/.test(STATE.overrides.siteDisplayBehavior)?t.element.style.overflow="hidden":(t.element.style.overflowX="hidden",t.element.style.overflowY="auto"):t.element.style.overflow="visible"},t.setOverflow(),t.element.setAttribute("class","SiteView"),t.name="SiteView","Chrome"===BROWSER_NAME&&(t.selectable=!0),t.addEventListener(CHILD_ADDED,function(){t.updatePosition()}),t.updatePosition=function(){t.position=STATE.siteView.unifiedPageScroll()?"relative":"absolute",t.width=STATE.siteView.width(),"open"!==layoutCalcs.mediaOverlayState&&(t.height=STATE.siteView.height()||stage.height),(window.fullScreen||document.webkitCurrentFullScreenElement)&&(t.height=stage.height,t.overflowY="scroll"),USER_AGENT===MOBILE&&STATE.overrides.menuDisplaceMobile?t.x=stage.width:USER_AGENT===TABLET&&STATE.overrides.menuDisplaceTablet&&(t.x=layoutCalcs.menuView.width())},t.updateStyle=function(){t.backgroundColor=LAYOUT_MODEL.siteBackgroundColor},t}VideoPlayer.playerID=0,VideoPlayer.getNextPlayerID=function(){return VideoPlayer.playerID++},VimeoPlayer.playerID=0,VimeoPlayer.getNextPlayerID=function(){return VimeoPlayer.playerID++},stage.addEventListener(LOAD,function(){dx.address=Address,dx.site=new SiteController({Sprite:Sprite,TextField:TextField,Bitmap:Bitmap,Tile:Tile,FooterController:FooterController,FooterView:FooterView,LogoController:LogoController,LogoView:LogoView,SectionController:SectionController,MediaModule:MediaModule,MenuController:MenuController,MenuView:MenuView,NavbarController:NavbarController,NavbarView:NavbarView,AddressController:AddressController,OverlayController:OverlayController,OverlayView:OverlayView,ImageView:ImageView,VideoView:VideoView,PageView:PageView,ContactView:ContactView,VideoPlayer:VideoPlayer,VimeoPlayer:VimeoPlayer,LoadingIndicator:LoadingIndicator,ThumbsModule:ThumbsModule,Cursor:Cursor,StaticNav:StaticNav,Tooltip:Tooltip,passwordInput:passwordInput,searchInput:searchInput,IntroView:IntroView,SiteService:SiteService,Popup:Popup,TouchNav:TouchNav})});var passedSections=[],layoutCalcs={_logoWidth:0,_logoHeight:0,_footerWidth:0,_footerHeight:0,_fotomotoWidth:0,_fotomotoHeight:0,_navbarHeight:0,_section:void 0,_thumbContentHeight:0,_mediaContentHeight:0,_maskView:{},_uriState:{},mobileFooterPadding:5,mediaOverlayState:"closed",isLandingMedia:!1,isMenuResponsiveOverlay:!1,_activeMediaType:void 0,_mediaMarginPrefix:void 0,_sectionStates:Object.keys(SECTIONS_MODEL).reduce(function(e,t){return"ROOT_SECTION"===t?e["/"]={}:e[t]={id:SECTIONS_MODEL[t].id,key:SECTIONS_MODEL[t].key,height:stage.height,zoneHeight:stage.height,assetId:0,mode:""},e},{landingMedia:{key:"landingMedia",zoneHeight:stage.height,height:stage.height,assetId:0,mode:""}}),get _thumbsVisible(){return this._section&&this._section.key&&this._sectionStates[this._section.key]&&/thumbs/.test(this._sectionStates[this._section.key].mode)},set activeMediaType(e){this._mediaMarginPrefix=formatMediaType(e),this._activeMediaType=e},updateSectionState:function(e,t){this._sectionStates[e]=[t].reduce(function(e,i){return Object.keys(i).reduce(function(e,t){return e[t]=i[t],e},e)},this._sectionStates[e]||{})},resetSectionState:function(){this._sectionStates=Object.keys(SECTIONS_MODEL).reduce(function(e,t){return"ROOT_SECTION"===t?e["/"]={}:e[t]={id:SECTIONS_MODEL[t].id,key:SECTIONS_MODEL[t].key,height:stage.height,zoneHeight:stage.height,assetId:0,mode:""},e},{landingMedia:{key:"landingMedia",zoneHeight:stage.height,height:stage.height,assetId:0,mode:""}})},getSectionState:function(e){return"string"==typeof e&&this._sectionStates[e]},getMaxScrollSectionHeight:function(e){var t=e.maxScroll.length,i=e.maxScroll.position,n=STATE.menuView.menuPositionFixed(),o=getMarginOverlap()||0,a=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height),r=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height),l=percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height),s=(stage.height,/top/.test(STATE.menuView.placement())),d=/bottom/.test(STATE.menuView.placement()),d=!LAYOUT_MODEL.isMenuScrollReveal&&(s||d);return isFillSiteSlideshow(e.section)?stage.height:1layoutCalcs.menuView.height()?0:.5*(layoutCalcs.menuView.height()-e)+i;case"bottom":return layoutCalcs.menuView.height()-e-i}return 0}},menuView:{x:function(){return USER_AGENT===MOBILE||USER_AGENT===TABLET||"overlay"===STATE.menuView.placement()?0:/top|bottom/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.menuOffsetY,stage.width):"right"===STATE.menuView.placement()?percentToPixels(LAYOUT_MODEL.sitePaddingRight,stage.width)-(getMarginOverlap()||0):percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.height)-(getMarginOverlap()||0)},y:function(){return USER_AGENT===MOBILE||USER_AGENT===TABLET||"overlay"===STATE.menuView.placement()?0:/left|right/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+percentToPixels(LAYOUT_MODEL.menuOffsetY,stage.height):"bottom"===STATE.menuView.placement()?percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.width)-(getMarginOverlap()||0):percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.width)-(getMarginOverlap()||0)},width:function(){var e;return USER_AGENT===MOBILE||"overlay"===STATE.menuView.placement()?stage.width:(e=!layoutCalcs._menuTextWidth||layoutCalcs._menuTextWidth<150?150:layoutCalcs._menuTextWidth,USER_AGENT===TABLET&&percentToPixels(LAYOUT_MODEL.menuWidthMobile,stage.width)?percentToPixels(LAYOUT_MODEL.menuWidthMobile,stage.width)?percentToPixels(LAYOUT_MODEL.menuWidthMobile,stage.width):e:USER_AGENT===TABLET&&/top|bottom/.test(STATE.menuView.placement())?firstValid(LAYOUT_MODEL.menuWidthMobile,e):/left|right/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.menuWidth,stage.width):stage.width-(percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.sitePaddingRight,stage.width))-percentToPixels(LAYOUT_MODEL.menuOffsetY,stage.width))},height:function(){return USER_AGENT===MOBILE||USER_AGENT===TABLET||"overlay"===STATE.menuView.placement()?stage.height:/top|bottom/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.menuWidth,stage.height):stage.height-(percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height))-percentToPixels(LAYOUT_MODEL.menuOffsetY,stage.height)}},mediaView:{x:function(){var e;return USER_AGENT===MOBILE||USER_AGENT===TABLET||isInMediaOverlay()?0:(e=/left/.test(STATE.menuView.placement())&&-getMarginOverlap()||0,"left"===STATE.menuView.placement()?percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.menuWidth,stage.width)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.width)+e:percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+e)},y:function(e){var t;return USER_AGENT===MOBILE||USER_AGENT===TABLET||isInMediaOverlay()?0:(t=/top/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal&&-getMarginOverlap()||0,"unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior&&"multiple"===layoutCalcs.sectionDisplayMode?!LAYOUT_MODEL.isMenuScrollReveal&&STATE.menuView.menuPositionFixed()&&/top/.test(STATE.menuView.placement())?percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height)+t:0:/top/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height)+t:percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+t)},width:function(e){var t,e=e||0;return USER_AGENT===MOBILE||USER_AGENT===TABLET||isInMediaOverlay()?stage.width:/left|right/.test(STATE.menuView.placement())?(t=getMarginOverlap()||0,stage.width-(percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.sitePaddingRight,stage.width)+percentToPixels(LAYOUT_MODEL.menuWidth,stage.width)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.width)+e)+t):stage.width-(percentToPixels(LAYOUT_MODEL.sitePaddingLeft,stage.width)+percentToPixels(LAYOUT_MODEL.sitePaddingRight,stage.width))},height:function(e,t){var i=layoutCalcs.getSectionState(e),n="unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior||(STATE.siteView.unifiedPageScroll()||/unified/.test(LAYOUT_MODEL.siteDisplayBehavior))&&/overlay/.test(STATE.overrides.siteDisplayBehavior)&&STATE.overrides.siteDisplayGalleryOnlyOverlay&&/thumbs/.test(i.mode)?t?STATE.getSectionZoneHeight(e):STATE.getSectionHeight(e):stage.height,i=!!i&&i.isFullTextHeight,o=/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal&&getMarginOverlap()||0,a=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height),r=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)+percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height);return t||/unifiedSiteScrollVertical/.test(STATE.overrides.siteDisplayBehavior)||!STATE.siteView.unifiedPageScroll()||(n=/vScroll/.test(STATE.overrides.transitionType)?/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?STATE.getSectionHeight(e)+(a+r)>stage.height?STATE.getSectionHeight(e):stage.height:STATE.getSectionHeight(e)>stage.height?STATE.getSectionHeight(e):stage.height:stage.height),USER_AGENT===TABLET&&"bottom"===LAYOUT_MODEL.navbarAlignVertical&&layoutCalcs.isDisplace()&&"bottom"===STATE.overrides.thumbnailSide?n-30:USER_AGENT===MOBILE||USER_AGENT===TABLET||"overlay"===STATE.overrides.siteDisplayBehavior?n:("unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior&&"multiple"===layoutCalcs.sectionDisplayMode?!LAYOUT_MODEL.isMenuScrollReveal&&STATE.menuView.menuPositionFixed()&&/top|bottom/.test(STATE.menuView.placement())&&n>=stage.height-a&&!i&&!t?n-a:n:STATE.siteView.unifiedPageScroll()&&/vScroll/.test(STATE.overrides.transitionType)?n===stage.height&&/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?n-(a+r):n:/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?n-(a+r):n-r)+o},size:{x:function(){return/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)?0:layoutCalcs.mediaView.x()},y:function(e){return/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)?0:layoutCalcs.mediaView.y(e)},width:function(){return layoutCalcs.mediaView.width()},height:function(e){return layoutCalcs.mediaView.height(e)}}},landingMediaView:{x:function(){return 0},y:function(){return 0},width:function(){return stage.width},height:function(){return stage.height}},mediaMask:{x:function(){return"contact"===layoutCalcs._mediaMarginPrefix?0:percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginLeft"],stage.width)},y:function(e){return"contact"===layoutCalcs._mediaMarginPrefix?0:percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginTop"],stage.height)},width:function(e){return"contact"===layoutCalcs._mediaMarginPrefix?layoutCalcs.mediaView.width():(e||layoutCalcs.mediaView.width())-(percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginLeft"],stage.width)+percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginRight"],stage.width))},height:function(e,t){return"contact"===layoutCalcs._mediaMarginPrefix?layoutCalcs.mediaView.height(t):(e||layoutCalcs.mediaView.height(t))-(percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginTop"],stage.height)+percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginBottom"],stage.height))}},captionView:{size:function(e,t){layoutCalcs.captionView.currentText=e||layoutCalcs.captionView.currentText;var e=document.createElement("span"),i=getFontData(LAYOUT_MODEL.captionFont),n=(e.innerHTML=layoutCalcs.captionView.currentText,"padding:"+(t||0)+"px"),i=(e.setAttribute("style","position:absolute; display:block; white-space:nowrap; opacity:1; font-family:"+i.family+"; font-weight:"+i.weight+"; font-size:"+LAYOUT_MODEL.captionFontSize+"px;"+n),document.body.appendChild(e),percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginLeft"],stage.height)),n=percentToPixels(STATE.overrides[layoutCalcs._mediaMarginPrefix+"MarginRight"],stage.height),i=STATE.mediaView.width()-(i+n)-2*t;e.offsetWidth>i?(layoutCalcs.captionView.width=i+2*t,e.style.width=i+2*t+"px",e.style.whiteSpace="normal"):layoutCalcs.captionView.width=e.offsetWidth,layoutCalcs.captionView.height=e.offsetHeight,document.body.removeChild(e)}},isDisplace:function(){return!(USER_AGENT===MOBILE||!layoutCalcs._section||!layoutCalcs._thumbsVisible)&&layoutCalcs._section.thumb&&"strip"===STATE.overrides.thumbnailType&&"displace"===STATE.overrides.thumbnailDock}};function touchDeviceTransition(){return isPod()&&LAYOUT_MODEL.transitionTypeMobile?LAYOUT_MODEL.transitionTypeMobile:isPad()&&LAYOUT_MODEL.transitionTypeTablet?LAYOUT_MODEL.transitionTypeTablet:void 0}function updateCustomThumbSize(e,t){return{custom:{width:e||300,height:t||200},small:{width:100,height:66},medium:{width:200,height:133},large:{width:300,height:200},xLarge:{width:400,height:266},xxLarge:{width:500,height:333},small_sq:{width:100,height:100},medium_sq:{width:200,height:200},large_sq:{width:300,height:300},xLarge_sq:{width:400,height:400},xxLarge_sq:{width:500,height:500},small_v:{width:66,height:100},medium_v:{width:133,height:200},large_v:{width:200,height:300},xLarge_v:{width:266,height:400},xxLarge_v:{width:333,height:500}}}var STATE={get lightboxHash(){return localStorage.getItem("lightboxHash")},cacheLightboxSection:function(){var e=Object.keys(SECTIONS_MODEL).map(function(e){return SECTIONS_MODEL[e]}).filter(function(e){return e.isLightbox})[0];(STATE.lightboxSection=e)||localStorage.removeItem("lightboxHash")},lightboxButtonsEnabled:function(){return STATE.lightboxSection&&(STATE.lightboxSection.isUserEnableLightbox&&(STATE.userEnabledLightbox||STATE.lightboxSection.media.length)||!STATE.lightboxSection.isUserEnableLightbox)},setSectionHeight:function(e,t){layoutCalcs.updateSectionState(e,{height:t})},getSectionHeight:function(e){var t=layoutCalcs.getSectionState(e);return(e&&t&&("unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior||STATE.siteView.unifiedPageScroll())?t:stage).height},getSectionZoneHeight:function(e){var t=layoutCalcs.getSectionState(e);return e&&t&&"unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior?t.zoneHeight:stage.height},overrides:{logoZIndex:LAYOUT_MODEL.logoZIndex,containerColor:LAYOUT_MODEL.containerColor,transitionType:touchDeviceTransition()||LAYOUT_MODEL.transitionType,transitionDuration:LAYOUT_MODEL.transitionDuration,imageAlignHorizontal:LAYOUT_MODEL.imageAlignHorizontal,imageAlignVertical:LAYOUT_MODEL.imageAlignVertical,imageScaleType:LAYOUT_MODEL.imageScaleType,videoScaleType:LAYOUT_MODEL.videoScaleType,videoAutoPlay:LAYOUT_MODEL.videoAutoPlay,mobileAutoPlay:LAYOUT_MODEL.mobileAutoPlay,vimeoDefault:LAYOUT_MODEL.vimeoDefault,videoLoop:LAYOUT_MODEL.videoLoop,imageVideoMarginTop:LAYOUT_MODEL.imageVideoMarginTop,imageVideoMarginRight:LAYOUT_MODEL.imageVideoMarginRight,imageVideoMarginBottom:LAYOUT_MODEL.imageVideoMarginBottom,imageVideoMarginLeft:LAYOUT_MODEL.imageVideoMarginLeft,imageVideoHSlideReveal:LAYOUT_MODEL.imageVideoHSlideReveal,imageVideoInactiveAlpha:LAYOUT_MODEL.imageVideoInactiveAlpha,imageVideoLoaderType:LAYOUT_MODEL.imageVideoLoaderType,imageVideoScrollType:LAYOUT_MODEL.imageVideoScrollType,imageVideoScrollbarRounded:LAYOUT_MODEL.imageVideoScrollbarRounded,imageVideoScrollbarVisibility:LAYOUT_MODEL.imageVideoScrollbarVisibility,imageVideoScrollbarAlignment:LAYOUT_MODEL.imageVideoScrollbarAlignment,imageVideoScrollbarHorizontalOffset:LAYOUT_MODEL.imageVideoScrollbarHorizontalOffset,imageVideoScrollbarVerticalOffset:LAYOUT_MODEL.imageVideoScrollbarVerticalOffset,imageVideoScrollbarColor:LAYOUT_MODEL.imageVideoScrollbarColor,imageVideoScrollbarHover:LAYOUT_MODEL.imageVideoScrollbarHover,imageVideoScrollbarBgTransparency:LAYOUT_MODEL.imageVideoScrollbarBgTransparency,imageVideoScrollbarWidth:LAYOUT_MODEL.imageVideoScrollbarWidth,menuDisplaceMobile:""===LAYOUT_MODEL.menuDisplaceMobile||void 0===LAYOUT_MODEL.menuDisplaceMobile||LAYOUT_MODEL.menuDisplaceMobile,menuDisplaceTablet:""===LAYOUT_MODEL.menuDisplaceTablet||void 0===LAYOUT_MODEL.menuDisplaceTablet||LAYOUT_MODEL.menuDisplaceTablet,pageMarginTop:LAYOUT_MODEL.pageMarginTop,pageMarginRight:LAYOUT_MODEL.pageMarginRight,pageMarginBottom:LAYOUT_MODEL.pageMarginBottom,pageMarginLeft:LAYOUT_MODEL.pageMarginLeft,pageMaxWidth:LAYOUT_MODEL.pageMaxWidth,pageMaxAlign:LAYOUT_MODEL.pageMaxAlign,pageScrollVerticalMargin:LAYOUT_MODEL.pageScrollVerticalMargin,pageTextFont:LAYOUT_MODEL.pageTextFont,pageTextKerning:LAYOUT_MODEL.pageTextKerning,pageTextFontSize:LAYOUT_MODEL.pageTextFontSize,pageTextFontColor:LAYOUT_MODEL.pageTextFontColor,pageTitle:LAYOUT_MODEL.pageTitle,pageTitleFont:LAYOUT_MODEL.pageTitleFont,pageTitleKerning:LAYOUT_MODEL.pageTitleKerning,pageTitleFontSize:LAYOUT_MODEL.pageTitleFontSize,pageTitleFontColor:LAYOUT_MODEL.pageTitleFontColor,pageScrollType:LAYOUT_MODEL.pageScrollType,pageScrollbarVisibility:LAYOUT_MODEL.pageScrollbarVisibility,pageScrollbarRounded:LAYOUT_MODEL.pageScrollbarRounded,pageScrollbarAlignment:LAYOUT_MODEL.pageScrollbarAlignment,pageScrollbarHorizontalOffset:LAYOUT_MODEL.pageScrollbarHorizontalOffset,pageScrollbarVerticalOffset:LAYOUT_MODEL.pageScrollbarVerticalOffset,pageScrollbarColor:LAYOUT_MODEL.pageScrollbarColor,pageScrollbarHover:LAYOUT_MODEL.pageScrollbarHover,pageScrollbarBgAlpha:LAYOUT_MODEL.pageScrollbarBgAlpha,pageScrollbarWidth:LAYOUT_MODEL.pageScrollbarWidth,thumbnailOnly:LAYOUT_MODEL.thumbnailOnly,thumbnailFullRes:LAYOUT_MODEL.thumbnailFullRes,thumbnailDefaultOn:LAYOUT_MODEL.thumbnailDefaultOn,thumbnailPositionFixed:LAYOUT_MODEL.thumbnailPositionFixed,thumbnailMasonry:LAYOUT_MODEL.thumbnailMasonry,thumbnailMasonryFill:LAYOUT_MODEL.thumbnailMasonryFill,thumbnailMasonryMaintainOrder:LAYOUT_MODEL.thumbnailMasonryMaintainOrder,thumbnailMaxCols:LAYOUT_MODEL.thumbnailMaxCols,thumbnailMinCols:LAYOUT_MODEL.thumbnailMinCols,thumbnailMaxColsMobile:LAYOUT_MODEL.thumbnailMaxColsMobile,thumbnailMinColsMobile:LAYOUT_MODEL.thumbnailMinColsMobile,thumbnailGap:Number(LAYOUT_MODEL.thumbnailGap),thumbnailGapVertical:Number(LAYOUT_MODEL.thumbnailGapVertical),thumbnailDock:LAYOUT_MODEL.thumbnailDock,thumbnailType:LAYOUT_MODEL.thumbnailType,thumbnailSize:LAYOUT_MODEL.thumbnailSize,thumbnailRandomize:LAYOUT_MODEL.thumbnailRandomize,thumbnailRandomInterval:LAYOUT_MODEL.thumbnailRandomInterval,thumbnailCustomWidth:LAYOUT_MODEL.thumbnailCustomWidth,thumbnailCustomHeight:LAYOUT_MODEL.thumbnailCustomHeight,thumbnailSide:LAYOUT_MODEL.thumbnailSide,thumbnailHorizontalMargin:LAYOUT_MODEL.thumbnailHorizontalMargin,thumbnailVerticalMargin:LAYOUT_MODEL.thumbnailVerticalMargin,thumbnailAlignHorizontal:LAYOUT_MODEL.thumbnailAlignHorizontal,thumbnailAlignVertical:LAYOUT_MODEL.thumbnailAlignVertical,thumbnailCornerRadius:LAYOUT_MODEL.thumbnailCornerRadius,thumbnailShadow:LAYOUT_MODEL.thumbnailShadow,thumbnailOverlayColor:LAYOUT_MODEL.overlayColor,thumbnailOverlayAlpha:LAYOUT_MODEL.overlayAlpha,thumbnailGridColor:LAYOUT_MODEL.thumbnailGridColor,thumbnailGridTransparency:LAYOUT_MODEL.thumbnailGridTransparency,thumbnailHoverAlpha:LAYOUT_MODEL.thumbnailHoverAlpha,thumbnailHoverAlphaMobile:LAYOUT_MODEL.thumbnailHoverAlphaMobile,thumbnailHoverAlphaTablet:LAYOUT_MODEL.thumbnailHoverAlphaTablet,thumbnailHoverColor:LAYOUT_MODEL.thumbnailHoverColor,thumbnailLoaderType:LAYOUT_MODEL.thumbnailLoaderType,thumbnailTitleFont:LAYOUT_MODEL.thumbnailTitleFont,thumbnailTitleFontSize:LAYOUT_MODEL.thumbnailTitleFontSize,thumbnailTitleFontColor:LAYOUT_MODEL.thumbnailTitleFontColor,thumbnailLabelVerticalOffset:LAYOUT_MODEL.thumbnailLabelVerticalOffset,thumbnailLabelColorMobile:LAYOUT_MODEL.thumbnailLabelColorMobile,thumbnailLabelColorTablet:LAYOUT_MODEL.thumbnailLabelColorTablet,thumbnailLabelPosition:LAYOUT_MODEL.thumbnailLabelPosition,thumbnailLabelJustification:LAYOUT_MODEL.thumbnailLabelJustification,thumbnailLabelPositionMobile:LAYOUT_MODEL.thumbnailLabelPositionMobile,thumbnailLabelPositionTablet:LAYOUT_MODEL.thumbnailLabelPositionTablet,thumbnailStdLabelPosition:LAYOUT_MODEL.thumbnailStdLabelPosition,thumbnailStdLabelPositionMobile:LAYOUT_MODEL.thumbnailStdLabelPositionMobile,thumbnailStdLabelPositionTablet:LAYOUT_MODEL.thumbnailStdLabelPositionTablet,thumbnailVideoPlayIcon:!1!==LAYOUT_MODEL.thumbnailVideoPlayIcon,thumbnailScrollbarAlignment:LAYOUT_MODEL.thumbnailScrollbarAlignment,thumbnailScrollbarColor:LAYOUT_MODEL.thumbnailScrollbarColor,thumbnailScrollbarHover:LAYOUT_MODEL.thumbnailScrollbarHover,thumbnailSelectedColor:LAYOUT_MODEL.thumbnailSelectedColor,thumbnailSelectedAlpha:LAYOUT_MODEL.thumbnailSelectedAlpha,thumbnailScrollbarHorizontalOffset:LAYOUT_MODEL.thumbnailScrollbarHorizontalOffset,thumbnailScrollbarVerticalOffset:LAYOUT_MODEL.thumbnailScrollbarVerticalOffset,thumbnailScrollType:LAYOUT_MODEL.thumbnailScrollType,thumbnailScrollbarBgAlpha:LAYOUT_MODEL.thumbnailScrollbarBgAlpha,thumbnailScrollbarWidth:LAYOUT_MODEL.thumbnailScrollbarWidth,thumbnailScrollbarVisibility:LAYOUT_MODEL.thumbnailScrollbarVisibility,thumbnailScrollbarRounded:LAYOUT_MODEL.thumbnailScrollbarRounded,captionAutoPosition:LAYOUT_MODEL.captionAutoPosition,captionDefault:LAYOUT_MODEL.captionDefault,captionUseTitle:LAYOUT_MODEL.captionUseTitle,captionCloseButton:LAYOUT_MODEL.captionCloseButton,captionBackgroundAlpha:LAYOUT_MODEL.captionBackgroundAlpha,captionBackgroundRectColor:LAYOUT_MODEL.captionBackgroundRectColor,captionFont:LAYOUT_MODEL.captionFont,captionFontColor:LAYOUT_MODEL.captionFontColor,captionFontSize:LAYOUT_MODEL.captionFontSize,captionFontSizeBreakpoint:LAYOUT_MODEL.captionFontSizeBreakpoint,captionWidth:LAYOUT_MODEL.captionWidth,captionHeight:LAYOUT_MODEL.captionHeight,captionAlignHorizontal:LAYOUT_MODEL.captionAlignHorizontal,captionAlignVertical:LAYOUT_MODEL.captionAlignVertical,captionOffsetX:LAYOUT_MODEL.captionOffsetX,captionOffsetY:LAYOUT_MODEL.captionOffsetY,captionTextAlign:LAYOUT_MODEL.captionTextAlign,captionTextAlignVertical:LAYOUT_MODEL.captionTextAlignVertical,captionPaddingTop:LAYOUT_MODEL.captionPaddingTop,captionPaddingRight:LAYOUT_MODEL.captionPaddingRight,captionPaddingBottom:LAYOUT_MODEL.captionPaddingBottom,captionPaddingLeft:LAYOUT_MODEL.captionPaddingLeft,captionScrollType:LAYOUT_MODEL.captionScrollType,captionScrollbarWidth:LAYOUT_MODEL.captionScrollbarWidth,captionScrollbarAlignment:LAYOUT_MODEL.captionScrollbarAlignment,captionScrollbarColor:LAYOUT_MODEL.captionScrollbarColor,captionScrollbarHover:LAYOUT_MODEL.captionScrollbarHover,captionScrollbarHorizontalOffset:LAYOUT_MODEL.captionScrollbarHorizontalOffset,captionScrollbarVerticalOffset:LAYOUT_MODEL.captionScrollbarVerticalOffset,captionScrollbarBgAlpha:LAYOUT_MODEL.captionScrollbarBgAlpha,captionAnchorTo:LAYOUT_MODEL.captionAnchorTo,slideshowRandomize:LAYOUT_MODEL.landingMediaRandomize,slideshowTransitionType:LAYOUT_MODEL.landingMediaTransitionType,slideshowSpeed:LAYOUT_MODEL.landingMediaSpeed,slideshowTransitionDuration:LAYOUT_MODEL.landingMediaTransitionDuration,slideshowAlignHorizontal:LAYOUT_MODEL.landingMediaAlignHorizontal,slideshowAlignVertical:LAYOUT_MODEL.landingMediaAlignVertical,slideshowScaleType:LAYOUT_MODEL.landingMediaScaleType,slideshowScrollDownIcon:LAYOUT_MODEL.slideshowScrollDownIcon,siteDisplayBehavior:LAYOUT_MODEL.siteDisplayBehavior,siteDisplayGalleryOnlyOverlay:LAYOUT_MODEL.siteDisplayGalleryOnlyOverlay},section:function(t){if(!t)return!1;var i=t.overrides||{},n=t.thumb||{};layoutCalcs.isLandingMedia=isSlideshowGallery(t),layoutCalcs._section=t,STATE.overrides={get containerColor(){return firstValid(i.containerColor,LAYOUT_MODEL.containerColor)},get transitionType(){var e;return layoutCalcs.isLandingMedia?firstValid(i.transitionType,LAYOUT_MODEL.landingMediaTransitionType):(e=firstValid(touchDeviceTransition(),i.transitionType,LAYOUT_MODEL.transitionType),isPod()&&!/vScroll/.test(e)&&(e="mSlide"),isPad()&&!/vScroll|hScroll/.test(e)&&(e="mSlide"),TOUCH_DEVICE&&"hSlide"===e&&(e="mSlide"),isSingleTextPage(t)?"vScrollStatic":e)},get transitionDuration(){return firstValid(i.transitionDuration,LAYOUT_MODEL.transitionDuration)},get imageAlignHorizontal(){return USER_AGENT===MOBILE?"center":firstValid(i.imageAlignHorizontal,LAYOUT_MODEL.imageAlignHorizontal)},get imageAlignVertical(){return USER_AGENT===MOBILE?"center":firstValid(i.imageAlignVertical,LAYOUT_MODEL.imageAlignVertical)},get imageScaleType(){return firstValid(i.imageScaleType,LAYOUT_MODEL.imageScaleType)},get videoScaleType(){return firstValid(i.videoScaleType,LAYOUT_MODEL.videoScaleType)},get mobileAutoPlay(){return LAYOUT_MODEL.mobileAutoPlay},get videoAutoPlay(){return!!layoutCalcs.isLandingMedia||firstValid(i.videoAutoPlay,LAYOUT_MODEL.videoAutoPlay)},get vimeoDefault(){var e=""===LAYOUT_MODEL.vimeoDefault||void 0===LAYOUT_MODEL.vimeoDefault||LAYOUT_MODEL.vimeoDefault,t=LAYOUT_MODEL.vimeoDefaultMobile,i=LAYOUT_MODEL.vimeoDefaultTablet;return isPod()?firstValid(t,e):isPad()?firstValid(i,e):e},get videoLoop(){return firstValid(i.videoLoop,LAYOUT_MODEL.videoLoop)},get imageVideoMarginTop(){return USER_AGENT!==MOBILE||/vScroll/.test(STATE.overrides.transitionType)?firstValid(i.imageVideoMarginTop,LAYOUT_MODEL.imageVideoMarginTop):0},get imageVideoMarginRight(){return USER_AGENT===MOBILE?0:firstValid(i.imageVideoMarginRight,LAYOUT_MODEL.imageVideoMarginRight)},get imageVideoMarginBottom(){return USER_AGENT!==MOBILE||/vScroll/.test(STATE.overrides.transitionType)?firstValid(i.imageVideoMarginBottom,LAYOUT_MODEL.imageVideoMarginBottom):0},get imageVideoMarginLeft(){return USER_AGENT===MOBILE?0:firstValid(i.imageVideoMarginLeft,LAYOUT_MODEL.imageVideoMarginLeft)},get imageVideoHSlideReveal(){return percentToPixels(firstValid(i.imageVideoHSlideReveal,LAYOUT_MODEL.imageVideoHSlideReveal),stage.width)},get pageMarginTop(){var e=firstValid(i.pageMarginTop,LAYOUT_MODEL.pageMarginTop);return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.pageMarginTopMobile,50):isPod()?firstValid(LAYOUT_MODEL.pageMarginTopMobile,e):e},get pageMarginRight(){var e=firstValid(i.pageMarginRight,LAYOUT_MODEL.pageMarginRight);return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.pageMarginRightMobile,0):isPod()?firstValid(LAYOUT_MODEL.pageMarginRightMobile,e):e},get pageMarginBottom(){var e=firstValid(i.pageMarginBottom,LAYOUT_MODEL.pageMarginBottom);return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.pageMarginBottomMobile,0):isPod()?firstValid(LAYOUT_MODEL.pageMarginBottomMobile,e):e},get pageMarginLeft(){var e=firstValid(i.pageMarginLeft,LAYOUT_MODEL.pageMarginLeft);return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.pageMarginLeftMobile,0):isPod()?firstValid(LAYOUT_MODEL.pageMarginLeftMobile,e):e},get pageMaxWidth(){return percentToPixels(firstValid(i.pageMaxWidth,LAYOUT_MODEL.pageMaxWidth),stage.width)},get pageMaxAlign(){return firstValid(i.pageMaxAlign,LAYOUT_MODEL.pageMaxAlign)},get pageScrollVerticalMargin(){return firstValid(i.pageScrollVerticalMargin,LAYOUT_MODEL.pageScrollVerticalMargin)},get pageTextFont(){return firstValid(i.pageTextFont,LAYOUT_MODEL.pageTextFont)},get pageTextKerning(){return firstValid(i.pageTextKerning,LAYOUT_MODEL.pageTextKerning)},get pageTextFontSize(){return i.pageTextFontSize||LAYOUT_MODEL.pageTextFontSize},get pageTextFontColor(){return firstValid(i.pageTextFontColor,LAYOUT_MODEL.pageTextFontColor)},get pageTitle(){return firstValid(i.pageTitle,LAYOUT_MODEL.pageTitle)},get pageTitleFont(){return firstValid(i.pageTitleFont,LAYOUT_MODEL.pageTitleFont)},get pageTitleKerning(){return firstValid(i.pageTitleKerning,LAYOUT_MODEL.pageTitleKerning)},get pageTitleFontSize(){return i.pageTitleFontSize||LAYOUT_MODEL.pageTitleFontSize},get pageTitleFontColor(){return firstValid(i.pageTitleFontColor,LAYOUT_MODEL.pageTitleFontColor)},get pageScrollType(){return firstValid(i.pageScrollType,LAYOUT_MODEL.pageScrollType)},get pageScrollbarVisibility(){return firstValid(i.pageScrollbarVisibility,LAYOUT_MODEL.pageScrollbarVisibility)},get pageScrollbarRounded(){return firstValid(i.pageScrollbarRounded,LAYOUT_MODEL.pageScrollbarRounded)},get pageScrollbarAlignment(){return firstValid(i.pageScrollbarAlignment,LAYOUT_MODEL.pageScrollbarAlignment)},get pageScrollbarHorizontalOffset(){return firstValid(i.pageScrollbarHorizontalOffset,LAYOUT_MODEL.pageScrollbarHorizontalOffset)},get pageScrollbarVerticalOffset(){return firstValid(i.pageScrollbarVerticalOffset,LAYOUT_MODEL.pageScrollbarVerticalOffset)},get pageScrollbarColor(){return firstValid(i.pageScrollbarColor,LAYOUT_MODEL.pageScrollbarColor)},get pageScrollbarHover(){return firstValid(i.pageScrollbarHover,LAYOUT_MODEL.pageScrollbarHover)},get pageScrollbarBgAlpha(){return firstValid(i.pageScrollbarBgAlpha,LAYOUT_MODEL.pageScrollbarBgAlpha)},get pageScrollbarWidth(){return firstValid(i.pageScrollbarWidth,LAYOUT_MODEL.pageScrollbarWidth)},get imageVideoScrollType(){return firstValid(""===i.imageVideoScrollType?"scrollbar":i.imageVideoScrollType,LAYOUT_MODEL.imageVideoScrollType)},get imageVideoScrollbarRounded(){return firstValid(i.imageVideoScrollbarRounded,LAYOUT_MODEL.imageVideoScrollbarRounded)},get imageVideoScrollbarVisibility(){return firstValid(i.imageVideoScrollbarVisibility,LAYOUT_MODEL.imageVideoScrollbarVisibility)},get imageVideoInactiveAlpha(){return firstValid(i.imageVideoInactiveAlpha,LAYOUT_MODEL.imageVideoInactiveAlpha)},get imageVideoLoaderType(){return firstValid(i.imageVideoLoaderType,LAYOUT_MODEL.imageVideoLoaderType)},get imageVideoScrollbarAlignment(){return firstValid(i.imageVideoScrollbarAlignment,LAYOUT_MODEL.imageVideoScrollbarAlignment)},get imageVideoScrollbarHorizontalOffset(){return firstValid(i.imageVideoScrollbarHorizontalOffset,LAYOUT_MODEL.imageVideoScrollbarHorizontalOffset)},get imageVideoScrollbarVerticalOffset(){return firstValid(i.imageVideoScrollbarVerticalOffset,LAYOUT_MODEL.imageVideoScrollbarVerticalOffset)},get imageVideoScrollbarColor(){return firstValid(i.imageVideoScrollbarColor,LAYOUT_MODEL.imageVideoScrollbarColor)},get imageVideoScrollbarHover(){return firstValid(i.imageVideoScrollbarHover,LAYOUT_MODEL.imageVideoScrollbarHover)},get imageVideoScrollbarBgTransparency(){return firstValid(i.imageVideoScrollbarBgTransparency,LAYOUT_MODEL.imageVideoScrollbarBgTransparency)},get imageVideoScrollbarWidth(){return firstValid(i.imageVideoScrollbarWidth,LAYOUT_MODEL.imageVideoScrollbarWidth)},get menuDisplaceMobile(){return""===LAYOUT_MODEL.menuDisplaceMobile||void 0===LAYOUT_MODEL.menuDisplaceMobile||LAYOUT_MODEL.menuDisplaceMobile},get menuDisplaceTablet(){return""===LAYOUT_MODEL.menuDisplaceTablet||void 0===LAYOUT_MODEL.menuDisplaceTablet||LAYOUT_MODEL.menuDisplaceTablet},get overlayTitleFont(){return firstValid(LAYOUT_MODEL.overlayTitleFont,LAYOUT_MODEL.thumbnailTitleFont)},get overlayTitleFontSize(){return LAYOUT_MODEL.overlayTitleFontSize||LAYOUT_MODEL.thumbnailTitleFontSize},get overlayTitleFontColor(){return firstValid(LAYOUT_MODEL.overlayTitleFontColor,LAYOUT_MODEL.thumbnailTitleFontColor)},get thumbnailOnly(){return firstValid(n.only,LAYOUT_MODEL.thumbnailOnly)},get thumbnailFullRes(){return firstValid(n.fullRes,LAYOUT_MODEL.thumbnailFullRes)},get thumbnailDefaultOn(){return USER_AGENT===MOBILE?n.only||LAYOUT_MODEL.thumbnailOnly||firstValid(LAYOUT_MODEL.thumbnailDefaultOnMobile,n.defaultOn,LAYOUT_MODEL.thumbnailDefaultOn):n.only||LAYOUT_MODEL.thumbnailOnly||firstValid(n.defaultOn,LAYOUT_MODEL.thumbnailDefaultOn)},get thumbnailPositionFixed(){return USER_AGENT!==MOBILE&&firstValid(n.positionFixed,LAYOUT_MODEL.thumbnailPositionFixed)},get thumbnailMasonry(){if(USER_AGENT===MOBILE)return!0;switch(firstValid(n.type,LAYOUT_MODEL.thumbnailType)){case"vMasonry":case"hMasonry":return!0;default:return!1}},get thumbnailMasonryFill(){if(USER_AGENT===MOBILE)return!0;var e=!!STATE.overrides.thumbnailMinCols,t=firstValid(n.masonryFill,LAYOUT_MODEL.thumbnailMasonryFill),i=firstValid(n.type,LAYOUT_MODEL.thumbnailType);if(void 0===i)return t;switch(i){case"vMasonry":return e||t;case"hMasonry":return t;default:return!1}},get thumbnailMasonryMaintainOrder(){return firstValid(n.masonryMaintainOrder,LAYOUT_MODEL.thumbnailMasonryMaintainOrder)},get thumbnailVMasonryMaxCols(){return"hMasonryHScroll"===firstValid(n.type,LAYOUT_MODEL.thumbnailType)?5e3:USER_AGENT===MOBILE?firstValid(n.maxColsMobile,LAYOUT_MODEL.thumbnailMaxColsMobile,3):isPod()?firstValid(n.maxColsMobile,LAYOUT_MODEL.thumbnailMaxColsMobile,n.maxCols,LAYOUT_MODEL.thumbnailMaxCols):firstValid(n.maxCols,LAYOUT_MODEL.thumbnailMaxCols)},get thumbnailVMasonryMinCols(){var e=USER_AGENT===MOBILE?firstValid(n.minColsMobile,LAYOUT_MODEL.thumbnailMinColsMobile,1):isPod()?firstValid(n.minColsMobile,LAYOUT_MODEL.thumbnailMinColsMobile,n.minCols,LAYOUT_MODEL.thumbnailMinCols):firstValid(n.minCols,LAYOUT_MODEL.thumbnailMinCols);return Math.min(e,STATE.overrides.thumbnailVMasonryMaxCols)},get thumbnailHMasonryMaxCols(){return USER_AGENT===MOBILE?firstValid(n.hMasonryMaxColsMobile,LAYOUT_MODEL.thumbnailHMasonryMaxColsMobile,3):isPod()?firstValid(n.hMasonryMaxColsMobile,LAYOUT_MODEL.thumbnailHMasonryMaxColsMobile,n.hMasonryMaxCols,LAYOUT_MODEL.thumbnailHMasonryMaxCols):firstValid(n.hMasonryMaxCols,LAYOUT_MODEL.thumbnailHMasonryMaxCols)},get thumbnailHMasonryMinCols(){var e=USER_AGENT===MOBILE?firstValid(n.hMasonryMinColsMobile,LAYOUT_MODEL.thumbnailHMasonryMinColsMobile,1):isPod()?firstValid(n.hMasonryMinColsMobile,LAYOUT_MODEL.thumbnailHMasonryMinColsMobile,n.hMasonryMinCols,LAYOUT_MODEL.thumbnailHMasonryMinCols):firstValid(n.hMasonryMinCols,LAYOUT_MODEL.thumbnailHMasonryMinCols);return Math.min(e,STATE.overrides.thumbnailHMasonryMaxCols)},get thumbnailGapRaw(){return USER_AGENT===MOBILE?LAYOUT_MODEL.thumbnailGapMobile||0:isPod()?firstValid(LAYOUT_MODEL.thumbnailGapMobile,n.gap,LAYOUT_MODEL.thumbnailGap):firstValid(n.gap,LAYOUT_MODEL.thumbnailGap)},get thumbnailGapVerticalRaw(){return USER_AGENT===MOBILE?LAYOUT_MODEL.thumbnailGapVerticalMobile||0:isPod()?firstValid(LAYOUT_MODEL.thumbnailGapVerticalMobile,n.gapVertical,LAYOUT_MODEL.thumbnailGapVertical,n.gap,LAYOUT_MODEL.thumbnailGap):firstValid(n.gapVertical,LAYOUT_MODEL.thumbnailGapVertical,n.gap,LAYOUT_MODEL.thumbnailGap)},get thumbnailGap(){return percentToPixels(STATE.overrides.thumbnailGapRaw,stage.width)},get thumbnailGapVertical(){return percentToPixels(STATE.overrides.thumbnailGapVerticalRaw,stage.width)},get hGapPercent(){return gapPercent(STATE.overrides.thumbnailGapRaw,1500,stage.width)},get vGapPercent(){return gapPercent(STATE.overrides.thumbnailGapVerticalRaw,1500,stage.width)},get thumbnailDock(){return firstValid(n.dock,LAYOUT_MODEL.thumbnailDock)},get thumbnailType(){var e,t;return USER_AGENT===MOBILE?"none"===firstValid(n.type,LAYOUT_MODEL.thumbnailType)?"none":"vMasonry":(e=firstValid(n.masonry,LAYOUT_MODEL.thumbnailMasonry),"fill"===(t=n.type&&"default"!==n.type?firstValid(n.type,LAYOUT_MODEL.thumbnailType):LAYOUT_MODEL.thumbnailType)&&e?"vMasonry":t)},get thumbnailRandomize(){return firstValid(n.randomize,LAYOUT_MODEL.thumbnailRandomize)},get thumbnailRandomInterval(){return firstValid(n.randomizeInterval,LAYOUT_MODEL.thumbnailRandomInterval,24)},get thumbnailSize(){return USER_AGENT===MOBILE?(THUMB_SIZES=updateCustomThumbSize(LAYOUT_MODEL.thumbnailCustomWidthMobile,LAYOUT_MODEL.thumbnailCustomHeightMobile),LAYOUT_MODEL.thumbnailSizeMobile||"xLarge"):isPod()?(THUMB_SIZES=updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthMobile,n.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightMobile,n.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)),firstValid(LAYOUT_MODEL.thumbnailSizeMobile,n.size,LAYOUT_MODEL.thumbnailSize)):isPad()?(THUMB_SIZES=updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthTablet,n.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightTablet,n.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)),firstValid(LAYOUT_MODEL.thumbnailSizeTablet,n.size,LAYOUT_MODEL.thumbnailSize)):(THUMB_SIZES=updateCustomThumbSize(firstValid(n.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(n.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)),firstValid(n.size,LAYOUT_MODEL.thumbnailSize))},get thumbnailCustomWidth(){return(THUMB_SIZES=isPod()?updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthMobile,n.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightMobile,n.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)):isPad()?updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthTablet,n.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightTablet,n.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)):updateCustomThumbSize(firstValid(n.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(n.customHeight,LAYOUT_MODEL.thumbnailCustomHeight))).custom.width},get thumbnailCustomHeight(){return(THUMB_SIZES=isPod()?updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthMobile,n.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightMobile,n.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)):isPad()?updateCustomThumbSize(firstValid(LAYOUT_MODEL.thumbnailCustomWidthTablet,n.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(LAYOUT_MODEL.thumbnailCustomHeightTablet,n.customHeight,LAYOUT_MODEL.thumbnailCustomHeight)):updateCustomThumbSize(firstValid(n.customWidth,LAYOUT_MODEL.thumbnailCustomWidth),firstValid(n.customHeight,LAYOUT_MODEL.thumbnailCustomHeight))).custom.height},get thumbnailSide(){return firstValid(n.side,LAYOUT_MODEL.thumbnailSide)},get thumbnailHorizontalMargin(){var e=USER_AGENT===MOBILE?LAYOUT_MODEL.thumbnailHorizontalMarginMobile||0:isPod()?firstValid(LAYOUT_MODEL.thumbnailHorizontalMarginMobile,n.horizontalMargin,LAYOUT_MODEL.thumbnailHorizontalMargin):firstValid(n.horizontalMargin,LAYOUT_MODEL.thumbnailHorizontalMargin);return percentToPixels(e,stage.width)},get thumbnailVerticalMargin(){var e=USER_AGENT===MOBILE?LAYOUT_MODEL.thumbnailVerticalMarginMobile||0:isPod()?firstValid(LAYOUT_MODEL.thumbnailVerticalMarginMobile,n.verticalMargin,LAYOUT_MODEL.thumbnailVerticalMargin):firstValid(n.verticalMargin,LAYOUT_MODEL.thumbnailVerticalMargin);return percentToPixels(e,stage.width)},get thumbnailAlignHorizontal(){return firstValid(n.alignHorizontal,LAYOUT_MODEL.thumbnailAlignHorizontal)},get thumbnailAlignVertical(){return firstValid(n.alignVertical,LAYOUT_MODEL.thumbnailAlignVertical)},get thumbnailCornerRadius(){return firstValid(n.cornerRadius,LAYOUT_MODEL.thumbnailCornerRadius)||0},get thumbnailShadow(){return firstValid(n.shadow,LAYOUT_MODEL.thumbnailShadow)||""},get thumbnailOverlayColor(){return firstValid(n.overlayColor,LAYOUT_MODEL.overlayColor)},get thumbnailOverlayAlpha(){return firstValid(n.overlayAlpha,LAYOUT_MODEL.overlayAlpha)},get thumbnailGridColor(){return firstValid(n.gridColor,LAYOUT_MODEL.thumbnailGridColor)},get thumbnailGridTransparency(){return firstValid(n.gridTransparency,LAYOUT_MODEL.thumbnailGridTransparency)},get thumbnailHoverAlpha(){return firstValid(n.hoverAlpha,LAYOUT_MODEL.thumbnailHoverAlpha)},get thumbnailHoverAlphaMobile(){return LAYOUT_MODEL.thumbnailHoverAlphaMobile},get thumbnailHoverAlphaTablet(){return LAYOUT_MODEL.thumbnailHoverAlphaTablet},get thumbnailHoverColor(){return firstValid(n.hoverColor,LAYOUT_MODEL.thumbnailHoverColor)},get thumbnailLoaderType(){return firstValid(n.loaderType,LAYOUT_MODEL.thumbnailLoaderType,"spinner")},get thumbnailTitleFont(){return isPod()?firstValid(LAYOUT_MODEL.thumbnailTitleFontMobile,LAYOUT_MODEL.thumbnailTitleFont):isPad()?firstValid(LAYOUT_MODEL.thumbnailTitleFontTablet,LAYOUT_MODEL.thumbnailTitleFont):firstValid(n.titleFont,LAYOUT_MODEL.thumbnailTitleFont)},get thumbnailTitleFontSize(){return isPod()?LAYOUT_MODEL.thumbnailTitleFontSizeMobile||n.titleFontSize||LAYOUT_MODEL.thumbnailTitleFontSize:isPad()?LAYOUT_MODEL.thumbnailTitleFontSizeTablet||n.titleFontSize||LAYOUT_MODEL.thumbnailTitleFontSize:n.titleFontSize||LAYOUT_MODEL.thumbnailTitleFontSize},get thumbnailTitleFontColor(){return isPod()?firstValid(LAYOUT_MODEL.thumbnailTitleFontColorMobile,LAYOUT_MODEL.thumbnailLabelColorMobile,n.titleFontColor,LAYOUT_MODEL.thumbnailTitleFontColor):isPad()?firstValid(LAYOUT_MODEL.thumbnailTitleFontColorTablet,LAYOUT_MODEL.thumbnailLabelColorTablet,n.titleFontColor,LAYOUT_MODEL.thumbnailTitleFontColor):firstValid(n.titleFontColor,LAYOUT_MODEL.thumbnailTitleFontColor)},get thumbnailLabelVerticalOffset(){return firstValid(n.labelVerticalOffset,LAYOUT_MODEL.thumbnailLabelVerticalOffset)},get thumbnailLabelColorMobile(){return LAYOUT_MODEL.thumbnailLabelColorMobile},get thumbnailLabelColorTablet(){return LAYOUT_MODEL.thumbnailLabelColorTablet},get thumbnailLabelPosition(){return firstValid(n.labelPosition,LAYOUT_MODEL.thumbnailLabelPosition)},get thumbnailLabelJustification(){return firstValid(n.labelJustification,LAYOUT_MODEL.thumbnailLabelJustification)},get thumbnailStdLabelPosition(){return n.stdLabelPosition},get thumbnailStdLabelJustification(){return n.stdLabelJustification},get thumbnailLabelPositionMobile(){var e=/^hover/.test(n.labelPosition)?"bottom":n.labelPosition,t=/^hover/.test(LAYOUT_MODEL.thumbnailLabelPosition)?"bottom":LAYOUT_MODEL.thumbnailLabelPosition;return firstValid(LAYOUT_MODEL.thumbnailLabelPositionMobile,e,t,void 0)},get thumbnailStdLabelPositionMobile(){return firstValid(/^hover/.test(n.stdLabelPositionMobile)?"over":n.stdLabelPositionMobile,/^hover/.test(LAYOUT_MODEL.thumbnailStdLabelPositionMobile)?"over":LAYOUT_MODEL.thumbnailStdLabelPositionMobile,void 0)},get thumbnailLabelPositionTablet(){var e=/^hover/.test(n.labelPosition)?"bottom":n.labelPosition,t=/^hover/.test(LAYOUT_MODEL.thumbnailLabelPosition)?"bottom":LAYOUT_MODEL.thumbnailLabelPosition;return firstValid(LAYOUT_MODEL.thumbnailLabelPositionTablet,e,t,void 0)},get thumbnailStdLabelPositionTablet(){return firstValid(/^hover/.test(n.stdLabelPositionTablet)?"over":n.stdLabelPositionTablet,/^hover/.test(LAYOUT_MODEL.thumbnailStdLabelPositionTablet)?"over":LAYOUT_MODEL.thumbnailStdLabelPositionTablet,void 0)},get thumbnailVideoPlayIcon(){return firstValid(n.videoPlayIcon,!1!==LAYOUT_MODEL.thumbnailVideoPlayIcon)},get thumbnailScrollbarAlignment(){return firstValid(n.scrollbarAlignment,LAYOUT_MODEL.thumbnailScrollbarAlignment)},get thumbnailScrollbarColor(){return firstValid(n.scrollbarColor,LAYOUT_MODEL.thumbnailScrollbarColor)},get thumbnailScrollbarHover(){return firstValid(n.scrollbarHover,LAYOUT_MODEL.thumbnailScrollbarHover)},get thumbnailSelectedColor(){return firstValid(n.selectedColor,LAYOUT_MODEL.thumbnailSelectedColor)},get thumbnailSelectedAlpha(){return firstValid(n.selectedAlpha,LAYOUT_MODEL.thumbnailSelectedAlpha,LAYOUT_MODEL.thumbnailHoverAlpha)},get thumbnailScrollbarHorizontalOffset(){return firstValid(n.scrollbarHorizontalOffset,LAYOUT_MODEL.thumbnailScrollbarHorizontalOffset)},get thumbnailScrollbarVerticalOffset(){return firstValid(n.scrollbarVerticalOffset,LAYOUT_MODEL.thumbnailScrollbarVerticalOffset)},get thumbnailScrollType(){var e=firstValid(n.scrollType,LAYOUT_MODEL.thumbnailScrollType);return"mouse cursor"===e&&(e="nativeMacOs"),e="none"!==STATE.overrides.siteDisplayBehavior?"nativeMacOs":e},get thumbnailScrollbarBgAlpha(){return firstValid(n.scrollbarBgAlpha,LAYOUT_MODEL.thumbnailScrollbarBgAlpha)},get thumbnailScrollbarWidth(){return firstValid(n.scrollbarWidth,LAYOUT_MODEL.thumbnailScrollbarWidth)},get thumbnailScrollbarVisibility(){return firstValid(n.scrollbarVisibility,LAYOUT_MODEL.thumbnailScrollbarVisibility)},get thumbnailScrollbarRounded(){return firstValid(n.scrollbarRounded,LAYOUT_MODEL.thumbnailScrollbarRounded)},get thumbnailTitleBlockTopMargin(){return isPod()?firstValid(LAYOUT_MODEL.thumbnailTitleBlockTopMarginMobile,LAYOUT_MODEL.thumbnailTitleBlockTopMargin)||0:LAYOUT_MODEL.thumbnailTitleBlockTopMargin||0},get captionAutoPosition(){return USER_AGENT===MOBILE&&LAYOUT_MODEL.captionMobileOverrides||firstValid(i.captionAutoPosition,LAYOUT_MODEL.captionAutoPosition)},get captionDefault(){return firstValid(i.captionDefault,LAYOUT_MODEL.captionDefault)},get captionUseTitle(){return firstValid(i.captionUseTitle,LAYOUT_MODEL.captionUseTitle)},get captionCloseButton(){return firstValid(i.captionCloseButton,LAYOUT_MODEL.captionCloseButton)},get captionBackgroundAlpha(){return firstValid(i.captionBackgroundAlpha,LAYOUT_MODEL.captionBackgroundAlpha)},get captionBackgroundRectColor(){return firstValid(i.captionBackgroundRectColor,LAYOUT_MODEL.captionBackgroundRectColor)},get captionFont(){return firstValid(i.captionFont,LAYOUT_MODEL.captionFont)},get captionFontColor(){return firstValid(i.captionFontColor,LAYOUT_MODEL.captionFontColor)},get captionFontSize(){return i.captionFontSize||LAYOUT_MODEL.captionFontSize},get captionFontSizeBreakpoint(){return i.captionFontSizeBreakpoint||LAYOUT_MODEL.captionFontSizeBreakpoint||i.captionFontSize||LAYOUT_MODEL.captionFontSize},get captionWidth(){return percentToPixels(firstValid(i.captionWidth,LAYOUT_MODEL.captionWidth),stage.width)},get captionHeight(){return percentToPixels(firstValid(i.captionHeight,LAYOUT_MODEL.captionHeight),stage.height)},get captionAlignHorizontal(){return firstValid(i.captionAlignHorizontal,LAYOUT_MODEL.captionAlignHorizontal)},get captionAlignVertical(){return firstValid(i.captionAlignVertical,LAYOUT_MODEL.captionAlignVertical)},get captionMobileOverrides(){return USER_AGENT===MOBILE&&LAYOUT_MODEL.captionMobileOverrides},get captionOffsetX(){return percentToPixels(firstValid(i.captionOffsetX,LAYOUT_MODEL.captionOffsetX),stage.width)},get captionOffsetY(){return percentToPixels(firstValid(i.captionOffsetY,LAYOUT_MODEL.captionOffsetY),stage.height)},get captionTextAlign(){return firstValid(i.captionTextAlign,LAYOUT_MODEL.captionTextAlign)},get captionTextAlignVertical(){return firstValid(i.captionTextAlignVertical,LAYOUT_MODEL.captionTextAlignVertical)},get captionPaddingTop(){return percentToPixels(firstValid(i.captionPaddingTop,LAYOUT_MODEL.captionPaddingTop),stage.height)},get captionPaddingRight(){return percentToPixels(firstValid(i.captionPaddingRight,LAYOUT_MODEL.captionPaddingRight),stage.width)},get captionPaddingBottom(){return percentToPixels(firstValid(i.captionPaddingBottom,LAYOUT_MODEL.captionPaddingBottom),stage.height)},get captionPaddingLeft(){return percentToPixels(firstValid(i.captionPaddingLeft,LAYOUT_MODEL.captionPaddingLeft),stage.width)},get captionScrollType(){return firstValid(i.captionScrollType,LAYOUT_MODEL.captionScrollType)},get captionScrollbarWidth(){return firstValid(i.captionScrollbarWidth,LAYOUT_MODEL.captionScrollbarWidth)},get captionScrollbarAlignment(){return firstValid(i.captionScrollbarAlignment,LAYOUT_MODEL.captionScrollbarAlignment)},get captionScrollbarColor(){return firstValid(i.captionScrollbarColor,LAYOUT_MODEL.captionScrollbarColor)},get captionScrollbarHover(){return firstValid(i.captionScrollbarHover,LAYOUT_MODEL.captionScrollbarHover)},get captionScrollbarHorizontalOffset(){return firstValid(i.captionScrollbarHorizontalOffset,LAYOUT_MODEL.captionScrollbarHorizontalOffset)},get captionScrollbarVerticalOffset(){return firstValid(i.captionScrollbarVerticalOffset,LAYOUT_MODEL.captionScrollbarVerticalOffset)},get captionScrollbarBgAlpha(){return firstValid(i.captionScrollbarBgAlpha,LAYOUT_MODEL.captionScrollbarBgAlpha)},get captionAnchorTo(){return firstValid(i.captionAnchorTo,LAYOUT_MODEL.captionAnchorTo)},get slideshowRandomize(){return firstValid(i.slideshowRandomize,LAYOUT_MODEL.landingMediaRandomize)},get slideshowTransitionType(){return firstValid(i.slideshowTransitionType,LAYOUT_MODEL.landingMediaTransitionType)},get slideshowSpeed(){return firstValid(i.slideshowSpeed,LAYOUT_MODEL.landingMediaSpeed)},get slideshowTransitionDuration(){return firstValid(i.slideshowTransitionDuration,LAYOUT_MODEL.landingMediaTransitionDuration)},get slideshowAlignHorizontal(){return firstValid(i.slideshowAlignHorizontal,LAYOUT_MODEL.landingMediaAlignHorizontal)},get slideshowAlignVertical(){return firstValid(i.slideshowAlignVertical,LAYOUT_MODEL.landingMediaAlignVertical)},get slideshowScaleType(){var e=firstValid(i.slideshowScaleType,LAYOUT_MODEL.landingMediaScaleType);return isPod()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeMobile,"fit"):isPad()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeTablet,e):e},get slideshowScrollDownIcon(){return firstValid(t.scrollDownIcon,LAYOUT_MODEL.slideshowScrollDownIcon)},get siteDisplayBehavior(){var e;return USER_AGENT===MOBILE||USER_AGENT===TABLET?"none":(e=layoutCalcs.getSectionState(t.key),firstValid((LAYOUT_MODEL.unifiedPageScrolling||/unified/.test(LAYOUT_MODEL.siteDisplayBehavior))&&/overlay/.test(t.displayBehavior)&&STATE.overrides.siteDisplayGalleryOnlyOverlay&&isThumbsFirst(t)&&/thumbs/.test(e.mode)?LAYOUT_MODEL.siteDisplayBehavior:t.displayBehavior,LAYOUT_MODEL.siteDisplayBehavior,LAYOUT_MODEL.unifiedPageScrolling?"unifiedPageScrolling":"none"))},get siteDisplayGalleryOnlyOverlay(){return USER_AGENT!==MOBILE&&USER_AGENT!==TABLET&&t.displayGalleryOnlyOverlay},get logoViewZIndex(){return USER_AGENT===MOBILE?firstValid(LAYOUT_MODEL.mobileLogoZIndex,LAYOUT_MODEL.logoZIndex,"overlay"===STATE.menuView.placement()?5:8):isPod()?firstValid(i.logoZIndex,LAYOUT_MODEL.mobileLogoZIndex,LAYOUT_MODEL.logoZIndex,"overlay"===STATE.menuView.placement()?5:8):firstValid(i.logoZIndex,LAYOUT_MODEL.logoZIndex,"overlay"===STATE.menuView.placement()?5:8)}}},get backgroundImages(){var e=[];return(e=window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingBackgroundImages")?SETTINGS_MODEL.stagingBackgroundImages||e:SETTINGS_MODEL.backgroundImages.length?SETTINGS_MODEL.backgroundImages:DX_MODEL.designSettings.backgroundImages||e).filter(function(e){return getMediaById(e)})},get socialLinks(){var e=[];return(e=window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingSocialLinks")?SETTINGS_MODEL.stagingSocialLinks||e:SETTINGS_MODEL.socialLinks.length?SETTINGS_MODEL.socialLinks:DX_MODEL.designSettings.socialLinks||e).filter(function(e){return getMediaById(e)})},get podUseDesktop(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingPodUseDesktop")?SETTINGS_MODEL.stagingPodUseDesktop||!1:firstValid(SETTINGS_MODEL.podUseDesktop,DX_MODEL.designSettings.podUseDesktop)||!1},get padUseDesktop(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingPadUseDesktop")?SETTINGS_MODEL.stagingPadUseDesktop||!1:firstValid(SETTINGS_MODEL.padUseDesktop,DX_MODEL.designSettings.padUseDesktop)||!1},get copyright(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingCopyright")?SETTINGS_MODEL.stagingCopyright||"":firstValid(SETTINGS_MODEL.copyright,DX_MODEL.designSettings.copyright)||""},get logoFile(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingLogoFile")?SETTINGS_MODEL.stagingLogoFile||"":firstValid(SETTINGS_MODEL.logoFile,DX_MODEL.designSettings.logoFile)||""},get logoHtml(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingLogoHtml")?SETTINGS_MODEL.stagingLogoHtml||"":firstValid(SETTINGS_MODEL.logoHtml,DX_MODEL.designSettings.logoHtml)||""},get logoText(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingLogoText")?SETTINGS_MODEL.stagingLogoText||"":firstValid(SETTINGS_MODEL.logoText,DX_MODEL.designSettings.logoText)||""},get introFile(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingIntroFile")?SETTINGS_MODEL.stagingIntroFile||"":firstValid(SETTINGS_MODEL.introFile,DX_MODEL.designSettings.introFile)||""},get blogSectionId(){return window.isStaging&&SETTINGS_MODEL.hasOwnProperty("stagingBlogSectionId")?SETTINGS_MODEL.stagingBlogSectionId||"":firstValid(SETTINGS_MODEL.blogSectionId,DX_MODEL.designSettings.blogSectionId)||""},footerView:{zIndex:function(){return LAYOUT_MODEL.copyrightZIndex||("overlay"===STATE.menuView.placement()?5:8)}},introView:{zIndex:500},mediaView:{zIndex:1,zoneX:function(){return(isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView:layoutCalcs.mediaView).x()},zoneY:function(e){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.y():layoutCalcs.mediaView.y(e)},zoneWidth:function(){return(isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView:layoutCalcs.mediaView).width()},zoneHeight:function(e){return"unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior&&"multiple"===layoutCalcs.sectionDisplayMode?isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaView.height(e,!0):isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaView.height(e)},contentHeight:function(){return STATE.siteView.unifiedPageScroll()&&layoutCalcs._mediaContentHeight>STATE.mediaView.height()?layoutCalcs._mediaContentHeight:STATE.mediaView.height()},x:function(){var e=(isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView:layoutCalcs.mediaView).x();return layoutCalcs.isDisplace()&&"left"===STATE.overrides.thumbnailSide?e+percentToPixels(STATE.overrides.thumbnailHorizontalMargin,stage.width)+THUMB_SIZES[STATE.overrides.thumbnailSize].width:e},y:function(e){e=isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.y():layoutCalcs.mediaView.y(e);return layoutCalcs.isDisplace()&&"top"===STATE.overrides.thumbnailSide?e+percentToPixels(STATE.overrides.thumbnailVerticalMargin,stage.height)+THUMB_SIZES[STATE.overrides.thumbnailSize].height:e},width:function(){var e=(isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView:layoutCalcs.mediaView).width();return!layoutCalcs.isDisplace()||"left"!==STATE.overrides.thumbnailSide&&"right"!==STATE.overrides.thumbnailSide?e:e-percentToPixels(STATE.overrides.thumbnailHorizontalMargin,stage.width)-THUMB_SIZES[STATE.overrides.thumbnailSize].width},height:function(e){var e=isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaView.height(e),t=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height);return!((/unifiedSite/.test(STATE.overrides.siteDisplayBehavior)&&/top|bottom/.test(STATE.menuView.placement())?stage.height-t:stage.height)<=e)&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior)||!layoutCalcs.isDisplace()||"top"!==STATE.overrides.thumbnailSide&&"bottom"!==STATE.overrides.thumbnailSide?e:e-percentToPixels(STATE.overrides.thumbnailVerticalMargin,stage.height)-THUMB_SIZES[STATE.overrides.thumbnailSize].height},maskX:function(){return(isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView:layoutCalcs.mediaMask).x()},maskY:function(e){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.y():layoutCalcs.mediaMask.y(e)},maskWidth:function(e){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.width():layoutCalcs.mediaMask.width(e)},maskHeight:function(e,t){return isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaMask.height(e,t)},hAlign:function(){return USER_AGENT===MOBILE?layoutCalcs.isLandingMedia?firstValid(LAYOUT_MODEL.landingMediaAlignHorizontalMobile,STATE.overrides.slideshowAlignHorizontal):STATE.overrides.imageAlignHorizontal:layoutCalcs.isLandingMedia?STATE.overrides.slideshowAlignHorizontal:STATE.overrides.imageAlignHorizontal},vAlign:function(){return USER_AGENT===MOBILE?layoutCalcs.isLandingMedia?firstValid(LAYOUT_MODEL.landingMediaAlignVerticalMobile,STATE.overrides.slideshowAlignVertical):STATE.overrides.imageAlignVertical:layoutCalcs.isLandingMedia?STATE.overrides.slideshowAlignVertical:STATE.overrides.imageAlignVertical},transitionDuration:function(e){return e?STATE.overrides.slideshowTransitionDuration:STATE.overrides.transitionDuration},imageScaleType:function(){return layoutCalcs.isLandingMedia?isPod()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeMobile,STATE.overrides.slideshowScaleType):isPad()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeTablet,STATE.overrides.slideshowScaleType):STATE.overrides.slideshowScaleType:STATE.overrides.imageScaleType},videoScaleType:function(e){return layoutCalcs.isLandingMedia?isPod()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeMobile,STATE.overrides.slideshowScaleType):isPad()?firstValid(LAYOUT_MODEL.landingMediaScaleTypeTablet,STATE.overrides.slideshowScaleType):STATE.overrides.slideshowScaleType:e&&"fill"===STATE.overrides.videoScaleType?"fit":STATE.overrides.videoScaleType},videoAutoPlay:function(){return STATE.overrides.videoAutoPlay},backgroundColor:function(){return isFillSite()&&layoutCalcs.isLandingMedia?LAYOUT_MODEL.siteBackgroundColor:STATE.overrides.containerColor}},menuView:{placement:function(){var e;switch(LAYOUT_MODEL.menuAlignHorizontal){case"top-responsive":e=layoutCalcs.isMenuResponsiveOverlay?"overlay":"top";break;case"right-responsive":e=layoutCalcs.isMenuResponsiveOverlay?"overlay":"right";break;case"bottom-responsive":e=layoutCalcs.isMenuResponsiveOverlay?"overlay":"bottom";break;case"left-responsive":e=layoutCalcs.isMenuResponsiveOverlay?"overlay":"left";break;default:e=LAYOUT_MODEL.menuAlignHorizontal}return USER_AGENT===MOBILE||USER_AGENT===TABLET?"left":e},zIndex:6,menuPositionFixed:function(){return!!/bottom/.test(STATE.menuView.placement())||LAYOUT_MODEL.menuPositionFixed},menuFontSize:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayFontSize||LAYOUT_MODEL.menuFontSize},menuSubFontSize:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlaySubFontSize||LAYOUT_MODEL.menuSubFontSize},menuBgColor:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayBgColor||LAYOUT_MODEL.menuBgColor},menuBgAlpha:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayBgAlpha||LAYOUT_MODEL.menuBgAlpha},menuFontColor:function(){var e=LAYOUT_MODEL.menuFontColor;return USER_AGENT===MOBILE&&(e=LAYOUT_MODEL.menuFontColorMobile||e),USER_AGENT===TABLET&&(e=LAYOUT_MODEL.menuFontColorTablet||e),"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayFontColor||e},menuFontColorHover:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayFontColorHover||LAYOUT_MODEL.menuFontColorHover},menuFontColorSelected:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayFontColorSelected||LAYOUT_MODEL.menuFontColorSelected},menuTextAlignHorizontal:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayTextAlignHorizontal||LAYOUT_MODEL.menuTextAlignHorizontal},menuTextAlignVertical:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayTextAlignVertical||LAYOUT_MODEL.menuTextAlignVertical},menuTextPaddingHorizontal:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayTextPaddingHorizontal||LAYOUT_MODEL.menuTextPaddingHorizontal},menuTextPaddingVertical:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayTextPaddingVertical||LAYOUT_MODEL.menuTextPaddingVertical},menuTextGap:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlayTextGap||LAYOUT_MODEL.menuTextGap},menuSubTextAlignHorizontal:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlaySubTextAlignHorizontal||LAYOUT_MODEL.menuSubTextAlignHorizontal},menuSubTextGap:function(){return"overlay"===STATE.menuView.placement()&&LAYOUT_MODEL.menuOverlaySubTextGap||LAYOUT_MODEL.menuSubTextGap},menuIconOverlayColor:function(){return LAYOUT_MODEL.menuIconOverlayColor||LAYOUT_MODEL.menuOverlayFontColor||"#333333"}},navbarView:{zIndex:function(){return/^overlay/.test(STATE.overrides.siteDisplayBehavior)?101:USER_AGENT===MOBILE||"overlay"===STATE.menuView.placement()?3:7}},overlayView:{x:function(){return STATE.mediaView.zoneX()},y:function(e){return/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)||isInMediaOverlay()?0:STATE.mediaView.zoneY(e)},zoneWidth:function(){return isInMediaOverlay()?stage.width:(isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView:layoutCalcs.mediaView).width()},zoneHeight:function(e){var t;return isInMediaOverlay()?stage.height:!/unifiedPageScroll/.test(STATE.overrides.siteDisplayBehavior)||USER_AGENT===HTML&&isPod()||USER_AGENT===HTML&&isPad()||/native/.test(STATE.overrides.thumbnailScrollType)||LAYOUT_MODEL.globalSmoothScroll?STATE.siteView.unifiedPageScroll()?(t=isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():STATE.mediaView.zoneHeight(e),layoutCalcs._thumbsVisible&&/fill|hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)&&layoutCalcs._thumbContentHeight>t?layoutCalcs._thumbContentHeight:t):isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():layoutCalcs.mediaView.height(e):STATE.mediaView.zoneHeight()},zIndex:4,size:{x:function(){return isInMediaOverlay()?0:STATE.overlayView.x()},y:function(e){return isInMediaOverlay()?0:STATE.overlayView.y(e)},width:function(){return STATE.overlayView.zoneWidth()},height:function(e){return STATE.overlayView.zoneHeight(e)}}},captionView:{zIndex:function(){return USER_AGENT===MOBILE||"overlay"===STATE.menuView.placement()?2:7}},siteView:{unifiedPageScroll:function(){return"overlay"!==STATE.overrides.siteDisplayBehavior&&!/none/.test(STATE.overrides.siteDisplayBehavior)&&(/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)||/^unifiedPage/.test(STATE.overrides.siteDisplayBehavior)?/^vScroll/.test(STATE.overrides.transitionType)||layoutCalcs._thumbsVisible&&/fill|hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)||isSingleTextPage(layoutCalcs._section):LAYOUT_MODEL.unifiedPageScrolling)},width:function(){return stage.width},height:function(){var e,t,i,n,o,a,r;return"single"===layoutCalcs.sectionDisplayMode&&isFillSite()&&layoutCalcs.isLandingMedia?layoutCalcs.landingMediaView.height():USER_AGENT===MOBILE||USER_AGENT===TABLET?stage.height:"unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior&&"multiple"===layoutCalcs.sectionDisplayMode?(t=getMarginOverlap()||0,n=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height),o=percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height),(e=(e=layoutCalcs.mediaModules&&layoutCalcs.mediaModules[0])&&e.controller.section)&&STATE.section(e),i=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height),e&&isFillSiteSlideshow(e)?layoutCalcs.mediaViewsHeight+o:/top/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?n+i-t+layoutCalcs.mediaViewsHeight+o:/bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal?n+layoutCalcs.mediaViewsHeight+(o+i-t):n+layoutCalcs.mediaViewsHeight+o):STATE.siteView.unifiedPageScroll()||/unified/.test(LAYOUT_MODEL.siteDisplayBehavior)&&/overlay/.test(STATE.overrides.siteDisplayBehavior)&&STATE.overrides.siteDisplayGalleryOnlyOverlay?(e=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height),a=/top/.test(STATE.menuView.placement()),r=/bottom/.test(STATE.menuView.placement()),LAYOUT_MODEL.isMenuScrollReveal||!a&&!r||(t=getMarginOverlap()||0,i=percentToPixels(LAYOUT_MODEL.menuWidth,stage.height)-percentToPixels(LAYOUT_MODEL.menuOffsetX,stage.height),n=percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height),o=percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height),stage.height,e+=i-t||0),a=layoutCalcs._section?layoutCalcs.getSectionState(layoutCalcs._section.key):{mode:""},/thumbs/.test(a.mode)&&/fill|hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)&&(isPod()||isPad()||/native/.test(STATE.overrides.thumbnailScrollType)||LAYOUT_MODEL.globalSmoothScroll)?e+=layoutCalcs._thumbContentHeight>STATE.mediaView.zoneHeight()?layoutCalcs._thumbContentHeight:STATE.mediaView.zoneHeight():(r=layoutCalcs._section&&layoutCalcs._section.key,e+=STATE.mediaView.height(r)>STATE.mediaView.zoneHeight()?STATE.mediaView.height(r):STATE.mediaView.zoneHeight()),e+percentToPixels(LAYOUT_MODEL.sitePaddingBottom,stage.height)):stage.height}},setPassedSection:function(e){passedSections.push(e)},getPassedSection:function(e){return-1STATE.introView.zIndex?2e3:0),u.element.style.transform="rotate("+(LAYOUT_MODEL.copyrightRotation||0)+"deg)"},u.hide=function(){Tween(u,UPDATE_SPEED,{alpha:0,onComplete:function(){0===u.alpha&&(u.display="none")}})},u.show=function(){u.display="block",u.updateStyle(),Tween(u,UPDATE_SPEED,{alpha:1})},u}function LogoController(t){var i=new ControllerProxy({parentView:t.parentView,parentController:t.parentController,events:t.siteControllerEvents});function e(){i.logoView.style.pointerEvents="none",Tween(i.logoView,UPDATE_SPEED,{alpha:0,display:"none"})}function n(){i.logoView.updatePosition(),i.logoView.display="block",Tween.defer(i.logoView,UPDATE_SPEED,{alpha:1,onComplete:function(){i.logoView.style.pointerEvents="auto"}})}return i.updateSpeed=0,i.logoView=new t.LogoView({parentView:i.parentView,parentController:i,events:t.siteControllerEvents}),i.logoView.alpha=0,i.events.addEventListener("LOGO_CHILD_ADDED",n),(USER_AGENT===MOBILE?/thumbs|site/.test(LAYOUT_MODEL.mobileLogoPlacement)?i.parentView:t.menuController.menuView.mask:"menu"===LAYOUT_MODEL.logoPlacement?t.menuController.menuView:i.parentView).addChild(i.logoView),i.events.addEventListener(SETTINGS_MODEL_CHANGE,function(e){/intro|logo/i.test(e.id)&&(i.logoView.updateStyle(e),i.logoView.updatePosition(e))}),i.events.addEventListener(LAYOUT_MODEL_CHANGE,function(e){"logoPlacement"===e.id&&("menu"===e.value?(i.parentView.removeChild(i.logoView),t.menuController.menuView.addContent(i.logoView)):(t.menuController.menuView.removeContent(i.logoView),i.parentView.addChild(i.logoView)));/^logoText$|^logoHtml$|^logoFile$|^mobileLogoFile$|^tabletLogoFile$/.test(e.id)||(i.logoView.updateStyle(e),i.logoView.updatePosition(e))}),i.events.addEventListener(RESIZE_END,i.logoView.updatePosition),i.events.addEventListener(SITE_URI_CHANGE,i.logoView.updatePosition),i.events.addEventListener(MENU_DOCK_CLOSE,function(){USER_AGENT!==MOBILE&&USER_AGENT!==TABLET&&e()}),i.events.addEventListener(MENU_DOCK_OPEN,function(){n()}),i.logoView.addEventListener(CLICK,function(e){this.txt&&-1stage.width-2*percentToPixels(LAYOUT_MODEL.mobileLogoOffsetX,stage.width)?stage.width-2*percentToPixels(LAYOUT_MODEL.mobileLogoOffsetX,stage.width):t,i=percentToPixels(LAYOUT_MODEL.mobileLogoHeight,stage.height)||percentToPixels(LAYOUT_MODEL.logoHeight,stage.height)||2e3),i=ScaleEngine({type:"fit",hRange:t,vRange:i,width:d,height:h,disableOrientationCheck:!0}),u.img.width=i.width,u.img.height=i.height,u.width=i.width,u.height=i.height):e&&e.action&&"changeTemplate"===e.action||(t=(e=RetinaResizeEngine({width:d,height:h,filename:l})).width,i=ScaleEngine({type:"fit",hRange:t=USER_AGENT===MOBILE?e.width>stage.width-2*percentToPixels(LAYOUT_MODEL.mobileLogoOffsetX,stage.width)?stage.width-2*percentToPixels(LAYOUT_MODEL.mobileLogoOffsetX,stage.width):t:t,vRange:e.height,width:d,height:h,disableOrientationCheck:!0}),u.img.width=i.width,u.img.height=i.height,u.width=i.width,u.height=i.height)),USER_AGENT!==MOBILE&&USER_AGENT!==TABLET&&(u.element.style.transform="rotate("+(LAYOUT_MODEL.logoRotation||0)+"deg)"),Tween.defer(u,0,{x:layoutCalcs.logoView.x(u.width),y:layoutCalcs.logoView.y(u.height)})},u.updateStyle=function(e){var t,i,n,o,a;e&&e.id&&/logo|layoutModelInit/i.test(e.id)&&(t=i=e="",n="normal",isPod()?(e=SETTINGS_MODEL.mobileLogoFile||LAYOUT_MODEL.mobileLogoFile||"",i=SETTINGS_MODEL.mobileLogoText||LAYOUT_MODEL.mobileLogoText||"",t=SETTINGS_MODEL.mobileLogoHtml||LAYOUT_MODEL.mobileLogoHtml||"",n=firstValid(LAYOUT_MODEL.mobileLogoBlendMode,LAYOUT_MODEL.logoBlendMode,"normal"),e||i||t||(e=STATE.logoFile||LAYOUT_MODEL.logoFile||"",i=STATE.logoText||LAYOUT_MODEL.logoText||"",t=STATE.logoHtml||LAYOUT_MODEL.logoHtml||"")):isPad()?(e=SETTINGS_MODEL.tabletLogoFile||LAYOUT_MODEL.tabletLogoFile||"",i=SETTINGS_MODEL.tabletLogoText||LAYOUT_MODEL.tabletLogoText||"",t=SETTINGS_MODEL.tabletLogoHtml||LAYOUT_MODEL.tabletLogoHtml||"",n=firstValid(LAYOUT_MODEL.tabletLogoBlendMode,LAYOUT_MODEL.logoBlendMode,"normal"),e||i||t||(e=STATE.logoFile||LAYOUT_MODEL.logoFile||"",i=STATE.logoText||LAYOUT_MODEL.logoText||"",t=STATE.logoHtml||LAYOUT_MODEL.logoHtml||"")):(e=STATE.logoFile||LAYOUT_MODEL.logoFile||"",i=STATE.logoText||LAYOUT_MODEL.logoText||"",t=STATE.logoHtml||LAYOUT_MODEL.logoHtml||"",n=firstValid(LAYOUT_MODEL.logoBlendMode,"normal")),u.element.style["mix-blend-mode"]=n,l=-1=t&&window.scrollY+.5*window.innerHeight<=t+e.view.height&&(e.controller.checkCaption(),STATE.section(e.controller.section),m.dispatchEvent("cursorAxisUpdate",getCursorAxis(STATE.overrides.transitionType)),m.dispatchEvent("updateSectionPassive",{section:e.controller.section,assetId:e.controller.getCurrentAssetId(),mode:e.controller.getCurrentMode()}))})}function p(e){return STATE.section(e),!isSlideshowGallery(e)&&STATE.overrides.thumbnailDefaultOn&&/fill|paginated|vMasonry|hMasonry/i.test(STATE.overrides.thumbnailType)&&1===LAYOUT_MODEL.overlayAlpha||isIndexSection(e)}function v(e){return STATE.section(e),!isSlideshowGallery(e)&&"none"!==STATE.overrides.thumbnailType&&(STATE.overrides.thumbnailDefaultOn||isIndexSection(e))&&e&&e.media&&1{r&&STATE.section(r.section),i?(layoutCalcs.mediaOverlayState="closed",E.updatePosition(),setTimeout(function(){m.dispatchEvent("updateSectionPassive",{section:r.section,assetId:r.assetId,mode:r.mode})},0)):m.dispatchEvent(ADDRESS_SECTION_CHANGE,{type:"internal",path:"",target:"_self"})};var S=createDebounce(50),A=createDebounce(50);function O(t,e){m.removeEventListener(RESIZE_END,function(){(e?A:S)(t.layout)}),m.removeEventListener("UPDATE_CONTENT_HEIGHT",function(){(e?A:S)(t.layout)}),m.removeEventListener(LAYOUT_MODEL_CHANGE,t.modelChange),m.removeEventListener(SECTIONS_MODEL_CHANGE,t.modelChange),m.removeEventListener(SETTINGS_MODEL_CHANGE,function(e){/backgroundimages|template|staging/.test(e.id)&&t.modelChange()}),m.removeEventListener("mediaOverlayClose",c)}function b(t,e){m.addEventListener(RESIZE_END,function(){(e?A:S)(t.layout)}),m.addEventListener("UPDATE_CONTENT_HEIGHT",function(){(e?A:S)(t.layout)}),m.addEventListener(LAYOUT_MODEL_CHANGE,t.modelChange),m.addEventListener(SECTIONS_MODEL_CHANGE,t.modelChange),m.addEventListener(SETTINGS_MODEL_CHANGE,function(e){/backgroundimages|template|staging/.test(e.id)&&t.modelChange()}),m.addEventListener("mediaOverlayClose",c)}function y(e,t){return e.key===t.section.key}m.addEventListener("autoplayTarget",function(i){var e;/unifiedSiteScroll/.test(STATE.overrides.siteDisplayBehavior)?u&&Object.keys(u).map(function(e){return u[e]}).forEach(function(e){var t;y(e.controller.section,i)&&(STATE.section(e.controller.section),/fill|vMasonry|hMasonry/.test(STATE.overrides.thumbnailType)&&/thumbs/.test(i.mode)||STATE.mediaView.videoAutoPlay()&&(t=(t=e.view.container.children[i.assetId])?t.id:void 0)),e.events.dispatchEvent("mediaAutoPlay",t)}):a&&(STATE.section(a.controller.section),/fill|vMasonry|hMasonry/.test(STATE.overrides.thumbnailType)&&/thumbs/.test(i.mode)||STATE.mediaView.videoAutoPlay()&&(e=(e=a.view.container.children[i.assetId])?e.id:void 0),a.events.dispatchEvent("mediaAutoPlay",e))}),m.addEventListener("spacebarPlay",function(i){var e;/unifiedSiteScroll/.test(STATE.overrides.siteDisplayBehavior)?u&&Object.keys(u).map(function(e){return u[e]}).forEach(function(e){var t;y(e.controller.section,i)&&(STATE.section(e.controller.section),/fill|vMasonry|hMasonry/.test(STATE.overrides.thumbnailType)&&/thumbs/.test(i.mode)||(t=(t=e.view.container.children[i.assetId])?t.id:void 0)),e.events.dispatchEvent("spacebarTogglePlay",t)}):a&&(STATE.section(a.controller.section),/fill|vMasonry|hMasonry/.test(STATE.overrides.thumbnailType)&&/thumbs/.test(i.mode)||(e=(e=a.view.container.children[i.assetId])?e.id:void 0),a.events.dispatchEvent("spacebarTogglePlay",e))}),m.addEventListener(SITE_URI_CHANGE,function(e){T=e;var t=!1;STATE.section(e.section),/^unifiedSite/.test(STATE.overrides.siteDisplayBehavior)?(n&&n.module.view.close(function(){n&&n.destroy(),n=null}),i?e.info.isParentSectionChange||i&&"legacy"===i.type||e.info.isPasswordSection||e.info.isSearchSubmit?(i&&(O(i),i.destroy()),b(i=s(e)),i.uriChange(e,t=!0),i.layout(t)):e.info.isModeChange?(i.uriChange(e,t),i.layout(t)):(i.uriChange(e,t),i.scrollTo(e,t)):(b(i=s(e)),i.uriChange(e,t=!0),i.layout(t))):!/overlay/.test(STATE.overrides.siteDisplayBehavior)||STATE.overrides.siteDisplayGalleryOnlyOverlay&&p(e.section)&&/fill|vMasonry|hMasonry/.test(STATE.overrides.thumbnailType)&&/thumbs/.test(e.mode)?(n&&n.module.view.close(function(){n&&n.destroy(),n=null}),e.info.isSectionChange||!i||i&&"unified"===i.type?(i&&(O(i),i.destroy()),b(i=d()),i.module.controller.build(e),t=!0,i.layout(function(){})):e.info.isModeChange?(i.uriChange(e,t),i.layout()):i&&i.uriChange(e,t)):(n&&(e.info.isSectionChange||e.section.id!==n.module.view.section.id)&&(O(n,!0),n.destroy(),n=null),layoutCalcs.mediaOverlayState="open",n||(r=e.prevState,b(n=h(),!0),t=!0,n.module.controller.build(e)),n.uriChange(e,t),n.layout(),n.module.view.open(),layoutCalcs.sectionDisplayMode)}),m.addEventListener(LAYOUT_MODEL_CHANGE,function(e){/siteDisplayBehavior|transitionType/.test(e.id)&&i&&(O(i),i.destroy(),STATE.section(T.section),"unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior?i=s(T):(i=d()).module.controller.build(T),b(i),built=!0,i.layout())}),m.addEventListener(SECTIONS_MODEL_CHANGE,function(){i&&(O(i),i.destroy(),STATE.section(T.section),"unifiedSiteScrollVertical"===STATE.overrides.siteDisplayBehavior?i=s(T):(i=d()).module.controller.build(T),b(i),built=!0,i.layout())})}var MediaController=function(){function e(e,t){var n,o=this,a=e,i=t,r=/contactTitleFont|contactTitleFontSize|contactTitleShow|contactFont|contactFontSize|contactFontColor|contactFieldRectColor/,l=/attachmentGallery|containerColor|transitionType|imageAlignHorizontal|imageAlignVertical|imageScaleType|videoScaleType|imageVideoInactiveAlpha|imageVideoMarginTop|imageVideoMarginRight|imageVideoMarginBottom|imageVideoMarginLeft|imageVideoScrollType|imageVideoScrollbarRounded|imageVideoScrollVisibility|imageVideoScrollbarHorizontalOffset|imageVideoScrollbarVerticalOffset/,s=/pageMarginTop|pageMarginRight|pageMarginBottom|pageMarginLeft|pageScrollVerticalMargin|pageTextFont|pageTextKerning|pageTextFontSize|pageTextFontColor|pageTitle|pageTitleFont|pageTitleKerning|pageTitleFontSize|pageTitleFontColor|pageScrollbarAlignment|pageScrollbarHorizontalOffset|pageScrollbarVerticalOffset|pageScrollbarColor|pageScrollbarHover|pageScrollbarBgAlpha|pageScrollbarWidth/,d=/landingMediaRandomize|landingMediaTransitionType|landingMediaSpeed|landingMediaTransitionDuration|landingMediaAlignHorizontal|landingMediaAlignVertical|landingMediaScaleType/,h=!0;function c(){a.dispatchEvent(PAUSE_MEDIA)}function u(){a.dispatchEvent(RESIZE),STATE.section(o.section),o.staticNav&&o.staticNav.resize({x:0,y:0,width:STATE.mediaView.zoneWidth(),height:o.getTotalHeight()})}i.addEventListener(ORIENTATION_CHANGE,function(){a.dispatchEvent(ORIENTATION_CHANGE)}),i.addEventListener(LAYOUT_MODEL_CHANGE,function(e){a.dispatchEvent(LAYOUT_MODEL_CHANGE,e),o.section&&"layoutModelInit"!==e.id&&(r.test(e.id)||l.test(e.id)||s.test(e.id)||d.test(e.id))&&(a.dispatchEvent("SectionMediaFactory/buildItems",{section:o.section,media:removeLinksFromMedia(o.section.media)}),a.dispatchEvent("assetReset"));T(o)}),i.addEventListener(SECTIONS_MODEL_CHANGE,function(e){{var t,i;o.section&&(STATE.section(o.section),a.dispatchEvent(SECTIONS_MODEL_CHANGE,e),"update"!==e.method||e.id!==o.section.id||function(e,t){return/thumb/.test(t)&&"strip"!==e}(STATE.overrides.thumbnailType,o.state.mode)||("media"===e.field?(a.dispatchEvent("SectionMediaFactory/buildItems",{section:o.section,media:e.value?removeLinksFromMedia(e.value):[]}),a.dispatchEvent("assetReset")):"overrides"===e.field?(t=JSON.stringify(e.value),(/page/.test(t)&&"html"===layoutCalcs._activeMediaType||/imageVideo|caption/.test(t)&&/image|video/.test(layoutCalcs._activeMediaType))&&(a.dispatchEvent("SectionMediaFactory/buildItems",{section:o.section,media:removeLinksFromMedia(o.section.media)}),a.dispatchEvent("assetReset"))):(a.dispatchEvent("SectionMediaFactory/buildItems",{section:o.section,media:removeLinksFromMedia(o.section.media)}),a.dispatchEvent("assetReset"),"slideshow"===e.field&&(t=e.value?"landingMedia":"mediaView",n=t,o.mediaViewBehavior=o.behavior.navigationModeChange(t),(i=o.state).isLandingMedia=e.value,i.info.mediaViewState=t,o.mediaViewBehavior.uriChange(i))),T(o)))}}),i.addEventListener(SETTINGS_MODEL_CHANGE,function(e){a.dispatchEvent(SETTINGS_MODEL_CHANGE,e),"update"===e.method&&o.section&&("landingMedia"===o.section.id||o.section.isIntroGallery)&&"backgroundImages"===e.id&&i.dispatchEvent("resetUriChange",e)}),i.addEventListener(MEDIA_MODEL_CHANGE,function(e){a.dispatchEvent(MEDIA_MODEL_CHANGE,e),"update"===e.method&&o.section&&-1o.thumbsTotalHeight?o.totalHeight:o.thumbsTotalHeight);var t,e=/top|bottom/.test(STATE.menuView.placement())&&!LAYOUT_MODEL.isMenuScrollReveal&&getMarginOverlap()||0,e=(e&&(t-=e),{height:o.totalHeight});o.mediaView.container.children[0]&&(e.isFullTextHeight=allowPageContentHeight(o.mediaView.container.children[0],o.mediaView.container.children.length)),t&&(e.zoneHeight=t),layoutCalcs.updateSectionState(o.section.key,e),o.staticNav&&o.staticNav.resize({x:0,y:0,width:STATE.mediaView.zoneWidth(),height:o.getTotalHeight()}),i.dispatchEvent("UPDATE_CONTENT_HEIGHT")}),o.getTotalHeight=function(){var e,t;return STATE.section(o.section),"none"===STATE.overrides.siteDisplayBehavior?STATE.mediaView.zoneHeight():isIndexSection(o.section)&&/thumbs/.test(o.state.mode)?o.thumbsTotalHeight||STATE.mediaView.zoneHeight(o.section.key):isSlideshowGallery(o.section)||/none/.test(STATE.overrides.thumbnailType)||!/thumbs/.test(o.state.mode)?/unifiedSiteScrollVertical/.test(STATE.overrides.siteDisplayBehavior)?(e=o.mediaView.container.boundsHeight,t=layoutCalcs.getMaxScrollSectionHeight(o.mediaView),/vScroll/.test(STATE.overrides.transitionType)||e&&eu.assetId&&a?-1i.v&&(n=i.v),e.height=n+t.top+t.bottom),e.updatePosition()}return function(){h.mask.element.scrollLeft=0,h.mask.element.scrollTop=0,h.mask.element.style.overflow="hidden",h.section&&STATE.section(h.section);var e=0,t=s.children,i=t.length,n=0,o=STATE.mediaView.height(h.section.key),a=h.maxScroll&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior);for(a&&(o=layoutCalcs.getMaxScrollSectionHeight(h));ei.v&&(n=i.v),e.height=n+t.top+t.bottom),e.updatePosition()}return function(){E.mask.element.scrollLeft=0,E.mask.element.scrollTop=0,E.mask.element.style.overflow="hidden",E.section&&STATE.section(E.section);var e,t=new c,i=(t.gap=0,t.axis="y",t.align="left",t.wrap=!0,t.perpLength=4*STATE.mediaView.width(),0),n=u.children,o=n.length,a=STATE.mediaView.height(E.section.key),r=E.maxScroll&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior);for(r&&(a=layoutCalcs.getMaxScrollSectionHeight(E));ii.v&&(n=i.v),e.height=n+t.top+t.bottom):e.height=STATE.mediaView.height()),e.updatePosition()}return"native"===STATE.overrides.imageVideoScrollType||MAC_SCROLLBARS&&("nativeMacOs"===STATE.overrides.imageVideoScrollType||LAYOUT_MODEL.globalSmoothScroll)?(e.element.style.overflowY="hidden",e.element.style.overflowX="scroll"):(u.scroll&&u.scroll.destroy(),t={name:"horiz scroll",types:["bar","wheel","touch"],axis:"x",align:"left",color:STATE.overrides.imageVideoScrollbarColor,hover:STATE.overrides.imageVideoScrollbarHover,side:STATE.overrides.imageVideoScrollbarAlignment,alpha:STATE.overrides.imageVideoScrollbarBgTransparency,width:STATE.overrides.imageVideoScrollbarWidth,offsetX:STATE.overrides.imageVideoScrollbarHorizontalOffset,offsetY:STATE.overrides.imageVideoScrollbarVerticalOffset,topPad:0,property:"translate",zIndex:STATE.mediaView.zIndex,rounded:STATE.overrides.imageVideoScrollbarRounded,visibility:STATE.overrides.imageVideoScrollbarVisibility},"nativeMacOs"!==STATE.overrides.imageVideoScrollType&&!LAYOUT_MODEL.globalSmoothScroll||(t.margin=0,t.color="#000000",t.hover="#000000",t.side="bottom",t.alpha=0,t.width=7,t.offsetX=0,t.offsetY=0,t.rounded=!0,t.visibility="when scrolling"),u.scroll=new Scroll(E,e,t)),function(e){for(var t=new c,i=(t.gap=0,t.axis="x",t.align="left",t.wrap=!1,t.perpLength=STATE.mediaView.height(u.section.key),u.section&&STATE.section(u.section),STATE.mediaView.height(u.section.key)),n=u.maxScroll&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior),o=(n&&(i=layoutCalcs.getMaxScrollSectionHeight(u)),0),a=E.children,r=a.length;o=t.x&&-c.translateX+i<=t.x+t.width&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):u.scrollLeft+i>=t.x&&u.scrollLeft+i<=t.x+t.width&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function o(e){T.dispatchEvent("mediaScrollStart"),!1!==r&&T.dispatchEvent("pauseMedia"),l?m(s):g()}function a(e){r&&n(),!1!==r&&(r=void 0)}function p(e){void 0===r&&(r=!0),h.lazyLoader&&h.lazyLoader.update(),r&&n()}function v(e){t||o(),clearTimeout(t),p(),t=setTimeout(function(){a(),t=null},300)}return h.scroll?(h.scroll.addEventListener("scrollStop",a),h.scroll.addEventListener("scrollStart",o),h.scroll.addEventListener(SCROLL,p)):u.element.addEventListener("scroll",v),i.destroy=function(){h.scroll?(h.scroll.removeEventListener("scrollStop",a),h.scroll.removeEventListener("scrollStart",o),h.scroll.removeEventListener(SCROLL,p)):u.element&&u.element.removeEventListener("scroll",v)},i}function ScrollLayoutHorizontalNoCrop(e){var t,c=Tile,u=e.mediaView,T=e.localEvents,E=u.container,e=u.mask;function m(e,t,i,n){var o;/html|contact/.test(e.mediaItem.type)?(e.width=STATE.overrides.pageMaxWidth||STATE.mediaView.width(),e.height=STATE.mediaView.height(u.section.key)):(o=ScaleEngine(getScaleVars(e,i,STATE.mediaView.imageScaleType())),e.width=o.width+t.left+t.right,/unifiedSite/.test(STATE.overrides.siteDisplayBehavior)?(n=n?o.height:i.v,/fitWidth|^fill$/.test(STATE.mediaView.imageScaleType())&&o.height>i.v&&(n=i.v),e.height=n+t.top+t.bottom):e.height=STATE.mediaView.height()),e.updatePosition()}return"native"===STATE.overrides.imageVideoScrollType||MAC_SCROLLBARS&&("nativeMacOs"===STATE.overrides.imageVideoScrollType||LAYOUT_MODEL.globalSmoothScroll)?(e.element.style.overflowY="hidden",e.element.style.overflowX="scroll"):(u.scroll&&u.scroll.destroy(),t={name:"horiz scroll",types:["bar","wheel","touch"],axis:"x",align:"left",color:STATE.overrides.imageVideoScrollbarColor,hover:STATE.overrides.imageVideoScrollbarHover,side:STATE.overrides.imageVideoScrollbarAlignment,alpha:STATE.overrides.imageVideoScrollbarBgTransparency,width:STATE.overrides.imageVideoScrollbarWidth,offsetX:STATE.overrides.imageVideoScrollbarHorizontalOffset,offsetY:STATE.overrides.imageVideoScrollbarVerticalOffset,topPad:0,property:"translate",zIndex:STATE.mediaView.zIndex,rounded:STATE.overrides.imageVideoScrollbarRounded,visibility:STATE.overrides.imageVideoScrollbarVisibility},"nativeMacOs"!==STATE.overrides.imageVideoScrollType&&!LAYOUT_MODEL.globalSmoothScroll||(t.margin=0,t.color="#000000",t.hover="#000000",t.side="bottom",t.alpha=0,t.width=7,t.offsetX=0,t.offsetY=0,t.rounded=!0,t.visibility="when scrolling"),u.scroll=new Scroll(E,e,t)),function(e){var t=new c,i=(t.gap=0,t.axis="x",t.align="left",t.wrap=!1,t.perpLength=STATE.mediaView.height(u.section.key),u.section&&STATE.section(u.section),0),n=E.children,o=n.length,a=STATE.mediaView.height(u.section.key),r=u.maxScroll&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior);for(r&&(a=layoutCalcs.getMaxScrollSectionHeight(u));i=t.x&&-c.translateX+i<=t.x+t.width&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):u.scrollLeft+i>=t.x&&u.scrollLeft+i<=t.x+t.width&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function o(e){T.dispatchEvent("mediaScrollStart"),!1!==r&&T.dispatchEvent("pauseMedia"),l?m(s):g()}function a(e){r&&n(),!1!==r&&(r=void 0)}function p(e){void 0===r&&(r=!0),h.lazyLoader&&h.lazyLoader.update(),r&&n()}function v(e){t||o(),clearTimeout(t),p(),t=setTimeout(function(){a(),t=null},300)}return h.scroll?(h.scroll.addEventListener("scrollStop",a),h.scroll.addEventListener("scrollStart",o),h.scroll.addEventListener(SCROLL,p)):u.element.addEventListener("scroll",v),i.destroy=function(){h.scroll?(h.scroll.removeEventListener("scrollStop",a),h.scroll.removeEventListener("scrollStart",o),h.scroll.removeEventListener(SCROLL,p)):u.element&&u.element.removeEventListener("scroll",v)},i}function ScrollLayoutVertical(e){var t,u=Tile,T=e.mediaView,E=e.localEvents,m=T.container,i=T.mask;return STATE.siteView.unifiedPageScroll()||("native"===STATE.overrides.imageVideoScrollType||USER_AGENT===MOBILE||USER_AGENT===TABLET||MAC_SCROLLBARS&&("nativeMacOs"===STATE.overrides.imageVideoScrollType||LAYOUT_MODEL.globalSmoothScroll)?(i.element.style.overflowX="hidden",i.element.style.overflowY="scroll"):(T.scroll&&T.scroll.destroy(),e={name:"horiz scroll",types:["bar","wheel","touch"],axis:"y",align:"left",color:STATE.overrides.imageVideoScrollbarColor,hover:STATE.overrides.imageVideoScrollbarHover,side:STATE.overrides.imageVideoScrollbarAlignment,alpha:STATE.overrides.imageVideoScrollbarBgTransparency,width:STATE.overrides.imageVideoScrollbarWidth,offsetX:STATE.overrides.imageVideoScrollbarHorizontalOffset,offsetY:STATE.overrides.imageVideoScrollbarVerticalOffset,topPad:0,parent:e.siteView,property:"translate",zIndex:STATE.mediaView.zIndex,rounded:STATE.overrides.imageVideoScrollbarRounded,visibility:STATE.overrides.imageVideoScrollbarVisibility},"nativeMacOs"!==STATE.overrides.imageVideoScrollType&&!LAYOUT_MODEL.globalSmoothScroll||(e.margin=0,e.color="#000000",e.hover="#000000",e.side="bottom",e.alpha=0,e.width=7,e.offsetX=-10,e.offsetY=0,e.rounded=!0,e.visibility="when scrolling"),T.scroll=new Scroll(m,i,e))),function(c){clearTimeout(t),t=setTimeout(function(){for(var e=new u,t=(e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=STATE.mediaView.width(),e.name="vScroll",T.section&&STATE.section(T.section),0),i=m.children,n=i.length;tSTATE.mediaView.zoneHeight(h.section.key)&&USER_AGENT!==MOBILE?E(a):m())},"Firefox"===BROWSER_NAME?1e3:300)}function E(e){for(var t=c.children.length;t--;){var i=c.children[t],n=void 0===e||!isNaN(e)&&e===t?1:STATE.overrides.imageVideoInactiveAlpha;Tween(i,STATE.mediaView.transitionDuration(),{alpha:n})}}function m(){for(var e=c.children.length;e--;)Tween(c.children[e],STATE.mediaView.transitionDuration(),{alpha:1})}function g(e,t){return isBlogFeed(h.section.id)||0===e?"top":e===t-1?"bottom":STATE.mediaView.vAlign()}function a(){for(var e=c.children.length;e--;){var t=c.children[e],i=.5*u.height;h.scroll?-c.translateY+i>=t.y&&-c.translateY+i<=t.y+t.height&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):STATE.siteView.unifiedPageScroll()?window.scrollY+.5*window.innerHeight>=t.absY&&window.scrollY+.5*window.innerHeight<=t.absY+t.height&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):u.scrollTop+i>=t.y&&u.scrollTop+i<=t.y+t.height&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){T.dispatchEvent("mediaScrollStart"),!1!==l&&T.dispatchEvent("pauseMedia"),s?E(i):m()}function p(e){l&&!s&&a(),!1!==l&&(l=void 0)}function v(e){void 0!==l||s||(l=!0),h.lazyLoader&&h.lazyLoader.update(),l&&!s&&a()}function f(e){t||r(),clearTimeout(t),v(),t=setTimeout(function(){p(),t=null},300)}return h.scroll?(h.scroll.addEventListener("scrollStop",p),h.scroll.addEventListener("scrollStart",r),h.scroll.addEventListener(SCROLL,v)):(STATE.siteView.unifiedPageScroll()?window:u.element).addEventListener("scroll",f),o.destroy=function(){h.scroll?(h.scroll.removeEventListener("scrollStop",p),h.scroll.removeEventListener("scrollStart",r),h.scroll.removeEventListener(SCROLL,v)):STATE.siteView.unifiedPageScroll()?window.removeEventListener("scroll",f):u.element&&u.element.removeEventListener("scroll",f)},o}function ScrollLayoutVerticalNoCrop(e){var t,u=Tile,T=e.mediaView,E=e.localEvents,m=T.container,i=T.mask;return STATE.siteView.unifiedPageScroll()||("native"===STATE.overrides.imageVideoScrollType||MAC_SCROLLBARS&&("nativeMacOs"===STATE.overrides.imageVideoScrollType||LAYOUT_MODEL.globalSmoothScroll)?(i.element.style.overflowX="hidden",i.element.style.overflowY="scroll"):(T.scroll&&T.scroll.destroy(),e={name:"horiz scroll",types:["bar","wheel","touch"],axis:"y",align:"left",color:STATE.overrides.imageVideoScrollbarColor,hover:STATE.overrides.imageVideoScrollbarHover,side:STATE.overrides.imageVideoScrollbarAlignment,alpha:STATE.overrides.imageVideoScrollbarBgTransparency,width:STATE.overrides.imageVideoScrollbarWidth,offsetX:STATE.overrides.imageVideoScrollbarHorizontalOffset,offsetY:STATE.overrides.imageVideoScrollbarVerticalOffset,topPad:0,parent:e.siteView,property:"translate",zIndex:STATE.mediaView.zIndex,rounded:STATE.overrides.imageVideoScrollbarRounded,visibility:STATE.overrides.imageVideoScrollbarVisibility},"nativeMacOs"!==STATE.overrides.imageVideoScrollType&&!LAYOUT_MODEL.globalSmoothScroll||(e.margin=0,e.color="#000000",e.hover="#000000",e.side="bottom",e.alpha=0,e.width=7,e.offsetX=-10,e.offsetY=0,e.rounded=!0,e.visibility="when scrolling"),T.scroll=new Scroll(m,i,e))),function(c){clearTimeout(t),t=setTimeout(function(){for(var e=new u,t=(e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=STATE.mediaView.width(),T.section&&STATE.section(T.section),0),i=m.children,n=i.length;tSTATE.mediaView.zoneHeight(h.section.key)?E(a):m())},"Firefox"===BROWSER_NAME?1e3:300)}function E(e){for(var t=c.children.length;t--;){var i=c.children[t],n=void 0===e||!isNaN(e)&&e===t?1:STATE.overrides.imageVideoInactiveAlpha;Tween(i,STATE.mediaView.transitionDuration(),{alpha:n})}}function m(){for(var e=c.children.length;e--;)Tween(c.children[e],STATE.mediaView.transitionDuration(),{alpha:1})}function g(e,t){return isBlogFeed(h.section.id)||0===e?"top":e===t-1?"bottom":STATE.mediaView.vAlign()}function a(){for(var e=c.children.length;e--;){var t=c.children[e],i=.5*u.height;h.scroll?-c.translateY+i>=t.y&&-c.translateY+i<=t.y+t.height&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):STATE.siteView.unifiedPageScroll()?window.scrollY+.5*window.innerHeight>=t.absY&&window.scrollY+.5*window.innerHeight<=t.absY+t.height&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):u.scrollTop+i>=t.y&&u.scrollTop+i<=t.y+t.height&&T.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){T.dispatchEvent("mediaScrollStart"),!1!==l&&T.dispatchEvent("pauseMedia"),s?E(i):m()}function p(e){l&&!s&&a(),!1!==l&&(l=void 0)}function v(e){void 0!==l||s||(l=!0),h.lazyLoader&&h.lazyLoader.update(),l&&!s&&a()}function f(e){t||r(),clearTimeout(t),v(),t=setTimeout(function(){p(),t=null},300)}return h.scroll?(h.scroll.addEventListener("scrollStop",p),h.scroll.addEventListener("scrollStart",r),h.scroll.addEventListener(SCROLL,v)):(STATE.siteView.unifiedPageScroll()?window:u.element).addEventListener("scroll",f),o.destroy=function(){h.scroll?(h.scroll.removeEventListener("scrollStop",p),h.scroll.removeEventListener("scrollStart",r),h.scroll.removeEventListener(SCROLL,v)):STATE.siteView.unifiedPageScroll()?window.removeEventListener("scroll",f):u.element&&u.element.removeEventListener("scroll",f)},o}function SlideLayoutHorizontal(e){var c=Tile,u=e.mediaViewContainer,T=e.localEvents,E=e.mediaView;function m(e,t,i,n){var o;/html|contact/.test(e.mediaItem.type)||!/unifiedSite/.test(STATE.overrides.siteDisplayBehavior)||isFillSiteSlideshow(E.section)?(e.width=STATE.mediaView.width(),e.height=STATE.mediaView.height()):(o=ScaleEngine(getScaleVars(e,i,STATE.mediaView.imageScaleType())),e.width=STATE.mediaView.width(),n=n?o.height:i.v,/fitWidth|^fill$/.test(STATE.mediaView.imageScaleType())&&o.height>i.v&&(n=i.v),e.height=n+t.top+t.bottom),e.updatePosition()}return function(){E.mask.element.scrollLeft=0,E.mask.element.scrollTop=0,E.mask.element.style.overflow="hidden";var e=new c,t=(e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=STATE.mediaView.height(E.section.key),E.section&&STATE.section(E.section),0),i=u.children,n=i.length,o=STATE.mediaView.width(),a=STATE.mediaView.height(E.section.key),r=E.maxScroll&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior);for(r&&(a=layoutCalcs.getMaxScrollSectionHeight(E));ti.v&&(n=i.v),e.height=n+t.top+t.bottom):e.height=STATE.mediaView.height()),e.updatePosition()}return function(e){for(var t=new c,i=(t.gap=0,t.axis="x",t.align="left",t.wrap=!1,t.perpLength=STATE.mediaView.height(E.section.key),E.section&&STATE.section(E.section),STATE.mediaView.height(E.section.key)),n=E.maxScroll&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior),o=(n&&(i=layoutCalcs.getMaxScrollSectionHeight(E)),0),a=u.children,r=a.length;oi.v&&(n=i.v),e.height=n+t.top+t.bottom),e.updatePosition()}return function(){E.mask.element.scrollLeft=0,E.mask.element.scrollTop=0,E.mask.element.style.overflow="hidden";var e=new c,t=(e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=STATE.mediaView.width(),E.section&&STATE.section(E.section),0),i=u.children,n=i.length,o=0,a=STATE.mediaView.height(E.section.key),r=E.maxScroll&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior);for(r&&(a=layoutCalcs.getMaxScrollSectionHeight(E));ti.v&&(n=i.v),e.height=n+t.top+t.bottom),e.updatePosition()}return function(){T.mask.element.scrollLeft=0,T.mask.element.scrollTop=0,T.mask.element.style.overflow="hidden";var e,t=new h,i=(t.gap=0,t.axis="x",t.align="left",t.wrap=!1,t.perpLength=STATE.mediaView.height(T.section.key),T.section&&STATE.section(T.section),0),n=c.children,o=n.length,a=STATE.mediaView.height(T.section.key),r=T.maxScroll&&/unifiedSite/.test(STATE.overrides.siteDisplayBehavior);for(r&&(a=layoutCalcs.getMaxScrollSectionHeight(T));i").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,""),T.selectable=!0,T.setClass("dx_page_text ql-editor"),T.fontFamily=LAYOUT_MODEL.contactFont,T.fontSize=LAYOUT_MODEL.contactFontSize,T.fontColor=LAYOUT_MODEL.contactFontColor,T.textAlign="right",T.textWrap=!1,u.addChild(T),u.addChild(E);var t=u.element.getElementsByTagName("img"),i=t.length;if(0E.height?n+=T.element.offsetHeight+0:n=(n+=E.height)+(h.element.offsetHeight+5+0),u.height=n}function f(e){Tween(this,UPDATE_SPEED,{backgroundColor:toRgba(LAYOUT_MODEL.contactFieldRectColor,.2),border:"1px solid "+toRgba(LAYOUT_MODEL.contactFieldRectColor,.7)})}function L(e){Tween(this,UPDATE_SPEED,{backgroundColor:toRgba(LAYOUT_MODEL.contactFieldRectColor,.1),border:"1px solid "+toRgba(LAYOUT_MODEL.contactFieldRectColor,.3)})}function S(e){Tween(this,UPDATE_SPEED,{backgroundColor:toRgba(LAYOUT_MODEL.contactFieldRectColor,.8)})}function A(e){Tween(this,UPDATE_SPEED,{backgroundColor:toRgba(LAYOUT_MODEL.contactFieldRectColor,1)})}function O(e){m.text=e.response,y()?LAYOUT_MODEL.contactTitleShow?(m.x=T.x,m.y=T.y+T.element.offsetHeight+16):(m.x=T.x,m.y=T.element.offsetHeight+16):(m.x=p+17,m.y=44),Tween(E,UPDATE_SPEED,{alpha:0,onComplete:function(e){E.display="none"}}),Tween(m,UPDATE_SPEED,{alpha:1})}function b(e){var t=MEDIA_MODEL[c.id],i=[].slice.apply(E.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 alert("Name field cannot be blank."),!1;if("Email"===t.id&&(-1===t.input.value.indexOf("@")||-1===t.input.value.indexOf(".")))return alert("Please enter valid email address."),!1;if("Comments"===t.id&&""===t.input.value)return alert("Comments field cannot be blank."),!1}return e},{});i.Title=t.label,i.toEmail=t.content.contactFormEmail,i.subject=t.content.contactFormSubject,i&&g.dispatchEvent(CONTACT_FORM_SUBMIT,i)}function y(){return STATE.section(c.section),USER_AGENT===MOBILE||u.width+16>STATE.mediaView.width()}function w(e){var t,i;STATE.section(c.section),layoutCalcs.activeMediaType=c.type,320<(p=T.element.offsetWidth)&&(p=320,T.width=320,T.textWrap=!0,T.style["word-wrap"]="break-word"),u.width=p+E.width+18,y()?(T.x=8,E.x=-8,LAYOUT_MODEL.contactTitleShow?(d&&(d.x=8,d.y=percentToPixels(LAYOUT_MODEL.contactTitleFontSize,100)),T.y=d.y+percentToPixels(LAYOUT_MODEL.contactTitleFontSize,100)+16,E.y=T.y+T.element.offsetHeight+16):(T.y=0,E.y=T.element.offsetHeight),c.scroll&&(c.scroll.align="top"),E.borderLeft="1px solid "+toRgba(LAYOUT_MODEL.contactFieldRectColor,0),T.textAlign="left"):(T.x=0,T.y=0,E.x=p+16,E.y=44,E.borderLeft="1px solid "+toRgba(LAYOUT_MODEL.contactFieldRectColor,.3),T.textAlign="right",LAYOUT_MODEL.contactTitleShow&&d&&(d.textWrap=!0,d.x=p+32,d.y=percentToPixels(LAYOUT_MODEL.contactTitleFontSize,100)-33),c.scroll&&(c.scroll.align="top")),l&&!l.contactFormExtra&&(c.scroll&&(c.scroll.align="top"),E.borderLeft="1px solid "+toRgba(LAYOUT_MODEL.contactFieldRectColor,0),E.x=-8,d)&&(d.x=8),u.transition=0,v(),Tween.defer(u,c.updateSpeed,{x:(STATE.section(c.section),layoutCalcs._activeView="contact",u.width+16>STATE.mediaView.width()?Math.round(.5*(STATE.mediaView.width()-E.width)):Math.round(.5*(STATE.mediaView.width()-u.width))),y:(STATE.section(c.section),layoutCalcs._activeView="contact",n>STATE.mediaView.height()?USER_AGENT===MOBILE||USER_AGENT===TABLET?40:22:Math.round(.5*(STATE.mediaView.height()-n))),onComplete:function(){c.scroll&&c.scroll.resize(),Tween(u,UPDATE_SPEED,{alpha:1})}}),c.updateSpeed=UPDATE_SPEED,isInit=!1,STATE.section(c.section),USER_AGENT===MOBILE||USER_AGENT===TABLET?(c.element.style.overflowY="scroll",c.element.style.overflowX="hidden",c.element.style["-webkit-overflow-scrolling"]="touch"):STATE.siteView.unifiedPageScroll()&&/vScroll/.test(STATE.overrides.transitionType)?(v(),setTimeout(function(){STATE.section(c.section);var e=n,t=(e=n>STATE.mediaView.height()?e:STATE.mediaView.height())!==c.contentHeight;c.contentHeight=e,c.height=e,t&&g.dispatchEvent("MEDIA_HEIGHT_CHANGE")},30)):"native"===LAYOUT_MODEL.pageScrollType||"Macintosh"===OS&&"nativeMacOs"===LAYOUT_MODEL.pageScrollType?(c.element.style.overflowY="scroll",c.element.style.overflowX="hidden"):(c.scroll&&c.scroll.destroy(),i=LAYOUT_MODEL.pageScrollbarWidth,t=USER_AGENT===MOBILE?-(i+5):LAYOUT_MODEL.pageScrollbarHorizontalOffset,t="right"===LAYOUT_MODEL.pageScrollbarAlignment?-t-i:t+i,i={name:"text page",types:["bar","wheel","touch"],axis:"y",align:"top",margin:LAYOUT_MODEL.pageScrollVerticalMargin,color:LAYOUT_MODEL.pageScrollbarColor,hover:LAYOUT_MODEL.pageScrollbarHover,side:LAYOUT_MODEL.pageScrollbarAlignment,alpha:LAYOUT_MODEL.pageScrollbarBgAlpha,width:i,offsetX:t,offsetY:LAYOUT_MODEL.pageScrollbarVerticalOffset,property:"translate",rounded:LAYOUT_MODEL.pageScrollbarRounded,visibility:LAYOUT_MODEL.pageScrollbarVisibility,scrollTopCheck:!0,parent:c},"nativeMacOs"===LAYOUT_MODEL.pageScrollType&&(i.margin=0,i.color="#000000",i.hover="#000000",i.side="right",i.alpha=0,i.width=7,i.offsetX=0,i.offsetY=0,i.rounded=!0,i.visibility="when scrolling"),c.scroll=new Scroll(u,c,i),c.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){c.scroll.percent=0,c.scroll.update(UPDATE_SPEED)}))}return c.section=r.section,c.alpha=0,u.alpha=0,u.selectable=!0,c.updateSpeed=0,c.id=r.mediaItem.id,c.type=r.mediaItem.type,c.dims=r.size.content,c.element.navigationCursor=!isSlideshowGallery(c.section),c.mediaItem=r.mediaItem,c.addEventListener(CHILD_ADDED,a),g.addEventListener(RESIZE,w),g.addEventListener(LAYOUT_MODEL_CHANGE,w),g.addEventListener("destroy",function e(t){g.removeEventListener(RESIZE,w);g.removeEventListener(LAYOUT_MODEL_CHANGE,w);g.removeEventListener("destroy",e);g.removeEventListener("showCursor",i);g.removeEventListener("hideCursor",o);g.removeEventListener(CONTACT_FORM_SENT,O);c.removeEventListener(CHILD_ADDED,a)}),g.addEventListener("showCursor",i),g.addEventListener("hideCursor",o),c.load=function(){c.loaded=!0},c.unload=function(){},c.show=function(){c.display="block",Tween(c,UPDATE_SPEED,{alpha:1})},c.hide=function(){Tween(c,UPDATE_SPEED,{alpha:0,onComplete:function(){c.display="none"}})},c.updatePosition=w,c}function ImageView(o){var a,t,r,l=new Sprite({events:o.localEvents}),i=(l.alpha=0,l.updateSpeed=0,l.overflow="hidden",l.id=o.mediaItem.id,l.type=o.mediaItem.type,l.dims=o.size.content,l.section=o.section,l.state=o.state,l.mediaItem=o.mediaItem,new Bitmap),n=new Sprite,s=o.size.content.width,d=o.size.content.height,h=0,c=0,u=0,T=0,E=0,m=0,g=!1,p=o.localEvents,v=o.state;getCaptionText(o.mediaItem)&&STATE.overrides.captionMobileOverrides&&((e=new Svg).left=0,e.top=0,e.rotate=0,e.path=new Path,e.path.scale=1,e.width=15,e.height=15,e.path.d=svgPaths.navInfo[LAYOUT_MODEL.navbarIconSet],e.path.strokeWidth="thin"===LAYOUT_MODEL.navbarIconSet?1:0,e.path.fill="thin"===LAYOUT_MODEL.navbarIconSet?"none":LAYOUT_MODEL.navbarColor,e.path.stroke="thin"===LAYOUT_MODEL.navbarIconSet?LAYOUT_MODEL.navbarColor:"none",e.addChild(e.path),(L=buildAlignedButton({alignHorizontal:"right",alignVertical:"top",horizontalOffset:25,verticalOffset:20,blendMode:"normal",font:"Helvetica",fontSize:12,fontColor:"#999999"})).zIndex=1,L.width=15,L.height=15,L.addChild(e),L.addEventListener("click",function(e){var t;a&&(a.isShowing?a.hide():(t=getCaptionText(o.mediaItem),a.text=plainTextToHtml(t),a.show(w)))}),l.addChild(L)),STATE.lightboxSection&&!LAYOUT_MODEL.lightboxGalleryBtnDisable&&!LAYOUT_MODEL.lightboxImageDisable&&STATE.lightboxButtonsEnabled()&&(e=STATE.lightboxSection.media.indexOf(l.mediaItem.id),l.mediaItem.disableLightbox||((f=buildAlignedButton({alignHorizontal:LAYOUT_MODEL.lightboxGalleryBtnAlignHorizontal||"left",alignVertical:LAYOUT_MODEL.lightboxGalleryBtnAlignVertical||"top",horizontalOffset:percentToPixels(LAYOUT_MODEL.lightboxGalleryBtnHorizontalOffset,stage.height),verticalOffset:percentToPixels(LAYOUT_MODEL.lightboxGalleryBtnVerticalOffset,stage.height),blendMode:LAYOUT_MODEL.lightboxGalleryBtnBlendMode||"difference",font:LAYOUT_MODEL.lightboxGalleryBtnFont||"Helvetica",fontSize:LAYOUT_MODEL.lightboxGalleryBtnFontSize||12,fontColor:LAYOUT_MODEL.lightboxGalleryBtnFontColor||"#999999"})).zIndex=1,f.text=-1"+o.mediaItem.label+"
"),M=Y(),Y()&&U()&&(n+="+")
"),-1===(n+=plainTextToHtml(o.mediaItem.content)).indexOf("no-lazy-load")?L.text=n.replace(/src\=/g,"data-src="):L.text=n,S.addChild(L),f.addChild(S),g=L.element.getElementsByClassName("responsive"),m=L.element.getElementsByClassName("responsive-width")}function _(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){C(),b=Math.round(STATE.mediaView.maskWidth(f.element.offsetWidth)),STATE.overrides.pageMaxWidth&&b>STATE.overrides.pageMaxWidth&&(b=STATE.overrides.pageMaxWidth),E=D(L.element),T=E.filter(function(e){return"img"===e.tagName.toLowerCase()}).map(_),x(),V(),setTimeout(function(){x(),V()},150)}function D(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 t(e){e=e.reduce(function(e,t){var i;return"img"===t.img.tagName.toLowerCase()&&(i=t.img.src.replace(w,""),e=e.concat({src:i,width:t.img.naturalWidth,height:t.img.naturalHeight})),e},[]);JSON.stringify(f.mediaItem.size.pageImages)!==JSON.stringify(e)&&(f.mediaItem.size.pageImages=e,l.dispatchEvent("adminPageviewImageSizes",f.mediaItem))}function d(o){return new Promise(function(e,t){var i,n=o.getAttribute("data-src");"img"===o.tagName.toLowerCase()?(i=setInterval(function(){o.naturalWidth&&o.naturalHeight&&(o.metaLoaded=!0,clearInterval(i),e({img:o}))},10),o.addEventListener("load",function(){Tween(o,.35,{opacity:o.savedOpacity||1})}),o.addEventListener("error",function(){clearInterval(i)}),setTimeout(function(){i&&clearInterval(i)},1e4)):e({img:o}),o.src=n})}function h(e){void 0!==SETTINGS_MODEL.disableRightClick&&!SETTINGS_MODEL.disableRightClick||e.preventDefault()}function c(e){return e.img.oncontextmenu=h,e.img.ondragstart=h,e}function P(){STATE.section(f.section),USER_AGENT!==MOBILE&&USER_AGENT!==TABLET||(S.element.style["-webkit-overflow-scrolling"]="touch"),/vScroll/.test(STATE.overrides.transitionType)&&STATE.siteView.unifiedPageScroll()?(S.element.style.overflow="hidden",S.element.style["-webkit-overflow-scrolling"]="touch",Tween.defer(L,UPDATE_SPEED,{alpha:1})):"native"===STATE.overrides.pageScrollType||MAC_SCROLLBARS&&("nativeMacOs"===STATE.overrides.pageScrollType||LAYOUT_MODEL.globalSmoothScroll)||/unifiedSite/.test(STATE.overrides.siteDisplayBehavior)?(S.element.style.overflowY="auto",S.element.style.overflowX="hidden",S.element.style["-webkit-overflow-scrolling"]="touch",Tween.defer(L,UPDATE_SPEED,{alpha:1})):(f.scroll&&f.scroll.destroy(),i=STATE.overrides.pageScrollbarWidth,t=USER_AGENT===MOBILE?-(i+5):STATE.overrides.pageScrollbarHorizontalOffset,t="right"===STATE.overrides.pageScrollbarAlignment?-t-i:t+i,i={name:"text page",types:["bar","wheel","touch"],axis:"y",align:"top",margin:STATE.overrides.pageScrollVerticalMargin,color:STATE.overrides.pageScrollbarColor,hover:STATE.overrides.pageScrollbarHover,side:STATE.overrides.pageScrollbarAlignment,alpha:STATE.overrides.pageScrollbarBgAlpha,width:i,offsetX:t,offsetY:STATE.overrides.pageScrollbarVerticalOffset,property:"translate",rounded:STATE.overrides.pageScrollbarRounded,visibility:STATE.overrides.pageScrollbarVisibility,scrollTopCheck:!0},"nativeMacOs"!==STATE.overrides.pageScrollType&&!LAYOUT_MODEL.globalSmoothScroll||(i.margin=0,i.color="#000000",i.hover="#000000",i.side="right",i.alpha=0,i.width=7,i.offsetX=0,i.offsetY=0,i.rounded=!0,i.visibility="when scrolling"),f.scroll=new Scroll(L,S,i),f.scroll.addEventListener("WINDOW_SCROLL_TOP",function(){f.scroll.percent=0,f.scroll.update(UPDATE_SPEED)})),STATE.section(f.section);var e,t=percentToPixels(STATE.overrides.pageMarginTop,stage.height),i=percentToPixels(STATE.overrides.pageMarginBottom,stage.height),n=t+L.element.offsetHeight+i;U()&&!Y()&&(e=RetinaResizeEngine({width:o.mediaItem.size.featuredImage.width,height:o.mediaItem.size.featuredImage.height,filename:u.dataSrc}),Math.round(e.width),n=t+(e=Math.round(e.height))+iSTATE.overrides.pageMaxWidth)switch(b=STATE.overrides.pageMaxWidth,STATE.overrides.pageMaxAlign){case"center":p+=Math.round(.5*(o-b));break;case"right":p+=Math.round(o-b)}if(u&&U()&&!Y()&&(p+=A+O,b-=A+O,Tween(u,f.updateSpeed,{x:p-A-O,y:v})),!M&&Y()?(u&&(f.removeChild(u),u=void 0),C(),E=D(L.element),T=E.filter(function(e){return"img"===e.tagName.toLowerCase()}).map(_)):M&&!Y()&&(L.text="",C(),E=D(L.element),T=E.filter(function(e){return"img"===e.tagName.toLowerCase()}).map(_)),Tween(S,0,{x:p,y:v,width:b}),Tween(L,0,{width:b}),g&&((t=g[0])&&"iframe"===t.tagName.toLowerCase()?(t.style.overflow="hidden",t.style.width=b+"px",t.style.height=y+"px",t.style.border="none"):t&&(i=Math.round(STATE.mediaView.maskHeight(L.element.offsetHeight,f.section.key)),n=Math.round(STATE.mediaView.maskHeight(void 0,f.section.key)),i=nSTATE.mediaView.maskWidth()&&"hScroll"!==STATE.overrides.transitionType?(t=0,i=STATE.mediaView.maskWidth(),n=STATE.mediaView.maskHeight(void 0,d.section.key)):S>STATE.mediaView.maskHeight(void 0,d.section.key)&&(o=0,i=STATE.mediaView.maskWidth(),n=S),l.hud.resize(d.updateSpeed,t,o,i,n),o=0n.length-1&&(m=n.length-1),T.staticNav&&(T.staticNav.resize({x:0,y:0,width:STATE.overlayView.zoneWidth(),height:STATE.mediaView.zoneHeight(T.section.key)}),n.length&&1!==n.length?0===m?(T.staticNav.hide("prev"),T.staticNav.show("next")):m===n.length-1?(T.staticNav.hide("next"),T.staticNav.show("prev")):T.staticNav.show():T.staticNav.hide()),T.layout(),n[m]&&Tween(i,.35,{x:-n[m].x})},T.removeStaticNav=function(){T.removeChild(T.staticNav)},T.staticNav=(STATE.section(a.section),new StaticNav({zIndex:201,axis:"x",align:LAYOUT_MODEL.staticNavAlignment||"center",scale:LAYOUT_MODEL.staticNavIconScale||1,zone:{x:0,y:0,width:STATE.mediaView.zoneWidth(),height:STATE.mediaView.zoneHeight(T.section.key)},offset:{prevX:LAYOUT_MODEL.staticNavPrevOffsetX||0,prevY:LAYOUT_MODEL.staticNavPrevOffsetY||0,nextX:LAYOUT_MODEL.staticNavNextOffsetX||0,nextY:LAYOUT_MODEL.staticNavNextOffsetY||0},paths:{prev:{d:svgPaths.arrow3Left,fill:"none",stroke:LAYOUT_MODEL.cursorColor||"#333",strokeWidth:LAYOUT_MODEL.staticNavStrokeWidth||1},next:{d:svgPaths.arrow3Right,fill:"none",stroke:LAYOUT_MODEL.cursorColor||"#333",strokeWidth:LAYOUT_MODEL.staticNavStrokeWidth||1}},prevClick:function(e){var t=n[m=0Math.abs(e.deltaY)&&(t=n[n.length-1].x,(r-=Math.round(e.deltaX))<-Math.abs(t)?(i.x=-Math.abs(t),r=-Math.abs(t)):r<0?i.x=r:0<=r&&(i.x=0,r=0),u=setTimeout(function(){m=Math.round(Math.abs(r)/t*(n.length-1));var e=n[m];Tween(i,.35,{x:-e.x,ease:EASE.cubic.inOut,onComplete:function(){0===m?(c.hide("prev"),c.show("next")):m===n.length-1?(c.hide("next"),c.show("prev")):c.show(),T.lazyLoader.update(),r=i.x}})},500))})),T.touchNav=(l=T.staticNav,h=d=0,i.addEventListener(TOUCH_START,function(e){d=e.touches[0].pageX-i.x,touchStartPointXRef=e.touches[0].pageX},!1),i.addEventListener(TOUCH_MOVE,function(e){h=e.touches[0].pageX,s=e.touches[0].pageY,Math.abs(h)>Math.abs(s)-10&&(e.preventDefault(),e.stopPropagation()),i.x=h-d},!1),i.addEventListener(TOUCH_END,function(e){var t;20Mth.abs(o)?(0"+i.subTitle+"
"),r.label.text=o,r.label.element.style.wordBreak="break-word",r.label.fontFamily=STATE.overrides.thumbnailTitleFont,r.label.fontColor=STATE.overrides.thumbnailTitleFontColor,r.label.fontSize=STATE.overrides.thumbnailTitleFontSize,r.label.width=t,r.label.textAlign=getLabelJustification(L.isIndexSection),r.label.zIndex=5,getSpriteDims(r.label));switch(T){case"top":r.label.y=firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5),r.thumb.y=E.height+firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5),w=E.height+2*firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5)>w?E.height+2*firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5):w,r.height=n+w;break;case"over":case"hover":i.type===VIDEO&&STATE.overrides.thumbnailVideoPlayIcon?r.label.y=.5*(n-50)-E.height+firstValid(STATE.overrides.thumbnailLabelVerticalOffset,0):r.label.y=.5*(n-E.height)+firstValid(STATE.overrides.thumbnailLabelVerticalOffset,0),r.label.pointerEvents="none",USER_AGENT===MOBILE||isPod()||USER_AGENT===TABLET||isPad()?r.label.alpha=1:r.label.alpha="over"===T?1:0;break;case"hover-bottom":r.label.pointerEvents="none",USER_AGENT===MOBILE||isPod()||USER_AGENT===TABLET||isPad()?r.label.alpha=1:r.label.alpha="over"===T?1:0,r.label.y=n+firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5),w=E.height+2*firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5)>w?E.height+2*firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5):w,r.height=n+w;break;default:r.label.y=n+firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5),w=E.height+2*firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5)>w?E.height+2*firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5):w,r.height=n+w}r.addChild(r.label)}"spinner"===STATE.overrides.thumbnailLoaderType&&(r.loader=new LoadingIndicator({type:"spinner",alpha:.65,color:(a=.33*((a=/fill|hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)?parseColor(STATE.overrides.thumbnailOverlayColor):parseColor(STATE.mediaView.backgroundColor()))[0]+a[1]+a[2]))<128?"#FFFFFF":"#000000"}),r.addChild(r.loader),r.loader.x=.5*(t-r.loader.width),r.loader.y=.5*(n-r.loader.height));o=new Sprite;o.id="hit",o.zIndex=4,o.element.style.borderRadius=STATE.overrides.thumbnailCornerRadius+"px",L.thumbnailOnly||(o.cursor="pointer"),USER_AGENT===MOBILE&&/hover|over/.test(T)?o.alpha=firstValid(STATE.overrides.thumbnailHoverAlphaMobile,0):USER_AGENT===TABLET&&/hover|over/.test(T)?o.alpha=firstValid(STATE.overrides.thumbnailHoverAlphaTablet,0):o.alpha=0,o.y=0,o.width=c,o.height=u,o.backgroundColor=STATE.overrides.thumbnailHoverColor,o.element.setAttribute("data-media-id",i.id),"Safari"===BROWSER_NAME&&(o.style["-webkit-backface-visibility"]="hidden",o.style.transform="translateZ(0px)"),r.addChild(o),r.hit=o;var m=getNumberOfColumns(getZoneWidth(),STATE.overrides.thumbnailVMasonryMinCols,STATE.overrides.thumbnailVMasonryMaxCols,STATE.overrides.thumbnailGap),a=/hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)&&STATE.overrides.thumbnailMasonryMaintainOrder,m=!(!(1e.mediaItem).map((R=STATE.overrides.thumbnailMasonryMaintainOrder,o=d.width*c,a=d.height*c,r=F.thumbnailOnly,e=>{var t=!R&&e.overrides.thumbScaleFactor,i=isVimeo(e)&&STATE.overrides.vimeoDefault&&r?e.size.content.width||e.size.thumb.width||o:e.size.thumb.width||e.size.content.width||o,e=isVimeo(e)&&STATE.overrides.vimeoDefault&&r?e.size.content.height||e.size.thumb.height||a:e.size.thumb.height||e.size.content.height||a,n=t?2*a:a;return{width:n*(i/e),height:n,isDoubleSize:t}})),T=(h.setItems(u),h.setTargetWidth(e),l&&s&&l===s?(h.setHGap(z),h.setVGap(i)):(h.setHGap(t),h.setVGap(Y||t)),h.layout(),h.getItems().forEach(e=>{const t=X.grid.children[e.index];var i=t.mediaItem.overrides.thumbHorizontalOffset,n=t.mediaItem.overrides.thumbVerticalOffset,i=USER_AGENT!==MOBILE&&USER_AGENT!==TABLET&&percentToPixels(i,stage.width)||0,n=USER_AGENT!==MOBILE&&USER_AGENT!==TABLET&&percentToPixels(n,stage.width)||0,o=(t.transition=0,t.width=e.width,t.height=e.height,t.thumb.width=e.width,t.thumb.height=e.height,t.hit.width=e.width,t.hit.height=e.height,t.playBtn&&(t.playBtn.x=Math.round(.5*(e.width-50)),t.playBtn.y=Math.round(.5*(e.height-50))),getLabelPosition(F.isIndexSection)),a=t.label?t.label.element.offsetHeight:0,r=firstValid(STATE.overrides.thumbnailLabelVerticalOffset,5);if(t.label&&(t.label.width=e.width,t.label.fontSize=H*STATE.overrides.thumbnailTitleFontSize,o)&&"none"!==o)switch(o){case"top":t.label.y=-(a+r),t.thumb.y=0,t.hit.y=0;break;case"over":case"hover":t.label.y=.5*(e.height-a),t.mediaItem.type===VIDEO&&STATE.overrides.thumbnailVideoPlayIcon?t.label.y=.5*(e.height-50)-a+firstValid(STATE.overrides.thumbnailLabelVerticalOffset,0):t.label.y=.5*(e.height-a)+firstValid(STATE.overrides.thumbnailLabelVerticalOffset,0);break;case"hover-bottom":t.label.y=e.height+r;break;default:t.label.y=e.height+r}o="top"===o?e.y+n+Y:e.y+n;Tween.defer(t,F.parent.updateSpeed,{x:e.x+i,y:o,onComplete:function(){"none"!==LAYOUT_MODEL.thumbLoadEffect&&void 0!==LAYOUT_MODEL.thumbLoadEffect||Tween(t,UPDATE_SPEED,{alpha:1})}})}),F.parent.lazyLoader&&F.parent.holdersBuilt&&F.parent.lazyLoader.update(),h.getBounds()),E=getLabelPosition(F.isIndexSection),m=/top|bottom/.test(E)?Y:0,g=n+T.height+2*STATE.overrides.thumbnailVerticalMargin+m,d=(layoutCalcs._thumbContentHeight=g,STATE.overlayView.zoneWidth()),c=STATE.overlayView.zoneHeight(F.section.key),p=(W.width=d,X.width=d,X.grid.width=T.width,X.gridContainer.width=T.width,W.height=c,X.height=c,X.grid.height=T.height+m,X.gridContainer.height=g,new AlignEngine({hRange:d,vRange:c,width:T.width,height:T.height,hAlign:STATE.overrides.thumbnailMasonryFill?"left":"center",vAlign:"top",hOffset:STATE.overrides.thumbnailMasonryFill?STATE.overrides.thumbnailHorizontalMargin:0,vOffset:j?n+STATE.overrides.thumbnailVerticalMargin:STATE.overrides.thumbnailVerticalMargin}));X.gridContainer.x=Math.floor(p.x),X.grid.y=Math.floor(p.y),j&&(j.width=getZoneWidth(),"bottom"===LAYOUT_MODEL.thumbnailTitleBlockPosition?(j.y=T.height+STATE.overrides.thumbnailVerticalMargin+STATE.overrides.thumbnailTitleBlockTopMargin,X.grid.y=STATE.overrides.thumbnailVerticalMargin):j.y=STATE.overrides.thumbnailTitleBlockTopMargin),G.totalHeight=g,F.localEvents.dispatchEvent("UPDATE_CONTENT_HEIGHT",{thumbs:g}),W.resizeThumbVideo(),parallax.update()}else{Z=new Tile({name:"thumbs",type:STATE.overrides.thumbnailType,marginHorizontal:STATE.overrides.thumbnailHorizontalMargin,marginVertical:j?n+percentToPixels(STATE.overrides.thumbnailVerticalMargin,stage.height)-STATE.overrides.thumbnailTitleBlockTopMargin:percentToPixels(STATE.overrides.thumbnailVerticalMargin,stage.height),gap:STATE.overrides.thumbnailGap,vGap:Math.max(STATE.overrides.thumbnailGapVertical,F.maxGap),lastRowGap:N,axis:/hscroll/i.test(STATE.overrides.thumbnailType)?"x":"y",align:/hscroll/i.test(STATE.overrides.thumbnailType)?"bottom":"left",maintainOrder:STATE.overrides.thumbnailMasonryMaintainOrder,horizontalMasonry:/hMasonry/.test(STATE.overrides.thumbnailType),masonryFill:/hMasonry|vMasonry/.test(STATE.overrides.thumbnailType)&&STATE.overrides.thumbnailMasonryFill,wrap:!0});for(var v=X.grid.children,f=0,k=v.length,L=getNumberOfColumns(d=getZoneWidth(),STATE.overrides.thumbnailVMasonryMinCols,STATE.overrides.thumbnailVMasonryMaxCols,STATE.overrides.thumbnailGap);fstage.height*LAYOUT_MODEL.menuScrollReveal?o.menuView.dock.toggleState()||o.menuView.dock.show():o.menuView.dock.toggleState()&&o.menuView.dock.hide()}!1!==LAYOUT_MODEL.menuRevealOnInit&&"overlay"!==STATE.menuView.placement()||USER_AGENT===MOBILE||USER_AGENT===TABLET||o.menuView.dock.hide(),window.addEventListener("scroll",function(){h=!1,LAYOUT_MODEL.isMenuScrollReveal&&/top/.test(STATE.menuView.placement())&&(u=!0,clearTimeout(n),n=setTimeout(function(){var e,t=STATE.siteView.height()-stage.height;e=t,c=window.scrollY>e?e:window.scrollY<0?0:window.scrollY,!0!==LAYOUT_MODEL.menuRevealOnInit&&T?(o.menuView.dock.hide(),E=!1):isRevealMenuOnScrollPercent()?(h=!0,m(c)):LAYOUT_MODEL.isMenuScrollReveal&&(0!==c&&c>window.oldScrollY-1?o.menuView.dock.toggleState()&&!T&&(o.menuView.dock.hide(),E=!1):cMth.abs(o)?(m=!(g=!0),e.stopPropagation()):(m=!0,USER_AGENT===MOBILE&&(h.dock.toggleState()?h.dock.show(0):h.dock.hide(0)),g=!1),USER_AGENT!==MOBILE&&USER_AGENT!==TABLET||!g||e.preventDefault(),t=/left|top|bottom/.test(STATE.menuView.placement())?"left":"right",USER_AGENT!==TABLET&&USER_AGENT!==MOBILE||(t="left"),g&&(h.transition=0,i=n+l,"left"===t?h.dock.toggleState()?h.translateX=0=e.touches[0].pageX&&(T="left"===t?"close":"open",E=e.touches[0].pageX))}function b(){g&&"close"===T?(i=!1,h.dock.toggleState()&&h.closeDock()):g&&"open"===T&&(i=!1,h.dock.toggleState()||h.openDock()),g=i=!1,h.removeEventListener(TOUCH_MOVE,O),h.removeEventListener(TOUCH_END,b),h.removeEventListener(TOUCH_CANCEL,b)}function y(){h.dock.toggleState()?h.closeDock():h.openDock()}function w(){return USER_AGENT!==MOBILE&&USER_AGENT!==TABLET&&LAYOUT_MODEL.menuBlendMode&&"overlay"!==STATE.menuView.placement()?LAYOUT_MODEL.menuBlendMode:"normal"}return h.openDock=function(t){t=isNaN(t)?UPDATE_SPEED:t,USER_AGENT===MOBILE||USER_AGENT===TABLET?(h.dock.show(t),h.showCloseButton(),h.events.dispatchEvent(MENU_DOCK_OPEN),h.events.dispatchEvent("MENU_DOCK_TOGGLE")):"overlay"===STATE.menuView.placement()&&(h.showCloseButton(),d&&"hover"===LAYOUT_MODEL.menuIconAction&&(d.element.onmouseenter=null),h.dock.show(0,function(e){e.display="block",h.menuText.updatePosition(0),Tween(e,t,{delay:.15,alpha:1,onComplete:function(){d&&(h.dock.toggleState()?(h.showCloseButton(),"hover"===LAYOUT_MODEL.menuIconAction&&(d.element.onmouseenter=null),d.element.onclick=y):(h.showMenuIcon(),"hover"===LAYOUT_MODEL.menuIconAction?(d.element.onmouseenter=y,d.element.onclick=isPod()||isPad()?y:null):d.element.onclick=y))}}),document.body.style.overflowY,document.body.style.overflowY="hidden"}))},h.closeDock=function(t){t=isNaN(t)?UPDATE_SPEED:t,i||USER_AGENT!==MOBILE&&USER_AGENT!==TABLET?"overlay"===STATE.menuView.placement()&&(h.showMenuIcon(),d&&("hover"===LAYOUT_MODEL.menuIconAction?(d.element.onmouseenter=y,d.element.onclick=isPod()||isPad()?y:null):d.element.onclick=y),h.dock.hide(0,function(e){Tween(e,t,{delay:.05,alpha:0,onComplete:function(){e.display="none",d&&(h.dock.toggleState()?(h.showCloseButton(),"hover"===LAYOUT_MODEL.menuIconAction&&(d.element.onmouseenter=null),d.element.onclick=y):(h.showMenuIcon(),"hover"===LAYOUT_MODEL.menuIconAction?(d.element.onmouseenter=y,d.element.onclick=isPod()||isPad()?y:null):d.element.onclick=y))}}),setTimeout(function(){/unified/.test(STATE.overrides.siteDisplayBehavior)||"overlay"===STATE.overrides.siteDisplayBehavior&&STATE.overrides.siteDisplayGalleryOnlyOverlay?document.body.style.overflowY="scroll":document.body.style.overflowY="hidden"},100)})):(h.dock.hide(t),h.showMenuIcon(),h.dock.toggleState()&&(h.events.dispatchEvent(MENU_DOCK_CLOSE),h.events.dispatchEvent("MENU_DOCK_TOGGLE")))},h.updateStyle=function(){USER_AGENT===MOBILE?Tween(h,h.updateSpeed,{backgroundColor:toRgba(LAYOUT_MODEL.menuBgColorMobile||LAYOUT_MODEL.menuBgColor,LAYOUT_MODEL.menuBgAlphaMobile||LAYOUT_MODEL.menuBgAlpha)}):USER_AGENT===TABLET?Tween(h,h.updateSpeed,{backgroundColor:toRgba(LAYOUT_MODEL.menuBgColorTablet||LAYOUT_MODEL.menuBgColor,LAYOUT_MODEL.menuBgAlphaTablet||LAYOUT_MODEL.menuBgAlpha)}):Tween(h,0,{backgroundColor:toRgba(STATE.menuView.menuBgColor(),STATE.menuView.menuBgAlpha())})},h.updatePosition=function(e,t){var i,n,o="layoutModelChange"===e,a=isNaN(e)?h.updateSpeed:e,e=(h.element.style["mix-blend-mode"]=w(),"Safari"===BROWSER_NAME&&t?(h.position="absolute",setTimeout(function(){h.position=STATE.menuView.menuPositionFixed()||"overlay"===STATE.menuView.placement()?"fixed":"absolute"},200)):h.position=STATE.menuView.menuPositionFixed()||"overlay"===STATE.menuView.placement()?"fixed":"absolute",exists(h,"menuText.height")||0),t=layoutCalcs.menuView.height()-layoutCalcs.menuText.y(e),r=layoutCalcs.menuText.y(e),l=(USER_AGENT===MOBILE?t=layoutCalcs._footerHeight?layoutCalcs.menuView.height()-layoutCalcs.menuText.y(e)-layoutCalcs._footerHeight-2*layoutCalcs.mobileFooterPadding:layoutCalcs.menuView.height()-layoutCalcs.menuText.y(e):t>layoutCalcs.menuView.height()&&(t=layoutCalcs.menuView.height(),r=0),USER_AGENT!==TABLET&&USER_AGENT!==MOBILE&&LAYOUT_MODEL.navbarAlignHorizontal===STATE.menuView.placement()&&"bottom"===LAYOUT_MODEL.navbarAlignVertical&&layoutCalcs._navbarVisible&&(t=layoutCalcs.navbarView.y()-percentToPixels(LAYOUT_MODEL.sitePaddingTop,stage.height)-r-LAYOUT_MODEL.menuOffsetY-12),USER_AGENT===TABLET||USER_AGENT===MOBILE?(e=firstValid(LAYOUT_MODEL.menuIconHOffset,30),l=firstValid(LAYOUT_MODEL.menuIconVOffset,20),n="right"===(i=LAYOUT_MODEL.menuIconAlignHorizontal||LAYOUT_MODEL.menuIconSide||"right")?"left":"right",USER_AGENT!==MOBILE&&USER_AGENT!==TABLET||(e=USER_AGENT===MOBILE&&STATE.overrides.menuDisplaceMobile||USER_AGENT===TABLET&&STATE.overrides.menuDisplaceTablet?layoutCalcs.menuView.width()+firstValid(LAYOUT_MODEL.menuIconHOffsetMobile,16):firstValid(LAYOUT_MODEL.menuIconHOffsetMobile,16),l=firstValid(LAYOUT_MODEL.menuIconVOffsetMobile,16),n="right"===(i=LAYOUT_MODEL.menuIconAlignHorizontalMobile||"left")?"left":"right"),d.y=l,d.element.style[n]="",d.element.style[i]=e+"px"):"overlay"===STATE.menuView.placement()?d?o&&d&&(s.parentView.removeChild(d),"text"!==LAYOUT_MODEL.menuOverlayIconType?S():"text"===LAYOUT_MODEL.menuOverlayIconType&&L()):"text"!==LAYOUT_MODEL.menuOverlayIconType?S():"text"===LAYOUT_MODEL.menuOverlayIconType&&L():d&&(h.dock.show(0,function(e){e.display="block",Tween(e,a,{alpha:1})}),(/overlay/.test(STATE.menuView.placement())?stage:s.parentView).removeChild(d),d=null),isPod()&&"overlay"===STATE.menuView.placement()?250:0);Tween(h,0,{width:layoutCalcs.menuView.width(),height:layoutCalcs.menuView.height()+l}),USER_AGENT===MOBILE?(Tween(c,a,{width:layoutCalcs.menuView.width(),height:layoutCalcs.menuView.height(),y:0}),h.menuText&&Tween(h.menuText,a,{y:r})):Tween(c,a,{width:layoutCalcs.menuView.width(),height:t,y:r}),h.updateSpeed=UPDATE_SPEED,v.width=stage.width,v.height=stage.height,h.dock.side=USER_AGENT===TABLET||USER_AGENT===MOBILE?"left":STATE.menuView.placement(),h.dock.align=isVerticalMenu()?"top":"left",h.dock.margin=isHorizontalMenu()?layoutCalcs.menuView.y():layoutCalcs.menuView.x(),h.dock.pOffset=isHorizontalMenu()?layoutCalcs.menuView.x():layoutCalcs.menuView.y(),h.dock.disableResize="overlay"===STATE.menuView.placement(),h.dock.resize(u?0:UPDATE_SPEED),setTimeout(function(){h.scroll&&h.scroll.resize()},1e3*UPDATE_SPEED)},h.addContent=function(e){h.mask.addChild(e),setTimeout(function(){h.updateScroll()},1e3*UPDATE_SPEED)},h.removeContent=function(e){h.mask.removeChild(e),setTimeout(function(){h.updateScroll()},1e3*UPDATE_SPEED)},h.updateScroll=function(){var e,t,i;(isPod()||isPad())&&(c.element.style["-webkit-overflow-scrolling"]="touch"),"native"===LAYOUT_MODEL.menuScrollType?(h.style.pointerEvents="auto",!isVerticalMenu()&&LAYOUT_MODEL.dropdownSubMenu?c.element.style.overflow="visible":isVerticalMenu()?(c.element.style.overflowY="scroll",c.element.style.overflowX="hidden"):(c.element.style.overflowY="hidden",c.element.style.overflowX="scroll")):MAC_SCROLLBARS&&("nativeMacOs"===LAYOUT_MODEL.menuScrollType||LAYOUT_MODEL.globalSmoothScroll||USER_AGENT===MOBILE)?(h.style.pointerEvents="auto",!isVerticalMenu()&&LAYOUT_MODEL.dropdownSubMenu?c.element.style.overflow="visible":isVerticalMenu()?(c.element.style.overflowY="scroll",c.element.style.overflowX="hidden"):c.element.style.overflow="auto"):isVerticalMenu()||!LAYOUT_MODEL.dropdownSubMenu?(h.scroll&&h.scroll.destroy(),c.overflow="hidden",i=LAYOUT_MODEL.menuScrollbarWidth,e="right"===LAYOUT_MODEL.menuScrollbarAlign?-i:-percentToPixels(LAYOUT_MODEL.menuWidth,stage.width),t=percentToPixels(STATE.menuView.menuTextPaddingHorizontal(),stage.width),i={name:"menu",types:["bar","wheel","touch"],axis:isVerticalMenu()?"y":"x",align:isVerticalMenu()?"top":STATE.menuView.menuTextAlignHorizontal(),alpha:LAYOUT_MODEL.menuScrollbarBgAlpha,color:LAYOUT_MODEL.menuScrollbarColor,hover:LAYOUT_MODEL.menuScrollbarHover,side:LAYOUT_MODEL.menuScrollbarAlignment,width:i,topPad:0,margin:isVerticalMenu()?2:t,offsetX:isVerticalMenu()?e:0,zIndex:500,rounded:STATE.overrides.thumbnailScrollbarRounded,visibility:STATE.overrides.thumbnailScrollbarVisibility},"nativeMacOs"!==LAYOUT_MODEL.menuScrollType&&!LAYOUT_MODEL.globalSmoothScroll||(i.color="#000000",i.hover="#000000",i.side="right",i.alpha=0,i.width=7,i.offsetX=-10,i.offsetY=0,i.rounded=!0,i.visibility="when scrolling"),h.scroll=new Scroll(h.menuText,c,i)):(h.style.pointerEvents="auto",c.element.style.overflow="visible")},h.updateStyle(),h}function MenuText(t){var i,n,o,T,a,r,E=new ViewProxy({events:t.events}),h=(E.identity="menu",E.element.setAttribute("data-identity","menu"),E.zIndex=5,E.style.pointerEvents="auto",t.model),m=(h.ROOT_SECTION.media,[]),c={},g=100;function l(){E.text="",E.children=[],(T=new Accordion(t)).alpha=0,T.gap=USER_AGENT===MOBILE?0:percentToPixels(USER_AGENT===TABLET?firstValid(LAYOUT_MODEL.menuTextGapTablet,STATE.menuView.menuTextGap()):STATE.menuView.menuTextGap(),100),LAYOUT_MODEL.menuExpandAll?T.expand="all":T.expand="single",T.toggle=!1,T.wrap=!1;var e=USER_AGENT===TABLET?LAYOUT_MODEL.menuTextAlignHorizontalTablet||"left":STATE.menuView.menuTextAlignHorizontal();USER_AGENT===MOBILE?e="left":/top|bottom/.test(STATE.menuView.placement())&&USER_AGENT!==TABLET&&(e="top"),T.align=e,T.updateSpeed=E.updateSpeed,T.axis=isVerticalMenu()?"y":"x",T.perpLength=isVerticalMenu()?E.height:E.width,T.animate=!1,E.addChild(T),u(i,!1,T,!1),E.width=T.width,E.height=T.height,T.addEventListener(ACCORDION_SIZE_CHANGE,s),s(),T.layout(),n&&E.selectMenuItem(!0),setTimeout(function(){for(var e=0,t=m.length,i=v(),n=firstValid(LAYOUT_MODEL.menuSubTextPaddingHorizontal,5);eo.tile.perpLength?a:o.tile.perpLength,o.tile.addItem(a,r)}o.tile.layoutItems();var l=STATE.menuView.menuSubTextGap();l=percentToPixels(l=USER_AGENT===TABLET?firstValid(LAYOUT_MODEL.menuTextGapTablet,STATE.menuView.menuSubTextGap()):l,100);for(var s=0;sh.perpLength&&(h.perpLength=l):r>h.perpLength&&(h.perpLength=r),h.addItem(r,l)}for(h.layoutItems(),n=0;n