function t396_scaleBlock(t){var e,d,a,l,u=t396_isOnlyScalableBrowser(),p=t396_detectResolution(t),o=document.getElementById("rec"+t);o&&(e=t396_scale__getElementsToScale(o=o.querySelector(".t396__artboard")),o&&0!==e.length&&(d="function"==typeof window.t396__getCurrentScaleFactor?t396__getCurrentScaleFactor(t):(d=window.tn&&window.tn["ab"+t]&&window.tn["ab"+t].scaleFactor)||window.tn_scale_factor,t=t396_ab__getFieldValue(o,"height"),t=Math.floor(t*d),t396_ab__getFieldValue(o,"height_vh")&&(l=t396_ab__getFieldValue(o,"height"),t=(a=t396_ab__getHeight(o))<=(l=l*d)?l:a),t396_scale__updateArtboardState(o,t),e.forEach(function(t){var e,a,l,o,_,r,i,s=t.querySelector(".tn-molecule, .tn-atom"),n=t396_scale__getElementType(t),c=t396_elem__getFieldValue(t,"container");c||"group"!==n||(c="grid"),s&&"grid"===c&&(u?((c=s.closest(".tn-atom__scale-wrapper"))||(t396_scale__wrapElement(s,d,"tn-atom__scale-wrapper"),c=s.closest(".tn-atom__scale-wrapper")),t.style.zoom="",t396_scale__processBackdropFilter(t,s,c),t396_scale__processBackgroundForShape(t,s,n,d)):(c=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),"text"!==n&&"button"!==n||!c||(a=parseFloat(getComputedStyle(s).fontSize),e=s.style.webkitTextSizeAdjust,s.style.webkitTextSizeAdjust="none",t.style.zoom=d,i=parseFloat(getComputedStyle(s).fontSize),i=Math.round(i),i=Math.abs(a-i),s.style.webkitTextSizeAdjust=e,1<=i&&(s.style.fontSize=Math.round(a*d)+"px",s.style.webkitTextSizeAdjust="none")),"yes"!==t.getAttribute("data-scale-off")&&(t.style.zoom=d),"shape"===n&&(e=t396_elem__getFieldValue(t,"height"),e=t396_elem__getHeight(t,e),e=t396_elem__convertPosition__Local__toAbsolute(t,"height",e),i=t396_elem__getFieldValue(t,"width"),i=t396_elem__getWidth(t,i),i=t396_elem__convertPosition__Local__toAbsolute(t,"width",i),a=parseFloat(t396_elem__getFieldValue(t,"top")),a=t396_elem__convertPosition__Local__toAbsolute(t,"top",a),l=parseFloat(t396_elem__getFieldValue(t,"left")),l=t396_elem__convertPosition__Local__toAbsolute(t,"left",l),o=(_=window.getComputedStyle(s)).borderWidth,_="none"!==_.backgroundImage,r=t.getAttribute("data-animate-sbs-event"),!(e<=2||i<=2)||"0px"!==o||_||r||(t.style.removeProperty("zoom"),o=i*d,_=e*d,r=a*d,i=l*d,t.style.width=parseFloat(o)+"px",t.style.height=parseFloat(_)+"px",t.style.top=Math.round(r)+"px",t.style.left=Math.round(i)+"px",t.setAttribute("data-scale-off","yes"))),"text"===n&&p<1200&&s&&!c&&(s.style.webkitTextSizeAdjust="auto"),s&&(s.style.transformOrigin="center")))})))}function t396_scale__getElementsToScale(t){return t?Array.prototype.slice.call(t.children).filter(function(t){return t&&(t.classList.contains("t396__elem")||t.classList.contains("t396__group"))}):[]}function t396_scale__updateArtboardState(t,e){t.classList.add("t396__artboard_scale");var a=t.getAttribute("data-artboard-recid");t.insertAdjacentHTML("beforeend",'")}function t396_scale__wrapElement(t,e,a){var l,o;!t||(l=t.parentNode)&&((o=document.createElement("div")).classList.add(a),o.style.transform="scale("+e+")",o.appendChild(t),l.appendChild(o))}function t396_scale__processBackdropFilter(t,e,a){"none"===t.style.backdropFilter&&(t.style.backdropFilter="");var l=getComputedStyle(t).backdropFilter;l&&(t.style.backdropFilter="none",a.style.backdropFilter=l,"0px"!==(t=getComputedStyle(e).borderRadius)&&(a.style.borderRadius=t))}function t396_scale__processBackgroundForShape(t,e,a,l){var o,_;"shape"===a&&(a=e&&getComputedStyle(e))&&(a&&a.backgroundImage||e.getAttribute("data-original"))&&"fixed"===a.backgroundAttachment&&(t.removeChild(e.parentNode),t.appendChild(e),a=t396_elem__getFieldValue(t,"height"),a=t396_elem__getHeight(t,a),a=t396_elem__convertPosition__Local__toAbsolute(t,"height",a),e=t396_elem__getFieldValue(t,"width"),e=t396_elem__getWidth(t,e),e=t396_elem__convertPosition__Local__toAbsolute(t,"width",e),o=parseFloat(t396_elem__getFieldValue(t,"top")),_=parseFloat(t396_elem__getFieldValue(t,"left")),t.style.top=o*l+"px",t.style.left=_*l+"px",t.style.height=a*l+"px",t.style.width=e*l+"px",t.setAttribute("data-scale-off","yes"))}function t396_scale__getElementType(t){var e=t.getAttribute("data-elem-type");return e=!e&&t.classList.contains("tn-group")?"group":e}window.t396_initialScale||(window.t396_initialScale=function(){});