PageSourceSearch

https://static.zeit.de/p/zeit.web/js/6777.1c80fed37d1260e6.js

js zeit.de collected 2026-09-24 06:50:31 UTC 4,584 bytes, 1 lines download raw bytes

1(self.rspackChunk=self.rspackChunk||[]).push([[6777],{3184(e){e.exports=function(){"use strict";let e,t,o;function n(e){console.error(`scrollama error: ${e}`)}function r(e){return+e.getAttribute("data-scrollama-index")}function s(e){if("string"==typeof e&&e.indexOf("px")>0){let t=+e.replace("px","");return isNaN(t)?(err("offset value must be in 'px' format. Fallback to 0.5."),{format:"percent",value:.5}):{format:"pixels",value:t}}return"number"!=typeof e&&isNaN(+e)?null:(e>1&&err("offset value is greater than 1. Fallback to 1."),e<0&&err("offset value is lower than 0. Fallback to 0."),{format:"percent",value:Math.min(Math.max(0,e),1)})}function i(n){let r=n?n.scrollTop:window.pageYOffset;e!==r&&((e=r)>t?o="down":e<t&&(o="up"),t=e)}return function(){let l,a,f,c={},p=function(){let e="abcdefghijklmnopqrstuvwxyz",t=Date.now(),o=[];for(let t=0;t<6;t+=1){let t=e[Math.floor(Math.random()*e.length)];o.push(t)}return`${o.join("")}${t}`}(),u=[],d=0,h=!1,g=!1,x=!1,m=!1,b=[];function y(){c={stepEnter:()=>{},stepExit:()=>{},stepProgress:()=>{}},b=[]}function v(e){e&&!h&&N(),!e&&h&&q(),h=e}function E(e,t){let n=r(e),s=u[n];void 0!==t&&(s.progress=t);let i={element:e,index:n,progress:t,direction:o};"enter"===s.state&&c.stepProgress(i)}function w([e]){let t=u[r(e.target)],o=e.target.offsetHeight;o!==t.height&&(t.height=o,S(t),A(t),O(t))}function $([e]){i(a);let{isIntersecting:t,target:n}=e;if(t){let e,t,s;t=u[e=r(n)],s={element:n,index:e,direction:o},t.direction=o,t.state="enter",b[e]||c.stepEnter(s),m&&(b[e]=!0)}else!function(e){let t=r(e),n=u[t];if(!n.state)return;let s={element:e,index:t,direction:o};g&&("down"===o&&n.progress<1?E(e,1):"up"===o&&n.progress>0&&E(e,0)),n.direction=o,n.state="exit",c.stepExit(s)}(n)}function k([e]){let t=u[r(e.target)],{isIntersecting:o,intersectionRatio:n,target:s}=e;o&&"enter"===t.state&&E(s,n)}function S({observers:e}){Object.keys(e).map(t=>{e[t].disconnect()})}function q(){u.forEach(S)}function O(e){let t=new ResizeObserver(w);t.observe(e.node),e.observers.resize=t}function A(e){let t=window.innerHeight,o=e.offset||l,n="pixels"===o.format?1:t,r=o.value*n,s=e.height/2-r,i=e.height/2-(t-r),a=`${s}px 0px ${i}px 0px`,c=new IntersectionObserver($,{rootMargin:a,threshold:.5,root:f});c.observe(e.node),e.observers.step=c,x&&function({id:e,step:t,marginTop:o}){let n,r,{index:s,height:i}=t,l=`scrollama__debug-step--${e}-${s}`,a=document.querySelector(`.${l}`);a||((n=document.createElement("div")).className=`scrollama__debug-step ${l}`,n.style.position="fixed",n.style.left="0",n.style.width="100%",n.style.zIndex="9999",n.style.borderTop="2px solid black",n.style.borderBottom="2px solid black",(r=document.createElement("p")).style.position="absolute",r.style.left="0",r.style.height="1px",r.style.width="100%",r.style.borderTop="1px dashed black",n.appendChild(r),document.body.appendChild(n),a=n),a.style.top=`${-1*o}px`,a.style.height=`${i}px`,a.querySelector("p").style.top=`${i/2}px`}({id:p,step:e,marginTop:s,marginBottom:i})}function M(e){let t=window.innerHeight,o=e.offset||l,n="pixels"===o.format?1:t,r=o.value*n,s=-r+e.height,i=`${s}px 0px ${r-t}px 0px`,a=new IntersectionObserver(k,{rootMargin:i,threshold:function(e,t){let o=Math.ceil(e/t),n=[],r=1/o;for(let e=0;e<o+1;e+=1)n.push(e*r);return n}(e.height,d)});a.observe(e.node),e.observers.progress=a}function N(){q(),u.forEach(O),u.forEach(A),g&&u.forEach(M)}let z={};return z.setup=({step:o,parent:r,offset:c=.5,threshold:p=4,progress:h=!1,once:b=!1,debug:E=!1,container:w,root:$=null})=>(e=0,t=0,document.addEventListener("scroll",()=>i(w)),(u=(function(e,t=document){return"string"==typeof e?Array.from(t.querySelectorAll(e)):e instanceof Element?[e]:e instanceof NodeList?Array.from(e):e instanceof Array?e:[]})(o,r).map((e,t)=>({index:t,direction:void 0,height:e.offsetHeight,node:e,observers:{},offset:s(e.dataset.offset),top:function(e){let{top:t}=e.getBoundingClientRect();return t+window.pageYOffset-(document.body.clientTop||0)}(e),progress:0,state:void 0}))).length)?(g=h,m=b,x=E,d=Math.max(1,+p),l=s(c),a=w,f=$,y(),u.forEach(e=>e.node.setAttribute("data-scrollama-index",e.index)),v(!0),z):(n("no step elements"),z),z.enable=()=>(v(!0),z),z.disable=()=>(v(!1),z),z.destroy=()=>(v(!1),y(),z),z.resize=()=>(N(),z),z.offset=e=>null==e?l.value:(l=s(e),N(),z),z.onStepEnter=e=>("function"==typeof e?c.stepEnter=e:n("onStepEnter requires a function"),z),z.onStepExit=e=>("function"==typeof e?c.stepExit=e:n("onStepExit requires a function"),z),z.onStepProgress=e=>("function"==typeof e?c.stepProgress=e:n("onStepProgress requires a function"),z),z}}()}}]);

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.