function t396_scaleBlock(e){var u,t,l,h=t396_isOnlyScalableBrowser(),g=t396_detectResolution(e),o=document.getElementById("rec"+e),a=o?o.querySelectorAll(".t396__elem"):[],y=o?o.querySelector(".t396__artboard"):null;y&&(u=(u=window.tn&&window.tn["ab"+e]&&window.tn["ab"+e].scaleFactor)||window.tn_scale_factor,o=y.clientWidth,l=t396_ab__getFieldValue(y,"height"),l=Math.floor(l*u),t=t396_ab__getFieldValue(y,"height_vh"),window.tn_scale_offset=(o*u-o)/2,t&&(o=t396_ab__getFieldValue(y,"height"),l=(t=t396_ab__getHeight(y))<=(o=o*u)?o:t),y.classList.add("t396__artboard_scale"),y.insertAdjacentHTML("beforeend",'")),Array.prototype.forEach.call(a,function(e){var t=e.querySelector(".tn-atom"),l=t396_elem__getFieldValue(e,"container"),o=e.getAttribute("data-elem-type");if("grid"===l)if(h){t&&(s=t.parentNode)&&!s.closest(".tn-atom__scale-wrapper")&&((d=document.createElement("div")).classList.add("tn-atom__scale-wrapper"),d.style.transform="scale("+u+")",s.removeChild(t),d.appendChild(t),s.appendChild(d)),"none"===e.style.backdropFilter&&(e.style.backdropFilter="");var l=getComputedStyle(e).backdropFilter;l&&t&&d&&(e.style.backdropFilter="none",d.style.backdropFilter=l,"0px"!==(l=getComputedStyle(t).borderRadius)&&(d.style.borderRadius=l)),"shape"===o&&t&&t.style.backgroundImage&&"fixed"===getComputedStyle(t).backgroundAttachment&&(e.removeChild(t.parentNode),e.appendChild(t),n=t396_elem__getFieldValue(e,"height"),n=t396_elem__getHeight(e,n),n=t396_elem__convertPosition__Local__toAbsolute(e,"height",n),c=t396_elem__getFieldValue(e,"width"),c=t396_elem__getWidth(e,c),c=t396_elem__convertPosition__Local__toAbsolute(e,"width",c),p=parseFloat(t396_elem__getFieldValue(e,"top")),m=parseFloat(t396_elem__getFieldValue(e,"left")),e.style.top=p*u+"px",e.style.left=m*u+"px",e.style.height=n*u+"px",e.style.width=c*u+"px",e.setAttribute("data-scale-off","yes"))}else{var l=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),a=("text"!==o&&"button"!==o||!l||(i=t396_elem__getCorrectStylesForSafari(e,"fontSize"),a=t.style.webkitTextSizeAdjust,t.style.webkitTextSizeAdjust="none",e.style.zoom=u,_=parseFloat(getComputedStyle(t).fontSize),_=Math.round(_),_=Math.abs(i-_),t.style.webkitTextSizeAdjust=a,1<=_&&(t.style.fontSize=i*u+"px",t.style.webkitTextSizeAdjust="none")),e.style.zoom=u,e.querySelector("iframe")),_=e.getAttribute("data-animate-style"),i=e.getAttribute("data-animate-sbs-event"),r=y.classList.contains("t396_resizechange");if("video"!==o&&a&&!_&&!i&&!r){e.style.removeProperty("zoom");var s,d,n=t396_elem__getFieldValue(e,"height"),c=(n=t396_elem__getHeight(e,n),n=t396_elem__convertPosition__Local__toAbsolute(e,"height",n),t396_elem__getFieldValue(e,"width")),p=(c=t396_elem__getWidth(e,c),c=t396_elem__convertPosition__Local__toAbsolute(e,"width",c),parseFloat(t396_elem__getFieldValue(e,"top"))),m=(p=(p=t396_elem__convertPosition__Local__toAbsolute(e,"top",p))*u+(n*u-n)/2,parseFloat(t396_elem__getFieldValue(e,"left")));for(m=(m=t396_elem__convertPosition__Local__toAbsolute(e,"left",m))*u+(c*u-c)/2,e.style.top=p+"px",e.style.left=m+"px",(s=t.parentNode)&&s.classList.contains("tn-atom__scale-wrapper")&&(s=s.parentNode),(d=document.createElement("div")).classList.add("tn-atom__scale-wrapper"),d.style.transform="scale("+u+")";s.firstChild;)s.removeChild(s.firstChild);d.appendChild(t),s&&s.appendChild(d),e.setAttribute("data-scale-off","yes")}"shape"===o&&(n=t396_elem__getFieldValue(e,"height"),n=t396_elem__getHeight(e,n),n=t396_elem__convertPosition__Local__toAbsolute(e,"height",n),c=t396_elem__getFieldValue(e,"width"),c=t396_elem__getWidth(e,c),c=t396_elem__convertPosition__Local__toAbsolute(e,"width",c),p=parseFloat(t396_elem__getFieldValue(e,"top")),p=t396_elem__convertPosition__Local__toAbsolute(e,"top",p),m=parseFloat(t396_elem__getFieldValue(e,"left")),m=t396_elem__convertPosition__Local__toAbsolute(e,"left",m),i=(a=window.getComputedStyle(t)).borderWidth,r="none"!==a.backgroundImage,_=e.getAttribute("data-animate-sbs-event"),!(n<=2||c<=2)||"0px"!==i||r||_||(e.style.removeProperty("zoom"),d=c*u,a=n*u,i=p*u,r=m*u,e.style.width=parseFloat(d)+"px",e.style.height=parseFloat(a)+"px",e.style.top=Math.round(i)+"px",e.style.left=Math.round(r)+"px",e.setAttribute("data-scale-off","yes"))),"text"===o&&g<1200&&t&&!l&&(t.style.webkitTextSizeAdjust="auto"),t&&(t.style.transformOrigin="center")}})}window.t396_initialScale||(window.t396_initialScale=function(){});