import{W as e}from"./vscode-api-DjORcpSo.js";import{t}from"./route-scope-CLteRG86.js";var n=`--right-panel-composer-overlay-height`,r=`--right-panel-composer-overlay-reserve`,i=`var(${r}, 1.5rem)`,a=118,o=120,s=new WeakMap,c=e(t,0),l=e(t,h(!0)),u=e(t,!0);function d(e,{prefersReducedMotion:t=!1}={}){let n=!e.get(u);e.set(u,n),e.set(l,t?h(n):n?`entering`:`exiting`),p(e,n?a:0,{direction:n?`enter`:`exit`,shouldAnimate:!t})}function f(e,t){if(e.get(l)===t){if(t===`entering`){e.set(l,`visible`);return}e.set(l,`hidden`)}}function p(e,t,{direction:n=`enter`,shouldAnimate:r=!1}={}){m(e);let i=e.get(c);if(!r||i===t){g(e,t);return}let a=performance.now(),l=r=>{let c=Math.max(0,Math.min((r-a)/o,1)),u=n===`enter`?c*c:1-(1-c)**2;if(g(e,Math.round(i+(t-i)*u)),c<1){s.set(e.node,window.setTimeout(()=>l(performance.now()),16));return}s.delete(e.node)};s.set(e.node,window.setTimeout(()=>l(performance.now()),16))}function m(e){let t=s.get(e.node);t!=null&&(window.clearTimeout(t),s.delete(e.node))}function h(e){return e?`visible`:`hidden`}function g(e,t){e.get(c)!==t&&e.set(c,t)}export{m as a,l as c,d,a as i,u as l,r as n,f as o,i as r,c as s,n as t,p as u};
//# sourceMappingURL=right-panel-composer-overlay-scroll-reserve-9Lv1zDTR.js.map