var e=[`PUBLISH`,`CONNECT`,`SUBSCRIBE`,`UNSUBSCRIBE`,`ACK`,`DISCONNECT`,`PING`,`DELIVERED`,`OFFLINE`,`DROP`,`CLOSE`];function t(e){let t=e.trim().toUpperCase();return t===`PUBLISH`?`SELECT * FROM "test/#"`:`SELECT * FROM "$EVENT.${t}"`}function n(t){let n=/\$EVENT\.([A-Za-z_]+)/i.exec(t??``);if(!n)return`PUBLISH`;let r=n[1].toUpperCase();return e.includes(r)?r:`PUBLISH`}export{t as n,n as r,e as t};