PageSourceSearch

https://villa-santamargherita-cortona-preview.pages.dev/vivicorton…_astro_type_script_index_0_lang.CuYhElXy.js

js villa-santamargherita-cortona-preview.pages.dev collected 2026-10-03 06:00:08 UTC 2,162 bytes, 1 lines download raw bytes

1import{s as E}from"./index.i_6XR_Vo.js";const e=document.querySelector("[data-vsm-hero]"),s=document.querySelector("[data-vsm-canvas]"),S=document.querySelector("[data-vsm-hero-type]"),d=document.querySelector("[data-vsm-dintorni]");document.querySelector("[data-vsm-hero-eyebrow]");const b=document.querySelector("[data-vsm-hero-cue]");Array.from(document.querySelectorAll(".vsm-hero__caption"));const H=window.matchMedia("(prefers-reduced-motion: reduce)").matches,P=()=>window.matchMedia("(max-width: 768px), (pointer: coarse)").matches,l=P();if(e&&l){const c=e.dataset.posterMobile,r=e.querySelector(".vsm-hero__poster");c&&r&&(r.style.backgroundImage=`url('${e.dataset.base||""}${c}')`,r.style.backgroundPosition="center 50%")}if(e&&s&&!H){const c=s.getContext("2d"),r=l&&e.dataset.framesDirMobile||e.dataset.framesDir||"",i=parseInt(l&&e.dataset.frameCountMobile||e.dataset.frameCount||"0",10),q=e.dataset.framePrefix||"f-",I=parseInt(e.dataset.framePad||"3",10),_=e.dataset.base||"",u=new Array(i);let f=!1,w=0;const p=Math.min(window.devicePixelRatio||1,2),g=()=>{s.width=Math.round(window.innerWidth*p),s.height=Math.round(window.innerHeight*p)};g(),window.addEventListener("resize",()=>{g(),m(w)});const C=t=>{const o=s.width,a=s.height,n=t.naturalWidth,h=t.naturalHeight;if(!n||!h)return;const M=Math.max(o/n,a/h),x=n*M,v=h*M;c.drawImage(t,(o-x)/2,(a-v)*.4,x,v)},m=t=>{const o=Math.max(0,Math.min(i-1,Math.round(t)));w=o;const a=u[o];a&&a.complete&&a.naturalWidth&&C(a)};for(let t=0;t<i;t++){const o=new Image;o.decoding="async",o.src=_+r+"/"+q+String(t+1).padStart(I,"0")+".jpg",o.onload=()=>{t===0&&!f&&(f=!0,m(0))},u[t]=o}const y=.04,R=.8,A=()=>{const t=e.offsetTop,o=Math.max(1,e.offsetHeight-window.innerHeight);return Math.min(1,Math.max(0,(window.scrollY-t)/o))};E(()=>{const t=A(),o=Math.min(1,Math.max(0,(t-y)/(R-y)));m(o*(i-1));const a=t>.62;if(S&&S.classList.toggle("is-out",a),d){const n=Math.min(1,Math.max(0,(t-.66)/.14));d.style.opacity=String(n),d.style.transform="translateY("+((1-n)*20).toFixed(2)+"px)",d.style.pointerEvents=n>.6?"auto":"none"}b&&b.classList.toggle("is-hidden",t>.03)},{target:e,offset:["start start","end end"]})}

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.