import{G as e,W as t}from"./index-uCtpzrM3.js";function n(){let n=t(),r=e();function i(e=`open`){let t=n.query[e];if(!t)return null;let i={...n.query};delete i[e],r.replace({path:n.path,query:i});let a=Number(t);return Number.isInteger(a)&&a>0?a:null}return{consume:i}}export{n as t};