"use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var f=(o,e)=>{for(var n in e)s(o,n,{get:e[n],enumerable:!0})},p=(o,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of d(e))!x.call(o,i)&&i!==n&&s(o,i,{get:()=>e[i],enumerable:!(r=c(e,i))||r.enumerable});return o};var E=o=>p(s({},"__esModule",{value:!0}),o);var h={};f(h,{panic:()=>a,setShouldExitByDefault:()=>u});module.exports=E(h);var l=(()=>typeof process<"u"&&process.versions!=null&&process.versions.node!=null)();var t=!0;function u(o){t=!!o}function a(o,e){e?.silent||(e?.cause?(console.group("[panic]",o),console.error("[Cause]",e.cause),console.groupEnd()):console.error("[panic]",o));let n=e?.exit==null?t:e.exit;throw e?.shouldExit!==void 0&&e?.exit==null&&(n=e.shouldExit),l&&n!==!1&&process.exit(e?.exitCode??1),new Error(o,{cause:e?.cause})}0&&(module.exports={panic,setShouldExitByDefault});