"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }function t(){return{message:"this is working",status:!0}}function f(r){let e=r||_optionalChain([t, 'call', _ => _(), 'optionalAccess', _2 => _2.message]);return console.warn("warning:",e),{message:e,status:"sccuess",error:!1}}exports.getStuff = t; exports.log = f; //# sourceMappingURL=index.cjs.map