'use strict';((m,F,w,x)=>{let v=0,y,z,A;const B={opacity:(a,b)=>{a.opacity=b},translate:(a,b)=>{a.transform+=` translate(${b}px, ${b}px)`},"translate-x":(a,b)=>{a.transform+=` translateX(${b}px)`},"translate-y":(a,b)=>{a.transform+=` translateY(${b}px)`},scale:(a,b)=>{a.transform+=` scale(${b})`},"scale-x":(a,b)=>{a.transform+=` scaleX(${b})`},"scale-y":(a,b)=>{a.transform+=` scaleY(${b})`},skew:(a,b)=>{a.transform+=` skew(${b}deg, ${b}deg)`},"skew-x":(a,b)=>{a.transform+=` skewX(${b}deg)`},"skew-y":(a,
b)=>{a.transform+=` skewY(${b}deg)`},rotate:(a,b)=>{a.transform+=` rotate(${b}deg)`},"rotate-x":(a,b)=>{a.transform+=` rotateX(${b}deg)`},"rotate-y":(a,b)=>{a.transform+=` rotateY(${b}deg)`},"hue-rotate":(a,b)=>{a.filter+=` hue-rotate(${b}deg)`},blur:(a,b)=>{a.filter+=` blur(${b}px)`}},p=[],G=a=>"("===a[0]?Function("return "+a)():parseFloat(a),H=a=>{const b=a.getBoundingClientRect(),q={el:a,originalStyle:{transform:a.style.transform,filter:a.style.filter},transforms:{}};if(a.attributes["data-lax-anchor-top"]||
(q.top=Math.floor(b.top)+w.scrollY,a.removeAttribute("data-lax-anchor-top")),a.attributes["data-lax-optimize"]){var n=a.getBoundingClientRect();a.setAttribute("data-lax-opacity",`${-n.height-1} 0, ${-n.height} 1, ${m.h} 1, ${m.h+1} 0`)}for(n=a.attributes.length-1;-1<n;--n){var r=a.attributes[n];let l=r.name;0===l.indexOf("data-lax")&&(l=l.replace("data-lax-",""),void 0!==B[l])&&(r=r.value.replace(/\s+/g," ").replaceAll("vw",m.w).replaceAll("vh",m.h).replaceAll("elh",b.height).replaceAll("elw",b.width),
q.transforms[l]=r.split(",").map(f=>f.trim().split(" ").map(G)).sort((f,t)=>f[0]-t[0]))}p.push(q);C(q)},C=a=>{const {originalStyle:b,top:q,transforms:n,el:r}=a;a={transform:b.transform,filter:b.filter};const l=q?q-v:v;for(let k in n){var f=B,t=f[k],g=n[k];let d=0;for(;g[d][0]<=l&&void 0!==g[d+1];)d+=1;const c=g[d][0],e=void 0===g[d-1]?c:g[d-1][0],h=g[d][1];g=void 0===g[d-1]?h:g[d-1][1];t.call(f,a,Math.min(Math.max((l-e)/(c-e),0),1)*(h-g)+g)}if(0===a.opacity)r.style.opacity=0;else for(let k in a)r.style[k]=
a[k]},D=()=>{for(let a=p.length-1;-1<a;--a)C(p[a])};m.on("tf_lax_init",a=>{const b=m.h,q="scale rotate blur opacity translate-x translate-y".split(" "),n=q.length-1;let r=m.body[0].getBoundingClientRect().top,l=null;for(let k=a.length-1;-1<k;--k){let d=a[k];if(!d.hasAttribute("data-lax"))continue;d.removeAttribute("data-lax");let c=d.cloneNode(!1);var f=getComputedStyle(d),t=c.getAttribute("data-box-position"),g=f.getPropertyValue("z-index");c.className="tf_lax_done tf_rel";c.removeAttribute("style");
g&&"auto"!==g&&(c.style.zIndex=g);t&&(c.style.transformOrigin=t,d.removeAttribute("data-box-position"));c.hasAttribute("data-lax-opacity")&&(c.className+=" tf_opacity",d.removeAttribute("data-lax-opacity"));c.hasAttribute("data-lax-rotate")&&(c.style.width=f.getPropertyValue("width"),null===l&&w.ResizeObserver&&(l=new ResizeObserver((e,h)=>{for(h=e.length-1;-1<h;--h){let u=e[h].target.parentNode,E=parseInt(e[h].contentRect.width);parseInt(u.style.width)!==E&&(u.style.width=E+"px")}}),l.observe(d)));
c.hasAttribute("data-lax-scale")&&(f=d.closest(".entry-content"),null!==f&&f.classList.add("themify-no-overflow-x"),!0!==y&&(y=!0,m.body[0].classList.add("themify-no-overflow-x"),r=m.body[0].getBoundingClientRect().top,F.getElementById("tb_inline_styles").textContent+=".themify-no-overflow-x{overflow-x:hidden}"));f=d.getBoundingClientRect().top-r;if(f+130<b)for(f=0>f?b:Math.floor(f),c.setAttribute("data-lax-anchor-top",1),t=n;-1<t;--t){g="data-lax-"+q[t];let e=c.getAttribute(g);if(e){e=e.split(",");
let h=e[1].split(" ");c.setAttribute(g,h[0]+" "+e[0].split(" ")[1]+","+f+" "+h[1])}}d.parentNode.insertBefore(c,d);c.appendChild(d);H(c)}if(!0!==A){A=!0;let k=null;const d=()=>{const c=w.scrollY;if(v!==c&&(v=c,D(),!0===m.is_builder_active))return;null!==k&&cancelAnimationFrame(k);k=requestAnimationFrame(d)};w.addEventListener("scroll",()=>{requestAnimationFrame(d)},{once:!0,passive:!0});m.on("tfsmartresize",c=>{var e=x.breakpoints.tablet_landscape,h=x.breakpoints.tablet;let u="desktop";c.w<=x.breakpoints.mobile?
u="mobile":c.w<=h[1]?u="tablet":c.w<=e[1]&&(u="tablet_landscape");if(z!==u)for(z=u,c=p.length-1;-1<c;--c)e=getComputedStyle(p[c].el.firstChild),h=e.getPropertyValue("z-index"),p[c].el.style.zIndex!==h&&(p[c].el.style.zIndex=h),p[c].el.hasAttribute("data-lax-rotate")&&(e=e.getPropertyValue("width"),p[c].el.style.width!==e&&(p[c].el.style.width=e));D(v)})}})})(Themify,document,window,tbLocalScript);
