1const p='.lp-page, .ct-page, .ty-page, .as-page, .ps-page, [data-screen-label="ÐлавнаÑ"]';function m(l){return l.matches('[data-screen-label="ÐлавнаÑ"]')?"home":l.matches(".ct-page")?"contacts":l.matches(".ty-page")?"simple":l.matches(".as-page")?"article":l.matches(".ps-page")?"project":"lp"}function o(l,r,e=0){!l||l.classList.contains("sr")||(l.classList.add("sr",`sr-${r}`),l.style.setProperty("--sr-i",String(e)))}function E(l){l.querySelectorAll('[data-dc-tpl="83"] > *, [data-dc-tpl="95"] > *').forEach((r,e)=>{o(r,"hero",e)}),l.querySelectorAll("section[data-screen-label], footer[data-screen-label]").forEach(r=>{r.classList.add("sr-section"),r.querySelectorAll("h2").forEach(e=>{const t=e.parentElement;t&&[...t.children].forEach((a,s)=>o(a,"head",s))}),r.querySelectorAll('[data-dc-tpl="215"]').forEach(e=>o(e,"float",2)),r.querySelectorAll('[data-dc-tpl="113"] > *').forEach((e,t)=>o(e,"card",t)),r.querySelectorAll('[data-dc-tpl="187"], [data-dc-tpl="218"]').forEach(e=>o(e,"glow",0)),r.querySelectorAll('[data-dc-tpl="254"] > a').forEach((e,t)=>{o(e,t%2===0?"from-left":"from-right",Math.floor(t/2))}),r.querySelectorAll(".ws-cert-grid > *").forEach((e,t)=>o(e,"card",t)),r.querySelectorAll('[data-dc-tpl="375"] > *, [data-dc-tpl="492"] > *, [data-dc-tpl="602"] > *').forEach((e,t)=>{o(e,t===0?"from-left":"from-right",0)}),r.querySelectorAll('[data-dc-tpl="388"] > *').forEach((e,t)=>o(e,"card",t))}),l.querySelectorAll('[data-dc-tpl="670"] > *').forEach((r,e)=>o(r,"rise",e))}const y=[".lp-features",".lp-fit__list",".lp-faq",".lp-pricing-factors",".lp-pricing-tiers",".lp-portfolio-grid",".lp-steps",".lp-reviews",".lp-pains__list",".lp-formats",".lp-compare",".lp-stack",".lp-kb-grid",".lp-kb-list",".lp-values",".lp-team",".seo-cards",".seo-process__steps",".ma-platforms",".crm-formats"];function S(l){l.querySelectorAll("section.lp-section, footer.lp-footer").forEach(r=>{r.classList.add("sr-section"),r.querySelectorAll(".lp-section__head > *, .lp-features-head > *").forEach((e,t)=>{o(e,"head",t)}),r.querySelectorAll("h2").forEach(e=>{if(e.closest(".lp-section__head, .lp-features-head"))return;const t=e.parentElement;if(t){if(t.classList.contains("lp-about__text")){[...t.children].forEach((a,s)=>o(a,"head",s));return}t.classList.contains("lp-price__text")&&[...t.children].forEach((a,s)=>o(a,"head",s))}}),r.querySelectorAll(".lp-about > *, .lp-pains > *").forEach((e,t)=>{o(e,t===0?"from-left":"from-right",0)}),r.querySelectorAll(".lp-about-timeline-head > *").forEach((e,t)=>o(e,"head",t)),r.querySelectorAll(".lp-about-timeline-item").forEach((e,t)=>o(e,"card",t)),r.querySelectorAll(".lp-kb-featured").forEach(e=>o(e,"glow",0)),y.forEach(e=>{r.querySelectorAll(`${e} > *`).forEach((t,a)=>o(t,"card",a))}),r.querySelectorAll(".lp-timeline__step").forEach((e,t)=>o(e,"card",t)),r.querySelectorAll(".lp-portfolio-stat").forEach((e,t)=>o(e,"card",t)),r.querySelectorAll(".lp-section__grid.lp-price > *, .lp-section__grid.lp-order > *").forEach((e,t)=>{o(e,t===0?"from-left":"from-right",0)}),r.querySelectorAll(".lp-price__card, .lp-order__panel, .lp-cta-box").forEach(e=>o(e,"glow",0))}),l.querySelectorAll("footer.lp-footer .lp-footer__grid > *, footer.lp-footer .lp-footer__bottom > *").forEach((r,e)=>{o(r,"rise",e)})}function q(l){const r=[".lp-hero__inner > .lp-breadcrumb",".lp-hero__content > *",".lp-about-hero-text > *",".lp-hero__grid > .lp-preview",".lp-about-hero-grid > *:not(.lp-about-hero-text)",".lp-portfolio-stats > *",".lp-kb-hero > *"];let e=0;r.forEach(t=>{l.querySelectorAll(t).forEach(a=>{o(a,"hero",e),e+=1})})}function _(l){l.querySelectorAll(".ct-hero__inner > .ct-breadcrumb, .ct-hero__content > *").forEach((r,e)=>{o(r,"hero",e)}),l.querySelectorAll("section.ct-channels, section.ct-main, section.ct-faq, footer.lp-footer").forEach(r=>{r.classList.add("sr-section"),r.querySelectorAll(".ct-channels__grid > *").forEach((e,t)=>o(e,"card",t)),r.querySelectorAll(".ct-main__grid > *").forEach((e,t)=>{o(e,t===0?"from-left":"from-right",0)}),r.querySelectorAll(".ct-faq > *").forEach((e,t)=>
1o(e,"card",t)),r.querySelectorAll("h2").forEach(e=>{const t=e.parentElement;t&&[...t.children].forEach((a,s)=>o(a,"head",s))})}),l.querySelectorAll("footer.lp-footer .lp-footer__grid > *").forEach((r,e)=>o(r,"rise",e))}function A(l){l.querySelectorAll(".ty-main > .ty-card > *").forEach((r,e)=>o(r,"hero",e))}function g(l){l.querySelectorAll(".as-hero > *").forEach((r,e)=>o(r,"hero",e)),l.querySelectorAll(".as-layout").forEach(r=>{r.classList.add("sr-section"),r.querySelectorAll(".as-content > *, .as-aside > *").forEach((e,t)=>{o(e,t===0?"from-left":"from-right",0)})})}function b(l){l.querySelectorAll(".ps-hero__content > *, .ps-hero__preview").forEach((r,e)=>o(r,"hero",e)),l.querySelectorAll(".ps-stats > *").forEach((r,e)=>o(r,"card",e)),l.querySelectorAll(".ps-body, .ps-next").forEach(r=>{r.classList.add("sr-section")}),l.querySelectorAll(".ps-main > *, .ps-aside > *").forEach((r,e)=>{o(r,e<2?"from-left":"from-right",Math.floor(e/2))}),l.querySelectorAll(".ps-next").forEach(r=>o(r,"rise",0))}function v(l={}){const r=typeof l=="string"?document.querySelector(l):(l==null?void 0:l.root)instanceof Element?l.root:typeof(l==null?void 0:l.root)=="string"?document.querySelector(l.root):document.querySelector(p);if(!r)return()=>{};const e=(l==null?void 0:l.mode)??m(r);if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return r.classList.add("sr-ready"),()=>{};e==="home"?E(r):e==="contacts"?_(r):e==="simple"?A(r):e==="article"?g(r):e==="project"?b(r):(q(r),S(r)),requestAnimationFrame(()=>{setTimeout(()=>r.classList.add("sr-hero-play"),100)});const a=c=>{!c||c.classList.contains("sr-visible")||(c.classList.add("sr-visible"),f.unobserve(c))},s=c=>{a(c),c.querySelectorAll(".sr:not(.sr-hero):not(.sr-visible)").forEach(i=>{const u=i.getBoundingClientRect();u.top<window.innerHeight*.98&&u.bottom>-40&&a(i)})},f=new IntersectionObserver(c=>{c.forEach(i=>{i.isIntersecting&&(i.target.classList.contains("sr-section")?s(i.target):a(i.target))})},{threshold:.06,rootMargin:"0px 0px -2% 0px"});r.querySelectorAll(".sr:not(.sr-hero), .sr-section").forEach(c=>f.observe(c));let n;const h=c=>c.getBoundingClientRect().top<window.innerHeight*.95,d=()=>{clearTimeout(n),n=setTimeout(()=>{r.querySelectorAll(".sr-section:not(.sr-visible)").forEach(c=>{h(c)&&s(c)}),r.querySelectorAll(".sr:not(.sr-hero):not(.sr-visible)").forEach(c=>{h(c)&&a(c)})},80)};return window.addEventListener("scroll",d,{passive:!0}),d(),()=>{f.disconnect(),window.removeEventListener("scroll",d),clearTimeout(n)}}export{v as i};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.