import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import { serverSettings } from './api'
import { registerSW } from 'virtual:pwa-register'

// Инициализация серверных настроек (timezone и т.д.)
serverSettings.init()

// Регистрация Service Worker для PWA
registerSW({ immediate: true })

const app = createApp(App)
app.use(createPinia())
app.use(router)
app.mount('#app')
