var{defineProperty:u,getOwnPropertyNames:w,getOwnPropertyDescriptor:x}=Object,B=Object.prototype.hasOwnProperty;function G(g){return this[g]}var M=(g)=>{var h=(v??=new WeakMap).get(g),k;if(h)return h;if(h=u({},"__esModule",{value:!0}),g&&typeof g==="object"||typeof g==="function"){for(var q of w(g))if(!B.call(h,q))u(h,q,{get:G.bind(g,q),enumerable:!(k=x(g,q))||k.enumerable})}return v.set(g,h),h},v;var H=(g)=>g;function J(g,h){this[g]=H.bind(null,h)}var N=(g,h)=>{for(var k in h)u(g,k,{get:h[k],enumerable:!0,configurable:!0,set:J.bind(h,k)})};var Q=(g,h)=>()=>(g&&(h=g(g=0)),h);var K={maxRetries:3,initialBackoffMs:1000,maxBackoffMs:60000,multiplier:2,jitter:!0};function V(g,h=K){let k=Math.min(h.initialBackoffMs*Math.pow(h.multiplier,g-1),h.maxBackoffMs);if(h.jitter){let q=0.8+Math.random()*0.4;return Math.floor(k*q)}return k}function W(g){return g}export{W as defineJobType,V as calculateBackoff,K as DEFAULT_RETRY_POLICY};
