System.register(["./index-legacy-1cbe5d00.js"],(function(e,t){"use strict";var o,i,n,s,r,a,l,u,d,f,c,h,v,p,x,m,b,g,w,y,$,I,j,k,z,B;return{setters:[e=>{o=e.bs,i=e.aS,n=e.aE,s=e.bj,r=e.c,a=e.n,l=e.m,u=e.b,d=e.d,f=e.r,c=e.bB,h=e.x,v=e.e,p=e.bE,x=e.ai,m=e.i,b=e.w,g=e.a3,w=e.bD,y=e.z,$=e.a4,I=e.bI,j=e.bJ,k=e.a,z=e.bk,B=e.k}],execute:function(){function t(e,t){if(!o||!window.IntersectionObserver)return;const r=new IntersectionObserver((e=>{t(e[0].intersectionRatio>0)}),{root:document.body}),a=()=>{e.value&&r.unobserve(e.value)};i(a),n(a),s((()=>{e.value&&r.observe(e.value)}))}e("u",t);const[E,O]=r("sticky"),S={zIndex:a,position:l("top"),container:Object,offsetTop:u(0),offsetBottom:u(0)};var T=d({name:E,props:S,emits:["scroll","change"],setup(e,{emit:o,slots:i}){const n=f(),s=c(n),r=h({fixed:!1,width:0,height:0,transform:0}),a=f(!1),l=v((()=>p("top"===e.position?e.offsetTop:e.offsetBottom))),u=v((()=>{if(a.value)return;const{fixed:e,height:t,width:o}=r;return e?{width:`${o}px`,height:`${t}px`}:void 0})),d=v((()=>{if(!r.fixed||a.value)return;const t=x(m(e.zIndex),{width:`${r.width}px`,height:`${r.height}px`,[e.position]:`${l.value}px`});return r.transform&&(t.transform=`translate3d(0, ${r.transform}px, 0)`),t})),B=()=>{if(!n.value||w(n))return;const{container:t,position:i}=e,s=$(n),a=z(window);if(r.width=s.width,r.height=s.height,"top"===i)if(t){const e=$(t),o=e.bottom-l.value-r.height;r.fixed=l.value>s.top&&e.bottom>0,r.transform=o<0?o:0}else r.fixed=l.value>s.top;else{const{clientHeight:e}=document.documentElement;if(t){const o=$(t),i=e-o.top-l.value-r.height;r.fixed=e-l.value<s.bottom&&e>o.top,r.transform=i<0?-i:0}else r.fixed=e-l.value<s.bottom}(e=>{o("scroll",{scrollTop:e,isFixed:r.fixed})})(a)};return b((()=>r.fixed),(e=>o("change",e))),g("scroll",B,{target:s,passive:!0}),t(n,B),b([I,j],(()=>{n.value&&!w(n)&&r.fixed&&(a.value=!0,y((()=>{const e=$(n);r.width=e.width,r.height=e.height,a.value=!1})))})),()=>{var e;return k("div",{ref:n,style:u.value},[k("div",{class:O({fixed:r.fixed&&!a.value}),style:d.value},[null==(e=i.default)?void 0:e.call(i)])])}}});e("S",B(T))}}}));
