/*!
 * KoliBri - The accessible HTML-Standard
 */
'use strict';

var common = require('./common-DAAt5YQ7.js');
var componentNames = require('./component-names-5KS_pYRF.js');
var i18n = require('./i18n-CgUN6lev.js');

let initialized = false;
let options;
const bootstrap = async (themes, loaders, koliBriOptions) => {
    var _a, _b;
    const nodeEnv = typeof process !== 'undefined' && process.env ? "production" : undefined;
    common.setRuntimeMode((koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.environment) || nodeEnv || 'production');
    i18n.initializeI18n((_b = (_a = koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.translation) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : 'de', koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.translations);
    if (koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.transformTagName) {
        componentNames.setCustomTagNames(koliBriOptions === null || koliBriOptions === void 0 ? void 0 : koliBriOptions.transformTagName);
    }
    const coreRegisterReturnValue = await common.Z(themes, loaders, koliBriOptions);
    initialized = true;
    options = koliBriOptions;
    common.Log.info('Development mode active - Enhanced debugging features available');
    return coreRegisterReturnValue;
};
const register = bootstrap;
const isInitialized = () => initialized;
const getOptions = () => options;

exports.bootstrap = bootstrap;
exports.getOptions = getOptions;
exports.isInitialized = isInitialized;
exports.register = register;
//# sourceMappingURL=bootstrap-De2npoa_.js.map

//# sourceMappingURL=bootstrap-De2npoa_.js.map