function getReactUrl(debug = false) {
    return debug
        ? 'https://unpkg.com/react@18.2.0/umd/react.development.js'
        : 'https://unpkg.com/react@18.2.0/umd/react.production.min.js';
}
function getReactDOMUrl(debug = false) {
    return debug
        ? 'https://unpkg.com/react-dom@18.2.0/umd/react-dom.development.js'
        : 'https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js';
}
function getReactFallbackUrl(debug = false) {
    return debug
        ? 'https://cdn.jsdelivr.net/npm/react@18.2.0/umd/react.development.js'
        : 'https://cdn.jsdelivr.net/npm/react@18.2.0/umd/react.production.min.js';
}
function getReactDOMFallbackUrl(debug = false) {
    return debug
        ? 'https://cdn.jsdelivr.net/npm/react-dom@18.2.0/umd/react-dom.development.js'
        : 'https://cdn.jsdelivr.net/npm/react-dom@18.2.0/umd/react-dom.production.min.js';
}
export function getCoreRuntimeLibraries(debug = false) {
    return [
        {
            id: 'react',
            name: 'react',
            displayName: 'React',
            category: 'runtime',
            globalVariable: 'React',
            version: '18.2.0',
            cdnUrl: getReactUrl(debug),
            fallbackCdnUrls: [getReactFallbackUrl(debug)],
            description: 'React core library',
            isEnabled: true,
            isCore: true,
            isRuntimeOnly: true
        },
        {
            id: 'react-dom',
            name: 'react-dom',
            displayName: 'ReactDOM',
            category: 'runtime',
            globalVariable: 'ReactDOM',
            version: '18.2.0',
            cdnUrl: getReactDOMUrl(debug),
            fallbackCdnUrls: [getReactDOMFallbackUrl(debug)],
            description: 'React DOM library',
            isEnabled: true,
            isCore: true,
            isRuntimeOnly: true
        },
        {
            id: 'babel-standalone',
            name: '@babel/standalone',
            displayName: 'Babel Standalone',
            category: 'runtime',
            globalVariable: 'Babel',
            version: '7.24.4',
            cdnUrl: 'https://unpkg.com/@babel/standalone@7.24.4/babel.min.js',
            fallbackCdnUrls: ['https://cdn.jsdelivr.net/npm/@babel/standalone@7.24.4/babel.min.js'],
            description: 'Babel compiler for JSX transformation',
            isEnabled: true,
            isCore: true,
            isRuntimeOnly: true
        }
    ];
}
export function isCoreRuntimeLibrary(libraryId) {
    const coreLibraries = getCoreRuntimeLibraries();
    return coreLibraries.some((lib) => lib.id === libraryId);
}
//# sourceMappingURL=core-libraries.js.map