'use strict';

var index = require('./index-CP3lGz14.js');

const getLocale = () => {
    const config = index.useBalConfig();
    return (config && config.locale) || index.defaultLocale;
};
function getDecimalSeparator() {
    return Intl.NumberFormat(getLocale())
        .format(1.1)
        .replace(/\p{Number}/gu, '');
}
function getThousandSeparator() {
    return Intl.NumberFormat(getLocale())
        .format(11111)
        .replace(/\p{Number}/gu, '');
}
function formatLocaleNumber(number, minimumFractionDigits) {
    const options = minimumFractionDigits !== undefined ? { minimumFractionDigits, maximumFractionDigits: minimumFractionDigits } : {};
    const formattedNumber = Intl.NumberFormat(getLocale(), Object.assign({}, options)).format(number);
    if (formattedNumber === 'NaN') {
        return '';
    }
    return formattedNumber;
}
const getNegativeSymbol = () => {
    return '-';
};

exports.formatLocaleNumber = formatLocaleNumber;
exports.getDecimalSeparator = getDecimalSeparator;
exports.getNegativeSymbol = getNegativeSymbol;
exports.getThousandSeparator = getThousandSeparator;
