import{P as c}from"./vue-core-Di3IuVqe.js";function d(a){const o=new Set,s=async e=>{const n=e!=null?String(e):"";if(!(!n||o.has(n))){o.add(n);try{await a(e)}catch{}finally{o.delete(n)}}};let t=null;const u={mounted(e,n){t||(t=new IntersectionObserver(l=>{for(const r of l)r.isIntersecting&&(s(r.target.__lazyPhotoValue),t.unobserve(r.target))},{rootMargin:"200px"})),e.__lazyPhotoValue=n.value,t.observe(e)},updated(e,n){e.__lazyPhotoValue=n.value},unmounted(e){t&&t.unobserve(e)}};return c(()=>{t&&(t.disconnect(),t=null)}),{vLazyPhoto:u}}export{d as u};
