const e=require(`./paths-Dbz86fcW.cjs`),t=require(`./model-auth-AR9ykNRi.cjs`),n=new Map;function r(e){return(e??``).trim()||`default`}function i(e){let i=r(e),a=n.get(i)??null;if(!a)throw Error(`No active WhatsApp Web listener (account: ${i}). Start the gateway, then link WhatsApp with: ${t.Js(`openclaw channels login --channel whatsapp --account ${i}`)}.`);return{accountId:i,listener:a}}function a(t,i){let{accountId:a,listener:o}=typeof t==`string`?{accountId:t,listener:i??null}:{accountId:e.Ft,listener:t??null},s=r(a);o?n.set(s,o):n.delete(s)}function o(e){let t=r(e);return n.get(t)??null}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
