function i(e,r=2){return JSON.stringify(e,(n,t)=>t instanceof Set?{__type:"Set",values:[...t]}:t instanceof Map?{__type:"Map",entries:[...t.entries()]}:t instanceof Date?t.toISOString():t instanceof Error?{__type:"Error",message:t.message,stack:t.stack}:t,r)}export{i as a};
