"use strict";
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.isConstructible = exports.safeCast = void 0;
const safeCast = (val) => {
    if (!val)
        return val;
    return val;
};
exports.safeCast = safeCast;
const isConstructible = (value) => {
    try {
        new new Proxy(value, {
            construct() {
                return {};
            },
        })();
        return true;
    }
    catch (err) {
        return false;
    }
};
exports.isConstructible = isConstructible;
