// @bun
var{defineProperty:v,getOwnPropertyNames:x,getOwnPropertyDescriptor:z}=Object,A=Object.prototype.hasOwnProperty;function B(b){return this[b]}var E=(b)=>{var g=(w??=new WeakMap).get(b),h;if(g)return g;if(g=v({},"__esModule",{value:!0}),b&&typeof b==="object"||typeof b==="function"){for(var j of x(b))if(!A.call(g,j))v(g,j,{get:B.bind(b,j),enumerable:!(h=z(b,j))||h.enumerable})}return w.set(b,g),g},w;var C=(b)=>b;function D(b,g){this[b]=C.bind(null,g)}var F=(b,g)=>{for(var h in g)v(b,h,{get:g[h],enumerable:!0,configurable:!0,set:D.bind(g,h)})};var G=(b,g)=>()=>(b&&(g=b(b=0)),g);var J=(b)=>("ref"in b),K=(b)=>({...b,meta:{...b.meta,kind:"command"},policy:{...b.policy,idempotent:b.policy?.policy?.idempotent??!1}}),L=(b)=>({...b,meta:{...b.meta,kind:"query"},policy:{...b.policy,idempotent:!0}});export{J as isEmitDeclRef,L as defineQuery,K as defineCommand};
