import{ht as e}from"../../index.js";var t=e({cancelAppPrefetchFetch:()=>s,promoteAppPrefetchFetch:()=>c,releaseAppPrefetchFetchSlot:()=>o}),n=Symbol.for(`vinext.appPrefetchFetchSlotRelease`),r=[],i=new WeakMap,a=0;function o(e){let t=e[n];t!==void 0&&(e[n]=void 0,t())}function s(e){e!==void 0&&i.get(e)?.cancel()}function c(e){if(e===void 0)return;let t=i.get(e)?.runner;if(t===void 0)return;let n=r.indexOf(t);n!==-1&&(r.splice(n,1),a+=1,t())}export{o as i,s as n,c as r,t};