import{i as e}from"./dist-6a3viBXZ.js";import{H as t,W as n,at as r,h as i}from"./symbols-BUTtwS7j.js";function a(r,i={}){if(typeof r!=`object`||!r||Array.isArray(r))throw new e(`experimental_setAttributes requires a plain object, got ${r===null?`null`:Array.isArray(r)?`array`:typeof r}`);let a=Object.entries(r).map(([e,t])=>({key:e,value:t===void 0?null:t}));if(a.length===0)return a;let o=i.allowReservedAttributes===!0;try{n(a,{allowReservedAttributes:o})}catch(n){throw n instanceof t?new e(n.message):n}return a}async function o(e){let t=globalThis[i];return t||r(`sleep()`,`https://workflow-sdk.dev/docs/api-reference/workflow/sleep`,o),t(e)}export{a as n,o as t};