1import{p as f,t as G,a as H}from"./Ca_CCL70.js";import{b as z,u as J,g as t,d as v,p as K,k as L,h as A,T as N,t as Q,a as U,j as E,e as V,r as W}from"./CyMhVuKh.js";import{r as $,u as F,o as tt,s as et,q as st,v as P}from"./BL0djG6x.js";import{b as ot}from"./CktRXeS5.js";import{b as rt}from"./C0U8kfTj.js";import{o as nt,a as it}from"./CuUIRYSz.js";/* empty css */const at=()=>{let _=z(0),n=z(0),T=z(0),r=z(1),p=z(0),a=z(0),M=z(0);const x=J(()=>{const s=Math.PI/180,X=t(p)*s,j=t(a)*s,h=t(M)*s,e=Math.cos(X),u=Math.sin(X),S=Math.cos(j),o=Math.sin(j),c=Math.cos(h),g=Math.sin(h);return`matrix3d(${[t(r)*(S*c),t(r)*(e*g+u*o*c),t(r)*(u*g-e*o*c),0,t(r)*(-S*g),t(r)*(e*c-u*o*g),t(r)*(u*c+e*o*g),0,t(r)*o,t(r)*(-u*S),t(r)*(e*S),0,t(_),t(n),t(T),1].map(y=>y.toFixed(6)).join(", ")})`});return{get x(){return t(_)},set x(s){v(_,s,!0)},get y(){return t(n)},set y(s){v(n,s,!0)},get z(){return t(T)},set z(s){v(T,s,!0)},get scale(){return t(r)},set scale(s){v(r,s,!0)},get rotateX(){return t(p)},set rotateX(s){v(p,s,!0)},get rotateY(){return t(a)},set rotateY(s){v(a,s,!0)},get rotateZ(){return t(M)},set rotateZ(s){v(M,s,!0)},get matrix(){return t(x)}}};var ct=G('<div class="sticky svelte-g8a3ba"><!></div>');function dt(_,n){K(n,!0);let T=f(n,"smoothing",3,300),r=f(n,"align",3,"center"),p=f(n,"offset",3,0),a=f(n,"constrain",3,!0),M=f(n,"customTransform",3,void 0),x=f(n,"position",15,0),s=f(n,"size",15,0),X=f(n,"progress",15,0),j=f(n,"zIndex",3,0);const h=L("scroll");let e,u=at(),S=$(j());const o=F(()=>e,["transform","top"]),c=F(()=>(e==null?void 0:e.parentElement)??void 0);tt({y:()=>x()});const g=st(.25,0,.77,.5);nt(()=>{}),it(()=>{});const D=()=>{let i=0,B=Math.min(p(),(c.height-o.height)/2),l=0,b=0,Y=0,d=0,m=0,Z=0,k=h.bounds.height,I=h.bounds.top,w=c.top-o.top;if(r()=="center"&&(l=k/2-o.height/2+I,Y=l,b=-c.height+o.height/2+k/2+I),r()=="top"&&(l=I,Y=l,b=-c.height+o.height+I),r()=="bottom"&&(l=k-o.height+I,Y=l,b=-c.height+k+I),b-=w,Y+=B,d=Y-o.top,m=l-b,i=Math.min(T(),m),h.isSmoothed||(i=0),(a()=="bottom"||!a())&&(l=1/0),(a()=="top"||!a())&&(b=-1/0),o.top<l+B&&(Z=d),o.top<b+B&&(Z=m),(a()=="top"||a()==!0)&&d>-i*.5&&d<i*.5){const C=P(-i*.5,i*.5,0,1,d);Z=g(C)*i*.5}if((a()=="bottom"||a()==!0)&&d-m>-i*.5&&d-m<i*.5){const C=P(-i*.5,i*.5,0,1,d-m),q=g(1-C);Z=m-q*i*.5}if(h.isSmoothed&&M()&&(u=M()(u)),x(Z),h.isSmoothed&&(u.y=x()),s(m),X(x()/m),!!e){if(h.isSmoothed){e.style.position="",e.style.top="",e.style.transform=u.matrix;return}e.style.position="sticky",e.style.transform="",r()=="center"&&(e.style.top=(k-o.height)/2+p()+"px"),r()=="top"&&(e.style.top=p()+"px"),r()=="bottom"&&(e.style.top=k-o.height+p()+"px")}};A(()=>{o.top,o.height,c.height,h.isSmoothed,E(()=>D())}),A(()=>{h.position,E(()=>{})}),N("sticky",{get position(){return x()},get size(){return s()},get progress(){return X()}});var y=ct();let O;var R=V(y);et(R,()=>n.children),W(y),rt(y,i=>e=i,()=>e),Q(()=>O=ot(y,"",O,{"z-index":S.string})),H(_,y),U()}export{dt as S};
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.