If problem persists, contact support."):ne(ra,la)?Ee.login=new Ii(e):ke("Admin not supported for this browser ["+ra+" "+la+"]. Please use latest version of Chrome, Firefox, Safari or MS Edge.")),Ee.events.dispatchEvent(_n,{id:"layoutModelInit"}),Ee.events.addEventListener(Jo,m),Ee.events.addEventListener(Ko,v),Ee.events.addEventListener(Un,g),Ee.events.addEventListener(Gn,b),Ee.events.addEventListener(eo,f),Ee.events.addEventListener(to,w),Ee.events.addEventListener(qn,C),Ee.events.addEventListener(Pn,x),Ee.events.addEventListener("ADDRESS_URI_CHANGE_PASSIVE",E),Ee.events.addEventListener(Dn,n),Ee.events.addEventListener(ko,pe),Ee.events.addEventListener(Fo,me),Ee.events.addEventListener(Ho,ge),Ee.events.addEventListener(oo,p),Ee.events.addEventListener("OVER_LOGO",fe),Ee.events.addEventListener("privateGalleryAuthCheck",G),Ee.events.addEventListener("passwordViewUpdate",U),Ee.events.addEventListener("updateAssetId",z),Ee.events.addEventListener("UPDATE_CONTENT_HEIGHT",ae),Ee.events.addEventListener(ta,o),Ee.events.addEventListener("siteAnchorCaptionUpdate",O),Ee.events.addEventListener("SEARCH_SUBMIT",H),Ee.events.addEventListener("lightboxDownloadOverlayOpen",D),Ee.events.addEventListener("lightboxUpdateItem",_),Ee.events.addEventListener("lightboxDownloadPdf",Y),Ee.events.addEventListener("lightboxDownloadZip",Z),wa.addEventListener(nn,h),wa.addEventListener(ho,d),wa.addEventListener(lo,u),wa.addEventListener(fn,L),(oe()||le())&&window.addEventListener("scroll",function(){clearTimeout(Ve),Pe=!0,Ve=setTimeout(function(){Ve=null,Pe=!1,c()&&(Ee.events.dispatchEvent(nn),De=!1)},200)}),wa.zoom>1?Ee.events.dispatchEvent(nn):h(),Ee.events.addEventListener("cursorAxisUpdate",Ce),ro=90===Math.abs(window.orientation)?"horizontal":"vertical",window.isStaging){var t=ye();Ee.siteView.addChild(t)}Ma.cacheLightboxSection()}function n(){dx.admin.events.addEventListener(Rn,$),dx.admin.events.addEventListener(Bn,Q),dx.admin.events.addEventListener(jn,ee),dx.admin.events.addEventListener(_n,te),dx.admin.events.addEventListener(Wn,se),dx.admin.events.addEventListener(Nn,de),dx.admin.events.addEventListener(Xn,ce),dx.admin.events.addEventListener(Yn,he),dx.admin.events.addEventListener(Zn,ue),dx.admin.events.addEventListener($o,a),dx.admin.events.addEventListener(Qo,s),Ee.events.addEventListener("adminPageviewImageSizes",function(e){dx.admin.events.dispatchEvent("adminPageviewImageSizes",e)})}function o(){Ee.events.dispatchEvent(ea,{name:"js"})}function a(){Ee.events.dispatchEvent($o)}function s(){Ee.events.dispatchEvent(Qo)}function d(){wa.zoom<=1}function c(){return(oe()||le())&&De&&window.innerHeight===document.documentElement.clientHeight}function h(e){if(/responsive/.test(Pi.menuAlignHorizontal)){var t=1;oe()&&(t=window.devicePixelRatio||1);var i=(Pi.screenWidthBreakpoint||800)*t,n=xa.isMenuResponsiveOverlay;xa.isMenuResponsiveOverlay=wa.width-1)&&o&&"site"===a?(Ee.caption.text=A(o),Ee.caption.show(I)):(Ee.caption.text="",Ee.caption.hide(),Ee.caption.scroll&&Ee.caption.scroll.destroy())}}function O(e){if(Le&&Le.asset&&Ee.caption){var e=e||Le.asset;e.overrides||(e.overrides={}),He=e.overrides||{},Ee.caption.text=A(k(e));var t=i(Le.section)&&Pi.slideshowCaptions,n=K(Wi!==Xi||t?void 0:"site",e.overrides.captionAnchorTo,Ma.overrides.captionAnchorTo);"site"===n&&(t||Le.mode.indexOf("caption")>-1)?Ee.caption.show(I):(Ee.caption.text="",Ee.caption.hide(),Ee.caption.scroll&&Ee.caption.scroll.destroy())}else Ee.caption&&(Ee.caption.text="",Ee.caption.hide(),Ee.caption.scroll&&Ee.caption.scroll.destroy())}function I(){Wi!==Xi&&(Ee.caption.container.position="fixed"),Ee.caption.container.transition=0,Ee.caption.container.zIndex=Ma.captionView.zIndex(),K(He.captionCloseButton,Ma.overrides.captionCloseButton)?Ee.caption.showCloseButton():Ee.caption.hideCloseButton();var e={onInit:function(){Ee.caption.scroll&&Ee.caption.scroll.hide()},onComplete:function(){Ee.caption.scroll&&(Ee.caption.scroll.show(),Ee.caption.scroll.resize())}},t=K(He.captionBackgroundRectColor,Ma.overrides.captionBackgroundRectColor),i=K(Wi===Xi?Pi.overlayAlpha:void 0,He.captionBackgroundAlpha,Ma.overrides.captionBackgroundAlpha);Ee.caption.backgroundColor=V(t,i),Ee.caption.fontFamily=He.captionFont||Ma.overrides.captionFont,Ee.caption.fontSize=wa.width0&&n.addPage({size:[PDF_MODEL.pdfDocPageWidth,PDF_MODEL.pdfDocPageHeight],margins:{top:0,right:0,bottom:0,left:0}}),n.rect(0,0,PDF_MODEL.pdfDocPageWidth,PDF_MODEL.pdfDocPageHeight).fill(PDF_MODEL.pdfDocPageBgColor).image(e,{fit:[PDF_MODEL.pdfDocPageWidth,PDF_MODEL.pdfDocPageHeight],align:"center",valign:"center"})}catch(e){}}),n.end()}),o.on("finish",function(){t(o.toBlob("application/pdf"))}),o.on("error",i)})}function Y(){var e=Ma.lightboxSection.media;window.PDFDocument&&window.blobStream||Promise.all([N(vo+"/scripts/blob-stream.js"),N(vo+"/scripts/pdfkit.standalone.js"),Ee.service.getPdfModel()]).then(function(t){var i=t[2];if("fail"===i.status);else{PDF_MODEL=DX_MODEL.pdf=i;var n=PDF_MODEL.pdfDocCustomName?PDF_MODEL.pdfDocCustomName:window.location.host+"-lightbox";n="pdf"===n.split(".").pop()?n:n+".pdf",X(e).then(function(e){W(e,n)}).catch(function(e){})}}).catch(function(e){})}function Z(){var e=window.location.host+"-lightbox.zip";Promise.all([N(vo+"/scripts/runtime1.min.js"),N(vo+"/scripts/client-zip-2.js")]).then(function(e){var t=Ma.lightboxSection.media.map(function(e){return fetch(Bi.cdnSslUri+"/"+Hi[e].content)});return downloadZip(t)}).then(function(e){return e.blob()}).then(function(t){return W(t,e)})}function G(e){xe?(xe.setMessage("PASSWORD"),xe.open(e.section)):(xe=Fe({section:e.section,events:Ee.events}),Ee.events.dispatchEvent($n)),"overlay"===Ma.menuView.placement()&&Ee.menuController.menuView.dock.toggleState()&&Ee.menuController.menuView.closeDock()}function U(e){e?J():(xe.setMessage("INCORRECT PASSWORD"),setTimeout(function(){xe.setMessage("")},1e3))}function J(){xe&&xe.close()}function $(e){Ee.events.dispatchEvent(Rn,e)}function Q(e){Ee.events.dispatchEvent(Bn,e)}function ee(){}function te(t){t&&/site/.test(t.id)&&Ee.siteView.updateStyle(),ie(),Ee.events.dispatchEvent(_n,t),O(),ae(),/navCursorType/.test(t.id)&&"cursor"===t.value?Ee.cursor?Ee.cursor.enabled=!0:(Ee.cursor=new e.Cursor(e),Ee.cursor.dispatchEvent("cursorAxisUpdate",ve(Ma.overrides.transitionType)),Ee.siteView.addChild(Ee.cursor)):/navCursorType/.test(t.id)&&Ee.cursor&&(Ee.cursor.enabled=!1),Ee.cursor&&/cursorBlendMode/.test(t.id)&&Ee.cursor.dispatchEvent("cursorBlendMode",t),Te?(wa.removeChild(Te.overlay.background),Te=Ae({navEvent:Le,section:Le.section,events:Ee.events,tags:Le.searchTags})):xe&&(wa.removeChild(xe.overlay.background),xe=Fe({section:Le.section,events:Ee.events}))}function ie(){"Safari"!=ra&&"Chrome"!=ra||(Pi&&Pi.fontRenderingOptions&&Pi.fontRenderingOptions.enable?(Ee.siteView.style.webkitFontSmoothing=Pi.fontRenderingOptions.webkitFontSmoothing,Ee.siteView.style.webkitTextStrokeWidth=Pi.fontRenderingOptions.webkitTextStrokeWidth+"px"):(Ee.siteView.style.webkitFontSmoothing="",Ee.siteView.style.webkitTextStrokeWidth=""))}function ae(){clearTimeout(Re),Re=setTimeout(function(){document.body.style.overflowY="none"===Ma.overrides.siteDisplayBehavior?"hidden":"auto",Ee.siteView.updatePosition()},40)}function se(e){Ee.addressController.setTitle(),Ee.events.dispatchEvent(Wn,e),q(Le,"asset.id")===e.id&&(Le.asset=e),O()}function de(e){Ee.events.dispatchEvent(Nn,e)}function ce(e){Ee.events.dispatchEvent(Xn,e)}function he(e){Ee.events.dispatchEvent(Yn,e)}function ue(e){if(q(Le,"section.id")===e.id){var t=r(e.id);Ma.section(t)}Ma.cacheLightboxSection(),Ee.events.dispatchEvent(Zn,e),O()}function pe(e){Ee.events.dispatchEvent(Oo,e)}function me(e){Ee.events.dispatchEvent(Ao,e)}function ge(e){Ee.events.dispatchEvent(Do,e)}function fe(){wa.addEventListener(un,be)}function be(e){Ee.menuController.menuView.menuText.hitTestPoint(e.pageX,e.pageY)?Ee.logoController.logoView.element.style.pointerEvents="none":Ee.logoController.logoView.element.style.pointerEvents="auto"}function Ce(e){Ee.cursor&&Ee.cursor.dispatchEvent("cursorAxisUpdate",e)}function we(e){Ma.section(e.section);var t="none"!==Ma.overrides.thumbnailType&&"none"!==Pi.cursorIconStyle;Ee.cursor&&Ee.cursor.dispatchEvent("cursorThumbsUpdate",t)}function ye(){var e=new Je;return e.position="fixed",e.element.style.display="block",e.element.style.zIndex=500,e.text="VIEW LIVE SITE",e.fontColor="#FFF",e.backgroundColor="#51CC47",e.width=111,e.height=22,e.right=5,e.bottom=5,e.borderRadius=2,e.alpha=.8,e.addEventListener("mouseover",function(){e.alpha=1}),e.addEventListener("mouseout",function(){e.alpha=.8}),e.addEventListener(Vn,function(){Oe("Switching to LIVE SITE, the page will refresh.",{onConfirm:function(){location.assign("/unstage")},onCancel:function(){}})}),e}var Le,xe,Me,Te,Ve,Ee=new $e({events:new Qe}),ze=!0,Pe=!1,He={},De=!1;e.parent=Ee,e.siteControllerEvents=Ee.events,Ee.siteView=new pt(e),Wi===Xi&&Ma.overrides.menuDisplaceMobile||Wi===Ni&&Ma.overrides.menuDisplaceTablet||wa.addChild(Ee.siteView),wa.addEventListener(fn,function(e){sa[e.keyCode]===xn&&Ee.events.dispatchEvent("spacebarPlay",Le)});var Re;return t.call(Ee),Ee}function pt(e){var t=new st({events:e.siteControllerEvents});t.zIndex=0,t.position=Ma.siteView.unifiedPageScroll()?"relative":"absolute",t.setOverflow=function(){Wi===Ni&&Pi.menuDisplaceTablet||(Wi!==Xi&&/none/.test(Ma.overrides.siteDisplayBehavior)?t.element.style.overflow="hidden":/^unified/.test(Ma.overrides.siteDisplayBehavior)?t.element.style.overflow="hidden":(t.element.style.overflowX="hidden",t.element.style.overflowY="auto"))},t.setOverflow(),t.element.setAttribute("class","SiteView"),t.name="SiteView","Chrome"===ra&&(t.selectable=!0),t.addEventListener(So,function(){t.updatePosition()});return t.updatePosition=function(){t.position=Ma.siteView.unifiedPageScroll()?"relative":"absolute",t.width=Ma.siteView.width(),"overlay"!==Ma.overrides.siteDisplayBehavior&&(t.height=Ma.siteView.height()||wa.height),Wi===Xi&&Ma.overrides.menuDisplaceMobile?t.x=wa.width:Wi===Ni&&Ma.overrides.menuDisplaceTablet&&(t.x=xa.menuView.width())},t.updateStyle=function(){t.backgroundColor=Pi.siteBackgroundColor},t}function mt(){return oe()&&Pi.transitionTypeMobile?Pi.transitionTypeMobile:le()&&Pi.transitionTypeTablet?Pi.transitionTypeTablet:void 0}function vt(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}}}function gt(t){function i(){s.events.addEventListener(Oo,o),s.events.addEventListener(Ao,a),s.events.addEventListener(Do,r),s.events.addEventListener(ea,l),s.events.addEventListener("SITE_SERVICE_PASSWORD_CHECK",n)}function n(t){e({url:"/dx/siteservice/sectionpasswordcheck",params:t,callback:function(e){"pass"===e.status&&Ma.setPassedSection(e.sectionId),dx.site.events.dispatchEvent("SECTION_PASSWORD_AUTH",e)}})}function o(t){e({url:"/dx/siteservice/email/contact",params:t,callback:function(e){if("pass"!==e.status)throw new Error("contact form failed");dx.site.events.dispatchEvent(Io,e)}})}function a(t){e({url:"/dx/siteservice/email/share",params:t,callback:function(e){if("pass"!==e.status)throw new Error("share form failed");dx.site.events.dispatchEvent(Po,e)}})}function r(t){e({url:"/dx/siteservice/email/inquiry",params:t,callback:function(e){if("pass"!==e.status)throw new Error("inquiry form failed");dx.site.events.dispatchEvent(Ro,e)}})}function l(){s.customJsResponse({content:ji.js})}var s=new $e({events:t.events});return s.inquiryResponse=function(e){if("pass"!==e.status)throw new Error("inquiry form failed");dx.site.events.dispatchEvent(Ro,e)},s.customJsResponse=function(e){if(e.content){var t=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.id="customJs",i.innerHTML=e.content.replace(/\\/g,"");var n=document.getElementById("customJs");n||t.appendChild(i)}},s.createLightbox=function(t){return new Promise(function(i,n){e({url:"/dx/siteservice/lightbox/create",params:{ids:t},callback:function(e){"pass"===e.status?i(e):n(e)}})})},s.updateLightbox=function(t,i){return new Promise(function(n,o){e({url:"/dx/siteservice/lightbox/update",params:{hash:t,ids:i},callback:function(e){"pass"===e.status?n(e):o(e)}})})},s.getLightboxMedia=function(t){return new Promise(function(i,n){e({url:"/dx/siteservice/lightbox/media",params:{hash:t},callback:function(e){"pass"===e.status?i(e):n(e)}})})},s.downloadPdf=function(e){return fetch("/dx/siteservice/lightbox/pdfbuild",{method:"POST",body:JSON.stringify({ids:e}),headers:{"Content-Type":"application/json"}}).then(function(e){return e.blob()}).catch(function(e){})},s.getPdfModel=function(){return fetch("/dx/siteservice/pdf/model").then(function(e){return e.json()}).catch(function(e){})},i.call(s),s}function ft(e){function t(e){ue.events.dispatchEvent("passwordViewUpdate","pass"===e.status),setTimeout(function(){Ma.getPassedSection(e.sectionId)&&(ye=!0,n(se))},350)}function n(e,t){x(e,function(){var n=a(pe);if(pe&&pe.password.length>0&&!Ma.getPassedSection(pe.id))se=e,ue.events.dispatchEvent("privateGalleryAuthCheck",{section:pe});else if(n&&n.password.length>0&&!Ma.getPassedSection(n.id))se=e,ue.events.dispatchEvent("privateGalleryAuthCheck",{section:n});else if(pe){se=void 0;var r=c(pe),n=a(pe),h={section:pe,searchTags:we&&we.search&&we.search.split(",")||[],sortBy:we&&we.sort||"date-asc",parentSection:n,mediaToRender:y(pe.mediaItems),path:me,assetId:ve,asset:l(pe.mediaItems[ve]),mode:ge,prevState:{section:fe.section,mode:fe.mode,assetId:fe.assetId},info:{isInit:be,isSectionChange:pe!==q(fe,"section")||Ce,isPasswordSection:ye,isSearchSubmit:Ce,isParentSectionChange:n!==q(fe,"parentSection"),isAssetChange:ve!==q(fe,"assetId"),isModeChange:ge!==q(fe,"mode"),isLandingMedia:i(pe),mediaViewState:r,isDeepLink:be&&"/"!==e,isMediaViewStateChange:q(fe,"info.mediaViewState")!==r,isIntroGallery:pe.isIntroGallery,flickSpeed:ce,lastUri:re,isThumbsFirst:s(pe),isMobileVideoClick:he,isBlog:w(pe.id)}};ue.setTitle(),xa.updateSectionState(pe.key,{assetId:ve,mode:ge}),xa._section=h.section,xa._uriState=h,le=h,Ce=!1,ye=!1,t?ue.events.dispatchEvent("ADDRESS_URI_CHANGE_PASSIVE",le):o(),d(pe),fe=h,re=e,be=!1,ce=void 0,he=!1}})}function o(){ue.events.dispatchEvent(Pn,le)}function r(){le.asset=l(pe.mediaItems[ve]),ue.events.dispatchEvent(Pn,le)}function d(e){var t=l(e.media[0]);"link"!==t.type||t.thumb||("_blank"===t.linkTarget?window.open(t.content):"_self"===t.linkTarget&&(window.location.href=t.content))}function c(e){return e.slideshow||e.label===Yi?"landingMedia":"mediaView"}function u(e){ve=w(pe.id)?C(e.id,pe.mediaItems.length-1):e.id,I(),Ta.setValue(W(),!0,!1)}function p(e){e.section&&pe.key!==e.section.key&&(ge=e.mode,ve=e.assetId,pe=e.section,e.path=e.section.key,clearTimeout(Le),Le=setTimeout(function(){U(e,!0)},30))}function m(e,t){if(e.indexOf("/")>-1){var i=e.split("/");return i[0]==t||i[1]==t}return e==t}function v(e,t){return e.indexOf(t)>-1}function f(e){return e.split("&").reduce(function(e,t){var i=t.split("=");return e[i[0]]=i[1],e},{originalQuery:"?"+e})}function b(e){var t=e.split("?")[1];return t?f(t):{}}function L(){return Object.keys(Ri).reduce(function(e,t){var i=Ri[t];return i.password.length>0||!i.visible?e.concat(i.media):e},[])}function S(){return Object.keys(Ri).reduce(function(e,t){var i=Ri[t];return!i.password&&i.visible?e.concat(i.media):e},[])}function x(e,t){var i=we.search;if(we=b(e),i&&we.search&&i!==we.search&&(Ce=!0),e=e.replace(/^\/|\/$/g,"").replace(we.originalQuery,"").split("/"),ge=P(e),delete pe.isIntroGallery,pe=T(e),we.lightbox)ue.service.getLightboxMedia(we.lightbox).then(function(e){Ma.cacheLightboxSection(),pe.media=e.media,pe.mediaItems=e.media,"function"==typeof t&&t()}).catch(function(e){"function"==typeof t&&t()}),ve=A(e)?A(e):0,ve=pe&&pe.key&&m(pe.key,ve)&&!v(e,ve)?0:ve,ve=0!==ve?ve-1:ve,!A(e)&&s(pe)&&(ve=-1,ie("thumbs"));else{if(we.search&&!pe.isSearch)we={};else if(we.search&&pe.isSearch){var n=we.search,o=we.sort&&we.sort.split("-")||["date","asc"],a=o[0],r=o[1],l=L(),d=S(),c=Object.keys(Hi).filter(function(e){var t=l.indexOf(Number(e));return t===-1||t>-1&&d.indexOf(Number(e))>-1}).map(function(e){var t=Hi[e];return t.keywords=t.keywords||[],Date.parse(t.dateAdded)?t.dateAdded=new Date(t.dateAdded).toISOString():t.dateAdded=(new Date).toISOString(),t}).filter(function(e){var t=(Bi.searchCaptions||Bi.searchLabels||e.keywords.length)&&/image|video/.test(e.type);return(Bi.globalMediaSearch&&e.searchable!==!1||!Bi.globalMediaSearch&&e.searchable)&&t}).filter(function(e){var t=n.split(",").map(function(e){return"\\b"+e.replace(/\s+/g,".*")}).join("|"),i=new RegExp(t,"gi"),o=Bi.searchCaptions&&i.test(e.caption),a=Bi.searchLabels&&i.test(e.label),r=e.keywords.reduce(function(e,t){return e?e:i.test(t)},!1);return r||o||a}).sort(function(e,t){var i="size"===a?e.size.bytes:e[a],n="size"===a?t.size.bytes:t[a];return i>n?1:i0)for(var n=0;n1&&ie("thumbs")}function I(){if(Wi!==Xi&&pe&&(ve>-1||pe.isSearch)){var e=l(pe.mediaItems[ve]);e||(e={overrides:{}});var t=K(e.overrides.captionDefault,Ma.overrides.captionDefault);Wi===Xi&&(t=!1),"caption"===de?ie("caption"):""===de?ne("caption"):t?ie("caption"):ne("caption"),Q()}}function F(e){var t=E(e.split("/"));return t?H(e).replace(H(t),""):e}function A(e){var t=X(e.join("/")),i=F(t),n=i.split("/")[1];return!isNaN(n)&&Number(n)}function P(e){var t=/thumbs|^share$|^inquiry$|caption|^fotomoto$/;return t.test(e[3])?e[3]:t.test(e[2])?e[2]:t.test(e[1])?e[1]:""}function D(e){return"mailTo:"+e.replace("mailto:","").replace("mailTo:","")}function R(e){var t=/[-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]{2,4}/g.test(e.path);return!!t&&function(){window.location.href=D(e.path)}}function B(e){return("[one]"===e.label||"[like]"===e.label)&&function(){ue.events.dispatchEvent(oo,e)}}function j(e){return"_blank"===e.linkTarget&&function(){window.open(e.path)}}function _(e){return!Y(e)&&"_self"===e.linkTarget&&"external"===e.type&&function(){window.location.href=e.path}}function W(){var e=X(me),t=e,i=we.originalQuery;if(pe&&!N(me)){var n=G(t);if(n){t=n&&n.key||"",t="/"+t+"/";var o=A(e.split("/"));o&&ve>-1&&(ve=o-1),ve>-1&&(t+=Number(ve)+1+"/"),ge.length>0&&(t+=ge+"/")}else t="/"}return n&&"landingMedia"===n.key&&(t="/"),i?t+i:t}function N(e){return/^(ht|f)tp(s?):\/\//.test(e)}function X(e){var t=window.location.protocol+"//"+window.location.host;return"string"==typeof e?e.replace(t,"").replace(/^\/|\/$/g,""):""}function Y(e){return!!e.path&&(V(e.path.split("/"))?(e.section=V(e.path.split("/")),e.type="internal",!0):(e.path=X(e.path),e.section=G(e.path),e.type="internal",!0))}function Z(e){e.section&&!i(e.section)&&(!e.isThumbClick&&g(e.section)?ie("thumbs"):"none"===Ma.overrides.thumbnailType?ne("thumbs"):(e.section.isSearch||e.section.mediaItems.length>1)&&Ma.overrides.thumbnailDefaultOn&&!e.isThumbClick?ie("thumbs"):e.section.mediaItems.length>1&&e.isThumbClick&&"strip"===Ma.overrides.thumbnailType&&Ma.overrides.thumbnailDefaultOn&&"displace"===Ma.overrides.thumbnailDock&&ie("thumbs"),e.nothumbs&&ne("thumbs"),!e.isThumbClick&&s(e.section)&&0===ve&&te("thumbs")&&(ve=-1))}function G(e){var t,i=e.split("/"),n=i[0];return i[0]&&i[1]&&(t=i[0]+"/"+i[1]),t?T(t.split("/")):!!n&&T(n.split("/"))}function U(e,t){action=B(e)||R(e)||j(e)||_(e)||J(e,t),action()}function J(e,t){return e.section?(Ma.section(e.section),pe=e.section,pe.isSearch||(we={}),Ce=e.searchSubmit):e.section||e.path||(x(""),Ma.section(pe)),me=e.path,ve=e.section&&w(e.section.id)?K(e.assetId,e.section.mediaItems.length-1):e.assetId||0,ge=e.mode,he=!!e.isMobileVideoClick,t||Z(e),I(),ne("inquiry"),ne("share"),function(){var i;e.section&&e.section.isSearch&&e.searchTerm?(we={},i=W()+"?search="+e.searchTerm,e.section.sortBy&&(i+="&sort="+(e.section.sortBy||"date-asc"))):e.section&&e.section.isLightbox&&Ma.lightboxHash?i=W()+"?lightbox="+Ma.lightboxHash:(we=b(me),Ce=e.section&&e.section.isSearch&&we.search,i=W()),Ta.setValue(i,t,!t)}}function $(e){oe(e),Q(),Ta.setValue(W())}function Q(){te("thumbs")&&/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)&&ne("caption")}function ee(e){var t=y(pe.mediaItems).length-1;w(pe.id)&&(ve=C(ve,t)),w(pe.id)?"next"===e.navDir?ve=ve>0?ve-1:0:"prev"===e.navDir&&(ve=ve0?ve-1:0:"next"===e.navDir&&(ve=Wi===Xi||Wi===Ni?ve-1&&(a.footerView.updateStyle(e),a.footerView.updatePosition(e)))}function n(){Wi===Xi&&a.footerView.hide()}function o(){a.footerView.show()}var a=new $e({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents});return a.updateSpeed=0,a.footerView=new e.FooterView(e),a.footerView.alpha=0,a.parentView.addChild(a.footerView),a.events.addEventListener(_n,i),a.events.addEventListener(Wn,i),a.events.addEventListener(Yn,i),a.events.addEventListener(nn,a.footerView.updatePosition),a.events.addEventListener(No,n),a.events.addEventListener(Wo,o),a.events.addEventListener(Hn,function(){a.footerView.updateSpeed=0,a.footerView.updatePosition()}),a.events.addEventListener("UPDATE_CONTENT_HEIGHT",function(){a.footerView.updateSpeed=0,a.footerView.updatePosition()}),a.events.addEventListener("mediaOverlayClose",function(){a.footerView.updateSpeed=0,a.footerView.updatePosition()}),a.footerView.addEventListener(eo,t),a}function Ct(e){function t(e){"Safari"===ra&&(w.translateZ=0)}function i(e){"Safari"===ra&&(w.style["-webkit-transform"]="none",w.style["-ms-transform"]="none",w.style.transform="none")}function n(){L=""!==Ma.copyright?[Ma.copyright].concat(S(Ma.socialLinks)):S(Ma.socialLinks);var e=0,t=L.length,i=Wi===Xi?"y":"x";for(C=new f("x"),b=new f(i),w.addChild(b),w.addChild(C);e0&&g()}function o(e){return/src=/.test(e.label)}function a(e){e=e.replace(/\[|\]|\s+/g,"");var t="",i=20,n=20;if(e.indexOf(",")>-1){var o=e.split(",");t=o[0].split("=")[1];var a=o[1].split("x");i=Number(a[0].split("=")[1]),n=Number(a[1])}else t=e.split("=")[1];return{path:t,width:i,height:n}}function r(e){var t=a(e.label),i=new Ke;return i.src=Bi.cdnSslUri+"/"+t.path,i.width=t.width,i.height=t.height,i.element.style.cursor="pointer",i.customLabel=e.label.toLowerCase(),i}function s(t,i,n){var o=ua[t.label.toLowerCase()],a=new e.Bitmap;return a.src=go+o.filename,a.width=o.width,a.height=o.height,a.element.style.cursor="pointer",a.addEventListener(en,h),a}function d(e){switch(Pi.footerIconShape){case"standard":return e.svgStdPath;case"rectangle":return e.svgRectPath;case"circle":return e.svgCircPath}}function c(e){var t=ua[e.label.toLowerCase()],i=new La,n=new La({type:"g"}),o=new nt,a=Wi===Ni||Wi===Xi?1:Pi.footerIconScale;if(n.scale=a,/circle|rectangle/.test(Pi.footerIconShape)){var r=new ot;r.rx="circle"===Pi.footerIconShape?t.bgCircRadius:t.bgRectRadius,r.width=t.width,r.height=t.height,r.fill=Pi.footerIconColor,n.addChild(r)}return o.d=d(t),o.fill="standard"===Pi.footerIconShape?Pi.footerIconColor:Pi.footerIconBgColor,o.fillRule="evenodd",n.addChild(o),i.addChild(n),i.width=t.width*a,i.height=t.height*a,i.element.style.cursor="pointer",i.socialLabel=e.label.toLowerCase(),i}function h(e){g(),w.updatePosition()}function u(e){var t=l(e);return e&&t&&t.label&&ua[t.label.toLowerCase()]&&!isNaN(e)}function p(t){var i=document.createElement("span"),n=x(Pi.copyrightFont);i.style.position="absolute",i.style.display="block",Wi===Xi&&(i.style.width=wa.width-12+"px"),i.style.fontFamily=n.family,i.style.textTransform=Pi.copyrightTextTransform||"none",i.style.fontWeight=n.weight,i.style.fontSize=Pi.copyrightFontSize.toString().replace("px","")+"px",i.style.letterSpacing=Pi.footerKerning+"px",i.innerHTML=t,i.whiteSpace=Wi===Xi?"normal":"nowrap",document.body.appendChild(i);var o=new e.Sprite;return o.fontFamily=Pi.copyrightFont,o.textTransform=Pi.copyrightTextTransform||"none",o.fontSize=Pi.copyrightFontSize.toString().replace("px","")+"px",o.fontColor=Pi.copyrightColor,o.letterSpacing=Pi.footerKerning,o.text=t,o.width=i.offsetWidth,o.height=i.offsetHeight,o.textWrap=Wi===Xi,document.body.removeChild(i),i=null,o}function m(e){this.btn.txt?qe(this.btn.txt,Lo,{fontColor:V(Pi.copyrightColor,.5)}):qe(this.btn,Lo,{alpha:.5})}function v(e){this.btn.txt?qe(this.btn.txt,Lo,{fontColor:V(Pi.copyrightColor,1)}):qe(this.btn,Lo,{alpha:1})}function g(){var e,t=w.children,i=t.length;for(b.layoutContent(),C.layoutContent(),y=new Ne,y.gap=0,y.axis=Wi===Xi?"y":"x",y.align="left",y.wrap=!1,"x"===y.axis?y.perpLength=wa.height:y.perpLength=wa.width,e=0;e0&&Wi!==Xi&&(b.y=C.height-b.height);var o=y.getBounds();w.transition=0,w.width=o.width,w.height=o.height}function f(e){var t=new Ca;return t.layoutContent=function(){var i=new Ne;i.gap=6,i.axis=e,i.align="left",i.wrap=!1,i.perpLength=150;for(var n=0,o=t.children,a=o.length;n-1||(this.txt?qe(this.txt,Lo,{ease:"ease-out",fontColor:V(Pi.logoFontColor,.5)}):qe(this,Lo,{ease:"ease-out",alpha:.5}))}function n(e){this.txt&&this.txt.text.indexOf("-1||(this.txt?qe(this.txt,Lo,{fontColor:V(Pi.logoFontColor,1)}):qe(this,Lo,{alpha:1}))}function o(){Wi!==Xi&&r()}function a(){l()}function r(){d.logoView.style.pointerEvents="none",qe(d.logoView,Lo,{alpha:0,display:"none"})}function l(){d.logoView.display="block",qe.defer(d.logoView,Lo,{alpha:1,onComplete:function(){d.logoView.style.pointerEvents="auto"}})}function s(e){if(this.txt&&this.txt.text.indexOf("-1);else{var t={type:"internal",path:"",target:"_self"};d.events.dispatchEvent(to,t)}}var d=new $e({parentView:e.parentView,parentController:e.parentController,events:e.siteControllerEvents});return d.updateSpeed=0,d.logoView=new e.LogoView({parentView:d.parentView,parentController:d,events:e.siteControllerEvents}),d.logoView.alpha=0,d.events.addEventListener("LOGO_CHILD_ADDED",l),Wi===Xi?e.menuController.menuView.mask.addChild(d.logoView):"menu"===Pi.logoPlacement?e.menuController.menuView.addChild(d.logoView):d.parentView.addChild(d.logoView),d.events.addEventListener(Yn,function(e){/intro|logo/.test(e.id)&&(d.logoView.updateStyle(e),d.logoView.updatePosition(e))}),d.events.addEventListener(_n,t),d.events.addEventListener(nn,d.logoView.updatePosition),d.events.addEventListener(No,o),d.events.addEventListener(Wo,a),d.logoView.addEventListener(Vn,s),Wi!==Xi&&Wi!==Ni&&(d.logoView.addEventListener(cn,i),d.logoView.addEventListener(mn,n)),d}function yt(e){function t(e){var t=void 0===Bi.disableRightClick||Bi.disableRightClick;t&&e.preventDefault()}function i(e){"Safari"===ra&&(g.translateZ=0)}function n(e){"Safari"===ra&&(g.style["-webkit-transform"]="none",g.style["-ms-transform"]="none",g.style.transform="none")}function o(e){g.events.dispatchEvent("OVER_LOGO")}function a(){return Wi===Xi?K(Pi.mobileLogoFontSize,Pi.logoFontSize):Wi===Ni?K(Pi.tabletLogoFontSize,Pi.logoFontSize):Pi.logoFontSize}function r(){return Wi===Xi?K(Pi.mobileLogoFontColor,Pi.logoFontColor):Wi===Ni?K(Pi.tabletLogoFontColor,Pi.logoFontColor):Pi.logoFontColor}function l(){return Wi===Xi?K(Pi.mobileLogoFont,Pi.logoFont):Wi===Ni?K(Pi.tabletLogoFont,Pi.logoFont):Pi.logoFont}function s(){return Wi===Xi?K(Pi.mobileLogoKerning,Pi.logoKerning):Wi===Ni?K(Pi.tabletLogoKerning,Pi.logoKerning):Pi.logoKerning}function d(e,t){var i=document.createElement("img");i.addEventListener("load",function(e){var n=i.offsetWidth,o=i.offsetHeight;document.body.removeChild(i),t({width:n,height:o})}),i.style.opacity=0,document.body.appendChild(i),i.src=e}function c(){v=!0,setTimeout(function(){g.updatePosition(),g.events.dispatchEvent(io),qe.defer(g.img,Lo,{alpha:1}),g.events.dispatchEvent("LOGO_LOADED")},10),g.img.element.removeEventListener(en,c)}var h,u,p,m,v,g=new st({events:e.events});return Wi===Xi?g.textWrap=!0:g.textWrap=!1,g.zIndex=Ma.logoView.zIndex(),Wi!==Xi&&Wi!==Ni&&(g.position=Pi.logoPositionFixed?"fixed":"absolute"),g.updateSpeed=0,g.events.addEventListener("fillSiteMode",i),g.events.addEventListener("nonFillSiteMode",n),g.element.addEventListener("contextmenu",t),g.element.addEventListener("dragstart",t),g.element.setAttribute("data-identity","logo"),g.addEventListener(So,function(e){g.updatePosition(),setTimeout(function(){g.updatePosition(),g.updateSpeed=Lo},500),g.events.dispatchEvent("LOGO_CHILD_ADDED")}),g.addEventListener(cn,o),g.updatePosition=function(e){if(g.zIndex=Ma.logoView.zIndex(),Wi!==Xi&&Wi!==Ni&&(g.position=Pi.logoPositionFixed?"fixed":"absolute"),g.transition=0,g.txt)Wi===Xi?(g.txt.width=wa.width,g.width=wa.width):g.width=g.txt.element.offsetWidth,g.height=g.txt.element.offsetHeight;else if(g.img&&v&&(!e||!e.action||"changeTemplate"!==e.action))if(Wi===Xi&&(Pi.mobileLogoWidth||Pi.mobileLogoHeight)||Pi.logoWidth||Pi.logoHeight){var t=E(Pi.logoWidth,wa.width)||2e3,i=E(Pi.logoHeight,wa.height)||2e3;Wi===Xi&&(t=E(Pi.mobileLogoWidth,wa.width)||t,i=E(Pi.mobileLogoHeight,wa.height)||i,t=(E(Pi.mobileLogoWidth,wa.width)||E(Pi.logoWidth,wa.width)||2e3)>wa.width-2*E(Pi.mobileLogoOffsetX,wa.width)?wa.width-2*E(Pi.mobileLogoOffsetX,wa.width):t,i=E(Pi.mobileLogoHeight,wa.height)||E(Pi.logoHeight,wa.height)||2e3);var n={type:"fit",hRange:t,vRange:i,width:p,height:m,disableOrientationCheck:!0},o=De(n);g.img.width=o.width,g.img.height=o.height,g.width=o.width,g.height=o.height}else if(!e||!e.action||"changeTemplate"!==e.action){var a={width:p,height:m,filename:h},r=He(a),t=r.width;Wi===Xi&&(t=r.width>wa.width-2*E(Pi.mobileLogoOffsetX,wa.width)?wa.width-2*E(Pi.mobileLogoOffsetX,wa.width):t);var o=De({type:"fit",hRange:t,vRange:r.height,width:p,height:m,disableOrientationCheck:!0});g.img.width=o.width,g.img.height=o.height,g.width=o.width,g.height=o.height}qe.defer(g,0,{x:xa.logoView.x(g.width),y:xa.logoView.y(g.height)})},g.updateStyle=function(t){if(t&&t.id&&/logo|layoutModelInit/i.test(t.id)){var i=Wi!==Xi&&Wi!==Ni&&Pi.logoBlendMode?Pi.logoBlendMode:"normal";g.element.style["mix-blend-mode"]=i;var n=Ma.logoFile||Pi.logoFile||"";if(Wi===Xi&&(n=Bi.mobileLogoFile||Pi.mobileLogoFile||n),Wi===Ni&&(n=Bi.tabletLogoFile||Pi.tabletLogoFile||n),h=n.indexOf("dxlogo1__at__2x.png")>-1||n.indexOf("dxlogo2__at__2x.png")>-1?vo+"/media/"+n:""!==n?Bi.cdnSslUri+"/"+n:void 0,g.txt&&(g.removeChild(g.txt),g.txt=void 0),h&&h!==u)g.img&&(g.removeChild(g.img),g.img=void 0),g.img=new Ke,g.img.element.style["user-select"]="none",g.img.element.setAttribute("data-identity","logo"),g.img.alpha=0,g.img.element.setAttribute("class","logoImage"),d(h,function(e){p=e.width,m=e.height,u=h,g.img.element.src=h}),g.img.element.addEventListener("load",c),g.addChild(g.img),g.img.element.style.cursor="pointer";else if(!h){g.img&&(g.removeChild(g.img),g.img=void 0),h=void 0,u=void 0,v=!1;var o=Ma.logoText||Pi.logoText||"",f=Ma.logoHtml||Pi.logoHtml||"";g.txt=new Ca,g.txt.text=f.replace(/(\\*'|\\*")/g,"'")||o.replace(/(\\*'|\\*")/g,"'"),g.txt.element.setAttribute("class","logoText"),g.txt.element.style["user-select"]="none",g.addChild(g.txt),g.txt.element.style.cursor="pointer",Wi===Xi&&(g.txt.textAlign=Pi.mobileLogoAlignHorizontal||"left");var b=a(),C=r(),w=l(),y=s();b!==g.txt.fontSize&&(g.txt.fontSize=b),C!==g.txt.fontColor&&qe(g.txt,e.parentController.updateSpeed,{fontColor:C}),w!==g.txt.fontFamily&&(g.txt.fontFamily=w),y!==g.txt.letterSpacing&&(g.txt.letterSpacing=y),Pi.logoTextTransform&&Pi.logoTextTransform!==g.txt.textTransform&&(g.txt.textTransform=Pi.logoTextTransform)}}},g}function Lt(e){function t(){}function n(){A&&s(),A!==!1&&(A=void 0)}function o(){void 0===A&&(A=!0),A&&s()}function a(e){j||t(e),clearTimeout(j),o(e),j=setTimeout(function(){n(e),j=null},300)}function s(){z&&"multiple"===xa.sectionDisplayMode&&Object.keys(z).map(function(e){return z[e]}).forEach(function(e){var t=e.view.y;window.scrollY+.5*window.innerHeight>=t&&window.scrollY+.5*window.innerHeight<=t+e.view.height&&(e.controller.checkCaption(),Ma.section(e.controller.section),D.dispatchEvent("cursorAxisUpdate",ve(Ma.overrides.transitionType)),D.dispatchEvent("updateSectionPassive",{section:e.controller.section,assetId:e.controller.getCurrentAssetId(),mode:e.controller.getCurrentMode()}))})}function d(e){return Ma.section(e),!i(e)&&Ma.overrides.thumbnailDefaultOn&&/fill|paginated|vMasonry|hMasonry/i.test(Ma.overrides.thumbnailType)&&1===Pi.overlayAlpha||g(e)}function c(e){return d(e)?"thumbs":h(e)&&u(e)?"thumbs-caption":h(e)?"thumbs":u(e)?"caption":""}function h(e){return Ma.section(e),!i(e)&&"none"!==Ma.overrides.thumbnailType&&(Ma.overrides.thumbnailDefaultOn||g(e))&&e&&e.media&&e.media.length>1}function u(e){Ma.section(e);var t=l(e.mediaItems[0]);return t||(t={overrides:{}}),Wi!==Xi&&K(t.overrides.captionDefault,Ma.overrides.captionDefault)}function p(e){var t=new Ca,i=new La,n=new La({type:"g"}),o=new nt,a=100*e.scale;t.zIndex=5,t.width=a,t.height=a,t.element.style["mix-blend-mode"]=e.blendMode,t.alpha=0,t.addEventListener("click",function(){var e=z[1];if(e){var t=e.view.y-Ma.mediaView.y(e.controller.section.key);fa.to(window,.35,{scrollY:t,ease:po?"outQuart":"inOutCubic"})}});var r;return t.updatePosition=function(i){clearTimeout(r),r=setTimeout(function(i){t.y=i-a-e.offsetY,t.x=.5*(wa.width-a),qe(t,Lo,{alpha:1})},1e3,i)},i.position="absolute",i.width=a,i.height=a,t.element.style.transformOrigin="center",n.scale=e.scale,o.d=e.path,o.fill="none",o.stroke=e.color,o.strokeWidth=e.strokeWidth,i.addChild(n),n.addChild(o),t.addChild(i),t}function m(e){return!e.hideFromUnifiedSite&&"%SPACER%"!==e.label&&e.visible&&(!!g(e)||e.mediaItems.length)&&(!e.password.length||Ma.getPassedSection(e.id))&&!/overlay|none|unifiedPageScrolling/.test(e.displayBehavior)&&(!v(e)||e.isIndex)}function v(e){var t=l(e.media[0]);return!!t&&("link"===t.type&&!e.mediaItems.length)}function f(e){function t(){xa.sectionDisplayMode="multiple";var t=e.media.map(r).filter(m);if("ROOT_SECTION"===e.label&&Ma.backgroundImages.length){var n=Ma.backgroundImages.filter(function(e){return!!Hi[e]}),o={id:Yi,key:"/",label:Yi,visible:1,password:"",media:n,mediaItems:n,overrides:{captionDefault:Pi.slideshowCaptions}};t=[o].concat(t)}var a=t[0];t[1];("ROOT_SECTION"===e.label&&Pi.slideshowScrollDownIcon&&i(a)||e.scrollDownIcon||a&&a.scrollDownIcon)&&(b=p({path:ya.arrow3Down,color:Pi.scrollDownIconColor||"#F2F2F2",strokeWidth:Pi.scrollDownIconStrokeWidth||1,scale:Pi.scrollDownIconScale||1,offsetY:Pi.scrollDownIconOffsetY||0,blendMode:Pi.scrollDownIconBlendMode||"normal"}),H.addChild(b)),z=t.reduce(function(e,n,o){Ma.section(n);var a={section:n,mediaToRender:y(n.mediaItems),path:n.key,assetId:d(n)?-1:0,asset:l(n.mediaItems[0]),mode:c(n),info:{isSectionChange:!0,isAssetChange:!0,isModeChange:!1,isLandingMedia:i(n),mediaViewState:i(n)?"landingMedia":"mediaView",isDeepLink:!1,isMediaViewStateChange:!0,isIntroGallery:n.isIntroGallery,flickSpeed:.35,lastUri:"/",isThumbsFirst:d(n),isMobileVideoClick:!1,isBlog:w(n.id)}};xa.updateSectionState(n.key,{assetId:a.assetId,mode:a.mode});var r=new R(D,H,null,{position:o,length:t.length});return xa._uriState=a,r.controller.build(a),e.concat(r)},[]),window.addEventListener("scroll",f)}function n(e){clearTimeout(L),L=setTimeout(function(){var t=0,i=Pi.marginOverlap||0,n=z[0].controller.section,o=E(Pi.sitePaddingTop,wa.height),a=o;if(_(n))a=0;else if(/top/.test(Ma.menuView.placement())&&!Pi.isMenuScrollReveal){var r=E(Pi.menuWidth,wa.height)-E(Pi.menuOffsetX,wa.height);a=o+r-i}var l=a||0,s=0;z.forEach(function(e,i,n){Ma.section(e.controller.section);var o=n[i-1],a=o?o.view.y+(o.view.height||0):l,r=e.controller.getTotalHeight();s+=e.controller.section.media.length;e.controller.section;t+=r||0,e.view.transition=0,e.view.x=0,e.view.y=a,e.view.width=wa.width,e.view.height=r,e.view.mask.x=Ma.mediaView.x(),e.view.container.y=0,e.view.mask.transition=0,e.view.mask.width=Ma.mediaView.width(),e.view.mask.height=r}),H.totalHeight=t,H.height=t,xa.mediaModules=z,xa.mediaViewsHeight=H.totalHeight,b&&b.updatePosition(z[0].view.height),u(O,e)},500)}function o(){}function a(){g(),t()}function s(e){Ma.section(e.controller.section);var t=e.view.y-Ma.mediaView.y(e.controller.section.key);if(e===z[0])t=0;else{document.getElementsByClassName("SiteView")[0]}window.scrollTo(0,t)}function h(e){Ma.section(e.controller.section);var t=e.view.y-Ma.mediaView.y(e.controller.section.key);e===z[0]&&(t=0),fa.to(window,.35,{scrollY:t,ease:po?"outQuart":"inOutCubic"})}function u(e,t){if(C){var i=z.filter(function(t){return e.path===t.controller.section.key})[0];i||(i=z[0]),e.info.isParentSectionChange||t?s(i):e.info.isSectionChange?h(i):e.info.isModeChange&&h(i),C=!1}}function v(e,t){C=!0;var i=z.filter(function(t){return e.path===t.controller.section.key})[0];i||(i=z[0]),t&&!e.info.isParentSectionChange||i.controller.navigate(e),D.dispatchEvent("cursorAxisUpdate",i.controller.cursorAxis)}function g(){z.forEach(function(e){e.controller.destroy()}),window.removeEventListener("scroll",f),b&&H.removeChild(b)}function f(){clearTimeout(S),S=setTimeout(function(){z.forEach(function(e){e.view.lazyLoader&&e.view.lazyLoader.update(),e.controller.overlayController&&e.controller.overlayController.lazyLoaderUpdate()})},10)}var b,C;t();var L,S;return{type:"unified",layout:n,uriChange:v,modelChange:a,scrollTo:u,transition:o,destroy:g}}function b(){function e(e){clearTimeout(a),a=setTimeout(function(){var t=r.getTotalHeight();Ma.section(l.section),qe(l,0,{x:Ma.mediaView.x(),y:Ma.mediaView.y(l.section.key),width:Ma.mediaView.width(),height:t});var i="none"===Ma.overrides.siteDisplayBehavior&&/vScroll/.test(Ma.overrides.transitionType)?Ma.mediaView.zoneHeight():l.container.boundsHeight;qe(l.mask,0,{width:Ma.mediaView.width(),height:i}),xa._mediaContentHeight=t,l.lazyLoader&&l.lazyLoader.update(),"function"==typeof e&&setTimeout(e,500)},500)}function t(){}function i(e,t,i){t||r.navigate(e,i)}function n(){qe(l.container,Lo,{backgroundColor:Ma.mediaView.backgroundColor()}),e(),r.destroyStaticNav(),r.createStaticNav()}xa.sectionDisplayMode="single";var o=new R(D,H);k=o;var a,r=o.controller,l=o.view;return{type:"legacy",module:o,layout:e,uriChange:i,modelChange:n,transition:t,destroy:function(){o.controller.destroy()}}}function C(){function e(){var e=r.getTotalHeight();Ma.section(l.section),l.x=0,l.y=0,l.width=wa.width,l.height=wa.height,l.mask.width=Ma.mediaView.width(),l.mask.height=Ma.mediaView.contentHeight(),xa._mediaContentHeight=e,l.lazyLoader&&l.lazyLoader.update()}function t(){}function i(e){r.navigate(e)}function n(){Ma.section(l.section),qe(l.container,Lo,{backgroundColor:Ma.mediaView.backgroundColor()}),e(),r.destroyStaticNav(),r.createStaticNav()}xa.lastSectionDisplayMode=xa.sectionDisplayMode,xa.sectionDisplayMode=/unifiedSiteScroll/.test(Ma.overrides.siteDisplayBehavior)?"multiple":"single";var o=!0,a=new R(D,H,o);k=a;var r=a.controller,l=a.view;return{type:"overlay",module:a,layout:e,uriChange:i,modelChange:n,transition:t,destroy:function(){a.controller.destroy()}}}function L(e){D.removeEventListener("UPDATE_CONTENT_HEIGHT",function(){W(e.layout)}),D.removeEventListener(_n,e.modelChange),D.removeEventListener(Zn,e.modelChange),D.removeEventListener(Yn,function(t){/backgroundimages|template|staging/.test(t.id)&&e.modelChange()}),D.removeEventListener("mediaOverlayClose",function(){I||D.dispatchEvent(Go,{type:"internal",path:"",target:"_self"})})}function S(e){D.addEventListener("UPDATE_CONTENT_HEIGHT",function(){W(e.layout)}),D.addEventListener(_n,e.modelChange),D.addEventListener(Zn,e.modelChange),D.addEventListener(Yn,function(t){/backgroundimages|template|staging/.test(t.id)&&e.modelChange()}),D.addEventListener("mediaOverlayClose",function(){B&&Ma.section(B.section),I?D.dispatchEvent("updateSectionPassive",{section:B.section,assetId:B.assetId,mode:B.mode}):D.dispatchEvent(Go,{type:"internal",path:"",target:"_self"})})}function x(e){O=e;var t=!1;switch(Ma.section(e.section),Ma.overrides.siteDisplayBehavior){case"unifiedSiteScrollVertical":F&&F.module.view.close(function(){F&&F.destroy(),F=null}),I?e.info.isParentSectionChange||I&&"legacy"===I.type||e.info.isPasswordSection||e.info.isSearchSubmit?(I&&(L(I),I.destroy()),I=f(e.parentSection),S(I),t=!0,I.uriChange(e,t),I.layout(t)):e.info.isModeChange?(I.uriChange(e,t),I.layout(t)):(I.uriChange(e,t),I.scrollTo(e,t)):(I=f(e.parentSection),S(I),t=!0,I.uriChange(e,t),I.layout(t));break;case"overlay":e.info.isSectionChange&&F&&(L(F),F.destroy(),F=null),F||(B=e.prevState,F=C(),S(F),t=!0,F.module.controller.build(e)),F.uriChange(e,t),F.layout(),F.module.view.open(),P=xa.sectionDisplayMode;break;default:if(F&&F.module.view.close(function(){F&&F.destroy(),F=null}),e.info.isSectionChange||I&&"unified"===I.type){I&&(L(I),I.destroy()),I=b(),S(I),I.module.controller.build(e),t=!0;var i=!0;I.layout(function(){var t=e.assetId<1;I.uriChange(e,t,i)})}else e.info.isModeChange?(I.uriChange(e,t),I.layout()):I&&I.uriChange(e,t)}}function M(e,t){return e.key===t.section.key}function T(e){if(/unifiedSiteScroll/.test(Ma.overrides.siteDisplayBehavior))z&&Object.keys(z).map(function(e){return z[e]}).forEach(function(t){var i;if(M(t.controller.section,e)&&(Ma.section(t.controller.section),!/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)||!/thumbs/.test(e.mode))){var n=t.view.container.children[e.assetId];i=n?n.id:void 0}t.events.dispatchEvent("spacebarTogglePlay",i)});else if(k){if(Ma.section(k.controller.section),!/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)||!/thumbs/.test(e.mode))var t=k.view.container.children[e.assetId],i=t?t.id:void 0;k.events.dispatchEvent("spacebarTogglePlay",i)}}function V(e){if(/unifiedSiteScroll/.test(Ma.overrides.siteDisplayBehavior))z&&Object.keys(z).map(function(e){return z[e]}).forEach(function(t){var i;if(M(t.controller.section,e)&&(Ma.section(t.controller.section),(!/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)||!/thumbs/.test(e.mode))&&Ma.mediaView.videoAutoPlay())){var n=t.view.container.children[e.assetId];i=n?n.id:void 0}t.events.dispatchEvent("mediaAutoPlay",i)});else if(k){if(Ma.section(k.controller.section),(!/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)||!/thumbs/.test(e.mode))&&Ma.mediaView.videoAutoPlay())var t=k.view.container.children[e.assetId],i=t?t.id:void 0;k.events.dispatchEvent("mediaAutoPlay",i)}}var z,k,O,I,F,A,P,H=e.parentView,D=e.siteControllerEvents,R=e.MediaModule,B={};/unifiedSiteScroll/.test(Ma.overrides.siteDisplayBehavior)&&window.addEventListener("scroll",a);var j,W=ce(500);D.addEventListener("autoplayTarget",V),D.addEventListener("spacebarPlay",T),D.addEventListener(Hn,x),D.addEventListener(_n,function(e){/siteDisplayBehavior|transitionType/.test(e.id)&&I&&(L(I),I.destroy(),Ma.section(O.section),"unifiedSiteScrollVertical"===Ma.overrides.siteDisplayBehavior?I=f(O.parentSection):(I=b(),I.module.controller.build(O)),S(I),built=!0,I.layout())}),D.addEventListener(Zn,function(){I&&(L(I),I.destroy(),Ma.section(O.section),"unifiedSiteScrollVertical"===Ma.overrides.siteDisplayBehavior?I=f(O.parentSection):(I=b(),I.module.controller.build(O)),S(I),built=!0,I.layout())})}function St(e){function t(e){1===V.assetId&&"right"===e.swipeDirection?z.touchNav&&(z.touchNav.disabled=!0):z.touchNav&&(z.touchNav.disabled=!1),e.isMove?n()&&"right"===e.swipeDirection?l():o()&&"left"===e.swipeDirection?l():"left"===e.swipeDirection||"right"===e.swipeDirection?(e.navDir="left"===e.swipeDirection?"next":"prev",x.dispatchEvent(qo,e)):l():e.isMove&&/left|right/.test(e.swipeDirection)&&l()}function i(){w||r(),"mSlide"!==y||z.touchNav||a(),w(),/scroll/i.test(y)||l()}function n(){return 0===V.assetId}function o(){return V.assetId===S(V.section.media).length-1}function a(){z.touchNav=new Ge({events:x,mediaViewContainer:T}),z.touchNav.section=V.section&&V.section.key||"no section"}function r(){Ma.section(V.section),M.scroll&&(M.scroll.destroy(),M.scroll=null),y=Ma.overrides.transitionType;var t="fade"===y||"mSlide"===y?"fade":"default",i=M.container,n=M.mask;M.lazyLoader=new ze(i,n,{type:t,property:"translate"}),M.lazyLoader.name="mediaView",b&&"function"==typeof b.destroy&&b.destroy(),x.dispatchEvent("cursorAxisUpdate",ve(y));var o=Ma.mediaView.transitionDuration();switch(y){case"fade":C=new zt({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:x}),b=new kt({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:x});break;case"hSlide":C=new _t({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:x}),b=new Wt({transitionDuration:o,mediaView:M,mediaViewContainer:T,localEvents:x});break;case"vSlide":C=new Nt({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:x}),b=new Xt({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:x});break;case"hScroll":C=new Ft({siteView:e.siteView,mediaView:M,localEvents:x}),b=new At({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:x});break;case"hScrollNC":C=new Pt({siteView:e.siteView,mediaView:M,localEvents:x}),b=new Ht({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:x});break;case"vScroll":C=new Dt({siteView:e.siteView,mediaView:M,localEvents:x}),b=new Rt({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:x});break;case"vScrollNC":C=new Bt({siteView:e.siteView,mediaView:M,localEvents:x}),b=new jt({transitionDuration:o,siteView:e.siteView,mediaView:M,localEvents:x});break;case"grid":C=new Ot({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:x}),b=new It({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:x});break;case"mSlide":C=new Yt({siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:x}),b=new Zt({transitionDuration:o,siteView:e.siteView,mediaView:M,mediaViewContainer:T,localEvents:x});break;case"vScrollStatic":C=new Gt({siteView:e.siteView,mediaView:M,localEvents:x}),b=new Ut}w=function(){Ma.section(V.section),C()}}function l(){var e=oe()||le()?0:.85;1===wa.zoom&&(V.mediaToRender&&V.mediaToRender.length>V.assetId&&b?V.assetId>-1&&b(V.assetId,e):b&&b(0,e))}function s(e){b(e,0)}function d(){1===wa.zoom&&ae()&&!Bi.podUseDesktop&&window.scrollTo(1,0),w&&w(),V.mediaToRender&&V.mediaToRender.length>0&&V.assetId>-1&&(b||r(),"mSlide"!==y||z.touchNav||a(),/^unifiedSite/.test(Ma.overrides.siteDisplayBehavior)||s(V.assetId)),L=!1,M&&M.lazyLoader&&M.lazyLoader.update()}function c(e){L=!0}function h(e){u(e),g()}function u(){r(),"mSlide"!==y||z.touchNav||a(),w()}function p(e){"siteDisplayBehavior"===e.id&&r(),"mSlide"!==y||z.touchNav||a(),w&&w()}function m(e,t){return e.key===t.section.key}function v(e){clearTimeout(k),k=setTimeout(function(){E=e.id,V&&m(M.section,V)&&(V.assetId=e.id)},200)}function g(){T.transition=0,Math.abs(T.translateX)>0&&(T.translateX=0),Math.abs(T.translateY)>0&&(T.translateY=0),T.x=0,T.y=0,qe(T,Lo,{backgroundColor:Ma.mediaView.backgroundColor()})}function f(){b&&b.destroy&&b.destroy(),w=void 0,b=void 0,x.removeEventListener(_n,p),x.removeEventListener(Zn,p),x.removeEventListener(_n,p),x.removeEventListener(tn,d),x.removeEventListener(lo,c),x.removeEventListener("layoutMediaView",h),x.removeEventListener("mediaSizeUpdate",i),x.removeEventListener("MEDIA_HEIGHT_CHANGE",i),x.removeEventListener("assetReset",l),x.removeEventListener(_o,t),x.removeEventListener("ScrollTransition/updateAssetId",v),M.scroll&&M.scroll.destroy(),z.touchNav&&z.touchNav.destroy(),z.touchNav=null,M.scroll=null}var b,C,w,y,L,x=e.localEvents,M=e.mediaView,T=e.mediaView.container,V={assetId:0},E=0,z=this;x.addEventListener("layoutMediaView",h),x.addEventListener(Zn,p),x.addEventListener(_n,p),x.addEventListener(tn,d),x.addEventListener(lo,c),x.addEventListener("mediaSizeUpdate",i),x.addEventListener("MEDIA_HEIGHT_CHANGE",i),x.addEventListener("assetReset",l),x.addEventListener(jo,function(e){n()&&"prev"===e&&z.touchNav&&(z.touchNav.disabled=!0)}),x.addEventListener(No,function(e){z.touchNav&&(z.touchNav.disabled=!1)}),x.addEventListener(_o,t),x.addEventListener("ScrollTransition/updateAssetId",v),this.init=function(e){V=e,T.transition=0,T.alpha=0,w||r(),"mSlide"!==y||z.touchNav||a(),w(),setTimeout(function(){qe(T,Ma.mediaView.transitionDuration(),{alpha:1})},1e3)},this.updateState=function(e){V=e},this.uriChange=function(e,t){V=e,Ma.section(V.section);var i=T.children.length>0;if(V.mediaToRender&&i){if(t||(V.mode.indexOf("thumbs")!==-1&&V.assetId===-1&&(T.transition=0,T.alpha=0),V.assetId>-1&&(V.info.isDeeplink?s(V.assetId):Ma.siteView.unifiedPageScroll()&&V.info.isModeChange&&/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)&&/thumbs/.test(V.mode)?(T.transition=0,T.alpha=0,setTimeout(function(){qe(T,Ma.mediaView.transitionDuration(),{alpha:1})},1e3*Lo+10)):V.info.isModeChange&&/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)&&/thumbs/.test(V.info.lastUri)?(T.transition=0,T.alpha=0,Ma.siteView.unifiedPageScroll()?setTimeout(function(){s(V.assetId),qe(T,Ma.mediaView.transitionDuration(),{alpha:1})},1e3*Lo+10):(s(V.assetId),setTimeout(function(){qe(T,Ma.mediaView.transitionDuration(),{alpha:1})},500*Lo))):V.info.isModeChange&&/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)&&/thumbs/.test(V.mode)||(b||r(),"mSlide"!==y||z.touchNav||a(),z.touchNav?(1!==wa.zoom||Wi!==Xi||Bi.podUseDesktop||M.mask.element.scrollTo(0,0),qe(T,Ma.mediaView.transitionDuration(),{alpha:1}),b(V.assetId,V.info.flickSpeed,z.touchNav.swipeDirection)):V.info.isSectionChange?(T.transition=0,b(V.assetId,V.info.flickSpeed),setTimeout(function(){qe(T,Ma.mediaView.transitionDuration(),{alpha:1})},1e3*Lo+10)):(qe(T,Ma.mediaView.transitionDuration(),{alpha:1}),b(V.assetId,V.info.flickSpeed))))),V.assetId>-1&&(!/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)||!/thumbs/.test(e.mode))&&Ma.mediaView.videoAutoPlay()){var n=T.children[V.assetId]&&T.children[V.assetId].id;x.dispatchEvent("mediaAutoPlay",n)}else if(!(/fill|vMasonry|hMasonry/.test(Ma.overrides.thumbnailType)&&/thumbs/.test(e.mode)||Wi!==Xi)){var n=T.children[V.assetId]&&T.children[V.assetId].id,o=Hi[n];o&&"video"===o.type&&0!==o.content.indexOf("vimeo")&&Ma.mediaView.videoAutoPlay()&&x.dispatchEvent("mediaAutoPlay",n)}V.assetId>-1&&T.children[V.assetId]&&"html"===T.children[V.assetId].type&&x.dispatchEvent(ta),z.touchNav&&(z.touchNav.assetId=e.assetId)}};var k;return this.destroy=f,z}function xt(e){function t(e){var t=y.children[S];"image"===t.type?setTimeout(function(){f(S),g.resume()},1e3):"video"===t.type&&setTimeout(function(){f(S),t.autoPlay()},1e3)}function i(e){var t=y.children[S];return t&&l(t.id)}function n(){S=0,f(S),C.dispatchEvent("siteAnchorCaptionUpdate",i(S)),C.dispatchEvent("showCaption",x)}function o(){S=r(),x.assetId=S;var e=y.children[S];isLogin?(f(S),g.pause()):"video"===e.type&&e.loaded?(g.pause(),setTimeout(function(){f(S),e.autoPlay()},100)):"video"===e.type?(g.pause(),e.addEventListener(yo,t),e.autoPlay()):/html/.test(e.type)?f(S):/image/.test(e.type)&&e.loaded?f(S):/image/.test(e.type)&&!e.loaded&&(g.pause(),e.addEventListener(yo,t)),C.dispatchEvent("siteAnchorCaptionUpdate",i(S)),Pi.slideshowCaptions?C.dispatchEvent("showCaption",x):C.dispatchEvent("hideCaption",x),w.lazyLoader.update()}function a(e){g.resume(),o()}function r(){return S1||"video"===o.type)?(g&&g.destroy(),d()):n()}},C.addEventListener("playbackEnd",a),this.destroy=function(){b=void 0,f=void 0,C.removeEventListener(_n,m),C.removeEventListener(tn,h),C.removeEventListener("layoutMediaView",u),C.removeEventListener(Yn,v),C.removeEventListener("mediaSizeUpdate",p),C.removeEventListener("assetReset",s),g&&g.destroy()},c()}function Mt(e){function t(e){n()}function i(e){n()}function n(){d.section&&Ma.section(d.section),qe(l,Lo,{backgroundColor:Ma.mediaView.backgroundColor()})}function o(e){l.removeChildren(l);for(var t=0,i=e.length;ti.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=e.mediaViewContainer,a=e.localEvents,r=e.mediaView;return t}function kt(e){function t(e,t){t=void 0!==t?t:a;var l=0,s=i.children,d=s.length;for(n.dispatchEvent(fo);li.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=Ne,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function It(e){function t(e,t){var t=void 0!==t?t:a,r=i.children[e];if(r){var l=r.x,s=r.y;anime({targets:i,duration:1e3*t,translateX:-l,translateY:-s,easing:po?"easeOutQuart":"easeInOutCubic",complete:function(){n.dispatchEvent(bo),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}})}}var i=e.mediaViewContainer,n=e.localEvents,o=e.mediaView,a=e.transitionDuration;return n.dispatchEvent(fo),t.destroy=function(){},t}function Ft(e){function t(e,t){return e.contentHeight&&1===t}function i(){var e=new o;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=Ma.mediaView.height(a.section.key),a.section&&Ma.section(a.section);var i=Ma.mediaView.height(a.section.key),s=a.maxScroll&&/unifiedSite/.test(Ma.overrides.siteDisplayBehavior);s&&(i=xa.getMaxScrollSectionHeight(a));for(var d=0,c=l.children,h=c.length;di.v&&(r=i.v),e.height=r+t.top+t.bottom}else e.height=Ma.mediaView.height()}e.updatePosition()}var o=Ne,a=e.mediaView,r=e.localEvents,l=a.container,s=a.mask;if("native"===Ma.overrides.imageVideoScrollType)s.element.style.overflowY="hidden",s.element.style.overflowX="scroll";else if(ia&&("nativeMacOs"===Ma.overrides.imageVideoScrollType||Pi.globalSmoothScroll))s.element.style.overflowY="hidden",s.element.style.overflowX="scroll";else{a.scroll&&a.scroll.destroy();var d={name:"horiz scroll",types:["bar","wheel","touch"],axis:"x",align:"left",color:Ma.overrides.imageVideoScrollbarColor,hover:Ma.overrides.imageVideoScrollbarHover,side:Ma.overrides.imageVideoScrollbarAlignment,alpha:Ma.overrides.imageVideoScrollbarBgTransparency,width:Ma.overrides.imageVideoScrollbarWidth,offsetX:Ma.overrides.imageVideoScrollbarHorizontalOffset,offsetY:Ma.overrides.imageVideoScrollbarVerticalOffset,topPad:0,property:"translate",zIndex:Ma.mediaView.zIndex,rounded:Ma.overrides.imageVideoScrollbarRounded,visibility:Ma.overrides.imageVideoScrollbarVisibility};("nativeMacOs"===Ma.overrides.imageVideoScrollType||Pi.globalSmoothScroll)&&(d.margin=0,d.color="#000000",d.hover="#000000",d.side="bottom",d.alpha=0,d.width=7,d.offsetX=0,d.offsetY=0,d.rounded=!0,d.visibility="when scrolling"),a.scroll=new Re(l,s,d)}return i}function At(e){function t(e,t){p=e;var t=void 0!==t?t:C;b.dispatchEvent(fo);var a=g.children[e];if(a){var r=a.x,l=a.y,s=o(e,g.children.length);f.width=Ma.mediaView.width();var d=xe({width:a.width,hRange:f.width,hAlign:s});if(r=a.x-d.x,u=!0,c=!1,v.scroll){var h=g.width-f.width,w=r/h;v.scroll.percent=w,v.scroll.bar.moveHandle(Ma.mediaView.transitionDuration()),qe(g,t,{translateX:-r,translateY:-l,ease:po?na.quart.out:na.cubic.inOut,onComplete:function(){u=!1,c=void 0,b.dispatchEvent(bo),setTimeout(function(){v.lazyLoader&&v.lazyLoader.update()},360)}})}else t?(m&&m.kill(),m=fa.to(f,t,{scrollLeft:r,scrollTop:l,ease:po?"outQuart":"inOutCubic",onComplete:function(){u=!1,c=void 0,b.dispatchEvent(bo),v.lazyLoader&&v.lazyLoader.update()}})):setTimeout(function(){f.scrollLeft=r,f.scrollTop=l,u=!1,c=void 0,b.dispatchEvent(bo),v.lazyLoader&&v.lazyLoader.update()},10);u?i(e):n()}}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:Ma.overrides.imageVideoInactiveAlpha;qe(i,Ma.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)qe(g.children[e],Ma.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return 0===e?"left":e===t-1?"right":Ma.mediaView.hAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.width;v.scroll?-g.translateX+i>=t.x&&-g.translateX+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollLeft+i>=t.x&&f.scrollLeft+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener(no,s)):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener(no,s)):f.element&&f.element.removeEventListener("scroll",d)},t}function Pt(e){function t(){var e=new n;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=Ma.mediaView.height(o.section.key),o.section&&Ma.section(o.section);var t=0,l=r.children,s=l.length,d=Ma.mediaView.height(o.section.key),c=o.maxScroll&&/unifiedSite/.test(Ma.overrides.siteDisplayBehavior);for(c&&(d=xa.getMaxScrollSectionHeight(o));ti.v&&(r=i.v),e.height=r+t.top+t.bottom}else e.height=Ma.mediaView.height()}e.updatePosition()}var n=Ne,o=e.mediaView,a=e.localEvents,r=o.container,l=o.mask;if("native"===Ma.overrides.imageVideoScrollType)l.element.style.overflowY="hidden",l.element.style.overflowX="scroll";else if(ia&&("nativeMacOs"===Ma.overrides.imageVideoScrollType||Pi.globalSmoothScroll))l.element.style.overflowY="hidden",l.element.style.overflowX="scroll";else{o.scroll&&o.scroll.destroy();var s={name:"horiz scroll",types:["bar","wheel","touch"],axis:"x",align:"left",color:Ma.overrides.imageVideoScrollbarColor,hover:Ma.overrides.imageVideoScrollbarHover,side:Ma.overrides.imageVideoScrollbarAlignment,alpha:Ma.overrides.imageVideoScrollbarBgTransparency,width:Ma.overrides.imageVideoScrollbarWidth,offsetX:Ma.overrides.imageVideoScrollbarHorizontalOffset,offsetY:Ma.overrides.imageVideoScrollbarVerticalOffset,topPad:0,property:"translate",zIndex:Ma.mediaView.zIndex,rounded:Ma.overrides.imageVideoScrollbarRounded,visibility:Ma.overrides.imageVideoScrollbarVisibility};("nativeMacOs"===Ma.overrides.imageVideoScrollType||Pi.globalSmoothScroll)&&(s.margin=0,s.color="#000000",s.hover="#000000",s.side="bottom",s.alpha=0,s.width=7,s.offsetX=0,s.offsetY=0,s.rounded=!0,s.visibility="when scrolling"),o.scroll=new Re(r,l,s)}return t}function Ht(e){function t(e,t){p=e;var t=void 0!==t?t:C;b.dispatchEvent(fo);var a=g.children[e];if(a){var r=a.x,l=a.y,s=o(e,g.children.length);f.width=Ma.mediaView.width();var d=xe({width:a.width,hRange:f.width,hAlign:s});if(r=a.x-d.x,u=!0,c=!1,v.scroll){var h=g.width-f.width,w=r/h;v.scroll.percent=w,v.scroll.bar.moveHandle(Ma.mediaView.transitionDuration()),qe(g,t,{translateX:-r,translateY:-l,ease:po?na.quart.out:na.cubic.inOut,onComplete:function(){u=!1,c=void 0,b.dispatchEvent(bo),setTimeout(function(){v.lazyLoader&&v.lazyLoader.update()},360)}})}else t?(m&&m.kill(),m=fa.to(f,t,{scrollLeft:r,scrollTop:l,ease:po?"outQuart":"inOutCubic",onComplete:function(){u=!1,c=void 0,b.dispatchEvent(bo),v.lazyLoader&&v.lazyLoader.update()}})):setTimeout(function(){f.scrollLeft=r,f.scrollTop=l,u=!1,c=void 0,b.dispatchEvent(bo),v.lazyLoader&&v.lazyLoader.update()},10);u?i(e):n()}}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:Ma.overrides.imageVideoInactiveAlpha;qe(i,Ma.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)qe(g.children[e],Ma.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return 0===e?"left":e===t-1?"right":Ma.mediaView.hAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.width;v.scroll?-g.translateX+i>=t.x&&-g.translateX+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollLeft+i>=t.x&&f.scrollLeft+i<=t.x+t.width&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener(no,s)):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener(no,s)):f.element&&f.element.removeEventListener("scroll",d)},t}function Dt(e){function t(){clearTimeout(d),d=setTimeout(function(){var e=new n;e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=Ma.mediaView.width(),e.name="vScroll",o.section&&Ma.section(o.section);for(var t=0,l=r.children,s=l.length;tMa.mediaView.zoneHeight(v.section.key)&&Wi!==Xi?i(e):n()}},"Firefox"===ra?1e3:300)}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:Ma.overrides.imageVideoInactiveAlpha;qe(i,Ma.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)qe(g.children[e],Ma.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return w(v.section.id)?"top":0===e?"top":e===t-1?"bottom":Ma.mediaView.vAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.height;v.scroll?-g.translateY+i>=t.y&&-g.translateY+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):Ma.siteView.unifiedPageScroll()?window.scrollY+.5*window.innerHeight>=t.absY&&window.scrollY+.5*window.innerHeight<=t.absY+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollTop+i>=t.y&&f.scrollTop+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l),v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener(no,s)):Ma.siteView.unifiedPageScroll()?window.addEventListener("scroll",d):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener(no,s)):Ma.siteView.unifiedPageScroll()?window.removeEventListener("scroll",d):f.element&&f.element.removeEventListener("scroll",d)},t}function Bt(e){function t(){clearTimeout(d),d=setTimeout(function(){var e=new n;e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=Ma.mediaView.width(),o.section&&Ma.section(o.section);for(var t=0,l=r.children,s=l.length;tMa.mediaView.zoneHeight(v.section.key)?i(e):n()}},"Firefox"===ra?1e3:300)}function i(e){for(var t=g.children.length;t--;){var i=g.children[t],n=void 0===e||!isNaN(e)&&e===t?1:Ma.overrides.imageVideoInactiveAlpha;qe(i,Ma.mediaView.transitionDuration(),{alpha:n})}}function n(){for(var e=g.children.length;e--;)qe(g.children[e],Ma.mediaView.transitionDuration(),{alpha:1})}function o(e,t){return w(v.section.id)?"top":0===e?"top":e===t-1?"bottom":Ma.mediaView.vAlign()}function a(){for(var e=g.children.length;e--;){var t=g.children[e],i=.5*f.height;v.scroll?-g.translateY+i>=t.y&&-g.translateY+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):Ma.siteView.unifiedPageScroll()?window.scrollY+.5*window.innerHeight>=t.absY&&window.scrollY+.5*window.innerHeight<=t.absY+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e}):f.scrollTop+i>=t.y&&f.scrollTop+i<=t.y+t.height&&b.dispatchEvent("ScrollTransition/updateAssetId",{id:e})}}function r(e){b.dispatchEvent("mediaScrollStart"),c!==!1&&b.dispatchEvent("pauseMedia"),u?i(p):n()}function l(e){c&&a(),c!==!1&&(c=void 0)}function s(e){void 0===c&&(c=!0),v.lazyLoader&&v.lazyLoader.update(),c&&a()}function d(e){h||r(e),clearTimeout(h),s(e),h=setTimeout(function(){l(e),h=null},300)}var c,h,u,p,m,v=e.mediaView,g=v.container,f=v.mask,b=e.localEvents,C=e.transitionDuration;return v.scroll?(v.scroll.addEventListener("scrollStop",l), v.scroll.addEventListener("scrollStart",r),v.scroll.addEventListener(no,s)):Ma.siteView.unifiedPageScroll()?window.addEventListener("scroll",d):f.element.addEventListener("scroll",d),t.destroy=function(){v.scroll?(v.scroll.removeEventListener("scrollStop",l),v.scroll.removeEventListener("scrollStart",r),v.scroll.removeEventListener(no,s)):Ma.siteView.unifiedPageScroll()?window.removeEventListener("scroll",d):f.element&&f.element.removeEventListener("scroll",d)},t}function _t(e){function t(){l.mask.element.scrollLeft=0,l.mask.element.scrollTop=0,l.mask.element.style.overflow="hidden";var e=new o;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=Ma.mediaView.height(l.section.key),l.section&&Ma.section(l.section);var t=0,s=a.children,d=s.length,c=Ma.mediaView.width(),h=Ma.mediaView.height(l.section.key),u=l.maxScroll&&/unifiedSite/.test(Ma.overrides.siteDisplayBehavior);for(u&&(h=xa.getMaxScrollSectionHeight(l));ti.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=Ne,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function Wt(e){function t(e,t){var t=void 0!==t?t:a;n.dispatchEvent(fo);var r=i.children[e];if(r){var l=r.x,s=r.y;if(qe(i,t,{translateX:-l,translateY:-s,ease:po?na.quart.out:na.cubic.inOut,onComplete:function(){n.dispatchEvent(bo),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}}),Wi===Xi)for(var d=i.children,c=0;ci.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=Ne,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function Xt(e){function t(e,t){var t=void 0!==t?t:a;n.dispatchEvent(fo);var r=i.children[e];if(r){var l=r.x,s=r.y;qe(i,t,{translateX:-l,translateY:-s,ease:po?na.quart.out:na.cubic.inOut,onComplete:function(){n.dispatchEvent(bo),setTimeout(function(){o.lazyLoader&&o.lazyLoader.update()},360)}})}}var i=e.mediaViewContainer,n=e.localEvents,o=e.mediaView,a=e.transitionDuration;return t.destroy=function(){},t}function Yt(e){function t(){l.mask.element.scrollLeft=0,l.mask.element.scrollTop=0,l.mask.element.style.overflow="hidden";var e=new o;e.gap=0,e.axis="x",e.align="left",e.wrap=!1,e.perpLength=Ma.mediaView.height(l.section.key),l.section&&Ma.section(l.section);var t=0,s=a.children,d=s.length,c=Ma.mediaView.height(l.section.key),h=l.maxScroll&&/unifiedSite/.test(Ma.overrides.siteDisplayBehavior);for(h&&(c=xa.getMaxScrollSectionHeight(l));ti.v&&(a=i.v),e.height=a+t.top+t.bottom}e.updatePosition()}var o=Ne,a=e.mediaViewContainer,r=e.localEvents,l=e.mediaView;return t}function Zt(e){function t(e,t,l){var t=void 0!==t?t:r;o.dispatchEvent(fo);var s=na.quart.out,d=n.children,c=d[e-1],h=d[e],u=d[e+1];c&&setTimeout(function(){c.transition=0,"right"===l&&(c.translateX=-Ma.mediaView.width()),c.display="block",c.updateSpeed=0,c.updatePosition(),c.loaded||c.load(),qe.defer(c,t,{translateX:-Ma.mediaView.width(),alpha:1,ease:s})},0),h&&(h.transition=0,h.display="block",h.updateSpeed=0,h.updatePosition(),h.loaded||h.load(),clearTimeout(i),i=setTimeout(function(){d.filter(function(e){return e!==h&&e!==c&&e!==u}).forEach(function(e){e.display="none"})},200),qe.defer(h,t,{translateX:0,alpha:1,ease:s,onComplete:function(){o.dispatchEvent(bo),a.lazyLoader&&a.lazyLoader.update()}})),u&&setTimeout(function(){u.transition=0,"left"===l&&(u.translateX=Ma.mediaView.width()),u.display="block",u.updateSpeed=0,u.updatePosition(),u.loaded||u.load(),qe.defer(u,t,{translateX:Ma.mediaView.width(),alpha:1,ease:s})},0)}var i,n=e.mediaViewContainer,o=e.localEvents,a=e.mediaView,r=e.transitionDuration;return t.destroy=function(){},t}function Gt(e){function t(){var e=new n;e.gap=0,e.axis="y",e.align="left",e.wrap=!1,e.perpLength=Ma.mediaView.width(),o.section&&Ma.section(o.section);for(var t=0,l=r.children,s=l.length;t").replace(/\\r\\n/g,"