var{defineProperty:C,getOwnPropertyNames:F,getOwnPropertyDescriptor:G}=Object,H=Object.prototype.hasOwnProperty;function K(x){return this[x]}var N=(x)=>{var z=(E??=new WeakMap).get(x),A;if(z)return z;if(z=C({},"__esModule",{value:!0}),x&&typeof x==="object"||typeof x==="function"){for(var B of F(x))if(!H.call(z,B))C(z,B,{get:K.bind(x,B),enumerable:!(A=G(x,B))||A.enumerable})}return E.set(x,z),z},E;var L=(x)=>x;function M(x,z){this[x]=L.bind(null,z)}var O=(x,z)=>{for(var A in z)C(x,A,{get:z[A],enumerable:!0,configurable:!0,set:M.bind(z,A)})};var Q=(x,z)=>()=>(x&&(z=x(x=0)),z);function T(x,z){x.register(z.type,async(A)=>{let B=z.schema.parse(A.payload);await z.handler(B,A)})}export{T as registerDefinedJob};
