// [TSM.ID].[11031972] -- All Rights Reserved. Proprietary & Confidential.
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.jsx'

import { IamProvider } from './context/IamContext.jsx'
import { I18nProvider } from './context/I18nContext.jsx'
import { CurrencyProvider } from './context/CurrencyContext.jsx'
import { CommercialProvider } from './context/CommercialContext.jsx'
import { AuthProvider } from './context/AuthContext.jsx'
import { WasmProvider } from './context/WasmContext.jsx'
import { ThemeProvider } from './context/ThemeContext.jsx'
import { ModuleRegistryProvider } from './context/ModuleRegistryContext.jsx'

createRoot(document.getElementById('root')).render(
  <StrictMode>
    <ThemeProvider>
      <WasmProvider>
        <AuthProvider>
          <I18nProvider>
            <CurrencyProvider>
              <CommercialProvider>
                <ModuleRegistryProvider>
                  <IamProvider>
                    <App />
                  </IamProvider>
                </ModuleRegistryProvider>
              </CommercialProvider>
            </CurrencyProvider>
          </I18nProvider>
        </AuthProvider>
      </WasmProvider>
    </ThemeProvider>
  </StrictMode>,
)
