# Amplitude Nuxt 4 Example Project

Repository: https://github.com/amplitude/context-hub
Path: basics/nuxt-4

---

## README.md

# Amplitude Nuxt 4 Example

This is a [Nuxt 4](https://nuxt.com) example demonstrating Amplitude integration with product analytics and event tracking.

For Nuxt 3.0 - 3.6, see the [Nuxt 3.6 example](../nuxt-3.6) for an alternative approach.

### Amplitude SDKs

In the browser, this app uses the [Browser Unified SDK (npm)](https://amplitude.com/docs/sdks/analytics/browser/browser-unified-sdk#unified-sdk-npm): [`@amplitude/unified`](https://www.npmjs.com/package/@amplitude/unified) with `initAll` in [app/plugins/amplitude.client.ts](app/plugins/amplitude.client.ts). [Initialize the Unified SDK](https://amplitude.com/docs/sdks/analytics/browser/browser-unified-sdk#initialize-the-unified-sdk) describes `initAll` as initializing every product bundled into Unified npm; see [Unified SDK configuration](https://amplitude.com/docs/sdks/analytics/browser/browser-unified-sdk#configuration) for optional `serverZone`, `instanceName`, and the `analytics`, `sessionReplay`, `experiment`, and `engagement` blocks. Analytics options follow [Browser SDK 2](https://amplitude.com/docs/sdks/analytics/browser/browser-sdk-2#initialize-the-sdk).

The `experiment` block configures **Feature Experiment** (`@amplitude/experiment-js-client`). Amplitude’s [product support table](https://amplitude.com/docs/sdks/analytics/browser/browser-unified-sdk#product-support-by-installation-method) lists **Web Experiment** (`@amplitude/experiment-tag`, including the visual editor) for the Unified **CDN** script, not the Unified **npm** package.

For Nitro routes and other server code, use [`@amplitude/analytics-node`](https://www.npmjs.com/package/@amplitude/analytics-node).

## Features

- **Product Analytics**: Track user events and behaviors
- **User Authentication**: Demo login system with Amplitude user identification
- **Server-side & Client-side Tracking**: Examples of both tracking methods
- **SSR Support**: Server-side rendering with Nuxt 4

## Getting Started

### 1. Install Dependencies

```bash
npm install
# or
pnpm install
```

### 2. Configure Environment Variables

Create a `.env` file in the root directory:

```bash
NUXT_PUBLIC_AMPLITUDE_API_KEY=your_amplitude_api_key
```

Get your Amplitude API key from your [Amplitude project settings](https://app.amplitude.com).

### 3. Run the Development Server

```bash
npm run dev
# or
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the app.

## Project Structure

```
├── app/
│   ├── components/
│   │   └── AppHeader.vue        # Navigation header with auth state
│   ├── composables/
│   │   ├── useAuth.ts           # Authentication composable
│   │   └── useAmplitude.ts      # Amplitude composable
│   ├── middleware/
│   │   └── auth.ts              # Authentication middleware
│   ├── pages/
│   │   ├── index.vue            # Home/Login page
│   │   ├── burrito.vue          # Demo feature page with event tracking
│   │   └── profile.vue          # User profile page
│   ├── plugins/
│   │   └── amplitude.client.ts  # Client-side Amplitude plugin
│   ├── utils/
│   │   └── formValidation.ts    # Form validation utilities
│   └── app.vue                  # Root component
├── assets/
│   └── css/
│       └── main.css              # Global styles
├── server/
│   ├── api/
│   │   ├── auth/
│   │   │   └── login.post.ts     # Login API with server-side tracking
│   │   └── burrito/
│   │       └── consider.post.ts  # Burrito consideration API with server-side tracking
│   └── utils/
│       ├── amplitude.ts          # Server-side Amplitude utility
│       └── users.ts              # In-memory user storage utilities
├── nuxt.config.ts               # Nuxt configuration
└── package.json
```

## Key Integration Points

### Client-side initialization (app/plugins/amplitude.client.ts)

```typescript
import * as amplitude from '@amplitude/unified'

export default defineNuxtPlugin((nuxtApp) => {
  const runtimeConfig = useRuntimeConfig()
  const apiKey = runtimeConfig.public.amplitudeApiKey as string | undefined

  if (apiKey) {
    void amplitude.initAll(apiKey)
  }

  return {
    provide: {
      amplitude,
    },
  }
})
```

### Amplitude composable (app/composables/useAmplitude.ts)

```typescript
import * as amplitude from '@amplitude/unified'

export function useAmplitude() {
  if (process.client) {
    return amplitude
  }
  return null
}
```

### User identification (app/pages/index.vue)

```typescript
import { Identify } from '@amplitude/unified'

const amplitude = useAmplitude()

const handleSubmit = async () => {
  const success = await auth.login(formData.username, formData.password)
  if (success) {
    amplitude?.setUserId(formData.username)
    const identifyObj = new Identify()
    identifyObj.set('username', formData.username)
    amplitude?.identify(identifyObj)

    amplitude?.track('User Logged In', { username: formData.username })
  }
}
```

### Event tracking (app/pages/burrito.vue)

```typescript
const amplitude = useAmplitude()

amplitude?.track('Burrito Considered', {
  total_considerations: response.user.burritoConsiderations,
  username: response.user.username,
})
```

### Server-side tracking (server/api/auth/login.post.ts)

```typescript
import { useServerAmplitude } from '../../utils/amplitude'

const amplitude = useServerAmplitude()
amplitude?.track('Server Login Completed', {
  username,
  isNewUser,
  source: 'api',
}, { user_id: username })
```

### Server-side Amplitude utility (server/utils/amplitude.ts)

```typescript
import { NodeClient, createInstance } from '@amplitude/analytics-node'

let client: NodeClient | null = null

export function useServerAmplitude(): NodeClient | null {
  const config = useRuntimeConfig()
  const apiKey = config.public.amplitudeApiKey as string | undefined

  if (!apiKey) return null

  if (!client) {
    client = createInstance()
    client.init(apiKey)
  }
  return client
}
```

This ensures a single Amplitude Node client instance is reused across all server requests.

## Differences from Nuxt 3.6

- **Plugin + composable**: Uses a client plugin with `useAmplitude()` composable instead of `useNuxtApp().$amplitude`
- **Shared server client**: Reuses Amplitude Node client across requests instead of creating per-request
- **Automatic imports**: In Nuxt 4 server routes, h3 functions (`defineEventHandler`, `readBody`, `createError`, `getHeader`, etc.) are auto-imported

## Learn More

- [Amplitude Documentation](https://amplitude.com/docs)
- [Nuxt 4 Documentation](https://nuxt.com/docs)
- [Amplitude Browser SDK](https://amplitude.com/docs/sdks/analytics/browser/browser-sdk-2)
- [Amplitude Node.js SDK](https://amplitude.com/docs/sdks/analytics/node)

---

## .env.example

```example
NUXT_PUBLIC_AMPLITUDE_API_KEY=

```

---

## .nuxt/app.config.mjs

```mjs

import { defuFn } from 'defu'

const inlineConfig = {
  "nuxt": {}
}

/** client **/
import { _replaceAppConfig } from '#app/config'

// Vite - webpack is handled directly in #app/config
if (import.meta.dev && !import.meta.nitro && import.meta.hot) {
  import.meta.hot.accept((newModule) => {
    _replaceAppConfig(newModule.default)
  })
}
/** client-end **/



export default /*@__PURE__*/ defuFn(inlineConfig)

```

---

## .nuxt/components.d.ts

```ts

import type { DefineComponent, SlotsType } from 'vue'
type IslandComponent<T> = DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>> & T

type HydrationStrategies = {
  hydrateOnVisible?: IntersectionObserverInit | true
  hydrateOnIdle?: number | true
  hydrateOnInteraction?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap> | true
  hydrateOnMediaQuery?: string
  hydrateAfter?: number
  hydrateWhen?: boolean
  hydrateNever?: true
}
type LazyComponent<T> = DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }> & T


export const AppHeader: typeof import("../app/components/AppHeader.vue").default
export const NuxtWelcome: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/welcome.vue").default
export const NuxtLayout: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-layout").default
export const NuxtErrorBoundary: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue").default
export const ClientOnly: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/client-only").default
export const DevOnly: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/dev-only").default
export const ServerPlaceholder: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/server-placeholder").default
export const NuxtLink: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-link").default
export const NuxtLoadingIndicator: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-loading-indicator").default
export const NuxtTime: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-time.vue").default
export const NuxtRouteAnnouncer: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-route-announcer").default
export const NuxtImg: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtImg
export const NuxtPicture: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtPicture
export const NuxtPage: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/pages/runtime/page").default
export const NoScript: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").NoScript
export const Link: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Link
export const Base: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Base
export const Title: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Title
export const Meta: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Meta
export const Style: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Style
export const Head: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Head
export const Html: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Html
export const Body: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Body
export const NuxtIsland: typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-island").default
export const LazyAppHeader: LazyComponent<typeof import("../app/components/AppHeader.vue").default>
export const LazyNuxtWelcome: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/welcome.vue").default>
export const LazyNuxtLayout: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-layout").default>
export const LazyNuxtErrorBoundary: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue").default>
export const LazyClientOnly: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/client-only").default>
export const LazyDevOnly: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/dev-only").default>
export const LazyServerPlaceholder: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/server-placeholder").default>
export const LazyNuxtLink: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-link").default>
export const LazyNuxtLoadingIndicator: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-loading-indicator").default>
export const LazyNuxtTime: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-time.vue").default>
export const LazyNuxtRouteAnnouncer: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-route-announcer").default>
export const LazyNuxtImg: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtImg>
export const LazyNuxtPicture: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtPicture>
export const LazyNuxtPage: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/pages/runtime/page").default>
export const LazyNoScript: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").NoScript>
export const LazyLink: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Link>
export const LazyBase: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Base>
export const LazyTitle: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Title>
export const LazyMeta: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Meta>
export const LazyStyle: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Style>
export const LazyHead: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Head>
export const LazyHtml: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Html>
export const LazyBody: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Body>
export const LazyNuxtIsland: LazyComponent<typeof import("../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-island").default>

export const componentNames: string[]

```

---

## .nuxt/imports.d.ts

```ts
export { useScriptTriggerConsent, useScriptEventPage, useScriptTriggerElement, useScript, useScriptGoogleAnalytics, useScriptPlausibleAnalytics, useScriptCrisp, useScriptClarity, useScriptCloudflareWebAnalytics, useScriptFathomAnalytics, useScriptMatomoAnalytics, useScriptGoogleTagManager, useScriptGoogleAdsense, useScriptSegment, useScriptMetaPixel, useScriptXPixel, useScriptIntercom, useScriptHotjar, useScriptStripe, useScriptLemonSqueezy, useScriptVimeoPlayer, useScriptYouTubePlayer, useScriptGoogleMaps, useScriptNpm, useScriptUmamiAnalytics, useScriptSnapchatPixel, useScriptRybbitAnalytics, useScriptDatabuddyAnalytics, useScriptRedditPixel, useScriptPayPal } from '#app/composables/script-stubs';
export { isVue2, isVue3 } from 'vue-demi';
export { defineNuxtLink } from '#app/components/nuxt-link';
export { useNuxtApp, tryUseNuxtApp, defineNuxtPlugin, definePayloadPlugin, useRuntimeConfig, defineAppConfig } from '#app/nuxt';
export { useAppConfig, updateAppConfig } from '#app/config';
export { defineNuxtComponent } from '#app/composables/component';
export { useAsyncData, useLazyAsyncData, useNuxtData, refreshNuxtData, clearNuxtData } from '#app/composables/asyncData';
export { useHydration } from '#app/composables/hydrate';
export { callOnce } from '#app/composables/once';
export { useState, clearNuxtState } from '#app/composables/state';
export { clearError, createError, isNuxtError, showError, useError } from '#app/composables/error';
export { useFetch, useLazyFetch } from '#app/composables/fetch';
export { useCookie, refreshCookie } from '#app/composables/cookie';
export { onPrehydrate, prerenderRoutes, useRequestHeader, useRequestHeaders, useResponseHeader, useRequestEvent, useRequestFetch, setResponseStatus } from '#app/composables/ssr';
export { onNuxtReady } from '#app/composables/ready';
export { preloadComponents, prefetchComponents, preloadRouteComponents } from '#app/composables/preload';
export { abortNavigation, addRouteMiddleware, defineNuxtRouteMiddleware, setPageLayout, navigateTo, useRoute, useRouter } from '#app/composables/router';
export { isPrerendered, loadPayload, preloadPayload, definePayloadReducer, definePayloadReviver } from '#app/composables/payload';
export { useLoadingIndicator } from '#app/composables/loading-indicator';
export { getAppManifest, getRouteRules } from '#app/composables/manifest';
export { reloadNuxtApp } from '#app/composables/chunk';
export { useRequestURL } from '#app/composables/url';
export { usePreviewMode } from '#app/composables/preview';
export { useRouteAnnouncer } from '#app/composables/route-announcer';
export { useRuntimeHook } from '#app/composables/runtime-hook';
export { useHead, useHeadSafe, useServerHeadSafe, useServerHead, useSeoMeta, useServerSeoMeta, injectHead } from '#app/composables/head';
export { onBeforeRouteLeave, onBeforeRouteUpdate, useLink } from 'vue-router';
export { withCtx, withDirectives, withKeys, withMemo, withModifiers, withScopeId, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, computed, customRef, isProxy, isReactive, isReadonly, isRef, markRaw, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, triggerRef, unref, watch, watchEffect, watchPostEffect, watchSyncEffect, onWatcherCleanup, isShallow, effect, effectScope, getCurrentScope, onScopeDispose, defineComponent, defineAsyncComponent, resolveComponent, getCurrentInstance, h, inject, hasInjectionContext, nextTick, provide, toValue, useModel, useAttrs, useCssModule, useCssVars, useSlots, useTransitionState, useId, useTemplateRef, useShadowRoot, Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue';
export { requestIdleCallback, cancelIdleCallback } from '#app/compat/idle-callback';
export { setInterval } from '#app/compat/interval';
export { definePageMeta } from '../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/pages/runtime/composables';
export { defineLazyHydrationComponent } from '#app/composables/lazy-hydration';
export { useAmplitude } from '../app/composables/useAmplitude';
export { useAuth } from '../app/composables/useAuth';
export { loginSchema, validateForm, LoginFormData } from '../app/utils/formValidation';
```

---

## .nuxt/nuxt.d.ts

```ts
/// <reference types="@nuxt/devtools" />
/// <reference types="@nuxt/telemetry" />
/// <reference path="types/nitro-layouts.d.ts" />
/// <reference path="types/builder-env.d.ts" />
/// <reference path="types/plugins.d.ts" />
/// <reference path="types/build.d.ts" />
/// <reference path="types/app.config.d.ts" />
/// <reference path="types/runtime-config.d.ts" />
/// <reference types="nuxt/app" />
/// <reference types="/Users/kaia/code/amp/context-hub/basics/nuxt-4/node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/index.mjs" />
/// <reference types="vue-router" />
/// <reference path="types/middleware.d.ts" />
/// <reference path="types/nitro-middleware.d.ts" />
/// <reference path="types/layouts.d.ts" />
/// <reference path="types/components.d.ts" />
/// <reference path="imports.d.ts" />
/// <reference path="types/imports.d.ts" />
/// <reference path="schema/nuxt.schema.d.ts" />
/// <reference path="types/nitro.d.ts" />

export {}

```

---

## .nuxt/nuxt.node.d.ts

```ts
/// <reference types="@nuxt/devtools" />
/// <reference types="@nuxt/telemetry" />
/// <reference path="types/nitro-layouts.d.ts" />
/// <reference path="types/modules.d.ts" />
/// <reference path="types/runtime-config.d.ts" />
/// <reference path="types/app.config.d.ts" />
/// <reference types="nuxt" />
/// <reference types="../node_modules/.pnpm/@nuxt+vite-builder@4.3.0_@types+node@25.2.0_magicast@0.5.1_nuxt@4.3.0_@parcel+watcher@2_c98c66adf3b9eb598dba7241c6925d2e/node_modules/@nuxt/vite-builder/dist/index.mjs" />
/// <reference types="/Users/kaia/code/amp/context-hub/basics/nuxt-4/node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/index.mjs" />
/// <reference path="types/nitro-middleware.d.ts" />
/// <reference path="schema/nuxt.schema.d.ts" />

export {}

```

---

## .nuxt/nuxt.shared.d.ts

```ts
/// <reference path="types/runtime-config.d.ts" />
/// <reference path="types/app.config.d.ts" />
/// <reference path="types/shared-imports.d.ts" />
/// <reference path="schema/nuxt.schema.d.ts" />

export {}

```

---

## .nuxt/schema/nuxt.schema.d.ts

```ts
export interface NuxtCustomSchema {

}
export type CustomAppConfig = Exclude<NuxtCustomSchema['appConfig'], undefined>
type _CustomAppConfig = CustomAppConfig

declare module '@nuxt/schema' {
  interface NuxtConfig extends Omit<NuxtCustomSchema, 'appConfig'> {}
  interface NuxtOptions extends Omit<NuxtCustomSchema, 'appConfig'> {}
  interface CustomAppConfig extends _CustomAppConfig {}
}

declare module 'nuxt/schema' {
  interface NuxtConfig extends Omit<NuxtCustomSchema, 'appConfig'> {}
  interface NuxtOptions extends Omit<NuxtCustomSchema, 'appConfig'> {}
  interface CustomAppConfig extends _CustomAppConfig {}
}

```

---

## .nuxt/types/app.config.d.ts

```ts

import type { AppConfigInput, CustomAppConfig } from 'nuxt/schema'
import type { Defu } from 'defu'


declare global {
  const defineAppConfig: <C extends AppConfigInput> (config: C) => C
}

declare const inlineConfig = {
  "nuxt": {}
}
type ResolvedAppConfig = Defu<typeof inlineConfig, []>
type IsAny<T> = 0 extends 1 & T ? true : false

type MergedAppConfig<Resolved extends Record<string, unknown>, Custom extends Record<string, unknown>> = {
  [K in keyof (Resolved & Custom)]: K extends keyof Custom
    ? unknown extends Custom[K]
      ? Resolved[K]
      : IsAny<Custom[K]> extends true
        ? Resolved[K]
        : Custom[K] extends Record<string, any>
            ? Resolved[K] extends Record<string, any>
              ? MergedAppConfig<Resolved[K], Custom[K]>
              : Exclude<Custom[K], undefined>
            : Exclude<Custom[K], undefined>
    : Resolved[K]
}

declare module 'nuxt/schema' {
  interface AppConfig extends MergedAppConfig<ResolvedAppConfig, CustomAppConfig> { }
}
declare module '@nuxt/schema' {
  interface AppConfig extends MergedAppConfig<ResolvedAppConfig, CustomAppConfig> { }
}

```

---

## .nuxt/types/components.d.ts

```ts

import type { DefineComponent, SlotsType } from 'vue'
type IslandComponent<T> = DefineComponent<{}, {refresh: () => Promise<void>}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, SlotsType<{ fallback: { error: unknown } }>> & T

type HydrationStrategies = {
  hydrateOnVisible?: IntersectionObserverInit | true
  hydrateOnIdle?: number | true
  hydrateOnInteraction?: keyof HTMLElementEventMap | Array<keyof HTMLElementEventMap> | true
  hydrateOnMediaQuery?: string
  hydrateAfter?: number
  hydrateWhen?: boolean
  hydrateNever?: true
}
type LazyComponent<T> = DefineComponent<HydrationStrategies, {}, {}, {}, {}, {}, {}, { hydrated: () => void }> & T

interface _GlobalComponents {
  'AppHeader': typeof import("../../app/components/AppHeader.vue").default
  'NuxtWelcome': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/welcome.vue").default
  'NuxtLayout': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-layout").default
  'NuxtErrorBoundary': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue").default
  'ClientOnly': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/client-only").default
  'DevOnly': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/dev-only").default
  'ServerPlaceholder': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/server-placeholder").default
  'NuxtLink': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-link").default
  'NuxtLoadingIndicator': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-loading-indicator").default
  'NuxtTime': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-time.vue").default
  'NuxtRouteAnnouncer': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-route-announcer").default
  'NuxtImg': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtImg
  'NuxtPicture': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtPicture
  'NuxtPage': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/pages/runtime/page").default
  'NoScript': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").NoScript
  'Link': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Link
  'Base': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Base
  'Title': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Title
  'Meta': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Meta
  'Style': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Style
  'Head': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Head
  'Html': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Html
  'Body': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Body
  'NuxtIsland': typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-island").default
  'LazyAppHeader': LazyComponent<typeof import("../../app/components/AppHeader.vue").default>
  'LazyNuxtWelcome': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/welcome.vue").default>
  'LazyNuxtLayout': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-layout").default>
  'LazyNuxtErrorBoundary': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-error-boundary.vue").default>
  'LazyClientOnly': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/client-only").default>
  'LazyDevOnly': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/dev-only").default>
  'LazyServerPlaceholder': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/server-placeholder").default>
  'LazyNuxtLink': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-link").default>
  'LazyNuxtLoadingIndicator': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-loading-indicator").default>
  'LazyNuxtTime': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-time.vue").default>
  'LazyNuxtRouteAnnouncer': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-route-announcer").default>
  'LazyNuxtImg': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtImg>
  'LazyNuxtPicture': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-stubs").NuxtPicture>
  'LazyNuxtPage': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/pages/runtime/page").default>
  'LazyNoScript': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").NoScript>
  'LazyLink': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Link>
  'LazyBase': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Base>
  'LazyTitle': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Title>
  'LazyMeta': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Meta>
  'LazyStyle': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Style>
  'LazyHead': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Head>
  'LazyHtml': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Html>
  'LazyBody': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/components").Body>
  'LazyNuxtIsland': LazyComponent<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-island").default>
}

declare module 'vue' {
  export interface GlobalComponents extends _GlobalComponents { }
}

export {}

```

---

## .nuxt/types/imports.d.ts

```ts
// Generated by auto imports
export {}
declare global {
  const abortNavigation: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router').abortNavigation
  const addRouteMiddleware: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router').addRouteMiddleware
  const callOnce: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/once').callOnce
  const cancelIdleCallback: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/idle-callback').cancelIdleCallback
  const clearError: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error').clearError
  const clearNuxtData: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData').clearNuxtData
  const clearNuxtState: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/state').clearNuxtState
  const computed: typeof import('vue').computed
  const createError: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error').createError
  const customRef: typeof import('vue').customRef
  const defineAppConfig: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt').defineAppConfig
  const defineAsyncComponent: typeof import('vue').defineAsyncComponent
  const defineComponent: typeof import('vue').defineComponent
  const defineLazyHydrationComponent: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/lazy-hydration').defineLazyHydrationComponent
  const defineNuxtComponent: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/component').defineNuxtComponent
  const defineNuxtLink: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-link').defineNuxtLink
  const defineNuxtPlugin: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt').defineNuxtPlugin
  const defineNuxtRouteMiddleware: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router').defineNuxtRouteMiddleware
  const definePageMeta: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/pages/runtime/composables').definePageMeta
  const definePayloadPlugin: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt').definePayloadPlugin
  const definePayloadReducer: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload').definePayloadReducer
  const definePayloadReviver: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload').definePayloadReviver
  const effect: typeof import('vue').effect
  const effectScope: typeof import('vue').effectScope
  const getAppManifest: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/manifest').getAppManifest
  const getCurrentInstance: typeof import('vue').getCurrentInstance
  const getCurrentScope: typeof import('vue').getCurrentScope
  const getRouteRules: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/manifest').getRouteRules
  const h: typeof import('vue').h
  const hasInjectionContext: typeof import('vue').hasInjectionContext
  const inject: typeof import('vue').inject
  const injectHead: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head').injectHead
  const isNuxtError: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error').isNuxtError
  const isPrerendered: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload').isPrerendered
  const isProxy: typeof import('vue').isProxy
  const isReactive: typeof import('vue').isReactive
  const isReadonly: typeof import('vue').isReadonly
  const isRef: typeof import('vue').isRef
  const isShallow: typeof import('vue').isShallow
  const isVue2: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/vue-demi').isVue2
  const isVue3: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/vue-demi').isVue3
  const loadPayload: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload').loadPayload
  const loginSchema: typeof import('../../app/utils/formValidation').loginSchema
  const markRaw: typeof import('vue').markRaw
  const navigateTo: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router').navigateTo
  const nextTick: typeof import('vue').nextTick
  const onActivated: typeof import('vue').onActivated
  const onBeforeMount: typeof import('vue').onBeforeMount
  const onBeforeRouteLeave: typeof import('vue-router').onBeforeRouteLeave
  const onBeforeRouteUpdate: typeof import('vue-router').onBeforeRouteUpdate
  const onBeforeUnmount: typeof import('vue').onBeforeUnmount
  const onBeforeUpdate: typeof import('vue').onBeforeUpdate
  const onDeactivated: typeof import('vue').onDeactivated
  const onErrorCaptured: typeof import('vue').onErrorCaptured
  const onMounted: typeof import('vue').onMounted
  const onNuxtReady: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ready').onNuxtReady
  const onPrehydrate: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr').onPrehydrate
  const onRenderTracked: typeof import('vue').onRenderTracked
  const onRenderTriggered: typeof import('vue').onRenderTriggered
  const onScopeDispose: typeof import('vue').onScopeDispose
  const onServerPrefetch: typeof import('vue').onServerPrefetch
  const onUnmounted: typeof import('vue').onUnmounted
  const onUpdated: typeof import('vue').onUpdated
  const onWatcherCleanup: typeof import('vue').onWatcherCleanup
  const prefetchComponents: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/preload').prefetchComponents
  const preloadComponents: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/preload').preloadComponents
  const preloadPayload: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload').preloadPayload
  const preloadRouteComponents: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/preload').preloadRouteComponents
  const prerenderRoutes: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr').prerenderRoutes
  const provide: typeof import('vue').provide
  const proxyRefs: typeof import('vue').proxyRefs
  const reactive: typeof import('vue').reactive
  const readonly: typeof import('vue').readonly
  const ref: typeof import('vue').ref
  const refreshCookie: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/cookie').refreshCookie
  const refreshNuxtData: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData').refreshNuxtData
  const reloadNuxtApp: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/chunk').reloadNuxtApp
  const requestIdleCallback: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/idle-callback').requestIdleCallback
  const resolveComponent: typeof import('vue').resolveComponent
  const setInterval: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/interval').setInterval
  const setPageLayout: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router').setPageLayout
  const setResponseStatus: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr').setResponseStatus
  const shallowReactive: typeof import('vue').shallowReactive
  const shallowReadonly: typeof import('vue').shallowReadonly
  const shallowRef: typeof import('vue').shallowRef
  const showError: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error').showError
  const toRaw: typeof import('vue').toRaw
  const toRef: typeof import('vue').toRef
  const toRefs: typeof import('vue').toRefs
  const toValue: typeof import('vue').toValue
  const triggerRef: typeof import('vue').triggerRef
  const tryUseNuxtApp: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt').tryUseNuxtApp
  const unref: typeof import('vue').unref
  const updateAppConfig: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/config').updateAppConfig
  const useAmplitude: typeof import('../../app/composables/useAmplitude').useAmplitude
  const useAppConfig: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/config').useAppConfig
  const useAsyncData: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData').useAsyncData
  const useAttrs: typeof import('vue').useAttrs
  const useAuth: typeof import('../../app/composables/useAuth').useAuth
  const useCookie: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/cookie').useCookie
  const useCssModule: typeof import('vue').useCssModule
  const useCssVars: typeof import('vue').useCssVars
  const useError: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error').useError
  const useFetch: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/fetch').useFetch
  const useHead: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head').useHead
  const useHeadSafe: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head').useHeadSafe
  const useHydration: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/hydrate').useHydration
  const useId: typeof import('vue').useId
  const useLazyAsyncData: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData').useLazyAsyncData
  const useLazyFetch: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/fetch').useLazyFetch
  const useLink: typeof import('vue-router').useLink
  const useLoadingIndicator: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/loading-indicator').useLoadingIndicator
  const useModel: typeof import('vue').useModel
  const useNuxtApp: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt').useNuxtApp
  const useNuxtData: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData').useNuxtData
  const usePreviewMode: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/preview').usePreviewMode
  const useRequestEvent: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr').useRequestEvent
  const useRequestFetch: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr').useRequestFetch
  const useRequestHeader: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr').useRequestHeader
  const useRequestHeaders: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr').useRequestHeaders
  const useRequestURL: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/url').useRequestURL
  const useResponseHeader: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr').useResponseHeader
  const useRoute: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router').useRoute
  const useRouteAnnouncer: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/route-announcer').useRouteAnnouncer
  const useRouter: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router').useRouter
  const useRuntimeConfig: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt').useRuntimeConfig
  const useRuntimeHook: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/runtime-hook').useRuntimeHook
  const useScript: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScript
  const useScriptClarity: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptClarity
  const useScriptCloudflareWebAnalytics: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptCloudflareWebAnalytics
  const useScriptCrisp: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptCrisp
  const useScriptDatabuddyAnalytics: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptDatabuddyAnalytics
  const useScriptEventPage: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptEventPage
  const useScriptFathomAnalytics: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptFathomAnalytics
  const useScriptGoogleAdsense: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptGoogleAdsense
  const useScriptGoogleAnalytics: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptGoogleAnalytics
  const useScriptGoogleMaps: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptGoogleMaps
  const useScriptGoogleTagManager: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptGoogleTagManager
  const useScriptHotjar: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptHotjar
  const useScriptIntercom: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptIntercom
  const useScriptLemonSqueezy: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptLemonSqueezy
  const useScriptMatomoAnalytics: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptMatomoAnalytics
  const useScriptMetaPixel: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptMetaPixel
  const useScriptNpm: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptNpm
  const useScriptPayPal: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptPayPal
  const useScriptPlausibleAnalytics: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptPlausibleAnalytics
  const useScriptRedditPixel: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptRedditPixel
  const useScriptRybbitAnalytics: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptRybbitAnalytics
  const useScriptSegment: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptSegment
  const useScriptSnapchatPixel: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptSnapchatPixel
  const useScriptStripe: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptStripe
  const useScriptTriggerConsent: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptTriggerConsent
  const useScriptTriggerElement: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptTriggerElement
  const useScriptUmamiAnalytics: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptUmamiAnalytics
  const useScriptVimeoPlayer: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptVimeoPlayer
  const useScriptXPixel: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptXPixel
  const useScriptYouTubePlayer: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs').useScriptYouTubePlayer
  const useSeoMeta: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head').useSeoMeta
  const useServerHead: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head').useServerHead
  const useServerHeadSafe: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head').useServerHeadSafe
  const useServerSeoMeta: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head').useServerSeoMeta
  const useShadowRoot: typeof import('vue').useShadowRoot
  const useSlots: typeof import('vue').useSlots
  const useState: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/state').useState
  const useTemplateRef: typeof import('vue').useTemplateRef
  const useTransitionState: typeof import('vue').useTransitionState
  const validateForm: typeof import('../../app/utils/formValidation').validateForm
  const watch: typeof import('vue').watch
  const watchEffect: typeof import('vue').watchEffect
  const watchPostEffect: typeof import('vue').watchPostEffect
  const watchSyncEffect: typeof import('vue').watchSyncEffect
  const withCtx: typeof import('vue').withCtx
  const withDirectives: typeof import('vue').withDirectives
  const withKeys: typeof import('vue').withKeys
  const withMemo: typeof import('vue').withMemo
  const withModifiers: typeof import('vue').withModifiers
  const withScopeId: typeof import('vue').withScopeId
}
// for type re-export
declare global {
  // @ts-ignore
  export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
  import('vue')
  // @ts-ignore
  export type { LoginFormData } from '../../app/utils/formValidation'
  import('../../app/utils/formValidation')
}
// for vue template auto import
import { UnwrapRef } from 'vue'
declare module 'vue' {
  interface ComponentCustomProperties {
    readonly abortNavigation: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router')['abortNavigation']>
    readonly addRouteMiddleware: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router')['addRouteMiddleware']>
    readonly callOnce: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/once')['callOnce']>
    readonly cancelIdleCallback: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/idle-callback')['cancelIdleCallback']>
    readonly clearError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error')['clearError']>
    readonly clearNuxtData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData')['clearNuxtData']>
    readonly clearNuxtState: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/state')['clearNuxtState']>
    readonly computed: UnwrapRef<typeof import('vue')['computed']>
    readonly createError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error')['createError']>
    readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
    readonly defineAppConfig: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt')['defineAppConfig']>
    readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
    readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
    readonly defineLazyHydrationComponent: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/lazy-hydration')['defineLazyHydrationComponent']>
    readonly defineNuxtComponent: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/component')['defineNuxtComponent']>
    readonly defineNuxtLink: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/components/nuxt-link')['defineNuxtLink']>
    readonly defineNuxtPlugin: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt')['defineNuxtPlugin']>
    readonly defineNuxtRouteMiddleware: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router')['defineNuxtRouteMiddleware']>
    readonly definePageMeta: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/pages/runtime/composables')['definePageMeta']>
    readonly definePayloadPlugin: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt')['definePayloadPlugin']>
    readonly definePayloadReducer: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload')['definePayloadReducer']>
    readonly definePayloadReviver: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload')['definePayloadReviver']>
    readonly effect: UnwrapRef<typeof import('vue')['effect']>
    readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
    readonly getAppManifest: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/manifest')['getAppManifest']>
    readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
    readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
    readonly getRouteRules: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/manifest')['getRouteRules']>
    readonly h: UnwrapRef<typeof import('vue')['h']>
    readonly hasInjectionContext: UnwrapRef<typeof import('vue')['hasInjectionContext']>
    readonly inject: UnwrapRef<typeof import('vue')['inject']>
    readonly injectHead: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head')['injectHead']>
    readonly isNuxtError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error')['isNuxtError']>
    readonly isPrerendered: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload')['isPrerendered']>
    readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
    readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
    readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
    readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
    readonly isShallow: UnwrapRef<typeof import('vue')['isShallow']>
    readonly isVue2: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/vue-demi')['isVue2']>
    readonly isVue3: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/vue-demi')['isVue3']>
    readonly loadPayload: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload')['loadPayload']>
    readonly loginSchema: UnwrapRef<typeof import('../../app/utils/formValidation')['loginSchema']>
    readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
    readonly navigateTo: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router')['navigateTo']>
    readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
    readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
    readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
    readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
    readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
    readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
    readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
    readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
    readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
    readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
    readonly onNuxtReady: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ready')['onNuxtReady']>
    readonly onPrehydrate: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr')['onPrehydrate']>
    readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
    readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
    readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
    readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
    readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
    readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
    readonly onWatcherCleanup: UnwrapRef<typeof import('vue')['onWatcherCleanup']>
    readonly prefetchComponents: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/preload')['prefetchComponents']>
    readonly preloadComponents: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/preload')['preloadComponents']>
    readonly preloadPayload: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/payload')['preloadPayload']>
    readonly preloadRouteComponents: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/preload')['preloadRouteComponents']>
    readonly prerenderRoutes: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr')['prerenderRoutes']>
    readonly provide: UnwrapRef<typeof import('vue')['provide']>
    readonly proxyRefs: UnwrapRef<typeof import('vue')['proxyRefs']>
    readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
    readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
    readonly ref: UnwrapRef<typeof import('vue')['ref']>
    readonly refreshCookie: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/cookie')['refreshCookie']>
    readonly refreshNuxtData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData')['refreshNuxtData']>
    readonly reloadNuxtApp: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/chunk')['reloadNuxtApp']>
    readonly requestIdleCallback: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/idle-callback')['requestIdleCallback']>
    readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
    readonly setInterval: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/compat/interval')['setInterval']>
    readonly setPageLayout: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router')['setPageLayout']>
    readonly setResponseStatus: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr')['setResponseStatus']>
    readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
    readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
    readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
    readonly showError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error')['showError']>
    readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
    readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
    readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
    readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
    readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
    readonly tryUseNuxtApp: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt')['tryUseNuxtApp']>
    readonly unref: UnwrapRef<typeof import('vue')['unref']>
    readonly updateAppConfig: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/config')['updateAppConfig']>
    readonly useAmplitude: UnwrapRef<typeof import('../../app/composables/useAmplitude')['useAmplitude']>
    readonly useAppConfig: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/config')['useAppConfig']>
    readonly useAsyncData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData')['useAsyncData']>
    readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
    readonly useAuth: UnwrapRef<typeof import('../../app/composables/useAuth')['useAuth']>
    readonly useCookie: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/cookie')['useCookie']>
    readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
    readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
    readonly useError: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error')['useError']>
    readonly useFetch: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/fetch')['useFetch']>
    readonly useHead: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head')['useHead']>
    readonly useHeadSafe: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head')['useHeadSafe']>
    readonly useHydration: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/hydrate')['useHydration']>
    readonly useId: UnwrapRef<typeof import('vue')['useId']>
    readonly useLazyAsyncData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData')['useLazyAsyncData']>
    readonly useLazyFetch: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/fetch')['useLazyFetch']>
    readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
    readonly useLoadingIndicator: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/loading-indicator')['useLoadingIndicator']>
    readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
    readonly useNuxtApp: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt')['useNuxtApp']>
    readonly useNuxtData: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/asyncData')['useNuxtData']>
    readonly usePreviewMode: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/preview')['usePreviewMode']>
    readonly useRequestEvent: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr')['useRequestEvent']>
    readonly useRequestFetch: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr')['useRequestFetch']>
    readonly useRequestHeader: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr')['useRequestHeader']>
    readonly useRequestHeaders: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr')['useRequestHeaders']>
    readonly useRequestURL: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/url')['useRequestURL']>
    readonly useResponseHeader: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr')['useResponseHeader']>
    readonly useRoute: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router')['useRoute']>
    readonly useRouteAnnouncer: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/route-announcer')['useRouteAnnouncer']>
    readonly useRouter: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/router')['useRouter']>
    readonly useRuntimeConfig: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt')['useRuntimeConfig']>
    readonly useRuntimeHook: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/runtime-hook')['useRuntimeHook']>
    readonly useScript: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScript']>
    readonly useScriptClarity: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptClarity']>
    readonly useScriptCloudflareWebAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptCloudflareWebAnalytics']>
    readonly useScriptCrisp: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptCrisp']>
    readonly useScriptDatabuddyAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptDatabuddyAnalytics']>
    readonly useScriptEventPage: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptEventPage']>
    readonly useScriptFathomAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptFathomAnalytics']>
    readonly useScriptGoogleAdsense: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptGoogleAdsense']>
    readonly useScriptGoogleAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptGoogleAnalytics']>
    readonly useScriptGoogleMaps: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptGoogleMaps']>
    readonly useScriptGoogleTagManager: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptGoogleTagManager']>
    readonly useScriptHotjar: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptHotjar']>
    readonly useScriptIntercom: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptIntercom']>
    readonly useScriptLemonSqueezy: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptLemonSqueezy']>
    readonly useScriptMatomoAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptMatomoAnalytics']>
    readonly useScriptMetaPixel: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptMetaPixel']>
    readonly useScriptNpm: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptNpm']>
    readonly useScriptPayPal: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptPayPal']>
    readonly useScriptPlausibleAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptPlausibleAnalytics']>
    readonly useScriptRedditPixel: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptRedditPixel']>
    readonly useScriptRybbitAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptRybbitAnalytics']>
    readonly useScriptSegment: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptSegment']>
    readonly useScriptSnapchatPixel: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptSnapchatPixel']>
    readonly useScriptStripe: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptStripe']>
    readonly useScriptTriggerConsent: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptTriggerConsent']>
    readonly useScriptTriggerElement: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptTriggerElement']>
    readonly useScriptUmamiAnalytics: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptUmamiAnalytics']>
    readonly useScriptVimeoPlayer: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptVimeoPlayer']>
    readonly useScriptXPixel: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptXPixel']>
    readonly useScriptYouTubePlayer: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/script-stubs')['useScriptYouTubePlayer']>
    readonly useSeoMeta: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head')['useSeoMeta']>
    readonly useServerHead: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head')['useServerHead']>
    readonly useServerHeadSafe: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head')['useServerHeadSafe']>
    readonly useServerSeoMeta: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/head')['useServerSeoMeta']>
    readonly useShadowRoot: UnwrapRef<typeof import('vue')['useShadowRoot']>
    readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
    readonly useState: UnwrapRef<typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/state')['useState']>
    readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']>
    readonly useTransitionState: UnwrapRef<typeof import('vue')['useTransitionState']>
    readonly validateForm: UnwrapRef<typeof import('../../app/utils/formValidation')['validateForm']>
    readonly watch: UnwrapRef<typeof import('vue')['watch']>
    readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
    readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
    readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
    readonly withCtx: UnwrapRef<typeof import('vue')['withCtx']>
    readonly withDirectives: UnwrapRef<typeof import('vue')['withDirectives']>
    readonly withKeys: UnwrapRef<typeof import('vue')['withKeys']>
    readonly withMemo: UnwrapRef<typeof import('vue')['withMemo']>
    readonly withModifiers: UnwrapRef<typeof import('vue')['withModifiers']>
    readonly withScopeId: UnwrapRef<typeof import('vue')['withScopeId']>
  }
}
```

---

## .nuxt/types/layouts.d.ts

```ts
import type { ComputedRef, MaybeRef } from 'vue'
declare module 'nuxt/app' {
  interface NuxtLayouts {
}
  export type LayoutKey = keyof NuxtLayouts extends never ? string : keyof NuxtLayouts
  interface PageMeta {
    layout?: MaybeRef<LayoutKey | false> | ComputedRef<LayoutKey | false>
  }
}
```

---

## .nuxt/types/middleware.d.ts

```ts
import type { NavigationGuard } from 'vue-router'
export type MiddlewareKey = "auth"
declare module 'nuxt/app' {
  interface PageMeta {
    middleware?: MiddlewareKey | NavigationGuard | Array<MiddlewareKey | NavigationGuard>
  }
}
```

---

## .nuxt/types/modules.d.ts

```ts
import { NuxtModule, ModuleDependencyMeta } from '@nuxt/schema'
declare module '@nuxt/schema' {
  interface ModuleDependencies {
    ["@nuxt/devtools"]?: ModuleDependencyMeta<typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
    ["@nuxt/telemetry"]?: ModuleDependencyMeta<typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
  }
  interface NuxtOptions {
    /**
     * Configuration for `@nuxt/devtools`
     */
    ["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
    /**
     * Configuration for `@nuxt/telemetry`
     */
    ["telemetry"]: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
  }
  interface NuxtConfig {
    /**
     * Configuration for `@nuxt/devtools`
     */
    ["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
    /**
     * Configuration for `@nuxt/telemetry`
     */
    ["telemetry"]?: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
    modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>] | ["@nuxt/telemetry", Exclude<NuxtConfig["telemetry"], boolean>])[],
  }
}
declare module 'nuxt/schema' {
  interface ModuleDependencies {
    ["@nuxt/devtools"]?: ModuleDependencyMeta<typeof import("@nuxt/devtools").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
    ["@nuxt/telemetry"]?: ModuleDependencyMeta<typeof import("@nuxt/telemetry").default extends NuxtModule<infer O> ? O | false : Record<string, unknown>> | false
  }
  interface NuxtOptions {
    /**
     * Configuration for `@nuxt/devtools`
     * @see https://www.npmjs.com/package/@nuxt/devtools
     */
    ["devtools"]: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
    /**
     * Configuration for `@nuxt/telemetry`
     * @see https://www.npmjs.com/package/@nuxt/telemetry
     */
    ["telemetry"]: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? O | false : Record<string, any> | false
  }
  interface NuxtConfig {
    /**
     * Configuration for `@nuxt/devtools`
     * @see https://www.npmjs.com/package/@nuxt/devtools
     */
    ["devtools"]?: typeof import("@nuxt/devtools").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
    /**
     * Configuration for `@nuxt/telemetry`
     * @see https://www.npmjs.com/package/@nuxt/telemetry
     */
    ["telemetry"]?: typeof import("@nuxt/telemetry").default extends NuxtModule<infer O, unknown, boolean> ? Partial<O> | false : Record<string, any> | false
    modules?: (undefined | null | false | NuxtModule<any> | string | [NuxtModule | string, Record<string, any>] | ["@nuxt/devtools", Exclude<NuxtConfig["devtools"], boolean>] | ["@nuxt/telemetry", Exclude<NuxtConfig["telemetry"], boolean>])[],
  }
}
```

---

## .nuxt/types/nitro-config.d.ts

```ts
// Generated by nitro

// App Config
import type { Defu } from 'defu'



type UserAppConfig = Defu<{}, []>

declare module "nitropack/types" {
  interface AppConfig extends UserAppConfig {}

}
export {}
```

---

## .nuxt/types/nitro-imports.d.ts

```ts
declare global {
  const H3Error: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').H3Error
  const H3Event: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').H3Event
  const __buildAssetsURL: typeof import('../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths').buildAssetsURL
  const __publicAssetsURL: typeof import('../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths').publicAssetsURL
  const appendCorsHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendCorsHeaders
  const appendCorsPreflightHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendCorsPreflightHeaders
  const appendHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendHeader
  const appendHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendHeaders
  const appendResponseHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendResponseHeader
  const appendResponseHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').appendResponseHeaders
  const assertMethod: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').assertMethod
  const cachedEventHandler: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache').cachedEventHandler
  const cachedFunction: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache').cachedFunction
  const callNodeListener: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').callNodeListener
  const clearResponseHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').clearResponseHeaders
  const clearSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').clearSession
  const createApp: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createApp
  const createAppEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createAppEventHandler
  const createError: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createError
  const createEvent: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createEvent
  const createEventStream: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createEventStream
  const createRouter: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').createRouter
  const defaultContentType: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defaultContentType
  const defineAppConfig: typeof import('../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/config').defineAppConfig
  const defineCachedEventHandler: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache').defineCachedEventHandler
  const defineCachedFunction: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache').defineCachedFunction
  const defineEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineEventHandler
  const defineLazyEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineLazyEventHandler
  const defineNitroErrorHandler: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/error/utils').defineNitroErrorHandler
  const defineNitroPlugin: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/plugin').defineNitroPlugin
  const defineNodeListener: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineNodeListener
  const defineNodeMiddleware: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineNodeMiddleware
  const defineRenderHandler: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/renderer').defineRenderHandler
  const defineRequestMiddleware: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineRequestMiddleware
  const defineResponseMiddleware: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineResponseMiddleware
  const defineRouteMeta: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/meta').defineRouteMeta
  const defineTask: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/task').defineTask
  const defineWebSocket: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineWebSocket
  const defineWebSocketHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').defineWebSocketHandler
  const deleteCookie: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').deleteCookie
  const dynamicEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').dynamicEventHandler
  const eventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').eventHandler
  const fetchWithEvent: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').fetchWithEvent
  const fromNodeMiddleware: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').fromNodeMiddleware
  const fromPlainHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').fromPlainHandler
  const fromWebHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').fromWebHandler
  const getCookie: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getCookie
  const getHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getHeader
  const getHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getHeaders
  const getMethod: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getMethod
  const getOrCreateUser: typeof import('../../server/utils/users').getOrCreateUser
  const getProxyRequestHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getProxyRequestHeaders
  const getQuery: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getQuery
  const getRequestFingerprint: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestFingerprint
  const getRequestHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestHeader
  const getRequestHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestHeaders
  const getRequestHost: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestHost
  const getRequestIP: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestIP
  const getRequestPath: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestPath
  const getRequestProtocol: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestProtocol
  const getRequestURL: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestURL
  const getRequestWebStream: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRequestWebStream
  const getResponseHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getResponseHeader
  const getResponseHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getResponseHeaders
  const getResponseStatus: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getResponseStatus
  const getResponseStatusText: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getResponseStatusText
  const getRouteRules: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/route-rules').getRouteRules
  const getRouterParam: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRouterParam
  const getRouterParams: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getRouterParams
  const getSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getSession
  const getValidatedQuery: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getValidatedQuery
  const getValidatedRouterParams: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').getValidatedRouterParams
  const handleCacheHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').handleCacheHeaders
  const handleCors: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').handleCors
  const incrementBurritoConsiderations: typeof import('../../server/utils/users').incrementBurritoConsiderations
  const isCorsOriginAllowed: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isCorsOriginAllowed
  const isError: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isError
  const isEvent: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isEvent
  const isEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isEventHandler
  const isMethod: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isMethod
  const isPreflightRequest: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isPreflightRequest
  const isStream: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isStream
  const isWebResponse: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').isWebResponse
  const lazyEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').lazyEventHandler
  const nitroPlugin: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/plugin').nitroPlugin
  const parseCookies: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').parseCookies
  const promisifyNodeListener: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').promisifyNodeListener
  const proxyRequest: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').proxyRequest
  const readBody: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readBody
  const readFormData: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readFormData
  const readMultipartFormData: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readMultipartFormData
  const readRawBody: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readRawBody
  const readValidatedBody: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').readValidatedBody
  const removeResponseHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').removeResponseHeader
  const runTask: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/task').runTask
  const sanitizeStatusCode: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sanitizeStatusCode
  const sanitizeStatusMessage: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sanitizeStatusMessage
  const sealSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sealSession
  const send: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').send
  const sendError: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendError
  const sendIterable: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendIterable
  const sendNoContent: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendNoContent
  const sendProxy: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendProxy
  const sendRedirect: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendRedirect
  const sendStream: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendStream
  const sendWebResponse: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').sendWebResponse
  const serveStatic: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').serveStatic
  const setCookie: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setCookie
  const setHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setHeader
  const setHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setHeaders
  const setResponseHeader: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setResponseHeader
  const setResponseHeaders: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setResponseHeaders
  const setResponseStatus: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').setResponseStatus
  const splitCookiesString: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').splitCookiesString
  const toEventHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toEventHandler
  const toNodeListener: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toNodeListener
  const toPlainHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toPlainHandler
  const toWebHandler: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toWebHandler
  const toWebRequest: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').toWebRequest
  const unsealSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').unsealSession
  const updateSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').updateSession
  const useAppConfig: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/config').useAppConfig
  const useBase: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').useBase
  const useEvent: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/context').useEvent
  const useNitroApp: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/app').useNitroApp
  const useRuntimeConfig: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/config').useRuntimeConfig
  const useServerAmplitude: typeof import('../../server/utils/amplitude').useServerAmplitude
  const useSession: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').useSession
  const useStorage: typeof import('../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/storage').useStorage
  const users: typeof import('../../server/utils/users').users
  const writeEarlyHints: typeof import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3').writeEarlyHints
}
// for type re-export
declare global {
  // @ts-ignore
  export type { EventHandler, EventHandlerRequest, EventHandlerResponse, EventHandlerObject, H3EventContext } from '../../node_modules/.pnpm/h3@1.15.5/node_modules/h3'
  import('../../node_modules/.pnpm/h3@1.15.5/node_modules/h3')
}
export { H3Event, H3Error, appendCorsHeaders, appendCorsPreflightHeaders, appendHeader, appendHeaders, appendResponseHeader, appendResponseHeaders, assertMethod, callNodeListener, clearResponseHeaders, clearSession, createApp, createAppEventHandler, createError, createEvent, createEventStream, createRouter, defaultContentType, defineEventHandler, defineLazyEventHandler, defineNodeListener, defineNodeMiddleware, defineRequestMiddleware, defineResponseMiddleware, defineWebSocket, defineWebSocketHandler, deleteCookie, dynamicEventHandler, eventHandler, fetchWithEvent, fromNodeMiddleware, fromPlainHandler, fromWebHandler, getCookie, getHeader, getHeaders, getMethod, getProxyRequestHeaders, getQuery, getRequestFingerprint, getRequestHeader, getRequestHeaders, getRequestHost, getRequestIP, getRequestPath, getRequestProtocol, getRequestURL, getRequestWebStream, getResponseHeader, getResponseHeaders, getResponseStatus, getResponseStatusText, getRouterParam, getRouterParams, getSession, getValidatedQuery, getValidatedRouterParams, handleCacheHeaders, handleCors, isCorsOriginAllowed, isError, isEvent, isEventHandler, isMethod, isPreflightRequest, isStream, isWebResponse, lazyEventHandler, parseCookies, promisifyNodeListener, proxyRequest, readBody, readFormData, readMultipartFormData, readRawBody, readValidatedBody, removeResponseHeader, sanitizeStatusCode, sanitizeStatusMessage, sealSession, send, sendError, sendIterable, sendNoContent, sendProxy, sendRedirect, sendStream, sendWebResponse, serveStatic, setCookie, setHeader, setHeaders, setResponseHeader, setResponseHeaders, setResponseStatus, splitCookiesString, toEventHandler, toNodeListener, toPlainHandler, toWebHandler, toWebRequest, unsealSession, updateSession, useBase, useSession, writeEarlyHints } from 'h3';
export { useNitroApp } from 'nitropack/runtime/internal/app';
export { useRuntimeConfig, useAppConfig } from 'nitropack/runtime/internal/config';
export { defineNitroPlugin, nitroPlugin } from 'nitropack/runtime/internal/plugin';
export { defineCachedFunction, defineCachedEventHandler, cachedFunction, cachedEventHandler } from 'nitropack/runtime/internal/cache';
export { useStorage } from 'nitropack/runtime/internal/storage';
export { defineRenderHandler } from 'nitropack/runtime/internal/renderer';
export { defineRouteMeta } from 'nitropack/runtime/internal/meta';
export { getRouteRules } from 'nitropack/runtime/internal/route-rules';
export { useEvent } from 'nitropack/runtime/internal/context';
export { defineTask, runTask } from 'nitropack/runtime/internal/task';
export { defineNitroErrorHandler } from 'nitropack/runtime/internal/error/utils';
export { buildAssetsURL as __buildAssetsURL, publicAssetsURL as __publicAssetsURL } from '/Users/kaia/code/amp/context-hub/basics/nuxt-4/node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths';
export { defineAppConfig } from '/Users/kaia/code/amp/context-hub/basics/nuxt-4/node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/config';
export { useServerAmplitude } from '/Users/kaia/code/amp/context-hub/basics/nuxt-4/server/utils/amplitude';
export { users, getOrCreateUser, incrementBurritoConsiderations } from '/Users/kaia/code/amp/context-hub/basics/nuxt-4/server/utils/users';
```

---

## .nuxt/types/nitro-layouts.d.ts

```ts
export type LayoutKey = string
declare module 'nitropack' {
  interface NitroRouteConfig {
    appLayout?: LayoutKey | false
  }
  interface NitroRouteRules {
    appLayout?: LayoutKey | false
  }
}
declare module 'nitropack/types' {
  interface NitroRouteConfig {
    appLayout?: LayoutKey | false
  }
  interface NitroRouteRules {
    appLayout?: LayoutKey | false
  }
}
```

---

## .nuxt/types/nitro-middleware.d.ts

```ts
export type MiddlewareKey = "auth"
declare module 'nitropack/types' {
  interface NitroRouteConfig {
    appMiddleware?: MiddlewareKey | MiddlewareKey[] | Record<MiddlewareKey, boolean>
  }
}
declare module 'nitropack' {
  interface NitroRouteConfig {
    appMiddleware?: MiddlewareKey | MiddlewareKey[] | Record<MiddlewareKey, boolean>
  }
}
```

---

## .nuxt/types/nitro-nuxt.d.ts

```ts

/// <reference path="nitro-layouts.d.ts" />
/// <reference path="app.config.d.ts" />
/// <reference path="runtime-config.d.ts" />
/// <reference types="/Users/kaia/code/amp/context-hub/basics/nuxt-4/node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/index.mjs" />
/// <reference path="nitro-middleware.d.ts" />

import type { RuntimeConfig } from 'nuxt/schema'
import type { H3Event } from 'h3'
import type { LogObject } from 'consola'
import type { NuxtIslandContext, NuxtIslandResponse, NuxtRenderHTMLContext } from 'nuxt/app'

declare module 'nitropack' {
  interface NitroRuntimeConfigApp {
    buildAssetsDir: string
    cdnURL: string
  }
  interface NitroRuntimeConfig extends RuntimeConfig {}
  interface NitroRouteConfig {
    ssr?: boolean
    noScripts?: boolean
    /** @deprecated Use `noScripts` instead */
    experimentalNoScripts?: boolean
  }
  interface NitroRouteRules {
    ssr?: boolean
    noScripts?: boolean
    /** @deprecated Use `noScripts` instead */
    experimentalNoScripts?: boolean
    appMiddleware?: Record<string, boolean>
    appLayout?: string | false
  }
  interface NitroRuntimeHooks {
    'dev:ssr-logs': (ctx: { logs: LogObject[], path: string }) => void | Promise<void>
    'render:html': (htmlContext: NuxtRenderHTMLContext, context: { event: H3Event }) => void | Promise<void>
    'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
  }
}
declare module 'nitropack/types' {
  interface NitroRuntimeConfigApp {
    buildAssetsDir: string
    cdnURL: string
  }
  interface NitroRuntimeConfig extends RuntimeConfig {}
  interface NitroRouteConfig {
    ssr?: boolean
    noScripts?: boolean
    /** @deprecated Use `noScripts` instead */
    experimentalNoScripts?: boolean
  }
  interface NitroRouteRules {
    ssr?: boolean
    noScripts?: boolean
    /** @deprecated Use `noScripts` instead */
    experimentalNoScripts?: boolean
    appMiddleware?: Record<string, boolean>
    appLayout?: string | false
  }
  interface NitroRuntimeHooks {
    'dev:ssr-logs': (ctx: { logs: LogObject[], path: string }) => void | Promise<void>
    'render:html': (htmlContext: NuxtRenderHTMLContext, context: { event: H3Event }) => void | Promise<void>
    'render:island': (islandResponse: NuxtIslandResponse, context: { event: H3Event, islandContext: NuxtIslandContext }) => void | Promise<void>
  }
}

```

---

## .nuxt/types/nitro-routes.d.ts

```ts
// Generated by nitro
import type { Serialize, Simplify } from "nitropack/types";
declare module "nitropack/types" {
  type Awaited<T> = T extends PromiseLike<infer U> ? Awaited<U> : T
  interface InternalApi {
    '/api/auth/login': {
      'post': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/api/auth/login.post').default>>>>
    }
    '/api/burrito/consider': {
      'post': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/api/burrito/consider.post').default>>>>
    }
    '/__nuxt_error': {
      'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/handlers/renderer').default>>>>
    }
    '/__nuxt_island/**': {
      'default': Simplify<Serialize<Awaited<ReturnType<typeof import('../../server/#internal/nuxt/island-renderer').default>>>>
    }
  }
}
export {}
```

---

## .nuxt/types/nitro.d.ts

```ts
/// <reference path="./nitro-routes.d.ts" />
/// <reference path="./nitro-config.d.ts" />
/// <reference path="./nitro-imports.d.ts" />
```

---

## .nuxt/types/plugins.d.ts

```ts
// Generated by Nuxt'
import type { Plugin } from '#app'

type Decorate<T extends Record<string, any>> = { [K in keyof T as K extends string ? `$${K}` : never]: T[K] }

type InjectionType<A extends Plugin> = A extends {default: Plugin<infer T>} ? Decorate<T> : unknown

type NuxtAppInjections = 
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/plugins/revive-payload.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/head/runtime/plugins/unhead.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/pages/runtime/plugins/router.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/plugins/payload.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/plugins/revive-payload.server.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/plugins/chunk-reload.client.js")> &
  InjectionType<typeof import("../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/pages/runtime/plugins/prefetch.client.js")> &
  InjectionType<typeof import("../../app/plugins/amplitude.client")>

declare module '#app' {
  interface NuxtApp extends NuxtAppInjections { }

  interface NuxtAppLiterals {
    pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:router' | 'nuxt:payload' | 'nuxt:revive-payload:server' | 'nuxt:chunk-reload' | 'nuxt:global-components' | 'nuxt:prefetch'
  }
}

declare module 'vue' {
  interface ComponentCustomProperties extends NuxtAppInjections { }
}

export { }

```

---

## .nuxt/types/runtime-config.d.ts

```ts
import { RuntimeConfig as UserRuntimeConfig, PublicRuntimeConfig as UserPublicRuntimeConfig } from 'nuxt/schema'
  interface SharedRuntimeConfig {
   app: {
      buildId: string,

      baseURL: string,

      buildAssetsDir: string,

      cdnURL: string,
   },

   nitro: {
      envPrefix: string,
   },
  }
  interface SharedPublicRuntimeConfig {
   amplitudeApiKey: string,
  }
declare module '@nuxt/schema' {
  interface RuntimeConfig extends UserRuntimeConfig {}
  interface PublicRuntimeConfig extends UserPublicRuntimeConfig {}
}
declare module 'nuxt/schema' {
  interface RuntimeConfig extends SharedRuntimeConfig {}
  interface PublicRuntimeConfig extends SharedPublicRuntimeConfig {}
}
declare module 'vue' {
        interface ComponentCustomProperties {
          $config: UserRuntimeConfig
        }
      }
```

---

## .nuxt/types/shared-imports.d.ts

```ts
// Generated by auto imports
export {}
declare global {
  const createError: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/error').createError
  const defineAppConfig: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt').defineAppConfig
  const getRouteRules: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/manifest').getRouteRules
  const setResponseStatus: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/composables/ssr').setResponseStatus
  const useAppConfig: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/config').useAppConfig
  const useRuntimeConfig: typeof import('../../node_modules/.pnpm/nuxt@4.3.0_@parcel+watcher@2.5.6_@types+node@25.2.0_@vue+compiler-sfc@3.5.27_cac@6.7.14_10b177dc1192212ed323bb4d3b5c9b60/node_modules/nuxt/dist/app/nuxt').useRuntimeConfig
}
```

---

## .output/public/_nuxt/BaEVHuX6.js

```js
import{_ as o,o as s,c as a,a as t,t as r}from"./BpsV6fwO.js";import{u as i}from"./Cvlh8XCj.js";const u={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},l={class:"max-w-520px text-center"},c=["textContent"],d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:500},statusText:{type:String,default:"Internal server error"},description:{type:String,default:"This page is temporarily unavailable."},refresh:{type:String,default:"Refresh this page"}},setup(e){const n=e;return i({title:`${n.status} - ${n.statusText} | ${n.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(h,m)=>(s(),a("div",u,[t("div",l,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:r(e.status)},null,8,c),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:r(e.statusText)},null,8,d),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:r(e.description)},null,8,p)])]))}},x=o(f,[["__scopeId","data-v-d114bb79"]]);export{x as default};

```

---

## .output/public/_nuxt/BpsV6fwO.js

```js
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CaxW3SQp.js","./Cvlh8XCj.js","./error-404.DyKsVtYE.css","./BaEVHuX6.js","./error-500.D-HKo5t7.css"])))=>i.map(i=>d[i]);
function ey(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function Yu(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const xe={},Cn=[],Yt=()=>{},Sh=()=>!1,Yi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ju=e=>e.startsWith("onUpdate:"),Ye=Object.assign,Qu=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},ty=Object.prototype.hasOwnProperty,Ce=(e,t)=>ty.call(e,t),ve=Array.isArray,kn=e=>Ji(e)==="[object Map]",wh=e=>Ji(e)==="[object Set]",ry=e=>Ji(e)==="[object RegExp]",he=e=>typeof e=="function",He=e=>typeof e=="string",Ur=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",Th=e=>(De(e)||he(e))&&he(e.then)&&he(e.catch),Ah=Object.prototype.toString,Ji=e=>Ah.call(e),ny=e=>Ji(e).slice(8,-1),Ih=e=>Ji(e)==="[object Object]",_s=e=>He(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zr=Yu(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ss=e=>{const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))},iy=/-\w/g,Lt=Ss(e=>e.replace(iy,t=>t.slice(1).toUpperCase())),oy=/\B([A-Z])/g,cn=Ss(e=>e.replace(oy,"-$1").toLowerCase()),ws=Ss(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ks=Ss(e=>e?`on${ws(e)}`:""),Lr=(e,t)=>!Object.is(e,t),Rn=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Ch=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Zu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},kh=e=>{const t=He(e)?Number(e):NaN;return isNaN(t)?e:t};let Jl;const Ts=()=>Jl||(Jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function As(e){if(ve(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],i=He(n)?ly(n):As(n);if(i)for(const o in i)t[o]=i[o]}return t}else if(He(e)||De(e))return e}const sy=/;(?![^(]*\))/g,ay=/:([^]+)/,uy=/\/\*[^]*?\*\//g;function ly(e){const t={};return e.replace(uy,"").split(sy).forEach(r=>{if(r){const n=r.split(ay);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Is(e){let t="";if(He(e))t=e;else if(ve(e))for(let r=0;r<e.length;r++){const n=Is(e[r]);n&&(t+=n+" ")}else if(De(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function cy(e){if(!e)return null;let{class:t,style:r}=e;return t&&!He(t)&&(e.class=Is(t)),r&&(e.style=As(r)),e}const fy="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dy=Yu(fy);function Rh(e){return!!e||e===""}const Ph=e=>!!(e&&e.__v_isRef===!0),Oh=e=>He(e)?e:e==null?"":ve(e)||De(e)&&(e.toString===Ah||!he(e.toString))?Ph(e)?Oh(e.value):JSON.stringify(e,xh,2):String(e),xh=(e,t)=>Ph(t)?xh(e,t.value):kn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],o)=>(r[zs(n,o)+" =>"]=i,r),{})}:wh(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>zs(r))}:Ur(t)?zs(t):De(t)&&!ve(t)&&!Ih(t)?String(t):t,zs=(e,t="")=>{var r;return Ur(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};let mt;class Nh{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=mt,!t&&mt&&(this.index=(mt.scopes||(mt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].pause();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t<r;t++)this.scopes[t].resume();for(t=0,r=this.effects.length;t<r;t++)this.effects[t].resume()}}run(t){if(this._active){const r=mt;try{return mt=this,t()}finally{mt=r}}}on(){++this._on===1&&(this.prevScope=mt,mt=this)}off(){this._on>0&&--this._on===0&&(mt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(this.effects.length=0,r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.cleanups.length=0,this.scopes){for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function hy(e){return new Nh(e)}function Lh(){return mt}let Le;const Xs=new WeakSet;class Mh{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,mt&&mt.active&&mt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Xs.has(this)&&(Xs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Uh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ql(this),Fh(this);const t=Le,r=jt;Le=this,jt=!0;try{return this.fn()}finally{Hh(this),Le=t,jt=r,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rl(t);this.deps=this.depsTail=void 0,Ql(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Xs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ja(this)&&this.run()}get dirty(){return ja(this)}}let Dh=0,wi,Ti;function Uh(e,t=!1){if(e.flags|=8,t){e.next=Ti,Ti=e;return}e.next=wi,wi=e}function el(){Dh++}function tl(){if(--Dh>0)return;if(Ti){let t=Ti;for(Ti=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;wi;){let t=wi;for(wi=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Fh(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Hh(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),rl(n),vy(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function ja(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Bh(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Bh(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Hi)||(e.globalVersion=Hi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ja(e))))return;e.flags|=2;const t=e.dep,r=Le,n=jt;Le=e,jt=!0;try{Fh(e);const i=e.fn(e._value);(t.version===0||Lr(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Le=r,jt=n,Hh(e),e.flags&=-3}}function rl(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)rl(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function vy(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let jt=!0;const jh=[];function vr(){jh.push(jt),jt=!1}function pr(){const e=jh.pop();jt=e===void 0?!0:e}function Ql(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Le;Le=void 0;try{t()}finally{Le=r}}}let Hi=0;class py{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class nl{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Le||!jt||Le===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Le)r=this.activeLink=new py(Le,this),Le.deps?(r.prevDep=Le.depsTail,Le.depsTail.nextDep=r,Le.depsTail=r):Le.deps=Le.depsTail=r,qh(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Le.depsTail,r.nextDep=void 0,Le.depsTail.nextDep=r,Le.depsTail=r,Le.deps===r&&(Le.deps=n)}return r}trigger(t){this.version++,Hi++,this.notify(t)}notify(t){el();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{tl()}}}function qh(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)qh(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Qo=new WeakMap,en=Symbol(""),qa=Symbol(""),Bi=Symbol("");function st(e,t,r){if(jt&&Le){let n=Qo.get(e);n||Qo.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new nl),i.map=n,i.key=r),i.track()}}function cr(e,t,r,n,i,o){const s=Qo.get(e);if(!s){Hi++;return}const a=u=>{u&&u.trigger()};if(el(),t==="clear")s.forEach(a);else{const u=ve(e),c=u&&_s(r);if(u&&r==="length"){const l=Number(n);s.forEach((f,d)=>{(d==="length"||d===Bi||!Ur(d)&&d>=l)&&a(f)})}else switch((r!==void 0||s.has(void 0))&&a(s.get(r)),c&&a(s.get(Bi)),t){case"add":u?c&&a(s.get("length")):(a(s.get(en)),kn(e)&&a(s.get(qa)));break;case"delete":u||(a(s.get(en)),kn(e)&&a(s.get(qa)));break;case"set":kn(e)&&a(s.get(en));break}}tl()}function gy(e,t){const r=Qo.get(e);return r&&r.get(t)}function vn(e){const t=Ae(e);return t===e?t:(st(t,"iterate",Bi),Ot(e)?t:t.map(mr))}function il(e){return st(e=Ae(e),"iterate",Bi),e}function wr(e,t){return gr(e)?ji(tn(e)?mr(t):t):mr(t)}const my={__proto__:null,[Symbol.iterator](){return Ys(this,Symbol.iterator,e=>wr(this,e))},concat(...e){return vn(this).concat(...e.map(t=>ve(t)?vn(t):t))},entries(){return Ys(this,"entries",e=>(e[1]=wr(this,e[1]),e))},every(e,t){return rr(this,"every",e,t,void 0,arguments)},filter(e,t){return rr(this,"filter",e,t,r=>r.map(n=>wr(this,n)),arguments)},find(e,t){return rr(this,"find",e,t,r=>wr(this,r),arguments)},findIndex(e,t){return rr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rr(this,"findLast",e,t,r=>wr(this,r),arguments)},findLastIndex(e,t){return rr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rr(this,"forEach",e,t,void 0,arguments)},includes(...e){return Js(this,"includes",e)},indexOf(...e){return Js(this,"indexOf",e)},join(e){return vn(this).join(e)},lastIndexOf(...e){return Js(this,"lastIndexOf",e)},map(e,t){return rr(this,"map",e,t,void 0,arguments)},pop(){return ii(this,"pop")},push(...e){return ii(this,"push",e)},reduce(e,...t){return Zl(this,"reduce",e,t)},reduceRight(e,...t){return Zl(this,"reduceRight",e,t)},shift(){return ii(this,"shift")},some(e,t){return rr(this,"some",e,t,void 0,arguments)},splice(...e){return ii(this,"splice",e)},toReversed(){return vn(this).toReversed()},toSorted(e){return vn(this).toSorted(e)},toSpliced(...e){return vn(this).toSpliced(...e)},unshift(...e){return ii(this,"unshift",e)},values(){return Ys(this,"values",e=>wr(this,e))}};function Ys(e,t,r){const n=il(e),i=n[t]();return n!==e&&!Ot(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=r(o.value)),o}),i}const yy=Array.prototype;function rr(e,t,r,n,i,o){const s=il(e),a=s!==e&&!Ot(e),u=s[t];if(u!==yy[t]){const f=u.apply(e,o);return a?mr(f):f}let c=r;s!==e&&(a?c=function(f,d){return r.call(this,wr(e,f),d,e)}:r.length>2&&(c=function(f,d){return r.call(this,f,d,e)}));const l=u.call(s,c,n);return a&&i?i(l):l}function Zl(e,t,r,n){const i=il(e);let o=r;return i!==e&&(Ot(e)?r.length>3&&(o=function(s,a,u){return r.call(this,s,a,u,e)}):o=function(s,a,u){return r.call(this,s,wr(e,a),u,e)}),i[t](o,...n)}function Js(e,t,r){const n=Ae(e);st(n,"iterate",Bi);const i=n[t](...r);return(i===-1||i===!1)&&Cs(r[0])?(r[0]=Ae(r[0]),n[t](...r)):i}function ii(e,t,r=[]){vr(),el();const n=Ae(e)[t].apply(e,r);return tl(),pr(),n}const by=Yu("__proto__,__v_isRef,__isVue"),Vh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ur));function Ey(e){Ur(e)||(e=String(e));const t=Ae(this);return st(t,"has",e),t.hasOwnProperty(e)}class $h{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?Py:zh:o?Kh:Gh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=ve(t);if(!i){let u;if(s&&(u=my[r]))return u;if(r==="hasOwnProperty")return Ey}const a=Reflect.get(t,r,qe(t)?t:n);if((Ur(r)?Vh.has(r):by(r))||(i||st(t,"get",r),o))return a;if(qe(a)){const u=s&&_s(r)?a:a.value;return i&&De(u)?$a(u):u}return De(a)?i?$a(a):Fr(a):a}}class Wh extends $h{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];const s=ve(t)&&_s(r);if(!this._isShallow){const c=gr(o);if(!Ot(n)&&!gr(n)&&(o=Ae(o),n=Ae(n)),!s&&qe(o)&&!qe(n))return c||(o.value=n),!0}const a=s?Number(r)<t.length:Ce(t,r),u=Reflect.set(t,r,n,qe(t)?t:i);return t===Ae(i)&&(a?Lr(n,o)&&cr(t,"set",r,n):cr(t,"add",r,n)),u}deleteProperty(t,r){const n=Ce(t,r);t[r];const i=Reflect.deleteProperty(t,r);return i&&n&&cr(t,"delete",r,void 0),i}has(t,r){const n=Reflect.has(t,r);return(!Ur(r)||!Vh.has(r))&&st(t,"has",r),n}ownKeys(t){return st(t,"iterate",ve(t)?"length":en),Reflect.ownKeys(t)}}class _y extends $h{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const Sy=new Wh,wy=new _y,Ty=new Wh(!0);const Va=e=>e,so=e=>Reflect.getPrototypeOf(e);function Ay(e,t,r){return function(...n){const i=this.__v_raw,o=Ae(i),s=kn(o),a=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,c=i[e](...n),l=r?Va:t?ji:mr;return!t&&st(o,"iterate",u?qa:en),Ye(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[l(f[0]),l(f[1])]:l(f),done:d}}})}}function ao(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Iy(e,t){const r={get(i){const o=this.__v_raw,s=Ae(o),a=Ae(i);e||(Lr(i,a)&&st(s,"get",i),st(s,"get",a));const{has:u}=so(s),c=t?Va:e?ji:mr;if(u.call(s,i))return c(o.get(i));if(u.call(s,a))return c(o.get(a));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!e&&st(Ae(i),"iterate",en),i.size},has(i){const o=this.__v_raw,s=Ae(o),a=Ae(i);return e||(Lr(i,a)&&st(s,"has",i),st(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const s=this,a=s.__v_raw,u=Ae(a),c=t?Va:e?ji:mr;return!e&&st(u,"iterate",en),a.forEach((l,f)=>i.call(o,c(l),c(f),s))}};return Ye(r,e?{add:ao("add"),set:ao("set"),delete:ao("delete"),clear:ao("clear")}:{add(i){!t&&!Ot(i)&&!gr(i)&&(i=Ae(i));const o=Ae(this);return so(o).has.call(o,i)||(o.add(i),cr(o,"add",i,i)),this},set(i,o){!t&&!Ot(o)&&!gr(o)&&(o=Ae(o));const s=Ae(this),{has:a,get:u}=so(s);let c=a.call(s,i);c||(i=Ae(i),c=a.call(s,i));const l=u.call(s,i);return s.set(i,o),c?Lr(o,l)&&cr(s,"set",i,o):cr(s,"add",i,o),this},delete(i){const o=Ae(this),{has:s,get:a}=so(o);let u=s.call(o,i);u||(i=Ae(i),u=s.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return u&&cr(o,"delete",i,void 0),c},clear(){const i=Ae(this),o=i.size!==0,s=i.clear();return o&&cr(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Ay(i,e,t)}),r}function ol(e,t){const r=Iy(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Ce(r,i)&&i in n?r:n,i,o)}const Cy={get:ol(!1,!1)},ky={get:ol(!1,!0)},Ry={get:ol(!0,!1)};const Gh=new WeakMap,Kh=new WeakMap,zh=new WeakMap,Py=new WeakMap;function Oy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xy(e){return e.__v_skip||!Object.isExtensible(e)?0:Oy(ny(e))}function Fr(e){return gr(e)?e:sl(e,!1,Sy,Cy,Gh)}function dr(e){return sl(e,!1,Ty,ky,Kh)}function $a(e){return sl(e,!0,wy,Ry,zh)}function sl(e,t,r,n,i){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=xy(e);if(o===0)return e;const s=i.get(e);if(s)return s;const a=new Proxy(e,o===2?n:r);return i.set(e,a),a}function tn(e){return gr(e)?tn(e.__v_raw):!!(e&&e.__v_isReactive)}function gr(e){return!!(e&&e.__v_isReadonly)}function Ot(e){return!!(e&&e.__v_isShallow)}function Cs(e){return e?!!e.__v_raw:!1}function Ae(e){const t=e&&e.__v_raw;return t?Ae(t):e}function Ny(e){return!Ce(e,"__v_skip")&&Object.isExtensible(e)&&Ch(e,"__v_skip",!0),e}const mr=e=>De(e)?Fr(e):e,ji=e=>De(e)?$a(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function Jt(e){return Xh(e,!1)}function Bn(e){return Xh(e,!0)}function Xh(e,t){return qe(e)?e:new Ly(e,t)}class Ly{constructor(t,r){this.dep=new nl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:Ae(t),this._value=r?t:mr(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Ot(t)||gr(t);t=n?t:Ae(t),Lr(t,r)&&(this._rawValue=t,this._value=n?t:mr(t),this.dep.trigger())}}function ke(e){return qe(e)?e.value:e}function My(e){return he(e)?e():ke(e)}const Dy={get:(e,t,r)=>t==="__v_raw"?e:ke(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return qe(i)&&!qe(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function Yh(e){return tn(e)?e:new Proxy(e,Dy)}class Uy{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=Ae(t);let i=!0,o=t;if(!ve(t)||!_s(String(r)))do i=!Cs(o)||Ot(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=ke(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&qe(this._raw[this._key])){const r=this._object[this._key];if(qe(r)){r.value=t;return}}this._object[this._key]=t}get dep(){return gy(this._raw,this._key)}}class Fy{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Jh(e,t,r){return qe(e)?e:he(e)?new Fy(e):De(e)&&arguments.length>1?Hy(e,t,r):Jt(e)}function Hy(e,t,r){return new Uy(e,t,r)}class By{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new nl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Hi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Le!==this)return Uh(this,!0),!0}get value(){const t=this.dep.track();return Bh(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function jy(e,t,r=!1){let n,i;return he(e)?n=e:(n=e.get,i=e.set),new By(n,i,r)}const uo={},Zo=new WeakMap;let Gr;function qy(e,t=!1,r=Gr){if(r){let n=Zo.get(r);n||Zo.set(r,n=[]),n.push(e)}}function Vy(e,t,r=xe){const{immediate:n,deep:i,once:o,scheduler:s,augmentJob:a,call:u}=r,c=y=>i?y:Ot(y)||i===!1||i===0?fr(y,1):fr(y);let l,f,d,h,v=!1,p=!1;if(qe(e)?(f=()=>e.value,v=Ot(e)):tn(e)?(f=()=>c(e),v=!0):ve(e)?(p=!0,v=e.some(y=>tn(y)||Ot(y)),f=()=>e.map(y=>{if(qe(y))return y.value;if(tn(y))return c(y);if(he(y))return u?u(y,2):y()})):he(e)?t?f=u?()=>u(e,2):e:f=()=>{if(d){vr();try{d()}finally{pr()}}const y=Gr;Gr=l;try{return u?u(e,3,[h]):e(h)}finally{Gr=y}}:f=Yt,t&&i){const y=f,_=i===!0?1/0:i;f=()=>fr(y(),_)}const b=Lh(),E=()=>{l.stop(),b&&b.active&&Qu(b.effects,l)};if(o&&t){const y=t;t=(..._)=>{y(..._),E()}}let m=p?new Array(e.length).fill(uo):uo;const g=y=>{if(!(!(l.flags&1)||!l.dirty&&!y))if(t){const _=l.run();if(i||v||(p?_.some((S,A)=>Lr(S,m[A])):Lr(_,m))){d&&d();const S=Gr;Gr=l;try{const A=[_,m===uo?void 0:p&&m[0]===uo?[]:m,h];m=_,u?u(t,3,A):t(...A)}finally{Gr=S}}}else l.run()};return a&&a(g),l=new Mh(f),l.scheduler=s?()=>s(g,!1):g,h=y=>qy(y,!1,l),d=l.onStop=()=>{const y=Zo.get(l);if(y){if(u)u(y,4);else for(const _ of y)_();Zo.delete(l)}},t?n?g(!0):m=l.run():s?s(g.bind(null,!0),!0):l.run(),E.pause=l.pause.bind(l),E.resume=l.resume.bind(l),E.stop=E,E}function fr(e,t=1/0,r){if(t<=0||!De(e)||e.__v_skip||(r=r||new Map,(r.get(e)||0)>=t))return e;if(r.set(e,t),t--,qe(e))fr(e.value,t,r);else if(ve(e))for(let n=0;n<e.length;n++)fr(e[n],t,r);else if(wh(e)||kn(e))e.forEach(n=>{fr(n,t,r)});else if(Ih(e)){for(const n in e)fr(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&fr(e[n],t,r)}return e}function Qi(e,t,r,n){try{return n?e(...n):e()}catch(i){Jn(i,t,r)}}function qt(e,t,r,n){if(he(e)){const i=Qi(e,t,r,n);return i&&Th(i)&&i.catch(o=>{Jn(o,t,r)}),i}if(ve(e)){const i=[];for(let o=0;o<e.length;o++)i.push(qt(e[o],t,r,n));return i}}function Jn(e,t,r,n=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||xe;if(t){let a=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${r}`;for(;a;){const l=a.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,u,c)===!1)return}a=a.parent}if(o){vr(),Qi(o,null,10,[e,u,c]),pr();return}}$y(e,r,i,n,s)}function $y(e,t,r,n=!0,i=!1){if(i)throw e;console.error(e)}const dt=[];let Gt=-1;const Pn=[];let Tr=null,bn=0;const Qh=Promise.resolve();let es=null;function qi(e){const t=es||Qh;return e?t.then(this?e.bind(this):e):t}function Wy(e){let t=Gt+1,r=dt.length;for(;t<r;){const n=t+r>>>1,i=dt[n],o=Vi(i);o<e||o===e&&i.flags&2?t=n+1:r=n}return t}function al(e){if(!(e.flags&1)){const t=Vi(e),r=dt[dt.length-1];!r||!(e.flags&2)&&t>=Vi(r)?dt.push(e):dt.splice(Wy(t),0,e),e.flags|=1,Zh()}}function Zh(){es||(es=Qh.then(ev))}function Wa(e){ve(e)?Pn.push(...e):Tr&&e.id===-1?Tr.splice(bn+1,0,e):e.flags&1||(Pn.push(e),e.flags|=1),Zh()}function ec(e,t,r=Gt+1){for(;r<dt.length;r++){const n=dt[r];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;dt.splice(r,1),r--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function ts(e){if(Pn.length){const t=[...new Set(Pn)].sort((r,n)=>Vi(r)-Vi(n));if(Pn.length=0,Tr){Tr.push(...t);return}for(Tr=t,bn=0;bn<Tr.length;bn++){const r=Tr[bn];r.flags&4&&(r.flags&=-2),r.flags&8||r(),r.flags&=-2}Tr=null,bn=0}}const Vi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ev(e){try{for(Gt=0;Gt<dt.length;Gt++){const t=dt[Gt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Qi(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Gt<dt.length;Gt++){const t=dt[Gt];t&&(t.flags&=-2)}Gt=-1,dt.length=0,ts(),es=null,(dt.length||Pn.length)&&ev()}}let At=null,tv=null;function rs(e){const t=At;return At=e,tv=e&&e.type.__scopeId||null,t}function Ai(e,t=At,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&as(-1);const o=rs(t);let s;try{s=e(...i)}finally{rs(o),n._d&&as(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function zx(e,t){if(At===null)return e;const r=xs(At),n=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,a,u=xe]=t[i];o&&(he(o)&&(o={mounted:o,updated:o}),o.deep&&fr(s),n.push({dir:o,instance:r,value:s,oldValue:void 0,arg:a,modifiers:u}))}return e}function zt(e,t,r,n){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let u=a.dir[n];u&&(vr(),qt(u,r,8,[e.el,a,e,t]),pr())}}function On(e,t){if(nt){let r=nt.provides;const n=nt.parent&&nt.parent.provides;n===r&&(r=nt.provides=Object.create(n)),r[e]=t}}function It(e,t,r=!1){const n=Zn();if(n||rn){let i=rn?rn._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return r&&he(t)?t.call(n&&n.proxy):t}}function ul(){return!!(Zn()||rn)}const Gy=Symbol.for("v-scx"),Ky=()=>It(Gy);function zy(e,t){return ll(e,null,t)}function xn(e,t,r){return ll(e,t,r)}function ll(e,t,r=xe){const{immediate:n,deep:i,flush:o,once:s}=r,a=Ye({},r),u=t&&n||!t&&o!=="post";let c;if($n){if(o==="sync"){const h=Ky();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!u){const h=()=>{};return h.stop=Yt,h.resume=Yt,h.pause=Yt,h}}const l=nt;a.call=(h,v,p)=>qt(h,l,v,p);let f=!1;o==="post"?a.scheduler=h=>{Je(h,l&&l.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,v)=>{v?h():al(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const d=Vy(e,t,a);return $n&&(c?c.push(d):u&&d()),d}function Xy(e,t,r){const n=this.proxy,i=He(e)?e.includes(".")?rv(n,e):()=>n[e]:e.bind(n,n);let o;he(t)?o=t:(o=t.handler,r=t);const s=eo(this),a=ll(i,o.bind(n),r);return s(),a}function rv(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i<r.length&&n;i++)n=n[r[i]];return n}}const Yy=Symbol("_vte"),nv=e=>e.__isTeleport,ar=Symbol("_leaveCb"),lo=Symbol("_enterCb");function Jy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Rs(()=>{e.isMounted=!0}),Qn(()=>{e.isUnmounting=!0}),e}const Ct=[Function,Array],iv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ct,onEnter:Ct,onAfterEnter:Ct,onEnterCancelled:Ct,onBeforeLeave:Ct,onLeave:Ct,onAfterLeave:Ct,onLeaveCancelled:Ct,onBeforeAppear:Ct,onAppear:Ct,onAfterAppear:Ct,onAppearCancelled:Ct},ov=e=>{const t=e.subTree;return t.component?ov(t.component):t},Qy={name:"BaseTransition",props:iv,setup(e,{slots:t}){const r=Zn(),n=Jy();return()=>{const i=t.default&&uv(t.default(),!0);if(!i||!i.length)return;const o=sv(i),s=Ae(e),{mode:a}=s;if(n.isLeaving)return Qs(o);const u=tc(o);if(!u)return Qs(o);let c=Ga(u,s,n,r,f=>c=f);u.type!==Xe&&jn(u,c);let l=r.subTree&&tc(r.subTree);if(l&&l.type!==Xe&&!Ht(l,u)&&ov(r).type!==Xe){let f=Ga(l,s,n,r);if(jn(l,f),a==="out-in"&&u.type!==Xe)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete f.afterLeave,l=void 0},Qs(o);a==="in-out"&&u.type!==Xe?f.delayLeave=(d,h,v)=>{const p=av(n,l);p[String(l.key)]=l,d[ar]=()=>{h(),d[ar]=void 0,delete c.delayedLeave,l=void 0},c.delayedLeave=()=>{v(),delete c.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return o}}};function sv(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Xe){t=r;break}}return t}const Zy=Qy;function av(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Ga(e,t,r,n,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:v,onLeaveCancelled:p,onBeforeAppear:b,onAppear:E,onAfterAppear:m,onAppearCancelled:g}=t,y=String(e.key),_=av(r,e),S=(C,R)=>{C&&qt(C,n,9,R)},A=(C,R)=>{const P=R[1];S(C,R),ve(C)?C.every(k=>k.length<=1)&&P():C.length<=1&&P()},I={mode:s,persisted:a,beforeEnter(C){let R=u;if(!r.isMounted)if(o)R=b||u;else return;C[ar]&&C[ar](!0);const P=_[y];P&&Ht(e,P)&&P.el[ar]&&P.el[ar](),S(R,[C])},enter(C){let R=c,P=l,k=f;if(!r.isMounted)if(o)R=E||c,P=m||l,k=g||f;else return;let N=!1;const $=C[lo]=ee=>{N||(N=!0,ee?S(k,[C]):S(P,[C]),I.delayedLeave&&I.delayedLeave(),C[lo]=void 0)};R?A(R,[C,$]):$()},leave(C,R){const P=String(e.key);if(C[lo]&&C[lo](!0),r.isUnmounting)return R();S(d,[C]);let k=!1;const N=C[ar]=$=>{k||(k=!0,R(),$?S(p,[C]):S(v,[C]),C[ar]=void 0,_[P]===e&&delete _[P])};_[P]=e,h?A(h,[C,N]):N()},clone(C){const R=Ga(C,t,r,n,i);return i&&i(R),R}};return I}function Qs(e){if(Zi(e))return e=yr(e),e.children=null,e}function tc(e){if(!Zi(e))return nv(e.type)&&e.children?sv(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&he(r.default))return r.default()}}function jn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,jn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function uv(e,t=!1,r){let n=[],i=0;for(let o=0;o<e.length;o++){let s=e[o];const a=r==null?s.key:String(r)+String(s.key!=null?s.key:o);s.type===ht?(s.patchFlag&128&&i++,n=n.concat(uv(s.children,t,a))):(t||s.type!==Xe)&&n.push(a!=null?yr(s,{key:a}):s)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}function fn(e,t){return he(e)?Ye({name:e.name},t,{setup:e}):e}function cl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ns=new WeakMap;function Nn(e,t,r,n,i=!1){if(ve(e)){e.forEach((v,p)=>Nn(v,t&&(ve(t)?t[p]:t),r,n,i));return}if(Mr(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Nn(e,t,r,n.component.subTree);return}const o=n.shapeFlag&4?xs(n.component):n.el,s=i?null:o,{i:a,r:u}=e,c=t&&t.r,l=a.refs===xe?a.refs={}:a.refs,f=a.setupState,d=Ae(f),h=f===xe?Sh:v=>Ce(d,v);if(c!=null&&c!==u){if(rc(t),He(c))l[c]=null,h(c)&&(f[c]=null);else if(qe(c)){c.value=null;const v=t;v.k&&(l[v.k]=null)}}if(he(u))Qi(u,a,12,[s,l]);else{const v=He(u),p=qe(u);if(v||p){const b=()=>{if(e.f){const E=v?h(u)?f[u]:l[u]:u.value;if(i)ve(E)&&Qu(E,o);else if(ve(E))E.includes(o)||E.push(o);else if(v)l[u]=[o],h(u)&&(f[u]=l[u]);else{const m=[o];u.value=m,e.k&&(l[e.k]=m)}}else v?(l[u]=s,h(u)&&(f[u]=s)):p&&(u.value=s,e.k&&(l[e.k]=s))};if(s){const E=()=>{b(),ns.delete(e)};E.id=-1,ns.set(e,E),Je(E,r)}else rc(e),b()}}}function rc(e){const t=ns.get(e);t&&(t.flags|=8,ns.delete(e))}let nc=!1;const pn=()=>{nc||(console.error("Hydration completed but contains mismatches."),nc=!0)},e0=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",t0=e=>e.namespaceURI.includes("MathML"),co=e=>{if(e.nodeType===1){if(e0(e))return"svg";if(t0(e))return"mathml"}},wn=e=>e.nodeType===8;function r0(e){const{mt:t,p:r,o:{patchProp:n,createText:i,nextSibling:o,parentNode:s,remove:a,insert:u,createComment:c}}=e,l=(g,y)=>{if(!y.hasChildNodes()){r(null,g,y),ts(),y._vnode=g;return}f(y.firstChild,g,null,null,null),ts(),y._vnode=g},f=(g,y,_,S,A,I=!1)=>{I=I||!!y.dynamicChildren;const C=wn(g)&&g.data==="[",R=()=>p(g,y,_,S,A,C),{type:P,ref:k,shapeFlag:N,patchFlag:$}=y;let ee=g.nodeType;y.el=g,$===-2&&(I=!1,y.dynamicChildren=null);let B=null;switch(P){case nn:ee!==3?y.children===""?(u(y.el=i(""),s(g),g),B=g):B=R():(g.data!==y.children&&(pn(),g.data=y.children),B=o(g));break;case Xe:m(g)?(B=o(g),E(y.el=g.content.firstChild,g,_)):ee!==8||C?B=R():B=o(g);break;case No:if(C&&(g=o(g),ee=g.nodeType),ee===1||ee===3){B=g;const z=!y.children.length;for(let K=0;K<y.staticCount;K++)z&&(y.children+=B.nodeType===1?B.outerHTML:B.data),K===y.staticCount-1&&(y.anchor=B),B=o(B);return C?o(B):B}else R();break;case ht:C?B=v(g,y,_,S,A,I):B=R();break;default:if(N&1)(ee!==1||y.type.toLowerCase()!==g.tagName.toLowerCase())&&!m(g)?B=R():B=d(g,y,_,S,A,I);else if(N&6){y.slotScopeIds=A;const z=s(g);if(C?B=b(g):wn(g)&&g.data==="teleport start"?B=b(g,g.data,"teleport end"):B=o(g),t(y,z,null,_,S,co(z),I),Mr(y)&&!y.type.__asyncResolved){let K;C?(K=Fe(ht),K.anchor=B?B.previousSibling:z.lastChild):K=g.nodeType===3?ki(""):Fe("div"),K.el=g,y.component.subTree=K}}else N&64?ee!==8?B=R():B=y.type.hydrate(g,y,_,S,A,I,e,h):N&128&&(B=y.type.hydrate(g,y,_,S,co(s(g)),A,I,e,f))}return k!=null&&Nn(k,null,S,y),B},d=(g,y,_,S,A,I)=>{I=I||!!y.dynamicChildren;const{type:C,props:R,patchFlag:P,shapeFlag:k,dirs:N,transition:$}=y,ee=C==="input"||C==="option";if(ee||P!==-1){N&&zt(y,null,_,"created");let B=!1;if(m(g)){B=Ov(null,$)&&_&&_.vnode.props&&_.vnode.props.appear;const K=g.content.firstChild;if(B){const Q=K.getAttribute("class");Q&&(K.$cls=Q),$.beforeEnter(K)}E(K,g,_),y.el=g=K}if(k&16&&!(R&&(R.innerHTML||R.textContent))){let K=h(g.firstChild,y,g,_,S,A,I);for(;K;){fo(g,1)||pn();const Q=K;K=K.nextSibling,a(Q)}}else if(k&8){let K=y.children;K[0]===`
`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(K=K.slice(1));const{textContent:Q}=g;Q!==K&&Q!==K.replace(/\r\n|\r/g,`
`)&&(fo(g,0)||pn(),g.textContent=y.children)}if(R){if(ee||!I||P&48){const K=g.tagName.includes("-");for(const Q in R)(ee&&(Q.endsWith("value")||Q==="indeterminate")||Yi(Q)&&!Zr(Q)||Q[0]==="."||K&&!Zr(Q))&&n(g,Q,null,R[Q],void 0,_)}else if(R.onClick)n(g,"onClick",null,R.onClick,void 0,_);else if(P&4&&tn(R.style))for(const K in R.style)R.style[K]}let z;(z=R&&R.onVnodeBeforeMount)&&yt(z,_,y),N&&zt(y,null,_,"beforeMount"),((z=R&&R.onVnodeMounted)||N||B)&&Uv(()=>{z&&yt(z,_,y),B&&$.enter(g),N&&zt(y,null,_,"mounted")},S)}return g.nextSibling},h=(g,y,_,S,A,I,C)=>{C=C||!!y.dynamicChildren;const R=y.children,P=R.length;for(let k=0;k<P;k++){const N=C?R[k]:R[k]=Tt(R[k]),$=N.type===nn;g?($&&!C&&k+1<P&&Tt(R[k+1]).type===nn&&(u(i(g.data.slice(N.children.length)),_,o(g)),g.data=N.children),g=f(g,N,S,A,I,C)):$&&!N.children?u(N.el=i(""),_):(fo(_,1)||pn(),r(null,N,_,null,S,A,co(_),I))}return g},v=(g,y,_,S,A,I)=>{const{slotScopeIds:C}=y;C&&(A=A?A.concat(C):C);const R=s(g),P=h(o(g),y,R,_,S,A,I);return P&&wn(P)&&P.data==="]"?o(y.anchor=P):(pn(),u(y.anchor=c("]"),R,P),P)},p=(g,y,_,S,A,I)=>{if(fo(g.parentElement,1)||pn(),y.el=null,I){const P=b(g);for(;;){const k=o(g);if(k&&k!==P)a(k);else break}}const C=o(g),R=s(g);return a(g),r(null,y,R,C,_,S,co(R),A),_&&(_.vnode.el=y.el,Os(_,y.el)),C},b=(g,y="[",_="]")=>{let S=0;for(;g;)if(g=o(g),g&&wn(g)&&(g.data===y&&S++,g.data===_)){if(S===0)return o(g);S--}return g},E=(g,y,_)=>{const S=y.parentNode;S&&S.replaceChild(g,y);let A=_;for(;A;)A.vnode.el===y&&(A.vnode.el=A.subTree.el=g),A=A.parent},m=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[l,f]}const ic="data-allow-mismatch",n0={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function fo(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ic);)e=e.parentElement;const r=e&&e.getAttribute(ic);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:n.includes(n0[t])}}Ts().requestIdleCallback;Ts().cancelIdleCallback;function i0(e,t){if(wn(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(wn(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const Mr=e=>!!e.type.__asyncLoader;function oc(e){he(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:o,timeout:s,suspensible:a=!0,onError:u}=e;let c=null,l,f=0;const d=()=>(f++,c=null,h()),h=()=>{let v;return c||(v=c=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),u)return new Promise((b,E)=>{u(p,()=>b(d()),()=>E(p),f+1)});throw p}).then(p=>v!==c&&c?c:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),l=p,p)))};return fn({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(v,p,b){let E=!1;(p.bu||(p.bu=[])).push(()=>E=!0);const m=()=>{E||b()},g=o?()=>{const y=o(m,_=>i0(v,_));y&&(p.bum||(p.bum=[])).push(y)}:m;l?g():h().then(()=>!p.isUnmounted&&g())},get __asyncResolved(){return l},setup(){const v=nt;if(cl(v),l)return()=>ho(l,v);const p=g=>{c=null,Jn(g,v,13,!n)};if(a&&v.suspense||$n)return h().then(g=>()=>ho(g,v)).catch(g=>(p(g),()=>n?Fe(n,{error:g}):null));const b=Jt(!1),E=Jt(),m=Jt(!!i);return i&&setTimeout(()=>{m.value=!1},i),s!=null&&setTimeout(()=>{if(!b.value&&!E.value){const g=new Error(`Async component timed out after ${s}ms.`);p(g),E.value=g}},s),h().then(()=>{b.value=!0,v.parent&&Zi(v.parent.vnode)&&v.parent.update()}).catch(g=>{p(g),E.value=g}),()=>{if(b.value&&l)return ho(l,v);if(E.value&&n)return Fe(n,{error:E.value});if(r&&!m.value)return ho(r,v)}}})}function ho(e,t){const{ref:r,props:n,children:i,ce:o}=t.vnode,s=Fe(e,n,i);return s.ref=r,s.ce=o,delete t.vnode.ce,s}const Zi=e=>e.type.__isKeepAlive,o0={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Zn(),n=r.ctx;if(!n.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const i=new Map,o=new Set;let s=null;const a=r.suspense,{renderer:{p:u,m:c,um:l,o:{createElement:f}}}=n,d=f("div");n.activate=(m,g,y,_,S)=>{const A=m.component;c(m,g,y,0,a),u(A.vnode,m,g,y,A,a,_,m.slotScopeIds,S),Je(()=>{A.isDeactivated=!1,A.a&&Rn(A.a);const I=m.props&&m.props.onVnodeMounted;I&&yt(I,A.parent,m)},a)},n.deactivate=m=>{const g=m.component;os(g.m),os(g.a),c(m,d,null,1,a),Je(()=>{g.da&&Rn(g.da);const y=m.props&&m.props.onVnodeUnmounted;y&&yt(y,g.parent,m),g.isDeactivated=!0},a)};function h(m){Zs(m),l(m,r,a,!0)}function v(m){i.forEach((g,y)=>{const _=eu(Mr(g)?g.type.__asyncResolved||{}:g.type);_&&!m(_)&&p(y)})}function p(m){const g=i.get(m);g&&(!s||!Ht(g,s))?h(g):s&&Zs(s),i.delete(m),o.delete(m)}xn(()=>[e.include,e.exclude],([m,g])=>{m&&v(y=>bi(m,y)),g&&v(y=>!bi(g,y))},{flush:"post",deep:!0});let b=null;const E=()=>{b!=null&&(ss(r.subTree.type)?Je(()=>{i.set(b,vo(r.subTree))},r.subTree.suspense):i.set(b,vo(r.subTree)))};return Rs(E),dv(E),Qn(()=>{i.forEach(m=>{const{subTree:g,suspense:y}=r,_=vo(g);if(m.type===_.type&&m.key===_.key){Zs(_);const S=_.component.da;S&&Je(S,y);return}h(m)})}),()=>{if(b=null,!t.default)return s=null;const m=t.default(),g=m[0];if(m.length>1)return s=null,m;if(!Vn(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return s=null,g;let y=vo(g);if(y.type===Xe)return s=null,y;const _=y.type,S=eu(Mr(y)?y.type.__asyncResolved||{}:_),{include:A,exclude:I,max:C}=e;if(A&&(!S||!bi(A,S))||I&&S&&bi(I,S))return y.shapeFlag&=-257,s=y,g;const R=y.key==null?_:y.key,P=i.get(R);return y.el&&(y=yr(y),g.shapeFlag&128&&(g.ssContent=y)),b=R,P?(y.el=P.el,y.component=P.component,y.transition&&jn(y,y.transition),y.shapeFlag|=512,o.delete(R),o.add(R)):(o.add(R),C&&o.size>parseInt(C,10)&&p(o.values().next().value)),y.shapeFlag|=256,s=y,ss(g.type)?g:y}}},s0=o0;function bi(e,t){return ve(e)?e.some(r=>bi(r,t)):He(e)?e.split(",").includes(t):ry(e)?(e.lastIndex=0,e.test(t)):!1}function lv(e,t){fv(e,"a",t)}function cv(e,t){fv(e,"da",t)}function fv(e,t,r=nt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ks(t,n,r),r){let i=r.parent;for(;i&&i.parent;)Zi(i.parent.vnode)&&a0(n,t,r,i),i=i.parent}}function a0(e,t,r,n){const i=ks(t,e,n,!0);hv(()=>{Qu(n[t],i)},r)}function Zs(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function vo(e){return e.shapeFlag&128?e.ssContent:e}function ks(e,t,r=nt,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{vr();const a=eo(r),u=qt(t,r,e,s);return a(),pr(),u});return n?i.unshift(o):i.push(o),o}}const br=e=>(t,r=nt)=>{(!$n||e==="sp")&&ks(e,(...n)=>t(...n),r)},u0=br("bm"),Rs=br("m"),l0=br("bu"),dv=br("u"),Qn=br("bum"),hv=br("um"),c0=br("sp"),f0=br("rtg"),d0=br("rtc");function vv(e,t=nt){ks("ec",e,t)}const pv="components";function sc(e,t){return mv(pv,e,!0,t)||e}const gv=Symbol.for("v-ndc");function h0(e){return He(e)?mv(pv,e,!1)||e:e||gv}function mv(e,t,r=!0,n=!1){const i=At||nt;if(i){const o=i.type;{const a=eu(o,!1);if(a&&(a===t||a===Lt(t)||a===ws(Lt(t))))return o}const s=ac(i[e]||o[e],t)||ac(i.appContext[e],t);return!s&&n?o:s}}function ac(e,t){return e&&(e[t]||e[Lt(t)]||e[ws(Lt(t))])}const Ka=e=>e?qv(e)?xs(e):Ka(e.parent):null,Ii=Ye(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ka(e.parent),$root:e=>Ka(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bv(e),$forceUpdate:e=>e.f||(e.f=()=>{al(e.update)}),$nextTick:e=>e.n||(e.n=qi.bind(e.proxy)),$watch:e=>Xy.bind(e)}),ea=(e,t)=>e!==xe&&!e.__isScriptSetup&&Ce(e,t),v0={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:s,type:a,appContext:u}=e;if(t[0]!=="$"){const d=s[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(ea(n,t))return s[t]=1,n[t];if(i!==xe&&Ce(i,t))return s[t]=2,i[t];if(Ce(o,t))return s[t]=3,o[t];if(r!==xe&&Ce(r,t))return s[t]=4,r[t];za&&(s[t]=0)}}const c=Ii[t];let l,f;if(c)return t==="$attrs"&&st(e.attrs,"get",""),c(e);if((l=a.__cssModules)&&(l=l[t]))return l;if(r!==xe&&Ce(r,t))return s[t]=4,r[t];if(f=u.config.globalProperties,Ce(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;return ea(i,t)?(i[t]=r,!0):n!==xe&&Ce(n,t)?(n[t]=r,!0):Ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,props:o,type:s}},a){let u;return!!(r[a]||e!==xe&&a[0]!=="$"&&Ce(e,a)||ea(t,a)||Ce(o,a)||Ce(n,a)||Ce(Ii,a)||Ce(i.config.globalProperties,a)||(u=s.__cssModules)&&u[a])},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ce(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function uc(e){return ve(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let za=!0;function p0(e){const t=bv(e),r=e.proxy,n=e.ctx;za=!1,t.beforeCreate&&lc(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:u,inject:c,created:l,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:b,beforeDestroy:E,beforeUnmount:m,destroyed:g,unmounted:y,render:_,renderTracked:S,renderTriggered:A,errorCaptured:I,serverPrefetch:C,expose:R,inheritAttrs:P,components:k,directives:N,filters:$}=t;if(c&&g0(c,n,null),s)for(const z in s){const K=s[z];he(K)&&(n[z]=K.bind(r))}if(i){const z=i.call(r,r);De(z)&&(e.data=Fr(z))}if(za=!0,o)for(const z in o){const K=o[z],Q=he(K)?K.bind(r,r):he(K.get)?K.get.bind(r,r):Yt,ae=!he(K)&&he(K.set)?K.set.bind(r):Yt,fe=We({get:Q,set:ae});Object.defineProperty(n,z,{enumerable:!0,configurable:!0,get:()=>fe.value,set:pe=>fe.value=pe})}if(a)for(const z in a)yv(a[z],n,r,z);if(u){const z=he(u)?u.call(r):u;Reflect.ownKeys(z).forEach(K=>{On(K,z[K])})}l&&lc(l,e,"c");function B(z,K){ve(K)?K.forEach(Q=>z(Q.bind(r))):K&&z(K.bind(r))}if(B(u0,f),B(Rs,d),B(l0,h),B(dv,v),B(lv,p),B(cv,b),B(vv,I),B(d0,S),B(f0,A),B(Qn,m),B(hv,y),B(c0,C),ve(R))if(R.length){const z=e.exposed||(e.exposed={});R.forEach(K=>{Object.defineProperty(z,K,{get:()=>r[K],set:Q=>r[K]=Q,enumerable:!0})})}else e.exposed||(e.exposed={});_&&e.render===Yt&&(e.render=_),P!=null&&(e.inheritAttrs=P),k&&(e.components=k),N&&(e.directives=N),C&&cl(e)}function g0(e,t,r=Yt){ve(e)&&(e=Xa(e));for(const n in e){const i=e[n];let o;De(i)?"default"in i?o=It(i.from||n,i.default,!0):o=It(i.from||n):o=It(i),qe(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[n]=o}}function lc(e,t,r){qt(ve(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function yv(e,t,r,n){let i=n.includes(".")?rv(r,n):()=>r[n];if(He(e)){const o=t[e];he(o)&&xn(i,o)}else if(he(e))xn(i,e.bind(r));else if(De(e))if(ve(e))e.forEach(o=>yv(o,t,r,n));else{const o=he(e.handler)?e.handler.bind(r):t[e.handler];he(o)&&xn(i,o,e)}}function bv(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let u;return a?u=a:!i.length&&!r&&!n?u=t:(u={},i.length&&i.forEach(c=>is(u,c,s,!0)),is(u,t,s)),De(t)&&o.set(t,u),u}function is(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&is(e,o,r,!0),i&&i.forEach(s=>is(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const a=m0[s]||r&&r[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const m0={data:cc,props:fc,emits:fc,methods:Ei,computed:Ei,beforeCreate:lt,created:lt,beforeMount:lt,mounted:lt,beforeUpdate:lt,updated:lt,beforeDestroy:lt,beforeUnmount:lt,destroyed:lt,unmounted:lt,activated:lt,deactivated:lt,errorCaptured:lt,serverPrefetch:lt,components:Ei,directives:Ei,watch:b0,provide:cc,inject:y0};function cc(e,t){return t?e?function(){return Ye(he(e)?e.call(this,this):e,he(t)?t.call(this,this):t)}:t:e}function y0(e,t){return Ei(Xa(e),Xa(t))}function Xa(e){if(ve(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function lt(e,t){return e?[...new Set([].concat(e,t))]:t}function Ei(e,t){return e?Ye(Object.create(null),e,t):t}function fc(e,t){return e?ve(e)&&ve(t)?[...new Set([...e,...t])]:Ye(Object.create(null),uc(e),uc(t??{})):t}function b0(e,t){if(!e)return t;if(!t)return e;const r=Ye(Object.create(null),e);for(const n in t)r[n]=lt(e[n],t[n]);return r}function Ev(){return{app:null,config:{isNativeTag:Sh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let E0=0;function _0(e,t){return function(n,i=null){he(n)||(n=Ye({},n)),i!=null&&!De(i)&&(i=null);const o=Ev(),s=new WeakSet,a=[];let u=!1;const c=o.app={_uid:E0++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:eb,get config(){return o.config},set config(l){},use(l,...f){return s.has(l)||(l&&he(l.install)?(s.add(l),l.install(c,...f)):he(l)&&(s.add(l),l(c,...f))),c},mixin(l){return o.mixins.includes(l)||o.mixins.push(l),c},component(l,f){return f?(o.components[l]=f,c):o.components[l]},directive(l,f){return f?(o.directives[l]=f,c):o.directives[l]},mount(l,f,d){if(!u){const h=c._ceVNode||Fe(n,i);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,l):e(h,l,d),u=!0,c._container=l,l.__vue_app__=c,xs(h.component)}},onUnmount(l){a.push(l)},unmount(){u&&(qt(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(l,f){return o.provides[l]=f,c},runWithContext(l){const f=rn;rn=c;try{return l()}finally{rn=f}}};return c}}let rn=null;const S0=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Lt(t)}Modifiers`]||e[`${cn(t)}Modifiers`];function w0(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||xe;let i=r;const o=t.startsWith("update:"),s=o&&S0(n,t.slice(7));s&&(s.trim&&(i=r.map(l=>He(l)?l.trim():l)),s.number&&(i=r.map(Zu)));let a,u=n[a=Ks(t)]||n[a=Ks(Lt(t))];!u&&o&&(u=n[a=Ks(cn(t))]),u&&qt(u,e,6,i);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qt(c,e,6,i)}}const T0=new WeakMap;function _v(e,t,r=!1){const n=r?T0:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let s={},a=!1;if(!he(e)){const u=c=>{const l=_v(c,t,!0);l&&(a=!0,Ye(s,l))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!a?(De(e)&&n.set(e,null),null):(ve(o)?o.forEach(u=>s[u]=null):Ye(s,o),De(e)&&n.set(e,s),s)}function Ps(e,t){return!e||!Yi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ce(e,t[0].toLowerCase()+t.slice(1))||Ce(e,cn(t))||Ce(e,t))}function ta(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:u,render:c,renderCache:l,props:f,data:d,setupState:h,ctx:v,inheritAttrs:p}=e,b=rs(e);let E,m;try{if(r.shapeFlag&4){const y=i||n,_=y;E=Tt(c.call(_,y,l,f,h,d,v)),m=a}else{const y=t;E=Tt(y.length>1?y(f,{attrs:a,slots:s,emit:u}):y(f,null)),m=t.props?a:I0(a)}}catch(y){Ci.length=0,Jn(y,e,1),E=Fe(Xe)}let g=E;if(m&&p!==!1){const y=Object.keys(m),{shapeFlag:_}=g;y.length&&_&7&&(o&&y.some(Ju)&&(m=C0(m,o)),g=yr(g,m,!1,!0))}return r.dirs&&(g=yr(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(r.dirs):r.dirs),r.transition&&jn(g,r.transition),E=g,rs(b),E}function A0(e,t=!0){let r;for(let n=0;n<e.length;n++){const i=e[n];if(Vn(i)){if(i.type!==Xe||i.children==="v-if"){if(r)return;r=i}}else return}return r}const I0=e=>{let t;for(const r in e)(r==="class"||r==="style"||Yi(r))&&((t||(t={}))[r]=e[r]);return t},C0=(e,t)=>{const r={};for(const n in e)(!Ju(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function k0(e,t,r){const{props:n,children:i,component:o}=e,{props:s,children:a,patchFlag:u}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return n?dc(n,s,c):!!s;if(u&8){const l=t.dynamicProps;for(let f=0;f<l.length;f++){const d=l[f];if(s[d]!==n[d]&&!Ps(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===s?!1:n?s?dc(n,s,c):!0:!!s;return!1}function dc(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(t[o]!==e[o]&&!Ps(r,o))return!0}return!1}function Os({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const Sv={},wv=()=>Object.create(Sv),Tv=e=>Object.getPrototypeOf(e)===Sv;function R0(e,t,r,n=!1){const i={},o=wv();e.propsDefaults=Object.create(null),Av(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);r?e.props=n?i:dr(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function P0(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=Ae(i),[u]=e.propsOptions;let c=!1;if((n||s>0)&&!(s&16)){if(s&8){const l=e.vnode.dynamicProps;for(let f=0;f<l.length;f++){let d=l[f];if(Ps(e.emitsOptions,d))continue;const h=t[d];if(u)if(Ce(o,d))h!==o[d]&&(o[d]=h,c=!0);else{const v=Lt(d);i[v]=Ya(u,a,v,h,e,!1)}else h!==o[d]&&(o[d]=h,c=!0)}}}else{Av(e,t,i,o)&&(c=!0);let l;for(const f in a)(!t||!Ce(t,f)&&((l=cn(f))===f||!Ce(t,l)))&&(u?r&&(r[f]!==void 0||r[l]!==void 0)&&(i[f]=Ya(u,a,f,void 0,e,!0)):delete i[f]);if(o!==a)for(const f in o)(!t||!Ce(t,f))&&(delete o[f],c=!0)}c&&cr(e.attrs,"set","")}function Av(e,t,r,n){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let u in t){if(Zr(u))continue;const c=t[u];let l;i&&Ce(i,l=Lt(u))?!o||!o.includes(l)?r[l]=c:(a||(a={}))[l]=c:Ps(e.emitsOptions,u)||(!(u in n)||c!==n[u])&&(n[u]=c,s=!0)}if(o){const u=Ae(r),c=a||xe;for(let l=0;l<o.length;l++){const f=o[l];r[f]=Ya(i,u,f,c[f],e,!Ce(c,f))}}return s}function Ya(e,t,r,n,i,o){const s=e[r];if(s!=null){const a=Ce(s,"default");if(a&&n===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&he(u)){const{propsDefaults:c}=i;if(r in c)n=c[r];else{const l=eo(i);n=c[r]=u.call(null,t),l()}}else n=u;i.ce&&i.ce._setProp(r,n)}s[0]&&(o&&!a?n=!1:s[1]&&(n===""||n===cn(r))&&(n=!0))}return n}const O0=new WeakMap;function Iv(e,t,r=!1){const n=r?O0:t.propsCache,i=n.get(e);if(i)return i;const o=e.props,s={},a=[];let u=!1;if(!he(e)){const l=f=>{u=!0;const[d,h]=Iv(f,t,!0);Ye(s,d),h&&a.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}if(!o&&!u)return De(e)&&n.set(e,Cn),Cn;if(ve(o))for(let l=0;l<o.length;l++){const f=Lt(o[l]);hc(f)&&(s[f]=xe)}else if(o)for(const l in o){const f=Lt(l);if(hc(f)){const d=o[l],h=s[f]=ve(d)||he(d)?{type:d}:Ye({},d),v=h.type;let p=!1,b=!0;if(ve(v))for(let E=0;E<v.length;++E){const m=v[E],g=he(m)&&m.name;if(g==="Boolean"){p=!0;break}else g==="String"&&(b=!1)}else p=he(v)&&v.name==="Boolean";h[0]=p,h[1]=b,(p||Ce(h,"default"))&&a.push(f)}}const c=[s,a];return De(e)&&n.set(e,c),c}function hc(e){return e[0]!=="$"&&!Zr(e)}const fl=e=>e==="_"||e==="_ctx"||e==="$stable",dl=e=>ve(e)?e.map(Tt):[Tt(e)],x0=(e,t,r)=>{if(t._n)return t;const n=Ai((...i)=>dl(t(...i)),r);return n._c=!1,n},Cv=(e,t,r)=>{const n=e._ctx;for(const i in e){if(fl(i))continue;const o=e[i];if(he(o))t[i]=x0(i,o,n);else if(o!=null){const s=dl(o);t[i]=()=>s}}},kv=(e,t)=>{const r=dl(t);e.slots.default=()=>r},Rv=(e,t,r)=>{for(const n in t)(r||!fl(n))&&(e[n]=t[n])},N0=(e,t,r)=>{const n=e.slots=wv();if(e.vnode.shapeFlag&32){const i=t._;i?(Rv(n,t,r),r&&Ch(n,"_",i,!0)):Cv(t,n)}else t&&kv(e,t)},L0=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,s=xe;if(n.shapeFlag&32){const a=t._;a?r&&a===1?o=!1:Rv(i,t,r):(o=!t.$stable,Cv(t,i)),s=t}else t&&(kv(e,t),s={default:1});if(o)for(const a in i)!fl(a)&&s[a]==null&&delete i[a]},Je=Uv;function M0(e){return Pv(e)}function D0(e){return Pv(e,r0)}function Pv(e,t){const r=Ts();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:s,createText:a,createComment:u,setText:c,setElementText:l,parentNode:f,nextSibling:d,setScopeId:h=Yt,insertStaticContent:v}=e,p=(w,T,L,H=null,U=null,q=null,te=void 0,G=null,Y=!!T.dynamicChildren)=>{if(w===T)return;w&&!Ht(w,T)&&(H=M(w),pe(w,U,q,!0),w=null),T.patchFlag===-2&&(Y=!1,T.dynamicChildren=null);const{type:V,ref:W,shapeFlag:j}=T;switch(V){case nn:b(w,T,L,H);break;case Xe:E(w,T,L,H);break;case No:w==null&&m(T,L,H,te);break;case ht:k(w,T,L,H,U,q,te,G,Y);break;default:j&1?_(w,T,L,H,U,q,te,G,Y):j&6?N(w,T,L,H,U,q,te,G,Y):(j&64||j&128)&&V.process(w,T,L,H,U,q,te,G,Y,re)}W!=null&&U?Nn(W,w&&w.ref,q,T||w,!T):W==null&&w&&w.ref!=null&&Nn(w.ref,null,q,w,!0)},b=(w,T,L,H)=>{if(w==null)n(T.el=a(T.children),L,H);else{const U=T.el=w.el;T.children!==w.children&&c(U,T.children)}},E=(w,T,L,H)=>{w==null?n(T.el=u(T.children||""),L,H):T.el=w.el},m=(w,T,L,H)=>{[w.el,w.anchor]=v(w.children,T,L,H,w.el,w.anchor)},g=({el:w,anchor:T},L,H)=>{let U;for(;w&&w!==T;)U=d(w),n(w,L,H),w=U;n(T,L,H)},y=({el:w,anchor:T})=>{let L;for(;w&&w!==T;)L=d(w),i(w),w=L;i(T)},_=(w,T,L,H,U,q,te,G,Y)=>{if(T.type==="svg"?te="svg":T.type==="math"&&(te="mathml"),w==null)S(T,L,H,U,q,te,G,Y);else{const V=w.el&&w.el._isVueCE?w.el:null;try{V&&V._beginPatch(),C(w,T,U,q,te,G,Y)}finally{V&&V._endPatch()}}},S=(w,T,L,H,U,q,te,G)=>{let Y,V;const{props:W,shapeFlag:j,transition:J,dirs:ne}=w;if(Y=w.el=s(w.type,q,W&&W.is,W),j&8?l(Y,w.children):j&16&&I(w.children,Y,null,H,U,ra(w,q),te,G),ne&&zt(w,null,H,"created"),A(Y,w,w.scopeId,te,H),W){for(const Se in W)Se!=="value"&&!Zr(Se)&&o(Y,Se,null,W[Se],q,H);"value"in W&&o(Y,"value",null,W.value,q),(V=W.onVnodeBeforeMount)&&yt(V,H,w)}ne&&zt(w,null,H,"beforeMount");const ie=Ov(U,J);ie&&J.beforeEnter(Y),n(Y,T,L),((V=W&&W.onVnodeMounted)||ie||ne)&&Je(()=>{V&&yt(V,H,w),ie&&J.enter(Y),ne&&zt(w,null,H,"mounted")},U)},A=(w,T,L,H,U)=>{if(L&&h(w,L),H)for(let q=0;q<H.length;q++)h(w,H[q]);if(U){let q=U.subTree;if(T===q||ss(q.type)&&(q.ssContent===T||q.ssFallback===T)){const te=U.vnode;A(w,te,te.scopeId,te.slotScopeIds,U.parent)}}},I=(w,T,L,H,U,q,te,G,Y=0)=>{for(let V=Y;V<w.length;V++){const W=w[V]=G?Ar(w[V]):Tt(w[V]);p(null,W,T,L,H,U,q,te,G)}},C=(w,T,L,H,U,q,te)=>{const G=T.el=w.el;let{patchFlag:Y,dynamicChildren:V,dirs:W}=T;Y|=w.patchFlag&16;const j=w.props||xe,J=T.props||xe;let ne;if(L&&Br(L,!1),(ne=J.onVnodeBeforeUpdate)&&yt(ne,L,T,w),W&&zt(T,w,L,"beforeUpdate"),L&&Br(L,!0),(j.innerHTML&&J.innerHTML==null||j.textContent&&J.textContent==null)&&l(G,""),V?R(w.dynamicChildren,V,G,L,H,ra(T,U),q):te||K(w,T,G,null,L,H,ra(T,U),q,!1),Y>0){if(Y&16)P(G,j,J,L,U);else if(Y&2&&j.class!==J.class&&o(G,"class",null,J.class,U),Y&4&&o(G,"style",j.style,J.style,U),Y&8){const ie=T.dynamicProps;for(let Se=0;Se<ie.length;Se++){const ue=ie[Se],$e=j[ue],Oe=J[ue];(Oe!==$e||ue==="value")&&o(G,ue,$e,Oe,U,L)}}Y&1&&w.children!==T.children&&l(G,T.children)}else!te&&V==null&&P(G,j,J,L,U);((ne=J.onVnodeUpdated)||W)&&Je(()=>{ne&&yt(ne,L,T,w),W&&zt(T,w,L,"updated")},H)},R=(w,T,L,H,U,q,te)=>{for(let G=0;G<T.length;G++){const Y=w[G],V=T[G],W=Y.el&&(Y.type===ht||!Ht(Y,V)||Y.shapeFlag&198)?f(Y.el):L;p(Y,V,W,null,H,U,q,te,!0)}},P=(w,T,L,H,U)=>{if(T!==L){if(T!==xe)for(const q in T)!Zr(q)&&!(q in L)&&o(w,q,T[q],null,U,H);for(const q in L){if(Zr(q))continue;const te=L[q],G=T[q];te!==G&&q!=="value"&&o(w,q,G,te,U,H)}"value"in L&&o(w,"value",T.value,L.value,U)}},k=(w,T,L,H,U,q,te,G,Y)=>{const V=T.el=w?w.el:a(""),W=T.anchor=w?w.anchor:a("");let{patchFlag:j,dynamicChildren:J,slotScopeIds:ne}=T;ne&&(G=G?G.concat(ne):ne),w==null?(n(V,L,H),n(W,L,H),I(T.children||[],L,W,U,q,te,G,Y)):j>0&&j&64&&J&&w.dynamicChildren&&w.dynamicChildren.length===J.length?(R(w.dynamicChildren,J,L,U,q,te,G),(T.key!=null||U&&T===U.subTree)&&xv(w,T,!0)):K(w,T,L,W,U,q,te,G,Y)},N=(w,T,L,H,U,q,te,G,Y)=>{T.slotScopeIds=G,w==null?T.shapeFlag&512?U.ctx.activate(T,L,H,te,Y):$(T,L,H,U,q,te,Y):ee(w,T,Y)},$=(w,T,L,H,U,q,te)=>{const G=w.component=z0(w,H,U);if(Zi(w)&&(G.ctx.renderer=re),X0(G,!1,te),G.asyncDep){if(U&&U.registerDep(G,B,te),!w.el){const Y=G.subTree=Fe(Xe);E(null,Y,T,L),w.placeholder=Y.el}}else B(G,w,T,L,U,q,te)},ee=(w,T,L)=>{const H=T.component=w.component;if(k0(w,T,L))if(H.asyncDep&&!H.asyncResolved){z(H,T,L);return}else H.next=T,H.update();else T.el=w.el,H.vnode=T},B=(w,T,L,H,U,q,te)=>{const G=()=>{if(w.isMounted){let{next:j,bu:J,u:ne,parent:ie,vnode:Se}=w;{const it=Nv(w);if(it){j&&(j.el=Se.el,z(w,j,te)),it.asyncDep.then(()=>{w.isUnmounted||G()});return}}let ue=j,$e;Br(w,!1),j?(j.el=Se.el,z(w,j,te)):j=Se,J&&Rn(J),($e=j.props&&j.props.onVnodeBeforeUpdate)&&yt($e,ie,j,Se),Br(w,!0);const Oe=ta(w),gt=w.subTree;w.subTree=Oe,p(gt,Oe,f(gt.el),M(gt),w,U,q),j.el=Oe.el,ue===null&&Os(w,Oe.el),ne&&Je(ne,U),($e=j.props&&j.props.onVnodeUpdated)&&Je(()=>yt($e,ie,j,Se),U)}else{let j;const{el:J,props:ne}=T,{bm:ie,m:Se,parent:ue,root:$e,type:Oe}=w,gt=Mr(T);if(Br(w,!1),ie&&Rn(ie),!gt&&(j=ne&&ne.onVnodeBeforeMount)&&yt(j,ue,T),Br(w,!0),J&&ge){const it=()=>{w.subTree=ta(w),ge(J,w.subTree,w,U,null)};gt&&Oe.__asyncHydrate?Oe.__asyncHydrate(J,w,it):it()}else{$e.ce&&$e.ce._def.shadowRoot!==!1&&$e.ce._injectChildStyle(Oe);const it=w.subTree=ta(w);p(null,it,L,H,w,U,q),T.el=it.el}if(Se&&Je(Se,U),!gt&&(j=ne&&ne.onVnodeMounted)){const it=T;Je(()=>yt(j,ue,it),U)}(T.shapeFlag&256||ue&&Mr(ue.vnode)&&ue.vnode.shapeFlag&256)&&w.a&&Je(w.a,U),w.isMounted=!0,T=L=H=null}};w.scope.on();const Y=w.effect=new Mh(G);w.scope.off();const V=w.update=Y.run.bind(Y),W=w.job=Y.runIfDirty.bind(Y);W.i=w,W.id=w.uid,Y.scheduler=()=>al(W),Br(w,!0),V()},z=(w,T,L)=>{T.component=w;const H=w.vnode.props;w.vnode=T,w.next=null,P0(w,T.props,H,L),L0(w,T.children,L),vr(),ec(w),pr()},K=(w,T,L,H,U,q,te,G,Y=!1)=>{const V=w&&w.children,W=w?w.shapeFlag:0,j=T.children,{patchFlag:J,shapeFlag:ne}=T;if(J>0){if(J&128){ae(V,j,L,H,U,q,te,G,Y);return}else if(J&256){Q(V,j,L,H,U,q,te,G,Y);return}}ne&8?(W&16&&me(V,U,q),j!==V&&l(L,j)):W&16?ne&16?ae(V,j,L,H,U,q,te,G,Y):me(V,U,q,!0):(W&8&&l(L,""),ne&16&&I(j,L,H,U,q,te,G,Y))},Q=(w,T,L,H,U,q,te,G,Y)=>{w=w||Cn,T=T||Cn;const V=w.length,W=T.length,j=Math.min(V,W);let J;for(J=0;J<j;J++){const ne=T[J]=Y?Ar(T[J]):Tt(T[J]);p(w[J],ne,L,null,U,q,te,G,Y)}V>W?me(w,U,q,!0,!1,j):I(T,L,H,U,q,te,G,Y,j)},ae=(w,T,L,H,U,q,te,G,Y)=>{let V=0;const W=T.length;let j=w.length-1,J=W-1;for(;V<=j&&V<=J;){const ne=w[V],ie=T[V]=Y?Ar(T[V]):Tt(T[V]);if(Ht(ne,ie))p(ne,ie,L,null,U,q,te,G,Y);else break;V++}for(;V<=j&&V<=J;){const ne=w[j],ie=T[J]=Y?Ar(T[J]):Tt(T[J]);if(Ht(ne,ie))p(ne,ie,L,null,U,q,te,G,Y);else break;j--,J--}if(V>j){if(V<=J){const ne=J+1,ie=ne<W?T[ne].el:H;for(;V<=J;)p(null,T[V]=Y?Ar(T[V]):Tt(T[V]),L,ie,U,q,te,G,Y),V++}}else if(V>J)for(;V<=j;)pe(w[V],U,q,!0),V++;else{const ne=V,ie=V,Se=new Map;for(V=ie;V<=J;V++){const wt=T[V]=Y?Ar(T[V]):Tt(T[V]);wt.key!=null&&Se.set(wt.key,V)}let ue,$e=0;const Oe=J-ie+1;let gt=!1,it=0;const ni=new Array(Oe);for(V=0;V<Oe;V++)ni[V]=0;for(V=ne;V<=j;V++){const wt=w[V];if($e>=Oe){pe(wt,U,q,!0);continue}let Wt;if(wt.key!=null)Wt=Se.get(wt.key);else for(ue=ie;ue<=J;ue++)if(ni[ue-ie]===0&&Ht(wt,T[ue])){Wt=ue;break}Wt===void 0?pe(wt,U,q,!0):(ni[Wt-ie]=V+1,Wt>=it?it=Wt:gt=!0,p(wt,T[Wt],L,null,U,q,te,G,Y),$e++)}const zl=gt?U0(ni):Cn;for(ue=zl.length-1,V=Oe-1;V>=0;V--){const wt=ie+V,Wt=T[wt],Xl=T[wt+1],Yl=wt+1<W?Xl.el||Lv(Xl):H;ni[V]===0?p(null,Wt,L,Yl,U,q,te,G,Y):gt&&(ue<0||V!==zl[ue]?fe(Wt,L,Yl,2):ue--)}}},fe=(w,T,L,H,U=null)=>{const{el:q,type:te,transition:G,children:Y,shapeFlag:V}=w;if(V&6){fe(w.component.subTree,T,L,H);return}if(V&128){w.suspense.move(T,L,H);return}if(V&64){te.move(w,T,L,re);return}if(te===ht){n(q,T,L);for(let j=0;j<Y.length;j++)fe(Y[j],T,L,H);n(w.anchor,T,L);return}if(te===No){g(w,T,L);return}if(H!==2&&V&1&&G)if(H===0)G.beforeEnter(q),n(q,T,L),Je(()=>G.enter(q),U);else{const{leave:j,delayLeave:J,afterLeave:ne}=G,ie=()=>{w.ctx.isUnmounted?i(q):n(q,T,L)},Se=()=>{q._isLeaving&&q[ar](!0),j(q,()=>{ie(),ne&&ne()})};J?J(q,ie,Se):Se()}else n(q,T,L)},pe=(w,T,L,H=!1,U=!1)=>{const{type:q,props:te,ref:G,children:Y,dynamicChildren:V,shapeFlag:W,patchFlag:j,dirs:J,cacheIndex:ne}=w;if(j===-2&&(U=!1),G!=null&&(vr(),Nn(G,null,L,w,!0),pr()),ne!=null&&(T.renderCache[ne]=void 0),W&256){T.ctx.deactivate(w);return}const ie=W&1&&J,Se=!Mr(w);let ue;if(Se&&(ue=te&&te.onVnodeBeforeUnmount)&&yt(ue,T,w),W&6)de(w.component,L,H);else{if(W&128){w.suspense.unmount(L,H);return}ie&&zt(w,null,T,"beforeUnmount"),W&64?w.type.remove(w,T,L,re,H):V&&!V.hasOnce&&(q!==ht||j>0&&j&64)?me(V,T,L,!1,!0):(q===ht&&j&384||!U&&W&16)&&me(Y,T,L),H&&ye(w)}(Se&&(ue=te&&te.onVnodeUnmounted)||ie)&&Je(()=>{ue&&yt(ue,T,w),ie&&zt(w,null,T,"unmounted")},L)},ye=w=>{const{type:T,el:L,anchor:H,transition:U}=w;if(T===ht){be(L,H);return}if(T===No){y(w);return}const q=()=>{i(L),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(w.shapeFlag&1&&U&&!U.persisted){const{leave:te,delayLeave:G}=U,Y=()=>te(L,q);G?G(w.el,q,Y):Y()}else q()},be=(w,T)=>{let L;for(;w!==T;)L=d(w),i(w),w=L;i(T)},de=(w,T,L)=>{const{bum:H,scope:U,job:q,subTree:te,um:G,m:Y,a:V}=w;os(Y),os(V),H&&Rn(H),U.stop(),q&&(q.flags|=8,pe(te,w,T,L)),G&&Je(G,T),Je(()=>{w.isUnmounted=!0},T)},me=(w,T,L,H=!1,U=!1,q=0)=>{for(let te=q;te<w.length;te++)pe(w[te],T,L,H,U)},M=w=>{if(w.shapeFlag&6)return M(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const T=d(w.anchor||w.el),L=T&&T[Yy];return L?d(L):T};let Z=!1;const X=(w,T,L)=>{let H;w==null?T._vnode&&(pe(T._vnode,null,null,!0),H=T._vnode.component):p(T._vnode||null,w,T,null,null,null,L),T._vnode=w,Z||(Z=!0,ec(H),ts(),Z=!1)},re={p,um:pe,m:fe,r:ye,mt:$,mc:I,pc:K,pbc:R,n:M,o:e};let F,ge;return t&&([F,ge]=t(re)),{render:X,hydrate:F,createApp:_0(X,F)}}function ra({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Br({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ov(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function xv(e,t,r=!1){const n=e.children,i=t.children;if(ve(n)&&ve(i))for(let o=0;o<n.length;o++){const s=n[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Ar(i[o]),a.el=s.el),!r&&a.patchFlag!==-2&&xv(s,a)),a.type===nn&&(a.patchFlag!==-1?a.el=s.el:a.__elIndex=o+(e.type===ht?1:0)),a.type===Xe&&!a.el&&(a.el=s.el)}}function U0(e){const t=e.slice(),r=[0];let n,i,o,s,a;const u=e.length;for(n=0;n<u;n++){const c=e[n];if(c!==0){if(i=r[r.length-1],e[i]<c){t[n]=i,r.push(n);continue}for(o=0,s=r.length-1;o<s;)a=o+s>>1,e[r[a]]<c?o=a+1:s=a;c<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}function Nv(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Nv(t)}function os(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Lv(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Lv(t.subTree):null}const ss=e=>e.__isSuspense;let Ja=0;const F0={name:"Suspense",__isSuspense:!0,process(e,t,r,n,i,o,s,a,u,c){if(e==null)H0(t,r,n,i,o,s,a,u,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}B0(e,t,r,n,i,s,a,u,c)}},hydrate:j0,normalize:q0},Mv=F0;function $i(e,t){const r=e.props&&e.props[t];he(r)&&r()}function H0(e,t,r,n,i,o,s,a,u){const{p:c,o:{createElement:l}}=u,f=l("div"),d=e.suspense=Dv(e,i,n,t,f,r,o,s,a,u);c(null,d.pendingBranch=e.ssContent,f,null,n,d,o,s),d.deps>0?($i(e,"onPending"),$i(e,"onFallback"),c(null,e.ssFallback,t,r,n,null,o,s),Ln(d,e.ssFallback)):d.resolve(!1,!0)}function B0(e,t,r,n,i,o,s,a,{p:u,um:c,o:{createElement:l}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:v,pendingBranch:p,isInFallback:b,isHydrating:E}=f;if(p)f.pendingBranch=d,Ht(p,d)?(u(p,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():b&&(E||(u(v,h,r,n,i,null,o,s,a),Ln(f,h)))):(f.pendingId=Ja++,E?(f.isHydrating=!1,f.activeBranch=p):c(p,i,f),f.deps=0,f.effects.length=0,f.hiddenContainer=l("div"),b?(u(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0?f.resolve():(u(v,h,r,n,i,null,o,s,a),Ln(f,h))):v&&Ht(v,d)?(u(v,d,r,n,i,f,o,s,a),f.resolve(!0)):(u(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0&&f.resolve()));else if(v&&Ht(v,d))u(v,d,r,n,i,f,o,s,a),Ln(f,d);else if($i(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Ja++,u(null,d,f.hiddenContainer,null,i,f,o,s,a),f.deps<=0)f.resolve();else{const{timeout:m,pendingId:g}=f;m>0?setTimeout(()=>{f.pendingId===g&&f.fallback(h)},m):m===0&&f.fallback(h)}}function Dv(e,t,r,n,i,o,s,a,u,c,l=!1){const{p:f,m:d,um:h,n:v,o:{parentNode:p,remove:b}}=c;let E;const m=V0(e);m&&t&&t.pendingBranch&&(E=t.pendingId,t.deps++);const g=e.props?kh(e.props.timeout):void 0,y=o,_={vnode:e,parent:t,parentComponent:r,namespace:s,container:n,hiddenContainer:i,deps:0,pendingId:Ja++,timeout:typeof g=="number"?g:-1,activeBranch:null,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(S=!1,A=!1){const{vnode:I,activeBranch:C,pendingBranch:R,pendingId:P,effects:k,parentComponent:N,container:$,isInFallback:ee}=_;let B=!1;_.isHydrating?_.isHydrating=!1:S||(B=C&&R.transition&&R.transition.mode==="out-in",B&&(C.transition.afterLeave=()=>{P===_.pendingId&&(d(R,$,o===y?v(C):o,0),Wa(k),ee&&I.ssFallback&&(I.ssFallback.el=null))}),C&&(p(C.el)===$&&(o=v(C)),h(C,N,_,!0),!B&&ee&&I.ssFallback&&Je(()=>I.ssFallback.el=null,_)),B||d(R,$,o,0)),Ln(_,R),_.pendingBranch=null,_.isInFallback=!1;let z=_.parent,K=!1;for(;z;){if(z.pendingBranch){z.effects.push(...k),K=!0;break}z=z.parent}!K&&!B&&Wa(k),_.effects=[],m&&t&&t.pendingBranch&&E===t.pendingId&&(t.deps--,t.deps===0&&!A&&t.resolve()),$i(I,"onResolve")},fallback(S){if(!_.pendingBranch)return;const{vnode:A,activeBranch:I,parentComponent:C,container:R,namespace:P}=_;$i(A,"onFallback");const k=v(I),N=()=>{_.isInFallback&&(f(null,S,R,k,C,null,P,a,u),Ln(_,S))},$=S.transition&&S.transition.mode==="out-in";$&&(I.transition.afterLeave=N),_.isInFallback=!0,h(I,C,null,!0),$||N()},move(S,A,I){_.activeBranch&&d(_.activeBranch,S,A,I),_.container=S},next(){return _.activeBranch&&v(_.activeBranch)},registerDep(S,A,I){const C=!!_.pendingBranch;C&&_.deps++;const R=S.vnode.el;S.asyncDep.catch(P=>{Jn(P,S,0)}).then(P=>{if(S.isUnmounted||_.isUnmounted||_.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:k}=S;Za(S,P),R&&(k.el=R);const N=!R&&S.subTree.el;A(S,k,p(R||S.subTree.el),R?null:v(S.subTree),_,s,I),N&&(k.placeholder=null,b(N)),Os(S,k.el),C&&--_.deps===0&&_.resolve()})},unmount(S,A){_.isUnmounted=!0,_.activeBranch&&h(_.activeBranch,r,S,A),_.pendingBranch&&h(_.pendingBranch,r,S,A)}};return _}function j0(e,t,r,n,i,o,s,a,u){const c=t.suspense=Dv(t,n,r,e.parentNode,document.createElement("div"),null,i,o,s,a,!0),l=u(e,c.pendingBranch=t.ssContent,r,c,o,s);return c.deps===0&&c.resolve(!1,!0),l}function q0(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=vc(n?r.default:r),e.ssFallback=n?vc(r.fallback):Fe(Xe)}function vc(e){let t;if(he(e)){const r=qn&&e._c;r&&(e._d=!1,vt()),e=e(),r&&(e._d=!0,t=bt,Fv())}return ve(e)&&(e=A0(e)),e=Tt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function Uv(e,t){t&&t.pendingBranch?ve(e)?t.effects.push(...e):t.effects.push(e):Wa(e)}function Ln(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,Os(n,i))}function V0(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ht=Symbol.for("v-fgt"),nn=Symbol.for("v-txt"),Xe=Symbol.for("v-cmt"),No=Symbol.for("v-stc"),Ci=[];let bt=null;function vt(e=!1){Ci.push(bt=e?null:[])}function Fv(){Ci.pop(),bt=Ci[Ci.length-1]||null}let qn=1;function as(e,t=!1){qn+=e,e<0&&bt&&t&&(bt.hasOnce=!0)}function Hv(e){return e.dynamicChildren=qn>0?bt||Cn:null,Fv(),qn>0&&bt&&bt.push(e),e}function Xr(e,t,r,n,i,o){return Hv(Mn(e,t,r,n,i,o,!0))}function Yr(e,t,r,n,i){return Hv(Fe(e,t,r,n,i,!0))}function Vn(e){return e?e.__v_isVNode===!0:!1}function Ht(e,t){return e.type===t.type&&e.key===t.key}const Bv=({key:e})=>e??null,Lo=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?He(e)||qe(e)||he(e)?{i:At,r:e,k:t,f:!!r}:e:null);function Mn(e,t=null,r=null,n=0,i=null,o=e===ht?0:1,s=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bv(t),ref:t&&Lo(t),scopeId:tv,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:At};return a?(hl(u,r),o&128&&e.normalize(u)):r&&(u.shapeFlag|=He(r)?8:16),qn>0&&!s&&bt&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&bt.push(u),u}const Fe=$0;function $0(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===gv)&&(e=Xe),Vn(e)){const a=yr(e,t,!0);return r&&hl(a,r),qn>0&&!o&&bt&&(a.shapeFlag&6?bt[bt.indexOf(e)]=a:bt.push(a)),a.patchFlag=-2,a}if(Z0(e)&&(e=e.__vccOpts),t){t=jv(t);let{class:a,style:u}=t;a&&!He(a)&&(t.class=Is(a)),De(u)&&(Cs(u)&&!ve(u)&&(u=Ye({},u)),t.style=As(u))}const s=He(e)?1:ss(e)?128:nv(e)?64:De(e)?4:he(e)?2:0;return Mn(e,t,r,n,i,s,o,!0)}function jv(e){return e?Cs(e)||Tv(e)?Ye({},e):e:null}function yr(e,t,r=!1,n=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:u}=e,c=t?W0(i||{},t):i,l={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Bv(c),ref:t&&t.ref?r&&o?ve(o)?o.concat(Lo(t)):[o,Lo(t)]:Lo(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ht?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&yr(e.ssContent),ssFallback:e.ssFallback&&yr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&jn(l,u.clone(l)),l}function ki(e=" ",t=0){return Fe(nn,null,e,t)}function pc(e="",t=!1){return t?(vt(),Yr(Xe,null,e)):Fe(Xe,null,e)}function Tt(e){return e==null||typeof e=="boolean"?Fe(Xe):ve(e)?Fe(ht,null,e.slice()):Vn(e)?Ar(e):Fe(nn,null,String(e))}function Ar(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yr(e)}function hl(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ve(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),hl(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!Tv(t)?t._ctx=At:i===3&&At&&(At.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else he(t)?(t={default:t,_ctx:At},r=32):(t=String(t),n&64?(r=16,t=[ki(t)]):r=8);e.children=t,e.shapeFlag|=r}function W0(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=Is([t.class,n.class]));else if(i==="style")t.style=As([t.style,n.style]);else if(Yi(i)){const o=t[i],s=n[i];s&&o!==s&&!(ve(o)&&o.includes(s))&&(t[i]=o?[].concat(o,s):s)}else i!==""&&(t[i]=n[i])}return t}function yt(e,t,r,n=null){qt(e,t,7,[r,n])}const G0=Ev();let K0=0;function z0(e,t,r){const n=e.type,i=(t?t.appContext:e.appContext)||G0,o={uid:K0++,vnode:e,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Nh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Iv(n,i),emitsOptions:_v(n,i),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:n.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=w0.bind(null,o),e.ce&&e.ce(o),o}let nt=null;const Zn=()=>nt||At;let us,Qa;{const e=Ts(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};us=t("__VUE_INSTANCE_SETTERS__",r=>nt=r),Qa=t("__VUE_SSR_SETTERS__",r=>$n=r)}const eo=e=>{const t=nt;return us(e),e.scope.on(),()=>{e.scope.off(),us(t)}},gc=()=>{nt&&nt.scope.off(),us(null)};function qv(e){return e.vnode.shapeFlag&4}let $n=!1;function X0(e,t=!1,r=!1){t&&Qa(t);const{props:n,children:i}=e.vnode,o=qv(e);R0(e,n,o,t),N0(e,i,r||t);const s=o?Y0(e,t):void 0;return t&&Qa(!1),s}function Y0(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,v0);const{setup:n}=r;if(n){vr();const i=e.setupContext=n.length>1?Q0(e):null,o=eo(e),s=Qi(n,e,0,[e.props,i]),a=Th(s);if(pr(),o(),(a||e.sp)&&!Mr(e)&&cl(e),a){if(s.then(gc,gc),t)return s.then(u=>{Za(e,u)}).catch(u=>{Jn(u,e,0)});e.asyncDep=s}else Za(e,s)}else Vv(e)}function Za(e,t,r){he(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=Yh(t)),Vv(e)}function Vv(e,t,r){const n=e.type;e.render||(e.render=n.render||Yt);{const i=eo(e);vr();try{p0(e)}finally{pr(),i()}}}const J0={get(e,t){return st(e,"get",""),e[t]}};function Q0(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,J0),slots:e.slots,emit:e.emit,expose:t}}function xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Yh(Ny(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ii)return Ii[r](e)},has(t,r){return r in t||r in Ii}})):e.proxy}function eu(e,t=!0){return he(e)?e.displayName||e.name:e.name||t&&e.__name}function Z0(e){return he(e)&&"__vccOpts"in e}const We=(e,t)=>jy(e,t,$n);function Et(e,t,r){try{as(-1);const n=arguments.length;return n===2?De(t)&&!ve(t)?Vn(t)?Fe(e,null,[t]):Fe(e,t):Fe(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Vn(r)&&(r=[r]),Fe(e,t,r))}finally{as(1)}}const eb="3.5.27";let tu;const mc=typeof window<"u"&&window.trustedTypes;if(mc)try{tu=mc.createPolicy("vue",{createHTML:e=>e})}catch{}const $v=tu?e=>tu.createHTML(e):e=>e,tb="http://www.w3.org/2000/svg",rb="http://www.w3.org/1998/Math/MathML",sr=typeof document<"u"?document:null,yc=sr&&sr.createElement("template"),nb={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?sr.createElementNS(tb,e):t==="mathml"?sr.createElementNS(rb,e):r?sr.createElement(e,{is:r}):sr.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>sr.createTextNode(e),createComment:e=>sr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,o){const s=r?r.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{yc.innerHTML=$v(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=yc.content;if(n==="svg"||n==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Er="transition",oi="animation",Wi=Symbol("_vtc"),Wv={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ib=Ye({},iv,Wv),ob=e=>(e.displayName="Transition",e.props=ib,e),sb=ob((e,{slots:t})=>Et(Zy,ab(e),t)),jr=(e,t=[])=>{ve(e)?e.forEach(r=>r(...t)):e&&e(...t)},bc=e=>e?ve(e)?e.some(t=>t.length>1):e.length>1:!1;function ab(e){const t={};for(const k in e)k in Wv||(t[k]=e[k]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:a=`${r}-enter-to`,appearFromClass:u=o,appearActiveClass:c=s,appearToClass:l=a,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=ub(i),p=v&&v[0],b=v&&v[1],{onBeforeEnter:E,onEnter:m,onEnterCancelled:g,onLeave:y,onLeaveCancelled:_,onBeforeAppear:S=E,onAppear:A=m,onAppearCancelled:I=g}=t,C=(k,N,$,ee)=>{k._enterCancelled=ee,qr(k,N?l:a),qr(k,N?c:s),$&&$()},R=(k,N)=>{k._isLeaving=!1,qr(k,f),qr(k,h),qr(k,d),N&&N()},P=k=>(N,$)=>{const ee=k?A:m,B=()=>C(N,k,$);jr(ee,[N,B]),Ec(()=>{qr(N,k?u:o),nr(N,k?l:a),bc(ee)||_c(N,n,p,B)})};return Ye(t,{onBeforeEnter(k){jr(E,[k]),nr(k,o),nr(k,s)},onBeforeAppear(k){jr(S,[k]),nr(k,u),nr(k,c)},onEnter:P(!1),onAppear:P(!0),onLeave(k,N){k._isLeaving=!0;const $=()=>R(k,N);nr(k,f),k._enterCancelled?(nr(k,d),Tc(k)):(Tc(k),nr(k,d)),Ec(()=>{k._isLeaving&&(qr(k,f),nr(k,h),bc(y)||_c(k,n,b,$))}),jr(y,[k,$])},onEnterCancelled(k){C(k,!1,void 0,!0),jr(g,[k])},onAppearCancelled(k){C(k,!0,void 0,!0),jr(I,[k])},onLeaveCancelled(k){R(k),jr(_,[k])}})}function ub(e){if(e==null)return null;if(De(e))return[na(e.enter),na(e.leave)];{const t=na(e);return[t,t]}}function na(e){return kh(e)}function nr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Wi]||(e[Wi]=new Set)).add(t)}function qr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Wi];r&&(r.delete(t),r.size||(e[Wi]=void 0))}function Ec(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let lb=0;function _c(e,t,r,n){const i=e._endId=++lb,o=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(o,r);const{type:s,timeout:a,propCount:u}=cb(e,t);if(!s)return n();const c=s+"end";let l=0;const f=()=>{e.removeEventListener(c,d),o()},d=h=>{h.target===e&&++l>=u&&f()};setTimeout(()=>{l<u&&f()},a+1),e.addEventListener(c,d)}function cb(e,t){const r=window.getComputedStyle(e),n=v=>(r[v]||"").split(", "),i=n(`${Er}Delay`),o=n(`${Er}Duration`),s=Sc(i,o),a=n(`${oi}Delay`),u=n(`${oi}Duration`),c=Sc(a,u);let l=null,f=0,d=0;t===Er?s>0&&(l=Er,f=s,d=o.length):t===oi?c>0&&(l=oi,f=c,d=u.length):(f=Math.max(s,c),l=f>0?s>c?Er:oi:null,d=l?l===Er?o.length:u.length:0);const h=l===Er&&/\b(?:transform|all)(?:,|$)/.test(n(`${Er}Property`).toString());return{type:l,timeout:f,propCount:d,hasTransform:h}}function Sc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,n)=>wc(r)+wc(e[n])))}function wc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Tc(e){return(e?e.ownerDocument:document).body.offsetHeight}function fb(e,t,r){const n=e[Wi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Ac=Symbol("_vod"),db=Symbol("_vsh"),hb=Symbol(""),vb=/(?:^|;)\s*display\s*:/;function pb(e,t,r){const n=e.style,i=He(r);let o=!1;if(r&&!i){if(t)if(He(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();r[a]==null&&Mo(n,a,"")}else for(const s in t)r[s]==null&&Mo(n,s,"");for(const s in r)s==="display"&&(o=!0),Mo(n,s,r[s])}else if(i){if(t!==r){const s=n[hb];s&&(r+=";"+s),n.cssText=r,o=vb.test(r)}}else t&&e.removeAttribute("style");Ac in e&&(e[Ac]=o?n.display:"",e[db]&&(n.display="none"))}const Ic=/\s*!important$/;function Mo(e,t,r){if(ve(r))r.forEach(n=>Mo(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=gb(e,t);Ic.test(r)?e.setProperty(cn(n),r.replace(Ic,""),"important"):e[n]=r}}const Cc=["Webkit","Moz","ms"],ia={};function gb(e,t){const r=ia[t];if(r)return r;let n=Lt(t);if(n!=="filter"&&n in e)return ia[t]=n;n=ws(n);for(let i=0;i<Cc.length;i++){const o=Cc[i]+n;if(o in e)return ia[t]=o}return t}const kc="http://www.w3.org/1999/xlink";function Rc(e,t,r,n,i,o=dy(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(kc,t.slice(6,t.length)):e.setAttributeNS(kc,t,r):r==null||o&&!Rh(r)?e.removeAttribute(t):e.setAttribute(t,o?"":Ur(r)?String(r):r)}function Pc(e,t,r,n,i){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?$v(r):r);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,u=r==null?e.type==="checkbox"?"on":"":String(r);(a!==u||!("_value"in e))&&(e.value=u),r==null&&e.removeAttribute(t),e._value=r;return}let s=!1;if(r===""||r==null){const a=typeof e[t];a==="boolean"?r=Rh(r):r==null&&a==="string"?(r="",s=!0):a==="number"&&(r=0,s=!0)}try{e[t]=r}catch{}s&&e.removeAttribute(i||t)}function En(e,t,r,n){e.addEventListener(t,r,n)}function mb(e,t,r,n){e.removeEventListener(t,r,n)}const Oc=Symbol("_vei");function yb(e,t,r,n,i=null){const o=e[Oc]||(e[Oc]={}),s=o[t];if(n&&s)s.value=n;else{const[a,u]=bb(t);if(n){const c=o[t]=Sb(n,i);En(e,a,c,u)}else s&&(mb(e,a,s,u),o[t]=void 0)}}const xc=/(?:Once|Passive|Capture)$/;function bb(e){let t;if(xc.test(e)){t={};let n;for(;n=e.match(xc);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):cn(e.slice(2)),t]}let oa=0;const Eb=Promise.resolve(),_b=()=>oa||(Eb.then(()=>oa=0),oa=Date.now());function Sb(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;qt(wb(n,r.value),t,5,[n])};return r.value=e,r.attached=_b(),r}function wb(e,t){if(ve(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Nc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Tb=(e,t,r,n,i,o)=>{const s=i==="svg";t==="class"?fb(e,n,s):t==="style"?pb(e,r,n):Yi(t)?Ju(t)||yb(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ab(e,t,n,s))?(Pc(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Rc(e,t,n,s,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!He(n))?Pc(e,Lt(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Rc(e,t,n,s))};function Ab(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nc(t)&&he(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Nc(t)&&He(r)?!1:t in e}const Lc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ve(t)?r=>Rn(t,r):t};function Ib(e){e.target.composing=!0}function Mc(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const sa=Symbol("_assign");function Dc(e,t,r){return t&&(e=e.trim()),r&&(e=Zu(e)),e}const Xx={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[sa]=Lc(i);const o=n||i.props&&i.props.type==="number";En(e,t?"change":"input",s=>{s.target.composing||e[sa](Dc(e.value,r,o))}),(r||o)&&En(e,"change",()=>{e.value=Dc(e.value,r,o)}),t||(En(e,"compositionstart",Ib),En(e,"compositionend",Mc),En(e,"change",Mc))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:o}},s){if(e[sa]=Lc(s),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Zu(e.value):e.value,u=t??"";a!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===u)||(e.value=u))}},Cb=["ctrl","shift","alt","meta"],kb={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Cb.some(r=>e[`${r}Key`]&&!t.includes(r))},Yx=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=((i,...o)=>{for(let s=0;s<t.length;s++){const a=kb[t[s]];if(a&&a(i,t))return}return e(i,...o)}))},Gv=Ye({patchProp:Tb},nb);let Ri,Uc=!1;function Rb(){return Ri||(Ri=M0(Gv))}function Pb(){return Ri=Uc?Ri:D0(Gv),Uc=!0,Ri}const Ob=((...e)=>{const t=Rb().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=zv(n);if(!i)return;const o=t._component;!he(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=r(i,!1,Kv(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t}),xb=((...e)=>{const t=Pb().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=zv(n);if(i)return r(i,!0,Kv(i))},t});function Kv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zv(e){return He(e)?document.querySelector(e):e}const Nb=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Lb=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Mb=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Db(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Ub(e);return}return t}function Ub(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ls(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Mb.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Nb.test(e)||Lb.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Db)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const Fb=/#/g,Hb=/&/g,Bb=/\//g,jb=/=/g,vl=/\+/g,qb=/%5e/gi,Vb=/%60/gi,$b=/%7c/gi,Wb=/%20/gi,Gb=/%2f/gi;function Kb(e){return encodeURI(""+e).replace($b,"|")}function ru(e){return Kb(typeof e=="string"?e:JSON.stringify(e)).replace(vl,"%2B").replace(Wb,"+").replace(Fb,"%23").replace(Hb,"%26").replace(Vb,"`").replace(qb,"^").replace(Bb,"%2F")}function aa(e){return ru(e).replace(jb,"%3D")}function Gi(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Fc(e){return Gi(e.replace(Gb,"%252F"))}function zb(e){return Gi(e.replace(vl," "))}function Xb(e){return Gi(e.replace(vl," "))}function pl(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const r of e.split("&")){const n=r.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const i=zb(n[1]);if(i==="__proto__"||i==="constructor")continue;const o=Xb(n[2]||"");t[i]===void 0?t[i]=o:Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]}return t}function Yb(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(r=>`${aa(e)}=${ru(r)}`).join("&"):`${aa(e)}=${ru(t)}`:aa(e)}function Jb(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Yb(t,e[t])).filter(Boolean).join("&")}const Qb=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Zb=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,eE=/^([/\\]\s*){2,}[^/\\]/,tE=/^[\s\0]*(blob|data|javascript|vbscript):$/i,rE=/\/$|\/\?|\/#/,nE=/^\.?\//;function Hr(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Qb.test(e):Zb.test(e)||(t.acceptRelative?eE.test(e):!1)}function iE(e){return!!e&&tE.test(e)}function nu(e="",t){return t?rE.test(e):e.endsWith("/")}function Ki(e="",t){if(!t)return(nu(e)?e.slice(0,-1):e)||"/";if(!nu(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");i!==-1&&(r=e.slice(0,i),n=e.slice(i));const[o,...s]=r.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function Xv(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(nu(e,!0))return e||"/";let r=e,n="";const i=e.indexOf("#");if(i!==-1&&(r=e.slice(0,i),n=e.slice(i),!r))return n;const[o,...s]=r.split("?");return o+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function oE(e,t){if(Jv(t)||Hr(e))return e;const r=Ki(t);if(e.startsWith(r)){const n=e[r.length];if(!n||n==="/"||n==="?")return e}return gl(r,e)}function Hc(e,t){if(Jv(t))return e;const r=Ki(t);if(!e.startsWith(r))return e;const n=e[r.length];if(n&&n!=="/"&&n!=="?")return e;const i=e.slice(r.length);return i[0]==="/"?i:"/"+i}function Yv(e,t){const r=ep(e),n={...pl(r.search),...t};return r.search=Jb(n),uE(r)}function Jv(e){return!e||e==="/"}function sE(e){return e&&e!=="/"}function gl(e,...t){let r=e||"";for(const n of t.filter(i=>sE(i)))if(r){const i=n.replace(nE,"");r=Xv(r)+i}else r=n;return r}function Qv(...e){const t=/\/(?!\/)/,r=e.filter(Boolean),n=[];let i=0;for(const s of r)if(!(!s||s==="/")){for(const[a,u]of s.split(t).entries())if(!(!u||u===".")){if(u===".."){if(n.length===1&&Hr(n[0]))continue;n.pop(),i--;continue}if(a===1&&n[n.length-1]?.endsWith(":/")){n[n.length-1]+="/"+u;continue}n.push(u),i++}}let o=n.join("/");return i>=0?r[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:r[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*i)+o,r[r.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function aE(e,t){return Gi(Ki(e))===Gi(Ki(t))}const Zv=Symbol.for("ufo:protocolRelative");function ep(e="",t){const r=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){const[,f,d=""]=r;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!Hr(e,{acceptRelative:!0}))return Bc(e);const[,n="",i,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];n==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:u,search:c,hash:l}=Bc(a);return{protocol:n.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:s,pathname:u,search:c,hash:l,[Zv]:!n}}function Bc(e=""){const[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}function uE(e){const t=e.pathname||"",r=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",n=e.hash||"",i=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Zv]?(e.protocol||"")+"//":"")+i+o+t+r+n}let lE=class extends Error{constructor(t,r){super(t,r),this.name="FetchError",r?.cause&&!this.cause&&(this.cause=r.cause)}};function cE(e){const t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",i=`[${r}] ${JSON.stringify(n)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",s=`${i}: ${o}${t?` ${t}`:""}`,a=new lE(s,e.error?{cause:e.error}:void 0);for(const u of["request","options","response"])Object.defineProperty(a,u,{get(){return e[u]}});for(const[u,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,u,{get(){return e.response&&e.response[c]}});return a}const fE=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function jc(e="GET"){return fE.has(e.toUpperCase())}function dE(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const hE=new Set(["image/svg","application/xml","application/xhtml","application/html"]),vE=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function pE(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return vE.test(t)?"json":t==="text/event-stream"?"stream":hE.has(t)||t.startsWith("text/")?"text":"blob"}function gE(e,t,r,n){const i=mE(t?.headers??e?.headers,r?.headers,n);let o;return(r?.query||r?.params||t?.params||t?.query)&&(o={...r?.params,...r?.query,...t?.params,...t?.query}),{...r,...t,query:o,params:o,headers:i}}function mE(e,t,r){if(!t)return new r(e);const n=new r(t);if(e)for(const[i,o]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(i,o);return n}async function po(e,t){if(t)if(Array.isArray(t))for(const r of t)await r(e);else await t(e)}const yE=new Set([408,409,425,429,500,502,503,504]),bE=new Set([101,204,205,304]);function tp(e={}){const{fetch:t=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=e;async function i(a){const u=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!u){let l;typeof a.options.retry=="number"?l=a.options.retry:l=jc(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(l>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):yE.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),o(a.request,{...a.options,retry:l-1})}}const c=cE(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,o),c}const o=async function(u,c={}){const l={request:u,options:gE(u,c,e.defaults,r),response:void 0,error:void 0};if(l.options.method&&(l.options.method=l.options.method.toUpperCase()),l.options.onRequest&&(await po(l,l.options.onRequest),l.options.headers instanceof r||(l.options.headers=new r(l.options.headers||{}))),typeof l.request=="string"&&(l.options.baseURL&&(l.request=oE(l.request,l.options.baseURL)),l.options.query&&(l.request=Yv(l.request,l.options.query),delete l.options.query),"query"in l.options&&delete l.options.query,"params"in l.options&&delete l.options.params),l.options.body&&jc(l.options.method))if(dE(l.options.body)){const h=l.options.headers.get("content-type");typeof l.options.body!="string"&&(l.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(l.options.body).toString():JSON.stringify(l.options.body)),h||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")}else("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half"));let f;if(!l.options.signal&&l.options.timeout){const h=new n;f=setTimeout(()=>{const v=new Error("[TimeoutError]: The operation was aborted due to timeout");v.name="TimeoutError",v.code=23,h.abort(v)},l.options.timeout),l.options.signal=h.signal}try{l.response=await t(l.request,l.options)}catch(h){return l.error=h,l.options.onRequestError&&await po(l,l.options.onRequestError),await i(l)}finally{f&&clearTimeout(f)}if((l.response.body||l.response._bodyInit)&&!bE.has(l.response.status)&&l.options.method!=="HEAD"){const h=(l.options.parseResponse?"json":l.options.responseType)||pE(l.response.headers.get("content-type")||"");switch(h){case"json":{const v=await l.response.text(),p=l.options.parseResponse||ls;l.response._data=p(v);break}case"stream":{l.response._data=l.response.body||l.response._bodyInit;break}default:l.response._data=await l.response[h]()}}return l.options.onResponse&&await po(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await po(l,l.options.onResponseError),await i(l)):l.response},s=async function(u,c){return(await o(u,c))._data};return s.raw=o,s.native=(...a)=>t(...a),s.create=(a={},u={})=>tp({...e,...u,defaults:{...e.defaults,...u.defaults,...a}}),s}const cs=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),EE=cs.fetch?(...e)=>cs.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),_E=cs.Headers,SE=cs.AbortController,wE=tp({fetch:EE,Headers:_E,AbortController:SE}),TE=wE,AE=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,ml=()=>AE().app,IE=()=>ml().baseURL,CE=()=>ml().buildAssetsDir,yl=(...e)=>Qv(rp(),CE(),...e),rp=(...e)=>{const t=ml(),r=t.cdnURL||t.baseURL;return e.length?Qv(r,...e):r};globalThis.__buildAssetsURL=yl,globalThis.__publicAssetsURL=rp;globalThis.$fetch||(globalThis.$fetch=TE.create({baseURL:IE()}));"global"in globalThis||(globalThis.global=globalThis);function iu(e,t={},r){for(const n in e){const i=e[n],o=r?`${r}:${n}`:n;typeof i=="object"&&i!==null?iu(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const kE={run:e=>e()},RE=()=>kE,np=typeof console.createTask<"u"?console.createTask:RE;function PE(e,t){const r=t.shift(),n=np(r);return e.reduce((i,o)=>i.then(()=>n.run(()=>o(...t))),Promise.resolve())}function OE(e,t){const r=t.shift(),n=np(r);return Promise.all(e.map(i=>n.run(()=>i(...t))))}function ua(e,t){for(const r of[...e])r(t)}let xE=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,r,n={}){if(!t||typeof r!="function")return()=>{};const i=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!n.allowDeprecated){let s=o.message;s||(s=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!r.name)try{Object.defineProperty(r,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(r),()=>{r&&(this.removeHook(t,r),r=void 0)}}hookOnce(t,r){let n,i=(...o)=>(typeof n=="function"&&n(),n=void 0,i=void 0,r(...o));return n=this.hook(t,i),n}removeHook(t,r){if(this._hooks[t]){const n=this._hooks[t].indexOf(r);n!==-1&&this._hooks[t].splice(n,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,r){this._deprecatedHooks[t]=typeof r=="string"?{to:r}:r;const n=this._hooks[t]||[];delete this._hooks[t];for(const i of n)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const r in t)this.deprecateHook(r,t[r])}addHooks(t){const r=iu(t),n=Object.keys(r).map(i=>this.hook(i,r[i]));return()=>{for(const i of n.splice(0,n.length))i()}}removeHooks(t){const r=iu(t);for(const n in r)this.removeHook(n,r[n])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...r){return r.unshift(t),this.callHookWith(PE,t,...r)}callHookParallel(t,...r){return r.unshift(t),this.callHookWith(OE,t,...r)}callHookWith(t,r,...n){const i=this._before||this._after?{name:r,args:n,context:{}}:void 0;this._before&&ua(this._before,i);const o=t(r in this._hooks?[...this._hooks[r]]:[],n);return o instanceof Promise?o.finally(()=>{this._after&&i&&ua(this._after,i)}):(this._after&&i&&ua(this._after,i),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const r=this._before.indexOf(t);r!==-1&&this._before.splice(r,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const r=this._after.indexOf(t);r!==-1&&this._after.splice(r,1)}}}};function NE(){return new xE}function LE(e={}){let t,r=!1;const n=s=>{if(t&&t!==s)throw new Error("Context conflict")};let i;if(e.asyncContext){const s=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?i=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(i){const s=i.getStore();if(s!==void 0)return s}return t};return{use:()=>{const s=o();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>o(),set:(s,a)=>{a||n(s),t=s,r=!0},unset:()=>{t=void 0,r=!1},call:(s,a)=>{n(s),t=s;try{return i?i.run(s,a):a()}finally{r||(t=void 0)}},async callAsync(s,a){t=s;const u=()=>{t=s},c=()=>t===s?u:void 0;ou.add(c);try{const l=i?i.run(s,a):a();return r||(t=void 0),await l}finally{ou.delete(c)}}}}function ME(e={}){const t={};return{get(r,n={}){return t[r]||(t[r]=LE({...e,...n})),t[r]}}}const fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},qc="__unctx__",DE=fs[qc]||(fs[qc]=ME()),UE=(e,t={})=>DE.get(e,t),Vc="__unctx_async_handlers__",ou=fs[Vc]||(fs[Vc]=new Set);function Pi(e){const t=[];for(const i of ou){const o=i();o&&t.push(o)}const r=()=>{for(const i of t)i()};let n=e();return n&&typeof n=="object"&&"catch"in n&&(n=n.catch(i=>{throw r(),i})),[n,r]}const $c=!1,FE=!1,Wc={id:"__nuxt-loader"},HE={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},BE="#__nuxt",ip="nuxt-app",Gc=36e5,jE="vite:preloadError";function op(e=ip){return UE(e,{asyncContext:!1})}const qE="__nuxt_plugin";function VE(e){let t=0;const r={_id:e.id||ip||"nuxt-app",_scope:hy(),provide:void 0,versions:{get nuxt(){return"4.3.0"},get vue(){return r.vueApp.version}},payload:dr({...e.ssrContext?.payload||{},data:dr({}),state:Fr({}),once:new Set,_errors:dr({})}),static:{data:{}},runWithContext(i){return r._scope.active&&!Lh()?r._scope.run(()=>Kc(r,i)):Kc(r,i)},isHydrating:!0,deferHydration(){if(!r.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return r.isHydrating=!1,r.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:dr({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const o in i)switch(o){case"data":case"state":case"_errors":Object.assign(r.payload[o],i[o]);break;default:r.payload[o]=i[o]}}r.hooks=NE(),r.hook=r.hooks.hook,r.callHook=r.hooks.callHook,r.provide=(i,o)=>{const s="$"+i;go(r,s,o),go(r.vueApp.config.globalProperties,s,o)},go(r.vueApp,"$nuxt",r),go(r.vueApp.config.globalProperties,"$nuxt",r);{window.addEventListener(jE,o=>{r.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=Ve;const i=r.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});r.hook("app:mounted",i)}const n=r.payload.config;return r.provide("config",n),r}function $E(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function WE(e,t){if(typeof t=="function"){const{provide:r}=await e.runWithContext(()=>t(e))||{};if(r&&typeof r=="object")for(const n in r)e.provide(n,r[n])}}async function GE(e,t){const r=new Set,n=[],i=[];let o,s=0;async function a(u){const c=u.dependsOn?.filter(l=>t.some(f=>f._name===l)&&!r.has(l))??[];if(c.length>0)n.push([new Set(c),u]);else{const l=WE(e,u).then(async()=>{u._name&&(r.add(u._name),await Promise.all(n.map(async([f,d])=>{f.has(u._name)&&(f.delete(u._name),f.size===0&&(s++,await a(d)))})))}).catch(f=>{if(!u.parallel&&!e.payload.error)throw f;o||=f});u.parallel?i.push(l):await l}}for(const u of t)$E(e,u);for(const u of t)await a(u);if(await Promise.all(i),s)for(let u=0;u<s;u++)await Promise.all(i);if(o)throw e.payload.error||o}function tr(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[qE]:!0,_name:t})}function Kc(e,t,r){const n=()=>t();return op(e._id).set(e),e.vueApp.runWithContext(n)}function KE(e){let t;return ul()&&(t=Zn()?.appContext.app.$nuxt),t||=op(e).tryUse(),t||null}function Ve(e){const t=KE(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function to(e){return Ve().$config}function go(e,t,r){Object.defineProperty(e,t,{get:()=>r})}function la(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function su(e,t,r=".",n){if(!la(t))return su(e,{},r,n);const i=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const s=e[o];s!=null&&(n&&n(i,o,s,r)||(Array.isArray(s)&&Array.isArray(i[o])?i[o]=[...s,...i[o]]:la(s)&&la(i[o])?i[o]=su(s,i[o],(r?`${r}.`:"")+o.toString(),n):i[o]=s))}return i}function zE(e){return(...t)=>t.reduce((r,n)=>su(r,n,"",e),{})}const sp=zE();function XE(e,t){try{return t in e}catch{return!1}}class zc extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,r={}){super(t,r),r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const t={message:this.message,statusCode:au(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=ap(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function YE(e){if(typeof e=="string")return new zc(e);if(JE(e))return e;const t=new zc(e.message??e.statusMessage??"",{cause:e.cause||e});if(XE(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=au(e.statusCode,t.statusCode):e.status&&(t.statusCode=au(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const r=t.statusMessage;ap(t.statusMessage)!==r&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function JE(e){return e?.constructor?.__h3_error__===!0}const QE=/[^\u0009\u0020-\u007E]/g;function ap(e=""){return e.replace(QE,"")}function au(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const ZE=Symbol("layout-meta"),Ns=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const St=()=>Ve()?.$router,e_=()=>ul()?It(Ns,Ve()._route):Ve()._route;function Zx(e){return e}const t_=()=>{try{if(Ve()._processingMiddleware)return!0}catch{return!1}return!1},up=(e,t)=>{e||="/";const r=typeof e=="string"?e:"path"in e?uu(e):St().resolve(e).href;if(t?.open){const{target:u="_blank",windowFeatures:c={}}=t.open,l=[];for(const[f,d]of Object.entries(c))d!==void 0&&l.push(`${f.toLowerCase()}=${d}`);return open(r,u,l.join(", ")),Promise.resolve()}const n=Hr(r,{acceptRelative:!0}),i=t?.external||n;if(i){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:u}=new URL(r,window.location.href);if(u&&iE(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const o=t_();if(!i&&o){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:l}=ep(e);return{path:u,...c&&{query:pl(c)},...l&&{hash:l},replace:!0}}return{...e,replace:!0}}return e}const s=St(),a=Ve();return i?(a._scope.stop(),t?.replace?location.replace(r):location.href=r,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?s.replace(e):s.push(e)};function uu(e){return Yv(e.path||"",e.query||{})+(e.hash||"")}const lp="__nuxt_error",Ls=()=>Jh(Ve().payload,"error"),Kr=e=>{const t=on(e);try{const r=Ls();Ve().hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},r_=async(e={})=>{const t=Ve(),r=Ls();t.callHook("app:error:cleared",e),e.redirect&&await St().replace(e.redirect),r.value=void 0},cp=e=>!!e&&typeof e=="object"&&lp in e,on=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=YE(e);return Object.defineProperty(t,lp,{value:!0,configurable:!1,writable:!1}),t};function n_(e){const t=o_(e),r=new ArrayBuffer(t.length),n=new DataView(r);for(let i=0;i<r.byteLength;i++)n.setUint8(i,t.charCodeAt(i));return r}const i_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function o_(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",r=0,n=0;for(let i=0;i<e.length;i++)r<<=6,r|=i_.indexOf(e[i]),n+=6,n===24&&(t+=String.fromCharCode((r&16711680)>>16),t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255),r=n=0);return n===12?(r>>=4,t+=String.fromCharCode(r)):n===18&&(r>>=2,t+=String.fromCharCode((r&65280)>>8),t+=String.fromCharCode(r&255)),t}const s_=-1,a_=-2,u_=-3,l_=-4,c_=-5,f_=-6;function d_(e,t){return h_(JSON.parse(e),t)}function h_(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const r=e,n=Array(r.length);let i=null;function o(s,a=!1){if(s===s_)return;if(s===u_)return NaN;if(s===l_)return 1/0;if(s===c_)return-1/0;if(s===f_)return-0;if(a||typeof s!="number")throw new Error("Invalid input");if(s in n)return n[s];const u=r[s];if(!u||typeof u!="object")n[s]=u;else if(Array.isArray(u))if(typeof u[0]=="string"){const c=u[0],l=t&&Object.hasOwn(t,c)?t[c]:void 0;if(l){let f=u[1];if(typeof f!="number"&&(f=r.push(u[1])-1),i??=new Set,i.has(f))throw new Error("Invalid circular reference");return i.add(f),n[s]=l(o(f)),i.delete(f),n[s]}switch(c){case"Date":n[s]=new Date(u[1]);break;case"Set":const f=new Set;n[s]=f;for(let v=1;v<u.length;v+=1)f.add(o(u[v]));break;case"Map":const d=new Map;n[s]=d;for(let v=1;v<u.length;v+=2)d.set(o(u[v]),o(u[v+1]));break;case"RegExp":n[s]=new RegExp(u[1],u[2]);break;case"Object":n[s]=Object(u[1]);break;case"BigInt":n[s]=BigInt(u[1]);break;case"null":const h=Object.create(null);n[s]=h;for(let v=1;v<u.length;v+=2)h[u[v]]=o(u[v+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(r[u[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const v=globalThis[c],p=o(u[1]),b=new v(p);n[s]=u[2]!==void 0?b.subarray(u[2],u[3]):b;break}case"ArrayBuffer":{const v=u[1];if(typeof v!="string")throw new Error("Invalid ArrayBuffer encoding");const p=n_(v);n[s]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const v=c.slice(9);n[s]=Temporal[v].from(u[1]);break}case"URL":{const v=new URL(u[1]);n[s]=v;break}case"URLSearchParams":{const v=new URLSearchParams(u[1]);n[s]=v;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(u.length);n[s]=c;for(let l=0;l<u.length;l+=1){const f=u[l];f!==a_&&(c[l]=o(f))}}else{const c={};n[s]=c;for(const l in u){if(l==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=u[l];c[l]=o(f)}}return n[s]}return o(0)}const v_=new Set(["link","style","script","noscript"]),p_=new Set(["title","titleTemplate","script","style","noscript"]),Xc=new Set(["base","meta","link","style","script","noscript"]),g_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),m_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),y_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),b_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),E_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function lu(e,t={},r){for(const n in e){const i=e[n],o=r?`${r}:${n}`:n;typeof i=="object"&&i!==null?lu(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const fp=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function dp(e,t,r,n){for(let i=r;i<e.length;i+=1)try{const o=n?n.run(()=>e[i](...t)):e[i](...t);if(o instanceof Promise)return o.then(()=>dp(e,t,i+1,n))}catch(o){return Promise.reject(o)}}function __(e,t,r){if(e.length>0)return dp(e,t,0,fp(r))}function S_(e,t,r){if(e.length>0){const n=fp(r);return Promise.all(e.map(i=>n.run(()=>i(...t))))}}function ca(e,t){for(const r of[...e])r(t)}var w_=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,r={}){if(!e||typeof t!="function")return()=>{};const n=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${n} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let r,n=(...i)=>(typeof r=="function"&&r(),r=void 0,n=void 0,t(...i));return r=this.hook(e,n),r}removeHook(e,t){const r=this._hooks[e];if(r){const n=r.indexOf(t);n!==-1&&r.splice(n,1),r.length===0&&(this._hooks[e]=void 0)}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const r=this._hooks[e]||[];this._hooks[e]=void 0;for(const n of r)this.hook(e,n)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=lu(e),r=Object.keys(t).map(n=>this.hook(n,t[n]));return()=>{for(const n of r)n();r.length=0}}removeHooks(e){const t=lu(e);for(const r in t)this.removeHook(r,t[r])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(__,e,t)}callHookParallel(e,...t){return this.callHookWith(S_,e,t)}callHookWith(e,t,r){const n=this._before||this._after?{name:t,args:r,context:{}}:void 0;this._before&&ca(this._before,n);const i=e(this._hooks[t]?[...this._hooks[t]]:[],r,t);return i instanceof Promise?i.finally(()=>{this._after&&n&&ca(this._after,n)}):(this._after&&n&&ca(this._after,n),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function T_(){return new w_}const A_=["name","property","http-equiv"],I_=new Set(["viewport","description","keywords","robots"]);function hp(e){const t=e.split(":");return t.length?E_.has(t[1]):!1}function cu(e){const{props:t,tag:r}=e;if(m_.has(r))return r;if(r==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const n of A_)if(t[n]!==void 0){const i=t[n],o=i&&typeof i=="string"&&i.includes(":"),s=i&&I_.has(i),u=!(o||s)&&e.key?`:key:${e.key}`:"";return`${r}:${i}${u}`}}if(e.key)return`${r}:key:${e.key}`;if(t.id)return`${r}:id:${t.id}`;if(p_.has(r)){const n=e.textContent||e.innerHTML;if(n)return`${r}:content:${n}`}}function Yc(e){const t=e._h||e._d;if(t)return t;const r=e.textContent||e.innerHTML;return r||`${e.tag}:${Object.entries(e.props).map(([n,i])=>`${n}:${String(i)}`).join(",")}`}function ds(e,t,r){typeof e==="function"&&(!r||r!=="titleTemplate"&&!(r[0]==="o"&&r[1]==="n"))&&(e=e());const i=t?t(r,e):e;if(Array.isArray(i))return i.map(o=>ds(o,t));if(i?.constructor===Object){const o={};for(const s of Object.keys(i))o[s]=ds(i[s],t,s);return o}return i}function C_(e,t){const r=e==="style"?new Map:new Set;function n(i){if(i==null||i===void 0)return;const o=String(i).trim();if(o)if(e==="style"){const[s,...a]=o.split(":").map(u=>u?u.trim():"");s&&a.length&&r.set(s,a.join(":"))}else o.split(" ").filter(Boolean).forEach(s=>r.add(s))}return typeof t=="string"?e==="style"?t.split(";").forEach(n):n(t):Array.isArray(t)?t.forEach(i=>n(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,o])=>{o&&o!=="false"&&(e==="style"?r.set(String(i).trim(),String(o)):n(i))}),r}function vp(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([r,n])=>{if(n===null){e.props[r]=null;return}if(r==="class"||r==="style"){e.props[r]=C_(r,n);return}if(y_.has(r)){if(["textContent","innerHTML"].includes(r)&&typeof n=="object"){let a=t.type;if(t.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;t.type=a,e.props.type=a,e[r]=JSON.stringify(n)}else e[r]=n;return}const i=String(n),o=r.startsWith("data-"),s=e.tag==="meta"&&r==="content";i==="true"||i===""?e.props[r]=o||s?i:!0:!n&&o&&i==="false"?e.props[r]="false":n!==void 0&&(e.props[r]=n)}),e):e}function k_(e,t){const r=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},n=vp({tag:e,props:{}},r);return n.key&&v_.has(n.tag)&&(n.props["data-hid"]=n._h=n.key),n.tag==="script"&&typeof n.innerHTML=="object"&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||"application/json"),Array.isArray(n.props.content)?n.props.content.map(i=>({...n,props:{...n.props,content:i}})):n}function R_(e,t){if(!e)return[];typeof e=="function"&&(e=e());const r=(i,o)=>{for(let s=0;s<t.length;s++)o=t[s](i,o);return o};e=r(void 0,e);const n=[];return e=ds(e,r),Object.entries(e||{}).forEach(([i,o])=>{if(o!==void 0)for(const s of Array.isArray(o)?o:[o])n.push(k_(i,s))}),n.flat()}const Jc=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Qc={base:-10,title:10},P_={critical:-8,high:-1,low:2},Zc={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},O_=/@import/,si=e=>e===""||e===!0;function x_(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let r=100;const n=P_[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Zc;if(t.tag in Qc)r=Qc[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(r=Zc.meta[o])}else if(t.tag==="link"&&t.props.rel)r=i.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);si(t.props.async)?r=i.script.async:t.props.src&&!si(t.props.defer)&&!si(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?r=i.script.sync:(si(t.props.defer)&&t.props.src&&!si(t.props.async)||o==="module")&&(r=i.script.defer)}else t.tag==="style"&&(r=t.innerHTML&&O_.test(t.innerHTML)?i.style.imported:i.style.sync);return(r||100)+n}function ef(e,t){const r=typeof t=="function"?t(e):t,n=r.key||String(e.plugins.size+1);e.plugins.get(n)||(e.plugins.set(n,r),e.hooks.addHooks(r.hooks||{}))}function N_(e={}){const t=T_();t.addHooks(e.hooks||{});const r=!e.document,n=new Map,i=new Map,o=new Set,s={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:r,entries:n,headEntries(){return[...n.values()]},use:a=>ef(s,a),push(a,u){const c={...u||{}};delete c.head;const l=c._index??s._entryCount++,f={_i:l,input:a,options:c},d={_poll(h=!1){s.dirty=!0,!h&&o.add(l),t.callHook("entries:updated",s)},dispose(){n.delete(l)&&s.invalidate()},patch(h){(!c.mode||c.mode==="server"&&r||c.mode==="client"&&!r)&&(f.input=h,n.set(l,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const d=o.values().next().value;o.delete(d);const h=n.get(d);if(h){const v={tags:R_(h.input,e.propResolvers||[]).map(p=>Object.assign(p,h.options)),entry:h};await t.callHook("entries:normalize",v),h._tags=v.tags.map((p,b)=>(p._w=x_(s,p),p._p=(h._i<<10)+b,p._d=cu(p),p))}}let u=!1;a.entries.flatMap(d=>(d._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(Jc).reduce((d,h)=>{const v=String(h._d||h._p);if(!d.has(v))return d.set(v,h);const p=d.get(v);if((h?.tagDuplicateStrategy||(b_.has(h.tag)?"merge":null)||(h.key&&h.key===p.key?"merge":null))==="merge"){const E={...p.props};Object.entries(h.props).forEach(([m,g])=>E[m]=m==="style"?new Map([...p.props.style||new Map,...g]):m==="class"?new Set([...p.props.class||new Set,...g]):g),d.set(v,{...h,props:E})}else h._p>>10===p._p>>10&&h.tag==="meta"&&hp(v)?(d.set(v,Object.assign([...Array.isArray(p)?p:[p],h],h)),u=!0):(h._w===p._w?h._p>p._p:h?._w<p?._w)&&d.set(v,h);return d},a.tagMap);const c=a.tagMap.get("title"),l=a.tagMap.get("titleTemplate");if(s._title=c?.textContent,l){const d=l?.textContent;if(s._titleTemplate=d,d){let h=typeof d=="function"?d(c?.textContent):d;typeof h=="string"&&!s.plugins.has("template-params")&&(h=h.replace("%s",c?.textContent||"")),c?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...c,textContent:h}):(l.tag="title",l.textContent=h)}}a.tags=Array.from(a.tagMap.values()),u&&(a.tags=a.tags.flat().sort(Jc)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const d of a.tags){const{innerHTML:h,tag:v,props:p}=d;if(g_.has(v)&&!(Object.keys(p).length===0&&!d.innerHTML&&!d.textContent)&&!(v==="meta"&&!p.content&&!p["http-equiv"]&&!p.charset)){if(v==="script"&&h){if(String(p.type).endsWith("json")){const b=typeof h=="string"?h:JSON.stringify(h);d.innerHTML=b.replace(/</g,"\\u003C")}else typeof h=="string"&&(d.innerHTML=h.replace(new RegExp(`</${v}`,"g"),`<\\/${v}`));d._d=cu(d)}f.push(d)}}return f},invalidate(){for(const a of n.values())o.add(a._i);s.dirty=!0,t.callHook("entries:updated",s)}};return(e?.plugins||[]).forEach(a=>ef(s,a)),s.hooks.callHook("init",s),e.init?.forEach(a=>a&&s.push(a)),s}const L_=(e,t)=>qe(t)?My(t):t,pp="usehead";function M_(e){return{install(r){r.config.globalProperties.$unhead=e,r.config.globalProperties.$head=e,r.provide(pp,e)}}.install}function D_(){if(ul()){const e=It(pp);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function eN(e,t={}){const r=t.head||D_();return r.ssr?r.push(e||{},t):U_(r,e,t)}function U_(e,t,r={}){const n=Jt(!1);let i;return zy(()=>{const s=n.value?{}:ds(t,L_);i?i.patch(s):i=e.push(s,r)}),Zn()&&(Qn(()=>{i.dispose()}),cv(()=>{n.value=!0}),lv(()=>{n.value=!1})),i}const F_=(e,t)=>[],H_=e=>sp({},...F_().map(t=>t.data).reverse()),B_=H_;let Do;function j_(){return Do=$fetch(yl(`builds/meta/${to().app.buildId}.json`),{responseType:"json"}),Do.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Do}function gp(){return Do||j_()}function mp(e){const t=typeof e=="string"?e:e.path;try{return B_(t)}catch(r){return console.error("[nuxt] Error matching route rules.",r),{}}}async function tf(e,t={}){return null}async function q_(e){return null}let Vr=null;async function V_(){if(Vr)return Vr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await $_(e.textContent||""),r=e.dataset.src?await q_(e.dataset.src):void 0;return Vr={...t,...r,...window.__NUXT__},Vr.config?.public&&(Vr.config.public=Fr(Vr.config.public)),Vr}async function $_(e){return await d_(e,Ve()._payloadRevivers)}function W_(e,t){Ve()._payloadRevivers[e]=t}const G_=[["NuxtError",e=>on(e)],["EmptyShallowRef",e=>Bn(e==="_"?void 0:e==="0n"?BigInt(0):ls(e))],["EmptyRef",e=>Jt(e==="_"?void 0:e==="0n"?BigInt(0):ls(e))],["ShallowRef",e=>Bn(e)],["ShallowReactive",e=>dr(e)],["Ref",e=>Jt(e)],["Reactive",e=>Fr(e)]],K_=tr({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,r;for(const[n,i]of G_)W_(n,i);Object.assign(e.payload,([t,r]=Pi(()=>e.runWithContext(V_)),t=await t,r(),t)),delete window.__NUXT__}});async function bl(e,t={}){const r=t.document||e.resolvedOptions.document;if(!r||!e.dirty)return;const n={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",n),!!n.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{const o=new Map,s=new Promise(h=>{e.resolveTags().then(v=>{h(v.map(p=>{const b=o.get(p._d)||0,E={tag:p,id:(b?`${p._d}:${b}`:p._d)||Yc(p),shouldRender:!0};return p._d&&hp(p._d)&&o.set(p._d,b+1),E}))})});let a=e._dom;if(!a){a={title:r.title,elMap:new Map().set("htmlAttrs",r.documentElement).set("bodyAttrs",r.body)};for(const h of["body","head"]){const v=r[h]?.children;for(const p of v){const b=p.tagName.toLowerCase();if(!Xc.has(b))continue;const E=vp({tag:b,props:{}},{innerHTML:p.innerHTML,...p.getAttributeNames().reduce((m,g)=>(m[g]=p.getAttribute(g),m),{})||{}});if(E.key=p.getAttribute("data-hid")||void 0,E._d=cu(E)||Yc(E),a.elMap.has(E._d)){let m=1,g=E._d;for(;a.elMap.has(g);)g=`${E._d}:${m++}`;a.elMap.set(g,p)}else a.elMap.set(E._d,p)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function u(h,v,p){const b=`${h}:${v}`;a.sideEffects[b]=p,delete a.pendingSideEffects[b]}function c({id:h,$el:v,tag:p}){const b=p.tag.endsWith("Attrs");a.elMap.set(h,v),b||(p.textContent&&p.textContent!==v.textContent&&(v.textContent=p.textContent),p.innerHTML&&p.innerHTML!==v.innerHTML&&(v.innerHTML=p.innerHTML),u(h,"el",()=>{v?.remove(),a.elMap.delete(h)}));for(const E in p.props){if(!Object.prototype.hasOwnProperty.call(p.props,E))continue;const m=p.props[E];if(E.startsWith("on")&&typeof m=="function"){const y=v?.dataset;if(y&&y[`${E}fired`]){const _=E.slice(0,-5);m.call(v,new Event(_.substring(2)))}v.getAttribute(`data-${E}`)!==""&&((p.tag==="bodyAttrs"?r.defaultView:v).addEventListener(E.substring(2),m.bind(v)),v.setAttribute(`data-${E}`,""));continue}const g=`attr:${E}`;if(E==="class"){if(!m)continue;for(const y of m)b&&u(h,`${g}:${y}`,()=>v.classList.remove(y)),!v.classList.contains(y)&&v.classList.add(y)}else if(E==="style"){if(!m)continue;for(const[y,_]of m)u(h,`${g}:${y}`,()=>{v.style.removeProperty(y)}),v.style.setProperty(y,_)}else m!==!1&&m!==null&&(v.getAttribute(E)!==m&&v.setAttribute(E,m===!0?"":String(m)),b&&u(h,g,()=>v.removeAttribute(E)))}}const l=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await s;for(const h of d){const{tag:v,shouldRender:p,id:b}=h;if(p){if(v.tag==="title"){r.title=v.textContent,u("title","",()=>r.title=a.title);continue}h.$el=h.$el||a.elMap.get(b),h.$el?c(h):Xc.has(v.tag)&&l.push(h)}}for(const h of l){const v=h.tag.tagPosition||"head";h.$el=r.createElement(h.tag.tag),c(h),f[v]=f[v]||r.createDocumentFragment(),f[v].appendChild(h.$el)}for(const h of d)await e.hooks.callHook("dom:renderTag",h,r,u);f.head&&r.head.appendChild(f.head),f.bodyOpen&&r.body.insertBefore(f.bodyOpen,r.body.firstChild),f.bodyClose&&r.body.appendChild(f.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function z_(e={}){const t=e.domOptions?.render||bl;e.document=e.document||(typeof window<"u"?document:void 0);const r=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return N_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[r?JSON.parse(r):!1,...e.init||[]]})}function X_(e,t){let r=0;return()=>{const n=++r;t(()=>{r===n&&e()})}}function Y_(e={}){const t=z_({domOptions:{render:X_(()=>bl(t),r=>setTimeout(r,0))},...e});return t.install=M_(t),t}const J_={disableDefaults:!0},Q_=tr({name:"nuxt:head",enforce:"pre",setup(e){const t=Y_(J_);e.vueApp.use(t);{let r=!0;const n=async()=>{r=!1,await bl(t)};t.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!r}),e.hooks.hook("page:start",()=>{r=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||n()}),e.hooks.hook("app:error",n),e.hooks.hook("app:suspense:resolve",n)}}});const _n=typeof document<"u";function yp(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Z_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&yp(e.default)}const Ie=Object.assign;function fa(e,t){const r={};for(const n in t){const i=t[n];r[n]=Vt(i)?i.map(e):e(i)}return r}const Oi=()=>{},Vt=Array.isArray;function rf(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}const bp=/#/g,eS=/&/g,tS=/\//g,rS=/=/g,nS=/\?/g,Ep=/\+/g,iS=/%5B/g,oS=/%5D/g,_p=/%5E/g,sS=/%60/g,Sp=/%7B/g,aS=/%7C/g,wp=/%7D/g,uS=/%20/g;function El(e){return e==null?"":encodeURI(""+e).replace(aS,"|").replace(iS,"[").replace(oS,"]")}function lS(e){return El(e).replace(Sp,"{").replace(wp,"}").replace(_p,"^")}function fu(e){return El(e).replace(Ep,"%2B").replace(uS,"+").replace(bp,"%23").replace(eS,"%26").replace(sS,"`").replace(Sp,"{").replace(wp,"}").replace(_p,"^")}function cS(e){return fu(e).replace(rS,"%3D")}function fS(e){return El(e).replace(bp,"%23").replace(nS,"%3F")}function dS(e){return fS(e).replace(tS,"%2F")}function zi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const hS=/\/$/,vS=e=>e.replace(hS,"");function da(e,t,r="/"){let n,i={},o="",s="";const a=t.indexOf("#");let u=t.indexOf("?");return u=a>=0&&u>a?-1:u,u>=0&&(n=t.slice(0,u),o=t.slice(u,a>0?a:t.length),i=e(o.slice(1))),a>=0&&(n=n||t.slice(0,a),s=t.slice(a,t.length)),n=yS(n??t,r),{fullPath:n+o+s,path:n,query:i,hash:zi(s)}}function pS(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function nf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gS(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&Wn(t.matched[n],r.matched[i])&&Tp(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Wn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Tp(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(!mS(e[r],t[r]))return!1;return!0}function mS(e,t){return Vt(e)?of(e,t):Vt(t)?of(t,e):e?.valueOf()===t?.valueOf()}function of(e,t){return Vt(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function yS(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let o=r.length-1,s,a;for(s=0;s<n.length;s++)if(a=n[s],a!==".")if(a==="..")o>1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(s).join("/")}const Rt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let du=(function(e){return e.pop="pop",e.push="push",e})({}),ha=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function bS(e){if(!e)if(_n){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vS(e)}const ES=/^[^#]+#/;function _S(e,t){return e.replace(ES,"#")+t}function SS(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Ms=()=>({left:window.scrollX,top:window.scrollY});function wS(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=SS(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function sf(e,t){return(history.state?history.state.position-t:-1)+e}const hu=new Map;function TS(e,t){hu.set(e,t)}function AS(e){const t=hu.get(e);return hu.delete(e),t}function IS(e){return typeof e=="string"||e&&typeof e=="object"}function Ap(e){return typeof e=="string"||typeof e=="symbol"}let Be=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Ip=Symbol("");Be.MATCHER_NOT_FOUND+"",Be.NAVIGATION_GUARD_REDIRECT+"",Be.NAVIGATION_ABORTED+"",Be.NAVIGATION_CANCELLED+"",Be.NAVIGATION_DUPLICATED+"";function Gn(e,t){return Ie(new Error,{type:e,[Ip]:!0},t)}function ir(e,t){return e instanceof Error&&Ip in e&&(t==null||!!(e.type&t))}const CS=["params","query","hash"];function kS(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const r of CS)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}function RS(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<r.length;++n){const i=r[n].replace(Ep," "),o=i.indexOf("="),s=zi(o<0?i:i.slice(0,o)),a=o<0?null:zi(i.slice(o+1));if(s in t){let u=t[s];Vt(u)||(u=t[s]=[u]),u.push(a)}else t[s]=a}return t}function af(e){let t="";for(let r in e){const n=e[r];if(r=cS(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(Vt(n)?n.map(i=>i&&fu(i)):[n&&fu(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function PS(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=Vt(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const OS=Symbol(""),uf=Symbol(""),_l=Symbol(""),Cp=Symbol(""),vu=Symbol("");function ai(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Ir(e,t,r,n,i,o=s=>s()){const s=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((a,u)=>{const c=d=>{d===!1?u(Gn(Be.NAVIGATION_ABORTED,{from:r,to:t})):d instanceof Error?u(d):IS(d)?u(Gn(Be.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(s&&n.enterCallbacks[i]===s&&typeof d=="function"&&s.push(d),a())},l=o(()=>e.call(n&&n.instances[i],t,r,c));let f=Promise.resolve(l);e.length<3&&(f=f.then(c)),f.catch(d=>u(d))})}function va(e,t,r,n,i=o=>o()){const o=[];for(const s of e)for(const a in s.components){let u=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(yp(u)){const c=(u.__vccOpts||u)[t];c&&o.push(Ir(c,r,n,s,a,i))}else{let c=u();o.push(()=>c.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=Z_(l)?l.default:l;s.mods[a]=l,s.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Ir(d,r,n,s,a,i)()}))}}return o}function xS(e,t){const r=[],n=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;s<o;s++){const a=t.matched[s];a&&(e.matched.find(c=>Wn(c,a))?n.push(a):r.push(a));const u=e.matched[s];u&&(t.matched.find(c=>Wn(c,u))||i.push(u))}return[r,n,i]}let NS=()=>location.protocol+"//"+location.host;function kp(e,t){const{pathname:r,search:n,hash:i}=t,o=e.indexOf("#");if(o>-1){let s=i.includes(e.slice(o))?e.slice(o).length:1,a=i.slice(s);return a[0]!=="/"&&(a="/"+a),nf(a,"")}return nf(r,e)+n+i}function LS(e,t,r,n){let i=[],o=[],s=null;const a=({state:d})=>{const h=kp(e,location),v=r.value,p=t.value;let b=0;if(d){if(r.value=h,t.value=d,s&&s===v){s=null;return}b=p?d.position-p.position:0}else n(h);i.forEach(E=>{E(r.value,v,{delta:b,type:du.pop,direction:b?b>0?ha.forward:ha.back:ha.unknown})})};function u(){s=r.value}function c(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return o.push(h),h}function l(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(Ie({},d.state,{scroll:Ms()}),"")}}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:u,listen:c,destroy:f}}function lf(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?Ms():null}}function MS(e){const{history:t,location:r}=window,n={value:kp(e,r)},i={value:t.state};i.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,l){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+u:NS()+e+u;try{t[l?"replaceState":"pushState"](c,"",d),i.value=c}catch(h){console.error(h),r[l?"replace":"assign"](d)}}function s(u,c){o(u,Ie({},t.state,lf(i.value.back,u,i.value.forward,!0),c,{position:i.value.position}),!0),n.value=u}function a(u,c){const l=Ie({},i.value,t.state,{forward:u,scroll:Ms()});o(l.current,l,!0),o(u,Ie({},lf(n.value,u,null),{position:l.position+1},c),!1),n.value=u}return{location:n,state:i,push:a,replace:s}}function DS(e){e=bS(e);const t=MS(e),r=LS(e,t.state,t.location,t.replace);function n(o,s=!0){s||r.pauseListeners(),history.go(o)}const i=Ie({location:"",base:e,go:n,createHref:_S.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Jr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Ke=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Ke||{});const US={type:Jr.Static,value:""},FS=/[a-zA-Z0-9_]/;function HS(e){if(!e)return[[]];if(e==="/")return[[US]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${c}": ${h}`)}let r=Ke.Static,n=r;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,u,c="",l="";function f(){c&&(r===Ke.Static?o.push({type:Jr.Static,value:c}):r===Ke.Param||r===Ke.ParamRegExp||r===Ke.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Jr.Param,value:c,regexp:l,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function d(){c+=u}for(;a<e.length;){if(u=e[a++],u==="\\"&&r!==Ke.ParamRegExp){n=r,r=Ke.EscapeNext;continue}switch(r){case Ke.Static:u==="/"?(c&&f(),s()):u===":"?(f(),r=Ke.Param):d();break;case Ke.EscapeNext:d(),r=n;break;case Ke.Param:u==="("?r=Ke.ParamRegExp:FS.test(u)?d():(f(),r=Ke.Static,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case Ke.ParamRegExp:u===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+u:r=Ke.ParamRegExpEnd:l+=u;break;case Ke.ParamRegExpEnd:f(),r=Ke.Static,u!=="*"&&u!=="?"&&u!=="+"&&a--,l="";break;default:t("Unknown state");break}}return r===Ke.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),s(),i}const cf="[^/]+?",BS={sensitive:!1,strict:!1,start:!0,end:!0};var ct=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(ct||{});const jS=/[.+*?^${}()[\]/\\]/g;function qS(e,t){const r=Ie({},BS,t),n=[];let i=r.start?"^":"";const o=[];for(const c of e){const l=c.length?[]:[ct.Root];r.strict&&!c.length&&(i+="/");for(let f=0;f<c.length;f++){const d=c[f];let h=ct.Segment+(r.sensitive?ct.BonusCaseSensitive:0);if(d.type===Jr.Static)f||(i+="/"),i+=d.value.replace(jS,"\\$&"),h+=ct.Static;else if(d.type===Jr.Param){const{value:v,repeatable:p,optional:b,regexp:E}=d;o.push({name:v,repeatable:p,optional:b});const m=E||cf;if(m!==cf){h+=ct.BonusCustomRegExp;try{`${m}`}catch(y){throw new Error(`Invalid custom RegExp for param "${v}" (${m}): `+y.message)}}let g=p?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;f||(g=b&&c.length<2?`(?:/${g})`:"/"+g),b&&(g+="?"),i+=g,h+=ct.Dynamic,b&&(h+=ct.BonusOptional),p&&(h+=ct.BonusRepeatable),m===".*"&&(h+=ct.BonusWildcard)}l.push(h)}n.push(l)}if(r.strict&&r.end){const c=n.length-1;n[c][n[c].length-1]+=ct.BonusStrict}r.strict||(i+="/?"),r.end?i+="$":r.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,r.sensitive?"":"i");function a(c){const l=c.match(s),f={};if(!l)return null;for(let d=1;d<l.length;d++){const h=l[d]||"",v=o[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function u(c){let l="",f=!1;for(const d of e){(!f||!l.endsWith("/"))&&(l+="/"),f=!1;for(const h of d)if(h.type===Jr.Static)l+=h.value;else if(h.type===Jr.Param){const{value:v,repeatable:p,optional:b}=h,E=v in c?c[v]:"";if(Vt(E)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const m=Vt(E)?E.join("/"):E;if(!m)if(b)d.length<2&&(l.endsWith("/")?l=l.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);l+=m}}return l||"/"}return{re:s,score:n,keys:o,parse:a,stringify:u}}function VS(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===ct.Static+ct.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===ct.Static+ct.Segment?1:-1:0}function Rp(e,t){let r=0;const n=e.score,i=t.score;for(;r<n.length&&r<i.length;){const o=VS(n[r],i[r]);if(o)return o;r++}if(Math.abs(i.length-n.length)===1){if(ff(n))return 1;if(ff(i))return-1}return i.length-n.length}function ff(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const $S={strict:!1,end:!0,sensitive:!1};function WS(e,t,r){const n=qS(HS(e.path),r),i=Ie(n,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function GS(e,t){const r=[],n=new Map;t=rf($S,t);function i(f){return n.get(f)}function o(f,d,h){const v=!h,p=hf(f);p.aliasOf=h&&h.record;const b=rf(t,f),E=[p];if("alias"in f){const y=typeof f.alias=="string"?[f.alias]:f.alias;for(const _ of y)E.push(hf(Ie({},p,{components:h?h.record.components:p.components,path:_,aliasOf:h?h.record:p})))}let m,g;for(const y of E){const{path:_}=y;if(d&&_[0]!=="/"){const S=d.record.path,A=S[S.length-1]==="/"?"":"/";y.path=d.record.path+(_&&A+_)}if(m=WS(y,d,b),h?h.alias.push(m):(g=g||m,g!==m&&g.alias.push(m),v&&f.name&&!vf(m)&&s(f.name)),Pp(m)&&u(m),p.children){const S=p.children;for(let A=0;A<S.length;A++)o(S[A],m,h&&h.children[A])}h=h||m}return g?()=>{s(g)}:Oi}function s(f){if(Ap(f)){const d=n.get(f);d&&(n.delete(f),r.splice(r.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=r.indexOf(f);d>-1&&(r.splice(d,1),f.record.name&&n.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return r}function u(f){const d=XS(f,r);r.splice(d,0,f),f.record.name&&!vf(f)&&n.set(f.record.name,f)}function c(f,d){let h,v={},p,b;if("name"in f&&f.name){if(h=n.get(f.name),!h)throw Gn(Be.MATCHER_NOT_FOUND,{location:f});b=h.record.name,v=Ie(df(d.params,h.keys.filter(g=>!g.optional).concat(h.parent?h.parent.keys.filter(g=>g.optional):[]).map(g=>g.name)),f.params&&df(f.params,h.keys.map(g=>g.name))),p=h.stringify(v)}else if(f.path!=null)p=f.path,h=r.find(g=>g.re.test(p)),h&&(v=h.parse(p),b=h.record.name);else{if(h=d.name?n.get(d.name):r.find(g=>g.re.test(d.path)),!h)throw Gn(Be.MATCHER_NOT_FOUND,{location:f,currentLocation:d});b=h.record.name,v=Ie({},d.params,f.params),p=h.stringify(v)}const E=[];let m=h;for(;m;)E.unshift(m.record),m=m.parent;return{name:b,path:p,params:v,matched:E,meta:zS(E)}}e.forEach(f=>o(f));function l(){r.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:s,clearRoutes:l,getRoutes:a,getRecordMatcher:i}}function df(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function hf(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:KS(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function KS(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function vf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function zS(e){return e.reduce((t,r)=>Ie(t,r.meta),{})}function XS(e,t){let r=0,n=t.length;for(;r!==n;){const o=r+n>>1;Rp(e,t[o])<0?n=o:r=o+1}const i=YS(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function YS(e){let t=e;for(;t=t.parent;)if(Pp(t)&&Rp(e,t)===0)return t}function Pp({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function pf(e){const t=It(_l),r=It(Cp),n=We(()=>{const u=ke(e.to);return t.resolve(u)}),i=We(()=>{const{matched:u}=n.value,{length:c}=u,l=u[c-1],f=r.matched;if(!l||!f.length)return-1;const d=f.findIndex(Wn.bind(null,l));if(d>-1)return d;const h=gf(u[c-2]);return c>1&&gf(l)===h&&f[f.length-1].path!==h?f.findIndex(Wn.bind(null,u[c-2])):d}),o=We(()=>i.value>-1&&tw(r.params,n.value.params)),s=We(()=>i.value>-1&&i.value===r.matched.length-1&&Tp(r.params,n.value.params));function a(u={}){if(ew(u)){const c=t[ke(e.replace)?"replace":"push"](ke(e.to)).catch(Oi);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:We(()=>n.value.href),isActive:o,isExactActive:s,navigate:a}}function JS(e){return e.length===1?e[0]:e}const QS=fn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:pf,setup(e,{slots:t}){const r=Fr(pf(e)),{options:n}=It(_l),i=We(()=>({[mf(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[mf(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&JS(t.default(r));return e.custom?o:Et("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},o)}}}),ZS=QS;function ew(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function tw(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!Vt(i)||i.length!==n.length||n.some((o,s)=>o.valueOf()!==i[s].valueOf()))return!1}return!0}function gf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const mf=(e,t,r)=>e??t??r,rw=fn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=It(vu),i=We(()=>e.route||n.value),o=It(uf,0),s=We(()=>{let c=ke(o);const{matched:l}=i.value;let f;for(;(f=l[c])&&!f.components;)c++;return c}),a=We(()=>i.value.matched[s.value]);On(uf,We(()=>s.value+1)),On(OS,a),On(vu,i);const u=Jt();return xn(()=>[u.value,a.value,e.name],([c,l,f],[d,h,v])=>{l&&(l.instances[f]=c,h&&h!==l&&c&&c===d&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),c&&l&&(!h||!Wn(l,h)||!d)&&(l.enterCallbacks[f]||[]).forEach(p=>p(c))},{flush:"post"}),()=>{const c=i.value,l=e.name,f=a.value,d=f&&f.components[l];if(!d)return yf(r.default,{Component:d,route:c});const h=f.props[l],v=h?h===!0?c.params:typeof h=="function"?h(c):h:null,b=Et(d,Ie({},v,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(f.instances[l]=null)},ref:u}));return yf(r.default,{Component:b,route:c})||b}}});function yf(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Op=rw;function nw(e){const t=GS(e.routes,e),r=e.parseQuery||RS,n=e.stringifyQuery||af,i=e.history,o=ai(),s=ai(),a=ai(),u=Bn(Rt);let c=Rt;_n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=fa.bind(null,M=>""+M),f=fa.bind(null,dS),d=fa.bind(null,zi);function h(M,Z){let X,re;return Ap(M)?(X=t.getRecordMatcher(M),re=Z):re=M,t.addRoute(re,X)}function v(M){const Z=t.getRecordMatcher(M);Z&&t.removeRoute(Z)}function p(){return t.getRoutes().map(M=>M.record)}function b(M){return!!t.getRecordMatcher(M)}function E(M,Z){if(Z=Ie({},Z||u.value),typeof M=="string"){const T=da(r,M,Z.path),L=t.resolve({path:T.path},Z),H=i.createHref(T.fullPath);return Ie(T,L,{params:d(L.params),hash:zi(T.hash),redirectedFrom:void 0,href:H})}let X;if(M.path!=null)X=Ie({},M,{path:da(r,M.path,Z.path).path});else{const T=Ie({},M.params);for(const L in T)T[L]==null&&delete T[L];X=Ie({},M,{params:f(T)}),Z.params=f(Z.params)}const re=t.resolve(X,Z),F=M.hash||"";re.params=l(d(re.params));const ge=pS(n,Ie({},M,{hash:lS(F),path:re.path})),w=i.createHref(ge);return Ie({fullPath:ge,hash:F,query:n===af?PS(M.query):M.query||{}},re,{redirectedFrom:void 0,href:w})}function m(M){return typeof M=="string"?da(r,M,u.value.path):Ie({},M)}function g(M,Z){if(c!==M)return Gn(Be.NAVIGATION_CANCELLED,{from:Z,to:M})}function y(M){return A(M)}function _(M){return y(Ie(m(M),{replace:!0}))}function S(M,Z){const X=M.matched[M.matched.length-1];if(X&&X.redirect){const{redirect:re}=X;let F=typeof re=="function"?re(M,Z):re;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=m(F):{path:F},F.params={}),Ie({query:M.query,hash:M.hash,params:F.path!=null?{}:M.params},F)}}function A(M,Z){const X=c=E(M),re=u.value,F=M.state,ge=M.force,w=M.replace===!0,T=S(X,re);if(T)return A(Ie(m(T),{state:typeof T=="object"?Ie({},F,T.state):F,force:ge,replace:w}),Z||X);const L=X;L.redirectedFrom=Z;let H;return!ge&&gS(n,re,X)&&(H=Gn(Be.NAVIGATION_DUPLICATED,{to:L,from:re}),fe(re,re,!0,!1)),(H?Promise.resolve(H):R(L,re)).catch(U=>ir(U)?ir(U,Be.NAVIGATION_GUARD_REDIRECT)?U:ae(U):K(U,L,re)).then(U=>{if(U){if(ir(U,Be.NAVIGATION_GUARD_REDIRECT))return A(Ie({replace:w},m(U.to),{state:typeof U.to=="object"?Ie({},F,U.to.state):F,force:ge}),Z||L)}else U=k(L,re,!0,w,F);return P(L,re,U),U})}function I(M,Z){const X=g(M,Z);return X?Promise.reject(X):Promise.resolve()}function C(M){const Z=be.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(M):M()}function R(M,Z){let X;const[re,F,ge]=xS(M,Z);X=va(re.reverse(),"beforeRouteLeave",M,Z);for(const T of re)T.leaveGuards.forEach(L=>{X.push(Ir(L,M,Z))});const w=I.bind(null,M,Z);return X.push(w),me(X).then(()=>{X=[];for(const T of o.list())X.push(Ir(T,M,Z));return X.push(w),me(X)}).then(()=>{X=va(F,"beforeRouteUpdate",M,Z);for(const T of F)T.updateGuards.forEach(L=>{X.push(Ir(L,M,Z))});return X.push(w),me(X)}).then(()=>{X=[];for(const T of ge)if(T.beforeEnter)if(Vt(T.beforeEnter))for(const L of T.beforeEnter)X.push(Ir(L,M,Z));else X.push(Ir(T.beforeEnter,M,Z));return X.push(w),me(X)}).then(()=>(M.matched.forEach(T=>T.enterCallbacks={}),X=va(ge,"beforeRouteEnter",M,Z,C),X.push(w),me(X))).then(()=>{X=[];for(const T of s.list())X.push(Ir(T,M,Z));return X.push(w),me(X)}).catch(T=>ir(T,Be.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function P(M,Z,X){a.list().forEach(re=>C(()=>re(M,Z,X)))}function k(M,Z,X,re,F){const ge=g(M,Z);if(ge)return ge;const w=Z===Rt,T=_n?history.state:{};X&&(re||w?i.replace(M.fullPath,Ie({scroll:w&&T&&T.scroll},F)):i.push(M.fullPath,F)),u.value=M,fe(M,Z,X,w),ae()}let N;function $(){N||(N=i.listen((M,Z,X)=>{if(!de.listening)return;const re=E(M),F=S(re,de.currentRoute.value);if(F){A(Ie(F,{replace:!0,force:!0}),re).catch(Oi);return}c=re;const ge=u.value;_n&&TS(sf(ge.fullPath,X.delta),Ms()),R(re,ge).catch(w=>ir(w,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?w:ir(w,Be.NAVIGATION_GUARD_REDIRECT)?(A(Ie(m(w.to),{force:!0}),re).then(T=>{ir(T,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!X.delta&&X.type===du.pop&&i.go(-1,!1)}).catch(Oi),Promise.reject()):(X.delta&&i.go(-X.delta,!1),K(w,re,ge))).then(w=>{w=w||k(re,ge,!1),w&&(X.delta&&!ir(w,Be.NAVIGATION_CANCELLED)?i.go(-X.delta,!1):X.type===du.pop&&ir(w,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),P(re,ge,w)}).catch(Oi)}))}let ee=ai(),B=ai(),z;function K(M,Z,X){ae(M);const re=B.list();return re.length?re.forEach(F=>F(M,Z,X)):console.error(M),Promise.reject(M)}function Q(){return z&&u.value!==Rt?Promise.resolve():new Promise((M,Z)=>{ee.add([M,Z])})}function ae(M){return z||(z=!M,$(),ee.list().forEach(([Z,X])=>M?X(M):Z()),ee.reset()),M}function fe(M,Z,X,re){const{scrollBehavior:F}=e;if(!_n||!F)return Promise.resolve();const ge=!X&&AS(sf(M.fullPath,0))||(re||!X)&&history.state&&history.state.scroll||null;return qi().then(()=>F(M,Z,ge)).then(w=>w&&wS(w)).catch(w=>K(w,M,Z))}const pe=M=>i.go(M);let ye;const be=new Set,de={currentRoute:u,listening:!0,addRoute:h,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:p,resolve:E,options:e,push:y,replace:_,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:B.add,isReady:Q,install(M){M.component("RouterLink",ZS),M.component("RouterView",Op),M.config.globalProperties.$router=de,Object.defineProperty(M.config.globalProperties,"$route",{enumerable:!0,get:()=>ke(u)}),_n&&!ye&&u.value===Rt&&(ye=!0,y(i.location).catch(re=>{}));const Z={};for(const re in Rt)Object.defineProperty(Z,re,{get:()=>u.value[re],enumerable:!0});M.provide(_l,de),M.provide(Cp,dr(Z)),M.provide(vu,u);const X=M.unmount;be.add(M),M.unmount=function(){be.delete(M),be.size<1&&(c=Rt,N&&N(),N=null,u.value=Rt,ye=!1,z=!1),X()}}};function me(M){return M.reduce((Z,X)=>Z.then(()=>C(X)),Promise.resolve())}return de}const iw=/(:\w+)\([^)]+\)/g,ow=/(:\w+)[?+*]/g,sw=/:\w+/g,aw=(e,t)=>t.path.replace(iw,"$1").replace(ow,"$1").replace(sw,r=>e.params[r.slice(1)]?.toString()||""),pu=(e,t)=>{const r=e.route.matched.find(i=>i.components?.default===e.Component.type),n=t??r?.meta.key??(r&&aw(e.route,r));return typeof n=="function"?n(e.route):n},uw=(e,t)=>({default:()=>e?Et(s0,e===!0?{}:e,t):t});function Sl(e){return Array.isArray(e)?e:[e]}const lw="modulepreload",cw=function(e,t){return new URL(e,t).href},bf={},Bt=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let c=function(l){return Promise.all(l.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),u=a?.nonce||a?.getAttribute("nonce");i=c(r.map(l=>{if(l=cw(l,n),l in bf)return;bf[l]=!0;const f=l.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(n)for(let v=s.length-1;v>=0;v--){const p=s[v];if(p.href===l&&(!f||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":lw,f||(h.as="script"),h.crossOrigin="",h.href=l,u&&h.setAttribute("nonce",u),document.head.appendChild(h),f)return new Promise((v,p)=>{h.addEventListener("load",v),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},pa=[{name:"index",path:"/",component:()=>Bt(()=>import("./BTkul5Q2.js"),[],import.meta.url)},{name:"burrito",path:"/burrito",meta:{middleware:"auth"},component:()=>Bt(()=>import("./DOp-_5WN.js"),[],import.meta.url)},{name:"profile",path:"/profile",meta:{middleware:"auth"},component:()=>Bt(()=>import("./DkWg1RwU.js"),[],import.meta.url)}],fw=(e,t)=>({default:()=>e?Et(sb,e===!0?{}:e,t):t.default?.()}),dw=/(:\w+)\([^)]+\)/g,hw=/(:\w+)[?+*]/g,vw=/:\w+/g;function Ef(e){const t=e?.meta.key??e.path.replace(dw,"$1").replace(hw,"$1").replace(vw,r=>e.params[r.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function pw(e,t){return e===t||t===Rt?!1:Ef(e)!==Ef(t)?!0:!e.matched.every((n,i)=>n.components&&n.components.default===t.matched[i]?.components?.default)}const gw={scrollBehavior(e,t,r){const n=Ve(),i=St().options?.scrollBehaviorType??"auto";if(e.path.replace(/\/$/,"")===t.path.replace(/\/$/,""))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:xp(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const s=n._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(t===Rt){a(_f(e,t,r,i));return}n.hooks.hookOnce(s,()=>{requestAnimationFrame(()=>a(_f(e,t,r,i)))})})}};function xp(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function _f(e,t,r,n){if(r)return r;const i=pw(e,t);return e.hash?{el:e.hash,top:xp(e.hash),behavior:i?n:"instant"}:{left:0,top:0}}const mw={hashMode:!1,scrollBehaviorType:"auto"},_r={...mw,...gw},yw=async(e,t)=>{let r,n;if(!e.meta?.validate)return;const i=([r,n]=Pi(()=>Promise.resolve(e.meta.validate(e))),r=await r,n(),r);if(i===!0)return;const o=on({fatal:!0,status:i&&(i.status||i.statusCode)||404,statusText:i&&(i.statusText||i.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),o},bw=e=>{const t=mp({path:e.path});if(t.redirect){const r=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return Hr(r,{acceptRelative:!0})?(window.location.href=r,!1):r}},Ew=[yw,bw],gu={auth:()=>Bt(()=>import("./iMBneS3o.js"),[],import.meta.url)};function _w(e,t,r){const{pathname:n,search:i,hash:o}=t,s=e.indexOf("#");if(s>-1){const c=o.includes(e.slice(s))?e.slice(s).length:1;let l=o.slice(c);return l[0]!=="/"&&(l="/"+l),Fc(Hc(l,""))}const a=Fc(Hc(n,e)),u=!r||aE(a,r)?a:r;return u+(u.includes("?")?"":i)+o}const Sw=tr({name:"nuxt:router",enforce:"pre",async setup(e){let t,r,n=to().app.baseURL;const i=_r.history?.(n)??DS(n),o=_r.routes?([t,r]=Pi(()=>_r.routes(pa)),t=await t,r(),t??pa):pa;let s;const a=nw({..._r,scrollBehavior:(b,E,m)=>{if(E===Rt){s=m;return}if(_r.scrollBehavior){if(a.options.scrollBehavior=_r.scrollBehavior,"scrollRestoration"in window.history){const g=a.beforeEach(()=>{g(),window.history.scrollRestoration="manual"})}return _r.scrollBehavior(b,Rt,s||m)}},history:i,routes:o});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const u=Bn(a.currentRoute.value);a.afterEach((b,E)=>{u.value=E}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const c=_w(n,window.location,e.payload.path),l=Bn(a.currentRoute.value),f=()=>{l.value=a.currentRoute.value};a.afterEach((b,E)=>{b.matched.at(-1)?.components?.default===E.matched.at(-1)?.components?.default&&f()});const d={sync:f};for(const b in l.value)Object.defineProperty(d,b,{get:()=>l.value[b],enumerable:!0});e._route=dr(d),e._middleware||={global:[],named:{}};const h=Ls();a.afterEach(async(b,E,m)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(r_),m&&await e.callHook("page:loading:end")});try{[t,r]=Pi(()=>a.isReady()),await t,r()}catch(b){[t,r]=Pi(()=>e.runWithContext(()=>Kr(b))),await t,r()}const v=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;f();const p=e.payload.state._layout;return a.beforeEach(async(b,E)=>{await e.callHook("page:loading:start"),b.meta=Fr(b.meta),e.isHydrating&&p&&!gr(b.meta.layout)&&(b.meta.layout=p),e._processingMiddleware=!0;{const m=new Set([...Ew,...e._middleware.global]);for(const y of b.matched){const _=y.meta.middleware;if(_)for(const S of Sl(_))m.add(S)}const g=mp({path:b.path});if(g.appMiddleware)for(const y in g.appMiddleware)g.appMiddleware[y]?m.add(y):m.delete(y);for(const y of m){const _=typeof y=="string"?e._middleware.named[y]||await gu[y]?.().then(S=>S.default||S):y;if(!_)throw new Error(`Unknown route middleware: '${y}'.`);try{const S=await e.runWithContext(()=>_(b,E));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const A=S||on({status:404,statusText:`Page Not Found: ${c}`});return await e.runWithContext(()=>Kr(A)),!1}if(S===!0)continue;if(S===!1)return S;if(S)return cp(S)&&S.fatal&&await e.runWithContext(()=>Kr(S)),S}catch(S){const A=on(S);return A.fatal&&await e.runWithContext(()=>Kr(A)),A}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(b=>{if(b.matched.length===0)return e.runWithContext(()=>Kr(on({status:404,fatal:!1,statusText:`Page not found: ${b.fullPath}`,data:{path:b.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in v&&(v.name=void 0),await a.replace({...v,force:!0}),a.options.scrollBehavior=_r.scrollBehavior}catch(b){await e.runWithContext(()=>Kr(b))}}),{provide:{router:a}}}}),mu=globalThis.requestIdleCallback||(e=>{const t=Date.now(),r={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(r)},1)}),ww=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ds=e=>{const t=Ve();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{mu(()=>e())}):mu(()=>e())},Tw=tr({name:"nuxt:payload",setup(e){const t=new Set;St().beforeResolve(async(r,n)=>{if(r.path===n.path)return;const i=await tf(r.path);if(i){for(const o of t)delete e.static.data[o];for(const o in i.data)o in e.static.data||t.add(o),e.static.data[o]=i.data[o]}}),Ds(()=>{e.hooks.hook("link:prefetch",async r=>{const{hostname:n}=new URL(r,window.location.href);n===window.location.hostname&&await tf().catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(gp,1e3)})}}),Aw=tr(()=>{const e=St();Ds(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Iw=tr(e=>{let t;async function r(){let n;try{n=await gp()}catch(i){const o=i;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(r,Gc);try{const i=await $fetch(yl("builds/latest.json")+`?${Date.now()}`);i.id!==n?.id&&(e.hooks.callHook("app:manifest:update",i),t&&clearTimeout(t))}catch{}}Ds(()=>{t=setTimeout(r,Gc)})});function Cw(e={}){const t=e.path||window.location.pathname;let r={};try{r=ls(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||r?.path!==t||r?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Ve().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const kw=tr({name:"nuxt:chunk-reload",setup(e){const t=St(),r=to(),n=new Set;t.beforeEach(()=>{n.clear()}),e.hook("app:chunkError",({error:o})=>{n.add(o)});function i(o){const s=gl(r.app.baseURL,o.fullPath);Cw({path:s,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(i)}),t.onError((o,s)=>{n.has(o)&&i(s)})}}),Rw=tr({name:"nuxt:global-components"}),mo={};function Pw(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function Np(e,t=St()){const{path:r,matched:n}=t.resolve(e);if(!n.length||(t._routePreloaded||=new Set,t._routePreloaded.has(r)))return;const i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>Np(e,t));t._routePreloaded.add(r);for(const o of n){const s=o.components?.default;if(typeof s!="function")continue;const a=Promise.resolve(s()).catch(()=>{}).finally(()=>i.splice(i.indexOf(a)));i.push(a)}await Promise.all(i)}const Ow=tr({name:"nuxt:prefetch",setup(e){const t=St();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{const n=r?.meta?.layout;n&&typeof mo[n]=="function"&&await mo[n]()})}),e.hooks.hook("link:prefetch",r=>{if(Hr(r))return;const n=t.resolve(r);if(!n)return;const i=n.meta.layout;let o=Sl(n.meta.middleware);o=o.filter(s=>typeof s=="string");for(const s of o)typeof gu[s]=="function"&&gu[s]();typeof i=="string"&&i in mo&&Pw(mo[i])})}});var yu=function(e,t){return yu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},yu(e,t)};function Mt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var D=function(){return D=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},D.apply(this,arguments)};function hs(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function x(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(f){s(f)}}function u(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(e,t||[])).next())})}function O(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ce(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oe(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Ee(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var hr;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(hr||(hr={}));var _t;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(_t||(_t={}));var Sf="-",Us="AMP",xw="".concat(Us,"_unsent"),Lp="$default_instance",wl="https://api2.amplitude.com/2/httpapi",Mp="https://api.eu.amplitude.com/2/httpapi",Dp="https://api2.amplitude.com/batch",Up="https://api.eu.amplitude.com/batch",Nw="utm_campaign",Lw="utm_content",Mw="utm_id",Dw="utm_medium",Uw="utm_source",Fw="utm_term",wf="dclid",Tf="fbclid",Af="gbraid",If="gclid",Cf="ko_click_id",kf="li_fat_id",Rf="msclkid",Pf="rdt_cid",Of="ttclid",xf="twclid",Nf="wbraid",Fs={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},vs=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],Hw=["authorization","cookie","set-cookie"],Bw=1e3,bu=function(e){if(Object.keys(e).length>Bw)return!1;for(var t in e){var r=e[t];if(!Fp(t,r))return!1}return!0},Fp=function(e,t){var r,n;if(typeof e!="string")return!1;if(Array.isArray(t)){var i=!0;try{for(var o=ce(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(Array.isArray(a))return!1;if(typeof a=="object")i=i&&bu(a);else if(!["number","string"].includes(typeof a))return!1;if(!i)return!1}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}else{if(t==null)return!1;if(typeof t=="object")return bu(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},Dn=(function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return D({},this._properties)},e.prototype.set=function(t,r){return this._safeSet(Me.SET,t,r),this},e.prototype.setOnce=function(t,r){return this._safeSet(Me.SET_ONCE,t,r),this},e.prototype.append=function(t,r){return this._safeSet(Me.APPEND,t,r),this},e.prototype.prepend=function(t,r){return this._safeSet(Me.PREPEND,t,r),this},e.prototype.postInsert=function(t,r){return this._safeSet(Me.POSTINSERT,t,r),this},e.prototype.preInsert=function(t,r){return this._safeSet(Me.PREINSERT,t,r),this},e.prototype.remove=function(t,r){return this._safeSet(Me.REMOVE,t,r),this},e.prototype.add=function(t,r){return this._safeSet(Me.ADD,t,r),this},e.prototype.unset=function(t){return this._safeSet(Me.UNSET,t,Sf),this},e.prototype.clearAll=function(){return this._properties={},this._properties[Me.CLEAR_ALL]=Sf,this},e.prototype._safeSet=function(t,r,n){if(this._validate(t,r,n)){var i=this._properties[t];return i===void 0&&(i={},this._properties[t]=i),i[r]=n,this._propertySet.add(r),!0}return!1},e.prototype._validate=function(t,r,n){return this._properties[Me.CLEAR_ALL]!==void 0||this._propertySet.has(r)?!1:t===Me.ADD?typeof n=="number":t!==Me.UNSET&&t!==Me.REMOVE?Fp(r,n):!0},e})(),Me;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Me||(Me={}));var jw=[Me.CLEAR_ALL,Me.UNSET,Me.SET,Me.SET_ONCE,Me.ADD,Me.APPEND,Me.PREPEND,Me.PREINSERT,Me.POSTINSERT,Me.REMOVE],qw="Event tracked successfully",Vw="Unexpected error occurred",$w="Event rejected due to exceeded retry count",Ww="Event skipped due to optOut config",Gw="Event rejected due to missing API key",Kw="Invalid API key",zw="Client not initialized",je;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"})(je||(je={}));var Un=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=je.Unknown),{event:e,code:t,message:r}},le=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},Xw=function(e){return e?(e^Math.random()*16>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,Qt)},Lf=Ee([],oe(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),Qt=function(e){var t,r=le();if(!(!((t=r?.crypto)===null||t===void 0)&&t.getRandomValues))return Xw(e);var n=r.crypto.getRandomValues(new Uint8Array(16));return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Ee([],oe(n.entries()),!1).map(function(i){var o=oe(i,2),s=o[0],a=o[1];return[4,6,8,10].includes(s)?"-".concat(Lf[a]):Lf[a]}).join("")},Yw=(function(){function e(t){this.client=t,this.queue=[],this.applying=!1,this.plugins=[],this._optOutListeners=[]}return e.prototype.register=function(t,r){var n,i;return x(this,void 0,void 0,function(){return O(this,function(o){switch(o.label){case 0:return this.plugins.some(function(s){return s.name===t.name})?(this.loggerProvider.warn("Plugin with name ".concat(t.name," already exists, skipping registration")),[2]):(t.name===void 0&&(t.name=Qt(),this.loggerProvider.warn(`Plugin name is undefined. 
      Generating a random UUID for plugin name: `.concat(t.name,`. 
      Set a name for the plugin to prevent it from being added multiple times.`))),t.type=(n=t.type)!==null&&n!==void 0?n:"enrichment",[4,(i=t.setup)===null||i===void 0?void 0:i.call(t,r,this.client)]);case 1:return o.sent(),this.plugins.push(t),[2]}})})},e.prototype.deregister=function(t,r){var n;return x(this,void 0,void 0,function(){var i,o;return O(this,function(s){switch(s.label){case 0:return i=this.plugins.findIndex(function(a){return a.name===t}),i===-1?(r.loggerProvider.warn("Plugin with name ".concat(t," does not exist, skipping deregistration")),[2]):(o=this.plugins[i],this.plugins.splice(i,1),[4,(n=o.teardown)===null||n===void 0?void 0:n.call(o)]);case 1:return s.sent(),[2]}})})},e.prototype.reset=function(t){this._clearOptOutListeners(),this.applying=!1;var r=this.plugins;r.map(function(n){var i;return(i=n.teardown)===null||i===void 0?void 0:i.call(n)}),this.plugins=[],this.client=t},e.prototype.push=function(t){var r=this;return new Promise(function(n){r.queue.push([t,n]),r.scheduleApply(0)})},e.prototype.scheduleApply=function(t){var r=this;this.applying||(this.applying=!0,setTimeout(function(){r.apply(r.queue.shift()).then(function(){r.applying=!1,r.queue.length>0&&r.scheduleApply(0)})},t))},e.prototype.apply=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s,a,u,h,v,c,l,f,d,h,v,p,b,E,m,g,y,_;return O(this,function(S){switch(S.label){case 0:if(!t)return[2];r=oe(t,1),n=r[0],i=oe(t,2),o=i[1],this.loggerProvider.log("Timeline.apply: Initial event",n),s=this.plugins.filter(function(A){return A.type==="before"}),S.label=1;case 1:S.trys.push([1,6,7,8]),a=ce(s),u=a.next(),S.label=2;case 2:return u.done?[3,5]:(h=u.value,h.execute?[4,h.execute(D({},n))]:[3,4]);case 3:if(v=S.sent(),v===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(n))),o({event:n,code:0,message:""}),[2];n=v,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(n))),S.label=4;case 4:return u=a.next(),[3,2];case 5:return[3,8];case 6:return c=S.sent(),m={error:c},[3,8];case 7:try{u&&!u.done&&(g=a.return)&&g.call(a)}finally{if(m)throw m.error}return[7];case 8:l=this.plugins.filter(function(A){return A.type==="enrichment"||A.type===void 0}),S.label=9;case 9:S.trys.push([9,14,15,16]),f=ce(l),d=f.next(),S.label=10;case 10:return d.done?[3,13]:(h=d.value,h.execute?[4,h.execute(D({},n))]:[3,12]);case 11:if(v=S.sent(),v===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(n))),o({event:n,code:0,message:""}),[2];n=v,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(h.name),"', event: ").concat(JSON.stringify(n))),S.label=12;case 12:return d=f.next(),[3,10];case 13:return[3,16];case 14:return p=S.sent(),y={error:p},[3,16];case 15:try{d&&!d.done&&(_=f.return)&&_.call(f)}finally{if(y)throw y.error}return[7];case 16:return b=this.plugins.filter(function(A){return A.type==="destination"}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(n))),E=b.map(function(A){var I=D({},n);return A.execute(I).catch(function(C){return Un(I,0,String(C))})}),Promise.all(E).then(function(A){var I=oe(A,1),C=I[0],R=C||Un(n,100,"Event not tracked, no destination plugins on the instance");o(R)}),[2]}})})},e.prototype.flush=function(){return x(this,void 0,void 0,function(){var t,r,n,i=this;return O(this,function(o){switch(o.label){case 0:return t=this.queue,this.queue=[],[4,Promise.all(t.map(function(s){return i.apply(s)}))];case 1:return o.sent(),r=this.plugins.filter(function(s){return s.type==="destination"}),n=r.map(function(s){return s.flush&&s.flush()}),[4,Promise.all(n)];case 2:return o.sent(),[2]}})})},e.prototype.addOptOutListener=function(t){this._optOutListeners.push(t)},e.prototype._clearOptOutListeners=function(){this._optOutListeners=[]},e.prototype.onIdentityChanged=function(t){this.plugins.forEach(function(r){var n;(n=r.onIdentityChanged)===null||n===void 0||n.call(r,t)})},e.prototype.onSessionIdChanged=function(t){this.plugins.forEach(function(r){var n;(n=r.onSessionIdChanged)===null||n===void 0||n.call(r,t)})},e.prototype.onOptOutChanged=function(t){this.plugins.forEach(function(r){var n;(n=r.onOptOutChanged)===null||n===void 0||n.call(r,t)}),this._callOptOutListeners(t)},e.prototype._callOptOutListeners=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s,a,u;return O(this,function(c){switch(c.label){case 0:c.trys.push([0,7,8,9]),r=ce(this._optOutListeners),n=r.next(),c.label=1;case 1:if(n.done)return[3,6];i=n.value,c.label=2;case 2:return c.trys.push([2,4,,5]),[4,i(t)];case 3:return c.sent(),[3,5];case 4:return o=c.sent(),this.loggerProvider.error("Error calling optOut listener",o),[3,5];case 5:return n=r.next(),[3,1];case 6:return[3,9];case 7:return s=c.sent(),a={error:s},[3,9];case 8:try{n&&!n.done&&(u=r.return)&&u.call(r)}finally{if(a)throw a.error}return[7];case 9:return[2]}})})},e.prototype.onReset=function(){this.plugins.forEach(function(t){var r;(r=t.onReset)===null||r===void 0||r.call(t)})},e})(),Jw=function(e,t,r){var n=typeof e=="string"?{event_type:e}:e;return D(D(D({},n),r),t&&{event_properties:t})},Tl=function(e,t){var r=D(D({},t),{event_type:_t.IDENTIFY,user_properties:e.getUserProperties()});return r},Qw=function(e,t,r,n){var i,o=D(D({},n),{event_type:_t.GROUP_IDENTIFY,group_properties:r.getUserProperties(),groups:(i={},i[e]=t,i)});return o},Zw=function(e,t,r){var n,i=new Dn;i.set(e,t);var o=D(D({},r),{event_type:_t.IDENTIFY,user_properties:i.getUserProperties(),groups:(n={},n[e]=t,n)});return o},eT=function(e,t){return D(D({},t),{event_type:_t.REVENUE,event_properties:e.getEventProperties()})},tt=function(e){return{promise:e||Promise.resolve()}},tT=(function(){function e(t){t===void 0&&(t="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new Yw(this),this.name=t}return e.prototype._init=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){switch(r.label){case 0:return this.config=t,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return r.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:r=this[t],this[t]=[],l.label=1;case 1:l.trys.push([1,8,9,10]),n=ce(r),i=n.next(),l.label=2;case 2:return i.done?[3,7]:(o=i.value,s=o(),s&&"promise"in s?[4,s.promise]:[3,4]);case 3:return l.sent(),[3,6];case 4:return[4,s];case 5:l.sent(),l.label=6;case 6:return i=n.next(),[3,2];case 7:return[3,10];case 8:return a=l.sent(),u={error:a},[3,10];case 9:try{i&&!i.done&&(c=n.return)&&c.call(n)}finally{if(u)throw u.error}return[7];case 10:return this[t].length?[4,this.runQueuedFunctions(t)]:[3,12];case 11:l.sent(),l.label=12;case 12:return[2]}})})},e.prototype.track=function(t,r,n){var i=Jw(t,r,n);return this.userProperties=this.getOperationAppliedUserProperties(i.user_properties),tt(this.dispatch(i))},e.prototype.identify=function(t,r){var n=Tl(t,r);return this.userProperties=this.getOperationAppliedUserProperties(n.user_properties),tt(this.dispatch(n))},e.prototype.groupIdentify=function(t,r,n,i){var o=Qw(t,r,n,i);return tt(this.dispatch(o))},e.prototype.setGroup=function(t,r,n){var i=Zw(t,r,n);return this.userProperties=this.getOperationAppliedUserProperties(i.user_properties),tt(this.dispatch(i))},e.prototype.revenue=function(t,r){var n=eT(t,r);return tt(this.dispatch(n))},e.prototype.add=function(t){return this.isReady?this._addPlugin(t):(this.q.push(this._addPlugin.bind(this,t)),tt())},e.prototype._addPlugin=function(t){return tt(this.timeline.register(t,this.config))},e.prototype.remove=function(t){return this.isReady?this._removePlugin(t):(this.q.push(this._removePlugin.bind(this,t)),tt())},e.prototype._removePlugin=function(t){return tt(this.timeline.deregister(t,this.config))},e.prototype.dispatchWithCallback=function(t,r){if(!this.isReady)return r(Un(t,0,zw));this.process(t).then(r)},e.prototype.dispatch=function(t){return x(this,void 0,void 0,function(){var r=this;return O(this,function(n){return this.isReady?[2,this.process(t)]:[2,new Promise(function(i){r.dispatchQ.push(r.dispatchWithCallback.bind(r,t,i))})]})})},e.prototype.getOperationAppliedUserProperties=function(t){var r,n=(r=this.userProperties)!==null&&r!==void 0?r:{},i=D({},n);if(t===void 0)return i;var o={};return Object.keys(t).forEach(function(s){Object.values(hr).includes(s)||(o[s]=t[s])}),jw.forEach(function(s){if(Object.keys(t).includes(s)){var a=t[s];switch(s){case hr.CLEAR_ALL:Object.keys(i).forEach(function(u){delete i[u]});break;case hr.UNSET:Object.keys(a).forEach(function(u){delete i[u]});break;case hr.SET:Object.assign(i,a);break}}}),Object.assign(i,o),i},e.prototype.process=function(t){return x(this,void 0,void 0,function(){var i,r,n,i;return O(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.config.optOut?[2,Un(t,0,Ww)]:(t.event_type===_t.IDENTIFY&&this.timeline.onIdentityChanged({userProperties:this.userProperties}),[4,this.timeline.push(t)]);case 1:return i=o.sent(),i.code===200?this.config.loggerProvider.log(i.message):i.code===100?this.config.loggerProvider.warn(i.message):this.config.loggerProvider.error(i.message),[2,i];case 2:return r=o.sent(),n=String(r),this.config.loggerProvider.error(n),i=Un(t,0,n),[2,i];case 3:return[2]}})})},e.prototype.setOptOut=function(t){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!t));return}this._setOptOut(t)},e.prototype._setOptOut=function(t){this.config.optOut!==t&&(this.config.optOut=!!t,this.timeline.onOptOutChanged(t))},e.prototype.flush=function(){return tt(this.timeline.flush())},e.prototype.plugin=function(t){var r=this.timeline.plugins.find(function(n){return n.name===t});if(r===void 0){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(t));return}return r},e.prototype.plugins=function(t){return this.timeline.plugins.filter(function(r){return r instanceof t})},e})(),Hp=(function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(t){return this.productId=t,this},e.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},e.prototype.setPrice=function(t){return this.price=t,this},e.prototype.setRevenueType=function(t){return this.revenueType=t,this},e.prototype.setCurrency=function(t){return this.currency=t,this},e.prototype.setRevenue=function(t){return this.revenue=t,this},e.prototype.setReceipt=function(t){return this.receipt=t,this},e.prototype.setReceiptSig=function(t){return this.receiptSig=t,this},e.prototype.setEventProperties=function(t){try{var r=JSON.parse(JSON.stringify(t));bu(r)&&(this.properties=r)}catch{}return this},e.prototype.getEventProperties=function(){var t=this.properties?D({},this.properties):{};return t[Ut.REVENUE_PRODUCT_ID]=this.productId,t[Ut.REVENUE_QUANTITY]=this.quantity,t[Ut.REVENUE_PRICE]=this.price,t[Ut.REVENUE_TYPE]=this.revenueType,t[Ut.REVENUE_CURRENCY]=this.currency,t[Ut.REVENUE]=this.revenue,t[Ut.RECEIPT]=this.receipt,t[Ut.RECEIPT_SIG]=this.receiptSig,t},e})(),Ut;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"})(Ut||(Ut={}));var rT=function(e,t){var r=Math.max(t,1);return e.reduce(function(n,i,o){var s=Math.floor(o/r);return n[s]||(n[s]=[]),n[s].push(i),n},[])},ot;(function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"})(ot||(ot={}));var yo="Amplitude Logger ",Kn=(function(){function e(){this.logLevel=ot.None}return e.prototype.disable=function(){this.logLevel=ot.None},e.prototype.enable=function(t){t===void 0&&(t=ot.Warn),this.logLevel=t},e.prototype.log=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<ot.Verbose||console.log("".concat(yo,"[Log]: ").concat(t.join(" ")))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<ot.Warn||console.warn("".concat(yo,"[Warn]: ").concat(t.join(" ")))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<ot.Error||console.error("".concat(yo,"[Error]: ").concat(t.join(" ")))},e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.logLevel<ot.Debug||console.log("".concat(yo,"[Debug]: ").concat(t.join(" ")))},e})(),Uo=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:Lp,logLevel:ot.Warn,loggerProvider:new Kn,offline:!1,optOut:!1,serverUrl:wl,serverZone:"US",useBatch:!1}},Bp=(function(){function e(t){var r,n,i,o;this._optOut=!1;var s=Uo();this.apiKey=t.apiKey,this.flushIntervalMillis=(r=t.flushIntervalMillis)!==null&&r!==void 0?r:s.flushIntervalMillis,this.flushMaxRetries=t.flushMaxRetries||s.flushMaxRetries,this.flushQueueSize=t.flushQueueSize||s.flushQueueSize,this.instanceName=t.instanceName||s.instanceName,this.loggerProvider=t.loggerProvider||s.loggerProvider,this.logLevel=(n=t.logLevel)!==null&&n!==void 0?n:s.logLevel,this.minIdLength=t.minIdLength,this.plan=t.plan,this.ingestionMetadata=t.ingestionMetadata,this.offline=t.offline!==void 0?t.offline:s.offline,this.optOut=(i=t.optOut)!==null&&i!==void 0?i:s.optOut,this.serverUrl=t.serverUrl,this.serverZone=t.serverZone||s.serverZone,this.storageProvider=t.storageProvider,this.transportProvider=t.transportProvider,this.useBatch=(o=t.useBatch)!==null&&o!==void 0?o:s.useBatch,this.loggerProvider.enable(this.logLevel);var a=jp(t.serverUrl,t.serverZone,t.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(t){this._optOut=t},enumerable:!1,configurable:!0}),e})(),nT=function(e,t){return e==="EU"?t?Up:Mp:t?Dp:wl},jp=function(e,t,r){if(e===void 0&&(e=""),t===void 0&&(t=Uo().serverZone),r===void 0&&(r=Uo().useBatch),e)return{serverUrl:e,serverZone:void 0};var n=["US","EU"].includes(t)?t:Uo().serverZone;return{serverZone:n,serverUrl:nT(n,r)}},iT=(function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(t,r){this.sdk.metrics.histogram[t]=r},e})();function Eu(e){return e>=200&&e<300}var Fo=function(e){e===void 0&&(e=0);var t=new Error().stack||"";return t.split(`
`).slice(2+e).map(function(r){return r.trim()})},Re=function(e){return function(){var t=D({},e.config),r=t.loggerProvider,n=t.logLevel;return{logger:r,logLevel:n}}},oT=function(e,t){var r,n;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");try{for(var i=ce(t.split(".")),o=i.next();!o.done;o=i.next()){var s=o.value;if(s in e)e=e[s];else return}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},Pe=function(e,t){return function(){var r,n,i={};try{for(var o=ce(t),s=o.next();!s.done;s=o.next()){var a=s.value;i[a]=oT(e,a)}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i}},_e=function(e,t,r,n,i){return i===void 0&&(i=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=r(),u=a.logger,c=a.logLevel;if(c&&c<ot.Debug||!c||!u)return e.apply(i,o);var l={type:"invoke public method",name:t,args:o,stacktrace:Fo(1),time:{start:new Date().toISOString()},states:{}};n&&l.states&&(l.states.before=n());var f=e.apply(i,o);return f&&f.promise?f.promise.then(function(){n&&l.states&&(l.states.after=n()),l.time&&(l.time.end=new Date().toISOString()),u.debug(JSON.stringify(l,null,2))}):(n&&l.states&&(l.states.after=n()),l.time&&(l.time.end=new Date().toISOString()),u.debug(JSON.stringify(l,null,2))),f}},sT=new Set([wl,Mp,Dp,Up]),aT=function(e,t){return t===void 0&&(t=!1),sT.has(e)?!0:t};function uT(e){return e instanceof Error?e.message:String(e)}function ui(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch{}return t}var lT=(function(){function e(t){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=t?.diagnosticsClient}return e.prototype.setup=function(t){var r;return x(this,void 0,void 0,function(){var n,i=this;return O(this,function(o){switch(o.label){case 0:return this.config=t,this.storageKey="".concat(xw,"_").concat(this.config.apiKey.substring(0,10)),[4,(r=this.config.storageProvider)===null||r===void 0?void 0:r.get(this.storageKey)];case 1:return n=o.sent(),n&&n.length>0&&Promise.all(n.map(function(s){return i.execute(s)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(t){var r=this;return t.insert_id||(t.insert_id=Qt()),new Promise(function(n){var i={event:t,attempts:0,callback:function(o){return n(o)},timeout:0};r.queue.push(i),r.schedule(r.config.flushIntervalMillis),r.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(t){var r=this;return t.filter(function(n){return n.attempts+=1,n.attempts<r.config.flushMaxRetries?!0:(r.fulfillRequest([n],500,$w),!1)})},e.prototype.scheduleEvents=function(t){var r=this;t.forEach(function(n){r.schedule(n.timeout===0?r.config.flushIntervalMillis:n.timeout)})},e.prototype.schedule=function(t){var r=this;if(!this.config.offline&&(this.scheduleId===null||this.scheduleId&&t>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=t,this.scheduleId=setTimeout(function(){r.queue=r.queue.map(function(n){return n.timeout=0,n}),r.flush(!0)},t);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(t){return t===void 0&&(t=!1),x(this,void 0,void 0,function(){var r,n,i,o=this;return O(this,function(s){switch(s.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),r=[],n=[],this.queue.forEach(function(a){return a.timeout===0?r.push(a):n.push(a)}),i=rT(r,this.config.flushQueueSize),[4,i.reduce(function(a,u){return x(o,void 0,void 0,function(){return O(this,function(c){switch(c.label){case 0:return[4,a];case 1:return c.sent(),[4,this.send(u,t)];case 2:return[2,c.sent()]}})})},Promise.resolve())]);case 1:return s.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(t,r){var n;return r===void 0&&(r=!0),x(this,void 0,void 0,function(){var i,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(t,400,Gw)];i={api_key:this.config.apiKey,events:t.map(function(f){var d=f.event;d.extra;var h=hs(d,["extra"]);return h}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new iT,l.label=1;case 1:return l.trys.push([1,3,,4]),o=jp(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,s=aT(o,this.config.enableRequestBodyCompression),[4,this.config.transportProvider.send(o,i,this.config._enableRequestBodyCompressionExperimental&&s)];case 2:return a=l.sent(),a===null?(this.fulfillRequest(t,0,Vw),[2]):r?(this.handleResponse(a,t),[3,4]):("body"in a?this.fulfillRequest(t,a.statusCode,"".concat(a.status,": ").concat(ui(a))):this.fulfillRequest(t,a.statusCode,a.status),[2]);case 3:return u=l.sent(),c=uT(u),this.config.loggerProvider.error(c),(n=this.diagnosticsClient)===null||n===void 0||n.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:t.map(function(f){return f.event.event_type}),message:c,stack_trace:Fo()}),this.handleResponse({status:je.Failed,statusCode:0},t),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(t,r){var n;Eu(t.statusCode)||(n=this.diagnosticsClient)===null||n===void 0||n.recordEvent("analytics.events.unsuccessful",{events:r.map(function(o){return o.event.event_type}),code:t.statusCode,status:t.status,body:ui(t),stack_trace:Fo()});var i=t.status;switch(i){case je.Success:{this.handleSuccessResponse(t,r);break}case je.Invalid:{this.handleInvalidResponse(t,r);break}case je.PayloadTooLarge:{this.handlePayloadTooLargeResponse(t,r);break}case je.RateLimit:{this.handleRateLimitResponse(t,r);break}default:{this.config.loggerProvider.warn(`{code: 0, error: "Status '`.concat(i,"' provided for ").concat(r.length,' events"}')),this.handleOtherResponse(r);break}}},e.prototype.handleSuccessResponse=function(t,r){this.fulfillRequest(r,t.statusCode,qw)},e.prototype.handleInvalidResponse=function(t,r){var n=this;if(t.body.missingField||t.body.error.startsWith(Kw)){this.fulfillRequest(r,t.statusCode,t.body.error);return}var i=Ee(Ee(Ee(Ee([],oe(Object.values(t.body.eventsWithInvalidFields)),!1),oe(Object.values(t.body.eventsWithMissingFields)),!1),oe(Object.values(t.body.eventsWithInvalidIdLengths)),!1),oe(t.body.silencedEvents),!1).flat(),o=new Set(i),s=r.filter(function(u,c){if(o.has(c)){n.fulfillRequest([u],t.statusCode,t.body.error);return}return!0});s.length>0&&this.config.loggerProvider.warn(ui(t));var a=this.removeEventsExceedFlushMaxRetries(s);this.scheduleEvents(a)},e.prototype.handlePayloadTooLargeResponse=function(t,r){if(r.length===1){this.fulfillRequest(r,t.statusCode,t.body.error);return}this.config.loggerProvider.warn(ui(t)),this.config.flushQueueSize/=2;var n=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(n)},e.prototype.handleRateLimitResponse=function(t,r){var n=this,i=Object.keys(t.body.exceededDailyQuotaUsers),o=Object.keys(t.body.exceededDailyQuotaDevices),s=t.body.throttledEvents,a=new Set(i),u=new Set(o),c=new Set(s),l=r.filter(function(d,h){if(d.event.user_id&&a.has(d.event.user_id)||d.event.device_id&&u.has(d.event.device_id)){n.fulfillRequest([d],t.statusCode,t.body.error);return}return c.has(h)&&(d.timeout=n.throttleTimeout),!0});l.length>0&&this.config.loggerProvider.warn(ui(t));var f=this.removeEventsExceedFlushMaxRetries(l);this.scheduleEvents(f)},e.prototype.handleOtherResponse=function(t){var r=this,n=t.map(function(o){return o.timeout=o.attempts*r.retryTimeout,o}),i=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(i)},e.prototype.fulfillRequest=function(t,r,n){var i,o,s;Eu(r)?(s=this.diagnosticsClient)===null||s===void 0||s.increment("analytics.events.sent",t.length):((i=this.diagnosticsClient)===null||i===void 0||i.increment("analytics.events.dropped",t.length),(o=this.diagnosticsClient)===null||o===void 0||o.recordEvent("analytics.events.dropped",{events:t.map(function(a){return a.event.event_type}),code:r,message:n,stack_trace:Fo()})),this.removeEvents(t),t.forEach(function(a){return a.callback(Un(a.event,r,n))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var t=this.queue.map(function(r){return r.event});this.config.storageProvider.set(this.storageKey,t)}},e.prototype.removeEvents=function(t){this.queue=this.queue.filter(function(r){return!t.some(function(n){return n.event.insert_id===r.event.insert_id})}),this.saveEvents()},e})(),cT=(function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:fT(),platform:"Web",os:void 0,deviceModel:void 0}},e})(),fT=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},dT=(function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(r){t(r)}),this.queue=[])},e})(),Cr=function(){return Cr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Cr.apply(this,arguments)};function Ho(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}var Bo=function(e,t){var r,n,i=["string","number","boolean","undefined"],o=typeof e,s=typeof t;if(o!==s)return!1;try{for(var a=Ho(i),u=a.next();!u.done;u=a.next()){var c=u.value;if(c===o)return e===t}}catch(b){r={error:b}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;var l=Array.isArray(e),f=Array.isArray(t);if(l!==f)return!1;if(l&&f){for(var d=0;d<e.length;d++)if(!Bo(e[d],t[d]))return!1}else{var h=Object.keys(e).sort(),v=Object.keys(t).sort();if(!Bo(h,v))return!1;var p=!0;return Object.keys(e).forEach(function(b){Bo(e[b],t[b])||(p=!1)}),p}return!0},hT="$set",vT="$unset",pT="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var gT=(function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var t=this,r=Cr({},this.identity.userProperties),n=Cr(Cr({},this.identity),{userProperties:r});return{setUserId:function(i){return n.userId=i,this},setDeviceId:function(i){return n.deviceId=i,this},setUserProperties:function(i){return n.userProperties=i,this},setOptOut:function(i){return n.optOut=i,this},updateUserProperties:function(i){var o,s,a,u,c,l,f=n.userProperties||{};try{for(var d=Ho(Object.entries(i)),h=d.next();!h.done;h=d.next()){var v=Mf(h.value,2),p=v[0],b=v[1];switch(p){case hT:try{for(var E=(a=void 0,Ho(Object.entries(b))),m=E.next();!m.done;m=E.next()){var g=Mf(m.value,2),y=g[0],_=g[1];f[y]=_}}catch(I){a={error:I}}finally{try{m&&!m.done&&(u=E.return)&&u.call(E)}finally{if(a)throw a.error}}break;case vT:try{for(var S=(c=void 0,Ho(Object.keys(b))),A=S.next();!A.done;A=S.next()){var y=A.value;delete f[y]}}catch(I){c={error:I}}finally{try{A&&!A.done&&(l=S.return)&&l.call(S)}finally{if(c)throw c.error}}break;case pT:f={};break}}}catch(I){o={error:I}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}return n.userProperties=f,this},commit:function(){return t.setIdentity(n),this}}},e.prototype.getIdentity=function(){return Cr({},this.identity)},e.prototype.setIdentity=function(t){var r=Cr({},this.identity);this.identity=Cr({},t),Bo(r,this.identity)||this.listeners.forEach(function(n){n(t)})},e.prototype.addIdentityListener=function(t){this.listeners.add(t)},e.prototype.removeIdentityListener=function(t){this.listeners.delete(t)},e})(),li=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,Al=(function(){function e(){this.identityStore=new gT,this.eventBridge=new dT,this.applicationContextProvider=new cT}return e.getInstance=function(t){return li.analyticsConnectorInstances||(li.analyticsConnectorInstances={}),li.analyticsConnectorInstances[t]||(li.analyticsConnectorInstances[t]=new e),li.analyticsConnectorInstances[t]},e})(),zn=function(e){return e===void 0&&(e=Lp),Al.getInstance(e)},mT=function(e,t){zn(t).identityStore.editIdentity().setUserId(e).commit()},yT=function(e,t){zn(t).identityStore.editIdentity().setDeviceId(e).commit()},bT=(function(){function e(){this.name="identity",this.type="before",this.identityStore=zn().identityStore}return e.prototype.execute=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){return r=t.user_properties,r&&this.identityStore.editIdentity().updateUserProperties(r).commit(),[2,t]})})},e.prototype.setup=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){return t.instanceName&&(this.identityStore=zn(t.instanceName).identityStore),[2]})})},e})(),qp=function(e,t){t===void 0&&(t=Date.now());var r=Date.now(),n=r-t;return n>e},Vp=function(e,t,r){return t===void 0&&(t=""),r===void 0&&(r=10),[Us,t,e.substring(0,r)].filter(Boolean).join("_")},ET=function(e){return"".concat(Us.toLowerCase(),"_").concat(e.substring(0,6))},_T=function(){var e,t,r,n;if(typeof navigator>"u")return"";var i=navigator.userLanguage;return(n=(r=(t=(e=navigator.languages)===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:navigator.language)!==null&&r!==void 0?r:i)!==null&&n!==void 0?n:""},ps=function(){var e,t=le();if(!(!((e=t?.location)===null||e===void 0)&&e.search))return{};var r=t.location.search.substring(1).split("&").filter(Boolean),n=r.reduce(function(i,o){var s=o.split("=",2),a=Df(s[0]),u=Df(s[1]);return u&&(i[a]=u),i},{});return n},Df=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},_u=function(e,t){return!t||!t.length?!0:t.some(function(r){return typeof r=="string"?e===r:e.match(r)})},xr=function(e,t){var r=e;try{r=decodeURI(e)}catch(n){t?.error("Malformed URI sequence: ",n)}return r},Su=function(e){var t=0;if(e.length===0)return t;for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);t=(t<<5)-t+n,t|=0}return t},Uf=function(e,t){var r=Su(e.toString()),n=Math.abs(r),i=n*31,o=i%1e5;return o/1e5<t},Il=(function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return[2,!0]})})},e.prototype.get=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){return[2,this.memoryStorage.get(t)]})})},e.prototype.getRaw=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return[4,this.get(t)];case 1:return r=n.sent(),[2,r?JSON.stringify(r):void 0]}})})},e.prototype.set=function(t,r){return x(this,void 0,void 0,function(){return O(this,function(n){return this.memoryStorage.set(t,r),[2]})})},e.prototype.remove=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){return this.memoryStorage.delete(t),[2]})})},e.prototype.reset=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return this.memoryStorage.clear(),[2]})})},e})(),ST=function(){var e,t=le();return(e=t?.navigator)===null||e===void 0?void 0:e.locks},gs=(function(){function e(t,r){r===void 0&&(r={}),this.options=D({},t),this.config=r}return e.prototype.isEnabled=function(){return x(this,void 0,void 0,function(){var t,r,n,i,o=this;return O(this,function(s){switch(s.label){case 0:return t="AMP_TEST",r=D({},this.options),n=new e(r),i=String(Date.now()),[4,n.transaction(t,function(a){var u,c;try{a.set(i);var l=a.get(),f=l===i;return!f&&o.config.diagnosticsClient&&((u=o.config.diagnosticsClient)===null||u===void 0||u.recordEvent("cookies.isEnabled.failure",{reason:"Test Value mismatch",testKey:t,testValue:i,sync:!0})),f}catch(h){if(o.config.diagnosticsClient){var d=h instanceof Error?h.message:String(h);(c=o.config.diagnosticsClient)===null||c===void 0||c.recordEvent("cookies.isEnabled.failure",{reason:"Cookie getter/setter failed",testKey:t,testValue:i,error:d,sync:!0})}return!1}finally{a.set(null)}})];case 1:return[2,s.sent()]}})})},e.prototype.get=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return[4,this.getRaw(t)];case 1:return r=n.sent(),[2,this.decodeCookieValue(t,r)]}})})},e.prototype.decodeCookieValue=function(t,r){if(r)try{var n=$p(r);if(n===void 0){console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(t,", value: ").concat(r));return}return JSON.parse(n)}catch{console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(t,", value: ").concat(r));return}},e.prototype.getSync=function(t){var r=this.getRawSync(t);return this.decodeCookieValue(t,r)},e.prototype.getRaw=function(t){var r,n;return x(this,void 0,void 0,function(){var i,o,s,a,u,c,l,f,d;return O(this,function(h){switch(h.label){case 0:i=le(),o=i,h.label=1;case 1:return h.trys.push([1,4,,5]),s=o?.cookieStore,s?[4,s.getAll(t)]:[3,3];case 2:if(a=h.sent(),a){a.length>1&&((r=this.config.diagnosticsClient)===null||r===void 0||r.recordEvent("cookies.duplicate",{cookies:a.map(function(v){return v.domain})}),(n=this.config.diagnosticsClient)===null||n===void 0||n.increment("cookies.duplicate.occurrence.cookieStore"));try{for(u=ce(a),c=u.next();!c.done;c=u.next())if(l=c.value,Wp(l.domain,this.options.domain))return[2,l.value]}catch(v){f={error:v}}finally{try{c&&!c.done&&(d=u.return)&&d.call(u)}finally{if(f)throw f.error}}}h.label=3;case 3:return[3,5];case 4:return h.sent(),[3,5];case 5:return[2,this.getRawSync(t)]}})})},e.prototype.getRawSync=function(t){var r=this,n,i,o=le(),s=((i=(n=o?.document)===null||n===void 0?void 0:n.cookie.split("; "))!==null&&i!==void 0?i:[]).filter(function(c){return c.indexOf(t+"=")===0}),a=void 0,u=this.config.duplicateResolverFn;if(typeof u=="function"&&s.length>1&&(a=s.find(function(c){var l;try{var f=u(c.substring(t.length+1));return f||(l=r.config.diagnosticsClient)===null||l===void 0||l.increment("cookies.duplicate.occurrence.document.cookie"),f}catch{return!1}})),a||(a=s[0]),!!a)return a.substring(t.length+1)},e.prototype.set=function(t,r){return x(this,void 0,void 0,function(){return O(this,function(n){return this.setSync(t,r),[2]})})},e.prototype.setSync=function(t,r){var n;try{var i=(n=this.options.expirationDays)!==null&&n!==void 0?n:0,o=r!==null?i:-1,s=void 0;if(o){var a=new Date;a.setTime(a.getTime()+o*24*60*60*1e3),s=a}var u="".concat(t,"=").concat(btoa(encodeURIComponent(JSON.stringify(r))));s&&(u+="; expires=".concat(s.toUTCString())),u+="; path=/",this.options.domain&&(u+="; domain=".concat(this.options.domain)),this.options.secure&&(u+="; Secure"),this.options.sameSite&&(u+="; SameSite=".concat(this.options.sameSite));var c=le();c?.document&&(c.document.cookie=u)}catch(f){var l=f instanceof Error?f.message:String(f);console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(t,". Error: ").concat(l))}},e.prototype.remove=function(t){return x(this,void 0,void 0,function(){return O(this,function(r){switch(r.label){case 0:return[4,this.set(t,null)];case 1:return r.sent(),[2]}})})},e.prototype.reset=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return[2]})})},e.isDomainWritable=function(t){return x(this,void 0,void 0,function(){var r,n,i,o;return O(this,function(s){switch(s.label){case 0:if(e.cachedTlds[t])return[2,!0];r={domain:"."+t},n="AMP_TLDTEST",i=new e(r),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,i.transaction(n,function(a){if(e.cachedTlds[t])return!0;try{a.set(1);var u=!!a.get();return u&&(e.cachedTlds[t]=!0),u}finally{a.set(null)}})];case 2:return o=s.sent(),[2,!!o];case 3:return s.sent(),[2,!1];case 4:return[2]}})})},e.prototype.transaction=function(t,r){return x(this,void 0,void 0,function(){var n,i,o=this;return O(this,function(s){switch(s.label){case 0:if(n=ST(),i=function(){var a={get:function(){return o.getSync(t)},set:function(u){return o.setSync(t,u)}};return r(a)},!n)return[2,i()];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,n.request("com.amplitude:cookie-lock:".concat(t),i)];case 2:return[2,s.sent()];case 3:return s.sent(),[2,i()];case 4:return[2]}})})},e.cachedTlds={},e})(),wT=function(e){try{return decodeURIComponent(atob(e))}catch{return}},TT=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},$p=function(e){var t;return(t=wT(e))!==null&&t!==void 0?t:TT(e)},Wp=function(e,t){if(e===""&&t==="")return!0;if(!e||!t)return!1;var r=e.startsWith(".")?e.substring(1):e,n=t.startsWith(".")?t.substring(1):t;return r.toLowerCase()===n.toLowerCase()},Ff=function(e,t,r){return t===void 0&&(t=""),r===void 0&&(r=10),[Us,t,e.substring(0,r)].filter(Boolean).join("_")},Hs=(function(){function e(t){this.storage=t}return e.prototype.isEnabled=function(){return x(this,void 0,void 0,function(){var t,r,n,i;return O(this,function(o){switch(o.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),r=new e(this.storage),n="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,r.set(n,t)];case 2:return o.sent(),[4,r.get(n)];case 3:return i=o.sent(),[2,i===t];case 4:return o.sent(),[2,!1];case 5:return[4,r.remove(n)];case 6:return o.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getRaw(t)];case 1:return r=n.sent(),r?[2,JSON.parse(r)]:[2,void 0];case 2:return n.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(t){var r;return x(this,void 0,void 0,function(){return O(this,function(n){return[2,((r=this.storage)===null||r===void 0?void 0:r.getItem(t))||void 0]})})},e.prototype.set=function(t,r){var n;return x(this,void 0,void 0,function(){return O(this,function(i){try{(n=this.storage)===null||n===void 0||n.setItem(t,JSON.stringify(r))}catch{}return[2]})})},e.prototype.remove=function(t){var r;return x(this,void 0,void 0,function(){return O(this,function(n){try{(r=this.storage)===null||r===void 0||r.removeItem(t)}catch{}return[2]})})},e.prototype.reset=function(){var t;return x(this,void 0,void 0,function(){return O(this,function(r){try{(t=this.storage)===null||t===void 0||t.clear()}catch{}return[2]})})},e})(),AT=10,IT=1,we={TAGS:"tags",COUNTERS:"counters",HISTOGRAMS:"histograms",EVENTS:"events",INTERNAL:"internal"},Hf={LAST_FLUSH_TIMESTAMP:"last_flush_timestamp"},Bf=(function(){function e(t,r){this.dbPromise=null,this.logger=r,this.dbName="AMP_diagnostics_".concat(t.substring(0,10))}return e.isSupported=function(){var t;return((t=le())===null||t===void 0?void 0:t.indexedDB)!==void 0},e.prototype.getDB=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return this.dbPromise||(this.dbPromise=this.openDB()),[2,this.dbPromise]})})},e.prototype.openDB=function(){var t=this;return new Promise(function(r,n){var i=indexedDB.open(t.dbName,IT);i.onerror=function(){t.dbPromise=null,n(new Error("Failed to open IndexedDB"))},i.onsuccess=function(){var o=i.result;o.onclose=function(){t.dbPromise=null,t.logger.debug("DiagnosticsStorage: DB connection closed.")},o.onerror=function(s){t.logger.debug("DiagnosticsStorage: A global database error occurred.",s),o.close()},r(o)},i.onupgradeneeded=function(o){var s=o.target.result;t.createTables(s)}})},e.prototype.createTables=function(t){if(t.objectStoreNames.contains(we.TAGS)||t.createObjectStore(we.TAGS,{keyPath:"key"}),t.objectStoreNames.contains(we.COUNTERS)||t.createObjectStore(we.COUNTERS,{keyPath:"key"}),t.objectStoreNames.contains(we.HISTOGRAMS)||t.createObjectStore(we.HISTOGRAMS,{keyPath:"key"}),!t.objectStoreNames.contains(we.EVENTS)){var r=t.createObjectStore(we.EVENTS,{keyPath:"id",autoIncrement:!0});r.createIndex("time_idx","time",{unique:!1})}t.objectStoreNames.contains(we.INTERNAL)||t.createObjectStore(we.INTERNAL,{keyPath:"key"})},e.prototype.setTags=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s=this;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return r=a.sent(),n=r.transaction([we.TAGS],"readwrite"),i=n.objectStore(we.TAGS),[2,new Promise(function(u){var c=Object.entries(t);n.oncomplete=function(){u()},n.onabort=function(l){s.logger.debug("DiagnosticsStorage: Failed to set tags",l),u()},c.forEach(function(l){var f=oe(l,2),d=f[0],h=f[1],v=i.put({key:d,value:h});v.onerror=function(p){s.logger.debug("DiagnosticsStorage: Failed to set tag",d,h,p)}})})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set tags",o),[3,3];case 3:return[2]}})})},e.prototype.incrementCounters=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s=this;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return r=a.sent(),n=r.transaction([we.COUNTERS],"readwrite"),i=n.objectStore(we.COUNTERS),[2,new Promise(function(u){var c=Object.entries(t);n.oncomplete=function(){u()},n.onabort=function(l){s.logger.debug("DiagnosticsStorage: Failed to increment counters",l),u()},c.forEach(function(l){var f=oe(l,2),d=f[0],h=f[1],v=i.get(d);v.onsuccess=function(){var p=v.result,b=p?p.value:0,E=i.put({key:d,value:b+h});E.onerror=function(m){s.logger.debug("DiagnosticsStorage: Failed to update counter",d,m)}},v.onerror=function(p){s.logger.debug("DiagnosticsStorage: Failed to read existing counter",d,p)}})})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to increment counters",o),[3,3];case 3:return[2]}})})},e.prototype.setHistogramStats=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s=this;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),Object.entries(t).length===0?[2]:[4,this.getDB()];case 1:return r=a.sent(),n=r.transaction([we.HISTOGRAMS],"readwrite"),i=n.objectStore(we.HISTOGRAMS),[2,new Promise(function(u){var c=Object.entries(t);n.oncomplete=function(){u()},n.onabort=function(l){s.logger.debug("DiagnosticsStorage: Failed to set histogram stats",l),u()},c.forEach(function(l){var f=oe(l,2),d=f[0],h=f[1],v=i.get(d);v.onsuccess=function(){var p=v.result,b;p?b={key:d,count:p.count+h.count,min:Math.min(p.min,h.min),max:Math.max(p.max,h.max),sum:p.sum+h.sum}:b={key:d,count:h.count,min:h.min,max:h.max,sum:h.sum};var E=i.put(b);E.onerror=function(m){s.logger.debug("DiagnosticsStorage: Failed to set histogram stats",d,m)}},v.onerror=function(p){s.logger.debug("DiagnosticsStorage: Failed to read existing histogram stats",d,p)}})})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set histogram stats",o),[3,3];case 3:return[2]}})})},e.prototype.addEventRecords=function(t){return x(this,void 0,void 0,function(){var r,n,i,o,s=this;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t.length===0?[2]:[4,this.getDB()];case 1:return r=a.sent(),n=r.transaction([we.EVENTS],"readwrite"),i=n.objectStore(we.EVENTS),[2,new Promise(function(u){n.oncomplete=function(){u()},n.onabort=function(l){s.logger.debug("DiagnosticsStorage: Failed to add event records",l),u()};var c=i.count();c.onsuccess=function(){var l=c.result,f=Math.max(0,AT-l);f<t.length&&s.logger.debug("DiagnosticsStorage: Only added ".concat(f," of ").concat(t.length," events due to storage limit")),t.slice(0,f).forEach(function(d){var h=i.add(d);h.onerror=function(v){s.logger.debug("DiagnosticsStorage: Failed to add event record",v)}})},c.onerror=function(l){s.logger.debug("DiagnosticsStorage: Failed to count existing events",l)}})];case 2:return o=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to add event records",o),[3,3];case 3:return[2]}})})},e.prototype.setInternal=function(t,r){return x(this,void 0,void 0,function(){var n,i,o,s;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.getDB()];case 1:return n=a.sent(),i=n.transaction([we.INTERNAL],"readwrite"),o=i.objectStore(we.INTERNAL),[2,new Promise(function(u,c){i.onabort=function(){return c(new Error("Failed to set internal value"))};var l=o.put({key:t,value:r});l.onsuccess=function(){return u()},l.onerror=function(){return c(new Error("Failed to set internal value"))}})];case 2:return s=a.sent(),this.logger.debug("DiagnosticsStorage: Failed to set internal value",s),[3,3];case 3:return[2]}})})},e.prototype.getInternal=function(t){return x(this,void 0,void 0,function(){var r,n,i,o;return O(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.getDB()];case 1:return r=s.sent(),n=r.transaction([we.INTERNAL],"readonly"),i=n.objectStore(we.INTERNAL),[2,new Promise(function(a,u){n.onabort=function(){return u(new Error("Failed to get internal value"))};var c=i.get(t);c.onsuccess=function(){return a(c.result)},c.onerror=function(){return u(new Error("Failed to get internal value"))}})];case 2:return o=s.sent(),this.logger.debug("DiagnosticsStorage: Failed to get internal value",o),[2,void 0];case 3:return[2]}})})},e.prototype.getLastFlushTimestamp=function(){return x(this,void 0,void 0,function(){var t,r;return O(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.getInternal(Hf.LAST_FLUSH_TIMESTAMP)];case 1:return t=n.sent(),[2,t?parseInt(t.value,10):void 0];case 2:return r=n.sent(),this.logger.debug("DiagnosticsStorage: Failed to get last flush timestamp",r),[2,void 0];case 3:return[2]}})})},e.prototype.setLastFlushTimestamp=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.setInternal(Hf.LAST_FLUSH_TIMESTAMP,t.toString())];case 1:return n.sent(),[3,3];case 2:return r=n.sent(),this.logger.debug("DiagnosticsStorage: Failed to set last flush timestamp",r),[3,3];case 3:return[2]}})})},e.prototype.clearTable=function(t,r){return new Promise(function(n,i){var o=t.objectStore(r),s=o.clear();s.onsuccess=function(){return n()},s.onerror=function(){return i(new Error("Failed to clear table ".concat(r)))}})},e.prototype.getAllAndClear=function(){return x(this,void 0,void 0,function(){var t,r,n,i,o,s,a,u;return O(this,function(c){switch(c.label){case 0:return c.trys.push([0,4,,5]),[4,this.getDB()];case 1:return t=c.sent(),r=t.transaction([we.TAGS,we.COUNTERS,we.HISTOGRAMS,we.EVENTS],"readwrite"),[4,Promise.all([this.getAllFromStore(r,we.TAGS),this.getAllFromStore(r,we.COUNTERS),this.getAllFromStore(r,we.HISTOGRAMS),this.getAllFromStore(r,we.EVENTS)])];case 2:return n=oe.apply(void 0,[c.sent(),4]),i=n[0],o=n[1],s=n[2],a=n[3],[4,Promise.all([this.clearTable(r,we.COUNTERS),this.clearTable(r,we.HISTOGRAMS),this.clearTable(r,we.EVENTS)])];case 3:return c.sent(),[2,{tags:i,counters:o,histogramStats:s,events:a}];case 4:return u=c.sent(),this.logger.debug("DiagnosticsStorage: Failed to get all and clear data",u),[2,{tags:[],counters:[],histogramStats:[],events:[]}];case 5:return[2]}})})},e.prototype.getAllFromStore=function(t,r){return new Promise(function(n,i){var o=t.objectStore(r),s=o.getAll();s.onsuccess=function(){return n(s.result)},s.onerror=function(){return i(new Error("Failed to get all from ".concat(r)))}})},e})(),CT="__AMPLITUDE_SCRIPT_URL__",kT="sdk.error.uncaught",RT=function(){var e=le();if(!e)return[];var t=e[CT];return Array.isArray(t)?t:typeof t=="string"?[t]:[]},PT=function(e){var t=le();if(!(!t||typeof t.addEventListener!="function")){var r=function(o){var s=o.error instanceof Error?o.error:void 0,a=s?.stack,u=jf({filename:o.filename,stack:a});u&&i({type:"error",message:o.message,stack:a,filename:o.filename,errorName:s?.name,metadata:{colno:o.colno,lineno:o.lineno,isTrusted:o.isTrusted,matchReason:u}})},n=function(o){var s,a=o.reason instanceof Error?o.reason:void 0,u=a?.stack,c=OT(u),l=jf({filename:c,stack:u});l&&i({type:"unhandledrejection",message:(s=a?.message)!==null&&s!==void 0?s:xT(o.reason),stack:u,filename:c,errorName:a?.name,metadata:{isTrusted:o.isTrusted,matchReason:l}})},i=function(o){e.recordEvent(kT,D({type:o.type,message:o.message,filename:o.filename,error_name:o.errorName,stack:o.stack},o.metadata))};t.addEventListener("error",r,!0),t.addEventListener("unhandledrejection",n,!0)}},jf=function(e){var t,r,n=RT();if(n.length!==0)try{for(var i=ce(n),o=i.next();!o.done;o=i.next()){var s=o.value;if(e.filename&&e.filename.includes(s))return"filename";if(e.stack&&e.stack.includes(s))return"stack"}}catch(a){t={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},OT=function(e){if(e){var t=e.match(/(https?:\/\/\S+?)(?=[)\s]|$)/);return t?t[1]:void 0}},xT=function(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return"[object Object]"}},NT=1e3,bo=300*1e3,LT="https://diagnostics.prod.us-west-2.amplitude.com/v1/capture",MT="https://diagnostics.prod.eu-central-1.amplitude.com/v1/capture",ga=1e4,DT=10,UT=(function(){function e(t,r,n,i){n===void 0&&(n="US"),this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},this.inMemoryEvents=[],this.saveTimer=null,this.flushTimer=null,this.apiKey=t,this.logger=r,this.serverUrl=n==="US"?LT:MT,this.logger.debug("DiagnosticsClient: Initializing with options",JSON.stringify(i,null,2)),this.config=D({enabled:!0,sampleRate:0},i),this.startTimestamp=Date.now(),this.shouldTrack=Uf(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,Bf.isSupported()?this.storage=new Bf(t,r):this.logger.debug("DiagnosticsClient: IndexedDB is not supported"),this.initializeFlushInterval(),this.shouldTrack&&(this.increment("sdk.diagnostics.sampled.in.and.enabled"),PT(this))}return e.prototype.isStorageAndTrackEnabled=function(){return!!this.storage&&!!this.shouldTrack},e.prototype.setTag=function(t,r){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryTags).length>=ga){this.logger.debug("DiagnosticsClient: Early return setTags as reaching memory limit");return}this.inMemoryTags[t]=r,this.startTimersIfNeeded()}},e.prototype.increment=function(t,r){if(r===void 0&&(r=1),!!this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryCounters).length>=ga){this.logger.debug("DiagnosticsClient: Early return increment as reaching memory limit");return}this.inMemoryCounters[t]=(this.inMemoryCounters[t]||0)+r,this.startTimersIfNeeded()}},e.prototype.recordHistogram=function(t,r){if(this.isStorageAndTrackEnabled()){if(Object.keys(this.inMemoryHistograms).length>=ga){this.logger.debug("DiagnosticsClient: Early return recordHistogram as reaching memory limit");return}var n=this.inMemoryHistograms[t];n?(n.count+=1,n.min=Math.min(n.min,r),n.max=Math.max(n.max,r),n.sum+=r):this.inMemoryHistograms[t]={count:1,min:r,max:r,sum:r},this.startTimersIfNeeded()}},e.prototype.recordEvent=function(t,r){if(this.isStorageAndTrackEnabled()){if(this.inMemoryEvents.length>=DT){this.logger.debug("DiagnosticsClient: Early return recordEvent as reaching memory limit");return}this.inMemoryEvents.push({event_name:t,time:Date.now(),event_properties:r}),this.startTimersIfNeeded()}},e.prototype.startTimersIfNeeded=function(){var t=this;this.saveTimer||(this.saveTimer=setTimeout(function(){t.saveAllDataToStorage().catch(function(r){t.logger.debug("DiagnosticsClient: Failed to save all data to storage",r)}).finally(function(){t.saveTimer=null})},NT)),this.flushTimer||(this.flushTimer=setTimeout(function(){t._flush().catch(function(r){t.logger.debug("DiagnosticsClient: Failed to flush",r)}).finally(function(){t.flushTimer=null})},bo))},e.prototype.saveAllDataToStorage=function(){return x(this,void 0,void 0,function(){var t,r,n,i;return O(this,function(o){switch(o.label){case 0:return this.storage?(t=D({},this.inMemoryTags),r=D({},this.inMemoryCounters),n=D({},this.inMemoryHistograms),i=Ee([],oe(this.inMemoryEvents),!1),this.inMemoryEvents=[],this.inMemoryTags={},this.inMemoryCounters={},this.inMemoryHistograms={},[4,Promise.all([this.storage.setTags(t),this.storage.incrementCounters(r),this.storage.setHistogramStats(n),this.storage.addEventRecords(i)])]):[2];case 1:return o.sent(),[2]}})})},e.prototype._flush=function(){return x(this,void 0,void 0,function(){var t,r,n,i,o,s,a,u,c,l;return O(this,function(f){switch(f.label){case 0:return this.storage?[4,this.saveAllDataToStorage()]:[2];case 1:return f.sent(),this.saveTimer=null,this.flushTimer=null,[4,this.storage.getAllAndClear()];case 2:return t=f.sent(),r=t.tags,n=t.counters,i=t.histogramStats,o=t.events,this.storage.setLastFlushTimestamp(Date.now()),s={},r.forEach(function(d){s[d.key]=d.value}),a={},n.forEach(function(d){a[d.key]=d.value}),u={},i.forEach(function(d){u[d.key]={count:d.count,min:d.min,max:d.max,avg:Math.round(d.sum/d.count*100)/100}}),c=o.map(function(d){return{event_name:d.event_name,time:d.time,event_properties:d.event_properties}}),Object.keys(a).length===0&&Object.keys(u).length===0&&c.length===0?[2]:(l={tags:s,histogram:u,counters:a,events:c},this.fetch(l),[2])}})})},e.prototype.fetch=function(t){return x(this,void 0,void 0,function(){var r,n;return O(this,function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!le())throw new Error("DiagnosticsClient: Fetch is not supported");return[4,fetch(this.serverUrl,{method:"POST",headers:{"X-ApiKey":this.apiKey,"Content-Type":"application/json"},body:JSON.stringify(t)})];case 1:return r=i.sent(),r.ok?(this.logger.debug("DiagnosticsClient: Successfully sent diagnostics data"),[3,3]):(this.logger.debug("DiagnosticsClient: Failed to send diagnostics data."),[2]);case 2:return n=i.sent(),this.logger.debug("DiagnosticsClient: Failed to send diagnostics data. ",n),[3,3];case 3:return[2]}})})},e.prototype.initializeFlushInterval=function(){return x(this,void 0,void 0,function(){var t,r,n;return O(this,function(i){switch(i.label){case 0:return this.storage?(t=Date.now(),[4,this.storage.getLastFlushTimestamp()]):[2];case 1:return r=i.sent()||-1,r===-1?(this.storage.setLastFlushTimestamp(t),this._setFlushTimer(bo),[2]):(n=t-r,n>=bo?(this._flush(),[2]):(this._setFlushTimer(bo-n),[2]))}})})},e.prototype._setFlushTimer=function(t){var r=this;this.flushTimer=setTimeout(function(){r._flush().catch(function(n){r.logger.debug("DiagnosticsClient: Failed to flush",n)}).finally(function(){r.flushTimer=null})},t)},e.prototype._setSampleRate=function(t){this.logger.debug("DiagnosticsClient: Setting sample rate to",t),this.config.sampleRate=t,this.shouldTrack=Uf(this.startTimestamp,this.config.sampleRate)&&this.config.enabled,this.logger.debug("DiagnosticsClient: Should track is",this.shouldTrack)},e})(),ro=(function(){function e(){}return e.prototype.send=function(t,r,n){return Promise.resolve(null)},e.prototype.buildResponse=function(t){var r,n,i,o,s,a,u,c,l,f,d,h,v,p,b,E,m,g,y,_,S,A;if(typeof t!="object")return null;var I=t.code||0,C=this.buildStatus(I);switch(C){case je.Success:return{status:C,statusCode:I,body:{eventsIngested:(r=t.events_ingested)!==null&&r!==void 0?r:0,payloadSizeBytes:(n=t.payload_size_bytes)!==null&&n!==void 0?n:0,serverUploadTime:(i=t.server_upload_time)!==null&&i!==void 0?i:0}};case je.Invalid:return{status:C,statusCode:I,body:{error:(o=t.error)!==null&&o!==void 0?o:"",missingField:(s=t.missing_field)!==null&&s!==void 0?s:"",eventsWithInvalidFields:(a=t.events_with_invalid_fields)!==null&&a!==void 0?a:{},eventsWithMissingFields:(u=t.events_with_missing_fields)!==null&&u!==void 0?u:{},eventsWithInvalidIdLengths:(c=t.events_with_invalid_id_lengths)!==null&&c!==void 0?c:{},epsThreshold:(l=t.eps_threshold)!==null&&l!==void 0?l:0,exceededDailyQuotaDevices:(f=t.exceeded_daily_quota_devices)!==null&&f!==void 0?f:{},silencedDevices:(d=t.silenced_devices)!==null&&d!==void 0?d:[],silencedEvents:(h=t.silenced_events)!==null&&h!==void 0?h:[],throttledDevices:(v=t.throttled_devices)!==null&&v!==void 0?v:{},throttledEvents:(p=t.throttled_events)!==null&&p!==void 0?p:[]}};case je.PayloadTooLarge:return{status:C,statusCode:I,body:{error:(b=t.error)!==null&&b!==void 0?b:""}};case je.RateLimit:return{status:C,statusCode:I,body:{error:(E=t.error)!==null&&E!==void 0?E:"",epsThreshold:(m=t.eps_threshold)!==null&&m!==void 0?m:0,throttledDevices:(g=t.throttled_devices)!==null&&g!==void 0?g:{},throttledUsers:(y=t.throttled_users)!==null&&y!==void 0?y:{},exceededDailyQuotaDevices:(_=t.exceeded_daily_quota_devices)!==null&&_!==void 0?_:{},exceededDailyQuotaUsers:(S=t.exceeded_daily_quota_users)!==null&&S!==void 0?S:{},throttledEvents:(A=t.throttled_events)!==null&&A!==void 0?A:[]}};case je.Timeout:default:return{status:C,statusCode:I}}},e.prototype.buildStatus=function(t){return Eu(t)?je.Success:t===429?je.RateLimit:t===413?je.PayloadTooLarge:t===408?je.Timeout:t>=400&&t<500?je.Invalid:t>=500?je.Failed:je.Unknown},e})(),FT=(function(e){Mt(t,e);function t(r){r===void 0&&(r={});var n=e.call(this)||this;return n.customHeaders=r,n}return t.prototype.send=function(r,n){return x(this,void 0,void 0,function(){var i,o,s;return O(this,function(a){switch(a.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return i={headers:D({"Content-Type":"application/json",Accept:"*/*"},this.customHeaders),body:JSON.stringify(n),method:"POST"},[4,fetch(r,i)];case 1:return o=a.sent(),[4,o.text()];case 2:s=a.sent();try{return[2,this.buildResponse(JSON.parse(s))]}catch{return[2,this.buildResponse({code:o.status})]}return[2]}})})},t})(ro),Gp=2*1024;function Kp(){return typeof CompressionStream<"u"}function zp(e){return x(this,void 0,void 0,function(){var t,r;return O(this,function(n){switch(n.label){case 0:if(t=CompressionStream,typeof t>"u")return[2,void 0];n.label=1;case 1:return n.trys.push([1,3,,4]),r=new Blob([e]).stream().pipeThrough(new t("gzip")),[4,new Response(r).arrayBuffer()];case 2:return[2,n.sent()];case 3:return n.sent(),[2,void 0];case 4:return[2]}})})}var HT=(function(){function e(t,r){this.key="AMP_remote_config_".concat(t.substring(0,10)),this.logger=r}return e.prototype.fetchConfig=function(){var t=null,r={remoteConfig:null,lastFetch:new Date};try{t=localStorage.getItem(this.key)}catch(i){return this.logger.debug("Remote config localstorage failed to access: ",i),Promise.resolve(r)}if(t===null)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(r);try{var n=JSON.parse(t);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(n))),Promise.resolve({remoteConfig:n.remoteConfig,lastFetch:new Date(n.lastFetch)})}catch(i){return this.logger.debug("Remote config localstorage failed to parse: ",i),localStorage.removeItem(this.key),Promise.resolve(r)}},e.prototype.setConfig=function(t){try{return localStorage.setItem(this.key,JSON.stringify(t)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(r){this.logger.debug("Remote config localstorage failed to set: ",r)}return Promise.resolve(!1)},e})(),BT="https://sr-client-cfg.amplitude.com/config",jT="https://sr-client-cfg.eu.amplitude.com/config",qT=3,ma={INVALID_API_KEY:401,FORBIDDEN:403,RATE_LIMIT:429},VT=1e3,$T=300*1e3,Xp=(function(){function e(t,r,n,i){n===void 0&&(n="US"),this.callbackInfos=[],this.lastSuccessfulFetch=null,this.fetchPromise=null,this.isLastFetchInvalidApiKey=!1,this.apiKey=t,this.serverUrl=i||(n==="US"?BT:jT),this.logger=r,this.storage=new HT(t,r)}return e.prototype.subscribe=function(t,r,n){var i=Qt(),o={id:i,key:t,deliveryMode:r,callback:n};return this.callbackInfos.push(o),r==="all"?this.subscribeAll(o):this.subscribeWaitForRemote(o,r.timeout),i},e.prototype.unsubscribe=function(t){var r=this.callbackInfos.findIndex(function(n){return n.id===t});return r===-1?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(t," doesn't exist.")),!1):(this.callbackInfos.splice(r,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(t,".")),!0)},e.prototype.updateConfigs=function(){return x(this,void 0,void 0,function(){var t,r,n=this;return O(this,function(i){switch(i.label){case 0:return this.lastSuccessfulFetch&&(t=Date.now()-this.lastSuccessfulFetch,t<$T)?(this.logger.debug("Remote config client skipping updateConfigs: Too recent"),[2]):[4,this.getOrCreateFetchPromise()];case 1:return r=i.sent(),this.storage.setConfig(r),this.callbackInfos.forEach(function(o){n.sendCallback(o,r,"remote")}),[2]}})})},e.prototype.getOrCreateFetchPromise=function(){var t=this;return this.fetchPromise?this.fetchPromise:this.isLastFetchInvalidApiKey?(this.logger.debug("Remote config client skipping fetch: Invalid API key"),this.fetchPromise=Promise.resolve({remoteConfig:null,lastFetch:new Date}).finally(function(){t.fetchPromise=null}),this.fetchPromise):(this.fetchPromise=this.fetch().then(function(r){return r.remoteConfig!==null&&(t.lastSuccessfulFetch=Date.now()),r}).finally(function(){t.fetchPromise=null}),this.fetchPromise)},e.prototype.subscribeAll=function(t){return x(this,void 0,void 0,function(){var r,n,i,o=this;return O(this,function(s){switch(s.label){case 0:return r=this.getOrCreateFetchPromise().then(function(a){o.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(a))),o.sendCallback(t,a,"remote"),o.storage.setConfig(a)}),n=this.storage.fetchConfig().then(function(a){return a}),[4,Promise.race([r,n])];case 1:return i=s.sent(),i!==void 0&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(i))),i.remoteConfig!==null?this.sendCallback(t,i,"cache"):this.logger.debug("Remote config client skips sending callback because cache is empty (first time user).")),[4,r];case 2:return s.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(t,r){return x(this,void 0,void 0,function(){var n,i,i;return O(this,function(o){switch(o.label){case 0:n=new Promise(function(s,a){setTimeout(function(){a("Timeout exceeded")},r)}),o.label=1;case 1:return o.trys.push([1,3,,5]),[4,Promise.race([this.getOrCreateFetchPromise(),n])];case 2:return i=o.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(t,i,"remote"),this.storage.setConfig(i),[3,5];case 3:return o.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return i=o.sent(),i.remoteConfig!==null?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(t,i,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(t,i,"remote")),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(t,r,n){t.lastCallback=new Date;var i;t.key?i=t.key.split(".").reduce(function(o,s){return o===null?o:s in o?o[s]:null},r.remoteConfig):i=r.remoteConfig,t.callback(i,n,r.lastFetch)},e.prototype.fetch=function(t,r){return t===void 0&&(t=qT),r===void 0&&(r=VT),x(this,void 0,void 0,function(){var n,i,o,s,a,u,c=this;return O(this,function(l){switch(l.label){case 0:n=r/t,i={remoteConfig:null,lastFetch:new Date},o=function(f){var d,h,v,p,b,E,m;return O(this,function(g){switch(g.label){case 0:d=!0,h=new AbortController,v=setTimeout(function(){return h.abort()},r),g.label=1;case 1:return g.trys.push([1,7,8,9]),[4,fetch(s.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:h.signal})];case 2:return p=g.sent(),p.ok?[3,4]:[4,p.text()];case 3:return b=g.sent(),s.logger.debug("Remote config client fetch with retry time ".concat(t," failed with ").concat(p.status,": ").concat(b)),p.status===ma.INVALID_API_KEY||p.status===ma.FORBIDDEN?(s.logger.error("Remote config client fetch failed with ".concat(p.status,". Invalid API key; future fetches will be skipped.")),s.isLastFetchInvalidApiKey=!0,d=!1):p.status>=400&&p.status<500&&p.status!==ma.RATE_LIMIT&&(d=!1),[3,6];case 4:return[4,p.json()];case 5:return E=g.sent(),[2,{value:{remoteConfig:E,lastFetch:new Date}}];case 6:return[3,9];case 7:return m=g.sent(),m instanceof Error&&m.name==="AbortError"?s.logger.debug("Remote config client fetch with retry time ".concat(t," timed out after ").concat(r,"ms")):s.logger.debug("Remote config client fetch with retry time ".concat(t," is rejected because: "),m),[3,9];case 8:return clearTimeout(v),[7];case 9:return d?f<t-1?[4,new Promise(function(y){return setTimeout(y,c.getJitterDelay(n))})]:[3,11]:[2,"break"];case 10:g.sent(),g.label=11;case 11:return[2]}})},s=this,a=0,l.label=1;case 1:return a<t?[5,o(a)]:[3,4];case 2:if(u=l.sent(),typeof u=="object")return[2,u.value];if(u==="break")return[3,4];l.label=3;case 3:return a++,[3,1];case 4:return[2,i]}})})},e.prototype.getJitterDelay=function(t){return Math.floor(Math.random()*t)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),r=new URLSearchParams;return r.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(t,"?").concat(r.toString())},e.CONFIG_GROUP="browser",e})(),ya=le(),Sn=ya?.console,sn={},xi={},ba=!1;function WT(e){if(!Sn||typeof Sn[e]!="function")return!1;if(xi[e])return!0;var t=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{if(sn[e]&&!ba){ba=!0;var i=sn[e];i&&i.forEach(function(o){try{o(e,r)}catch{}})}}catch{}return ba=!1,xi[e].apply(Sn,r)};return xi[e]=Sn[e],Sn[e]=t,!0}function GT(e,t){var r=WT(e);if(!r)return new Error("Console override failed");sn[e]?sn[e].push(t):sn[e]=[t]}function KT(e){var t,r;try{for(var n=ce(Object.values(sn)),i=n.next();!i.done;i=n.next())for(var o=i.value,s=o.length-1;s>=0;s--)if(o[s]===e){o.splice(s,1);break}}catch(a){t={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}}function zT(){var e,t;try{for(var r=ce(Object.entries(xi)),n=r.next();!n.done;n=r.next()){var i=oe(n.value,2),o=i[0],s=i[1];s&&(Sn[o]=s)}}catch(a){e={error:a}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}xi={},sn={}}var qf={addListener:GT,removeListener:KT,_restoreConsole:zT},Xn;(function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"})(Xn||(Xn={}));var Yp=null,Jp=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],Cl="data-amp-track-",Qp=["div","span","h1","h2","h3","h4","h5","h6"],Zp=150,XT=["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]'],eg=Ee(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],oe(XT),!1),YT=eg,JT=eg,QT=["*"],ZT=1e3,eA=4,tA=50;function rA(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0}function tg(e,t,r){if(e){var n=t.map(Vf),i=r.map(Vf);rg({json:e,allowlist:n,excludelist:i,ancestors:[]})}}function rg(e){var t,r,n=e.json,i=e.targetObject,o=e.allowlist,s=e.excludelist,a=e.ancestors,u=e.parentObject,c=e.targetKey;i||(i=n);var l=Object.keys(i);try{for(var f=ce(l),d=f.next();!d.done;d=f.next()){var h=d.value,v=Ee(Ee([],oe(a),!1),[h],!1);rA(i[h])?(!$f(v,o)||$f(v,s))&&delete i[h]:rg({json:n,targetObject:i[h],allowlist:o,excludelist:s,ancestors:v,parentObject:i,targetKey:h})}}catch(p){t={error:p}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(t)throw t.error}}Object.keys(i).length===0&&u&&c&&delete u[c]}function Vf(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(t){return t.replace(/~0/g,"~").replace(/~1/g,"/")})}function wu(e,t,r,n){if(r===void 0&&(r=0),n===void 0&&(n=0),n===t.length)return r===e.length;if(r===e.length){for(;n<t.length&&t[n]==="**";)n++;return n===t.length}var i=t[n];if(i==="**"){if(n+1===t.length)return!0;for(var o=r;o<=e.length;o++)if(wu(e,t,o,n+1))return!0;return!1}else return i==="*"||i===e[r]?wu(e,t,r+1,n+1):!1}function $f(e,t){return t.some(function(r){return wu(e,r)})}var nA=500,ng=100,iA=(function(){function e(t){this.request=t}return e.prototype.headers=function(t){var r,n;t===void 0&&(t=[]);var i=this.request.headers,o={};if(Array.isArray(i))i.forEach(function(f){var d=oe(f,2),h=d[0],v=d[1];o[h]=v});else if(i instanceof Headers)i.forEach(function(f,d){o[d]=f});else if(typeof i=="object"&&i!==null)try{for(var s=ce(Object.entries(i)),a=s.next();!a.done;a=s.next()){var u=oe(a.value,2),c=u[0],l=u[1];o[c]=l}}catch(f){r={error:f}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return Bs(o,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(typeof this._bodySize=="number")return this._bodySize;var t=le();if(t?.TextEncoder){var r=this.request.body;return this._bodySize=ig(r,ng),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.request.body=="string"?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),x(this,void 0,void 0,function(){var n;return O(this,function(i){return t.length===0?[2,null]:(n=this.body,[2,kl(n,t,r)])})})},e})(),oA=(function(){function e(t,r){this.bodyRaw=t,this.requestHeaders=r}return e.prototype.headers=function(t){return t===void 0&&(t=[]),Bs(this.requestHeaders,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return ig(this.bodyRaw,ng)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.bodyRaw=="string"?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),x(this,void 0,void 0,function(){var n;return O(this,function(i){return t.length===0?[2,null]:(n=this.body,[2,kl(n,t,r)])})})},e})();function ig(e,t){var r,n,i,o=le(),s=o?.TextEncoder;if(s){var a;if(typeof e=="string")a=e,i=new s().encode(a).length;else if(e instanceof Blob)a=e,i=a.size;else if(e instanceof URLSearchParams)a=e,i=new s().encode(a.toString()).length;else if(ArrayBuffer.isView(e))a=e,i=a.byteLength;else if(e instanceof ArrayBuffer)a=e,i=a.byteLength;else if(e instanceof FormData){var u=e,c=0,l=0;try{for(var f=ce(u.entries()),d=f.next();!d.done;d=f.next()){var h=oe(d.value,2),v=h[0],p=h[1];if(c+=v.length,typeof p=="string")c+=new s().encode(p).length;else if(p instanceof Blob)c+=p.size;else return;if(++l>=t)return}}catch(b){r={error:b}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}i=c}else if(e instanceof ReadableStream){a=e;return}return i}}var sA=(function(){function e(t){this.response=t}return e.prototype.headers=function(t){var r;if(t===void 0&&(t=[]),this.response.headers instanceof Headers){var n=this.response.headers,i={};return(r=n?.forEach)===null||r===void 0||r.call(n,function(o,s){i[s]=o}),Bs(i,{allow:t})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var t,r;if(this._bodySize!==void 0)return this._bodySize;var n=(r=(t=this.response.headers)===null||t===void 0?void 0:t.get)===null||r===void 0?void 0:r.call(t,"content-length"),i=n?parseInt(n,10):void 0;return this._bodySize=i,i},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return x(this,void 0,void 0,function(){var t,r,n;return O(this,function(i){switch(i.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),i.label=1;case 1:return i.trys.push([1,3,,4]),t=this.clonedResponse.text(),r=new Promise(function(o){return setTimeout(function(){return o(null)},nA)}),[4,Promise.race([t,r])];case 2:return n=i.sent(),[2,n];case 3:return i.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),x(this,void 0,void 0,function(){var n;return O(this,function(i){switch(i.label){case 0:return t.length===0?[2,null]:[4,this.text()];case 1:return n=i.sent(),[2,kl(n,t,r)]}})})},e})(),aA=(function(){function e(t,r,n,i){this.statusCode=t,this.headersString=r,this.size=n,this.getJson=i}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(t){var r,n;if(t===void 0&&(t=[]),!this.headersString)return{};var i={},o=this.headersString.split(`\r
`);try{for(var s=ce(o),a=s.next();!a.done;a=s.next()){var u=a.value,c=oe(u.split(": "),2),l=c[0],f=c[1];l&&f&&(i[l]=f)}}catch(d){r={error:d}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return Bs(i,{allow:t})},e.prototype.json=function(t,r){return t===void 0&&(t=[]),r===void 0&&(r=[]),x(this,void 0,void 0,function(){var n;return O(this,function(i){return t.length===0?[2,null]:(n=this.getJson(),n?(tg(n,t,r),[2,n]):[2,null])})})},e})();function kl(e,t,r){if(!e)return null;try{var n=JSON.parse(e);return tg(n,t,r),n}catch{return null}}var Ni;(function(e){e.REDACT="redact",e.REMOVE="remove"})(Ni||(Ni={}));var Wf="[REDACTED]",Bs=function(e,t){var r,n,i=t.allow,o=i===void 0?[]:i,s=t.strategy,a=s===void 0?Ni.REMOVE:s,u=Ee([],oe(Hw),!1),c={},l=function(v){var p=v.toLowerCase();u.find(function(b){return b.toLowerCase()===p})?a===Ni.REDACT&&(c[v]=Wf):o.find(function(b){return b.toLowerCase()===p})?c[v]=e[v]:a===Ni.REDACT&&(c[v]=Wf)};try{for(var f=ce(Object.keys(e)),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)}}catch(v){r={error:v}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}return c},uA=(function(){function e(t,r,n,i,o,s,a,u,c,l,f){a===void 0&&(a=0),this.type=t,this.method=r,this.timestamp=n,this.startTime=i,this.url=o,this.requestWrapper=s,this.status=a,this.duration=u,this.responseWrapper=c,this.error=l,this.endTime=f}return e.prototype.toSerializable=function(){var t,r,n,i,o={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:(t=this.requestWrapper)===null||t===void 0?void 0:t.headers(Ee([],oe(vs),!1)),requestBodySize:(r=this.requestWrapper)===null||r===void 0?void 0:r.bodySize,responseHeaders:(n=this.responseWrapper)===null||n===void 0?void 0:n.headers(Ee([],oe(vs),!1)),responseBodySize:(i=this.responseWrapper)===null||i===void 0?void 0:i.bodySize};return Object.fromEntries(Object.entries(o).filter(function(s){var a=oe(s,2);a[0];var u=a[1];return u!==void 0}))},e})();function lA(e){return typeof e=="object"&&e!==null&&"url"in e&&"method"in e}var cA=(function(){function e(t,r){r===void 0&&(r=Qt()),this.callback=t,this.id=r}return e})();function $r(e){try{e()}catch{}}var fA=(function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var r=le();e.isSupported()&&(this.globalScope=r)}return e.isSupported=function(){var t=le();return!!t&&!!t.fetch},e.prototype.subscribe=function(t,r){var n,i,o,s,a,u,c,l,f,d;if(this.logger||(this.logger=r),this.eventCallbacks.set(t.id,t),!this.isObserving){var h=(o=(i=(n=this.globalScope)===null||n===void 0?void 0:n.XMLHttpRequest)===null||i===void 0?void 0:i.prototype)===null||o===void 0?void 0:o.open,v=(u=(a=(s=this.globalScope)===null||s===void 0?void 0:s.XMLHttpRequest)===null||a===void 0?void 0:a.prototype)===null||u===void 0?void 0:u.send,p=(f=(l=(c=this.globalScope)===null||c===void 0?void 0:c.XMLHttpRequest)===null||l===void 0?void 0:l.prototype)===null||f===void 0?void 0:f.setRequestHeader;h&&v&&p&&this.observeXhr(h,v,p);var b=(d=this.globalScope)===null||d===void 0?void 0:d.fetch;b&&this.observeFetch(b),this.isObserving=!0}},e.prototype.unsubscribe=function(t){this.eventCallbacks.delete(t.id)},e.prototype.triggerEventCallbacks=function(t){var r=this;this.eventCallbacks.forEach(function(n){try{n.callback(t)}catch(i){$r(function(){var o;(o=r.logger)===null||o===void 0||o.debug("an unexpected error occurred while triggering event callbacks",i)})}})},e.prototype.handleNetworkRequestEvent=function(t,r,n,i,o,s,a){var u;if(!(s===void 0||a===void 0)){var c,l="GET";if(lA(r)?(c=r.url,l=r.method):c=(u=r?.toString)===null||u===void 0?void 0:u.call(r),c)try{var f=new URL(c);c="".concat(f.protocol,"//").concat(f.host).concat(f.pathname).concat(f.search).concat(f.hash)}catch{}l=n?.method||l;var d,h;i&&(d=i.status),o&&(h={name:o.name||"UnknownError",message:o.message||"An unknown error occurred"},d=0);var v=Math.floor(performance.now()-a),p=Math.floor(s+v),b=new uA(t,l,s,s,c,n,d,v,i,h,p);this.triggerEventCallbacks(b)}},e.prototype.getTimestamps=function(){var t,r;return{startTime:(t=Date.now)===null||t===void 0?void 0:t.call(Date),durationStart:(r=performance?.now)===null||r===void 0?void 0:r.call(performance)}},e.prototype.observeFetch=function(t){var r=this;!this.globalScope||!t||(this.globalScope.fetch=function(n,i){return x(r,void 0,void 0,function(){var o,s,a,u,c=this;return O(this,function(l){switch(l.label){case 0:try{o=this.getTimestamps()}catch(f){$r(function(){var d;return(d=c.logger)===null||d===void 0?void 0:d.debug("an unexpected error occurred while retrieving timestamps",f)})}l.label=1;case 1:return l.trys.push([1,3,,4]),[4,t(n,i)];case 2:return s=l.sent(),[3,4];case 3:return u=l.sent(),a=u,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",n,i?new iA(i):void 0,s?new sA(s):void 0,a,o?.startTime,o?.durationStart)}catch(f){$r(function(){var d;return(d=c.logger)===null||d===void 0?void 0:d.debug("an unexpected error occurred while handling fetch",f)})}if(s)return[2,s];throw a}})})})},e.createXhrJsonParser=function(t,r){return function(){var n;try{if(t.responseType==="json"){if(!((n=r.globalScope)===null||n===void 0)&&n.structuredClone)return r.globalScope.structuredClone(t.response)}else if(["text",""].includes(t.responseType))return JSON.parse(t.responseText)}catch(i){return i instanceof Error&&i.name==="InvalidStateError"&&$r(function(){var o;return(o=r.logger)===null||o===void 0?void 0:o.debug("unexpected error when retrieving responseText. responseType='".concat(t.responseType,"'"))}),null}return null}},e.prototype.observeXhr=function(t,r,n){if(!(!this.globalScope||!t||!r)){var i=this.globalScope.XMLHttpRequest.prototype,o=this;i.open=function(){for(var s,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];var c=this,l=oe(a,2),f=l[0],d=l[1];try{c.$$AmplitudeAnalyticsEvent=D({method:f,url:(s=d?.toString)===null||s===void 0?void 0:s.call(d),headers:{}},o.getTimestamps())}catch(h){$r(function(){var v;return(v=o.logger)===null||v===void 0?void 0:v.debug("an unexpected error occurred while calling xhr open",h)})}return t.apply(c,a)},i.send=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var u=this,c=u,l=e.createXhrJsonParser(u,o),f=s[0],d=c.$$AmplitudeAnalyticsEvent;return c.$$AmplitudeAnalyticsEvent&&c.addEventListener("loadend",function(){try{var h=c.getAllResponseHeaders(),v=c.getResponseHeader("content-length"),p=new aA(c.status,h,v?parseInt(v,10):void 0,l),b=c.$$AmplitudeAnalyticsEvent.headers,E=new oA(f,b);d.status=c.status,o.handleNetworkRequestEvent("xhr",{url:d.url,method:d.method},E,p,void 0,d.startTime,d.durationStart)}catch(m){$r(function(){var g;return(g=o.logger)===null||g===void 0?void 0:g.debug("an unexpected error occurred while handling xhr send",m)})}}),r.apply(c,s)},i.setRequestHeader=function(s,a){var u=this;try{var c=u.$$AmplitudeAnalyticsEvent;c&&(c.headers[s]=a)}catch(l){$r(function(){var f;return(f=o.logger)===null||f===void 0?void 0:f.debug("an unexpected error occurred while calling xhr setRequestHeader",l)})}n.apply(u,[s,a])}}},e})(),Gf=new fA,og=(function(){function e(){}return e.prototype.parse=function(){return x(this,void 0,void 0,function(){return O(this,function(t){return[2,D(D(D(D({},Fs),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var t=ps(),r=t[Nw],n=t[Lw],i=t[Mw],o=t[Dw],s=t[Uw],a=t[Fw];return{utm_campaign:r,utm_content:n,utm_id:i,utm_medium:o,utm_source:s,utm_term:a}},e.prototype.getReferrer=function(){var t,r,n={referrer:void 0,referring_domain:void 0};try{n.referrer=document.referrer||void 0,n.referring_domain=(r=(t=n.referrer)===null||t===void 0?void 0:t.split("/")[2])!==null&&r!==void 0?r:void 0}catch{}return n},e.prototype.getClickIds=function(){var t,r=ps();return t={},t[wf]=r[wf],t[Tf]=r[Tf],t[Af]=r[Af],t[If]=r[If],t[Cf]=r[Cf],t[kf]=r[kf],t[Rf]=r[Rf],t[Pf]=r[Pf],t[Of]=r[Of],t[xf]=r[xf],t[Nf]=r[Nf],t},e})(),Tn="data-amp-mask",Nr="*****",dA=/\b(?:\d[ -]*?){13,16}\b/,hA=/(\d{3}-?\d{2}-?\d{4})/g,vA=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,Rl=function(e,t){var r,n;if(t===void 0&&(t=[]),typeof e!="string")return"";var i=e;i=i.replace(dA,Nr),i=i.replace(hA,Nr),i=i.replace(vA,Nr);try{for(var o=ce(t),s=o.next();!s.done;s=o.next()){var a=s.value;try{i=i.replace(a,Nr)}catch{}}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return i},Pl=function(e){if(typeof document>"u"||!document.title)return"";var t=document.querySelector("title");return t&&t.hasAttribute(Tn)?Nr:e?e(document.title):document.title};function sg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ci={},Kf;function pA(){if(Kf)return ci;Kf=1,Object.defineProperty(ci,"__esModule",{value:!0}),ci.Observable=void 0;const e=E=>!!Symbol[E],t=E=>e(E)?Symbol[E]:"@@"+E,r=t("iterator"),n=t("observable"),i=t("species");function o(E,m){let g=E[m];if(g!=null){if(typeof g!="function")throw new TypeError(g+" is not a function");return g}}function s(E){let m=E.constructor;return m!==void 0&&(m=m[i],m===null&&(m=void 0)),m!==void 0?m:b}function a(E){return E instanceof b}function u(E){u.log?u.log(E):setTimeout(()=>{throw E})}function c(E){Promise.resolve().then(()=>{try{E()}catch(m){u(m)}})}function l(E){let m=E._cleanup;if(m!==void 0&&(E._cleanup=void 0,!!m))try{if(typeof m=="function")m();else{let g=o(m,"unsubscribe");g&&g.call(m)}}catch(g){u(g)}}function f(E){E._observer=void 0,E._queue=void 0,E._state="closed"}function d(E){let m=E._queue;if(m){E._queue=void 0,E._state="ready";for(let g=0;g<m.length&&(h(E,m[g].type,m[g].value),E._state!=="closed");++g);}}function h(E,m,g){E._state="running";let y=E._observer;try{let _=o(y,m);switch(m){case"next":_&&_.call(y,g);break;case"error":if(f(E),_)_.call(y,g);else throw g;break;case"complete":f(E),_&&_.call(y);break}}catch(_){u(_)}E._state==="closed"?l(E):E._state==="running"&&(E._state="ready")}function v(E,m,g){if(E._state!=="closed"){if(E._state==="buffering"){E._queue.push({type:m,value:g});return}if(E._state!=="ready"){E._state="buffering",E._queue=[{type:m,value:g}],c(()=>d(E));return}h(E,m,g)}}class p{constructor(m,g){this._cleanup=void 0,this._observer=m,this._queue=void 0,this._state="initializing";let y=this,_={get closed(){return y._state==="closed"},next(S){v(y,"next",S)},error(S){v(y,"error",S)},complete(){v(y,"complete")}};try{this._cleanup=g.call(void 0,_)}catch(S){_.error(S)}this._state==="initializing"&&(this._state="ready")}get closed(){return this._state==="closed"}unsubscribe(){this._state!=="closed"&&(f(this),l(this))}}class b{constructor(m){if(!(this instanceof b))throw new TypeError("Observable cannot be called as a function");if(typeof m!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=m}subscribe(m){return(typeof m!="object"||m===null)&&(m={next:m,error:arguments[1],complete:arguments[2]}),new p(m,this._subscriber)}forEach(m){return new Promise((g,y)=>{if(typeof m!="function"){y(new TypeError(m+" is not a function"));return}function _(){S.unsubscribe(),g()}let S=this.subscribe({next(A){try{m(A,_)}catch(I){y(I),S.unsubscribe()}},error:y,complete:g})})}map(m){if(typeof m!="function")throw new TypeError(m+" is not a function");let g=s(this);return new g(y=>this.subscribe({next(_){try{_=m(_)}catch(S){return y.error(S)}y.next(_)},error(_){y.error(_)},complete(){y.complete()}}))}filter(m){if(typeof m!="function")throw new TypeError(m+" is not a function");let g=s(this);return new g(y=>this.subscribe({next(_){try{if(!m(_))return}catch(S){return y.error(S)}y.next(_)},error(_){y.error(_)},complete(){y.complete()}}))}reduce(m){if(typeof m!="function")throw new TypeError(m+" is not a function");let g=s(this),y=arguments.length>1,_=!1,A=arguments[1];return new g(I=>this.subscribe({next(C){let R=!_;if(_=!0,!R||y)try{A=m(A,C)}catch(P){return I.error(P)}else A=C},error(C){I.error(C)},complete(){if(!_&&!y)return I.error(new TypeError("Cannot reduce an empty sequence"));I.next(A),I.complete()}}))}async all(){let m=[];return await this.forEach(g=>m.push(g)),m}concat(...m){let g=s(this);return new g(y=>{let _,S=0;function A(I){_=I.subscribe({next(C){y.next(C)},error(C){y.error(C)},complete(){S===m.length?(_=void 0,y.complete()):A(g.from(m[S++]))}})}return A(this),()=>{_&&(_.unsubscribe(),_=void 0)}})}flatMap(m){if(typeof m!="function")throw new TypeError(m+" is not a function");let g=s(this);return new g(y=>{let _=[],S=this.subscribe({next(I){if(m)try{I=m(I)}catch(R){return y.error(R)}let C=g.from(I).subscribe({next(R){y.next(R)},error(R){y.error(R)},complete(){let R=_.indexOf(C);R>=0&&_.splice(R,1),A()}});_.push(C)},error(I){y.error(I)},complete(){A()}});function A(){S.closed&&_.length===0&&y.complete()}return()=>{_.forEach(I=>I.unsubscribe()),S.unsubscribe()}})}[n](){return this}static from(m){let g=typeof this=="function"?this:b;if(m==null)throw new TypeError(m+" is not an object");let y=o(m,n);if(y){let _=y.call(m);if(Object(_)!==_)throw new TypeError(_+" is not an object");return a(_)&&_.constructor===g?_:new g(S=>_.subscribe(S))}if(e("iterator")&&(y=o(m,r),y))return new g(_=>{c(()=>{if(!_.closed){for(let S of y.call(m))if(_.next(S),_.closed)return;_.complete()}})});if(Array.isArray(m))return new g(_=>{c(()=>{if(!_.closed){for(let S=0;S<m.length;++S)if(_.next(m[S]),_.closed)return;_.complete()}})});throw new TypeError(m+" is not observable")}static of(...m){let g=typeof this=="function"?this:b;return new g(y=>{c(()=>{if(!y.closed){for(let _=0;_<m.length;++_)if(y.next(m[_]),y.closed)return;y.complete()}})})}static get[i](){return this}}return ci.Observable=b,Object.defineProperty(b,Symbol("extensions"),{value:{symbol:n,hostReportError:u},configurable:!0}),ci}var Ea,zf;function gA(){return zf||(zf=1,Ea=pA().Observable),Ea}var mA=gA();const et=sg(mA);function Ol(e,t){return new et(function(r){e.subscribe({next:function(n){t(n).then(function(i){return r.next(i)}).catch(function(i){return r.error(i)})},error:function(n){r.error(n)},complete:function(){r.complete()}})})}function un(e,t){return new et(function(r){var n=!1,i=new Set,o=function(){var a,u;n=!0;try{for(var c=ce(i),l=c.next();!l.done;l=c.next()){var f=l.value;try{f.unsubscribe()}catch{}}}catch(d){a={error:d}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}i.clear()},s=function(a){var u=a.subscribe({next:function(c){n||r.next(c)},error:function(c){n||(n=!0,r.error(c),o())},complete:function(){i.delete(u),!n&&i.size===0&&(r.complete(),o(),n=!0)}});i.add(u)};return s(e),s(t),o})}function Xt(e){var t=new Set,r=null;function n(){r?.unsubscribe(),r=null,t.clear()}return new et(function(i){return t.add(i),r===null&&(r=e.subscribe({next:function(o){var s,a,u;try{for(var c=ce(t),l=c.next();!l.done;l=c.next()){var f=l.value;(u=f.next)===null||u===void 0||u.call(f,o)}}catch(d){s={error:d}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}},error:function(o){var s,a,u;try{for(var c=ce(t),l=c.next();!l.done;l=c.next()){var f=l.value;(u=f.error)===null||u===void 0||u.call(f,o)}}catch(d){s={error:d}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(s)throw s.error}}n()},complete:function(){var o,s,a;try{for(var u=ce(t),c=u.next();!c.done;c=u.next()){var l=c.value;(a=l.complete)===null||a===void 0||a.call(l)}}catch(f){o={error:f}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}n()}})),function(){t.delete(i),t.size===0&&r&&(r.unsubscribe(),r=null)}})}var Eo={exports:{}},Xf;function yA(){if(Xf)return Eo.exports;Xf=1;var e=Object.prototype.hasOwnProperty;function t(i){return"[Throws: "+(i?i.message:"?")+"]"}function r(i,o){if(e.call(i,o))try{return i[o]}catch(s){return t(s)}return i[o]}function n(i){var o=[];function s(a){if(a===null||typeof a!="object")return a;if(o.indexOf(a)!==-1)return"[Circular]";if(o.push(a),typeof a.toJSON=="function")try{var u=s(a.toJSON());return o.pop(),u}catch(f){return t(f)}if(Array.isArray(a)){var c=a.map(s);return o.pop(),c}var l=Object.keys(a).reduce(function(f,d){return f[d]=s(r(a,d)),f},{});return o.pop(),l}return s(i)}return Eo.exports=function(i,o,s){return JSON.stringify(n(i),o,s)},Eo.exports.ensureProperties=n,Eo.exports}var ag=yA();const ug=sg(ag),bA=ey({__proto__:null,default:ug},[ag]);var EA=ug||bA,Tu="https://app.amplitude.com",_A="https://app.eu.amplitude.com",SA="https://apps.stag2.amplitude.com",lg={US:Tu,EU:_A,STAGING:SA},wA="https://cdn.amplitude.com/libs/background-capture-1.0.0-alpha.3.js.gz",TA=function(e){var t=document.querySelector('script[src="'.concat(CSS.escape(e),'"]'));return t?Promise.resolve({status:!0}):new Promise(function(r,n){var i;try{var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,o.addEventListener("load",function(){r({status:!0})},{once:!0}),o.addEventListener("error",function(){n({status:!1,message:"Failed to load the script ".concat(e)})}),(i=document.head)===null||i===void 0||i.appendChild(o)}catch(s){n(s)}})};function AA(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var cg,Au="__AMPLITUDE_MESSENGER_INSTANCE__",ms="__AMPLITUDE_MESSENGER__",IA=(function(){function e(t){var r=t===void 0?{}:t,n=r.origin,i=n===void 0?Tu:n;this[cg]=!0,this.isSetup=!1,this.messageHandler=null,this.requestCallbacks={},this.actionHandlers=new Map,this.pendingMessages=new Map,this.scriptLoadPromises=new Map,this.endpoint=i}return e.prototype.notify=function(t){var r,n,i,o;(n=(r=this.logger)===null||r===void 0?void 0:r.debug)===null||n===void 0||n.call(r,"Message sent: ",JSON.stringify(t)),(o=(i=window.opener)===null||i===void 0?void 0:i.postMessage)===null||o===void 0||o.call(i,t,this.endpoint)},e.prototype.sendRequest=function(t,r,n){var i=this;n===void 0&&(n={timeout:15e3});var o=AA(),s={id:o,action:t,args:r},a=new Promise(function(u,c){i.requestCallbacks[o]={resolve:u,reject:c},i.notify(s),n.timeout>0&&setTimeout(function(){c(new Error("".concat(t," timed out (id: ").concat(o,")"))),delete i.requestCallbacks[o]},n.timeout)});return a},e.prototype.handleResponse=function(t){var r;if(!this.requestCallbacks[t.id]){(r=this.logger)===null||r===void 0||r.warn("No callback found for request id: ".concat(t.id));return}this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]},e.prototype.registerActionHandler=function(t,r){var n,i,o,s;this.actionHandlers.has(t)&&((s=(o=this.logger)===null||o===void 0?void 0:o.warn)===null||s===void 0||s.call(o,"Overwriting existing action handler for: ".concat(t))),this.actionHandlers.set(t,r);var a=this.pendingMessages.get(t);if(a){this.pendingMessages.delete(t);try{for(var u=ce(a),c=u.next();!c.done;c=u.next()){var l=c.value;r(l)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}},e.prototype.loadScriptOnce=function(t){return x(this,void 0,void 0,function(){var r,n,i;return O(this,function(o){switch(o.label){case 0:if(r=this.scriptLoadPromises.get(t),r)return[2,r];n=TA(t).then(function(){}),this.scriptLoadPromises.set(t,n),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n];case 2:return o.sent(),[3,4];case 3:throw i=o.sent(),this.scriptLoadPromises.delete(t),i;case 4:return[2]}})})},e.prototype.setup=function(t){var r=this,n,i,o=t===void 0?{}:t,s=o.logger,a=o.endpoint;s&&(this.logger=s),a&&this.endpoint===Tu&&(this.endpoint=a),!this.isSetup&&(this.isSetup=!0,(i=(n=this.logger)===null||n===void 0?void 0:n.debug)===null||i===void 0||i.call(n,"Setting up messenger"),this.messageHandler=function(u){var c,l,f,d,h;if((l=(c=r.logger)===null||c===void 0?void 0:c.debug)===null||l===void 0||l.call(c,"Message received: ",JSON.stringify(u)),r.endpoint===u.origin){var v=u.data,p=v?.action;if(p)if("id"in v&&v.id)(d=(f=r.logger)===null||f===void 0?void 0:f.debug)===null||d===void 0||d.call(f,"Received Response to previous request: ",JSON.stringify(u)),r.handleResponse(v);else{if(p==="ping"){r.notify({action:"pong"});return}var b=r.actionHandlers.get(p);if(b)b(v.data);else{var E=(h=r.pendingMessages.get(p))!==null&&h!==void 0?h:[];E.push(v.data),r.pendingMessages.set(p,E)}}}},window.addEventListener("message",this.messageHandler),this.notify({action:"page-loaded"}))},e.prototype.destroy=function(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null),this.isSetup=!1,this.actionHandlers.clear(),this.pendingMessages.clear(),this.requestCallbacks={},this.scriptLoadPromises.clear();var t=le();t?.[ms]===this&&delete t[ms]},e})();cg=Au;function CA(e){return typeof e=="object"&&e!==null&&Au in e&&e[Au]===!0}function fg(e){var t=le(),r=t?.[ms];if(CA(r))return r;var n=new IA(e);return t&&(t[ms]=n),n}var Yf="__AMPLITUDE_BACKGROUND_CAPTURE__";function dg(e,t){var r,n=e;if(n[Yf]!==!0){n[Yf]=!0;var i=(r=void 0)!==null&&r!==void 0?r:wA,o=null,s=function(a,u){var c,l;a==="background-capture-complete"&&((l=(c=e.logger)===null||c===void 0?void 0:c.debug)===null||l===void 0||l.call(c,"Background capture complete"),e.notify({action:"background-capture-complete",data:u}))};e.registerActionHandler("initialize-background-capture",function(){var a,u;(u=(a=e.logger)===null||a===void 0?void 0:a.debug)===null||u===void 0||u.call(a,"Initializing background capture (external script)");var c=new URL(i,e.endpoint).toString();e.loadScriptOnce(c).then(function(){var l,f,d;(f=(l=e.logger)===null||l===void 0?void 0:l.debug)===null||f===void 0||f.call(l,"Background capture script loaded (external)"),o=(d=window?.amplitudeBackgroundCapture)===null||d===void 0?void 0:d.call(window,{messenger:e,onBackgroundCapture:s}),e.notify({action:"background-capture-loaded"})}).catch(function(){var l;(l=e.logger)===null||l===void 0||l.warn("Failed to initialize background capture")})}),e.registerActionHandler("close-background-capture",function(){var a;(a=o?.close)===null||a===void 0||a.call(o),o=null})}}var jo={always:"always",ifEmptyCampaign:"ifEmptyCampaign"},ei=function(e,t){return typeof e=="boolean"?e:e?.[t]!==!1},hg=function(e){return ei(e,"attribution")},kA=function(e){return ei(e,"fileDownloads")},vg=function(e){return ei(e,"formInteractions")},pg=function(e){return ei(e,"pageViews")},Jf=function(e){return ei(e,"sessions")},RA=function(e){return ei(e,"pageUrlEnrichment")},gg=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.networkTracking===!0||typeof e.networkTracking=="object")},mg=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.elementInteractions===!0||typeof e.elementInteractions=="object")},PA=function(e){return typeof e=="boolean"?e:typeof e=="object"&&e.webVitals===!0},yg=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.frustrationInteractions===!0||typeof e.frustrationInteractions=="object")},OA=function(e){return typeof e=="boolean"?e:typeof e=="object"&&e!==null&&e.enabled!==!1},xA=function(e){if(mg(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.elementInteractions=="object")return e.autocapture.elementInteractions},NA=function(e){if(yg(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.frustrationInteractions=="object")return e.autocapture.frustrationInteractions},LA=function(e){var t;if(gg(e.autocapture)){var r=void 0;return typeof e.autocapture=="object"&&typeof e.autocapture.networkTracking=="object"?r=e.autocapture.networkTracking:e.networkTrackingOptions&&(r=e.networkTrackingOptions),D(D({},r),{captureRules:(t=r?.captureRules)===null||t===void 0?void 0:t.map(function(n){var i,o,s;if(!((i=n.urls)===null||i===void 0)&&i.length&&(!((o=n.hosts)===null||o===void 0)&&o.length)){var a=JSON.stringify(n.hosts),u=JSON.stringify(n.urls);return(s=e.loggerProvider)===null||s===void 0||s.warn("Found network capture rule with both urls='".concat(u,"' and hosts='").concat(a,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),D(D({},n),{hosts:void 0})}return n})})}},Qf=function(e){var t=function(){return!1},r=void 0,n,i=e.pageCounter,o=pg(e.defaultTracking);return o&&(t=void 0,n=void 0,e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews=="object"&&("trackOn"in e.defaultTracking.pageViews&&(t=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(n=e.defaultTracking.pageViews.eventType))),{trackOn:t,trackHistoryChanges:r,eventType:n,pageCounter:i}},Zf=function(e){return hg(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution=="object"?D({},e.defaultTracking.attribution):{}},MA=function(e){if(vg(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&typeof e.defaultTracking.formInteractions=="object")return e.defaultTracking.formInteractions},_a=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.name,o=n.args,s=n.resolve,a=e&&e[i];if(typeof a=="function"){var u=a.apply(e,o);typeof s=="function"&&s(u?.promise)}}return e},Sa=function(e){var t=e;return t&&t._q!==void 0},xl="2.38.1",bg="amplitude-ts",DA="Web",UA="$remote",FA=(function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(bg,"/").concat(xl),typeof navigator<"u"&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(t){return this.config=t,Promise.resolve(void 0)},e.prototype.execute=function(t){var r,n;return x(this,void 0,void 0,function(){var i,o,s,a;return O(this,function(u){return i=new Date().getTime(),o=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1,s=(n=t.event_id)!==null&&n!==void 0?n:o+1,this.config.lastEventId=s,t.time||(this.config.lastEventTime=i),a=D(D(D(D(D(D(D(D({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:DA}),this.config.trackingOptions.language&&{language:_T()}),this.config.trackingOptions.ipAddress&&{ip:UA}),{insert_id:Qt(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),t),{event_id:s,library:this.library,user_agent:this.userAgent}),[2,a]})})},e})(),_o=1e3,Eg=(function(e){Mt(t,e);function t(r){var n=this,i,o,s;try{s=(i=le())===null||i===void 0?void 0:i.localStorage}catch(a){(o=r?.loggerProvider)===null||o===void 0||o.debug("Failed to access localStorage. error=".concat(JSON.stringify(a))),s=void 0}return n=e.call(this,s)||this,n.loggerProvider=r?.loggerProvider,n}return t.prototype.set=function(r,n){var i;return x(this,void 0,void 0,function(){var o;return O(this,function(s){switch(s.label){case 0:return Array.isArray(n)&&n.length>_o?(o=n.length-_o,[4,e.prototype.set.call(this,r,n.slice(0,_o))]):[3,2];case 1:return s.sent(),(i=this.loggerProvider)===null||i===void 0||i.error("Failed to save ".concat(o," events because the queue length exceeded ").concat(_o,".")),[3,4];case 2:return[4,e.prototype.set.call(this,r,n)];case 3:s.sent(),s.label=4;case 4:return[2]}})})},t})(Hs),HA=(function(e){Mt(t,e);function t(){var r;return e.call(this,(r=le())===null||r===void 0?void 0:r.sessionStorage)||this}return t})(Hs),BA=(function(e){Mt(t,e);function t(r){r===void 0&&(r={});var n=e.call(this)||this;return n.state={done:4},n.customHeaders=r,n}return t.prototype.send=function(r,n,i){return i===void 0&&(i=!1),x(this,void 0,void 0,function(){var o=this;return O(this,function(s){return[2,new Promise(function(a,u){typeof XMLHttpRequest>"u"&&u(new Error("XHRTransport is not supported."));var c=new XMLHttpRequest;c.open("POST",r,!0),c.onreadystatechange=function(){if(c.readyState===o.state.done){var p=c.responseText;try{a(o.buildResponse(JSON.parse(p)))}catch{a(o.buildResponse({code:c.status}))}}};var l={"Content-Type":"application/json",Accept:"*/*"},f=JSON.stringify(n),d=i&&f.length>=Gp&&Kp(),h=function(p){var b,E;l=D(D({},o.customHeaders),l);try{for(var m=ce(Object.entries(l)),g=m.next();!g.done;g=m.next()){var y=oe(g.value,2),_=y[0],S=y[1];c.setRequestHeader(_,S)}}catch(A){b={error:A}}finally{try{g&&!g.done&&(E=m.return)&&E.call(m)}finally{if(b)throw b.error}}c.send(p)},v=function(){return x(o,void 0,void 0,function(){var p;return O(this,function(b){switch(b.label){case 0:return d?[4,zp(f)]:[3,2];case 1:return p=b.sent(),p?(l["Content-Encoding"]="gzip",h(p)):h(f),[3,3];case 2:h(f),b.label=3;case 3:return[2]}})})};v().catch(u)})]})})},t})(ro),jA=(function(e){Mt(t,e);function t(r){r===void 0&&(r={});var n=e.call(this)||this;return n.customHeaders=r,n}return t.prototype.send=function(r,n,i){return i===void 0&&(i=!1),x(this,void 0,void 0,function(){var o,s,a,u,c,l,f,d;return O(this,function(h){switch(h.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return o=JSON.stringify(n),s=i&&o.length>=Gp&&Kp(),a=o,u={"Content-Type":"application/json",Accept:"*/*"},s?[4,zp(o)]:[3,2];case 1:c=h.sent(),c&&(u["Content-Encoding"]="gzip",a=c),h.label=2;case 2:return u=D(D({},this.customHeaders),u),l={headers:u,body:a,method:"POST"},[4,fetch(r,l)];case 3:return f=h.sent(),[4,f.text()];case 4:d=h.sent();try{return[2,this.buildResponse(JSON.parse(d))]}catch{return[2,this.buildResponse({code:f.status})]}return[2]}})})},t})(ro),qA=(function(e){Mt(t,e);function t(){return e.call(this)||this}return t.prototype.send=function(r,n,i){return x(this,void 0,void 0,function(){var o=this;return O(this,function(s){return[2,new Promise(function(a,u){var c=le();if(!c?.navigator.sendBeacon)throw new Error("SendBeaconTransport is not supported");try{var l=JSON.stringify(n),f=c.navigator.sendBeacon(r,l);return a(f?o.buildResponse({code:200,events_ingested:n.events.length,payload_size_bytes:l.length,server_upload_time:Date.now()}):o.buildResponse({code:500}))}catch(d){u(d)}})]})})},t})(ro),VA=function(e,t,r){return r===void 0&&(r=!0),x(void 0,void 0,void 0,function(){var n,i,o,s,a,u,c,l,f;return O(this,function(d){switch(d.label){case 0:return n=ET(e),[4,t.getRaw(n)];case 1:return i=d.sent(),i?r?[4,t.remove(n)]:[3,3]:[2,{optOut:!1}];case 2:d.sent(),d.label=3;case 3:return o=oe(i.split("."),6),s=o[0],a=o[1],u=o[2],c=o[3],l=o[4],f=o[5],[2,{deviceId:s,userId:$A(a),sessionId:wa(c),lastEventId:wa(f),lastEventTime:wa(l),optOut:!!u}]}})})},wa=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},$A=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},$t="[Amplitude]",ed="".concat($t," Form Started"),WA="".concat($t," Form Submitted"),GA="".concat($t," File Downloaded"),td="session_start",rd="session_end",KA="".concat($t," File Extension"),zA="".concat($t," File Name"),XA="".concat($t," Link ID"),YA="".concat($t," Link Text"),JA="".concat($t," Link URL"),Ta="".concat($t," Form ID"),Aa="".concat($t," Form Name"),Ia="".concat($t," Form Destination"),ys="cookie",_g="US";const QA=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_ACTION_CLICK_ALLOWLIST:Qp,DEFAULT_CSS_SELECTOR_ALLOWLIST:Jp,DEFAULT_DATA_ATTRIBUTE_PREFIX:Cl,EXCLUDE_INTERNAL_REFERRERS_CONDITIONS:jo,get IdentifyOperation(){return hr},get LogLevel(){return ot},OfflineDisabled:Yp,get RevenueProperty(){return Ut},get ServerZone(){return Xn},get SpecialEventType(){return _t}},Symbol.toStringTag,{value:"Module"}));var nd=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ZA=function(e){return Object.values(e).every(function(t){return!t})},eI=function(e){var t=D(D({},e),{referring_domain:void 0,referrer:void 0});return Object.values(t).every(function(r){return!r})},tI=function(e,t,r,n,i,o){i===void 0&&(i=!0),e.referrer;var s=e.referring_domain,a=hs(e,["referrer","referring_domain"]),u=t||{};u.referrer;var c=u.referring_domain,l=hs(u,["referrer","referring_domain"]),f=r.excludeInternalReferrers;if(f){var d=sI(f,n);if(!(d instanceof TypeError)&&e.referring_domain&&aI(e.referring_domain,o)){if(d==="always")return id(d,e.referring_domain,n),!1;if(d==="ifEmptyCampaign"&&eI(e))return id(d,e.referring_domain,n),!1}}if(rI(r.excludeReferrers,e.referring_domain))return n.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&ZA(e)&&t)return n.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var h=JSON.stringify(a)!==JSON.stringify(l),v=nd(s||"")!==nd(c||""),p=!t||h||v;return p?n.debug("This is a new campaign. An $identify event will be sent."):n.debug("This is not a new campaign because it's the same as the previous one."),p},rI=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=""),e.some(function(r){return r instanceof RegExp?r.test(t):r===t})},nI=function(e,t){var r=t.startsWith(".")?t:".".concat(t),n=e.startsWith(".")?e:".".concat(e);return!!n.endsWith(r)},iI=function(e,t){var r=D(D({},Fs),e),n=Object.entries(r).reduce(function(i,o){var s,a=oe(o,2),u=a[0],c=a[1];return i.setOnce("initial_".concat(u),(s=c??t.initialEmptyValue)!==null&&s!==void 0?s:"EMPTY"),c?i.set(u,c):i.unset(u)},new Dn);return Tl(n)},oI=function(e){var t=e;return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},sI=function(e,t){if(e===!0)return jo.always;if(typeof e=="object"){var r=e.condition;if(typeof r=="string"&&Object.keys(jo).includes(r))return r;if(typeof r>"u")return jo.always}var n="Invalid configuration provided for attribution.excludeInternalReferrers: ".concat(JSON.stringify(e));return t.error(n),new TypeError(n)};function id(e,t,r){var n="This is not a new campaign because referring_domain=".concat(t," is on the same domain as the current page and it is configured to exclude internal referrers");e==="always"?r.debug(n):e==="ifEmptyCampaign"&&r.debug("".concat(n," with empty campaign parameters"))}var Sg=["ac.in","ac.jp","ac.kr","ac.th","ac.uk","ac.za","appspot.com","asn.au","azurewebsites.net","cloudfront.net","myshopify.com","blogspot.com","co.ca","co.in","co.jp","co.kr","co.nz","co.th","co.uk","co.za","com.ar","com.au","com.br","com.cn","com.hk","com.in","com.jp","com.kr","com.mx","com.pl","com.sg","com.tr","com.tw","ed.jp","edu.au","edu.br","edu.cn","edu.hk","edu.sg","edu.th","edu.tr","edu.tw","firebaseapp.com","fly.dev","gc.ca","geek.nz","github.io","gitlab.io","go.jp","go.kr","go.th","gob.ar","gob.mx","gov.au","gov.br","gov.cn","gov.hk","gov.in","gov.pl","gov.sg","gov.tr","gov.tw","gov.uk","gov.za","govt.nz","gr.jp","herokuapp.com","id.au","idv.hk","iwi.nz","lg.jp","ltd.uk","maori.nz","me.uk","mil.kr","ne.jp","ne.kr","net.au","net.br","net.cn","net.hk","net.in","net.nz","net.pl","net.sg","net.tr","net.tw","net.za","onrender.com","or.jp","or.kr","or.th","org.ar","org.au","org.br","org.cn","org.hk","org.in","org.mx","org.nz","org.pl","org.sg","org.tw","org.uk","org.za","pages.dev","pe.kr","plc.uk","re.kr","res.in","sch.uk","vercel.app","netlify.app","workers.dev"],wg=function(e){var t,r,n=e||((r=(t=le())===null||t===void 0?void 0:t.location)===null||r===void 0?void 0:r.hostname);if(!n)return"";var i=n.split("."),o=i[i.length-1],s=i[i.length-2];return Sg.find(function(a){return n.endsWith(".".concat(a))})&&(o=i[i.length-2]+"."+i[i.length-1],s=i[i.length-3]),s?"".concat(s,".").concat(o):o},aI=function(e,t){var r=le();if(!r)return!1;var n=(t||"").trim()||wg(r.location.hostname);return nI(e,n)},uI=(function(e){Mt(t,e);function t(r,n,i,o,s,a,u,c,l,f,d,h,v,p,b,E,m,g,y,_,S,A,I,C,R,P,k,N,$,ee,B,z,K,Q,ae,fe,pe,ye,be,de,me,M,Z,X,re){i===void 0&&(i=new Il),o===void 0&&(o={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),c===void 0&&(c=1e3),l===void 0&&(l=5),f===void 0&&(f=30),d===void 0&&(d=ys),E===void 0&&(E=new Kn),m===void 0&&(m=ot.Warn),y===void 0&&(y=!1),_===void 0&&(_=!1),I===void 0&&(I=""),C===void 0&&(C=_g),k===void 0&&(k=1800*1e3),N===void 0&&(N=new Eg({loggerProvider:E})),$===void 0&&($={ipAddress:!0,language:!0,platform:!0}),ee===void 0&&(ee="fetch"),B===void 0&&(B=!1),z===void 0&&(z=!0),ye===void 0&&(ye=!0),be===void 0&&(be=0),Z===void 0&&(Z=!1),X===void 0&&(X=!1);var F=this,ge;F=e.call(this,{apiKey:r,storageProvider:N,transportProvider:Tg(ee)})||this,F.apiKey=r,F.appVersion=n,F.cookieOptions=o,F.defaultTracking=s,F.autocapture=a,F.flushIntervalMillis=c,F.flushMaxRetries=l,F.flushQueueSize=f,F.identityStorage=d,F.ingestionMetadata=h,F.instanceName=v,F.loggerProvider=E,F.logLevel=m,F.minIdLength=g,F.offline=y,F.partnerId=S,F.plan=A,F.serverUrl=I,F.serverZone=C,F.sessionTimeout=k,F.storageProvider=N,F.trackingOptions=$,F.transport=ee,F.useBatch=B,F.fetchRemoteConfig=z,F.networkTrackingOptions=fe,F.identify=pe,F.enableDiagnostics=ye,F.diagnosticsSampleRate=be,F.diagnosticsClient=de,F.remoteConfig=me,F.topLevelDomain=M,F.enableRequestBodyCompression=Z,F._enableRequestBodyCompressionExperimental=X,F.customEnrichment=re,F.version=xl,F._optOut=!1,F._cookieStorage=i,F.deviceId=u,F.lastEventId=p,F.lastEventTime=b,F.optOut=_,F.deferredSessionId=P,F.sessionId=R,F.pageCounter=Q,F.userId=K,F.debugLogsEnabled=ae,F.loggerProvider.enable(ae?ot.Debug:F.logLevel),F.networkTrackingOptions=fe,F.identify=pe,F.enableDiagnostics=ye,F.diagnosticsSampleRate=be,F.diagnosticsClient=de;var w=(ge=me?.fetchRemoteConfig)!==null&&ge!==void 0?ge:z;return F.remoteConfig=F.remoteConfig||{},F.remoteConfig.fetchRemoteConfig=w,F.fetchRemoteConfig=w,F.topLevelDomain=M||wg(),F}return Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(r){this._cookieStorage!==r&&(this._cookieStorage=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(r){this._deviceId!==r&&(this._deviceId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(r){this._userId!==r&&(this._userId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(r){this._sessionId!==r&&(this._sessionId=r,r!==void 0&&this._deferredSessionId!==void 0&&(this._deferredSessionId=void 0),this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deferredSessionId",{get:function(){return this._deferredSessionId},set:function(r){this._deferredSessionId!==r&&r!==this.sessionId&&(this._deferredSessionId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(r){this._optOut!==r&&(this._optOut=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(r){this._lastEventTime!==r&&(this._lastEventTime=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(r){this._lastEventId!==r&&(this._lastEventId=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(r){this._pageCounter!==r&&(this._pageCounter=r,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(r){this._debugLogsEnabled!==r&&(this._debugLogsEnabled=r,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var r={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,deferredSessionId:this._deferredSessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled,cookieDomain:void 0};this.cookieStorage instanceof gs&&(r.cookieDomain=this.cookieStorage.options.domain),this.cookieStorage.set(Vp(this.apiKey),r)},t})(Bp),lI=function(e,t,r,n,i){return t===void 0&&(t={}),x(void 0,void 0,void 0,function(){var o,s,a,u,c,l,f,d,h,v,p,b,E,m,g,y,_,S,A,I,C,R,P,k,N,$,ee,B,z,K,Q,ae,fe,pe,ye,be,de,me,M,Z,X,re,F,ge,w,T,L,H,U,q,te;return O(this,function(G){switch(G.label){case 0:return o=t.identityStorage||ys,s="",o===ys&&!(!((R=t.cookieOptions)===null||R===void 0)&&R.domain)&&((P=t.cookieOptions)===null||P===void 0?void 0:P.domain)!==""?[4,dI(void 0,n)]:[3,2];case 1:s=G.sent(),G.label=2;case 2:return a=D({domain:(N=(k=t.cookieOptions)===null||k===void 0?void 0:k.domain)!==null&&N!==void 0?N:s,expiration:365,sameSite:"Lax",secure:!1,upgrade:!0},t.cookieOptions),u={duplicateResolverFn:function(Y){var V=$p(Y);if(!V)return!1;var W=JSON.parse(V);return Wp(W.cookieDomain,a.domain)},diagnosticsClient:n},c=cI(t.identityStorage,a,u),[4,VA(e,c,(ee=($=t.cookieOptions)===null||$===void 0?void 0:$.upgrade)!==null&&ee!==void 0?ee:!0)];case 3:return l=G.sent(),[4,c.get(Vp(e))];case 4:return f=G.sent(),d=ps(),h=d.ampTimestamp?Number(d.ampTimestamp):void 0,v=h?Date.now()<h:!0,p=(ae=(Q=(K=(B=t.deviceId)!==null&&B!==void 0?B:v?(z=d.ampDeviceId)!==null&&z!==void 0?z:d.deviceId:void 0)!==null&&K!==void 0?K:f?.deviceId)!==null&&Q!==void 0?Q:l.deviceId)!==null&&ae!==void 0?ae:Qt(),b=(fe=f?.lastEventId)!==null&&fe!==void 0?fe:l.lastEventId,E=(pe=f?.lastEventTime)!==null&&pe!==void 0?pe:l.lastEventTime,m=(be=(ye=t.optOut)!==null&&ye!==void 0?ye:f?.optOut)!==null&&be!==void 0?be:l.optOut,g=(de=f?.sessionId)!==null&&de!==void 0?de:l.sessionId,y=f?.deferredSessionId,_=(M=(me=t.userId)!==null&&me!==void 0?me:f?.userId)!==null&&M!==void 0?M:l.userId,r.previousSessionDeviceId=(Z=f?.deviceId)!==null&&Z!==void 0?Z:l.deviceId,r.previousSessionUserId=(X=f?.userId)!==null&&X!==void 0?X:l.userId,S={ipAddress:(F=(re=t.trackingOptions)===null||re===void 0?void 0:re.ipAddress)!==null&&F!==void 0?F:!0,language:(w=(ge=t.trackingOptions)===null||ge===void 0?void 0:ge.language)!==null&&w!==void 0?w:!0,platform:(L=(T=t.trackingOptions)===null||T===void 0?void 0:T.platform)!==null&&L!==void 0?L:!0},A=f?.pageCounter,I=f?.debugLogsEnabled,t.autocapture!==void 0&&(t.defaultTracking=t.autocapture),C=new uI(e,t.appVersion,c,a,t.defaultTracking,t.autocapture,p,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,o,t.ingestionMetadata,t.instanceName,b,E,(H=i?.loggerProvider)!==null&&H!==void 0?H:t.loggerProvider,t.logLevel,t.minIdLength,t.offline,m,t.partnerId,t.plan,t.serverUrl,(U=i?.serverZone)!==null&&U!==void 0?U:t.serverZone,g,y,t.sessionTimeout,t.storageProvider,S,t.transport,t.useBatch,t.fetchRemoteConfig,_,A,I,t.networkTrackingOptions,t.identify,(q=i?.enableDiagnostics)!==null&&q!==void 0?q:t.enableDiagnostics,(te=i?.diagnosticsSampleRate)!==null&&te!==void 0?te:r._diagnosticsSampleRate,n,t.remoteConfig,s,t.enableRequestBodyCompression,r._enableRequestBodyCompressionExperimentalValue,t.customEnrichment),[4,C.storageProvider.isEnabled()];case 5:return G.sent()||(C.loggerProvider.warn("Storage provider ".concat(C.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),C.storageProvider=new Il),[2,C]}})})},cI=function(e,t,r){switch(e===void 0&&(e=ys),t===void 0&&(t={}),e){case"localStorage":return new Eg;case"sessionStorage":return new HA;case"none":return new Il;default:return new gs(D(D({},t),{expirationDays:t.expiration}),r)}},fI=function(e){var t,r;return e===void 0&&(e={}),((t=e.remoteConfig)===null||t===void 0?void 0:t.fetchRemoteConfig)===!0?!0:!(((r=e.remoteConfig)===null||r===void 0?void 0:r.fetchRemoteConfig)===!1||e.fetchRemoteConfig===!1)},Tg=function(e){var t=typeof e=="object"?e.type:e,r=typeof e=="object"?e.headers:void 0;return t==="xhr"?new BA(r):t==="beacon"?new qA:new jA(r)},dI=function(e,t){return x(void 0,void 0,void 0,function(){var r,n,i,o,s,s,a,u,c;return O(this,function(l){switch(l.label){case 0:return[4,new gs(void 0,{diagnosticsClient:t}).isEnabled()];case 1:if(!l.sent()||typeof location>"u"||!location.hostname)return[2,""];if(r=location.hostname,n=r.split("."),n.length===1)return[2,""];for(i=[],o=1,Sg.find(function(f){return r.endsWith(".".concat(f))})&&(o=2),s=n.length-o-1;s>=0;--s)i.push(n.slice(s).join("."));s=0,l.label=2;case 2:if(!(s<i.length))return[3,7];a=i[s],l.label=3;case 3:return l.trys.push([3,5,,6]),[4,gs.isDomainWritable(a)];case 4:return u=l.sent(),u?[2,"."+a]:[3,6];case 5:return c=l.sent(),t&&t.recordEvent("cookies.tld.failure",{reason:"Unexpected exception checking domain is writable: ".concat(a),error:c instanceof Error?c.message:String(c)}),[3,6];case 6:return s++,[3,2];case 7:return t&&t.recordEvent("cookies.tld.failure",{reason:"Could not determine TLD for host ".concat(r)}),[2,""]}})})},hI=function(e){var t={};for(var r in e){var n=e[r];n&&(t[r]=n)}return t},vI="[Amplitude] Page Viewed",Ca="AMP_PAGE_VIEW",od=function(e){e===void 0&&(e={});var t,r=le(),n=void 0,i=!1,o,s,a=e.trackOn,u=e.trackHistoryChanges,c=e.eventType,l=c===void 0?vI:c,f=function(m){var g=m;try{g=decodeURI(m)}catch(y){n?.error("Malformed URI sequence: ",y)}return g},d=function(m){return x(void 0,void 0,void 0,function(){var g,y,_;return O(this,function(S){switch(S.label){case 0:return g=f(typeof location<"u"&&location.href||""),_={event_type:l},y=[{}],[4,pI()];case 1:return[2,(_.event_properties=D.apply(void 0,[D.apply(void 0,y.concat([S.sent()])),{"[Amplitude] Page Domain":typeof location<"u"&&location.hostname||"","[Amplitude] Page Location":g,"[Amplitude] Page Path":typeof location<"u"&&f(location.pathname)||"","[Amplitude] Page Title":Pl(Rl),"[Amplitude] Page URL":g.split("?")[0],"[Amplitude] Page View ID":m}]),_)]}})})},h=function(){return typeof a>"u"||typeof a=="function"&&a()},v=typeof location<"u"?location.href:null,p=function(){return x(void 0,void 0,void 0,function(){var m,g,y,_,S;return O(this,function(A){switch(A.label){case 0:return m=location.href,g=mI(u,m,v||"")&&h(),v=m,g?(y=void 0,s&&(y=Qt(),s.set(Ca,{pageViewId:y})),n?.log("Tracking page view event"),t!=null?[3,1]:[3,3]):[3,4];case 1:return S=(_=t).track,[4,d(y)];case 2:S.apply(_,[A.sent()]),A.label=3;case 3:A.label=4;case 4:return[2]}})})},b=function(){p()},E={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(m,g){return x(void 0,void 0,void 0,function(){var y,_,S;return O(this,function(A){switch(A.label){case 0:if(t=g,o=m,n=m.loggerProvider,n.log("Installing @amplitude/plugin-page-view-tracking-browser"),i=!0,r){try{s=new Hs(r.sessionStorage)}catch{n?.debug("sessionStorage is not available in this environment.")}r.addEventListener("popstate",b),r.history.pushState=new Proxy(r.history.pushState,{apply:function(I,C,R){var P=oe(R,3),k=P[0],N=P[1],$=P[2];I.apply(C,[k,N,$]),i&&b()}})}return h()?(n.log("Tracking page view event"),y=void 0,s&&(y=Qt(),s.set(Ca,{pageViewId:y})),S=(_=t).track,[4,d(y)]):[3,2];case 1:S.apply(_,[A.sent()]),A.label=2;case 2:return[2]}})})},execute:function(m){return x(void 0,void 0,void 0,function(){var g,y,_;return O(this,function(S){switch(S.label){case 0:return a==="attribution"&&gI(m)?(n?.log("Enriching campaign event to page view event with campaign parameters"),g=void 0,s?[4,s.get(Ca)]:[3,2]):[3,4];case 1:y=S.sent(),g=y?.pageViewId,S.label=2;case 2:return[4,d(g)];case 3:_=S.sent(),m.event_type=_.event_type,m.event_properties=D(D({},m.event_properties),_.event_properties),S.label=4;case 4:return o&&m.event_type===l&&(o.pageCounter=o.pageCounter?o.pageCounter+1:1,m.event_properties=D(D({},m.event_properties),{"[Amplitude] Page Counter":o.pageCounter})),[2,m]}})})},teardown:function(){return x(void 0,void 0,void 0,function(){return O(this,function(m){return r&&(r.removeEventListener("popstate",b),i=!1),[2]})})}};return E},pI=function(){return x(void 0,void 0,void 0,function(){var e;return O(this,function(t){switch(t.label){case 0:return e=hI,[4,new og().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},gI=function(e){if(e.event_type==="$identify"&&e.user_properties){var t=e.user_properties,r=t[hr.SET]||{},n=t[hr.UNSET]||{},i=Ee(Ee([],oe(Object.keys(r)),!1),oe(Object.keys(n)),!1);return Object.keys(Fs).every(function(o){return i.includes(o)})}return!1},mI=function(e,t,r){switch(e){case"pathOnly":{if(r=="")return!0;var n=new URL(t),i=new URL(r),o=n.origin+n.pathname,s=i.origin+i.pathname;return o!==s}default:return t!==r}},yI=function(){var e,t=[],r=function(l,f,d){l.addEventListener(f,d),t.push({element:l,type:f,handler:d})},n=function(){t.forEach(function(l){var f=l.element,d=l.type,h=l.handler;f?.removeEventListener(d,h)}),t=[]},i,o="@amplitude/plugin-form-interaction-tracking-browser",s="enrichment",a=function(l,f){return x(void 0,void 0,void 0,function(){var d,h;return O(this,function(v){return i=MA(l),d=function(){if(!f){l.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if(!(typeof document>"u")){var p=new WeakSet,b=function(m){if(!p.has(m)){p.add(m);var g=!1;r(m,"change",function(){var y,_=sd(m);g||f.track(ed,(y={},y[Ta]=gn(m.id),y[Aa]=gn(m.name),y[Ia]=_,y)),g=!0}),r(m,"submit",function(y){var _,S,A=sd(m);if(g||f.track(ed,(_={},_[Ta]=gn(m.id),_[Aa]=gn(m.name),_[Ia]=A,_)),g=!0,i?.shouldTrackSubmit!==void 0)if(typeof i.shouldTrackSubmit=="function"&&typeof SubmitEvent<"u"&&y instanceof SubmitEvent)try{var I=i.shouldTrackSubmit(y);if(!I)return}catch{l.loggerProvider.warn("shouldTrackSubmit callback threw an error, proceeding with tracking.")}else l.loggerProvider.warn("shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.");f.track(WA,(S={},S[Ta]=gn(m.id),S[Aa]=gn(m.name),S[Ia]=A,S)),g=!1})}},E=Array.from(document.getElementsByTagName("form"));E.forEach(b),typeof MutationObserver<"u"&&(e=new MutationObserver(function(m){m.forEach(function(g){g.addedNodes.forEach(function(y){y.nodeName==="FORM"&&b(y),"querySelectorAll"in y&&typeof y.querySelectorAll=="function"&&Array.from(y.querySelectorAll("form")).map(b)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?d():(h=le(),h?h.addEventListener("load",d):l.loggerProvider.debug("Form interaction tracking is not installed because global is undefined.")),[2]})})},u=function(l){return x(void 0,void 0,void 0,function(){return O(this,function(f){return[2,l]})})},c=function(){return x(void 0,void 0,void 0,function(){return O(this,function(l){return e?.disconnect(),n(),[2]})})};return{name:o,type:s,setup:a,execute:u,teardown:c}},gn=function(e){if(typeof e=="string")return e},sd=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(t??""),window.location.href).href}catch{}return t},bI=function(){var e,t=[],r=function(c,l,f){c.addEventListener(l,f),t.push({element:c,type:l,handler:f})},n=function(){t.forEach(function(c){var l=c.element,f=c.type,d=c.handler;l?.removeEventListener(f,d)}),t=[]},i="@amplitude/plugin-file-download-tracking-browser",o="enrichment",s=function(c,l){return x(void 0,void 0,void 0,function(){var f,d;return O(this,function(h){return f=function(){if(!l){c.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if(!(typeof document>"u")){var v=function(E){var m;try{m=new URL(E.href,window.location.href)}catch{return}var g=p.exec(m.href),y=g?.[1];y&&r(E,"click",function(){var _;y&&l.track(GA,(_={},_[KA]=y,_[zA]=m.pathname,_[XA]=E.id,_[YA]=E.text,_[JA]=E.href,_))})},p=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/,b=Array.from(document.getElementsByTagName("a"));b.forEach(v),typeof MutationObserver<"u"&&(e=new MutationObserver(function(E){E.forEach(function(m){m.addedNodes.forEach(function(g){g.nodeName==="A"&&v(g),"querySelectorAll"in g&&typeof g.querySelectorAll=="function"&&Array.from(g.querySelectorAll("a")).map(v)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?f():(d=le(),d?d.addEventListener("load",f):c.loggerProvider.debug("File download tracking is not installed because global is undefined.")),[2]})})},a=function(c){return x(void 0,void 0,void 0,function(){return O(this,function(l){return[2,c]})})},u=function(){return x(void 0,void 0,void 0,function(){return O(this,function(c){return e?.disconnect(),n(),[2]})})};return{name:i,type:o,setup:s,execute:a,teardown:u}},ad=!1,EI=function(e){if(!(ad||e.defaultTracking!==void 0)){var t=`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example:

amplitude.init(<YOUR_API_KEY>, {
  defaultTracking: true,
});

Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`;e.loggerProvider.warn(t),ad=!0}},_I=function(){var e="@amplitude/plugin-network-checker-browser",t="before",r=le(),n=[],i=function(u,c){r?.addEventListener&&(r?.addEventListener(u,c),n.push({type:u,handler:c}))},o=function(){n.forEach(function(u){var c=u.type,l=u.handler;r?.removeEventListener(c,l)}),n=[]},s=function(u,c){return x(void 0,void 0,void 0,function(){return O(this,function(l){return typeof navigator>"u"?(u.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),u.offline=!1,[2]):(u.offline=!navigator.onLine,i("online",function(){u.loggerProvider.debug("Network connectivity changed to online."),u.offline=!1,setTimeout(function(){c.flush()},u.flushIntervalMillis)}),i("offline",function(){u.loggerProvider.debug("Network connectivity changed to offline."),u.offline=!0}),[2])})})},a=function(){return x(void 0,void 0,void 0,function(){return O(this,function(u){return o(),[2]})})};return{name:e,type:t,setup:s,teardown:a}};function Ag(e){var t,r,n,i,o,s,a,u,c,l,f,d;if(!(typeof e!="object"||e===null)&&!Array.isArray(e)){var h=Object.keys(e);try{for(var v=ce(h),p=v.next();!p.done;p=v.next()){var b=p.value;try{var E=e[b];typeof E?.enabled=="boolean"&&(E.enabled?(delete E.enabled,Object.keys(E).length===0&&(e[b]=!0)):e[b]=!1),Ag(E)}catch{}}}catch($){t={error:$}}finally{try{p&&!p.done&&(r=v.return)&&r.call(v)}finally{if(t)throw t.error}}try{if(!((c=(u=(a=e.autocapture)===null||a===void 0?void 0:a.networkTracking)===null||u===void 0?void 0:u.captureRules)===null||c===void 0)&&c.length)try{for(var m=ce(e.autocapture.networkTracking.captureRules),g=m.next();!g.done;g=m.next()){var y=g.value;try{for(var _=(o=void 0,ce(["responseHeaders","requestHeaders"])),S=_.next();!S.done;S=_.next()){var A=S.value,I=(l=y[A])!==null&&l!==void 0?l:{},C=I.captureSafeHeaders,R=I.allowlist;if(!(!C&&!R)){if(R!==void 0&&!Array.isArray(R)){delete y[A];continue}y[A]=Ee(Ee([],oe(C?vs:[]),!1),oe(R??[]),!1)}}}catch($){o={error:$}}finally{try{S&&!S.done&&(s=_.return)&&s.call(_)}finally{if(o)throw o.error}}}}catch($){n={error:$}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}}catch{}var P=(f=e.autocapture)===null||f===void 0?void 0:f.frustrationInteractions;P&&(P.rageClick&&(P.rageClicks=P.rageClick,delete P.rageClick),P.deadClick&&(P.deadClicks=P.deadClick,delete P.deadClick));try{var k=(d=e.autocapture)===null||d===void 0?void 0:d.elementInteractions;if(k&&typeof k=="object"&&(k.viewportContentUpdated===!0&&(k.viewportContentUpdated={}),k.viewportContentUpdated===!1&&(k.viewportContentUpdated={enabled:!1}),k.exposureDuration!==void 0)){var N=k.viewportContentUpdated;N===void 0?k.viewportContentUpdated={exposureDuration:k.exposureDuration}:typeof N=="object"&&N.exposureDuration===void 0&&N.enabled!==!1&&(N.exposureDuration=k.exposureDuration),delete k.exposureDuration}}catch{}}}function ud(e,t,r){var n,i,o=[];try{for(var s=ce(t??[]),a=s.next();!a.done;a=s.next()){var u=a.value;try{o.push(new RegExp(u))}catch(c){r.loggerProvider.warn("Invalid regex pattern: ".concat(u),c)}}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return e.concat(o)}function SI(e,t){var r,n,i,o,s,a,u;if(e){Ag(e);try{t.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e));var c=e;if(c&&"autocapture"in c){if(typeof c.autocapture=="boolean"&&(t.autocapture=c.autocapture),typeof c.autocapture=="object"&&c.autocapture!==null){var l=D({},c.autocapture);if(t.autocapture===void 0&&(t.autocapture=c.autocapture),typeof c.autocapture.elementInteractions=="object"&&c.autocapture.elementInteractions!==null&&(!((i=c.autocapture.elementInteractions.pageUrlAllowlistRegex)===null||i===void 0)&&i.length)){l.elementInteractions=D({},c.autocapture.elementInteractions);var f=l.elementInteractions,d=(o=f.pageUrlAllowlist)!==null&&o!==void 0?o:[],h=c.autocapture.elementInteractions.pageUrlAllowlistRegex;f.pageUrlAllowlist=ud(d,h,t),delete f.pageUrlAllowlistRegex}if(typeof c.autocapture.networkTracking=="object"&&c.autocapture.networkTracking!==null&&(!((s=c.autocapture.networkTracking.captureRules)===null||s===void 0)&&s.length)){l.networkTracking=D({},c.autocapture.networkTracking);var v=l.networkTracking,p=(a=v.captureRules)!==null&&a!==void 0?a:[];try{for(var b=ce(p),E=b.next();!E.done;E=b.next()){var m=E.value;m.urls=ud((u=m.urls)!==null&&u!==void 0?u:[],m.urlsRegex,t),delete m.urlsRegex}}catch(g){r={error:g}}finally{try{E&&!E.done&&(n=b.return)&&n.call(b)}finally{if(r)throw r.error}}}typeof t.autocapture=="boolean"&&(t.autocapture=D({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},l)),typeof t.autocapture=="object"&&(t.autocapture=D(D({},t.autocapture),l))}t.defaultTracking=t.autocapture}"customEnrichment"in c&&c.customEnrichment!==null&&(t.customEnrichment=c.customEnrichment),t.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(t))}catch(g){t.loggerProvider.error("Failed to apply remote configuration because of error: ",g)}}}var Ig="1.25.1",wI="@amplitude/plugin-autocapture-browser",TI="@amplitude/plugin-frustration-browser",Cg="[Amplitude] Element Clicked",AI="[Amplitude] Dead Click",II="[Amplitude] Rage Click",CI="[Amplitude] Error Click",kI="[Amplitude] Element Changed",RI="[Amplitude] Thrashed Cursor",PI="[Amplitude] Element ID",OI="[Amplitude] Element Class",ld="[Amplitude] Element Tag",cd="[Amplitude] Element Text",xI="[Amplitude] Element Hierarchy",NI="[Amplitude] Element Href",LI="[Amplitude] Element Position Left",MI="[Amplitude] Element Position Top",DI="[Amplitude] Element Aria Label",UI="[Amplitude] Element Attributes",FI="[Amplitude] Element Path",HI="[Amplitude] Element Parent Label",Iu="[Amplitude] Page URL",BI="[Amplitude] Page Title",kg="[Amplitude] Viewport Height",Rg="[Amplitude] Viewport Width",jI="[Amplitude] Max Page X",qI="[Amplitude] Max Page Y",Pg="[Amplitude] Page View ID",VI="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",$I="amp-visual-tagging-selector-highlight",Og="data-amp-mask-attributes",WI=25,xg=128,GI="AMP_PAGE_VIEW",KI=18e3,zI=["input","select","textarea"],Ng=function(e,t){var r,n=(r=window?.getComputedStyle)===null||r===void 0?void 0:r.call(window,e);return n?.getPropertyValue("cursor")==="pointer"&&t==="click"},Lg=function(e){var t=e.pageUrlAllowlist,r=e.pageUrlExcludelist;return!(r&&r.length>0&&_u(window.location.href,r)||!_u(window.location.href,t))},Fn=function(e,t,r){return r===void 0&&(r=!1),function(n,i){var o,s,a=e.shouldTrackEventResolver,u=(s=(o=i?.tagName)===null||o===void 0?void 0:o.toLowerCase)===null||s===void 0?void 0:s.call(o);if(!u)return!1;if(a)return a(n,i);if(!Lg(e))return!1;var c=String(i?.getAttribute("type"))||"";if(typeof c=="string")switch(c.toLowerCase()){case"hidden":return!1;case"password":return!1}var l=Ng(i,n);if(r&&l)return!0;if(t){var f=t.some(function(d){var h;return!!(!((h=i?.matches)===null||h===void 0)&&h.call(i,d))});if(!f)return!1}switch(u){case"input":case"select":case"textarea":return n==="change"||n==="click";default:return l?!0:n==="click"}}},XI=function(e){var t,r,n,i=(r=(t=e?.tagName)===null||t===void 0?void 0:t.toLowerCase)===null||r===void 0?void 0:r.call(t),o=e instanceof HTMLElement?((n=e.getAttribute("contenteditable"))===null||n===void 0?void 0:n.toLowerCase())==="true":!1;return!zI.includes(i)&&!o},YI=function(e){return e?e.split(",").map(function(t){return t.trim()}).filter(function(t){return t.length>0&&t!=="id"&&t!=="class"}):[]},JI=function(e,t){return Object.entries(e).reduce(function(r,n){var i=oe(n,2),o=i[0],s=i[1];if(o.startsWith(t)){var a=o.replace(t,"");a&&(r[a]=s||"")}return r},{})},QI=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},fd=function(e){return Object.keys(e).reduce(function(t,r){var n=e[r];return QI(n)||(t[r]=n),t},{})},Mg=function(){var e;try{var t=le(),r=(e=t?.sessionStorage)===null||e===void 0?void 0:e.getItem(GI);if(!r)return;var n=JSON.parse(r);if(typeof n.pageViewId=="string")return n.pageViewId}catch{}},Nl=function(e,t){return e?t.some(function(r){var n;return(n=e?.matches)===null||n===void 0?void 0:n.call(e,r)})?e:Nl(e?.parentElement,t):null},no=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)};function ZI(e){return e.type==="click"||e.type==="change"}var bs;(function(e){e[e.LEFT_OR_TOUCH_CONTACT=0]="LEFT_OR_TOUCH_CONTACT",e[e.MIDDLE=1]="MIDDLE",e[e.RIGHT=2]="RIGHT"})(bs||(bs={}));var dd="__AMPLITUDE_VISUAL_TAGGING__";function eC(e,t){var r=e;if(r[dd]!==!0){r[dd]=!0;var n=t.dataExtractor,i=t.isElementSelectable,o=t.cssSelectorAllowlist,s=t.actionClickAllowlist,a=null,u=function(l){e.notify({action:"element-selected",data:l})},c=function(l,f){l==="selector-mode-changed"?e.notify({action:"track-selector-mode-changed",data:f}):l==="selector-moved"&&e.notify({action:"track-selector-moved",data:f})};e.registerActionHandler("initialize-visual-tagging-selector",function(l){e.loadScriptOnce(VI).then(function(){var f;a=(f=window?.amplitudeVisualTaggingSelector)===null||f===void 0?void 0:f.call(window,{getEventTagProps:n.getEventTagProps,isElementSelectable:function(d){return i?i(l?.actionType||"click",d):!0},onTrack:c,onSelect:u,visualHighlightClass:$I,messenger:e,cssSelectorAllowlist:o,actionClickAllowlist:s,extractDataFromDataSource:n.extractDataFromDataSource,dataExtractor:n,diagnostics:{autocapture:{version:Ig}}}),e.notify({action:"selector-loaded"})}).catch(function(){var f;(f=e.logger)===null||f===void 0||f.warn("Failed to initialize visual tagging selector")})}),e.registerActionHandler("close-visual-tagging-selector",function(){var l;(l=a?.close)===null||l===void 0||l.call(a)})}}function tC(e){var t=e.amplitude,r=e.allObservables,n=e.shouldTrackEvent,i=e.evaluateTriggers,o=r.clickObservable,s=o.filter(no).filter(function(u){return n("click",u.closestTrackedAncestor)}).map(function(u){return i(u)}),a=s;return a.subscribe(function(u){t?.track(Cg,u.targetElementProperties)})}function rC(e){var t=e.amplitude,r=e.allObservables,n=e.getEventProperties,i=e.shouldTrackEvent,o=e.evaluateTriggers,s=r.changeObservable,a=s.filter(no).filter(function(u){return i("change",u.closestTrackedAncestor)}).map(function(u){return o(u)});return a.subscribe(function(u){t?.track(kI,n("change",u.closestTrackedAncestor))})}function nC(e){var t=e.amplitude,r=e.allObservables,n=e.options,i=e.getEventProperties,o=e.shouldTrackEvent,s=e.shouldTrackActionClick,a=r.clickObservable,u=r.mutationObservable,c=r.navigateObservable,l=a.filter(function(b){return!o("click",b.closestTrackedAncestor)}).map(function(b){var E=Nl(b.event.target,n.actionClickAllowlist);return b.closestTrackedAncestor=E,b.closestTrackedAncestor!==null&&(b.targetElementProperties=i(b.type,b.closestTrackedAncestor)),b}).filter(no).filter(function(b){return s("click",b.closestTrackedAncestor)}),f=c?un(u,c):u,d=un(l,f),h=null,v=null,p=Ol(d,function(b){if(h&&(clearTimeout(h),h=null),b.type==="click")return v=b,h=setTimeout(function(){h=null,v=null},500),Promise.resolve(null);if(v){var E=v;return v=null,Promise.resolve(E)}return Promise.resolve(null)});return p.subscribe(function(b){b&&t?.track(Cg,i("click",b.closestTrackedAncestor))})}function iC(e){var t=e.allObservables,r=t.scrollObservable,n={maxX:0,maxY:0},i=r.subscribe(function(){var o,s,a,u,c=le(),l=Math.floor((s=(o=c?.scrollX)!==null&&o!==void 0?o:c?.pageXOffset)!==null&&s!==void 0?s:0),f=Math.floor((u=(a=c?.scrollY)!==null&&a!==void 0?a:c?.pageYOffset)!==null&&u!==void 0?u:0);n.maxX=Math.max(n.maxX,l),n.maxY=Math.max(n.maxY,f)});return{unsubscribe:function(){i.unsubscribe()},getState:function(){return n},reset:function(){n.maxX=0,n.maxY=0}}}var Yn=le(),Dg=function(){return new et(function(e){var t=new MutationObserver(function(r){e.next(r)});return document.body&&t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},Ug=function(e){return e===void 0&&(e="click"),new et(function(t){var r,n=function(i){t.next(i)};return(r=le())===null||r===void 0||r.document.addEventListener(e,n,{capture:!0}),function(){var i;(i=le())===null||i===void 0||i.document.removeEventListener(e,n,{capture:!0})}})},oC=function(){return new et(function(e){var t,r=function(n){e.next(n)};return(t=le())===null||t===void 0||t.addEventListener("scroll",r),function(){var n;(n=le())===null||n===void 0||n.removeEventListener("scroll",r)}})},sC=function(){return new et(function(e){var t=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=void 0;Array.isArray(n[0])&&typeof n[0][0]=="string"&&(o=n[0][0]),e.next({kind:"console",message:o})};return qf.addListener("error",t),function(){qf.removeListener(t)}})},aC=function(e,t){return new et(function(r){var n,i=le();if(!i?.IntersectionObserver)return function(){};var o=new IntersectionObserver(function(c){c.forEach(function(l){r.next(l)})},{root:null,rootMargin:"0px",threshold:1}),s=t.join(","),a=(n=i?.document.querySelectorAll(s))!==null&&n!==void 0?n:[];a.forEach(function(c){o.observe(c)});var u=e.subscribe(function(c){var l=c.event;return l.forEach(function(f){var d=f.addedNodes;return d.forEach(function(h){h instanceof Element&&(h.matches(s)&&o.observe(h),h.querySelectorAll(s).forEach(function(v){o.observe(v)}))})})});return function(){u.unsubscribe(),o.disconnect()}})},uC=function(){return new et(function(e){var t=function(r){if(r instanceof ErrorEvent){var n={kind:"error"};r.error instanceof Error||r.error instanceof DOMException?n=D(D({},n),{message:r.error.message,stack:r.error.stack,filename:r.filename,lineNumber:r.lineno,columnNumber:r.colno}):typeof r.error=="string"&&(n.message=r.error),e.next(n)}};return Yn.addEventListener("error",t),function(){Yn.removeEventListener("error",t)}})},lC=function(){return new et(function(e){var t=function(r){var n={kind:"unhandledrejection"};r.reason instanceof Error||r.reason instanceof DOMException?(n.message=r.reason.message,n.stack=r.reason.stack):typeof r.reason=="string"&&(n.message=r.reason),e.next(n)};return Yn.addEventListener("unhandledrejection",t),function(){Yn.removeEventListener("unhandledrejection",t)}})},cC=function(){var e=un(uC(),lC());return un(e,sC())},fC=function(){return new et(function(e){var t=function(n){e.next(n)},r={capture:!0};return Yn.document.addEventListener("mousemove",t,r),function(){Yn.document.removeEventListener("mousemove",t,r)}})},dC=function(e,t){try{if(t.subprop_key==="[Amplitude] Element Text")return t.subprop_op==="is"&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if(t.subprop_key==="[Amplitude] Element Hierarchy")return t.subprop_op==="autotrack css match"&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(r){return console.error("Error matching event to filter",r),!1}return!1},hC=function(e,t){try{if(e.sourceType==="DOM_ELEMENT"){var r=document.documentElement;return e.scope&&t&&(r=t.closest(e.scope)),r&&e.selector?r.querySelector(e.selector):r}}catch{return}},vC=function(e,t,r){e.forEach(function(n){if(typeof n!="string"&&n.actionType==="ATTACH_EVENT_PROPERTY"){var i=r.extractDataFromDataSource(n.dataSource,t.closestTrackedAncestor);t.targetElementProperties[n.destinationKey]=i}})},Cu={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},hd=function(e){var t,r,n,i,o=Object.values(Cu).reduce(function(h,v){return h[v]=new Set,h},{});if(!e)return o;try{for(var s=ce(e),a=s.next();!a.done;a=s.next()){var u=a.value;try{try{for(var c=(n=void 0,ce(u.definition)),l=c.next();!l.done;l=c.next()){var f=l.value,d=Cu[f.event_type];d&&o[d].add(u.id)}}catch(h){n={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}catch(h){console.warn("Skipping Labeled Event due to malformed definition",u?.id,h)}}}catch(h){t={error:h}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return o},vd=function(e){var t,r,n,i,o=new Map;try{for(var s=ce(e),a=s.next();!a.done;a=s.next()){var u=a.value;try{for(var c=(n=void 0,ce(u.conditions)),l=c.next();!l.done;l=c.next()){var f=l.value;if(f.type==="LABELED_EVENT"){var d=f.match.eventId,h=o.get(d);h||(h=[],o.set(d,h)),h.push(u)}}}catch(v){n={error:v}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}}}catch(v){t={error:v}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return o},pC=function(e,t){return t.filter(function(r){return r.definition.some(function(n){return Cu[n.event_type]===e.type&&n.filters.every(function(i){return dC(e,i)})})})},gC=function(e,t){var r,n,i,o,s=new Set;try{for(var a=ce(e),u=a.next();!u.done;u=a.next()){var c=u.value,l=t.get(c.id);if(l)try{for(var f=(i=void 0,ce(l)),d=f.next();!d.done;d=f.next()){var h=d.value;s.add(h)}}catch(v){i={error:v}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}}}catch(v){r={error:v}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return Array.from(s)},mC=(function(){function e(t,r,n,i){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=r,this.dataExtractor=n,this.options=i}return e.prototype.evaluate=function(t){var r,n,i=this.options.pageActions;if(!i)return t;var o=pC(t,Array.from(this.groupedLabeledEvents[t.type]).map(function(l){return i.labeledEvents[l]})),s=gC(o,this.labeledEventToTriggerMap);try{for(var a=ce(s),u=a.next();!u.done;u=a.next()){var c=u.value;vC(c.actions,t,this.dataExtractor)}}catch(l){r={error:l}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return t},e.prototype.update=function(t,r,n){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=r,this.options=n},e})(),yC=function(e,t,r,n){return new mC(e,t,r,n)},bC=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",Og,Tn]),EC=["type"],_C=["svg","path","g"],SC=["password","hidden"];function wC(e,t){var r,n,i,o,s,a;if(e===null)return null;var u=String(e.tagName).toLowerCase(),c={tag:u},l=Array.from((o=(i=e.parentElement)===null||i===void 0?void 0:i.children)!==null&&o!==void 0?o:[]);l.length&&(c.index=l.indexOf(e),c.indexOfType=l.filter(function(_){return _.tagName===e.tagName}).indexOf(e));var f=(a=(s=e.previousElementSibling)===null||s===void 0?void 0:s.tagName)===null||a===void 0?void 0:a.toLowerCase();f&&(c.prevSib=String(f));var d=e.getAttribute("id");d&&(c.id=String(d));var h=Array.from(e.classList);h.length&&(c.classes=h);var v={},p=Array.from(e.attributes),b=p.filter(function(_){return!bC.has(_.name)}),E=!XI(e);if(!SC.includes(String(e.getAttribute("type")))&&!_C.includes(u))try{for(var m=ce(b),g=m.next();!g.done;g=m.next()){var y=g.value;if(!(E&&!EC.includes(y.name))){if(t.has(y.name)){v[y.name]=Nr;continue}v[y.name]=String(y.value).substring(0,xg)}}}catch(_){r={error:_}}finally{try{g&&!g.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}return Object.keys(v).length&&(c.attrs=v),c}function TC(e){var t=[];if(!e)return t;t.push(e);for(var r=e.parentElement;r&&r.tagName!=="HTML";)t.push(r),r=r.parentElement;return t}var fi=(function(){function e(t,r){this.value=t,this.optimized=r}return e.prototype.toString=function(){return this.value},e})(),AC=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return"";for(var r=[],n=e;n;){var i=IC(n,!!t,n===e);if(!i||(r.push(i),i.optimized))break;n=n.parentElement}return r.reverse(),r.join(" > ")},IC=function(e,t,r){var n,i;if(e.nodeType!==Node.ELEMENT_NODE)return null;var o=e.getAttribute("id");if(t){if(o)return new fi(l(o),!0);var s=e.tagName.toLowerCase();if(s==="body"||s==="head"||s==="html")return new fi(s,!0)}var a=e.tagName.toLowerCase();if(o)return new fi(a+l(o),!0);var u=e.parentNode;if(!u||u.nodeType===Node.DOCUMENT_NODE)return new fi(a,!0);function c(P){var k=P.getAttribute("class");return k?k.split(/\s+/g).filter(Boolean).map(function(N){return"$"+N}):[]}function l(P){return"#"+CSS.escape(P)}for(var f=c(e),d=!1,h=!1,v=-1,p=-1,b=u.children,E=0;b&&(v===-1||!h)&&E<b.length;++E){var m=b[E];if(m.nodeType===Node.ELEMENT_NODE){if(p+=1,m===e){v=p;continue}if(!h&&m.tagName.toLowerCase()===a){d=!0;var g=new Set(f);if(!g.size){h=!0;continue}for(var y=c(m),_=0;_<y.length;++_){var S=y[_];if(g.has(S)&&(g.delete(S),!g.size)){h=!0;break}}}}}var A=a;if(r&&a.toLowerCase()==="input"&&e.getAttribute("type")&&!e.getAttribute("id")&&!e.getAttribute("class")&&(A+="[type="+CSS.escape(e.getAttribute("type")||"")+"]"),h)A+=":nth-child("+String(v+1)+")";else if(d)try{for(var I=ce(f),C=I.next();!C.done;C=I.next()){var R=C.value;A+="."+CSS.escape(R.slice(1))}}catch(P){n={error:P}}finally{try{C&&!C.done&&(i=I.return)&&i.call(I)}finally{if(n)throw n.error}}return new fi(A,!1)},Fg=(function(){function e(t,r){var n,i,o=this,s;this.replaceSensitiveString=function(d){return Rl(d,o.additionalMaskTextPatterns)},this.getHierarchy=function(d){var h,v,p,b,E=performance.now(),m=[];if(!d)return[];for(var g=TC(d),y=new Map,_=g.length-1;_>=0;_--){var S=g[_];if(S){var A=YI(S.getAttribute(Og)),I=_===g.length-1?[]:(p=y.get(g[_+1]))!==null&&p!==void 0?p:new Set,C=new Set(Ee(Ee([],oe(I),!1),oe(A),!1));y.set(S,C)}}m=g.map(function(ee){var B;return wC(ee,(B=y.get(ee))!==null&&B!==void 0?B:new Set)});var R=function(ee){ee?.attrs&&Object.entries(ee.attrs).forEach(function(B){var z=oe(B,2),K=z[0],Q=z[1];ee.attrs&&(ee.attrs[K]=o.replaceSensitiveString(Q))})};try{for(var P=ce(m),k=P.next();!k.done;k=P.next()){var N=k.value;R(N)}}catch(ee){h={error:ee}}finally{try{k&&!k.done&&(v=P.return)&&v.call(P)}finally{if(h)throw h.error}}var $=performance.now();return(b=o.diagnosticsClient)===null||b===void 0||b.recordHistogram("autocapturePlugin.getHierarchy",$-E),m},this.getNearestLabel=function(d){var h=d.parentElement;if(!h)return"";var v;try{v=h.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch{v=null}return v?o.getText(v):o.getNearestLabel(h)},this.getElementPath=function(d){var h;if(!d)return"";var v=performance.now(),p=AC(d),b=performance.now();return(h=o.diagnosticsClient)===null||h===void 0||h.recordHistogram("autocapturePlugin.getElementPath",b-v),p},this.getEventProperties=function(d,h,v){var p,b,E,m,g=(E=(b=h?.tagName)===null||b===void 0?void 0:b.toLowerCase)===null||E===void 0?void 0:E.call(b),y=typeof h.getBoundingClientRect=="function"?h.getBoundingClientRect():{left:null,top:null},_=o.getHierarchy(h),S=(m=_[0])===null||m===void 0?void 0:m.attrs,A=o.getNearestLabel(h),I=JI(S??{},v),C=(p={},p[xI]=_,p[ld]=g,p[cd]=o.getText(h),p[LI]=y.left==null?null:Math.round(y.left),p[MI]=y.top==null?null:Math.round(y.top),p[UI]=I,p[FI]=o.getElementPath(h),p[HI]=A,p[Iu]=xr(window.location.href.split("?")[0]),p[BI]=Pl(o.replaceSensitiveString),p[kg]=window.innerHeight,p[Rg]=window.innerWidth,p),R=Mg();if(R&&(C[Pg]=R),C[PI]=h.getAttribute("id")||"",C[OI]=h.getAttribute("class"),C[DI]=S?.["aria-label"],g==="a"&&d==="click"&&h instanceof HTMLAnchorElement){var P=h.href.substring(0,xg);C[NI]=o.replaceSensitiveString(P)}return fd(C)},this.addTypeAndTimestamp=function(d,h){return{event:d,timestamp:Date.now(),type:h}},this.addAdditionalEventProperties=function(d,h,v,p,b){b===void 0&&(b=!1);var E=o.addTypeAndTimestamp(d,h);if(ZI(E)&&E.event.target!==null){if(b){var m=Ng(E.event.target,E.type);if(m)return E.closestTrackedAncestor=E.event.target,E.targetElementProperties=o.getEventProperties(E.type,E.closestTrackedAncestor,p),E}var g=Nl(E.event.target,v);return g&&(E.closestTrackedAncestor=g,E.targetElementProperties=o.getEventProperties(E.type,g,p)),E}return E},this.extractDataFromDataSource=function(d,h){if(d.sourceType==="DOM_ELEMENT"){var v=hC(d,h);return v?d.elementExtractType==="TEXT"?o.getText(v):d.elementExtractType==="ATTRIBUTE"&&d.attribute?v.getAttribute(d.attribute):void 0:void 0}},this.getTextWithMaskedDescendants=function(d){var h,v,p="[".concat(Tn,"], [contenteditable]");if(!d.querySelector(p))return d.innerText;var b="",E=Array.from(d.childNodes);try{for(var m=ce(E),g=m.next();!g.done;g=m.next()){var y=g.value;if(y.nodeType===Node.TEXT_NODE){b+=y.textContent||"";continue}if(y instanceof Element){if(y.hasAttribute(Tn)||y.hasAttribute("contenteditable")){b+=Nr;continue}b+=o.getTextWithMaskedDescendants(y)}}}catch(_){h={error:_}}finally{try{g&&!g.done&&(v=m.return)&&v.call(m)}finally{if(h)throw h.error}}return b},this.getText=function(d){var h=d.closest("[".concat(Tn,"]"))!==null;if(h)return Nr;var v="";return d.querySelector("[".concat(Tn,"], [contenteditable]"))?v=o.getTextWithMaskedDescendants(d):v=d.innerText||"",o.replaceSensitiveString(v.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(d){var h,v,p;if(!d)return{};var b=(p=(v=d?.tagName)===null||v===void 0?void 0:v.toLowerCase)===null||p===void 0?void 0:p.call(v),E=(h={},h[ld]=b,h[cd]=o.getText(d),h[Iu]=window.location.href.split("?")[0],h);return fd(E)},this.diagnosticsClient=r?.diagnosticsClient;var a=(s=t.maskTextRegex)!==null&&s!==void 0?s:[],u=[];try{for(var c=ce(a),l=c.next();!l.done;l=c.next()){var f=l.value;if(u.length>=WI)break;if(f instanceof RegExp)u.push(f);else if("pattern"in f&&typeof f.pattern=="string")try{u.push(new RegExp(f.pattern,"i"))}catch{}}}catch(d){n={error:d}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}this.additionalMaskTextPatterns=u}return e})();function CC(e){var t=e.allObservables,r=e.onExposure,n=e.dataExtractor,i=e.exposureDuration,o=i===void 0?Zp:i,s=new Map,a=new Map,u=t.exposureObservable,c=u.subscribe(function(l){var f=l,d=f.target;if(f.isIntersecting){if(!s.get(d)){var h=setTimeout(function(){s.set(d,!0);var v=n.getElementPath(d);r(v),a.set(d,null)},o);a.set(d,h)}}else if(!f.isIntersecting&&f.intersectionRatio<1){var h=a.get(d);h&&(clearTimeout(h),a.set(d,null))}});return{unsubscribe:function(){c.unsubscribe()},reset:function(){a.forEach(function(l){l&&clearTimeout(l)}),a.clear(),s.clear()}}}function kC(e){var t,r,n,i,o=e.amplitude,s=e.scrollTracker,a=e.currentElementExposed,u=e.elementExposedForPage,c=e.exposureTracker,l=e.isPageEnd,f=e.lastScroll,d=s.getState(),h=le(),v=(r=h?.innerWidth)!==null&&r!==void 0?r:0,p=(n=h?.innerHeight)!==null&&n!==void 0?n:0,b=(t={},t[Iu]=(i=h?.location)===null||i===void 0?void 0:i.href,t[jI]=d.maxX+v,t[qI]=d.maxY+p,t[kg]=p,t[Rg]=v,t["[Amplitude] Element Exposed"]=Array.from(a),t),E=Mg();if(E&&(b[Pg]=E),a.size===0&&d.maxX===f.maxX&&d.maxY===f.maxY){l&&(s.reset(),u.clear(),c?.reset());return}o?.track("[Amplitude] Viewport Content Updated",b),f.maxX=d.maxX,f.maxY=d.maxY,a.clear(),l&&(s.reset(),u.clear(),c?.reset())}function RC(e,t,r,n){if(!t.has(e)){t.add(e),r.add(e);var i=Array.from(r),o=JSON.stringify(i);o.length>=KI&&n(!1)}}var ft;(function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.ScrollObservable="scrollObservable",e.ExposureObservable="exposureObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable",e.MouseMoveObservable="mouseMoveObservable"})(ft||(ft={}));var PC=function(e,t){var r,n,i,o,s,a,u,c,l,f,d,h;e===void 0&&(e={}),t?.diagnosticsClient.setTag("plugin.autocapture.version",Ig);var v=e.dataAttributePrefix,p=v===void 0?Cl:v,b=e.visualTaggingOptions,E=b===void 0?{enabled:!0}:b;e.cssSelectorAllowlist=(r=e.cssSelectorAllowlist)!==null&&r!==void 0?r:Jp,e.actionClickAllowlist=(n=e.actionClickAllowlist)!==null&&n!==void 0?n:Qp,e.debounceTime=(i=e.debounceTime)!==null&&i!==void 0?i:0;var m=((o=e.viewportContentUpdated)===null||o===void 0?void 0:o.enabled)!==!1,g=(u=(a=(s=e.viewportContentUpdated)===null||s===void 0?void 0:s.exposureDuration)!==null&&a!==void 0?a:e.exposureDuration)!==null&&u!==void 0?u:Zp;e.viewportContentUpdated=D(D({},e.viewportContentUpdated),{exposureDuration:g}),e.pageUrlExcludelist=(c=e.pageUrlExcludelist)===null||c===void 0?void 0:c.reduce(function(Q,ae){if(typeof ae=="string"&&Q.push(ae),ae instanceof RegExp&&Q.push(ae),typeof ae=="object"&&ae!==null&&"pattern"in ae)try{Q.push(new RegExp(ae.pattern))}catch(fe){return console.warn("Invalid regex pattern: ".concat(ae.pattern),fe),Q}return Q},[]);var y=wI,_="enrichment",S=[],A=new Fg(e,t),I=new Set,C=new Set,R,P=function(){var Q,ae=Xt(Ug().map(function(me){return A.addAdditionalEventProperties(me,"click",e.cssSelectorAllowlist,p)})),fe=Xt(new et(function(me){var M,Z=function(X){var re=A.addAdditionalEventProperties(X,"change",e.cssSelectorAllowlist,p);me.next(re)};return(M=le())===null||M===void 0||M.document.addEventListener("change",Z,{capture:!0}),function(){var X;return(X=le())===null||X===void 0?void 0:X.document.removeEventListener("change",Z)}})),pe;window.navigation&&(pe=Xt(new et(function(me){var M=function(Z){var X=A.addAdditionalEventProperties(Z,"navigate",e.cssSelectorAllowlist,p);me.next(X)};return window.navigation.addEventListener("navigate",M),function(){window.navigation.removeEventListener("navigate",M)}})));var ye=Xt(Dg().map(function(me){return A.addAdditionalEventProperties(me,"mutation",e.cssSelectorAllowlist,p)})),be=oC(),de=aC(ye,e.cssSelectorAllowlist);return Q={},Q[ft.ChangeObservable]=fe,Q[ft.ClickObservable]=ae,Q[ft.MutationObservable]=ye,Q[ft.NavigateObservable]=pe,Q[ft.ScrollObservable]=be,Q[ft.ExposureObservable]=de,Q},k=hd(Object.values((f=(l=e.pageActions)===null||l===void 0?void 0:l.labeledEvents)!==null&&f!==void 0?f:{})),N=vd((h=(d=e.pageActions)===null||d===void 0?void 0:d.triggers)!==null&&h!==void 0?h:[]),$=yC(k,N,A,e),ee=function(Q){var ae,fe;Q&&(e.pageActions=D(D({},e.pageActions),Q),k=hd(Object.values((ae=e.pageActions.labeledEvents)!==null&&ae!==void 0?ae:{})),N=vd((fe=e.pageActions.triggers)!==null&&fe!==void 0?fe:[]),$.update(k,N,e))},B=function(Q,ae){return x(void 0,void 0,void 0,function(){var fe,pe,ye,be,de,me,M,Z,X,re,F,ge,w,T,L,H,U,q,te,G,Y;return O(this,function(V){return typeof document>"u"?[2]:(fe=!1,pe={maxX:void 0,maxY:void 0},Q.fetchRemoteConfig&&(Q.remoteConfigClient?Q.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",function(W){ee(W)}):Q.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),ye=Fn(e,e.cssSelectorAllowlist),be=Fn(e,e.actionClickAllowlist),de=P(),me=tC({allObservables:de,amplitude:ae,shouldTrackEvent:ye,evaluateTriggers:$.evaluate.bind($)}),S.push(me),M=rC({allObservables:de,getEventProperties:function(){for(var W=[],j=0;j<arguments.length;j++)W[j]=arguments[j];return A.getEventProperties.apply(A,Ee(Ee([],oe(W),!1),[p],!1))},amplitude:ae,shouldTrackEvent:ye,evaluateTriggers:$.evaluate.bind($)}),S.push(M),Z=nC({allObservables:de,options:e,getEventProperties:function(){for(var W=[],j=0;j<arguments.length;j++)W[j]=arguments[j];return A.getEventProperties.apply(A,Ee(Ee([],oe(W),!1),[p],!1))},amplitude:ae,shouldTrackEvent:ye,shouldTrackActionClick:be}),Z&&S.push(Z),X=iC({allObservables:de}),S.push(X),re={},F=le(),ge=function(W){W&&fe||(setTimeout(function(){fe=!1},100),fe=!0,kC({amplitude:ae,scrollTracker:X,currentElementExposed:C,elementExposedForPage:I,exposureTracker:re.exposure,isPageEnd:W,lastScroll:pe}))},w=function(W){RC(W,I,C,ge)},m&&(re.exposure=CC({allObservables:de,onExposure:w,dataExtractor:A,exposureDuration:g}),re.exposure&&S.push(re.exposure),T=function(){ge(!0)},F?.addEventListener("beforeunload",T),R=function(){F?.removeEventListener("beforeunload",T)},S.push({unsubscribe:function(){return R()}}),L=de[ft.NavigateObservable],L?S.push(L.subscribe(function(){ge(!0)})):F&&(H=function(){ge(!0)},F.addEventListener("popstate",H),U=F.history.pushState,F.history&&U&&(F.history.pushState=new Proxy(U,{apply:function(W,j,J){var ne=oe(J,3),ie=ne[0],Se=ne[1],ue=ne[2];W.apply(j,[ie,Se,ue]),ge(!0)}})),S.push({unsubscribe:function(){F.removeEventListener("popstate",H),F.history&&U&&(F.history.pushState=U)}}))),(Y=Q?.loggerProvider)===null||Y===void 0||Y.log("".concat(y," has been successfully added.")),window.opener&&E.enabled&&(q=e.cssSelectorAllowlist,te=e.actionClickAllowlist,G=fg(),eC(G,{dataExtractor:A,isElementSelectable:Fn(e,Ee(Ee([],oe(q),!1),oe(te),!1)),cssSelectorAllowlist:q,actionClickAllowlist:te}),dg(G),G.setup(D({logger:Q?.loggerProvider},Q?.serverZone&&{endpoint:lg[Q.serverZone]}))),[2])})})},z=function(Q){return x(void 0,void 0,void 0,function(){return O(this,function(ae){return[2,Q]})})},K=function(){return x(void 0,void 0,void 0,function(){var Q,ae,fe,pe,ye;return O(this,function(be){try{for(Q=ce(S),ae=Q.next();!ae.done;ae=Q.next())fe=ae.value,fe.unsubscribe()}catch(de){pe={error:de}}finally{try{ae&&!ae.done&&(ye=Q.return)&&ye.call(Q)}finally{if(pe)throw pe.error}}return[2]})})};return{name:y,type:_,setup:B,execute:z,teardown:K}},OC=3e3,xC=["mutation","navigate"];function NC(e){var t=e.amplitude,r=e.allObservables,n=e.getEventProperties,i=e.shouldTrackDeadClick,o=r.clickObservable,s=r.mutationObservable,a=r.navigateObservable,u=o.filter(function(h){return no(h)&&i("click",h.closestTrackedAncestor)&&h.event.target instanceof Element&&h.event.target.closest('a[target="_blank"]')===null&&h.event.button===bs.LEFT_OR_TOUCH_CONTACT}),c=a?un(s,a):s,l=un(u,c),f=null,d=Ol(l,function(h){return f&&xC.includes(h.type)?(clearTimeout(f),f=null,Promise.resolve(null)):h.type==="click"?f?Promise.resolve(null):new Promise(function(v){f=setTimeout(function(){v(h),f=null},OC)}):Promise.resolve(null)});return d.subscribe(function(h){if(h){var v={"[Amplitude] X":h.event.clientX,"[Amplitude] Y":h.event.clientY};t.track(AI,D(D({},n("click",h.closestTrackedAncestor)),v),{time:h.timestamp})}})}var Hg=eA,Bg=ZT,pd=tA;function gd(e,t){var r,n,i,o,s=t.event,a=s.pageX,u=s.pageY;e.yMin=Math.min((r=e.yMin)!==null&&r!==void 0?r:u,u),e.yMax=Math.max((n=e.yMax)!==null&&n!==void 0?n:u,u),e.xMin=Math.min((i=e.xMin)!==null&&i!==void 0?i:a,a),e.xMax=Math.max((o=e.xMax)!==null&&o!==void 0?o:a,a),e.isOutOfBounds=e.yMax-e.yMin>pd||e.xMax-e.xMin>pd}function md(e){if(e.length===0)return null;var t=e[0],r=e[e.length-1],n=D({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(r.timestamp).toISOString(),"[Amplitude] Duration":r.timestamp-t.timestamp,"[Amplitude] Clicks":e.map(function(i){return{X:i.event.pageX,Y:i.event.pageY,Time:i.timestamp}}),"[Amplitude] Click Count":e.length},t.targetElementProperties);return{rageClickEvent:n,time:t.timestamp}}function LC(e,t){var r=Math.max(0,e.length-Hg+1),n=e[r];return t.timestamp-n.timestamp>=Bg}function MC(e,t){return e.length>0&&e[e.length-1].closestTrackedAncestor!==t.closestTrackedAncestor}function DC(e){var t=this,r=e.amplitude,n=e.allObservables,i=e.shouldTrackRageClick,o=n.clickObservable,s=n.selectionObservable,a=[],u={},c=null;function l(v){a=[],u={},v&&(gd(u,v),a.push(v))}var f=Ol(o.filter(function(v){return i("click",v.closestTrackedAncestor)}),function(v){return x(t,void 0,void 0,function(){var p;return O(this,function(b){return gd(u,v),p=null,a.length===0||MC(a,v)||LC(a,v)||u.isOutOfBounds?(c&&(p=md(a)),l(v)):a.push(v),c&&(clearTimeout(c.timerId),c.resolve(p),c=null),a.length>=Hg?[2,new Promise(function(E){c={resolve:E,timerId:setTimeout(function(){E(md(a))},Bg)}})]:[2,null]})})}),d=s?.subscribe(function(){l()}),h=f.subscribe(function(v){v!==null&&r.track(II,v.rageClickEvent,{time:v.time})});return{unsubscribe:function(){h.unsubscribe(),d?.unsubscribe()}}}var UC=2e3;function FC(e){var t=e.amplitude,r=e.allObservables,n=e.shouldTrackErrorClick,i=r.clickObservable,o=r.browserErrorObservable,s=i.filter(function(l){return no(l)&&n("click",l.closestTrackedAncestor)&&l.event.target instanceof Element&&l.event.target.closest('a[target="_blank"]')===null&&l.event.button===bs.LEFT_OR_TOUCH_CONTACT}),a=null,u=null,c=function(){a!==null&&(clearTimeout(a),a=null),u=null};return un(s,o).subscribe(function(l){var f;if(l.type==="click"){c(),u=l,a=setTimeout(c,UC);return}l.type==="error"&&u&&(t.track(CI,D((f={},f["[Amplitude] Kind"]=l.event.kind,f["[Amplitude] Message"]=l.event.message,f["[Amplitude] Stack"]=l.event.stack,f["[Amplitude] Filename"]=l.event.filename,f["[Amplitude] Line Number"]=l.event.lineNumber,f["[Amplitude] Column Number"]=l.event.columnNumber,f),u.targetElementProperties)),c())})}var Kt;(function(e){e.INCREASING="increasing",e.DECREASING="decreasing"})(Kt||(Kt={}));var Qr;(function(e){e.X="x",e.Y="y"})(Qr||(Qr={}));var HC=function(e){var t=e.allWindowObservables,r=t.mouseMoveObservable;return new et(function(n){var i=null,o=null,s=null;return r.subscribe(function(a){var u={x:a.clientX,y:a.clientY};if(i===null){i=u;return}u.x>i.x?(o===Kt.DECREASING&&n.next(Qr.X),o=Kt.INCREASING):u.x<i.x&&(o===Kt.INCREASING&&n.next(Qr.X),o=Kt.DECREASING),u.y>i.y?(s===Kt.DECREASING&&n.next(Qr.Y),s=Kt.INCREASING):u.y<i.y&&(s===Kt.INCREASING&&n.next(Qr.Y),s=Kt.DECREASING),i=u})})};function BC(e){var t=+Date.now();e.startTime=e.startTime||t;var r=e.changes,n=e.changesThreshold;r.push(t),r.length>n&&r.shift()}function yd(e){var t=e.changes,r=e.changesThreshold,n=e.thresholdMs;if(t.length<r)return!1;var i=t[t.length-1]-t[0];return i<n}function bd(e){e.changes=[],e.startTime=void 0}function Ed(e){for(var t=e.changes,r=e.thresholdMs,n=0,i=t[t.length-1];n<t.length;n++){var o=i-t[n];if(o<r)break}n!==0&&(e.startTime=t[n],e.changes.splice(0,n))}function jC(e,t){var r=void 0;if(yd(e)&&(r=e.startTime),yd(t)){var n=t.startTime;n&&(!r||n<r)&&(r=n)}return r}var jg=20,qg=2e3,qC=function(e){var t=e.mouseDirectionChangeObservable,r=e.directionChanges,n=r===void 0?jg:r,i=e.thresholdMs,o=i===void 0?qg:i;return new et(function(s){var a={changes:[],changesThreshold:n,thresholdMs:o},u={changes:[],changesThreshold:n,thresholdMs:o},c=void 0,l=null;function f(){c!==void 0&&(s.next(c),c=void 0,l!==null&&clearTimeout(l),bd(a),bd(u))}return t.subscribe(function(d){l!==null&&clearTimeout(l),BC(d===Qr.X?a:u);var h=jC(a,u);return h?(c=c||h,l=setTimeout(function(){f(),l=null},o)):f(),Ed(a),Ed(u),function(){l!==null&&(clearTimeout(l),l=null)}})})},VC=function(e){var t=e.amplitude,r=e.options,n=e.allObservables,i=e.directionChanges,o=i===void 0?jg:i,s=e.thresholdMs,a=s===void 0?qg:s,u=HC({allWindowObservables:n}),c=qC({mouseDirectionChangeObservable:u,directionChanges:o,thresholdMs:a});return c.subscribe(function(l){Lg(r)&&t.track(RI,void 0,{time:l})})};function ka(e,t,r,n){if(!n)return[];var i=e[t];return typeof i=="object"&&i!==null&&"cssSelectorAllowlist"in i&&Array.isArray(i.cssSelectorAllowlist)?i.cssSelectorAllowlist:r}var So=5,wo=4e3,$C=function(e){var t;e===void 0&&(e={});var r=TI,n="enrichment",i=[],o=e.errorClicks!==!1;e.errorClicks||(o=!1);var s=e.deadClicks!==!1&&e.deadClicks!==null,a=e.rageClicks!==!1&&e.rageClicks!==null,u=e.thrashedCursor!==!1&&e.thrashedCursor!==null;e.thrashedCursor||(u=!1);var c=ka(e,"rageClicks",QT,a),l=ka(e,"deadClicks",YT,s),f=ka(e,"errorClicks",JT,o),d=(t=e.dataAttributePrefix)!==null&&t!==void 0?t:Cl,h=new Fg(e),v=Ee([],oe(new Set(Ee(Ee(Ee([],oe(c),!1),oe(l),!1),oe(f),!1))),!1),p=function(){var g,y=Xt(Ug("pointerdown").map(function(P){return h.addAdditionalEventProperties(P,"click",v,d,!0)})),_=Xt(cC().map(function(P){return h.addTypeAndTimestamp(P,"error")})),S=Xt(Dg().map(function(P){return h.addAdditionalEventProperties(P,"mutation",v,d)})),A;if(window.navigation){var I=new et(function(P){var k=function(N){P.next(D(D({},N),{type:"navigate"}))};return window.navigation.addEventListener("navigate",k),function(){window.navigation.removeEventListener("navigate",k)}});A=Xt(I.map(function(P){return h.addAdditionalEventProperties(P,"navigate",v,d)}))}var C=Xt(new et(function(P){var k=function(){var N=document.activeElement;if(N&&(N.tagName==="TEXTAREA"||N.tagName==="INPUT")){var $=void 0,ee=void 0;try{if($=N.selectionStart,ee=N.selectionEnd,$===ee)return}catch{return}return P.next()}var B=window.getSelection();if(!(!B||B.isCollapsed))return P.next()};return window.document.addEventListener("selectionchange",k),function(){window.document.removeEventListener("selectionchange",k)}})),R=Xt(fC());return g={},g[ft.ClickObservable]=y,g[ft.MutationObservable]=S,g[ft.NavigateObservable]=A,g[ft.BrowserErrorObservable]=_,g[ft.SelectionObservable]=C,g[ft.MouseMoveObservable]=R,g},b=function(g,y){return x(void 0,void 0,void 0,function(){var _,S,A,I,C,R,P,k,N,$,ee;return O(this,function(B){return typeof document>"u"?[2]:(_=p(),a&&(S=Fn(e,c),A=DC({allObservables:_,amplitude:y,shouldTrackRageClick:S}),i.push(A)),s&&(I=Fn(e,l),C=NC({amplitude:y,allObservables:_,getEventProperties:function(z,K){return h.getEventProperties(z,K,d)},shouldTrackDeadClick:I}),i.push(C)),o&&(R=Fn(e,f),P=FC({amplitude:y,allObservables:_,shouldTrackErrorClick:R}),i.push(P)),u&&(k=void 0,N=void 0,typeof e.thrashedCursor=="object"&&(k=e.thrashedCursor.directionChanges,N=e.thrashedCursor.threshold,k&&k<So&&(g.loggerProvider.warn("'thrashedCursor.directionChanges' of ".concat(k," is below the minimum of ").concat(So,", setting to ").concat(So)),k=So),N&&N>wo&&(g.loggerProvider.warn("'thrashedCursor.threshold' of ".concat(N," is above the maximum of ").concat(wo,", setting to ").concat(wo)),N=wo)),$=VC({amplitude:y,options:e,allObservables:_,directionChanges:k,thresholdMs:N}),i.push($)),(ee=g?.loggerProvider)===null||ee===void 0||ee.log("".concat(r," has been successfully added.")),[2])})})},E=function(g){return x(void 0,void 0,void 0,function(){return O(this,function(y){return[2,g]})})},m=function(){return x(void 0,void 0,void 0,function(){var g,y,_,S,A;return O(this,function(I){try{for(g=ce(i),y=g.next();!y.done;y=g.next())_=y.value,_.unsubscribe()}catch(C){S={error:C}}finally{try{y&&!y.done&&(A=g.return)&&A.call(g)}finally{if(S)throw S.error}}return[2]})})};return{name:r,type:n,setup:b,execute:E,teardown:m}},WC="@amplitude/plugin-network-capture-browser",Vg="[Amplitude] Network Request",$g="500-599";function qo(e,t){var r=t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&"),n="^"+r.replace(/\*/g,".*")+"$",i=new RegExp(n);return i.test(e)}function Wg(e,t){var r,n,i=t.split(",");try{for(var o=ce(i),s=o.next();!s.done;s=o.next()){var a=s.value,u=oe(a.split("-").map(Number),2),c=u[0],l=u[1];if(e===c&&l===void 0||e>=c&&e<=l)return!0}}catch(f){r={error:f}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function GC(e,t,r,n,i){if(!(e.hosts&&!e.hosts.find(function(s){return qo(t,s)}))&&!(n&&e.urls&&!_u(n,e.urls))&&!(i&&e.methods&&!e.methods.find(function(s){return i.toLowerCase()===s.toLowerCase()||s==="*"}))){if(r||r===0){var o=e.statusCodeRange||$g;if(!Wg(r,o))return!1}return!0}}function Gg(e){var t;if(e)try{var r=(t=le())===null||t===void 0?void 0:t.location.href,n=new URL(e,r),i=n.searchParams.toString(),o=n.hash.replace("#",""),s=n.href,a=n.host;n.hash="",n.search="";var u=n.href;return{query:i,fragment:o,href:s,hrefWithoutQueryOrHash:u,host:a}}catch{return}}function KC(e,t){if(e.includes("amplitude.com"))try{var r=t.body;if(typeof r!="string")return!1;var n=JSON.parse(r),i=n.events;if(i.find(function(o){return o.event_type===Vg}))return!0}catch{}return!1}function _d(e){if(typeof e!="object"||e===null){if(e)return Ee([],oe(vs),!1);if(e===void 0){var t=void 0;return t}return}if(e.length!==0)return e}function Sd(e){var t,r;return!(!((t=e?.allowlist)===null||t===void 0)&&t.length)&&!(!((r=e?.blocklist)===null||r===void 0)&&r.length)}function zC(e,t){var r;t===void 0&&(t={});var n=Gg(e.url);if(!n)return!1;var i=n.host;if(t.ignoreAmplitudeRequests!==!1&&(qo(i,"*.amplitude.com")||qo(i,"amplitude.com"))||!((r=t.ignoreHosts)===null||r===void 0)&&r.find(function(s){return qo(i,s)})||!t.captureRules&&e.status!==void 0&&!Wg(e.status,$g))return!1;if(t.captureRules){var o;if(Ee([],oe(t.captureRules),!1).reverse().find(function(s){if(o=GC(s,i,e.status,e.url,e.method),o){var a=_d(s.responseHeaders);if(e.responseWrapper&&a){var u=e.responseWrapper.headers(a);u&&(e.responseHeaders=u)}var c=_d(s.requestHeaders);if(e.requestWrapper&&c){var l=e.requestWrapper.headers(c);l&&(e.requestHeaders=l)}e.responseWrapper&&s.responseBody&&!Sd(s.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(s.responseBody.allowlist,s.responseBody.blocklist)),e.requestWrapper&&s.requestBody&&!Sd(s.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(s.requestBody.allowlist,s.requestBody.blocklist))}return o!==void 0}),!o)return!1}return!(e.requestWrapper&&KC(i,e.requestWrapper))}function XC(e,t,r,n){return x(this,void 0,void 0,function(){var i,o,s;return O(this,function(a){switch(a.label){case 0:return t.requestBodyJson||t.responseBodyJson?[4,Promise.all([t.requestBodyJson,t.responseBodyJson])]:[3,2];case 1:if(i=oe.apply(void 0,[a.sent(),2]),o=i[0],s=i[1],o)try{e["[Amplitude] Request Body"]=JSON.stringify(o)}catch(u){n?.debug("Failed to stringify request body",u)}if(s)try{e["[Amplitude] Response Body"]=JSON.stringify(s)}catch{n?.debug("Failed to stringify response body")}a.label=2;case 2:return r?.track(Vg,e),[2]}})})}function YC(e){var t=e.allObservables,r=e.networkTrackingOptions,n=e.amplitude,i=e.loggerProvider,o=t.networkObservable,s=o.filter(function(a){return zC(a.event,r)});return s.subscribe(function(a){var u,c,l,f=a.event,d=Gg(f.url);if(d){var h=(c=f.responseWrapper)===null||c===void 0?void 0:c.bodySize,v=(l=f.requestWrapper)===null||l===void 0?void 0:l.bodySize,p=(u={},u["[Amplitude] URL"]=d.hrefWithoutQueryOrHash,u["[Amplitude] URL Query"]=d.query,u["[Amplitude] URL Fragment"]=d.fragment,u["[Amplitude] Request Method"]=f.method,u["[Amplitude] Status Code"]=f.status,u["[Amplitude] Start Time"]=f.startTime,u["[Amplitude] Completion Time"]=f.endTime,u["[Amplitude] Duration"]=f.duration,u["[Amplitude] Request Body Size"]=v,u["[Amplitude] Response Body Size"]=h,u["[Amplitude] Request Type"]=f.type,u["[Amplitude] Request Headers"]=f.requestHeaders,u["[Amplitude] Response Headers"]=f.responseHeaders,u);XC(p,f,n,i)}})}var ku;(function(e){e.NetworkObservable="networkObservable"})(ku||(ku={}));var wd,JC=function(e){e===void 0&&(e={});var t=WC,r="enrichment",n,i=function(c,l){var f={event:c,timestamp:Date.now(),type:l};return f},o=function(){var c,l=new et(function(f){var d=new cA(function(h){var v=i(h,"network");f.next(v)});return Gf.subscribe(d,n),function(){Gf.unsubscribe(d)}});return c={},c[ku.NetworkObservable]=l,c},s=function(c,l){return x(void 0,void 0,void 0,function(){var f;return O(this,function(d){return typeof document>"u"?[2]:(f=o(),n=c?.loggerProvider,wd=YC({allObservables:f,networkTrackingOptions:e,amplitude:l,loggerProvider:n}),n?.log("".concat(t," has been successfully added.")),[2])})})},a=function(c){return x(void 0,void 0,void 0,function(){return O(this,function(l){return[2,c]})})},u=function(){return x(void 0,void 0,void 0,function(){return O(this,function(c){return wd.unsubscribe(),[2]})})};return{name:t,type:r,setup:s,execute:a,teardown:u}},QC="web-vitals-browser",ZC="[Amplitude] Web Vitals";let Kg=-1;const ti=e=>{addEventListener("pageshow",(t=>{t.persisted&&(Kg=t.timeStamp,e(t))}),!0)},Zt=(e,t,r,n)=>{let i,o;return s=>{t.value>=0&&(s||n)&&(o=t.value-(i??0),(o||i===void 0)&&(i=t.value,t.delta=o,t.rating=((a,u)=>a>u[1]?"poor":a>u[0]?"needs-improvement":"good")(t.value,r),e(t)))}},Ll=e=>{requestAnimationFrame((()=>requestAnimationFrame((()=>e()))))},Ml=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},io=()=>Ml()?.activationStart??0,er=(e,t=-1)=>{const r=Ml();let n="navigate";return Kg>=0?n="back-forward-cache":r&&(document.prerendering||io()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:n}},Ra=new WeakMap;function Dl(e,t){return Ra.get(e)||Ra.set(e,new t),Ra.get(e)}class ek{t;i=0;o=[];h(t){if(t.hadRecentInput)return;const r=this.o[0],n=this.o.at(-1);this.i&&r&&n&&t.startTime-n.startTime<1e3&&t.startTime-r.startTime<5e3?(this.i+=t.value,this.o.push(t)):(this.i=t.value,this.o=[t]),this.t?.(t)}}const oo=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const n=new PerformanceObserver((i=>{Promise.resolve().then((()=>{t(i.getEntries())}))}));return n.observe({type:e,buffered:!0,...r}),n}}catch{}},Ul=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let An=-1;const zg=new Set,Td=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,Ru=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(const t of zg)t();isFinite(An)||(An=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",Ru,!0))}},js=()=>{if(An<0){const e=io();An=(document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter((r=>r.name==="hidden"&&r.startTime>e))[0]?.startTime)??Td(),addEventListener("visibilitychange",Ru,!0),addEventListener("prerenderingchange",Ru,!0),ti((()=>{setTimeout((()=>{An=Td()}))}))}return{get firstHiddenTime(){return An},onHidden(e){zg.add(e)}}},qs=e=>{document.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Ad=[1800,3e3],Xg=(e,t={})=>{qs((()=>{const r=js();let n,i=er("FCP");const o=oo("paint",(s=>{for(const a of s)a.name==="first-contentful-paint"&&(o.disconnect(),a.startTime<r.firstHiddenTime&&(i.value=Math.max(a.startTime-io(),0),i.entries.push(a),n(!0)))}));o&&(n=Zt(e,i,Ad,t.reportAllChanges),ti((s=>{i=er("FCP"),n=Zt(e,i,Ad,t.reportAllChanges),Ll((()=>{i.value=performance.now()-s.timeStamp,n(!0)}))})))}))},Id=[.1,.25],tk=(e,t={})=>{const r=js();Xg(Ul((()=>{let n,i=er("CLS",0);const o=Dl(t,ek),s=u=>{for(const c of u)o.h(c);o.i>i.value&&(i.value=o.i,i.entries=o.o,n())},a=oo("layout-shift",s);a&&(n=Zt(e,i,Id,t.reportAllChanges),r.onHidden((()=>{s(a.takeRecords()),n(!0)})),ti((()=>{o.i=0,i=er("CLS",0),n=Zt(e,i,Id,t.reportAllChanges),Ll((()=>n()))})),setTimeout(n))})))};let Yg=0,Pa=1/0,To=0;const rk=e=>{for(const t of e)t.interactionId&&(Pa=Math.min(Pa,t.interactionId),To=Math.max(To,t.interactionId),Yg=To?(To-Pa)/7+1:0)};let Pu;const Cd=()=>Pu?Yg:performance.interactionCount??0,nk=()=>{"interactionCount"in performance||Pu||(Pu=oo("event",rk,{type:"event",buffered:!0,durationThreshold:0}))};let kd=0,ik=class{u=[];l=new Map;m;p;v(){kd=Cd(),this.u.length=0,this.l.clear()}L(){const t=Math.min(this.u.length-1,Math.floor((Cd()-kd)/50));return this.u[t]}h(t){if(this.m?.(t),!t.interactionId&&t.entryType!=="first-input")return;const r=this.u.at(-1);let n=this.l.get(t.interactionId);if(n||this.u.length<10||t.duration>r.P){if(n?t.duration>n.P?(n.entries=[t],n.P=t.duration):t.duration===n.P&&t.startTime===n.entries[0].startTime&&n.entries.push(t):(n={id:t.interactionId,entries:[t],P:t.duration},this.l.set(n.id,n),this.u.push(n)),this.u.sort(((i,o)=>o.P-i.P)),this.u.length>10){const i=this.u.splice(10);for(const o of i)this.l.delete(o.id)}this.p?.(n)}}};const Jg=e=>{const t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?e():(e=Ul(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),t((()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})})))},Rd=[200,500],ok=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const r=js();qs((()=>{nk();let n,i=er("INP");const o=Dl(t,ik),s=u=>{Jg((()=>{for(const l of u)o.h(l);const c=o.L();c&&c.P!==i.value&&(i.value=c.P,i.entries=c.entries,n())}))},a=oo("event",s,{durationThreshold:t.durationThreshold??40});n=Zt(e,i,Rd,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),r.onHidden((()=>{s(a.takeRecords()),n(!0)})),ti((()=>{o.v(),i=er("INP"),n=Zt(e,i,Rd,t.reportAllChanges)})))}))};let sk=class{m;h(t){this.m?.(t)}};const Pd=[2500,4e3],ak=(e,t={})=>{qs((()=>{const r=js();let n,i=er("LCP");const o=Dl(t,sk),s=u=>{t.reportAllChanges||(u=u.slice(-1));for(const c of u)o.h(c),c.startTime<r.firstHiddenTime&&(i.value=Math.max(c.startTime-io(),0),i.entries=[c],n())},a=oo("largest-contentful-paint",s);if(a){n=Zt(e,i,Pd,t.reportAllChanges);const u=Ul((()=>{s(a.takeRecords()),a.disconnect(),n(!0)})),c=l=>{l.isTrusted&&(Jg(u),removeEventListener(l.type,c,{capture:!0}))};for(const l of["keydown","click","visibilitychange"])addEventListener(l,c,{capture:!0});ti((l=>{i=er("LCP"),n=Zt(e,i,Pd,t.reportAllChanges),Ll((()=>{i.value=performance.now()-l.timeStamp,n(!0)}))}))}}))},Od=[800,1800],Ou=e=>{document.prerendering?qs((()=>Ou(e))):document.readyState!=="complete"?addEventListener("load",(()=>Ou(e)),!0):setTimeout(e)},uk=(e,t={})=>{let r=er("TTFB"),n=Zt(e,r,Od,t.reportAllChanges);Ou((()=>{const i=Ml();i&&(r.value=Math.max(i.responseStart-io(),0),r.entries=[i],n(!0),ti((()=>{r=er("TTFB",0),n=Zt(e,r,Od,t.reportAllChanges),n(!0)})))}))};function lk(e){var t,r=((t=e.entries[0])===null||t===void 0?void 0:t.startTime)||0;return performance.timeOrigin+r}function di(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(lk(e)),navigationStart:Math.floor(performance.timeOrigin)}}var ck=function(){var e=null,t=le(),r=t?.document,n=t?.location,i=function(a,u){return x(void 0,void 0,void 0,function(){var c,l;return O(this,function(f){return r===void 0?[2]:(c=xr(n?.href||"",a.loggerProvider),l={"[Amplitude] Page Domain":n?.hostname||"","[Amplitude] Page Location":c,"[Amplitude] Page Path":xr(n?.pathname||"",a.loggerProvider),"[Amplitude] Page Title":typeof document<"u"&&document.title||"","[Amplitude] Page URL":xr(c.split("?")[0],a.loggerProvider)},ak(function(d){l["[Amplitude] LCP"]=di(d)}),Xg(function(d){l["[Amplitude] FCP"]=di(d)}),ok(function(d){l["[Amplitude] INP"]=di(d)}),tk(function(d){l["[Amplitude] CLS"]=di(d)}),uk(function(d){l["[Amplitude] TTFB"]=di(d)}),e=function(){r.visibilityState==="hidden"&&e&&(u.track(ZC,l),r.removeEventListener("visibilitychange",e),e=null)},r.addEventListener("visibilitychange",e),[2])})})},o=function(a){return x(void 0,void 0,void 0,function(){return O(this,function(u){return[2,a]})})},s=function(){return x(void 0,void 0,void 0,function(){return O(this,function(a){return e&&r?.removeEventListener("visibilitychange",e),[2]})})};return{name:QC,type:"enrichment",setup:i,execute:o,teardown:s}},xd=(function(){function e(t,r){var n;this.shouldTrackNewCampaign=!1,this.options=D({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:oI(((n=r.cookieOptions)===null||n===void 0?void 0:n.domain)||r.topLevelDomain),optOut:r.optOut},t),this.storage=r.cookieStorage,this.storageKey=Ff(r.apiKey,"MKTG"),this.webExpStorageKey=Ff(r.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=Fs,this.sessionTimeout=r.sessionTimeout,this.lastEventTime=r.lastEventTime,this.logger=r.loggerProvider,this.topLevelDomain=r.topLevelDomain,r.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return x(this,void 0,void 0,function(){var t,r;return O(this,function(n){switch(n.label){case 0:return this.options.optOut?[2]:[4,this.fetchCampaign()];case 1:return r=oe.apply(void 0,[n.sent(),2]),this.currentCampaign=r[0],this.previousCampaign=r[1],t=this.lastEventTime?qp(this.sessionTimeout,this.lastEventTime):!0,tI(this.currentCampaign,this.previousCampaign,this.options,this.logger,t,this.topLevelDomain)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return x(this,void 0,void 0,function(){var t;return O(this,function(r){switch(r.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return t=r.sent(),t?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:r.sent(),r.label=3;case 3:return[4,Promise.all([t||new og().parse(),this.storage.get(this.storageKey)])];case 4:return[2,r.sent()]}})})},e.prototype.generateCampaignEvent=function(t){this.shouldTrackNewCampaign=!1;var r=iI(this.currentCampaign,this.options);return t&&(r.event_id=t),r},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e})(),Ao="AMP_CURRENT_PAGE",Io="AMP_PREVIOUS_PAGE",mn="AMP_URL_INFO",Li;(function(e){e.Direct="direct",e.Internal="internal",e.External="external"})(Li||(Li={}));var fk=new Set([_t.IDENTIFY,_t.GROUP_IDENTIFY,_t.REVENUE]),dk=function(e){var t={},r=t.internalDomains,n=r===void 0?[]:r,i=le(),o=void 0,s=!1,a=void 0,u=!1,c=!1,l=function(p){var b;try{var E=xr(p,a);b=new URL(E).hostname}catch(m){a?.error("Could not parse URL: ",m)}return b},f=function(p){var b=typeof location<"u"&&location.hostname||"",E=p?l(p):void 0;if(!E)return Li.Direct;var m=n.some(function(y){return b.indexOf(y)!==-1}),g=n.some(function(y){return E.indexOf(y)!==-1});return b===E||g&&m?Li.Internal:Li.External},d=function(){return x(void 0,void 0,void 0,function(){var p,b,E,m,g;return O(this,function(y){switch(y.label){case 0:return o&&s?[4,o.get(mn)]:[3,3];case 1:return p=y.sent(),b=xr(typeof location<"u"&&location.href||""),E=p?.[Ao]||"",m=void 0,b===E?m=p?.[Io]||"":E?m=E:m=document.referrer||"",[4,o.set(mn,(g={},g[Ao]=b,g[Io]=m,g))];case 2:y.sent(),y.label=3;case 3:return[2]}})})},h=function(){d()},v={name:"@amplitude/plugin-page-url-enrichment-browser",type:"enrichment",setup:function(p,b){return x(void 0,void 0,void 0,function(){var E;return O(this,function(m){switch(m.label){case 0:if(a=p.loggerProvider,a.log("Installing @amplitude/plugin-page-url-enrichment-browser"),c=!0,!i)return[3,2];try{o=new Hs(i.sessionStorage)}catch{a?.debug("sessionStorage is not available in this environment.")}return[4,o?.isEnabled()];case 1:s=(E=m.sent())!==null&&E!==void 0?E:!1,i.addEventListener("popstate",h),u||(i.history.pushState=new Proxy(i.history.pushState,{apply:function(g,y,_){var S=oe(_,3),A=S[0],I=S[1],C=S[2];g.apply(y,[A,I,C]),c&&h()}}),i.history.replaceState=new Proxy(i.history.replaceState,{apply:function(g,y,_){var S=oe(_,3),A=S[0],I=S[1],C=S[2];g.apply(y,[A,I,C]),c&&h()}}),u=!0),m.label=2;case 2:return[2]}})})},execute:function(p){return x(void 0,void 0,void 0,function(){var b,E,m,g,y;return O(this,function(_){switch(_.label){case 0:return b=xr(typeof location<"u"&&location.href||""),o&&s?[4,o.get(mn)]:[3,5];case 1:return E=_.sent(),E?.[Ao]?[3,3]:[4,o.set(mn,(y={},y[Ao]=b,y[Io]=document.referrer||"",y))];case 2:_.sent(),_.label=3;case 3:return[4,o.get(mn)];case 4:if(m=_.sent(),g="",m&&(g=m[Io]||""),fk.has(p.event_type))return[2,p];p.event_properties=D(D({},p.event_properties||{}),{"[Amplitude] Page Domain":hi(p,"[Amplitude] Page Domain",typeof location<"u"&&location.hostname||""),"[Amplitude] Page Location":hi(p,"[Amplitude] Page Location",b),"[Amplitude] Page Path":hi(p,"[Amplitude] Page Path",typeof location<"u"&&xr(location.pathname)||""),"[Amplitude] Page Title":hi(p,"[Amplitude] Page Title",Pl(Rl)),"[Amplitude] Page URL":hi(p,"[Amplitude] Page URL",b.split("?")[0]),"[Amplitude] Previous Page Location":g,"[Amplitude] Previous Page Type":f(g)}),_.label=5;case 5:return[2,p]}})})},teardown:function(){return x(void 0,void 0,void 0,function(){return O(this,function(p){switch(p.label){case 0:return i&&(i.removeEventListener("popstate",h),c=!1),o&&s?[4,o.set(mn,{})]:[3,2];case 1:p.sent(),p.label=2;case 2:return[2]}})})}};return v};function hi(e,t,r){return e.event_properties||(e.event_properties={}),e.event_properties[t]===void 0?r:e.event_properties[t]}var hk=function(){var e,t,r;function n(s){return typeof s!="object"||s===null?!1:"body"in s&&typeof s.body=="string"}function i(s){if(s)try{var a=new Function("return "+s)();if(typeof a=="function")return a;e?.error("Custom enrichment body did not evaluate to a function")}catch(u){e?.error("Could not create custom enrichment function",u)}return function(u){return u}}var o={name:"@amplitude/plugin-custom-enrichment-browser",type:"enrichment",setup:function(s,a){return x(void 0,void 0,void 0,function(){var u,c;return O(this,function(l){return e=s.loggerProvider,e?.log("Installing @amplitude/plugin-custom-enrichment-browser"),!((c=s.remoteConfig)===null||c===void 0)&&c.fetchRemoteConfig&&(s.remoteConfigClient?(u=s.remoteConfigClient.subscribe("configs.analyticsSDK.browserSDK.customEnrichment","all",function(f){f&&n(f)?r=i(f.body||""):r=i("")}),t=function(){var f;return(f=s.remoteConfigClient)===null||f===void 0?void 0:f.unsubscribe(u)}):e?.debug("Remote config client is not provided, skipping remote config fetch")),[2]})})},execute:function(s){return x(void 0,void 0,void 0,function(){var a;return O(this,function(u){if(r)try{return[2,(a=r(s))!==null&&a!==void 0?a:null]}catch(c){return e?.error("Could not execute custom enrichment function",c),[2,s]}return[2,s]})})},teardown:function(){return x(void 0,void 0,void 0,function(){return O(this,function(s){return t&&t(),[2]})})}};return o},Oa=-1,vk=(function(e){Mt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._diagnosticsSampleRate=0,r._enableRequestBodyCompressionExperimentalValue=!1,r}return t.prototype.init=function(r,n,i){r===void 0&&(r="");var o,s;return arguments.length>2?(o=n,s=i):typeof n=="string"?(o=n,s=void 0):(o=n?.userId,s=n),tt(this._init(D(D({},s),{userId:o,apiKey:r})))},t.prototype._init=function(r){var n,i,o,s,a,u,c,l;return x(this,void 0,void 0,function(){var f,d,h,v,p,b,E,m,g,y,_,S,A,I,C,R=this;return O(this,function(P){switch(P.label){case 0:return this.initializing?[2]:(this.initializing=!0,f=fI(r),d=(n=r.loggerProvider)!==null&&n!==void 0?n:new Kn,r.loggerProvider||d.enable((i=r.logLevel)!==null&&i!==void 0?i:ot.Warn),h=(o=r.serverZone)!==null&&o!==void 0?o:_g,p=this._diagnosticsSampleRate,b=(s=r.enableDiagnostics)!==null&&s!==void 0?s:!0,f?(v=new Xp(r.apiKey,d,h,(a=r.remoteConfig)===null||a===void 0?void 0:a.serverUrl),[4,new Promise(function(k){v?.subscribe("configs.diagnostics.browserSDK","all",function(N,$,ee){if(d.debug("Diagnostics remote configuration received:",JSON.stringify({remoteConfig:N,source:$,lastFetch:ee},null,2)),N){var B=N.sampleRate;typeof B=="number"&&!isNaN(B)&&(p=B);var z=N.enabled;typeof z=="boolean"&&(b=z)}k()})})]):[3,2]);case 1:P.sent(),P.label=2;case 2:return E=new UT(r.apiKey,d,h,{enabled:b,sampleRate:p}),E.setTag("library","".concat(bg,"/").concat(xl)),typeof navigator<"u"&&E.setTag("user_agent",navigator.userAgent),[4,lI(r.apiKey,r,this,E,{loggerProvider:d,serverZone:h,enableDiagnostics:b,diagnosticsSampleRate:p})];case 3:return m=P.sent(),f&&v?[4,new Promise(function(k){v?.subscribe("configs.analyticsSDK.browserSDK","all",function(N,$,ee){m.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:N,source:$,lastFetch:ee},null,2)),N&&SI(N,m),k()})})]:[3,5];case 4:P.sent(),P.label=5;case 5:return[4,e.prototype._init.call(this,m)];case 6:return P.sent(),this.logBrowserOptions(m),this.config.remoteConfigClient=v,hg(this.config.defaultTracking)?(this.config.optOut&&this.timeline.addOptOutListener(function(k){return x(R,void 0,void 0,function(){var N;return O(this,function($){switch($.label){case 0:return k?[3,2]:(N=Zf(this.config),this.webAttribution=new xd(N,this.config),[4,this.webAttribution.init()]);case 1:$.sent(),$.label=2;case 2:return[2]}})})}),g=Zf(this.config),this.webAttribution=new xd(g,this.config),[4,this.webAttribution.init()]):[3,8];case 7:P.sent(),P.label=8;case 8:return y=ps(),_=y.ampTimestamp?Number(y.ampTimestamp):void 0,S=_?Date.now()<_:!0,A=S&&!Number.isNaN(Number(y.ampSessionId))?Number(y.ampSessionId):void 0,I=this.config.deferredSessionId,I===Oa&&!this.config.optOut&&(I=Date.now()),this.setSessionId((l=(c=(u=r.sessionId)!==null&&u!==void 0?u:A)!==null&&c!==void 0?c:I)!==null&&l!==void 0?l:this.config.sessionId),this.config.optOut&&this.timeline.addOptOutListener(function(k){return x(R,void 0,void 0,function(){return O(this,function(N){return!k&&this.config.deferredSessionId&&(this.config.deferredSessionId===Oa?this.setSessionId(void 0):this.setSessionId(this.config.deferredSessionId)),[2]})})}),C=zn(r.instanceName),C.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===Yp?[3,10]:[4,this.add(_I()).promise];case 9:P.sent(),P.label=10;case 10:return[4,this.add(new lT({diagnosticsClient:E})).promise];case 11:return P.sent(),[4,this.add(new FA).promise];case 12:return P.sent(),[4,this.add(new bT).promise];case 13:return P.sent(),EI(this.config),kA(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(bI()).promise]):[3,15];case 14:P.sent(),P.label=15;case 15:return vg(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(yI()).promise]):[3,17];case 16:P.sent(),P.label=17;case 17:return pg(this.config.defaultTracking)?this.config.optOut?[3,19]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(od(Qf(this.config))).promise]):[3,20];case 18:return P.sent(),[3,20];case 19:this.timeline.addOptOutListener(function(k){return x(R,void 0,void 0,function(){return O(this,function(N){switch(N.label){case 0:return k?[2]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(od(Qf(this.config))).promise]);case 1:return N.sent(),[2]}})})}),P.label=20;case 20:return mg(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(PC(xA(this.config),{diagnosticsClient:E})).promise]):[3,22];case 21:P.sent(),P.label=22;case 22:return yg(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add($C(NA(this.config))).promise]):[3,24];case 23:P.sent(),P.label=24;case 24:return gg(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(JC(LA(this.config))).promise]):[3,26];case 25:P.sent(),P.label=26;case 26:return PA(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(ck()).promise]):[3,28];case 27:P.sent(),P.label=28;case 28:return RA(this.config.autocapture)?(this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add(dk()).promise]):[3,30];case 29:P.sent(),P.label=30;case 30:return OA(this.config.customEnrichment)?(this.config.loggerProvider.debug("Adding custom enrichment plugin"),[4,this.add(hk()).promise]):[3,32];case 31:P.sent(),P.label=32;case 32:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 33:return P.sent(),C.eventBridge.setEventReceiver(function(k){var N=k.eventProperties||{},$=N.time,ee=hs(N,["time"]),B=typeof $=="number"?{time:$}:void 0;R.track(k.eventType,ee,B)}),[2]}})})},t.prototype.getUserId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.userId},t.prototype.setUserId=function(r){if(!this.config){this.q.push(this.setUserId.bind(this,r));return}this.config.loggerProvider.debug("function setUserId: ",r),(r!==this.config.userId||r===void 0)&&(this.config.userId=r,this.timeline.onIdentityChanged({userId:r}),mT(r,this.config.instanceName))},t.prototype.getDeviceId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.deviceId},t.prototype.setDeviceId=function(r){if(!this.config){this.q.push(this.setDeviceId.bind(this,r));return}this.config.loggerProvider.debug("function setDeviceId: ",r),r!==this.config.deviceId&&(this.config.deviceId=r,this.timeline.onIdentityChanged({deviceId:r}),yT(r,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(Qt()),this.setUserId(void 0),this.timeline.onReset()},t.prototype.getIdentity=function(){var r,n;return{deviceId:(r=this.config)===null||r===void 0?void 0:r.deviceId,userId:(n=this.config)===null||n===void 0?void 0:n.userId,userProperties:this.userProperties}},t.prototype.setIdentity=function(r){var n,i,o;if("userId"in r&&this.setUserId(r.userId),"deviceId"in r&&r.deviceId&&this.setDeviceId(r.deviceId),"userProperties"in r){this.userProperties=r.userProperties;var s=new Dn,a=(o=r.userProperties)!==null&&o!==void 0?o:{};try{for(var u=ce(Object.entries(a)),c=u.next();!c.done;c=u.next()){var l=oe(c.value,2),f=l[0],d=l[1];s.set(f,d)}}catch(h){n={error:h}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}this.identify(s)}},t.prototype.getOptOut=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.optOut},t.prototype.getSessionId=function(){var r;return(r=this.config)===null||r===void 0?void 0:r.sessionId},t.prototype.setSessionId=function(r){var n,i=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,r)),tt(Promise.resolve());if(this.config.optOut)return this.config.deferredSessionId=r??Oa,tt(Promise.resolve());if(r===void 0&&(r=Date.now()),r===this.config.sessionId)return tt(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",r);var o=this.getSessionId();o!==r&&this.timeline.onSessionIdChanged(r);var s=this.config.lastEventTime,a=(n=this.config.lastEventId)!==null&&n!==void 0?n:-1;this.config.sessionId=r,this.config.lastEventTime=void 0,this.config.pageCounter=0,Jf(this.config.defaultTracking)&&(o&&s&&i.push(this.track(rd,void 0,{device_id:this.previousSessionDeviceId,event_id:++a,session_id:o,time:s+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var u=this.trackCampaignEventIfNeeded(++a,i);return this.config.identify&&i.push(this.track(Tl(this.config.identify)).promise),Jf(this.config.defaultTracking)&&i.push(this.track(td,void 0,{event_id:u?++a:a,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,tt(Promise.all(i))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(r){if(!this.config){this.q.push(this.setTransport.bind(this,r));return}this.config.transportProvider=Tg(r)},t.prototype.identify=function(r,n){if(Sa(r)){var i=r._q;r._q=[],r=_a(new Dn,i)}return n?.user_id&&this.setUserId(n.user_id),n?.device_id&&this.setDeviceId(n.device_id),e.prototype.identify.call(this,r,n)},t.prototype.groupIdentify=function(r,n,i,o){if(Sa(i)){var s=i._q;i._q=[],i=_a(new Dn,s)}return e.prototype.groupIdentify.call(this,r,n,i,o)},t.prototype.revenue=function(r,n){if(Sa(r)){var i=r._q;r._q=[],r=_a(new Hp,i)}return e.prototype.revenue.call(this,r,n)},t.prototype.trackCampaignEventIfNeeded=function(r,n){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var i=this.webAttribution.generateCampaignEvent(r);return n?n.push(this.track(i).promise):this.track(i),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(r){return x(this,void 0,void 0,function(){var n,i,o;return O(this,function(s){return n=Date.now(),i=qp(this.config.sessionTimeout,this.config.lastEventTime),o=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),r.event_type!==td&&r.event_type!==rd&&(!r.session_id||r.session_id===this.getSessionId())&&(i||o?(this.setSessionId(n),o&&this.config.loggerProvider.log("Created a new session for new campaign.")):i||this.trackCampaignEventIfNeeded()),[2,e.prototype.process.call(this,r)]})})},t.prototype.logBrowserOptions=function(r){try{var n=D(D({},r),{apiKey:r.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",EA(n))}catch(i){this.config.loggerProvider.error("Error logging browser config",i)}},t.prototype._setDiagnosticsSampleRate=function(r){if(!(r>1||r<0)&&!this.config){this._diagnosticsSampleRate=r;return}},t.prototype._enableRequestBodyCompressionExperimental=function(r){if(!this.config){this._enableRequestBodyCompressionExperimentalValue=r;return}},t})(tT),Qg="[Amplitude]",pk="".concat(Qg," Session Replay ID"),gk=0,mk=Xn.US,yk={enabled:!0},Fl=1e3,bk="".concat(Qg," Session Replay Debug"),Ek="amp-block",Zg="amp-mask",_k="amp-unmask",em="https://api-sr.amplitude.com/sessions/v2/track",tm="https://api-sr.eu.amplitude.com/sessions/v2/track",rm="https://api-sr.stag2.amplitude.com/sessions/v2/track",Sk=1*1e6,wk=3e4,Tk=6e4,Ak=500,Ik=10*1e3,nm=1024,Ck=1e3,kr;(function(e){e.GET_SR_PROPS="get-sr-props",e.DEBUG_INFO="debug-info",e.FETCH_REQUEST="fetch-request",e.METADATA="metadata",e.TARGETING_DECISION="targeting-decision"})(kr||(kr={}));var xu=(function(){function e(t){this.logger=t,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(t){var r;if(!this.logger)return(function(){});var n=this.logger[t];if(typeof n=="function"){var i=(r=n.__rrweb_original__)!==null&&r!==void 0?r:n;return i.bind(this.logger)}return(function(){})},e.prototype.enable=function(t){this.logger.enable(t)},e.prototype.disable=function(){this.logger.disable()},e})(),Nu="medium";function kk(e){return e.toLowerCase()}function Rk(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?kk(t):null}var im=function(e,t,r){switch(t){case"light":{if(e!=="input")return!0;var n=r?Rk(r):"";return n?!!(["password","hidden","email","tel"].includes(n)||r.autocomplete.startsWith("cc-")):!1}case"medium":case"conservative":return!0;default:return im(e,Nu,r)}},om=function(e,t,r){var n,i,o;if(t===void 0&&(t={defaultMaskLevel:Nu}),r){if(r.closest("."+Zg))return!0;var s=((n=t.maskSelector)!==null&&n!==void 0?n:[]).some(function(u){return r.closest(u)});if(s)return!0;if(r.closest("."+_k))return!1;var a=((i=t.unmaskSelector)!==null&&i!==void 0?i:[]).some(function(u){return r.closest(u)});if(a)return!1}return im(e,(o=t.defaultMaskLevel)!==null&&o!==void 0?o:Nu,r)},Nd=function(e,t){return function(r,n){return om(e,t,n)?r.replace(/[^\s]/g,"*"):r}},Pk=function(e){return function(t,r,n){var i;return t==="style"||!((i=e?.maskAttributes)!==null&&i!==void 0?i:[]).includes(t)?r:om("text",e,n)?r.replace(/[^\s]/g,"*"):r}},Ok=function(){var e=le();return e?.location?e.location.href:""},xk=function(e,t){return"".concat(t,"/").concat(e)},Hl=function(e,t){return t||(e===Xn.STAGING?rm:e===Xn.EU?tm:em)},Nk=function(e){if(typeof e!="string"||e.trim()==="")return!1;var t=/^\/|^https?:\/\/[^\s]+$/;return!!t.test(e)},Lk=function(e){var t=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp("^".concat(t,"$"))},Mk=function(e){if(!e.every(function(t){return typeof t.selector=="string"&&typeof t.replacement=="string"}))throw new Error("ugcFilterRules must be an array of objects with selector and replacement properties");if(!e.every(function(t){return Nk(t.selector)}))throw new Error("ugcFilterRules must be an array of objects with valid globs")},Vs=function(e,t){var r,n;try{for(var i=ce(t),o=i.next();!o.done;o=i.next()){var s=o.value,a=Lk(s.selector);if(a.test(e))return e.replace(a,s.replacement)}}catch(u){r={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e},sm=function(){return x(void 0,void 0,void 0,function(){var e,t,r,n,i,o,s;return O(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),e=le(),e?[4,e.navigator.storage.estimate()]:[3,2];case 1:return t=a.sent(),r=t.usage,n=t.quota,i=t.usageDetails,o=r?Math.round(r/nm):0,s=r&&n?Math.round((r/n+Number.EPSILON)*1e3)/1e3:0,[2,{totalStorageSize:o,percentOfQuota:s,usageDetails:JSON.stringify(i)}];case 2:return[3,4];case 3:return a.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},am=function(e){var t=D({},e),r=t.apiKey;return t.apiKey="****".concat(r.substring(r.length-4)),t},um=function(){return{flushMaxRetries:2,logLevel:ot.Warn,loggerProvider:new Kn,transportProvider:new FT}},Dk=(function(e){Mt(t,e);function t(r,n){var i=this,o,s,a,u,c,l,f=um();if(i=e.call(this,D(D({transportProvider:f.transportProvider,loggerProvider:new xu(n.loggerProvider||f.loggerProvider)},n),{apiKey:r}))||this,i.flushMaxRetries=n.flushMaxRetries!==void 0&&n.flushMaxRetries<=f.flushMaxRetries?n.flushMaxRetries:f.flushMaxRetries,i.apiKey=r,i.sampleRate=n.sampleRate||gk,i.serverZone=n.serverZone||mk,i.configServerUrl=n.configServerUrl,i.trackServerUrl=n.trackServerUrl,i.shouldInlineStylesheet=n.shouldInlineStylesheet,i.version=n.version,i.performanceConfig=n.performanceConfig||yk,i.storeType=(o=n.storeType)!==null&&o!==void 0?o:"idb",i.applyBackgroundColorToBlockedElements=(s=n.applyBackgroundColorToBlockedElements)!==null&&s!==void 0?s:!1,i.enableUrlChangePolling=(a=n.enableUrlChangePolling)!==null&&a!==void 0?a:!1,i.urlChangePollingInterval=(u=n.urlChangePollingInterval)!==null&&u!==void 0?u:Fl,i.captureDocumentTitle=(c=n.captureDocumentTitle)!==null&&c!==void 0?c:!1,n.privacyConfig&&(i.privacyConfig=n.privacyConfig),n.interactionConfig&&(i.interactionConfig=n.interactionConfig,i.interactionConfig.ugcFilterRules&&Mk(i.interactionConfig.ugcFilterRules)),n.debugMode&&(i.debugMode=n.debugMode),n.useWebWorker!==void 0)i.useWebWorker=n.useWebWorker;else{var d=n;((l=d.experimental)===null||l===void 0?void 0:l.useWebWorker)!==void 0&&(i.useWebWorker=d.experimental.useWebWorker)}return n.omitElementTags&&(i.omitElementTags=n.omitElementTags),i}return t})(Bp),lm=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(lm||{}),cm=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(cm||{}),Uk=function(e,t){var r=document.createDocumentFragment(),n=function(i){if(i===void 0&&(i=[]),typeof i=="string"&&(i=[i]),i=i.filter(function(o){try{r.querySelector(o)}catch{return t.warn('[session-replay-browser] omitting selector "'.concat(o,'" because it is invalid')),!1}return!0}),i.length!==0)return i};return e.blockSelector=n(e.blockSelector),e.maskSelector=n(e.maskSelector),e.unmaskSelector=n(e.unmaskSelector),e},Fk=(function(){function e(t,r){this.localConfig=r,this.remoteConfigClient=t}return e.prototype.generateJoinedConfig=function(){var t,r,n,i,o;return x(this,void 0,void 0,function(){var s,a,u,c,l,f,d,h,v,p,b,E,m,g,y,_,S,A=this;return O(this,function(I){switch(I.label){case 0:s=D({},this.localConfig),s.optOut=this.localConfig.optOut,s.captureEnabled=!0,I.label=1;case 1:return I.trys.push([1,3,,4]),[4,new Promise(function(C,R){A.remoteConfigClient.subscribe("configs.sessionReplay","all",function(P,k){var N;if(A.localConfig.loggerProvider.debug("Session Replay remote configuration received from ".concat(k,":"),JSON.stringify(P,null,2)),!P){R(new Error("No remote config received"));return}var $=P,ee=$.sr_sampling_config,B=$.sr_privacy_config,z=$.sr_targeting_config,K=(N=s.interactionConfig)===null||N===void 0?void 0:N.ugcFilterRules;s.interactionConfig=$.sr_interaction_config,s.interactionConfig&&K&&(s.interactionConfig.ugcFilterRules=K),s.loggingConfig=$.sr_logging_config,(ee||B||z)&&(a={},ee&&(a.sr_sampling_config=ee),B&&(a.sr_privacy_config=B),z&&(a.sr_targeting_config=z)),C()})})];case 2:return I.sent(),[3,4];case 3:return u=I.sent(),this.localConfig.loggerProvider.error("Failed to generate joined config: ",u),s.captureEnabled=!1,[2,{localConfig:this.localConfig,joinedConfig:s,remoteConfig:void 0}];case 4:if(!a)return[2,{localConfig:this.localConfig,joinedConfig:s,remoteConfig:a}];if(c=a.sr_sampling_config,l=a.sr_privacy_config,f=a.sr_targeting_config,c&&Object.keys(c).length>0?(Object.prototype.hasOwnProperty.call(c,"capture_enabled")?s.captureEnabled=c.capture_enabled:s.captureEnabled=!1,Object.prototype.hasOwnProperty.call(c,"sample_rate")&&(s.sampleRate=c.sample_rate)):(s.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),l){d=(t=s.privacyConfig)!==null&&t!==void 0?t:{},h={defaultMaskLevel:(n=(r=l.defaultMaskLevel)!==null&&r!==void 0?r:d.defaultMaskLevel)!==null&&n!==void 0?n:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[],maskAttributes:Ee([],oe(new Set(Ee(Ee([],oe((i=d.maskAttributes)!==null&&i!==void 0?i:[]),!1),oe((o=l.maskAttributes)!==null&&o!==void 0?o:[]),!1))),!1)},v=function(C){var R,P,k,N,$,ee,B,z,K,Q={};typeof C.blockSelector=="string"&&(C.blockSelector=[C.blockSelector]);try{for(var ae=ce((B=C.blockSelector)!==null&&B!==void 0?B:[]),fe=ae.next();!fe.done;fe=ae.next()){var pe=fe.value;Q[pe]="block"}}catch(M){R={error:M}}finally{try{fe&&!fe.done&&(P=ae.return)&&P.call(ae)}finally{if(R)throw R.error}}try{for(var ye=ce((z=C.maskSelector)!==null&&z!==void 0?z:[]),be=ye.next();!be.done;be=ye.next()){var pe=be.value;Q[pe]="mask"}}catch(M){k={error:M}}finally{try{be&&!be.done&&(N=ye.return)&&N.call(ye)}finally{if(k)throw k.error}}try{for(var de=ce((K=C.unmaskSelector)!==null&&K!==void 0?K:[]),me=de.next();!me.done;me=de.next()){var pe=me.value;Q[pe]="unmask"}}catch(M){$={error:M}}finally{try{me&&!me.done&&(ee=de.return)&&ee.call(de)}finally{if($)throw $.error}}return Q},p=D(D({},v(d)),v(l));try{for(b=ce(Object.entries(p)),E=b.next();!E.done;E=b.next())m=oe(E.value,2),g=m[0],y=m[1],y==="mask"?h.maskSelector.push(g):y==="block"?h.blockSelector.push(g):y==="unmask"&&h.unmaskSelector.push(g)}catch(C){_={error:C}}finally{try{E&&!E.done&&(S=b.return)&&S.call(b)}finally{if(_)throw _.error}}s.privacyConfig=Uk(h,this.localConfig.loggerProvider)}return f&&Object.keys(f).length>0&&(s.targetingConfig=f),this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:am(s)},null,2)),[2,{localConfig:this.localConfig,joinedConfig:s,remoteConfig:a}]}})})},e})(),Hk=function(e,t){return x(void 0,void 0,void 0,function(){var r,n;return O(this,function(i){return r=new Dk(e,t),n=new Xp(e,r.loggerProvider,r.serverZone,t.configServerUrl),[2,new Fk(n,r)]})})},xt=Uint8Array,pt=Uint16Array,Xi=Uint32Array,Bl=new xt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),jl=new xt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ld=new xt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),fm=function(e,t){for(var r=new pt(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Xi(r[30]),n=1;n<30;++n)for(var o=r[n];o<r[n+1];++o)i[o]=o-r[n]<<5|n;return[r,i]},dm=fm(Bl,2),Bk=dm[0],Lu=dm[1];Bk[28]=258,Lu[258]=28;var jk=fm(jl,0),Md=jk[1],Mu=new pt(32768);for(var Ue=0;Ue<32768;++Ue){var Sr=(Ue&43690)>>>1|(Ue&21845)<<1;Sr=(Sr&52428)>>>2|(Sr&13107)<<2,Sr=(Sr&61680)>>>4|(Sr&3855)<<4,Mu[Ue]=((Sr&65280)>>>8|(Sr&255)<<8)>>>1}var Mi=(function(e,t,r){for(var n=e.length,i=0,o=new pt(t);i<n;++i)++o[e[i]-1];var s=new pt(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;var a;if(r){a=new pt(1<<t);var u=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],l=t-e[i],f=s[e[i]-1]++<<l,d=f|(1<<l)-1;f<=d;++f)a[Mu[f]>>>u]=c}else for(a=new pt(n),i=0;i<n;++i)a[i]=Mu[s[e[i]-1]++]>>>15-e[i];return a}),ln=new xt(288);for(var Ue=0;Ue<144;++Ue)ln[Ue]=8;for(var Ue=144;Ue<256;++Ue)ln[Ue]=9;for(var Ue=256;Ue<280;++Ue)ln[Ue]=7;for(var Ue=280;Ue<288;++Ue)ln[Ue]=8;var Es=new xt(32);for(var Ue=0;Ue<32;++Ue)Es[Ue]=5;var qk=Mi(ln,9,0),Vk=Mi(Es,5,0),hm=function(e){return(e/8>>0)+(e&7&&1)},vm=function(e,t,r){(r==null||r>e.length)&&(r=e.length);var n=new(e instanceof pt?pt:e instanceof Xi?Xi:xt)(r-t);return n.set(e.subarray(t,r)),n},or=function(e,t,r){r<<=t&7;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8},vi=function(e,t,r){r<<=t&7;var n=t/8>>0;e[n]|=r,e[n+1]|=r>>>8,e[n+2]|=r>>>16},xa=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,o=r.slice();if(!i)return[new xt(0),0];if(i==1){var s=new xt(r[0].s+1);return s[r[0].s]=1,[s,1]}r.sort(function(_,S){return _.f-S.f}),r.push({s:-1,f:25001});var a=r[0],u=r[1],c=0,l=1,f=2;for(r[0]={s:-1,f:a.f+u.f,l:a,r:u};l!=i-1;)a=r[r[c].f<r[f].f?c++:f++],u=r[c!=l&&r[c].f<r[f].f?c++:f++],r[l++]={s:-1,f:a.f+u.f,l:a,r:u};for(var d=o[0].s,n=1;n<i;++n)o[n].s>d&&(d=o[n].s);var h=new pt(d+1),v=Du(r[l-1],h,0);if(v>t){var n=0,p=0,b=v-t,E=1<<b;for(o.sort(function(S,A){return h[A.s]-h[S.s]||S.f-A.f});n<i;++n){var m=o[n].s;if(h[m]>t)p+=E-(1<<v-h[m]),h[m]=t;else break}for(p>>>=b;p>0;){var g=o[n].s;h[g]<t?p-=1<<t-h[g]++-1:++n}for(;n>=0&&p;--n){var y=o[n].s;h[y]==t&&(--h[y],++p)}v=t}return[new xt(h),v]},Du=function(e,t,r){return e.s==-1?Math.max(Du(e.l,t,r+1),Du(e.r,t,r+1)):t[e.s]=r},Dd=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new pt(++t),n=0,i=e[0],o=1,s=function(u){r[n++]=u},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[r.subarray(0,n),t]},pi=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},Uu=function(e,t,r){var n=r.length,i=hm(t+2);e[i]=n&255,e[i+1]=n>>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o<n;++o)e[i+o+4]=r[o];return(i+4+n)*8},Ud=function(e,t,r,n,i,o,s,a,u,c,l){or(t,l++,r),++i[256];for(var f=xa(i,15),d=f[0],h=f[1],v=xa(o,15),p=v[0],b=v[1],E=Dd(d),m=E[0],g=E[1],y=Dd(p),_=y[0],S=y[1],A=new pt(19),I=0;I<m.length;++I)A[m[I]&31]++;for(var I=0;I<_.length;++I)A[_[I]&31]++;for(var C=xa(A,7),R=C[0],P=C[1],k=19;k>4&&!R[Ld[k-1]];--k);var N=c+5<<3,$=pi(i,ln)+pi(o,Es)+s,ee=pi(i,d)+pi(o,p)+s+14+3*k+pi(A,R)+(2*A[16]+3*A[17]+7*A[18]);if(N<=$&&N<=ee)return Uu(t,l,e.subarray(u,u+c));var B,z,K,Q;if(or(t,l,1+(ee<$)),l+=2,ee<$){B=Mi(d,h,0),z=d,K=Mi(p,b,0),Q=p;var ae=Mi(R,P,0);or(t,l,g-257),or(t,l+5,S-1),or(t,l+10,k-4),l+=14;for(var I=0;I<k;++I)or(t,l+3*I,R[Ld[I]]);l+=3*k;for(var fe=[m,_],pe=0;pe<2;++pe)for(var ye=fe[pe],I=0;I<ye.length;++I){var be=ye[I]&31;or(t,l,ae[be]),l+=R[be],be>15&&(or(t,l,ye[I]>>>5&127),l+=ye[I]>>>12)}}else B=qk,z=ln,K=Vk,Q=Es;for(var I=0;I<a;++I)if(n[I]>255){var be=n[I]>>>18&31;vi(t,l,B[be+257]),l+=z[be+257],be>7&&(or(t,l,n[I]>>>23&31),l+=Bl[be]);var de=n[I]&31;vi(t,l,K[de]),l+=Q[de],de>3&&(vi(t,l,n[I]>>>5&8191),l+=jl[de])}else vi(t,l,B[n[I]]),l+=z[n[I]];return vi(t,l,B[256]),l+z[256]},$k=new Xi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Wk=function(e,t,r,n,i,o){var s=e.length,a=new xt(n+s+5*(1+Math.floor(s/7e3))+i),u=a.subarray(n,a.length-i),c=0;if(!t||s<8)for(var l=0;l<=s;l+=65535){var f=l+65535;f<s?c=Uu(u,c,e.subarray(l,f)):(u[l]=o,c=Uu(u,c,e.subarray(l,s)))}else{for(var d=$k[t-1],h=d>>>13,v=d&8191,p=(1<<r)-1,b=new pt(32768),E=new pt(p+1),m=Math.ceil(r/3),g=2*m,y=function(T){return(e[T]^e[T+1]<<m^e[T+2]<<g)&p},_=new Xi(25e3),S=new pt(288),A=new pt(32),I=0,C=0,l=0,R=0,P=0,k=0;l<s;++l){var N=y(l),$=l&32767,ee=E[N];if(b[$]=ee,E[N]=$,P<=l){var B=s-l;if((I>7e3||R>24576)&&B>423){c=Ud(e,u,0,_,S,A,C,R,k,l-k,c),R=I=C=0,k=l;for(var z=0;z<286;++z)S[z]=0;for(var z=0;z<30;++z)A[z]=0}var K=2,Q=0,ae=v,fe=$-ee&32767;if(B>2&&N==y(l-fe))for(var pe=Math.min(h,B)-1,ye=Math.min(32767,l),be=Math.min(258,B);fe<=ye&&--ae&&$!=ee;){if(e[l+K]==e[l+K-fe]){for(var de=0;de<be&&e[l+de]==e[l+de-fe];++de);if(de>K){if(K=de,Q=fe,de>pe)break;for(var me=Math.min(fe,de-2),M=0,z=0;z<me;++z){var Z=l-fe+z+32768&32767,X=b[Z],re=Z-X+32768&32767;re>M&&(M=re,ee=Z)}}}$=ee,ee=b[$],fe+=$-ee+32768&32767}if(Q){_[R++]=268435456|Lu[K]<<18|Md[Q];var F=Lu[K]&31,ge=Md[Q]&31;C+=Bl[F]+jl[ge],++S[257+F],++A[ge],P=l+K,++I}else _[R++]=e[l],++S[e[l]]}}c=Ud(e,u,o,_,S,A,C,R,k,l-k,c)}return vm(a,0,n+hm(c)+i)},Gk=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,o=r.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)n+=r[s],i+=n;n%=65521,i%=65521}e=n,t=i},d:function(){return(e>>>8<<16|(t&255)<<8|t>>>8)+((e&255)<<23)*2}}},Kk=function(e,t,r,n,i){return Wk(e,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):12+t.mem,r,n,!0)},zk=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},Xk=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;e[0]=120,e[1]=n<<6|(n?32-2*n:1)};function Yk(e,t){t===void 0&&(t={});var r=Gk();r.p(e);var n=Kk(e,t,2,4);return Xk(n,t),zk(n,n.length-4,r.d()),n}function Jk(e,t){var r=e.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var n=new xt(e.length+(e.length>>>1)),i=0,o=function(c){n[i++]=c},s=0;s<r;++s){if(i+5>n.length){var a=new xt(i+8+(r-s<<1));a.set(n),n=a}var u=e.charCodeAt(s);u<128||t?o(u):u<2048?(o(192|u>>>6),o(128|u&63)):u>55295&&u<57344?(u=65536+(u&1047552)|e.charCodeAt(++s)&1023,o(240|u>>>18),o(128|u>>>12&63),o(128|u>>>6&63),o(128|u&63)):(o(224|u>>>12),o(128|u>>>6&63),o(128|u&63))}return vm(n,0,i)}function Qk(e,t){for(var r="",n=0;n<e.length;){var i=e[n++];r+=String.fromCharCode(i)}return r}const Zk="v1",eR=e=>{const t={...e,v:Zk};return Qk(Yk(Jk(JSON.stringify(t))))};var tR=2e3,rR=(function(){function e(t,r,n,i){var o=this,s;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(f){var d=eR(f);return JSON.stringify(d)},this.addCompressedEventToManager=function(f,d){o.eventsManager&&o.deviceId&&o.eventsManager.addEvent({event:{type:"replay",data:f},sessionId:d,deviceId:o.deviceId})},this.addCompressedEvent=function(f,d){if(o.worker)try{o.worker.postMessage({event:f,sessionId:d})}catch(v){v.name==="DataCloneError"?o.worker.postMessage(JSON.stringify({event:f,sessionId:d})):o.config.loggerProvider.warn("Unexpected error while posting message to worker:",v)}else{var h=o.compressEvent(f);o.addCompressedEventToManager(h,d)}},this.terminate=function(){var f;(f=o.worker)===null||f===void 0||f.terminate()};var a=le();if(this.canUseIdleCallback=a&&"requestIdleCallback"in a,this.eventsManager=t,this.config=r,this.deviceId=n,this.timeout=((s=r.performanceConfig)===null||s===void 0?void 0:s.timeout)||tR,i){r.loggerProvider.log("Enabling web worker for compression");try{var u=new Blob([i],{type:"application/javascript"}),c=URL.createObjectURL(u),l=new Worker(c);l.onerror=function(f){f.preventDefault(),r.loggerProvider.error("Worker failed, falling back to non-worker compression:",f),l.terminate(),o.worker=void 0},l.onmessage=function(f){var d=f.data,h=d.compressedEvent,v=d.sessionId;o.addCompressedEventToManager(h,v)},this.worker=l}catch(f){r.loggerProvider.error("Failed to create worker, falling back to non-worker compression:",f)}}}return e.prototype.scheduleIdleProcessing=function(){var t=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(r){t.processQueue(r)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(t,r){var n;this.canUseIdleCallback&&(!((n=this.config.performanceConfig)===null||n===void 0)&&n.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:t,sessionId:r}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(t,r))},e.prototype.processQueue=function(t){for(var r=this;this.taskQueue.length>0&&(t.timeRemaining()>0||t.didTimeout);){var n=this.taskQueue.shift();if(n){var i=n.event,o=n.sessionId;this.addCompressedEvent(i,o)}}this.taskQueue.length>0?requestIdleCallback(function(s){r.processQueue(s)},{timeout:this.timeout}):this.isProcessing=!1},e})(),nR="Unexpected error occurred",iR="Network error occurred, event batch rejected",Fd="Session replay event batch rejected due to exceeded retry count",yn="Failed to store session replay events in IndexedDB",oR="Session replay event batch not sent due to missing device ID",sR="Session replay event batch not sent due to missing api key",Fu="1.35.1",aR=(function(){function e(t){var r=t.trackServerUrl,n=t.loggerProvider,i=t.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=n,this.payloadBatcher=i||function(o){return o},this.trackServerUrl=r}return e.prototype.sendEventsList=function(t){this.addToQueue(D(D({},t),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=r.filter(function(o){return o.attempts<(o.flushMaxRetries||0)?(o.attempts+=1,!0):(t.completeRequest({context:o,err:Fd}),!1)});i.forEach(function(o){t.queue=t.queue.concat(o),t.schedule(0)})},e.prototype.schedule=function(t){var r=this;this.scheduled||(this.scheduled=setTimeout(function(){r.flush(!0).then(function(){r.queue.length>0&&r.schedule(t)})},t))},e.prototype.flush=function(t){return t===void 0&&(t=!1),x(this,void 0,void 0,function(){var r,n,i,o,s,a,u;return O(this,function(c){switch(c.label){case 0:r=this.queue,this.queue=[],this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),c.label=1;case 1:c.trys.push([1,6,7,8]),n=ce(r),i=n.next(),c.label=2;case 2:return i.done?[3,5]:(o=i.value,[4,this.send(o,t)]);case 3:c.sent(),c.label=4;case 4:return i=n.next(),[3,2];case 5:return[3,8];case 6:return s=c.sent(),a={error:s},[3,8];case 7:try{i&&!i.done&&(u=n.return)&&u.call(n)}finally{if(a)throw a.error}return[7];case 8:return[2]}})})},e.prototype.send=function(t,r){var n,i;return r===void 0&&(r=!0),x(this,void 0,void 0,function(){var o,s,a,u,c,l,f,d,h,v,p,b,E;return O(this,function(m){switch(m.label){case 0:if(o=t.apiKey,!o)return[2,this.completeRequest({context:t,err:sR})];if(s=t.deviceId,!s)return[2,this.completeRequest({context:t,err:oR})];if(a=Ok(),u=Fu,c=t.sampleRate,l=new URLSearchParams({device_id:s,session_id:"".concat(t.sessionId),type:"".concat(t.type)}),f="".concat(((n=t.version)===null||n===void 0?void 0:n.type)||"standalone","/").concat(((i=t.version)===null||i===void 0?void 0:i.version)||u),d=this.payloadBatcher({version:1,events:t.events}),d.events.length===0)return this.completeRequest({context:t}),[2];m.label=1;case 1:return m.trys.push([1,6,,7]),h={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(o),"X-Client-Version":u,"X-Client-Library":f,"X-Client-Url":a.substring(0,Ck),"X-Client-Sample-Rate":"".concat(c),"X-Sampling-Hash-Alg":"xxhash32"},body:JSON.stringify(d),method:"POST"},v="".concat(Hl(t.serverZone,this.trackServerUrl),"?").concat(l.toString()),[4,fetch(v,h)];case 2:if(p=m.sent(),p===null)return this.completeRequest({context:t,err:nR}),[2];if(r)return[3,3];b="";try{b=JSON.stringify(p.body,null,2)}catch{}return this.completeRequest({context:t,success:"".concat(p.status,": ").concat(b)}),[3,5];case 3:return[4,this.handleReponse(p.status,t)];case 4:m.sent(),m.label=5;case 5:return[3,7];case 6:return E=m.sent(),this.completeRequest({context:t,err:E}),[3,7];case 7:return[2]}})})},e.prototype.handleReponse=function(t,r){return x(this,void 0,void 0,function(){var n,i;return O(this,function(o){switch(o.label){case 0:switch(n=new ro().buildStatus(t),i=n,i){case je.Success:return[3,1];case je.Failed:return[3,2]}return[3,4];case 1:return this.handleSuccessResponse(r),[3,5];case 2:return[4,this.handleOtherResponse(r)];case 3:return o.sent(),[3,5];case 4:this.completeRequest({context:r,err:iR}),o.label=5;case 5:return[2]}})})},e.prototype.handleSuccessResponse=function(t){var r=Math.round(new Blob(t.events).size/nm);this.completeRequest({context:t,success:"Session replay event batch tracked successfully for session id ".concat(t.sessionId,", size of events: ").concat(r," KB")})},e.prototype.handleOtherResponse=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return r=t.attempts*this.retryTimeout,t.attempts++,t.attempts>(t.flushMaxRetries||0)?(this.completeRequest({context:t,err:Fd}),[2]):[4,new Promise(function(i){return setTimeout(i,r)})];case 1:return n.sent(),[4,this.send(t,!0)];case 2:return n.sent(),[2]}})})},e.prototype.completeRequest=function(t){var r=t.context,n=t.err,i=t.success;r.onComplete(),n?this.loggerProvider.warn(n):i&&this.loggerProvider.log(i)},e})();const Hu=(e,t)=>t.some(r=>e instanceof r);let Hd,Bd;function uR(){return Hd||(Hd=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function lR(){return Bd||(Bd=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Bu=new WeakMap,Na=new WeakMap,$s=new WeakMap;function cR(e){const t=new Promise((r,n)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{r(an(e.result)),i()},s=()=>{n(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return $s.set(t,e),t}function fR(e){if(Bu.has(e))return;const t=new Promise((r,n)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{r(),i()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});Bu.set(e,t)}let ju={get(e,t,r){if(e instanceof IDBTransaction){if(t==="done")return Bu.get(e);if(t==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return an(e[t])},set(e,t,r){return e[t]=r,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function pm(e){ju=e(ju)}function dR(e){return lR().includes(e)?function(...t){return e.apply(qu(this),t),an(this.request)}:function(...t){return an(e.apply(qu(this),t))}}function hR(e){return typeof e=="function"?dR(e):(e instanceof IDBTransaction&&fR(e),Hu(e,uR())?new Proxy(e,ju):e)}function an(e){if(e instanceof IDBRequest)return cR(e);if(Na.has(e))return Na.get(e);const t=hR(e);return t!==e&&(Na.set(e,t),$s.set(t,e)),t}const qu=e=>$s.get(e);function gm(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=an(s);return n&&s.addEventListener("upgradeneeded",u=>{n(an(s.result),u.oldVersion,u.newVersion,an(s.transaction),u)}),r&&s.addEventListener("blocked",u=>r(u.oldVersion,u.newVersion,u)),a.then(u=>{o&&u.addEventListener("close",()=>o()),i&&u.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const vR=["get","getKey","getAll","getAllKeys","count"],pR=["put","add","delete","clear"],La=new Map;function jd(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(La.get(t))return La.get(t);const r=t.replace(/FromIndex$/,""),n=t!==r,i=pR.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||vR.includes(r)))return;const o=async function(s,...a){const u=this.transaction(s,i?"readwrite":"readonly");let c=u.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),i&&u.done]))[0]};return La.set(t,o),o}pm(e=>({...e,get:(t,r,n)=>jd(t,r)||e.get(t,r,n),has:(t,r)=>!!jd(t,r)||e.has(t,r)}));const gR=["continue","continuePrimaryKey","advance"],qd={},Vu=new WeakMap,mm=new WeakMap,mR={get(e,t){if(!gR.includes(t))return e[t];let r=qd[t];return r||(r=qd[t]=function(...n){Vu.set(this,mm.get(this)[t](...n))}),r}};async function*yR(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const r=new Proxy(t,mR);for(mm.set(r,t),$s.set(r,qu(t));t;)yield r,t=await(Vu.get(r)||t.continue()),Vu.delete(r)}function Vd(e,t){return t===Symbol.asyncIterator&&Hu(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&Hu(e,[IDBIndex,IDBObjectStore])}pm(e=>({...e,get(t,r,n){return Vd(t,r)?yR:e.get(t,r,n)},has(t,r){return Vd(t,r)||e.has(t,r)}}));var ym=(function(){function e(t){var r=this,n,i,o;this.minInterval=Ak,this.maxInterval=Ik,this.maxPersistedEventsSize=Sk,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(s,a){var u=r.getStringSize(a),c=r.getEventsArraySize(s);return c+u>=r.maxPersistedEventsSize?!0:Date.now()-r.timeAtLastSplit>r.interval&&s.length?(r.interval=Math.min(r.maxInterval,r.interval+r.minInterval),r._timeAtLastSplit=Date.now(),!0):!1},this.loggerProvider=t.loggerProvider,this.minInterval=(n=t.minInterval)!==null&&n!==void 0?n:this.minInterval,this.maxInterval=(i=t.maxInterval)!==null&&i!==void 0?i:this.maxInterval,this.maxPersistedEventsSize=(o=t.maxPersistedEventsSize)!==null&&o!==void 0?o:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e.prototype.getStringSize=function(t){return t.length},e.prototype.getEventsArraySize=function(t){var r,n,i=0;try{for(var o=ce(t),s=o.next();!s.done;s=o.next()){var a=s.value;i+=this.getStringSize(a)}}catch(c){r={error:c}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}var u=2+Math.max(0,t.length-1)+t.length*2;return i+u},e})(),bR=function(e){return typeof e=="object"&&e!==null&&e.name==="AbortError"},ur=function(e,t,r){bR(r)?e.debug(t):e.warn(t)},Di="sessionCurrentSequence",Ui="sequencesToSend",ER=function(e){var t,r;return e.objectStoreNames.contains(Di)||(r=e.createObjectStore(Di,{keyPath:"sessionId"})),e.objectStoreNames.contains(Ui)||(t=e.createObjectStore(Ui,{keyPath:"sequenceId",autoIncrement:!0}),t.createIndex("sessionId","sessionId")),{sequencesStore:t,currentSequenceStore:r}},_R=function(e){return x(void 0,void 0,void 0,function(){return O(this,function(t){switch(t.label){case 0:return[4,gm(e,1,{upgrade:ER})];case 1:return[2,t.sent()]}})})},SR=(function(e){Mt(t,e);function t(r){var n=e.call(this,r)||this;return n.getSequencesToSend=function(){return x(n,void 0,void 0,function(){var i,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:return l.trys.push([0,5,,6]),i=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:o=l.sent(),l.label=2;case 2:return o?(s=o.value,a=s.sessionId,u=s.events,i.push({events:u,sequenceId:o.key,sessionId:a}),[4,o.continue()]):[3,4];case 3:return o=l.sent(),[3,2];case 4:return[2,i];case 5:return c=l.sent(),ur(this.loggerProvider,"".concat(yn,": ").concat(c),c),[3,6];case 6:return[2,void 0]}})})},n.storeCurrentSequence=function(i){return x(n,void 0,void 0,function(){var o,s,a;return O(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),[4,this.db.get(Di,i)];case 1:return o=u.sent(),o?[4,this.db.put(Ui,{sessionId:i,events:o.events})]:[2,void 0];case 2:return s=u.sent(),[4,this.db.put(Di,{sessionId:i,events:[]})];case 3:return u.sent(),[2,D(D({},o),{sessionId:i,sequenceId:s})];case 4:return a=u.sent(),ur(this.loggerProvider,"".concat(yn,": ").concat(a),a),[3,5];case 5:return[2,void 0]}})})},n.addEventToCurrentSequence=function(i,o){return x(n,void 0,void 0,function(){var s,a,u,c,l,f;return O(this,function(d){switch(d.label){case 0:return d.trys.push([0,10,,11]),s=this.db.transaction(Di,"readwrite"),[4,s.store.get(i)];case 1:return a=d.sent(),a?[3,3]:[4,s.store.put({sessionId:i,events:[o]})];case 2:return d.sent(),[2];case 3:return u=void 0,this.shouldSplitEventsList(a.events,o)?(u=a.events,[4,s.store.put({sessionId:i,events:[o]})]):[3,5];case 4:return d.sent(),[3,7];case 5:return c=a.events.concat(o),[4,s.store.put({sessionId:i,events:c})];case 6:d.sent(),d.label=7;case 7:return[4,s.done];case 8:return d.sent(),u?[4,this.storeSendingEvents(i,u)]:[2,void 0];case 9:return l=d.sent(),l?[2,{events:u,sessionId:i,sequenceId:l}]:[2,void 0];case 10:return f=d.sent(),ur(this.loggerProvider,"".concat(yn,": ").concat(f),f),[3,11];case 11:return[2,void 0]}})})},n.storeSendingEvents=function(i,o){return x(n,void 0,void 0,function(){var s,a;return O(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,this.db.put(Ui,{sessionId:i,events:o})];case 1:return s=u.sent(),[2,s];case 2:return a=u.sent(),ur(this.loggerProvider,"".concat(yn,": ").concat(a),a),[3,3];case 3:return[2,void 0]}})})},n.cleanUpSessionEventsStore=function(i,o){return x(n,void 0,void 0,function(){var s;return O(this,function(a){switch(a.label){case 0:if(!o)return[2];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.db.delete(Ui,o)];case 2:return a.sent(),[3,4];case 3:return s=a.sent(),ur(this.loggerProvider,"".concat(yn,": ").concat(s),s),[3,4];case 4:return[2]}})})},n.db=r.db,n}return t.new=function(r,n){return x(this,void 0,void 0,function(){var i,o,s,a;return O(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),i=r==="replay"?"":"_".concat(r),o="".concat(n.apiKey.substring(0,10),"_amp_session_replay_events").concat(i),[4,_R(o)];case 1:return s=u.sent(),[2,new t(D(D({},n),{db:s}))];case 2:return a=u.sent(),ur(n.loggerProvider,"".concat(yn,": ").concat(a),a),[3,3];case 3:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(r){return x(this,void 0,void 0,function(){var s,n,i,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:return r?[4,this.db.get("sessionCurrentSequence",r)]:[3,2];case 1:return s=l.sent(),s?[2,[s]]:[2,void 0];case 2:n=[],l.label=3;case 3:return l.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=ce.apply(void 0,[l.sent()]),o=i.next(),l.label=5;case 5:if(o.done)return[3,7];s=o.value,n.push(s),l.label=6;case 6:return o=i.next(),[3,5];case 7:return[3,10];case 8:return a=l.sent(),u={error:a},[3,10];case 9:try{o&&!o.done&&(c=i.return)&&c.call(i)}finally{if(u)throw u.error}return[7];case 10:return[2,n]}})})},t})(ym),wR=(function(e){Mt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.finalizedSequences={},r.sequences={},r.sequenceId=0,r}return t.prototype.resetCurrentSequence=function(r){this.sequences[r]=[]},t.prototype.addSequence=function(r){var n=this.sequenceId++,i=Ee([],oe(this.sequences[r]),!1);return this.finalizedSequences[n]={sessionId:r,events:i},this.resetCurrentSequence(r),{sequenceId:n,events:i,sessionId:r}},t.prototype.getSequencesToSend=function(){return x(this,void 0,void 0,function(){return O(this,function(r){return[2,Object.entries(this.finalizedSequences).map(function(n){var i=oe(n,2),o=i[0],s=i[1],a=s.sessionId,u=s.events;return{sequenceId:Number(o),sessionId:a,events:u}})]})})},t.prototype.storeCurrentSequence=function(r){return x(this,void 0,void 0,function(){return O(this,function(n){return this.sequences[r]?[2,this.addSequence(r)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(r,n){return x(this,void 0,void 0,function(){var i;return O(this,function(o){return this.sequences[r]||this.resetCurrentSequence(r),this.shouldSplitEventsList(this.sequences[r],n)&&(i=this.addSequence(r)),this.sequences[r].push(n),[2,i]})})},t.prototype.storeSendingEvents=function(r,n){return x(this,void 0,void 0,function(){return O(this,function(i){return this.finalizedSequences[this.sequenceId]={sessionId:r,events:n},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(r,n){return x(this,void 0,void 0,function(){return O(this,function(i){return n!==void 0&&delete this.finalizedSequences[n],[2]})})},t})(ym),$d=function(e){var t=e.config,r=e.minInterval,n=e.maxInterval,i=e.type,o=e.payloadBatcher,s=e.storeType;return x(void 0,void 0,void 0,function(){function a(E){return E===void 0&&(E=!1),x(this,void 0,void 0,function(){return O(this,function(m){return[2,u.flush(E)]})})}var u,c,l,f,d,h,v,p,b;return O(this,function(E){switch(E.label){case 0:return u=new aR(D(D({},t),{loggerProvider:t.loggerProvider,payloadBatcher:o})),c=function(){return new wR({loggerProvider:t.loggerProvider,maxInterval:n,minInterval:r})},l=function(){return x(void 0,void 0,void 0,function(){var m;return O(this,function(g){switch(g.label){case 0:return[4,SR.new(i,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:n,apiKey:t.apiKey})];case 1:return m=g.sent(),m?[2,m]:(t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,c()])}})})},s!=="idb"?[3,2]:[4,l()];case 1:return d=E.sent(),[3,3];case 2:d=c(),E.label=3;case 3:return f=d,h=function(m){var g=m.events,y=m.sessionId,_=m.deviceId,S=m.sequenceId;t.debugMode&&sm().then(function(A){var I=A.totalStorageSize,C=A.percentOfQuota,R=A.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(I," KB, percentage of quota: ").concat(C,"%, usage details: ").concat(R))}).catch(function(){}),u.sendEventsList({events:g,sessionId:y,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:_,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:i,onComplete:function(){return x(void 0,void 0,void 0,function(){return O(this,function(A){switch(A.label){case 0:return[4,f.cleanUpSessionEventsStore(y,S)];case 1:return A.sent(),[2]}})})}})},v=function(m){var g=m.sessionId,y=m.deviceId;f.storeCurrentSequence(g).then(function(_){_&&h({sequenceId:_.sequenceId,events:_.events,sessionId:_.sessionId,deviceId:y})}).catch(function(_){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",_)})},p=function(m){var g=m.deviceId;return x(void 0,void 0,void 0,function(){var y;return O(this,function(_){switch(_.label){case 0:return[4,f.getSequencesToSend()];case 1:return y=_.sent(),y&&y.forEach(function(S){h({sequenceId:S.sequenceId,events:S.events,sessionId:S.sessionId,deviceId:g})}),[2]}})})},b=function(m){var g=m.event,y=m.sessionId,_=m.deviceId;f.addEventToCurrentSequence(y,g.data).then(function(S){return S&&h({sequenceId:S.sequenceId,events:S.events,sessionId:S.sessionId,deviceId:_})}).catch(function(S){t.loggerProvider.warn("Failed to add event to session replay capture:",S)})},[2,{sendCurrentSequenceEvents:v,addEvent:b,sendStoredEvents:p,flush:a}]}})})},Wd=(function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=new Map;t.forEach(function(i){n.set(i.name,i.manager)}),this.managers=n}return e.prototype.sendStoredEvents=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return r=[],this.managers.forEach(function(i){r.push(i.sendStoredEvents(t))}),[4,Promise.all(r)];case 1:return n.sent(),[2]}})})},e.prototype.addEvent=function(t){var r,n=t.sessionId,i=t.event,o=t.deviceId;(r=this.managers.get(i.type))===null||r===void 0||r.addEvent({sessionId:n,event:i,deviceId:o})},e.prototype.sendCurrentSequenceEvents=function(t){var r=t.sessionId,n=t.deviceId;this.managers.forEach(function(i){i.sendCurrentSequenceEvents({sessionId:r,deviceId:n})})},e.prototype.flush=function(t){return x(this,void 0,void 0,function(){var r;return O(this,function(n){switch(n.label){case 0:return r=[],this.managers.forEach(function(i){r.push(i.flush(t))}),[4,Promise.all(r)];case 1:return n.sent(),[2]}})})},e})(),Nt,ql,bm;function TR(e,t){if(bm=new Date,e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(e.tagName.toLowerCase()==="html")return"html";var r={root:document.body,idName:function(o){return!0},className:function(o){return!0},tagName:function(o){return!0},attr:function(o,s){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};Nt=D(D({},r),t),ql=AR(Nt.root,r);var n=Co(e,"all",function(){return Co(e,"two",function(){return Co(e,"one",function(){return Co(e,"none")})})});if(n){var i=Sm(wm(n,e));return i.length>0&&(n=i[0]),Ws(n)}else throw new Error("Selector was not found.")}function AR(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}function Co(e,t,r){for(var n=null,i=[],o=e,s=0,a=function(){var c,l,f=new Date().getTime()-bm.getTime();if(Nt.timeoutMs!==void 0&&f>Nt.timeoutMs)throw new Error("Timeout: Can't find a unique selector after ".concat(f,"ms"));var d=Ro(IR(o))||Ro.apply(void 0,Ee([],oe(CR(o)),!1))||Ro.apply(void 0,Ee([],oe(kR(o)),!1))||Ro(RR(o))||[zd()],h=PR(o);if(t=="all")h&&(d=d.concat(d.filter(Ma).map(function(m){return ko(m,h)})));else if(t=="two")d=d.slice(0,1),h&&(d=d.concat(d.filter(Ma).map(function(m){return ko(m,h)})));else if(t=="one"){var v=oe(d=d.slice(0,1),1),p=v[0];h&&Ma(p)&&(d=[ko(p,h)])}else t=="none"&&(d=[zd()],h&&(d=[ko(d[0],h)]));try{for(var b=(c=void 0,ce(d)),E=b.next();!E.done;E=b.next()){var p=E.value;p.level=s}}catch(m){c={error:m}}finally{try{E&&!E.done&&(l=b.return)&&l.call(b)}finally{if(c)throw c.error}}if(i.push(d),i.length>=Nt.seedMinLength&&(n=Gd(i,r),n))return"break";o=o.parentElement,s++};o;){var u=a();if(u==="break")break}return n||(n=Gd(i,r)),!n&&r?r():n}function Gd(e,t){var r,n,i=Sm(_m(e));if(i.length>Nt.threshold)return t?t():null;try{for(var o=ce(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(Em(a))return a}}catch(u){r={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return null}function Ws(e){for(var t=e[0],r=t.name,n=1;n<e.length;n++){var i=e[n].level||0;t.level===i-1?r="".concat(e[n].name," > ").concat(r):r="".concat(e[n].name," ").concat(r),t=e[n]}return r}function Kd(e){return e.map(function(t){return t.penalty}).reduce(function(t,r){return t+r},0)}function Em(e){var t=Ws(e);switch(ql.querySelectorAll(t).length){case 0:throw new Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function IR(e){var t=e.getAttribute("id");return t&&Nt.idName(t)?{name:"#"+CSS.escape(t),penalty:0}:null}function CR(e){var t=Array.from(e.attributes).filter(function(r){return Nt.attr(r.name,r.value)});return t.map(function(r){return{name:"[".concat(CSS.escape(r.name),'="').concat(CSS.escape(r.value),'"]'),penalty:.5}})}function kR(e){var t=Array.from(e.classList).filter(Nt.className);return t.map(function(r){return{name:"."+CSS.escape(r),penalty:1}})}function RR(e){var t=e.tagName.toLowerCase();return Nt.tagName(t)?{name:t,penalty:2}:null}function zd(){return{name:"*",penalty:3}}function PR(e){var t=e.parentNode;if(!t)return null;var r=t.firstChild;if(!r)return null;for(var n=0;r&&(r.nodeType===Node.ELEMENT_NODE&&n++,r!==e);)r=r.nextSibling;return n}function ko(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Ma(e){return e.name!=="html"&&!e.name.startsWith("#")}function Ro(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.filter(OR);return r.length>0?r:null}function OR(e){return e!=null}function _m(e,t){var r,n,i,o,s,a;return t===void 0&&(t=[]),O(this,function(u){switch(u.label){case 0:if(!(e.length>0))return[3,9];u.label=1;case 1:u.trys.push([1,6,7,8]),r=ce(e[0]),n=r.next(),u.label=2;case 2:return n.done?[3,5]:(i=n.value,[5,ce(_m(e.slice(1,e.length),t.concat(i)))]);case 3:u.sent(),u.label=4;case 4:return n=r.next(),[3,2];case 5:return[3,8];case 6:return o=u.sent(),s={error:o},[3,8];case 7:try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}return[7];case 8:return[3,11];case 9:return[4,t];case 10:u.sent(),u.label=11;case 11:return[2]}})}function Sm(e){return Ee([],oe(e),!1).sort(function(t,r){return Kd(t)-Kd(r)})}function wm(e,t,r){var n,i,o;return r===void 0&&(r={counter:0,visited:new Map}),O(this,function(s){switch(s.label){case 0:if(!(e.length>2&&e.length>Nt.optimizedMinLength))return[3,5];n=1,s.label=1;case 1:return n<e.length-1?r.counter>Nt.maxNumberOfTries?[2]:(r.counter+=1,i=Ee([],oe(e),!1),i.splice(n,1),o=Ws(i),r.visited.has(o)?[2]:Em(i)&&xR(i,t)?[4,i]:[3,4]):[3,5];case 2:return s.sent(),r.visited.set(o,!0),[5,ce(wm(i,t,r))];case 3:s.sent(),s.label=4;case 4:return n++,[3,1];case 5:return[2]}})}function xR(e,t){return ql.querySelector(Ws(e))===t}var NR=36e5,LR=function(e){var t=e.version,r=e.events,n=[];return r.forEach(function(i){var o=JSON.parse(i);o.count=1,o.type==="click"&&n.push(o)}),{version:t,events:n}},MR=function(e){var t=e.version,r=e.events,n=[];r.forEach(function(o){var s=JSON.parse(o);s.type==="click"&&n.push(s)});var i=n.reduce(function(o,s){var a=s.x,u=s.y,c=s.selector,l=s.timestamp,f=l-l%NR,d="".concat(a,":").concat(u,":").concat(c??"",":").concat(f);return o[d]?o[d].count+=1:o[d]=D(D({},s),{timestamp:f,count:1}),o},{});return{version:t,events:Object.values(i)}},DR=(function(){function e(t,r){var n=this;this.createHook=function(i){var o=i.eventsManager,s=i.sessionId,a=i.deviceIdFn,u=i.mirror,c=i.ugcFilterRules,l=i.performanceOptions;return function(f){if(f.type===cm.Click){var d=le();if(d){var h=d.location,v=d.innerHeight,p=d.innerWidth;if(h){var b=f.x,E=f.y;if(!(b===void 0||E===void 0)){var m=u.getNode(f.id),g;if(m)try{g=TR(m,l)}catch{n.logger.debug("error resolving selector from finder")}var y=Vs(h.href,c),_={x:b+n.scrollWatcher.currentScrollX,y:E+n.scrollWatcher.currentScrollY,selector:g,viewportHeight:v,viewportWidth:p,pageUrl:y,timestamp:Date.now(),type:"click"},S=a();S&&o.addEvent({sessionId:s,event:{type:"interaction",data:JSON.stringify(_)},deviceId:S})}}}}}},this.logger=t,this.scrollWatcher=r}return e})();function Da(){var e=le();return e?.innerHeight||document.documentElement&&document.documentElement.clientHeight||0}function Ua(){var e=le();return e?.innerWidth||document.documentElement&&document.documentElement.clientWidth||0}var UR=(function(){function e(t,r){var n=le();n&&n.navigator&&typeof n.navigator.sendBeacon=="function"?this.sendBeacon=function(i,o){try{if(n.navigator.sendBeacon(i,JSON.stringify(o)))return!0}catch{}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(i,o){var s=new XMLHttpRequest;return s.open("POST",i,!0),s.setRequestHeader("Accept","*/*"),s.send(JSON.stringify(o)),!0},this.basePageUrl=Hl(r.serverZone,r.trackServerUrl),this.apiKey=r.apiKey,this.context=t}return e.prototype.send=function(t,r){var n=this.context,i=n.sessionId,o=n.type,s=new URLSearchParams({device_id:t,session_id:String(i),type:String(o),api_key:this.apiKey}),a="".concat(this.basePageUrl,"?").concat(s.toString());this.sendBeacon(a,r)||this.sendXhr(a,r)},e})(),FR=(function(){function e(t,r){var n=this;this.timestamp=Date.now(),this.hook=function(i){n.update(i)},this.send=function(i){return function(o){var s,a,u,c,l=i(),f=le();if(f&&l){var d=(s=f.scrollX)!==null&&s!==void 0?s:0,h=(a=f.scrollY)!==null&&a!==void 0?a:0;(d>0||h>0)&&n.update({id:1,x:d,y:h}),n.transport.send(l,{version:1,events:[{maxScrollX:n._maxScrollX,maxScrollY:n._maxScrollY,maxScrollWidth:n._maxScrollWidth,maxScrollHeight:n._maxScrollHeight,viewportHeight:Da(),viewportWidth:Ua(),pageUrl:Vs(f.location.href,(c=(u=n.config.interactionConfig)===null||u===void 0?void 0:u.ugcFilterRules)!==null&&c!==void 0?c:[]),timestamp:n.timestamp,type:"scroll"}]})}}},this._maxScrollX=0,this._maxScrollY=0,this._currentScrollX=0,this._currentScrollY=0,this._maxScrollWidth=Ua(),this._maxScrollHeight=Da(),this.config=r,this.transport=t}return e.default=function(t,r){return new e(new UR(t,r),r)},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScrollX",{get:function(){return this._currentScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScrollY",{get:function(){return this._currentScrollY},enumerable:!1,configurable:!0}),e.prototype.update=function(t){var r=Date.now();if(this._currentScrollX=t.x,this._currentScrollY=t.y,t.x>this._maxScrollX){var n=Ua();this._maxScrollX=t.x;var i=t.x+n;i>this._maxScrollWidth&&(this._maxScrollWidth=i),this.timestamp=r}if(t.y>this._maxScrollY){var o=Da();this._maxScrollY=t.y;var s=t.y+o;s>this._maxScrollHeight&&(this._maxScrollHeight=s),this.timestamp=r}},e})(),Xd=(function(){function e(t){var r=t.sessionId,n=t.deviceId;this.deviceId=n,this.sessionId=r,r&&n&&(this.sessionReplayId=xk(r,n))}return e})(),HR=1e3*60*60*24*2,BR=(function(){function e(){var t=this;this.dbs={},this.createStore=function(r){return x(t,void 0,void 0,function(){return O(this,function(n){switch(n.label){case 0:return[4,gm(r,1,{upgrade:function(i){i.objectStoreNames.contains("sessionTargetingMatch")||i.createObjectStore("sessionTargetingMatch",{keyPath:"sessionId"})}})];case 1:return[2,n.sent()]}})})},this.openOrCreateDB=function(r){return x(t,void 0,void 0,function(){var n,i;return O(this,function(o){switch(o.label){case 0:return this.dbs&&this.dbs[r]?[2,this.dbs[r]]:(n="".concat(r.substring(0,10),"_amp_session_replay_targeting"),[4,this.createStore(n)]);case 1:return i=o.sent(),this.dbs[r]=i,[2,i]}})})},this.getTargetingMatchForSession=function(r){var n=r.loggerProvider,i=r.apiKey,o=r.sessionId;return x(t,void 0,void 0,function(){var s,a,u,c;return O(this,function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),[4,this.openOrCreateDB(i)];case 1:return s=l.sent(),a=String(o),[4,s.get("sessionTargetingMatch",a)];case 2:return u=l.sent(),[2,u?.targetingMatch];case 3:return c=l.sent(),ur(n,"Failed to get targeting match for session id ".concat(o,": ").concat(c),c),[3,4];case 4:return[2,void 0]}})})},this.storeTargetingMatchForSession=function(r){var n=r.loggerProvider,i=r.apiKey,o=r.sessionId,s=r.targetingMatch;return x(t,void 0,void 0,function(){var a,u,c,l;return O(this,function(f){switch(f.label){case 0:return f.trys.push([0,3,,4]),[4,this.openOrCreateDB(i)];case 1:return a=f.sent(),u=String(o),[4,a.put("sessionTargetingMatch",{targetingMatch:s,sessionId:u,lastUpdated:Date.now()})];case 2:return c=f.sent(),[2,c];case 3:return l=f.sent(),ur(n,"Failed to store targeting match for session id ".concat(o,": ").concat(l),l),[3,4];case 4:return[2,void 0]}})})},this.clearStoreOfOldSessions=function(r){var n=r.loggerProvider,i=r.apiKey,o=r.currentSessionId;return x(t,void 0,void 0,function(){var s,a,u,c,l,f,d,h;return O(this,function(v){switch(v.label){case 0:return v.trys.push([0,8,,9]),[4,this.openOrCreateDB(i)];case 1:return s=v.sent(),a=String(o),u=s.transaction("sessionTargetingMatch","readwrite"),[4,u.store.getAll()];case 2:c=v.sent(),l=0,v.label=3;case 3:return l<c.length?(f=c[l],d=Date.now()-f.lastUpdated,f.sessionId!==a&&d>HR?[4,u.store.delete(f.sessionId)]:[3,5]):[3,6];case 4:v.sent(),v.label=5;case 5:return l++,[3,3];case 6:return[4,u.done];case 7:return v.sent(),[3,9];case 8:return h=v.sent(),ur(n,"Failed to clear old targeting matches for sessions: ".concat(h),h),[3,9];case 9:return[2]}})})}}return e})(),Fa=new BR,jR=function(e){var t=e.sessionId,r=e.targetingConfig,n=e.loggerProvider,i=e.apiKey,o=e.targetingParams,s=e.urlChange,a=s===void 0?!1:s;return x(void 0,void 0,void 0,function(){var u,c,l,f,d,h,v;return O(this,function(p){switch(p.label){case 0:return[4,Fa.clearStoreOfOldSessions({loggerProvider:n,apiKey:i,currentSessionId:t})];case 1:return p.sent(),[4,Fa.getTargetingMatchForSession({loggerProvider:n,apiKey:i,sessionId:t})];case 2:if(u=p.sent(),u===!0&&!a)return[2,!0];c=!0,p.label=3;case 3:return p.trys.push([3,6,,7]),[4,Bt(()=>import("./PJVKHxNq.js"),[],import.meta.url)];case 4:return l=p.sent().evaluateTargeting,f=D(D({},o),{flag:r,sessionId:typeof t=="string"?parseInt(t,10):t,apiKey:i,loggerProvider:n}),[4,l(f)];case 5:return d=p.sent(),d&&d.sr_targeting_config&&(c=d.sr_targeting_config.key==="on"),Fa.storeTargetingMatchForSession({loggerProvider:n,apiKey:i,sessionId:t,targetingMatch:c}),[3,7];case 6:return h=p.sent(),v=h,n.warn(v.message),[3,7];case 7:return[2,c]}})})},Vo=2654435761,$o=2246822519,Yd=3266489917,qR=668265263,Jd=374761393;function zr(e,t){return(e<<t|e>>>32-t)>>>0}function Po(e,t){return e=e+Math.imul(t,$o)>>>0,e=zr(e,13),e=Math.imul(e,Vo)>>>0,e}function gi(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function VR(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n>=55296&&n<=56319&&r+1<e.length){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(n=(n-55296<<10)+(i-56320)+65536,r++)}n<128?t.push(n):n<2048?t.push(192|n>>6,128|n&63):n<65536?t.push(224|n>>12,128|n>>6&63,128|n&63):t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|n&63)}return new Uint8Array(t)}function $R(e,t){t===void 0&&(t=0);var r=VR(e),n=r.length,i,o=0;if(n>=16){for(var s=t+Vo+$o>>>0,a=t+$o>>>0,u=t>>>0,c=t-Vo>>>0;o<=n-16;)s=Po(s,gi(r,o)),o+=4,a=Po(a,gi(r,o)),o+=4,u=Po(u,gi(r,o)),o+=4,c=Po(c,gi(r,o)),o+=4;i=zr(s,1)+zr(a,7)+zr(u,12)+zr(c,18)>>>0}else i=t+Jd>>>0;for(i=i+n>>>0;o<=n-4;)i=i+Math.imul(gi(r,o),Yd)>>>0,i=Math.imul(zr(i,17),qR)>>>0,o+=4;for(;o<n;)i=i+Math.imul(r[o],Jd)>>>0,i=Math.imul(zr(i,11),Vo)>>>0,o++;return i^=i>>>15,i=Math.imul(i,$o)>>>0,i^=i>>>13,i=Math.imul(i,Yd)>>>0,i^=i>>>16,i>>>0}function WR(e,t){var r=$R(e.toString()),n=r%1e6;return n/1e6<t}var Ha="__amplitude_url_tracking_patched__",Qd=new WeakMap;function Tm(e,t,r){if(r===void 0&&(r={}),!e?.location)return function(){};var n=r.enablePolling,i=n===void 0?!1:n,o=r.pollingInterval,s=o===void 0?Fl:o;if(i){var a=function(){var y;return(y=e.location.href)!==null&&y!==void 0?y:""},u=a(),c=e.setInterval(function(){var y=a();y!==u&&(u=y,t(y))},s);return function(){c!=null&&e.clearInterval(c)}}var l=Qd.get(e);if(!l){var f=void 0,d=new Set,h=function(){var y;return(y=e.location.href)!==null&&y!==void 0?y:""},v=function(){var y=h();f!==void 0&&y===f||(f=y,d.forEach(function(_){return _(y)}))},p=function(y){var _=function(){for(var S=[],A=0;A<arguments.length;A++)S[A]=arguments[A];var I=y.apply(this,S);return v(),I};return _[Ha]=!0,_},b=e.history;if(b?.pushState){var E=Reflect.get(b,"pushState");E[Ha]||(b.pushState=p(E))}if(b?.replaceState){var m=Reflect.get(b,"replaceState");m[Ha]||(b.replaceState=p(m))}l={callbacks:d,notify:v,onPopStateOrHashChange:function(){return v()},listenersAttached:!1},Qd.set(e,l)}var g=l;return g.listenersAttached||(e.addEventListener("popstate",g.onPopStateOrHashChange),e.addEventListener("hashchange",g.onPopStateOrHashChange),g.listenersAttached=!0),g.callbacks.add(t),function(){g.callbacks.delete(t),g.callbacks.size===0&&g.listenersAttached&&(e.removeEventListener("popstate",g.onPopStateOrHashChange),e.removeEventListener("hashchange",g.onPopStateOrHashChange),g.listenersAttached=!1)}}function Am(e){return e===void 0&&(e={}),{name:"amplitude/url-tracking@1",observer:function(t,r,n){var i,o,s,a=D(D({},e),n),u=a.ugcFilterRules||[],c=(i=a.enablePolling)!==null&&i!==void 0?i:!1,l=(o=a.pollingInterval)!==null&&o!==void 0?o:Fl,f=(s=a.captureDocumentTitle)!==null&&s!==void 0?s:!1;if(!r)return function(){};var d=void 0,h=function(){return r.location&&r.location.href||""},v=function(){var E=r.innerHeight,m=r.innerWidth,g=r.document,y=h(),_="";f&&(_=g?.title||"");var S=u.length>0?Vs(y,u):y;return{href:S,title:_,viewportHeight:E,viewportWidth:m,type:"url-change-event"}},p=function(){var E=h();if(d===void 0||E!==d){d=E;var m=v();t(m)}},b=Tm(r,function(){return p()},c?{enablePolling:!0,pollingInterval:l}:{});return p(),function(){return b()}},options:e}}Am();var GR=(function(){function e(){var t=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.sessionTargetingMatch=!1,this.pageLeaveFns=[],this.recordFunction=null,this.urlChangeCleanup=null,this.latestUrlChangeTargetingEvaluationId=0,this.teardownEventListeners=function(r){var n=le();n&&(n.removeEventListener("blur",t.blurListener),n.removeEventListener("focus",t.focusListener),!r&&n.addEventListener("blur",t.blurListener),!r&&n.addEventListener("focus",t.focusListener),n.self&&"onpagehide"in n.self?(n.removeEventListener("pagehide",t.pageLeaveListener),!r&&n.addEventListener("pagehide",t.pageLeaveListener)):(n.removeEventListener("beforeunload",t.pageLeaveListener),!r&&n.addEventListener("beforeunload",t.pageLeaveListener)))},this.blurListener=function(){t.sendEvents()},this.focusListener=function(){t.recordEvents(!1)},this.pageLeaveListener=function(r){t.pageLeaveFns.forEach(function(n){n(r)})},this.evaluateTargetingAndCapture=function(r,n,i,o){return n===void 0&&(n=!1),i===void 0&&(i=!1),o===void 0&&(o=!1),x(t,void 0,void 0,function(){var s,a,u,c,l,f,d,h,v,p,b,E,m;return O(this,function(g){switch(g.label){case 0:if(!this.identifiers||!this.identifiers.sessionId||!this.config)return this.identifiers&&!this.identifiers.sessionId?this.loggerProvider.log("Session ID has not been set yet, cannot evaluate targeting for Session Replay."):this.loggerProvider.warn("Session replay init has not been called, cannot evaluate targeting."),[2];if(!this.config.targetingConfig)if(n)this.loggerProvider.log("Targeting config has not been set yet, cannot evaluate targeting.");else return this.loggerProvider.log("No targeting config set, skipping initialization/recording for event."),[2];return this.lastTargetingParams=r,s=this.config.targetingConfig,a=s&&!this.sessionTargetingMatch,a?(u=o?this.latestUrlChangeTargetingEvaluationId:void 0,c=r.event,c&&Object.values(_t).includes(c.event_type)&&(c=void 0),l=(E=(v=(h=r.page)===null||h===void 0?void 0:h.url)!==null&&v!==void 0?v:(b=(p=le())===null||p===void 0?void 0:p.location)===null||b===void 0?void 0:b.href)!==null&&E!==void 0?E:"",f=(m=r.page)!==null&&m!==void 0?m:l!==""?{url:l}:void 0,[4,jR({sessionId:this.identifiers.sessionId,targetingConfig:s,loggerProvider:this.loggerProvider,apiKey:this.config.apiKey,targetingParams:{userProperties:r.userProperties,event:c,page:f},urlChange:o})]):[3,2];case 1:if(d=g.sent(),o&&u!==void 0&&u!==this.latestUrlChangeTargetingEvaluationId)return this.loggerProvider.debug("Ignoring stale URL-change targeting result #".concat(u,"; latest is #").concat(this.latestUrlChangeTargetingEvaluationId,".")),[2];this.sessionTargetingMatch=this.sessionTargetingMatch||d,this.loggerProvider.debug(JSON.stringify({name:"targeted replay capture config",sessionTargetingMatch:this.sessionTargetingMatch,event:c,targetingParams:r},null,2)),g.label=2;case 2:return n?(this.initialize(!0),[3,5]):[3,3];case 3:return i||!this.recordCancelCallback?(this.loggerProvider.log("Recording events for session due to forceRestart or no ongoing recording."),[4,this.recordEvents()]):[3,5];case 4:g.sent(),g.label=5;case 5:return[2]}})})},this.addCustomRRWebEvent=function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i=!0),x(t,void 0,void 0,function(){var o,s,a,u;return O(this,function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),o=void 0,s=this.config,s&&r!==kr.METADATA?(o={config:am(s),version:Fu},i?[4,sm()]:[3,2]):[3,2];case 1:a=c.sent(),o=D(D({},a),o),c.label=2;case 2:return this.recordCancelCallback&&this.recordFunction?this.recordFunction.addCustomEvent(r,D(D({},n),o)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(r," due to no ongoing recording.")),[3,4];case 3:return u=c.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",u),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var r;try{t.loggerProvider.log("Session Replay capture stopping."),t.recordCancelCallback&&t.recordCancelCallback(),t.recordCancelCallback=null,(r=t.networkObservers)===null||r===void 0||r.stop()}catch(i){var n=i;t.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(n.toString()))}},this.loggerProvider=new xu(new Kn)}return e.prototype.init=function(t,r){return tt(this._init(t,r))},e.prototype.setupUrlChangeListenerForTargeting=function(){var t=this,r;(r=this.urlChangeCleanup)===null||r===void 0||r.call(this);var n=le();if(n?.location){var i=function(s){var a=++t.latestUrlChangeTargetingEvaluationId;t.evaluateTargetingAndCapture({userProperties:{},event:void 0,page:{url:s}},!1,!1,!0),t.loggerProvider.debug("Queued URL-change targeting re-evaluation #".concat(a," for ").concat(s,"."))},o=Tm(n,i);this.urlChangeCleanup=function(){o(),t.urlChangeCleanup=null}}},e.prototype.getCurrentPageForTargeting=function(){var t,r,n=(r=(t=le())===null||t===void 0?void 0:t.location)===null||r===void 0?void 0:r.href;return n!=null?{url:n}:void 0},e.prototype._init=function(t,r){var n,i,o,s,a,u,c,l;return x(this,void 0,void 0,function(){var f,d,h,v,p,b,E,m,g,y,I,_,S,A,I,C,R,P,k;return O(this,function(N){switch(N.label){case 0:return(n=this.urlChangeCleanup)===null||n===void 0||n.call(this),this.loggerProvider=new xu(r.loggerProvider||new Kn),Object.prototype.hasOwnProperty.call(r,"logLevel")&&this.loggerProvider.enable(r.logLevel),this.identifiers=new Xd({sessionId:r.sessionId,deviceId:r.deviceId}),f=this,[4,Hk(t,r)];case 1:return f.joinedConfigGenerator=N.sent(),[4,this.joinedConfigGenerator.generateJoinedConfig()];case 2:d=N.sent(),h=d.joinedConfig,v=d.localConfig,p=d.remoteConfig,this.config=h,this.setMetadata(r.sessionId,h,v,p,(i=r.version)===null||i===void 0?void 0:i.version,Fu,(o=r.version)===null||o===void 0?void 0:o.type),r.sessionId&&(!((s=this.config.interactionConfig)===null||s===void 0)&&s.enabled)&&(b=FR.default({sessionId:r.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[b.send(this.getDeviceId.bind(this)).bind(b)],this.scrollHook=b.hook.bind(b),this.clickHandler=new DR(this.loggerProvider,b)),E=[],m=this.config.storeType,m==="idb"&&!(!((a=le())===null||a===void 0)&&a.indexedDB)&&(m="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(m," for event storage.")),N.label=3;case 3:return N.trys.push([3,5,,6]),[4,$d({config:this.config,type:"replay",storeType:m})];case 4:return g=N.sent(),E.push({name:"replay",manager:g}),[3,6];case 5:return y=N.sent(),I=y,this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(I.toString())),[3,6];case 6:if(!(!((u=this.config.interactionConfig)===null||u===void 0)&&u.enabled))return[3,10];_=this.config.interactionConfig.batch?MR:LR,N.label=7;case 7:return N.trys.push([7,9,,10]),[4,$d({config:this.config,type:"interaction",minInterval:(c=this.config.interactionConfig.trackEveryNms)!==null&&c!==void 0?c:wk,maxInterval:Tk,payloadBatcher:_,storeType:m})];case 8:return S=N.sent(),E.push({name:"interaction",manager:S}),[3,10];case 9:return A=N.sent(),I=A,this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(I.toString())),[3,10];case 10:return this.eventsManager=new(Wd.bind.apply(Wd,Ee([void 0],oe(E),!1))),this.eventCompressor&&this.eventCompressor.terminate(),C=void 0,R=le(),this.config.useWebWorker&&R&&R.Worker?[4,Bt(()=>import("./D7Bf6Say.js"),[],import.meta.url)]:[3,12];case 11:P=N.sent().compressionScript,C=P,N.label=12;case 12:return this.eventCompressor=new rR(this.eventsManager,this.config,this.getDeviceId(),C),[4,this.initializeNetworkObservers()];case 13:return N.sent(),!((l=le())===null||l===void 0)&&l.opener&&(k=fg(),dg(k),k.setup(D({logger:this.loggerProvider},this.config.serverZone&&{endpoint:lg[this.config.serverZone]}))),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),[4,this.evaluateTargetingAndCapture({userProperties:r.userProperties,page:this.getCurrentPageForTargeting()},!0)];case 14:return N.sent(),this.config.targetingConfig&&this.setupUrlChangeListenerForTargeting(),[2]}})})},e.prototype.setSessionId=function(t,r){return tt(this.asyncSetSessionId(t,r))},e.prototype.asyncSetSessionId=function(t,r,n){var i;return x(this,void 0,void 0,function(){var o,s,a;return O(this,function(u){switch(u.label){case 0:return this.latestUrlChangeTargetingEvaluationId++,this.sessionTargetingMatch=!1,this.lastShouldRecordDecision=void 0,o=this.identifiers&&this.identifiers.sessionId,o&&this.sendEvents(o),s=r||this.getDeviceId(),this.identifiers=new Xd({sessionId:t,deviceId:s}),this.joinedConfigGenerator&&o?[4,this.joinedConfigGenerator.generateJoinedConfig()]:[3,2];case 1:a=u.sent().joinedConfig,this.config=a,u.label=2;case 2:return!((i=this.config)===null||i===void 0)&&i.targetingConfig?[4,this.evaluateTargetingAndCapture({userProperties:n?.userProperties,page:this.getCurrentPageForTargeting()},!1,!0)]:[3,4];case 3:return u.sent(),[3,6];case 4:return[4,this.recordEvents()];case 5:u.sent(),u.label=6;case 6:return[2]}})})},e.prototype.getSessionReplayProperties=function(){var t,r=this.config,n=this.identifiers;if(!r||!n)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var i=this.getShouldRecord(),o={};return i&&(o=(t={},t[pk]=n.sessionReplayId?n.sessionReplayId:null,t),r.debugMode&&(o[bk]=JSON.stringify({appHash:Su(r.apiKey).toString()}))),this.addCustomRRWebEvent(kr.GET_SR_PROPS,{shouldRecord:i,eventProperties:o},this.eventCount===10),this.eventCount===10&&(this.eventCount=0),this.eventCount++,o},e.prototype.sendEvents=function(t){var r,n=t||((r=this.identifiers)===null||r===void 0?void 0:r.sessionId),i=this.getDeviceId();this.eventsManager&&n&&i&&this.eventsManager.sendCurrentSequenceEvents({sessionId:n,deviceId:i})},e.prototype.initialize=function(t){var r;return t===void 0&&(t=!1),x(this,void 0,void 0,function(){var n;return O(this,function(i){return!((r=this.identifiers)===null||r===void 0)&&r.sessionId?(n=this.getDeviceId(),n?(this.eventsManager&&t&&this.eventsManager.sendStoredEvents({deviceId:n}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()])):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){var t,r,n;if(!((t=this.config)===null||t===void 0)&&t.instanceName){var i=zn(this.config.instanceName).identityStore;n=i.getIdentity().optOut}return n!==void 0?n:(r=this.config)===null||r===void 0?void 0:r.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var t=!1,r="",n=!1;if(this.config.targetingConfig)this.sessionTargetingMatch?(r="Capturing replays for session ".concat(this.identifiers.sessionId," due to matching targeting conditions."),this.loggerProvider.log(r),t=!0,n=!0):(r="Not capturing replays for session ".concat(this.identifiers.sessionId," due to not matching targeting conditions."),this.loggerProvider.log(r),t=!1,n=!1);else{var i=WR(this.identifiers.sessionId,this.config.sampleRate);i?(t=!0,n=!0):(r="Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate."),this.loggerProvider.log(r),t=!1,n=!1)}return this.lastShouldRecordDecision!==t&&this.config.targetingConfig&&(this.addCustomRRWebEvent(kr.TARGETING_DECISION,{message:r,sessionId:this.identifiers.sessionId,matched:n,targetingParams:this.lastTargetingParams}),this.lastShouldRecordDecision=t),t},e.prototype.getBlockSelectors=function(){var t,r,n,i=(n=(r=(t=this.config)===null||t===void 0?void 0:t.privacyConfig)===null||r===void 0?void 0:r.blockSelector)!==null&&n!==void 0?n:[];if(i.length!==0)return i},e.prototype.getMaskTextSelectors=function(){var t,r,n,i;if(((r=(t=this.config)===null||t===void 0?void 0:t.privacyConfig)===null||r===void 0?void 0:r.defaultMaskLevel)==="conservative")return"*";var o=(i=(n=this.config)===null||n===void 0?void 0:n.privacyConfig)===null||i===void 0?void 0:i.maskSelector;if(o)return o},e.prototype.getRecordingPlugins=function(t){var r,n,i,o,s,a;return x(this,void 0,void 0,function(){var u,c,l,f;return O(this,function(d){switch(d.label){case 0:u=[];try{c=Am({ugcFilterRules:((n=(r=this.config)===null||r===void 0?void 0:r.interactionConfig)===null||n===void 0?void 0:n.ugcFilterRules)||[],enablePolling:((i=this.config)===null||i===void 0?void 0:i.enableUrlChangePolling)||!1,pollingInterval:(o=this.config)===null||o===void 0?void 0:o.urlChangePollingInterval,captureDocumentTitle:(s=this.config)===null||s===void 0?void 0:s.captureDocumentTitle}),u.push(c)}catch(h){this.loggerProvider.warn("Failed to create URL tracking plugin:",h)}if(!(!((a=t?.console)===null||a===void 0)&&a.enabled))return[3,4];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Bt(()=>import("./sPdhR0i8.js"),[],import.meta.url)];case 2:return l=d.sent().getRecordConsolePlugin,u.push(l({level:t.console.levels})),[3,4];case 3:return f=d.sent(),this.loggerProvider.warn("Failed to load console plugin:",f),[3,4];case 4:return[2,u.length>0?u:void 0]}})})},e.prototype.getRecordFunction=function(){return x(this,void 0,void 0,function(){var t,r;return O(this,function(n){switch(n.label){case 0:if(this.recordFunction)return[2,this.recordFunction];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,Bt(()=>import("./DMrp4Fbu.js"),[],import.meta.url)];case 2:return t=n.sent().record,this.recordFunction=t,[2,t];case 3:return r=n.sent(),this.loggerProvider.warn("Failed to load rrweb-record module:",r),[2,null];case 4:return[2]}})})},e.prototype.recordEvents=function(t){var r,n,i,o,s,a,u,c;return t===void 0&&(t=!0),x(this,void 0,void 0,function(){var l,f,d,h,v,p,b,E,m,g,y,_,S,A,I,C,R=this;return O(this,function(P){switch(P.label){case 0:return l=this.config,f=this.getShouldRecord(),d=(r=this.identifiers)===null||r===void 0?void 0:r.sessionId,!f||!d||!l?[2]:(this.stopRecordingEvents(),[4,this.getRecordFunction()]);case 1:return h=P.sent(),h?[4,this.initializeNetworkObservers()]:[2];case 2:P.sent(),v=(n=l.loggingConfig)===null||n===void 0?void 0:n.network,p=Hl(l.serverZone,l.trackServerUrl),b=[em,tm,rm,p],(i=this.networkObservers)===null||i===void 0||i.start(function(k){b.some(function(N){return k.url.startsWith(N)})||R.addCustomRRWebEvent(kr.FETCH_REQUEST,k)},v),E=l.privacyConfig,m=l.interactionConfig,g=l.loggingConfig,y=m?.enabled?{mouseInteraction:this.eventsManager&&((o=this.clickHandler)===null||o===void 0?void 0:o.createHook({eventsManager:this.eventsManager,sessionId:d,deviceIdFn:this.getDeviceId.bind(this),mirror:h.mirror,ugcFilterRules:(s=m.ugcFilterRules)!==null&&s!==void 0?s:[],performanceOptions:(a=l.performanceConfig)===null||a===void 0?void 0:a.interaction})),scroll:this.scrollHook}:{},_=m?.enabled&&m.ugcFilterRules?m.ugcFilterRules:[],this.loggerProvider.log("Session Replay capture beginning for ".concat(d,".")),P.label=3;case 3:return P.trys.push([3,5,,6]),S=this,A=h,C={emit:function(k){if(R.shouldOptOut()){R.loggerProvider.log("Opting session ".concat(d," out of recording due to optOut config.")),R.stopRecordingEvents(),R.sendEvents();return}k.type===lm.Meta&&(k.data.href=Vs(k.data.href,_)),R.eventCompressor&&R.eventCompressor.enqueueEvent(k,d)},inlineStylesheet:l.shouldInlineStylesheet,hooks:y,maskAllInputs:!0,maskTextClass:Zg,blockClass:Ek,blockSelector:this.getBlockSelectors(),applyBackgroundColorToBlockedElements:l.applyBackgroundColorToBlockedElements,maskInputFn:Nd("input",E),maskTextFn:Nd("text",E),maskAttributeFn:Pk(E),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,slimDOMOptions:{script:(u=l.omitElementTags)===null||u===void 0?void 0:u.script,comment:(c=l.omitElementTags)===null||c===void 0?void 0:c.comment},errorHandler:function(k){var N=k;if(N.message.includes("insertRule")&&N.message.includes("CSSStyleSheet")||N._external_)throw N;return R.loggerProvider.warn("Error while capturing replay: ",N.toString()),!0}},[4,this.getRecordingPlugins(g)];case 4:return S.recordCancelCallback=A.apply(void 0,[(C.plugins=P.sent(),C)]),this.addCustomRRWebEvent(kr.DEBUG_INFO),t&&this.addCustomRRWebEvent(kr.METADATA,this.metadata),[3,6];case 5:return I=P.sent(),this.loggerProvider.warn("Failed to initialize session replay:",I),[3,6];case 6:return[2]}})})},e.prototype.getDeviceId=function(){var t;return(t=this.identifiers)===null||t===void 0?void 0:t.deviceId},e.prototype.getSessionId=function(){var t;return(t=this.identifiers)===null||t===void 0?void 0:t.sessionId},e.prototype.flush=function(t){var r;return t===void 0&&(t=!1),x(this,void 0,void 0,function(){return O(this,function(n){return[2,(r=this.eventsManager)===null||r===void 0?void 0:r.flush(t)]})})},e.prototype.shutdown=function(){var t;(t=this.urlChangeCleanup)===null||t===void 0||t.call(this),this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e.prototype.mapSDKType=function(t){return t==="plugin"?"@amplitude/plugin-session-replay-browser":t==="segment"?"@amplitude/segment-session-replay-plugin":null},e.prototype.setMetadata=function(t,r,n,i,o,s,a){var u=t?.toString()?Su(t.toString()):void 0;this.metadata={joinedConfig:r,localConfig:n,remoteConfig:i,sessionId:t,hashValue:u,sampleRate:r.sampleRate,replaySDKType:this.mapSDKType(a),replaySDKVersion:o,standaloneSDKType:"@amplitude/session-replay-browser",standaloneSDKVersion:s}},e.prototype.initializeNetworkObservers=function(){var t,r,n;return x(this,void 0,void 0,function(){var i,o;return O(this,function(s){switch(s.label){case 0:if(!(!((n=(r=(t=this.config)===null||t===void 0?void 0:t.loggingConfig)===null||r===void 0?void 0:r.network)===null||n===void 0)&&n.enabled&&!this.networkObservers))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Bt(()=>import("./CrxCT0gX.js"),[],import.meta.url)];case 2:return i=s.sent().NetworkObservers,this.networkObservers=new i,[3,4];case 3:return o=s.sent(),this.loggerProvider.warn("Failed to import or instantiate NetworkObservers:",o),[3,4];case 4:return[2]}})})},e})(),Wr=function(e){return function(){var t=e.config,r=t||um(),n=r.loggerProvider,i=r.logLevel;return{logger:n,logLevel:i}}},KR=function(){var e=new GR;return{init:_e(e.init.bind(e),"init",Wr(e)),evaluateTargetingAndCapture:_e(e.evaluateTargetingAndCapture.bind(e),"evaluateTargetingAndRecord",Wr(e)),setSessionId:_e(e.setSessionId.bind(e),"setSessionId",Wr(e)),getSessionId:_e(e.getSessionId.bind(e),"getSessionId",Wr(e)),getSessionReplayProperties:_e(e.getSessionReplayProperties.bind(e),"getSessionReplayProperties",Wr(e)),flush:_e(e.flush.bind(e),"flush",Wr(e)),shutdown:_e(e.shutdown.bind(e),"shutdown",Wr(e))}};const dn=KR();var zR=dn.init,XR=dn.setSessionId,YR=dn.getSessionId,JR=dn.getSessionReplayProperties,QR=dn.flush,ZR=dn.shutdown,eP=dn.evaluateTargetingAndCapture,tP=function(e){return e===void 0&&(e="$default_instance"),Al.getInstance(e)},Rr;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Rr||(Rr={}));var Zd;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue"})(Zd||(Zd={}));var eh;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(eh||(eh={}));var rP=[Rr.SET,Rr.SET_ONCE,Rr.ADD,Rr.APPEND,Rr.PREPEND,Rr.POSTINSERT],nP=function(e){if(e.user_properties){var t={},r=Object.keys(e.user_properties);return r.forEach(function(n){if(rP.includes(n)){var i=e.user_properties&&e.user_properties[n];t=D(D({},t),i)}}),t}},th="1.27.6",iP="[Amplitude]",oP="".concat(iP," Session Replay ID"),$u=(function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.config=null,this.sessionReplay={flush:QR,getSessionId:YR,getSessionReplayProperties:JR,init:zR,setSessionId:XR,shutdown:ZR,evaluateTargetingAndCapture:eP},this.options=D({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(t,r){var n,i,o,s,a,u,c,l;return x(this,void 0,void 0,function(){var f,d,h;return O(this,function(v){switch(v.label){case 0:return v.trys.push([0,2,,3]),t?.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(th,".")),this.config=t,this.options.forceSessionTracking&&(typeof t.defaultTracking=="boolean"?t.defaultTracking===!1&&(t.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):t.defaultTracking=D(D({},t.defaultTracking),{sessions:!0})),f=tP(this.config.instanceName).identityStore,d=f.getIdentity().userProperties,this.srInitOptions={instanceName:this.config.instanceName,deviceId:(n=this.options.deviceId)!==null&&n!==void 0?n:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl||((i=this.config.remoteConfig)===null||i===void 0?void 0:i.serverUrl),trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:(o=this.options.privacyConfig)===null||o===void 0?void 0:o.blockSelector,maskSelector:(s=this.options.privacyConfig)===null||s===void 0?void 0:s.maskSelector,unmaskSelector:(a=this.options.privacyConfig)===null||a===void 0?void 0:a.unmaskSelector,defaultMaskLevel:(u=this.options.privacyConfig)===null||u===void 0?void 0:u.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:th},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,useWebWorker:(c=this.options.useWebWorker)!==null&&c!==void 0?c:(l=this.options.experimental)===null||l===void 0?void 0:l.useWebWorker,userProperties:d,omitElementTags:this.options.omitElementTags,applyBackgroundColorToBlockedElements:this.options.applyBackgroundColorToBlockedElements,interactionConfig:this.options.interactionConfig,captureDocumentTitle:this.options.captureDocumentTitle,enableUrlChangePolling:this.options.enableUrlChangePolling,urlChangePollingInterval:this.options.urlChangePollingInterval},[4,this.sessionReplay.init(t.apiKey,this.srInitOptions).promise];case 1:return v.sent(),[3,3];case 2:return h=v.sent(),t?.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(h.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(t){var r;return x(this,void 0,void 0,function(){return O(this,function(n){switch(n.label){case 0:return(r=this.config)===null||r===void 0||r.loggerProvider.debug("Analytics session id is changed to ".concat(t,", SR session id is ").concat(String(this.sessionReplay.getSessionId()),".")),[4,this.sessionReplay.setSessionId(t).promise];case 1:return n.sent(),[2]}})})},e.prototype.onOptOutChanged=function(t){var r;return x(this,void 0,void 0,function(){var n;return O(this,function(i){switch(i.label){case 0:return(r=this.config)===null||r===void 0||r.loggerProvider.debug("optOut is changed to ".concat(String(t),", calling ").concat(t?"sessionReplay.shutdown()":"sessionReplay.init()",".")),t?(this.sessionReplay.shutdown(),[3,4]):[3,1];case 1:return n=this.config!=null,n?[4,this.sessionReplay.init(this.config.apiKey,this.srInitOptions).promise]:[3,3];case 2:n=i.sent(),i.label=3;case 3:i.label=4;case 4:return[2]}})})},e.prototype.execute=function(t){var r,n,i;return x(this,void 0,void 0,function(){var o,u,o,s,a,u,c;return O(this,function(l){switch(l.label){case 0:return l.trys.push([0,9,,10]),this.options.customSessionId?(o=this.options.customSessionId(t),o?o===this.sessionReplay.getSessionId()?[3,2]:[4,this.sessionReplay.setSessionId(o).promise]:[3,3]):[3,4];case 1:l.sent(),l.label=2;case 2:u=this.sessionReplay.getSessionReplayProperties(),t.event_properties=D(D({},t.event_properties),u),l.label=3;case 3:return[3,8];case 4:return o=(r=this.config)===null||r===void 0?void 0:r.sessionId,o&&o!==this.sessionReplay.getSessionId()?[4,this.sessionReplay.setSessionId(o).promise]:[3,6];case 5:l.sent(),l.label=6;case 6:return o&&o===t.session_id?(s=void 0,t.event_type===_t.IDENTIFY&&(s=nP(t)),a=le(),[4,this.sessionReplay.evaluateTargetingAndCapture({event:t,userProperties:s,page:((n=a?.location)===null||n===void 0?void 0:n.href)!=null?{url:a.location.href}:void 0})]):[3,8];case 7:l.sent(),u=this.sessionReplay.getSessionReplayProperties(),t.event_properties=D(D({},t.event_properties),u),l.label=8;case 8:return t.event_type===_t.IDENTIFY&&t.event_properties&&delete t.event_properties[oP],[2,Promise.resolve(t)];case 9:return c=l.sent(),(i=this.config)===null||i===void 0||i.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(c.message)),[2,Promise.resolve(t)];case 10:return[2]}})})},e.prototype.teardown=function(){var t;return x(this,void 0,void 0,function(){return O(this,function(r){try{this.sessionReplay.shutdown(),this.config=null}catch(n){(t=this.config)===null||t===void 0||t.loggerProvider.error("Session Replay: teardown failed due to ".concat(n.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sessionReplay.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e})(),sP=function(e){return new $u(e)},Wu=function(e,t){return Wu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Wu(e,t)};function Im(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wu(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Or=function(){return Or=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Or.apply(this,arguments)};function Cm(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(f){s(f)}}function u(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(e,[])).next())})}function km(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function kt(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vl(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function $l(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var se={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},aP=function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t[r++]=i:i<2048?(t[r++]=i>>6|192,t[r++]=i&63|128):(i&64512)==55296&&n+1<e.length&&(e.charCodeAt(n+1)&64512)==56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++n)&1023),t[r++]=i>>18|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=i&63|128):(t[r++]=i>>12|224,t[r++]=i>>6&63|128,t[r++]=i&63|128)}return Uint8Array.from(t)},Wo=-862048943,Go=461845907,Ko=15,uP=13,lP=5,cP=-430675100,fP=function(e,t){t===void 0&&(t=0);for(var r=aP(e),n=r.length,i=n>>2,o=t,s=0;s<i;s++){var a=s<<2,u=vP(r,a);o=dP(u,o)}var c=i<<2,l=0;switch(n-c){case 3:l^=r[c+2]<<16,l^=r[c+1]<<8,l^=r[c],l=Math.imul(l,Wo),l=Fi(l,Ko),l=Math.imul(l,Go),o^=l;break;case 2:l^=r[c+1]<<8,l^=r[c],l=Math.imul(l,Wo),l=Fi(l,Ko),l=Math.imul(l,Go),o^=l;break;case 1:l^=r[c],l=Math.imul(l,Wo),l=Fi(l,Ko),l=Math.imul(l,Go),o^=l;break}return o^=n,hP(o)>>>0},dP=function(e,t){var r=e,n=t;return r=Math.imul(r,Wo),r=Fi(r,Ko),r=Math.imul(r,Go),n^=r,n=Fi(n,uP),n=Math.imul(n,lP),n+cP|0},hP=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>13,t=Math.imul(t,-1028477387),t^=t>>>16,t},Fi=function(e,t,r){r===void 0&&(r=32),t>r&&(t=t%r);var n=4294967295<<r-t>>>0,i=(e&n)>>>0>>>r-t>>>0;return(e<<t|i)>>>0},vP=function(e,t){t===void 0&&(t=0);var r=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3];return pP(r)},pP=function(e){return(e&-16777216)>>>24|(e&16711680)>>>8|(e&65280)<<8|(e&255)<<24},rh=function(e,t){var r,n;if(!(!t||t.length===0)){try{for(var i=kt(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(!s||!e||typeof e!="object")return;e=e[s]}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}if(e!=null)return e}},gP="(\\d+)\\.(\\d+)",mP="(\\d+)",yP="(-(([-\\w]+\\.?)*))?",bP="^".concat(gP,"(\\.").concat(mP).concat(yP,")?$"),EP=(function(){function e(t,r,n,i){i===void 0&&(i=void 0),this.major=t,this.minor=r,this.patch=n,this.preRelease=i}return e.parse=function(t){if(t){var r=new RegExp(bP).exec(t);if(r){var n=Number(r[1]),i=Number(r[2]);if(!(isNaN(n)||isNaN(i))){var o=Number(r[4])||0,s=r[5]||void 0;return new e(n,i,o,s)}}}},e.prototype.compareTo=function(t){return this.major>t.major?1:this.major<t.major?-1:this.minor>t.minor?1:this.minor<t.minor?-1:this.patch>t.patch?1:this.patch<t.patch||this.preRelease&&!t.preRelease?-1:!this.preRelease&&t.preRelease?1:this.preRelease&&t.preRelease?this.preRelease>t.preRelease?1:this.preRelease<t.preRelease?-1:0:0},e})(),_P=(function(){function e(){}return e.prototype.evaluate=function(t,r){var n,i,o={},s={context:t,result:o};try{for(var a=kt(r),u=a.next();!u.done;u=a.next()){var c=u.value,l=this.evaluateFlag(s,c);l&&(o[c.key]=l)}}catch(f){n={error:f}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o},e.prototype.evaluateFlag=function(t,r){var n,i,o;try{for(var s=kt(r.segments),a=s.next();!a.done;a=s.next()){var u=a.value;if(o=this.evaluateSegment(t,r,u),o){var c=Or(Or(Or({},r.metadata),u.metadata),o.metadata);o=Or(Or({},o),{metadata:c});break}}}catch(l){n={error:l}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},e.prototype.evaluateSegment=function(t,r,n){if(!n.conditions){var i=this.bucket(t,n);return i!==void 0?r.variants[i]:void 0}var o=this.evaluateConditions(t,n.conditions);if(o){var i=this.bucket(t,n);return i!==void 0?r.variants[i]:void 0}},e.prototype.evaluateConditions=function(t,r){var n,i,o,s;try{for(var a=kt(r),u=a.next();!u.done;u=a.next()){var c=u.value,l=!0;try{for(var f=(o=void 0,kt(c)),d=f.next();!d.done;d=f.next()){var h=d.value;if(l=this.matchCondition(t,h),!l)break}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}if(l)return!0}}catch(v){n={error:v}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!1},e.prototype.matchCondition=function(t,r){var n=rh(t,r.selector);if(n==null)return this.matchNull(r.op,r.values);if(this.isSetOperator(r.op)){var i=this.coerceStringArray(n);return i?this.matchSet(i,r.op,r.values):!1}else{var o=this.coerceString(n);return o!==void 0?this.matchString(o,r.op,r.values):!1}},e.prototype.getHash=function(t){return fP(t)},e.prototype.bucket=function(t,r){var n,i,o,s;if(!r.bucket)return r.variant;var a=this.coerceString(rh(t,r.bucket.selector));if(!a||a.length===0)return r.variant;var u="".concat(r.bucket.salt,"/").concat(a),c=this.getHash(u),l=c%100,f=Math.floor(c/100);try{for(var d=kt(r.bucket.allocations),h=d.next();!h.done;h=d.next()){var v=h.value,p=v.range[0],b=v.range[1];if(l>=p&&l<b)try{for(var E=(o=void 0,kt(v.distributions)),m=E.next();!m.done;m=E.next()){var g=m.value,y=g.range[0],_=g.range[1];if(f>=y&&f<_)return g.variant}}catch(S){o={error:S}}finally{try{m&&!m.done&&(s=E.return)&&s.call(E)}finally{if(o)throw o.error}}}}catch(S){n={error:S}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}return r.variant},e.prototype.matchNull=function(t,r){var n=this.containsNone(r);switch(t){case se.IS:case se.CONTAINS:case se.LESS_THAN:case se.LESS_THAN_EQUALS:case se.GREATER_THAN:case se.GREATER_THAN_EQUALS:case se.VERSION_LESS_THAN:case se.VERSION_LESS_THAN_EQUALS:case se.VERSION_GREATER_THAN:case se.VERSION_GREATER_THAN_EQUALS:case se.SET_IS:case se.SET_CONTAINS:case se.SET_CONTAINS_ANY:return n;case se.IS_NOT:case se.DOES_NOT_CONTAIN:case se.SET_DOES_NOT_CONTAIN:case se.SET_DOES_NOT_CONTAIN_ANY:return!n;default:return!1}},e.prototype.matchSet=function(t,r,n){switch(r){case se.SET_IS:return this.setEquals(t,n);case se.SET_IS_NOT:return!this.setEquals(t,n);case se.SET_CONTAINS:return this.matchesSetContainsAll(t,n);case se.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(t,n);case se.SET_CONTAINS_ANY:return this.matchesSetContainsAny(t,n);case se.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(t,n);default:return!1}},e.prototype.matchString=function(t,r,n){var i=this;switch(r){case se.IS:return this.matchesIs(t,n);case se.IS_NOT:return!this.matchesIs(t,n);case se.CONTAINS:return this.matchesContains(t,n);case se.DOES_NOT_CONTAIN:return!this.matchesContains(t,n);case se.LESS_THAN:case se.LESS_THAN_EQUALS:case se.GREATER_THAN:case se.GREATER_THAN_EQUALS:return this.matchesComparable(t,r,n,function(o){return i.parseNumber(o)},this.comparator);case se.VERSION_LESS_THAN:case se.VERSION_LESS_THAN_EQUALS:case se.VERSION_GREATER_THAN:case se.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(t,r,n,function(o){return EP.parse(o)},this.versionComparator);case se.REGEX_MATCH:return this.matchesRegex(t,n);case se.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(t,n);default:return!1}},e.prototype.matchesIs=function(t,r){if(this.containsBooleans(r)){var n=t.toLowerCase();if(n==="true"||n==="false")return r.some(function(i){return i.toLowerCase()===n})}return r.some(function(i){return t===i})},e.prototype.matchesContains=function(t,r){var n,i;try{for(var o=kt(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(t.toLowerCase().includes(a.toLowerCase()))return!0}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1},e.prototype.matchesComparable=function(t,r,n,i,o){var s=this,a=i(t),u=n.map(function(c){return i(c)}).filter(function(c){return c!==void 0});return a===void 0||u.length===0?n.some(function(c){return s.comparator(t,r,c)}):u.some(function(c){return o(a,r,c)})},e.prototype.comparator=function(t,r,n){switch(r){case se.LESS_THAN:case se.VERSION_LESS_THAN:return t<n;case se.LESS_THAN_EQUALS:case se.VERSION_LESS_THAN_EQUALS:return t<=n;case se.GREATER_THAN:case se.VERSION_GREATER_THAN:return t>n;case se.GREATER_THAN_EQUALS:case se.VERSION_GREATER_THAN_EQUALS:return t>=n;default:return!1}},e.prototype.versionComparator=function(t,r,n){var i=t.compareTo(n);switch(r){case se.LESS_THAN:case se.VERSION_LESS_THAN:return i<0;case se.LESS_THAN_EQUALS:case se.VERSION_LESS_THAN_EQUALS:return i<=0;case se.GREATER_THAN:case se.VERSION_GREATER_THAN:return i>0;case se.GREATER_THAN_EQUALS:case se.VERSION_GREATER_THAN_EQUALS:return i>=0;default:return!1}},e.prototype.matchesRegex=function(t,r){return r.some(function(n){return!!new RegExp(n).exec(t)})},e.prototype.containsNone=function(t){return t.some(function(r){return r==="(none)"})},e.prototype.containsBooleans=function(t){return t.some(function(r){switch(r.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(t){var r;return(r=Number(t))!==null&&r!==void 0?r:void 0},e.prototype.coerceString=function(t){if(t!=null)return typeof t=="object"?JSON.stringify(t):String(t)},e.prototype.coerceStringArray=function(t){var r=this;if(Array.isArray(t)){var n=t;return n.map(function(a){return r.coerceString(a)}).filter(Boolean)}var i=String(t);try{var o=JSON.parse(i);if(Array.isArray(o)){var n=t;return n.map(function(u){return r.coerceString(u)}).filter(Boolean)}else{var s=this.coerceString(i);return s?[s]:void 0}}catch{var s=this.coerceString(i);return s?[s]:void 0}},e.prototype.isSetOperator=function(t){switch(t){case se.SET_IS:case se.SET_IS_NOT:case se.SET_CONTAINS:case se.SET_DOES_NOT_CONTAIN:case se.SET_CONTAINS_ANY:case se.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(t,r){var n=new Set(t),i=new Set(r);return n.size===i.size&&$l([],Vl(i),!1).every(function(o){return n.has(o)})},e.prototype.matchesSetContainsAll=function(t,r){var n,i;if(t.length<r.length)return!1;try{for(var o=kt(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(!this.matchesIs(a,t))return!1}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!0},e.prototype.matchesSetContainsAny=function(t,r){var n,i;try{for(var o=kt(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(this.matchesIs(a,t))return!0}}catch(u){n={error:u}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1},e})(),SP=function(e,t){var r,n,i=Or({},e),o=[],s=t||Object.keys(i);try{for(var a=kt(s),u=a.next();!u.done;u=a.next()){var c=u.value,l=Rm(c,i);l&&o.push.apply(o,$l([],Vl(l),!1))}}catch(f){r={error:f}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},Rm=function(e,t,r){var n,i;r===void 0&&(r=[]);var o=t[e];if(o){if(!o.dependencies||o.dependencies.length===0)return delete t[o.key],[o]}else return;r.push(o.key);var s=[],a=function(f){if(r.some(function(h){return h===f}))throw Error("Detected a cycle between flags ".concat(r));var d=Rm(f,t,r);d&&s.push.apply(s,$l([],Vl(d),!1))};try{for(var u=kt(o.dependencies),c=u.next();!c.done;c=u.next()){var l=c.value;a(l)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return s.push(o),r.pop(),delete t[o.key],s};const Pm="3.7.7",wP=Pm,ri=typeof Buffer=="function",nh=typeof TextDecoder=="function"?new TextDecoder:void 0,ih=typeof TextEncoder=="function"?new TextEncoder:void 0,TP="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_i=Array.prototype.slice.call(TP),Oo=(e=>{let t={};return e.forEach((r,n)=>t[r]=n),t})(_i),AP=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,rt=String.fromCharCode.bind(String),oh=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Om=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),xm=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Nm=e=>{let t,r,n,i,o="";const s=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=_i[t>>18&63]+_i[t>>12&63]+_i[t>>6&63]+_i[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},Wl=typeof btoa=="function"?e=>btoa(e):ri?e=>Buffer.from(e,"binary").toString("base64"):Nm,Gu=ri?e=>Buffer.from(e).toString("base64"):e=>{let r=[];for(let n=0,i=e.length;n<i;n+=4096)r.push(rt.apply(null,e.subarray(n,n+4096)));return Wl(r.join(""))},zo=(e,t=!1)=>t?Om(Gu(e)):Gu(e),IP=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?rt(192|t>>>6)+rt(128|t&63):rt(224|t>>>12&15)+rt(128|t>>>6&63)+rt(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return rt(240|t>>>18&7)+rt(128|t>>>12&63)+rt(128|t>>>6&63)+rt(128|t&63)}},CP=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Lm=e=>e.replace(CP,IP),sh=ri?e=>Buffer.from(e,"utf8").toString("base64"):ih?e=>Gu(ih.encode(e)):e=>Wl(Lm(e)),Hn=(e,t=!1)=>t?Om(sh(e)):sh(e),ah=e=>Hn(e,!0),kP=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,RP=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return rt((r>>>10)+55296)+rt((r&1023)+56320);case 3:return rt((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return rt((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Mm=e=>e.replace(kP,RP),Dm=e=>{if(e=e.replace(/\s+/g,""),!AP.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,r="",n,i;for(let o=0;o<e.length;)t=Oo[e.charAt(o++)]<<18|Oo[e.charAt(o++)]<<12|(n=Oo[e.charAt(o++)])<<6|(i=Oo[e.charAt(o++)]),r+=n===64?rt(t>>16&255):i===64?rt(t>>16&255,t>>8&255):rt(t>>16&255,t>>8&255,t&255);return r},Gl=typeof atob=="function"?e=>atob(xm(e)):ri?e=>Buffer.from(e,"base64").toString("binary"):Dm,Um=ri?e=>oh(Buffer.from(e,"base64")):e=>oh(Gl(e).split("").map(t=>t.charCodeAt(0))),Fm=e=>Um(Hm(e)),PP=ri?e=>Buffer.from(e,"base64").toString("utf8"):nh?e=>nh.decode(Um(e)):e=>Mm(Gl(e)),Hm=e=>xm(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Ku=e=>PP(Hm(e)),OP=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},Bm=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),jm=function(){const e=(t,r)=>Object.defineProperty(String.prototype,t,Bm(r));e("fromBase64",function(){return Ku(this)}),e("toBase64",function(t){return Hn(this,t)}),e("toBase64URI",function(){return Hn(this,!0)}),e("toBase64URL",function(){return Hn(this,!0)}),e("toUint8Array",function(){return Fm(this)})},qm=function(){const e=(t,r)=>Object.defineProperty(Uint8Array.prototype,t,Bm(r));e("toBase64",function(t){return zo(this,t)}),e("toBase64URI",function(){return zo(this,!0)}),e("toBase64URL",function(){return zo(this,!0)})},xP=()=>{jm(),qm()},zu={version:Pm,VERSION:wP,atob:Gl,atobPolyfill:Dm,btoa:Wl,btoaPolyfill:Nm,fromBase64:Ku,toBase64:Hn,encode:Hn,encodeURI:ah,encodeURL:ah,utob:Lm,btou:Mm,decode:Ku,isValid:OP,fromUint8Array:zo,toUint8Array:Fm,extendString:jm,extendUint8Array:qm,extendBuiltins:xP};var Vm=(function(e){Im(t,e);function t(r,n){var i=e.call(this,n)||this;return i.statusCode=r,Object.setPrototypeOf(i,t.prototype),i}return t})(Error),Xu=(function(e){Im(t,e);function t(r){var n=e.call(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return t})(Error),NP=(function(){function e(t,r,n){this.deploymentKey=t,this.serverUrl=r,this.httpClient=n}return e.prototype.getVariants=function(t,r){return Cm(this,void 0,void 0,function(){var n,i,o,s;return km(this,function(a){switch(a.label){case 0:return n=zu.encodeURL(JSON.stringify(t)),i={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":n},r?.flagKeys&&(i["X-Amp-Exp-Flag-Keys"]=zu.encodeURL(JSON.stringify(r.flagKeys))),r?.trackingOption&&(i["X-Amp-Exp-Track"]=r.trackingOption),r?.exposureTrackingOption&&(i["X-Amp-Exp-Exposure-Track"]=r.exposureTrackingOption),o=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),r?.evaluationMode&&o.searchParams.append("eval_mode",r?.evaluationMode),r?.deliveryMethod&&o.searchParams.append("delivery_method",r?.deliveryMethod),[4,this.httpClient.request({requestUrl:o.toString(),method:"GET",headers:i,timeoutMillis:r?.timeoutMillis})];case 1:if(s=a.sent(),s.status!=200)throw new Vm(s.status,"Fetch error response: status=".concat(s.status));return[2,JSON.parse(s.body)]}})})},e})(),LP=(function(){function e(t,r,n){this.deploymentKey=t,this.serverUrl=r,this.httpClient=n}return e.prototype.getFlags=function(t){return Cm(this,void 0,void 0,function(){var r,n,i;return km(this,function(o){switch(o.label){case 0:return r={Authorization:"Api-Key ".concat(this.deploymentKey)},t?.libraryName&&t?.libraryVersion&&(r["X-Amp-Exp-Library"]="".concat(t.libraryName,"/").concat(t.libraryVersion)),t?.user&&(r["X-Amp-Exp-User"]=zu.encodeURL(JSON.stringify(t.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+(t?.deliveryMethod?"?delivery_method=".concat(t.deliveryMethod):""),method:"GET",headers:r,timeoutMillis:t?.timeoutMillis})];case 1:if(n=o.sent(),n.status!=200)throw Error("Flags error response: status=".concat(n.status));return i=JSON.parse(n.body),[2,i.reduce(function(s,a){return s[a.key]=a,s},{})]}})})},e})(),Ge=typeof globalThis<"u"?globalThis:global||self,hn=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},MP=function(){var e=hn();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch{return!1}return!1},DP=(function(){function e(t,r){this.poller=void 0,this.action=t,this.ms=r}return e.prototype.start=function(){this.poller||(this.poller=Ge.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(Ge.clearInterval(this.poller),this.poller=void 0)},e})(),Si={exports:{}},UP=Si.exports,uh;function FP(){return uh||(uh=1,(function(e,t){(function(r,n){var i="0.7.33",o="",s="?",a="function",u="undefined",c="object",l="string",f="major",d="model",h="name",v="type",p="vendor",b="version",E="architecture",m="console",g="mobile",y="tablet",_="smarttv",S="wearable",A="embedded",I=350,C="Amazon",R="Apple",P="ASUS",k="BlackBerry",N="Browser",$="Chrome",ee="Edge",B="Firefox",z="Google",K="Huawei",Q="LG",ae="Microsoft",fe="Motorola",pe="Opera",ye="Samsung",be="Sharp",de="Sony",me="Xiaomi",M="Zebra",Z="Facebook",X=function(W,j){var J={};for(var ne in W)j[ne]&&j[ne].length%2===0?J[ne]=j[ne].concat(W[ne]):J[ne]=W[ne];return J},re=function(W){for(var j={},J=0;J<W.length;J++)j[W[J].toUpperCase()]=W[J];return j},F=function(W,j){return typeof W===l?ge(j).indexOf(ge(W))!==-1:!1},ge=function(W){return W.toLowerCase()},w=function(W){return typeof W===l?W.replace(/[^\d\.]/g,o).split(".")[0]:n},T=function(W,j){if(typeof W===l)return W=W.replace(/^\s\s*/,o),typeof j===u?W:W.substring(0,I)},L=function(W,j){for(var J=0,ne,ie,Se,ue,$e,Oe;J<j.length&&!$e;){var gt=j[J],it=j[J+1];for(ne=ie=0;ne<gt.length&&!$e;)if($e=gt[ne++].exec(W),$e)for(Se=0;Se<it.length;Se++)Oe=$e[++ie],ue=it[Se],typeof ue===c&&ue.length>0?ue.length===2?typeof ue[1]==a?this[ue[0]]=ue[1].call(this,Oe):this[ue[0]]=ue[1]:ue.length===3?typeof ue[1]===a&&!(ue[1].exec&&ue[1].test)?this[ue[0]]=Oe?ue[1].call(this,Oe,ue[2]):n:this[ue[0]]=Oe?Oe.replace(ue[1],ue[2]):n:ue.length===4&&(this[ue[0]]=Oe?ue[3].call(this,Oe.replace(ue[1],ue[2])):n):this[ue]=Oe||n;J+=2}},H=function(W,j){for(var J in j)if(typeof j[J]===c&&j[J].length>0){for(var ne=0;ne<j[J].length;ne++)if(F(j[J][ne],W))return J===s?n:J}else if(F(j[J],W))return J===s?n:J;return W},U={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},te={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,b],[/opios[\/ ]+([\w\.]+)/i],[b,[h,pe+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[h,pe]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[h,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[h,"UC"+N]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[b,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[b,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[h,"IE"]],[/yabrowser\/([\w\.]+)/i],[b,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+N],b],[/\bfocus\/([\w\.]+)/i],[b,[h,B+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[h,pe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[h,pe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[h,"MIUI "+N]],[/fxios\/([-\w\.]+)/i],[b,[h,B]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+N]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+N],b],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,b],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,Z],b],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[h,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[h,$+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,$+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[h,"Android "+N]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[b,H,U]],[/(webkit|khtml)\/([\w\.]+)/i],[h,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[h,B+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[h,b],[/(cobalt)\/([\w\.]+)/i],[h,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,ge]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,o,ge]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,ge]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,ye],[v,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,ye],[v,g]],[/((ipod|iphone)\d+,\d+)/i],[d,[p,R],[v,g]],[/(ipad\d+,\d+)/i],[d,[p,R],[v,y]],[/\((ip(?:hone|od)[\w ]*);/i],[d,[p,R],[v,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,R],[v,y]],[/(macintosh);/i],[d,[p,R]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,K],[v,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,K],[v,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,me],[v,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,me],[v,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[v,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[v,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[v,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,fe],[v,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,fe],[v,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,Q],[v,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,Q],[v,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[v,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[v,g]],[/(pixel c)\b/i],[d,[p,z],[v,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,z],[v,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,de],[v,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,de],[v,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[v,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,C],[v,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,C],[v,g]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[v,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,k],[v,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,P],[v,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,P],[v,g]],[/(nexus 9)/i],[d,[p,"HTC"],[v,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[v,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[v,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[v,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,be],[v,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[v,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[v,y]],[/(surface duo)/i],[d,[p,ae],[v,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[v,g]],[/(u304aa)/i],[d,[p,"AT&T"],[v,g]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[v,g]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[v,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[v,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[v,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[v,y]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[v,y]],[/\b(k88) b/i],[d,[p,"ZTE"],[v,y]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[v,g]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[v,g]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[v,y]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[v,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[v,y]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[v,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[v,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[v,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[v,g]],[/\b(ph-1) /i],[d,[p,"Essential"],[v,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[v,y]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[v,y]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[v,y]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[v,y]],[/(sprint) (\w+)/i],[p,d,[v,g]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,ae],[v,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,M],[v,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,M],[v,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[v,m]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[v,m]],[/(playstation [345portablevi]+)/i],[d,[p,de],[v,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,ae],[v,m]],[/smart-tv.+(samsung)/i],[p,[v,_]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,ye],[v,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,Q],[v,_]],[/(apple) ?tv/i],[p,[d,R+" TV"],[v,_]],[/crkey/i],[[d,$+"cast"],[p,z],[v,_]],[/droid.+aft(\w)( bui|\))/i],[d,[p,C],[v,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,be],[v,_]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,de],[v,_]],[/(mitv-\w{5}) bui/i],[d,[p,me],[v,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[p,T],[d,T],[v,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,_]],[/((pebble))app/i],[p,d,[v,S]],[/droid.+; (glass) \d/i],[d,[p,z],[v,S]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,M],[v,S]],[/(quest( 2)?)/i],[d,[p,Z],[v,S]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[v,A]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[v,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[v,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,g]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[h,ee+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[h,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,b],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[b,H,q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[b,H,q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,"Mac OS"],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,b],[/\(bb(10);/i],[b,[h,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[h,B+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[h,"webOS"]],[/crkey\/([\d\.]+)/i],[b,[h,$+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[h,"Chromium OS"],b],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,b],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[h,b]]},G=function(W,j){if(typeof W===c&&(j=W,W=n),!(this instanceof G))return new G(W,j).getResult();var J=W||(typeof r!==u&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:o),ne=j?X(te,j):te;return this.getBrowser=function(){var ie={};return ie[h]=n,ie[b]=n,L.call(ie,J,ne.browser),ie.major=w(ie.version),ie},this.getCPU=function(){var ie={};return ie[E]=n,L.call(ie,J,ne.cpu),ie},this.getDevice=function(){var ie={};return ie[p]=n,ie[d]=n,ie[v]=n,L.call(ie,J,ne.device),ie},this.getEngine=function(){var ie={};return ie[h]=n,ie[b]=n,L.call(ie,J,ne.engine),ie},this.getOS=function(){var ie={};return ie[h]=n,ie[b]=n,L.call(ie,J,ne.os),ie},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return J},this.setUA=function(ie){return J=typeof ie===l&&ie.length>I?T(ie,I):ie,this},this.setUA(J),this};G.VERSION=i,G.BROWSER=re([h,b,f]),G.CPU=re([E]),G.DEVICE=re([d,p,v,m,g,_,y,S,A]),G.ENGINE=G.OS=re([h,b]),e.exports&&(t=e.exports=G),t.UAParser=G;var Y=typeof r!==u&&(r.jQuery||r.Zepto);if(Y&&!Y.ua){var V=new G;Y.ua=V.getResult(),Y.ua.get=function(){return V.getUA()},Y.ua.set=function(W){V.setUA(W);var j=V.getResult();for(var J in j)Y.ua[J]=j[J]}}})(typeof window=="object"?window:UP)})(Si,Si.exports)),Si.exports}var HP=FP(),Te=function(){return Te=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Te.apply(this,arguments)};function Qe(e,t,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(f){s(f)}}function u(l){try{c(n.throw(l))}catch(f){s(f)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(e,t||[])).next())})}function Ze(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Dr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function at(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}function Pt(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var lh=function(e,t){var r,n;t===void 0&&(t=!1);var i=Kl(e,t),o=void 0,s=Ge.document.cookie.split("; ");try{for(var a=Dr(s),u=a.next();!u.done;u=a.next()){var c=u.value,l=at(c.split("=",2),2),f=l[0],d=l[1];f===i&&(o=decodeURIComponent(d))}}catch(b){r={error:b}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}if(o)try{if(t){var h=atob(o);return JSON.parse(decodeURIComponent(h))}var v=o.split("."),p=void 0;return v.length>=2&&v[1]&&(p=atob(v[1])),{deviceId:v[0],userId:p}}catch{return}},BP=function(e){var t=Kl(e,!0);try{var r=Ge.localStorage.getItem(t);if(!r)return;var n=JSON.parse(r);return typeof n!="object"?void 0:n}catch{return}},jP=function(e){var t=Kl(e,!0);try{var r=Ge.sessionStorage.getItem(t);if(!r)return;var n=JSON.parse(r);return typeof n!="object"?void 0:n}catch{return}},Kl=function(e,t){if(t)return e?.length<10?void 0:"AMP_".concat(e.substring(0,10));if(!(e?.length<6))return"amp_".concat(e.substring(0,6))},qP=(function(){function e(t,r,n){this.type="integration",this.apiKey=t,this.identityStore=r.identityStore,this.eventBridge=r.eventBridge,this.contextProvider=r.applicationContextProvider,this.timeoutMillis=n,this.loadPersistedState(),n<=0&&(this.setup=void 0)}return e.prototype.setup=function(t,r){return Qe(this,void 0,void 0,function(){return Ze(this,function(n){return t?.automaticFetchOnAmplitudeIdentityChange&&this.identityStore.addIdentityListener(function(){r?.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var t=this.identityStore.getIdentity();return{user_id:t.userId,device_id:t.deviceId,user_properties:t.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(t){return this.eventBridge.receiver?(this.eventBridge.logEvent({eventType:t.eventType,eventProperties:t.eventProperties}),!0):!1},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var t=lh(this.apiKey,!0);return t?(this.commitIdentityToConnector(t),!0):(t=lh(this.apiKey,!1),t?(this.commitIdentityToConnector(t),!0):(t=BP(this.apiKey),t?(this.commitIdentityToConnector(t),!0):(t=jP(this.apiKey),t?(this.commitIdentityToConnector(t),!0):!1)))},e.prototype.commitIdentityToConnector=function(t){var r=this.identityStore.editIdentity();r.setDeviceId(t.deviceId),t.userId&&r.setUserId(t.userId),r.commit()},e.prototype.waitForConnectorIdentity=function(t){return Qe(this,void 0,void 0,function(){var r,n=this;return Ze(this,function(i){return r=this.identityStore.getIdentity(),!r.userId&&!r.deviceId?[2,Promise.race([new Promise(function(o){var s=function(){o(),n.identityStore.removeIdentityListener(s)};n.identityStore.addIdentityListener(s)}),new Promise(function(o,s){Ge.setTimeout(s,t,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]:[2]})})},e})();function VP(e,t){return t=t||{},new Promise(function(r,n){var i=new XMLHttpRequest,o=[],s=[],a={},u=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return s},get:function(l){return a[l.toLowerCase()]},has:function(l){return l.toLowerCase()in a}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(l,f,d){o.push(f=f.toLowerCase()),s.push([f,d]),a[f]=a[f]?a[f]+","+d:d}),r(u())},i.onerror=n,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})}var $P=Ge.fetch||VP,WP=function(e,t){return t==null||t<=0?e:new Promise(function(r,n){Ge.setTimeout(function(){n(new Xu("Request timeout after "+t+" milliseconds"))},t),e.then(r,n)})},GP=function(e,t,r,n,i){var o=function(){return Qe(void 0,void 0,void 0,function(){var s,a,u;return Ze(this,function(c){switch(c.label){case 0:return[4,$P(e,{method:t,headers:r,body:n})];case 1:return s=c.sent(),u={status:s.status},[4,s.text()];case 2:return a=(u.body=c.sent(),u),[2,a]}})})};return WP(o(),i)},KP=(function(){function e(t){this.client=t}return e.prototype.request=function(t){return Qe(this,void 0,void 0,function(){return Ze(this,function(r){switch(r.label){case 0:return[4,this.client.request(t.requestUrl,t.method,t.headers,null,t.timeoutMillis)];case 1:return[2,r.sent()]}})})},e})(),$m={request:GP},Ft;(function(e){e[e.Disable=0]="Disable",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Info=3]="Info",e[e.Debug=4]="Debug",e[e.Verbose=5]="Verbose"})(Ft||(Ft={}));var lr;(function(e){e.LocalStorage="localStorage",e.InitialVariants="initialVariants"})(lr||(lr={}));var ze;(function(e){e.LocalStorage="storage",e.InitialVariants="initial",e.SecondaryLocalStorage="secondary-storage",e.SecondaryInitialVariants="secondary-initial",e.FallbackInline="fallback-inline",e.FallbackConfig="fallback-config",e.LocalEvaluation="local-evaluation"})(ze||(ze={}));var ch=function(e){return!e||e===ze.FallbackInline||e===ze.FallbackConfig||e===ze.SecondaryInitialVariants},In={debug:!1,logLevel:Ft.Error,loggerProvider:null,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:lr.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,throwOnError:!1,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:$m},fh="1.20.4",zP=512,XP=(function(){function e(t,r){var n=this,i;this.isReady=new Promise(function(s){n.resolve=s}),this.config=t,this.client=r;var o=(i=t.instanceName)!==null&&i!==void 0?i:In.instanceName;this.queue=new JP(o),this.cache=new YP(o)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.prototype.setIntegration=function(t){var r=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=t,t.setup?this.integration.setup(this.config,this.client).then(function(){r.queue.setTracker(r.integration.track.bind(t)),r.resolve()},function(){r.queue.setTracker(r.integration.track.bind(t)),r.resolve()}):(this.queue.setTracker(this.integration.track.bind(t)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(t,r){if(this.cache.shouldTrack(t,r)){var n=this.getExposureEvent(t);this.queue.push(n)}},e.prototype.getExposureEvent=function(t){var r,n,i,o={eventType:"$exposure",eventProperties:t};return!((r=t.metadata)===null||r===void 0)&&r.exposureEvent?o={eventType:(n=t.metadata)===null||n===void 0?void 0:n.exposureEvent,eventProperties:t}:((i=t.metadata)===null||i===void 0?void 0:i.deliveryMethod)==="web"&&(o={eventType:"$impression",eventProperties:t}),o},e})(),YP=(function(){function e(t){this.isSessionStorageAvailable=QP(),this.inMemoryCache={},this.identity={},this.storageKey="EXP_sent_v3_".concat(t),this.isSessionStorageAvailable&&(Ge.sessionStorage.removeItem("EXP_sent_".concat(t)),Ge.sessionStorage.removeItem("EXP_sent_v2_".concat(t)))}return e.prototype.shouldTrack=function(t,r){var n,i;if(((n=t.metadata)===null||n===void 0?void 0:n.deliveryMethod)==="web")return!0;var o={userId:r?.user_id,deviceId:r?.device_id};this.identityEquals(this.identity,o)||this.clearCache(),this.identity=o,this.loadCache();var s=t.flag_key in this.inMemoryCache,a=this.inMemoryCache[t.flag_key],u=(i=t.variant)!==null&&i!==void 0?i:null,c=a??null,l=!1;return(!s||c!==u)&&(l=!0,this.inMemoryCache[t.flag_key]=u),this.storeCache(),l},e.prototype.clearCache=function(){this.inMemoryCache={},this.isSessionStorageAvailable&&Ge.sessionStorage.removeItem(this.storageKey)},e.prototype.identityEquals=function(t,r){return t.userId&&r.userId?t.userId===r.userId:!t.userId&&!r.userId?t.deviceId===r.deviceId:!1},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var t=Ge.sessionStorage.getItem(this.storageKey);this.inMemoryCache=t?JSON.parse(t):{}}},e.prototype.storeCache=function(){if(this.isSessionStorageAvailable)try{Ge.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))}catch{}},e})(),JP=(function(){function e(t,r){r===void 0&&(r=zP),this.isLocalStorageAvailable=MP(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(t),this.maxQueueSize=r}return e.prototype.push=function(t){this.loadQueue(),this.inMemoryQueue.push(t),this.flush(),this.storeQueue()},e.prototype.setTracker=function(t){var r=this;this.tracker=t,this.poller=Ge.setInterval(function(){r.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){if(this.tracker&&this.inMemoryQueue.length!==0){for(var t=0;t<this.inMemoryQueue.length;t++)try{if(!this.tracker(this.inMemoryQueue[t]))break}catch{break}this.inMemoryQueue=this.inMemoryQueue.slice(t),this.inMemoryQueue.length===0&&this.poller&&(Ge.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var t=Ge.localStorage.getItem(this.storageKey);this.inMemoryQueue=t?JSON.parse(t):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),Ge.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e})(),QP=function(){var e=hn();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch{return!1}return!1},ZP=(function(){function e(t,r){r===void 0&&(r=Ft.Error),this.logger=t,this.logLevel=r}return e.prototype.error=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ft.Error&&(r=this.logger).error.apply(r,Pt([t],at(n),!1))},e.prototype.warn=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ft.Warn&&(r=this.logger).warn.apply(r,Pt([t],at(n),!1))},e.prototype.info=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ft.Info&&(r=this.logger).info.apply(r,Pt([t],at(n),!1))},e.prototype.debug=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ft.Debug&&(r=this.logger).debug.apply(r,Pt([t],at(n),!1))},e.prototype.verbose=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this.logLevel>=Ft.Verbose&&(r=this.logger).verbose.apply(r,Pt([t],at(n),!1))},e})(),eO=(function(){function e(){}return e.prototype.error=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.error.apply(console,Pt([t],at(r),!1))},e.prototype.warn=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.warn.apply(console,Pt([t],at(r),!1))},e.prototype.info=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.info.apply(console,Pt([t],at(r),!1))},e.prototype.debug=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.debug.apply(console,Pt([t],at(r),!1))},e.prototype.verbose=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];console.debug.apply(console,Pt([t],at(r),!1))},e})(),Gs=(function(){function e(){this.globalScope=hn()}return e.prototype.get=function(t){var r;return(r=this.globalScope)===null||r===void 0?void 0:r.localStorage.getItem(t)},e.prototype.put=function(t,r){var n;(n=this.globalScope)===null||n===void 0||n.localStorage.setItem(t,r)},e.prototype.delete=function(t){var r;(r=this.globalScope)===null||r===void 0||r.localStorage.removeItem(t)},e})(),tO=function(e,t,r){var n=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(n);return new Wm(i,r,Gm)},rO=function(e,t,r){r===void 0&&(r=new Gs);var n=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(n,"-flags");return new Wm(i,r)},nO=function(e,t,r){r===void 0&&(r=new Gs);var n=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(n,"-variants-options");return new iO(i,r)},iO=(function(){function e(t,r){this.namespace=t,this.storage=r}return e.prototype.get=function(){return this.value},e.prototype.put=function(t){this.value=t},e.prototype.load=function(){var t=this.storage.get(this.namespace);t&&(this.value=JSON.parse(t))},e.prototype.store=function(){this.value===void 0?this.storage.delete(this.namespace):this.storage.put(this.namespace,JSON.stringify(this.value))},e})(),Wm=(function(){function e(t,r,n){this.cache={},this.namespace=t,this.storage=r,this.transformer=n}return e.prototype.get=function(t){return this.cache[t]},e.prototype.getAll=function(){return Te({},this.cache)},e.prototype.put=function(t,r){this.cache[t]=r},e.prototype.putAll=function(t){var r,n;try{for(var i=Dr(Object.keys(t)),o=i.next();!o.done;o=i.next()){var s=o.value;this.cache[s]=t[s]}}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}},e.prototype.remove=function(t){delete this.cache[t]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var t,r,n=this.storage.get(this.namespace),i;try{i=JSON.parse(n)||{}}catch{return}var o={};try{for(var s=Dr(Object.keys(i)),a=s.next();!a.done;a=s.next()){var u=a.value;try{var c=void 0;this.transformer?c=this.transformer(i[u]):c=i[u],c&&(o[u]=c)}catch{}}}catch(l){t={error:l}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}this.clear(),this.putAll(o)},e.prototype.store=function(t){t===void 0&&(t=this.cache),this.storage.put(this.namespace,JSON.stringify(t))},e})(),Gm=function(e){if(typeof e=="string")return{key:e,value:e};if(typeof e=="object"){var t=e.key,r=e.value,n=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&(i=i||{},i.experimentKey=o);var s={};return t?s.key=t:r&&(s.key=r),r&&(s.value=r),i&&(s.metadata=i),n&&(s.payload=n),o&&(s.expKey=o),s}},Km=(function(){function e(){this.globalScope=hn()}return e.prototype.get=function(t){var r;return(r=this.globalScope)===null||r===void 0?void 0:r.sessionStorage.getItem(t)},e.prototype.put=function(t,r){var n;(n=this.globalScope)===null||n===void 0||n.sessionStorage.setItem(t,r)},e.prototype.delete=function(t){var r;(r=this.globalScope)===null||r===void 0||r.sessionStorage.removeItem(t)},e})(),oO=function(e,t,r,n){var i,o="[Experiment] Exposure",s=r?.value,a="[Experiment] ".concat(t);return{name:o,user:e,key:t,variant:r,userProperty:a,properties:{key:t,variant:s,source:n},userProperties:(i={},i[a]=s,i)}},Dt=function(e){return e==null},Ba=function(e){return Dt(e)?!0:e&&Object.keys(e).length===0},sO=function(e){var t,r;if(!e||typeof e!="object")return{};var n={};try{for(var i=Dr(Object.entries(e)),o=i.next();!o.done;o=i.next()){var s=at(o.value,2),a=s[0],u=s[1];Dt(u)||(n[a]=u)}}catch(c){t={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},dh=function(e){var t;return((t=e?.metadata)===null||t===void 0?void 0:t.evaluationMode)==="local"},aO=(function(){function e(t,r,n,i){this.started=!1,this.done=!1,this.attempts=t,this.min=r,this.max=n,this.scalar=i}return e.prototype.start=function(t){return Qe(this,void 0,void 0,function(){return Ze(this,function(r){switch(r.label){case 0:if(!this.started)this.started=!0;else throw Error("Backoff already started");return[4,this.backoff(t,0,this.min)];case 1:return r.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(t,r,n){return Qe(this,void 0,void 0,function(){var i=this;return Ze(this,function(o){return this.done?[2]:(this.timeoutHandle=Ge.setTimeout(function(){return Qe(i,void 0,void 0,function(){var s,a;return Ze(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,t()];case 1:return u.sent(),[3,3];case 2:return u.sent(),s=r+1,s<this.attempts&&(a=Math.min(n*this.scalar,this.max),this.backoff(t,s,a)),[3,3];case 3:return[2]}})})},n),[2])})})},e})(),uO=function(e){var t,r,n,i;if(!e)return{};var o={user:e},s=hn();s&&(o.page={url:s.location.href});var a={};if(!e.groups)return o;try{for(var u=Dr(Object.keys(e.groups)),c=u.next();!c.done;c=u.next()){var l=c.value,f=e.groups[l];if(f.length>0&&f[0]){var d=f[0],h={group_name:d},v=(i=(n=e.group_properties)===null||n===void 0?void 0:n[l])===null||i===void 0?void 0:i[d];v&&Object.keys(v).length>0&&(h.group_properties=v),a[l]=h}}}catch(p){t={error:p}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return Object.keys(a).length>0&&(o.groups=a),delete o.user.groups,delete o.user.group_properties,o},ut=function(e){return e==null?{}:typeof e=="string"?{key:e,value:e}:e},hh=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var r={};return e.key&&(r.key=e.key),e.value&&(r.value=e.value),e.payload&&(r.payload=e.payload),t&&(r.expKey=t),e.metadata&&(r.metadata=e.metadata),r},lO=(function(){function e(t){this.setProperties={},this.unsetProperties={},this.analyticsProvider=t}return e.prototype.track=function(t){this.setProperties[t.key]!=t.variant.value&&(this.setProperties[t.key]=t.variant.value,delete this.unsetProperties[t.key],this.analyticsProvider.track(t))},e.prototype.setUserProperty=function(t){this.setProperties[t.key]!=t.variant.value&&this.analyticsProvider.setUserProperty(t)},e.prototype.unsetUserProperty=function(t){this.unsetProperties[t.key]||(this.unsetProperties[t.key]="unset",delete this.setProperties[t.key],this.analyticsProvider.unsetUserProperty(t))},e})(),cO=(function(){function e(t){this.tracked={},this.identity={},this.exposureTrackingProvider=t}return e.prototype.track=function(t,r){var n={userId:r?.user_id,deviceId:r?.device_id};this.identityEquals(this.identity,n)||(this.tracked={}),this.identity=n;var i=t.flag_key in this.tracked,o=this.tracked[t.flag_key];i&&o===t.variant||(this.tracked[t.flag_key]=t.variant,this.exposureTrackingProvider.track(t))},e.prototype.identityEquals=function(t,r){return t.userId===r.userId&&t.deviceId===r.deviceId},e})(),fO=1e4,dO=8,hO=500,vO=1e4,pO=1.5,vh=6e4,gO="https://api.lab.eu.amplitude.com",mO="https://flag.lab.eu.amplitude.com",yO=(function(){function e(t,r){var n=this,i,o,s,a;this.engine=new _P,this.isRunning=!1,this.apiKey=t,r=sO(r),this.config=Te(Te(Te({},In),r),{serverUrl:r?.serverUrl||(((i=r?.serverZone)===null||i===void 0?void 0:i.toLowerCase())==="eu"?gO:In.serverUrl),flagsServerUrl:r?.flagsServerUrl||(((o=r?.serverZone)===null||o===void 0?void 0:o.toLowerCase())==="eu"?mO:In.flagsServerUrl),flagConfigPollingIntervalMillis:r.flagConfigPollingIntervalMillis<vh?vh:(s=r.flagConfigPollingIntervalMillis)!==null&&s!==void 0?s:In.flagConfigPollingIntervalMillis}),this.logger=new ZP(this.config.loggerProvider||new eO,e.getLogLevel(r));var u=(a=this.config)===null||a===void 0?void 0:a.internalInstanceNameSuffix;if(this.isWebExperiment=u==="web",this.poller=new DP(function(){return Qe(n,void 0,void 0,function(){var h;return Ze(this,function(v){switch(v.label){case 0:return v.trys.push([0,2,,3]),[4,this.doFlags()];case 1:return v.sent(),[3,3];case 2:return h=v.sent(),this.logger.info(h),[3,3];case 3:return[2]}})})},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var c in this.config.initialVariants)this.config.initialVariants[c]=Gm(this.config.initialVariants[c]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new lO(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.userSessionExposureTracker=new cO(this.config.exposureTrackingProvider)),this.integrationManager=new XP(this.config,this);var l=new KP(this.config.httpClient||$m);this.flagApi=new LP(this.apiKey,this.config.flagsServerUrl,l),this.evaluationApi=new NP(this.apiKey,this.config.serverUrl,l);var f,d=u?"".concat(this.config.instanceName,"-").concat(u):this.config.instanceName;this.isWebExperiment?f=new Km:f=new Gs,this.variants=tO(this.apiKey,d,f),this.flags=rO(this.apiKey,d,f),this.fetchVariantsOptions=nO(this.apiKey,d,f);try{this.flags.load(),this.variants.load(),this.fetchVariantsOptions.load()}catch{}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(t){return Qe(this,void 0,void 0,function(){var r,n,i,o;return Ze(this,function(s){switch(s.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(t),s.label=1;case 1:return s.trys.push([1,6,,7]),r=this.doFlags(),n=(o=this.config.fetchOnStart)!==null&&o!==void 0?o:!0,n?[4,Promise.all([this.fetch(t),r])]:[3,3];case 2:return s.sent(),[3,5];case 3:return[4,r];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:if(i=s.sent(),this.config.throwOnError)throw i;return[3,7];case 7:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(){return Qe(this,arguments,void 0,function(t,r){var n;return t===void 0&&(t=this.user),Ze(this,function(i){switch(i.label){case 0:this.setUser(t||{}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetchInternal(t,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,r)];case 2:return i.sent(),[3,4];case 3:if(n=i.sent(),this.config.throwOnError)throw n;return n instanceof Xu?this.logger.debug(n):this.logger.error(n),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(t,r){var n,i;if(!this.apiKey)return{value:void 0};var o=this.variantAndSource(t,r);return this.config.automaticExposureTracking&&this.exposureInternal(t,o),this.logger.debug("[Experiment] variant for ".concat(t," is ").concat(((n=o.variant)===null||n===void 0?void 0:n.key)||((i=o.variant)===null||i===void 0?void 0:i.value))),o.variant||{}},e.prototype.exposure=function(t){var r=this.variantAndSource(t);this.exposureInternal(t,r)},e.prototype.all=function(){if(!this.apiKey)return{};var t=this.evaluate();for(var r in t){var n=this.flags.get(r);dh(n)||delete t[r]}return Te(Te(Te({},this.secondaryVariants()),this.sourceVariants()),t)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch{}},e.prototype.getUser=function(){var t;if(!this.user)return this.user;if(!((t=this.user)===null||t===void 0)&&t.user_properties){var r=Te({},this.user.user_properties);return Te(Te({},this.user),{user_properties:r})}else return Te({},this.user)},e.prototype.setUser=function(t){var r;if(!t){this.user=null;return}if(!((r=this.user)===null||r===void 0)&&r.user_properties){var n=Te({},t.user_properties);this.user=Te(Te({},t),{user_properties:n})}else this.user=Te({},t)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(t){return this.userProvider=t,this},e.prototype.mergeInitialFlagsWithStorage=function(){var t=this;if(this.config.initialFlags){var r=JSON.parse(this.config.initialFlags);r.forEach(function(n){t.flags.get(n.key)||t.flags.put(n.key,n)})}},e.prototype.evaluate=function(t){var r,n,i=this.addContext(this.user),o=SP(this.flags.getAll(),t),s=uO(i),a=this.engine.evaluate(s,o),u={};try{for(var c=Dr(Object.keys(a)),l=c.next();!l.done;l=c.next()){var f=l.value;u[f]=hh(a[f])}}catch(d){r={error:d}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return u},e.prototype.variantAndSource=function(t,r){var n={};this.config.source===lr.LocalStorage?n=this.localStorageVariantAndSource(t,r):this.config.source===lr.InitialVariants&&(n=this.initialVariantsVariantAndSource(t,r));var i=this.flags.get(t);return(dh(i)||!n.variant&&i)&&(n=this.localEvaluationVariantAndSource(t,i,r)),n},e.prototype.localEvaluationVariantAndSource=function(t,r,n){var i,o={},s=this.evaluate([r.key])[t],a=ze.LocalEvaluation,u=(i=s?.metadata)===null||i===void 0?void 0:i.default;if(!Dt(s)&&!u)return{variant:ut(s),source:a,hasDefaultVariant:!1};if(u&&(o={variant:ut(s),source:a,hasDefaultVariant:!0}),!Dt(n))return{variant:ut(n),source:ze.FallbackInline,hasDefaultVariant:o.hasDefaultVariant};var c=this.config.initialVariants[t];if(!Dt(c))return{variant:ut(c),source:ze.SecondaryInitialVariants,hasDefaultVariant:o.hasDefaultVariant};var l=ut(this.config.fallbackVariant),f={variant:l,source:ze.FallbackConfig,hasDefaultVariant:o.hasDefaultVariant};return Ba(l)?o:f},e.prototype.localStorageVariantAndSource=function(t,r){var n,i={},o=this.variants.get(t),s=(n=o?.metadata)===null||n===void 0?void 0:n.default;if(!Dt(o)&&!s)return{variant:ut(o),source:ze.LocalStorage,hasDefaultVariant:!1};if(s&&(i={variant:ut(o),source:ze.LocalStorage,hasDefaultVariant:!0}),!Dt(r))return{variant:ut(r),source:ze.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var a=this.config.initialVariants[t];if(!Dt(a))return{variant:ut(a),source:ze.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var u=ut(this.config.fallbackVariant),c={variant:u,source:ze.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return Ba(u)?i:c},e.prototype.initialVariantsVariantAndSource=function(t,r){var n,i={},o=this.config.initialVariants[t];if(!Dt(o))return{variant:ut(o),source:ze.InitialVariants,hasDefaultVariant:!1};var s=this.variants.get(t),a=(n=s?.metadata)===null||n===void 0?void 0:n.default;if(!Dt(s)&&!a)return{variant:ut(s),source:ze.LocalStorage,hasDefaultVariant:!1};if(a&&(i={variant:ut(s),source:ze.LocalStorage,hasDefaultVariant:!0}),!Dt(r))return{variant:ut(r),source:ze.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var u=ut(this.config.fallbackVariant),c={variant:u,source:ze.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return Ba(u)?i:c},e.prototype.fetchInternal=function(t,r,n,i){return Qe(this,void 0,void 0,function(){var o,s,a;return Ze(this,function(u){switch(u.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.logger.debug("[Experiment] Fetch all: retry=".concat(n)),n&&this.stopRetries(),u.label=1;case 1:return u.trys.push([1,4,,5]),[4,this.doFetch(t,r,Te({trackingOption:(a=this.fetchVariantsOptions.get())===null||a===void 0?void 0:a.trackingOption},i))];case 2:return o=u.sent(),[4,this.storeVariants(o,i)];case 3:return u.sent(),[2,o];case 4:throw s=u.sent(),n&&this.shouldRetryFetch(s)&&this.startRetries(t,i),s;case 5:return[2]}})})},e.prototype.setTracksAssignment=function(t){return Qe(this,void 0,void 0,function(){return Ze(this,function(r){return this.fetchVariantsOptions.put(Te(Te({},this.fetchVariantsOptions.get()||{}),{trackingOption:t?"track":"no-track"})),this.fetchVariantsOptions.store(),[2]})})},e.prototype.cleanUserPropsForFetch=function(t){var r=Te({},t);return delete r.cookie,r},e.prototype.doFetch=function(t,r,n){return Qe(this,void 0,void 0,function(){var i,o,s,a,u,c,l;return Ze(this,function(f){switch(f.label){case 0:return[4,this.addContextOrWait(t)];case 1:return t=f.sent(),t=this.cleanUserPropsForFetch(t),this.logger.debug("[Experiment] Fetch variants for user: ",t),[4,this.evaluationApi.getVariants(t,Te({timeoutMillis:r},n))];case 2:i=f.sent(),o={};try{for(s=Dr(Object.keys(i)),a=s.next();!a.done;a=s.next())u=a.value,o[u]=hh(i[u])}catch(d){c={error:d}}finally{try{a&&!a.done&&(l=s.return)&&l.call(s)}finally{if(c)throw c.error}}return this.logger.debug("[Experiment] Received variants: ",o),[2,o]}})})},e.prototype.doFlags=function(){return Qe(this,void 0,void 0,function(){var t,r,n;return Ze(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),t=void 0,this.isWebExperiment?[4,this.addContextOrWait(this.getUser())]:[3,2];case 1:t=i.sent(),i.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:fh,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:t?.user_id||t?.device_id?{user_id:t?.user_id,device_id:t?.device_id}:void 0})];case 3:return r=i.sent(),this.flags.clear(),this.flags.putAll(r),[3,5];case 4:if(n=i.sent(),n instanceof Xu){if(this.logger.debug(n),this.config.throwOnError)throw n}else throw n;return[3,5];case 5:try{this.flags.store()}catch{}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(t,r){return Qe(this,void 0,void 0,function(){var n,i,o,s,s;return Ze(this,function(a){n=r&&r.flagKeys?r.flagKeys:[],n.length===0&&this.variants.clear(),i=function(u){n=n.filter(function(c){return c!==u}),o.variants.put(u,t[u])},o=this;for(s in t)i(s);for(s in n)this.variants.remove(s);try{this.variants.store()}catch{}return this.logger.debug("[Experiment] Stored variants: ",t),[2]})})},e.prototype.startRetries=function(t,r){return Qe(this,void 0,void 0,function(){var n=this;return Ze(this,function(i){return this.logger.debug("[Experiment] Retry fetch"),this.retriesBackoff=new aO(dO,hO,vO,pO),this.retriesBackoff.start(function(){return Qe(n,void 0,void 0,function(){return Ze(this,function(o){switch(o.label){case 0:return[4,this.fetchInternal(t,fO,!1,r)];case 1:return o.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(t){var r,n=(r=this.userProvider)===null||r===void 0?void 0:r.getUser(),i=this.integrationManager.getUser(),o=Te(Te(Te({},n?.user_properties),i.user_properties),t?.user_properties);return Te(Te(Te(Te({library:"experiment-js-client/".concat(fh)},n),i),t),{user_properties:o})},e.prototype.addContextOrWait=function(t){return Qe(this,void 0,void 0,function(){return Ze(this,function(r){switch(r.label){case 0:return[4,this.integrationManager.ready()];case 1:return r.sent(),[2,this.addContext(t)]}})})},e.prototype.sourceVariants=function(){if(this.config.source==lr.LocalStorage)return this.variants.getAll();if(this.config.source==lr.InitialVariants)return this.config.initialVariants},e.prototype.secondaryVariants=function(){if(this.config.source==lr.LocalStorage)return this.config.initialVariants;if(this.config.source==lr.InitialVariants)return this.variants.getAll()},e.prototype.exposureInternal=function(t,r){var n,i,o,s,a,u,c,l,f,d=(o=(i=(n=r.variant)===null||n===void 0?void 0:n.metadata)===null||i===void 0?void 0:i.trackExposure)!==null&&o!==void 0?o:!0;if(d){this.legacyExposureInternal(t,r.variant,r.source);var h={flag_key:t},v=ch(r.source);if(!(v&&!r.hasDefaultVariant)){!((s=r.variant)===null||s===void 0)&&s.expKey&&(h.experiment_key=(a=r.variant)===null||a===void 0?void 0:a.expKey);var p=(u=r.variant)===null||u===void 0?void 0:u.metadata;if(!v&&!p?.default&&(!((c=r.variant)===null||c===void 0)&&c.key?h.variant=r.variant.key:!((l=r.variant)===null||l===void 0)&&l.value&&(h.variant=r.variant.value)),p&&(h.metadata=p),this.isWebExperiment&&(h.time=Date.now()),this.isWebExperiment){var b=hn();if(b?.location)try{var E=b.location.href;h.metadata.url=E.split("?")[0]||""}catch{}}var m=this.addContext(this.getUser());(f=this.userSessionExposureTracker)===null||f===void 0||f.track(h,m),this.integrationManager.track(h,m)}}},e.prototype.legacyExposureInternal=function(t,r,n){var i,o,s,a,u;if(this.analyticsProvider){var c=this.addContext(this.getUser()),l=oO(c,t,r,n);ch(n)||!r?.value?(o=(i=this.analyticsProvider)===null||i===void 0?void 0:i.unsetUserProperty)===null||o===void 0||o.call(i,l):r?.value&&((a=(s=this.analyticsProvider)===null||s===void 0?void 0:s.setUserProperty)===null||a===void 0||a.call(s,l),(u=this.analyticsProvider)===null||u===void 0||u.track(l))}},e.getLogLevel=function(t){var r;return t.debug===!0?Ft.Debug:(r=t.logLevel)!==null&&r!==void 0?r:Ft.Error},e.prototype.shouldRetryFetch=function(t){return t instanceof Vm?t.statusCode<400||t.statusCode>=500||t.statusCode===429:!0},e.prototype.addPlugin=function(t){t.type==="integration"&&this.integrationManager.setIntegration(t)},e})(),bO=(function(){function e(t,r){var n,i,o;this.globalScope=hn(),this.userAgent=typeof((n=this.globalScope)===null||n===void 0?void 0:n.navigator)<"u"?(i=this.globalScope)===null||i===void 0?void 0:i.navigator.userAgent:void 0,this.ua=new HP.UAParser(this.userAgent).getResult(),this.localStorage=new Gs,this.sessionStorage=new Km,this.userProvider=t,this.apiKey=r,this.storageKey="EXP_".concat((o=this.apiKey)===null||o===void 0?void 0:o.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var t,r,n,i,o,s=((t=this.userProvider)===null||t===void 0?void 0:t.getUser())||{};return Te({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:(n=(r=this.ua.device)===null||r===void 0?void 0:r.type)!==null&&n!==void 0?n:"desktop",referring_url:(o=(i=this.globalScope)===null||i===void 0?void 0:i.document)===null||o===void 0?void 0:o.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},s)},e.prototype.getLanguage=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(t){var r,n;return[(r=t.browser)===null||r===void 0?void 0:r.name,(n=t.browser)===null||n===void 0?void 0:n.major].filter(function(i){return i!=null}).join(" ")},e.prototype.getDeviceModel=function(t){var r;return(r=t.os)===null||r===void 0?void 0:r.name},e.prototype.getBrowser=function(t){var r,n=(r=t.browser)===null||r===void 0?void 0:r.name;return n?.includes("Chrom")&&(n="Chrome"),n?.includes("Firefox")&&(n="Firefox"),n?.includes("Safari")&&(n="Safari"),n?.includes("Edge")&&(n="Edge"),n?.includes("Opera")&&(n="Opera"),n},e.prototype.getCookie=function(){var t,r,n,i,o;if(!((r=(t=this.globalScope)===null||t===void 0?void 0:t.document)===null||r===void 0)&&r.cookie)return Object.fromEntries((o=(i=(n=this.globalScope)===null||n===void 0?void 0:n.document)===null||i===void 0?void 0:i.cookie)===null||o===void 0?void 0:o.split("; ").map(function(s){return s.split("=")}))},e.prototype.getLandingUrl=function(){var t,r;try{var n=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return n.landing_url||(n.landing_url=(r=(t=this.globalScope)===null||t===void 0?void 0:t.location)===null||r===void 0?void 0:r.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(n))),n.landing_url}catch{return}},e.prototype.getFirstSeen=function(){try{var t=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return t.first_seen||(t.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(t))),t.first_seen}catch{return}},e.prototype.getUrlParam=function(){var t,r,n;if(this.globalScope){var i={};try{var o=new URL(this.globalScope.location.href);try{for(var s=Dr(o.searchParams),a=s.next();!a.done;a=s.next()){var u=at(a.value,2),c=u[0],l=u[1];i[c]=Pt(Pt([],at((n=i[c])!==null&&n!==void 0?n:[]),!1),at(l.split(",")),!1)}}catch(f){t={error:f}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}}catch{return}return Object.entries(i).reduce(function(f,d){var h=at(d,2),v=h[0],p=h[1];return f[v]=p.length==1?p[0]:p,f},{})}},e})();Ge.experimentInstances={};var ph=Ge.experimentInstances,EO=function(e,t){var r=function(){return new qP(e,Al.getInstance(zm(t)),1e4)};return wO(e,t,r)},zm=function(e){return e?.instanceName||In.instanceName},_O=function(e,t){var r=zm(t),n=t?.internalInstanceNameSuffix;return n?"".concat(r,".").concat(e,".").concat(n):"".concat(r,".").concat(e)},SO=function(e,t){return new yO(e,Te(Te({},t),{userProvider:new bO(t?.userProvider,e)}))},wO=function(e,t,r){var n=_O(e,t),i=ph[n];return i||(i=SO(e,t),r&&i.addPlugin(r()),ph[n]=i,i)},Xo=(function(){function e(t){this.name=e.pluginName,this.config=t}return e.prototype.setup=function(t,r){var n;return x(this,void 0,void 0,function(){return O(this,function(i){return this.experiment=EO(((n=this.config)===null||n===void 0?void 0:n.deploymentKey)||t.apiKey,this.config),[2]})})},e.pluginName="@amplitude/experiment-analytics-plugin",e})(),TO=function(e){return new Xo(e)},AO=(function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:IO(),platform:"Web",os:void 0,deviceModel:void 0}},e})(),IO=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},CO=(function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(r){t(r)}),this.queue=[])},e})(),Pr=function(){return Pr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Pr.apply(this,arguments)};function Yo(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gh(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return o}var Jo=function(e,t){var r,n,i=["string","number","boolean","undefined"],o=typeof e,s=typeof t;if(o!==s)return!1;try{for(var a=Yo(i),u=a.next();!u.done;u=a.next()){var c=u.value;if(c===o)return e===t}}catch(b){r={error:b}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;var l=Array.isArray(e),f=Array.isArray(t);if(l!==f)return!1;if(l&&f){for(var d=0;d<e.length;d++)if(!Jo(e[d],t[d]))return!1}else{var h=Object.keys(e).sort(),v=Object.keys(t).sort();if(!Jo(h,v))return!1;var p=!0;return Object.keys(e).forEach(function(b){Jo(e[b],t[b])||(p=!1)}),p}return!0},kO="$set",RO="$unset",PO="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,n=new Array(r);r--;)n[r]=[t[r],e[t[r]]];return n});var OO=(function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var t=this,r=Pr({},this.identity.userProperties),n=Pr(Pr({},this.identity),{userProperties:r});return{setUserId:function(i){return n.userId=i,this},setDeviceId:function(i){return n.deviceId=i,this},setUserProperties:function(i){return n.userProperties=i,this},setOptOut:function(i){return n.optOut=i,this},updateUserProperties:function(i){var o,s,a,u,c,l,f=n.userProperties||{};try{for(var d=Yo(Object.entries(i)),h=d.next();!h.done;h=d.next()){var v=gh(h.value,2),p=v[0],b=v[1];switch(p){case kO:try{for(var E=(a=void 0,Yo(Object.entries(b))),m=E.next();!m.done;m=E.next()){var g=gh(m.value,2),y=g[0],_=g[1];f[y]=_}}catch(I){a={error:I}}finally{try{m&&!m.done&&(u=E.return)&&u.call(E)}finally{if(a)throw a.error}}break;case RO:try{for(var S=(c=void 0,Yo(Object.keys(b))),A=S.next();!A.done;A=S.next()){var y=A.value;delete f[y]}}catch(I){c={error:I}}finally{try{A&&!A.done&&(l=S.return)&&l.call(S)}finally{if(c)throw c.error}}break;case PO:f={};break}}}catch(I){o={error:I}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}return n.userProperties=f,this},commit:function(){return t.setIdentity(n),this}}},e.prototype.getIdentity=function(){return Pr({},this.identity)},e.prototype.setIdentity=function(t){var r=Pr({},this.identity);this.identity=Pr({},t),Jo(r,this.identity)||this.listeners.forEach(function(n){n(t)})},e.prototype.addIdentityListener=function(t){this.listeners.add(t)},e.prototype.removeIdentityListener=function(t){this.listeners.delete(t)},e})(),mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:self,xO=(function(){function e(){this.identityStore=new OO,this.eventBridge=new CO,this.applicationContextProvider=new AO}return e.getInstance=function(t){return mi.analyticsConnectorInstances||(mi.analyticsConnectorInstances={}),mi.analyticsConnectorInstances[t]||(mi.analyticsConnectorInstances[t]=new e),mi.analyticsConnectorInstances[t]},e})(),mh=["boot"],NO="$default_instance";function LO(e){var t,r,n,i,o,s,a,u,c;let l=typeof window<"u"?window.engagement:void 0,f=!1,d={_q:(t=l?._q)!=null?t:[],_configuration:{apiKey:(n=(r=l?._configuration)==null?void 0:r.apiKey)!=null?n:"",serverUrl:(i=l?._configuration)==null?void 0:i.serverUrl,chatUrl:(o=l?._configuration)==null?void 0:o.chatUrl,mediaUrl:(s=l?._configuration)==null?void 0:s.mediaUrl,serverZone:(u=(a=l?._configuration)==null?void 0:a.serverZone)!=null?u:"US",options:{...(c=l?._configuration)==null?void 0:c.options}},init(v,p){var b,E,m,g;if(d._configuration.apiKey){console.log("Engagement SDK has already been initialized. Ignoring additional init call.");return}if(p!=null&&p.useEngagementDomain){let I=((b=p.serverZone)!=null?b:d._configuration.serverZone)==="EU",C="amplitudeengagement.com";p.serverUrl||(p.serverUrl=I?`https://gs.eu.${C}`:`https://gs.${C}`),p.chatUrl||(p.chatUrl=I?`https://houston-chat.eu.${C}`:`https://houston-chat.${C}`),p.mediaUrl||(p.mediaUrl=I?`https://engagement-static.eu.${C}`:`https://engagement-static.${C}`),p.cdnUrl||(p.cdnUrl=I?`https://cdn.eu.${C}`:`https://cdn.${C}`)}d._configuration={...d._configuration,...p,apiKey:v,options:{splitting:!0,...d._configuration.options,...p?.options}},(m=(E=d._configuration)==null?void 0:E.options)!=null&&m.logger&&d._configuration.options.logger.enable((g=d._configuration.options.logLevel)!=null?g:2);let y;if(p!=null&&p.cdnUrl)d._configuration.options.splitting?y=`${p.cdnUrl}/engagement-browser/prod/split/index.js`:y=p.cdnUrl+"/engagement-browser/prod/index.min.js.gz";else{let I=d._configuration.serverZone==="EU"?"https://cdn.eu.amplitude.com":"https://cdn.amplitude.com";d._configuration.options.splitting?y=`${I}/engagement-browser/prod/split/index.js`:y=`${I}/engagement-browser/prod/index.min.js.gz`}let _=null,S=()=>{if(f=!0,_&&(clearTimeout(_),_=null),d._q&&d._q.length>0)for(console.warn(`Engagement SDK failed to load within ${A}ms. Resolving pending calls gracefully.`);d._q.length>0;){let I=d._q.shift();if(!I)continue;let C=I[0],R=mh.includes(C);if(console.warn(`Engagement SDK method '${C}' still in queue (isAsyncMethod=${R}); attempting to resolve as no-op.`),R&&I[1]instanceof Function&&I[2]instanceof Function){let P=I[1];console.warn(`Engagement SDK method '${C}' resolved as no-op due to script loading failure`),P(void 0)}}};e(y,d._configuration.options.splitting?"module":void 0,p?.nonce,S);let A=1e4;_=setTimeout(()=>{S()},A)},plugin(v){let p=d.init;return{name:"@amplitude/engagement-browser",type:"enrichment",async setup(b,E){var m;let g=(m=b.instanceName)!=null?m:NO,y=xO.getInstance(g).identityStore;p(b.apiKey,{serverZone:b.serverZone,...v,options:{logLevel:b.logLevel,logger:b.loggerProvider,...v?.options}});let _=[{track:S=>{E.track(S)}}];await window.engagement.boot({user:()=>{let S=y.getIdentity();return{user_id:E.getUserId(),device_id:E.getDeviceId(),user_properties:S.userProperties,getSessionId:E.getSessionId}},integrations:_}),y.addIdentityListener(S=>{var A,I,C,R;if(!((A=window.engagement)!=null&&A._.user)||!((I=window.engagement)!=null&&I._analytics.hasBooted)){console.warn("Engagement SDK not booted. Ignoring identity change.");return}((R=(C=window.engagement)==null?void 0:C._.user)==null?void 0:R.user_id)!==S.userId?(window.engagement.shutdown(),window.engagement.boot({user:()=>{let P=y.getIdentity();return{user_id:E.getUserId(),device_id:E.getDeviceId(),user_properties:P.userProperties,getSessionId:E.getSessionId}},integrations:_})):window.engagement._setUserProperties(S.userProperties)})},async execute(b){return window.engagement.forwardEvent(b),b}}}},h=d;return new Proxy(d,{get:function(v,p){if(p in h)return h[p];if(p!=="then")return p==="gs"||p==="rc"?new Proxy({},{get:function(b,E){return function(){let m=Array.from(arguments),g=`${p}.${E}`;m.unshift(g),d._q.push(m)}}}):mh.includes(p)?function(){let b=Array.prototype.slice.call(arguments);return new Promise((E,m)=>{b.unshift(p,E,m),d._q.push(b),f&&E(void 0)})}:function(){let b=Array.prototype.slice.call(arguments);b.unshift(p),d._q.push(b)}}})}var Xm=(e=>(e.Local="https://local.amplitude.com:3010/",e.Staging="https://apps.stag2.amplitude.com/",e.Production="https://app.amplitude.com/",e.ProductionEU="https://app.eu.amplitude.com/",e))(Xm||{}),MO=e=>{if(typeof window<"u"&&window.opener)for(let t of Object.values(Xm))window.opener.postMessage({message:e},t)};function DO(e,t,r,n){for(let i of e){let o=document.createElement("script");o.src=i,o.id="engagement-sdk-bundle",r&&o.setAttribute("nonce",r),t&&o.setAttribute("type",t),n&&(o.onerror=n),document.getElementsByTagName("head")[0].appendChild(o)}}var UO=()=>(MO("ENGAGEMENT_SNIPPET"),LO((e,t,r,n)=>DO([e||"https://cdn.amplitude.com/engagement-browser/prod/index.min.js.gz"],t,r,n))),yh=UO(),FO=e=>(typeof window<"u"&&!window.engagement&&(window.engagement=yh),yh.plugin(e)),HO="1.0.15",BO="amplitude-ts-unified",jO=function(){return{type:"enrichment",name:"@amplitude/unified-library-plugin",execute:function(e){var t;return x(this,void 0,void 0,function(){return O(this,function(r){return e.library="".concat(BO,"/").concat(HO,"-").concat((t=e.library)!==null&&t!==void 0?t:""),[2,e]})})}}},qO=(function(e){Mt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.sessionReplay=function(){return this._sessionReplay},t.prototype.experiment=function(){if(this.config!==void 0){var r=this.plugins(Xo);if(r.length===0){this.config.loggerProvider.debug("".concat(Xo.pluginName," plugin is not found."));return}else{if(r.length===1)return r[0].experiment;this.config.loggerProvider.debug("Multiple instances of ".concat(Xo.pluginName," are found."));return}}},t.prototype.initAll=function(r,n){return x(this,void 0,void 0,function(){var i=this;return O(this,function(o){return this._initAllPromise?[2,this._initAllPromise]:(this._initAllPromise=(function(){return x(i,void 0,void 0,function(){var s,a;return O(this,function(u){switch(u.label){case 0:return s={serverZone:n?.serverZone,instanceName:n?.instanceName},e.prototype.add.call(this,jO()),[4,e.prototype.init.call(this,r,D(D({},n?.analytics),s)).promise];case 1:return u.sent(),[4,e.prototype.add.call(this,sP(D(D({},n?.sessionReplay),s))).promise];case 2:return u.sent(),[4,e.prototype.add.call(this,TO(D(D({},n?.experiment),s))).promise];case 3:return u.sent(),a=this.plugin($u.pluginName),a===void 0?this.config.loggerProvider.debug("".concat($u.pluginName," plugin is not found.")):this._sessionReplay=a.sessionReplay,[4,e.prototype.add.call(this,FO(D(D({},n?.engagement),s))).promise];case 4:return u.sent(),[2]}})})})().finally(function(){i._initAllPromise=void 0}),[2,this._initAllPromise])})})},t.prototype.init=function(r,n,i){r===void 0&&(r="");var o=e.prototype.init.call(this,r,n,i);return o},t})(vk),Ym=function(){var e=new qO;return{_setDiagnosticsSampleRate:_e(e._setDiagnosticsSampleRate.bind(e),"_setDiagnosticsSampleRate",Re(e),Pe(e,["config"])),_enableRequestBodyCompressionExperimental:_e(e._enableRequestBodyCompressionExperimental.bind(e),"_enableRequestBodyCompressionExperimental",Re(e),Pe(e,["config"])),experiment:_e(e.experiment.bind(e),"experiment",Re(e),Pe(e,["config"])),sessionReplay:_e(e.sessionReplay.bind(e),"sessionReplay",Re(e),Pe(e,["config"])),initAll:_e(e.initAll.bind(e),"initAll",Re(e),Pe(e,["config"])),init:_e(e.init.bind(e),"init",Re(e),Pe(e,["config"])),add:_e(e.add.bind(e),"add",Re(e),Pe(e,["config.apiKey","timeline.plugins"])),remove:_e(e.remove.bind(e),"remove",Re(e),Pe(e,["config.apiKey","timeline.plugins"])),track:_e(e.track.bind(e),"track",Re(e),Pe(e,["config.apiKey","timeline.queue.length"])),logEvent:_e(e.logEvent.bind(e),"logEvent",Re(e),Pe(e,["config.apiKey","timeline.queue.length"])),identify:_e(e.identify.bind(e),"identify",Re(e),Pe(e,["config.apiKey","timeline.queue.length"])),groupIdentify:_e(e.groupIdentify.bind(e),"groupIdentify",Re(e),Pe(e,["config.apiKey","timeline.queue.length"])),setGroup:_e(e.setGroup.bind(e),"setGroup",Re(e),Pe(e,["config.apiKey","timeline.queue.length"])),revenue:_e(e.revenue.bind(e),"revenue",Re(e),Pe(e,["config.apiKey","timeline.queue.length"])),flush:_e(e.flush.bind(e),"flush",Re(e),Pe(e,["config.apiKey","timeline.queue.length"])),getUserId:_e(e.getUserId.bind(e),"getUserId",Re(e),Pe(e,["config","config.userId"])),setUserId:_e(e.setUserId.bind(e),"setUserId",Re(e),Pe(e,["config","config.userId"])),getDeviceId:_e(e.getDeviceId.bind(e),"getDeviceId",Re(e),Pe(e,["config","config.deviceId"])),setDeviceId:_e(e.setDeviceId.bind(e),"setDeviceId",Re(e),Pe(e,["config","config.deviceId"])),reset:_e(e.reset.bind(e),"reset",Re(e),Pe(e,["config","config.userId","config.deviceId"])),getSessionId:_e(e.getSessionId.bind(e),"getSessionId",Re(e),Pe(e,["config"])),setSessionId:_e(e.setSessionId.bind(e),"setSessionId",Re(e),Pe(e,["config"])),extendSession:_e(e.extendSession.bind(e),"extendSession",Re(e),Pe(e,["config"])),setOptOut:_e(e.setOptOut.bind(e),"setOptOut",Re(e),Pe(e,["config"])),getOptOut:_e(e.getOptOut.bind(e),"getOptOut",Re(e),Pe(e,["config"])),setTransport:_e(e.setTransport.bind(e),"setTransport",Re(e),Pe(e,["config"])),getIdentity:_e(e.getIdentity.bind(e),"getIdentity",Re(e),Pe(e,["config"])),setIdentity:_e(e.setIdentity.bind(e),"setIdentity",Re(e),Pe(e,["config","config.userId","config.deviceId"]))}};const Ne=Ym();var VO=Ne._setDiagnosticsSampleRate,$O=Ne._enableRequestBodyCompressionExperimental,Jm=Ne.initAll,WO=Ne.experiment,GO=Ne.sessionReplay,KO=Ne.add,zO=Ne.extendSession,XO=Ne.flush,YO=Ne.getDeviceId,JO=Ne.getIdentity,QO=Ne.getOptOut,ZO=Ne.getSessionId,ex=Ne.getUserId,tx=Ne.groupIdentify,rx=Ne.identify,nx=Ne.logEvent,ix=Ne.remove,ox=Ne.reset,sx=Ne.revenue,ax=Ne.setDeviceId,ux=Ne.setGroup,lx=Ne.setIdentity,cx=Ne.setOptOut,fx=Ne.setSessionId,dx=Ne.setTransport,hx=Ne.setUserId,vx=Ne.track;const Qm=Object.freeze(Object.defineProperty({__proto__:null,Identify:Dn,Revenue:Hp,Types:QA,_enableRequestBodyCompressionExperimental:$O,_setDiagnosticsSampleRate:VO,add:KO,createInstance:Ym,experiment:WO,extendSession:zO,flush:XO,getDeviceId:YO,getIdentity:JO,getOptOut:QO,getSessionId:ZO,getUserId:ex,groupIdentify:tx,identify:rx,initAll:Jm,logEvent:nx,remove:ix,reset:ox,revenue:sx,sessionReplay:GO,setDeviceId:ax,setGroup:ux,setIdentity:lx,setOptOut:cx,setSessionId:fx,setTransport:dx,setUserId:hx,track:vx},Symbol.toStringTag,{value:"Module"})),px=tr(e=>{const r=to().public.amplitudeApiKey;return r&&Jm(r),{provide:{amplitude:Qm}}}),gx=[K_,Q_,Sw,Tw,Aw,Iw,kw,Rw,Ow,px],mx=(...e)=>e.find(t=>t!==void 0);function yx(e){const t=e.componentName||"NuxtLink";function r(o){return typeof o=="string"&&o.startsWith("#")}function n(o,s,a){const u=a??e.trailingSlash;if(!o||u!=="append"&&u!=="remove")return o;if(typeof o=="string")return xo(o,u);const c="path"in o&&o.path!==void 0?o.path:s(o).path;return{...o,name:void 0,path:xo(c,u)}}function i(o){const s=St(),a=to(),u=We(()=>!!o.target&&o.target!=="_self"),c=We(()=>{const b=o.to||o.href||"";return typeof b=="string"&&Hr(b,{acceptRelative:!0})}),l=sc("RouterLink"),f=l&&typeof l!="string"?l.useLink:void 0,d=We(()=>{if(o.external)return!0;const b=o.to||o.href||"";return typeof b=="object"?!1:b===""||c.value}),h=We(()=>{const b=o.to||o.href||"";return d.value?b:n(b,s.resolve,o.trailingSlash)}),v=d.value?void 0:f?.({...o,to:h}),p=We(()=>{const b=o.trailingSlash??e.trailingSlash;if(!h.value||c.value||r(h.value))return h.value;if(d.value){const E=typeof h.value=="object"&&"path"in h.value?uu(h.value):h.value,m=typeof E=="object"?s.resolve(E).href:E;return xo(m,b)}return typeof h.value=="object"?s.resolve(h.value)?.href??null:xo(gl(a.app.baseURL,h.value),b)});return{to:h,hasTarget:u,isAbsoluteUrl:c,isExternal:d,href:p,isActive:v?.isActive??We(()=>h.value===s.currentRoute.value.path),isExactActive:v?.isExactActive??We(()=>h.value===s.currentRoute.value.path),route:v?.route??We(()=>s.resolve(h.value)),async navigate(b){await up(p.value,{replace:o.replace,external:d.value||u.value})}}}return fn({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:i,setup(o,{slots:s}){const a=St(),{to:u,href:c,navigate:l,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=i(o),v=Bn(!1),p=Jt(null),b=g=>{p.value=o.custom?g?.$el?.nextElementSibling:g?.$el};function E(g){return!v.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===g:o.prefetchOn?.[g]??e.prefetchOn?.[g])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!Sx()}async function m(g=Ve()){if(v.value)return;v.value=!0;const y=typeof u.value=="string"?u.value:f.value?uu(u.value):a.resolve(u.value).fullPath,_=f.value?new URL(y,window.location.href).href:y;await Promise.all([g.hooks.callHook("link:prefetch",_).catch(()=>{}),!f.value&&!d.value&&Np(u.value,a).catch(()=>{})])}if(E("visibility")){const g=Ve();let y,_=null;Rs(()=>{const S=Ex();Ds(()=>{y=mu(()=>{p?.value?.tagName&&(_=S.observe(p.value,async()=>{_?.(),_=null,await m(g)}))})})}),Qn(()=>{y&&ww(y),_?.(),_=null})}return()=>{if(!f.value&&!d.value&&!r(u.value)){const _={ref:b,to:u.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(E("interaction")&&(_.onPointerenter=m.bind(null,void 0),_.onFocus=m.bind(null,void 0)),v.value&&(_.class=o.prefetchedClass||e.prefetchedClass),_.rel=o.rel||void 0),Et(sc("RouterLink"),_,s.default)}const g=o.target||null,y=mx(o.noRel?"":o.rel,e.externalRelAttribute,h.value||d.value?"noopener noreferrer":"")||null;return o.custom?s.default?s.default({href:c.value,navigate:l,prefetch:m,get route(){if(!c.value)return;const _=new URL(c.value,window.location.href);return{path:_.pathname,fullPath:_.pathname,get query(){return pl(_.search)},hash:_.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:y,target:g,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Et("a",{ref:p,href:c.value||null,rel:y,target:g,onClick:_=>{if(!(f.value||d.value))return _.preventDefault(),o.replace?a.replace(c.value):a.push(c.value)}},s.default?.())}}})}const bx=yx(HE);function xo(e,t){const r=t==="append"?Xv:Ki;return Hr(e)&&!e.startsWith("http")?e:r(e,!0)}function Ex(){const e=Ve();if(e._observer)return e._observer;let t=null;const r=new Map,n=(o,s)=>(t||=new IntersectionObserver(a=>{for(const u of a){const c=r.get(u.target);(u.isIntersecting||u.intersectionRatio>0)&&c&&c()}}),r.set(o,s),t.observe(o),()=>{r.delete(o),t?.unobserve(o),r.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:n}}const _x=/2g/;function Sx(){const e=navigator.connection;return!!(e&&(e.saveData||_x.test(e.effectiveType)))}function wx(){return Qm}const Tx="$s";function Ax(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[r,n]=e;if(!r||typeof r!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+r);if(n!==void 0&&typeof n!="function")throw new Error("[nuxt] [useState] init must be a function: "+n);const i=Tx+r,o=Ve(),s=Jh(o.payload.state,i);if(s.value===void 0&&n){const a=n();if(qe(a))return o.payload.state[i]=a,a;s.value=a}return s}const yi=new Map;function Ix(){const e=Ax("auth-user",()=>{{const o=localStorage.getItem("currentUser");if(o){const s=yi.get(o);if(s)return s}}return null});return{user:e,login:async(o,s)=>{try{const a=await $fetch("/api/auth/login",{method:"POST",body:{username:o,password:s}});if(a.success){let u=yi.get(o);return u||(u=a.user,yi.set(o,u)),e.value=u,localStorage.setItem("currentUser",o),!0}return!1}catch(a){return console.error("Login error:",a),!1}},logout:()=>{e.value=null,localStorage.removeItem("currentUser")},incrementBurritoConsiderations:()=>{e.value&&(e.value.burritoConsiderations++,yi.set(e.value.username,e.value),e.value={...e.value})},setUser:o=>{e.value=o,yi.set(o.username,o)}}}const Cx={class:"header"},kx={class:"header-container"},Rx={class:"user-section"},Px={key:0},Ox={key:1},xx=fn({__name:"AppHeader",setup(e){const t=wx(),r=Ix(),n=We(()=>r.user.value),i=async()=>{t?.track("user_logged_out"),t?.reset(),r.logout(),await up("/")};return(o,s)=>{const a=bx;return vt(),Xr("header",Cx,[Mn("div",kx,[Mn("nav",null,[Fe(a,{to:"/"},{default:Ai(()=>[...s[0]||(s[0]=[ki("Home",-1)])]),_:1}),ke(n)?(vt(),Xr(ht,{key:0},[Fe(a,{to:"/burrito"},{default:Ai(()=>[...s[1]||(s[1]=[ki("Burrito Consideration",-1)])]),_:1}),Fe(a,{to:"/profile"},{default:Ai(()=>[...s[2]||(s[2]=[ki("Profile",-1)])]),_:1})],64)):pc("",!0)]),Mn("div",Rx,[ke(n)?(vt(),Xr("span",Px,"Welcome, "+Oh(ke(n).username)+"!",1)):(vt(),Xr("span",Ox,"Not logged in")),ke(n)?(vt(),Xr("button",{key:2,onClick:i,class:"btn-logout"},"Logout")):pc("",!0)])])])}}}),Nx=Object.assign(xx,{__name:"AppHeader"}),Zm=(e="RouteProvider")=>fn({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const r=t.renderKey,n=t.route,i={};for(const o in t.route)Object.defineProperty(i,o,{get:()=>r===t.renderKey?t.route[o]:n[o],enumerable:!0});return On(Ns,dr(i)),()=>t.vnode?Et(t.vnode,{ref:t.vnodeRef}):t.vnode}}),Lx=Zm(),bh=new WeakMap,Mx=fn({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:r,expose:n}){const i=Ve(),o=Jt(),s=It(Ns,null);let a;n({pageRef:o});const u=It(ZE,null);let c;const l=i.deferHydration();let f=!1,d=0;if(i.isHydrating){const v=i.hooks.hookOnce("app:error",l);St().beforeEach(v)}e.pageKey&&xn(()=>e.pageKey,(v,p)=>{v!==p&&i.callHook("page:loading:start")});let h=!1;{const v=St().beforeResolve(()=>{h=!1});Qn(()=>{v()})}return()=>Et(Op,{name:e.name,route:e.route,...t},{default:v=>{const p=Ux(s,v.route,v.Component),b=s&&s.matched.length===v.route.matched.length;if(!v.Component){if(c&&!b)return c;l();return}if(c&&u&&!u.isCurrent(v.route))return c;if(p&&s&&(!u||u?.isCurrent(s)))return b?c:null;const E=pu(v,e.pageKey),m=Fx(s,v.route,v.Component);!i.isHydrating&&a===E&&!m&&qi(()=>{h||(h=!0,i.callHook("page:loading:end"))}),f&&a!==E&&d++,a=E;const g=!!(e.transition??v.route.meta.pageTransition??$c),y=g&&Dx([e.transition,v.route.meta.pageTransition,$c,{onAfterLeave(){delete i._runningTransition,i.callHook("page:transition:finish",v.Component)}}]),_=e.keepalive??v.route.meta.keepalive??FE;return c=fw(g&&y,uw(_,Et(Mv,{key:d,suspensible:!0,onPending:()=>{f=!0,g&&(i._runningTransition=!0),i.callHook("page:start",v.Component)},onResolve:async()=>{f=!1;try{await qi(),i._route.sync?.(),await i.callHook("page:finish",v.Component),delete i._runningTransition,!h&&!m&&(h=!0,await i.callHook("page:loading:end"))}finally{l()}}},{default:()=>{const S={key:E||void 0,vnode:r.default?Hx(r.default,v):v.Component,route:v.route,renderKey:E||void 0,trackRootNodes:g,vnodeRef:o};if(!_)return Et(Lx,S);const A=v.Component.type,I=A;let C=bh.get(I);return C||(C=Zm(A.name||A.__name),bh.set(I,C)),Et(C,S)}}))).default(),c}})}});function Dx(e){const t=[];for(const r of e)r&&t.push({...r,onAfterLeave:r.onAfterLeave?Sl(r.onAfterLeave):void 0});return sp(...t)}function Ux(e,t,r){if(!e)return!1;const n=t.matched.findIndex(i=>i.components?.default===r?.type);return!n||n===-1?!1:t.matched.slice(0,n).some((i,o)=>i.components?.default!==e.matched[o]?.components?.default)||r&&pu({route:t,Component:r})!==pu({route:e,Component:r})}function Fx(e,t,r){return e?t.matched.findIndex(i=>i.components?.default===r?.type)<t.matched.length-1:!1}function Hx(e,t){const r=e(t);return r.length===1?Et(r[0]):Et(ht,void 0,r)}const Bx=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},jx={},qx={style:{"min-height":"100vh",display:"flex","flex-direction":"column",background:"#f5f5f5",width:"100%"}},Vx={style:{flex:"1"}};function $x(e,t){const r=Nx,n=Mx;return vt(),Xr("div",qx,[Fe(r),Mn("main",Vx,[Fe(n)])])}const Wx=Bx(jx,[["render",$x]]),Gx={__name:"nuxt-error-page",props:{error:Object},setup(e){const r=e.error,n=Number(r.statusCode||500),i=n===404,o=r.statusMessage??(i?"Page Not Found":"Internal Server Error"),s=r.message||r.toString(),a=void 0,l=i?oc(()=>Bt(()=>import("./CaxW3SQp.js"),__vite__mapDeps([0,1,2]),import.meta.url)):oc(()=>Bt(()=>import("./BaEVHuX6.js"),__vite__mapDeps([3,1,4]),import.meta.url));return(f,d)=>(vt(),Yr(ke(l),cy(jv({status:ke(n),statusText:ke(o),statusCode:ke(n),statusMessage:ke(o),description:ke(s),stack:ke(a)})),null,16))}},Kx={key:0},Eh={__name:"nuxt-root",setup(e){const t=()=>null,r=Ve(),n=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",n);St().beforeEach(c)}const i=!1;On(Ns,e_()),r.hooks.callHookWith(c=>c.map(l=>l()),"vue:setup");const o=Ls(),s=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;vv((c,l,f)=>{if(r.hooks.callHook("vue:error",c,l,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return r.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(cp(c)&&(c.fatal||c.unhandled))return r.runWithContext(()=>Kr(c)),!1});const u=!1;return(c,l)=>(vt(),Yr(Mv,{onResolve:ke(n)},{default:Ai(()=>[ke(s)?(vt(),Xr("div",Kx)):ke(o)?(vt(),Yr(ke(Gx),{key:1,error:ke(o)},null,8,["error"])):ke(u)?(vt(),Yr(ke(t),{key:2,context:ke(u)},null,8,["context"])):ke(i)?(vt(),Yr(h0(ke(i)),{key:3})):(vt(),Yr(ke(Wx),{key:4}))]),_:1},8,["onResolve"]))}};let _h;{let e;_h=async function(){if(e)return e;const r=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),n=r?xb(Eh):Ob(Eh),i=VE({vueApp:n});async function o(s){await i.callHook("app:error",s),i.payload.error||=on(s)}n.config.errorHandler=o,i.hook("app:suspense:resolve",()=>{n.config.errorHandler===o&&(n.config.errorHandler=void 0)}),!r&&Wc.id&&i.hook("app:suspense:resolve",()=>{document.getElementById(Wc.id)?.remove()});try{await GE(i,gx)}catch(s){o(s)}try{await i.hooks.callHook("app:created",n),await i.hooks.callHook("app:beforeMount",n),n.mount(BE),await i.hooks.callHook("app:mounted",n),await qi()}catch(s){o(s)}return n},e=_h().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Zx as A,x as B,O as C,le as D,gm as E,D as F,Dn as I,Bx as _,Mn as a,Fe as b,Xr as c,ki as d,bx as e,Ve as f,pp as g,ul as h,It as i,fn as j,Ix as k,ke as l,zx as m,Is as n,vt as o,pc as p,Yx as q,We as r,Fr as s,Oh as t,eN as u,Xx as v,Ai as w,Jt as x,up as y,wx as z};

```

---

## .output/public/_nuxt/BTkul5Q2.js

```js
import{j as je,k as Ee,o as Z,c as R,l as b,t as B,a as C,m as oe,v as de,n as ce,p as K,q as $e,r as Ve,s as ue,x as le,I as Pe,y as Me,z as Le}from"./BpsV6fwO.js";var x;(function(r){r.assertEqual=a=>{};function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{const n={};for(const i of a)n[i]=i;return n},r.getValidEnumValues=a=>{const n=r.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),i={};for(const o of n)i[o]=a[o];return r.objectValues(i)},r.objectValues=a=>r.objectKeys(a).map(function(n){return a[n]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const n=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&n.push(i);return n},r.find=(a,n)=>{for(const i of a)if(n(i))return i},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function s(a,n=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(n)}r.joinValues=s,r.jsonStringifyReplacer=(a,n)=>typeof n=="bigint"?n.toString():n})(x||(x={}));var fe;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(fe||(fe={}));const u=x.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),I=r=>{switch(typeof r){case"undefined":return u.undefined;case"string":return u.string;case"number":return Number.isNaN(r)?u.nan:u.number;case"boolean":return u.boolean;case"function":return u.function;case"bigint":return u.bigint;case"symbol":return u.symbol;case"object":return Array.isArray(r)?u.array:r===null?u.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?u.promise:typeof Map<"u"&&r instanceof Map?u.map:typeof Set<"u"&&r instanceof Set?u.set:typeof Date<"u"&&r instanceof Date?u.date:u.object;default:return u.unknown}},d=x.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class A extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(n){return n.message},s={_errors:[]},a=n=>{for(const i of n.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)s._errors.push(t(i));else{let o=s,f=0;for(;f<i.path.length;){const h=i.path[f];f===i.path.length-1?(o[h]=o[h]||{_errors:[]},o[h]._errors.push(t(i))):o[h]=o[h]||{_errors:[]},o=o[h],f++}}};return a(this),s}static assert(e){if(!(e instanceof A))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,x.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},s=[];for(const a of this.issues)if(a.path.length>0){const n=a.path[0];t[n]=t[n]||[],t[n].push(e(a))}else s.push(e(a));return{formErrors:s,fieldErrors:t}}get formErrors(){return this.flatten()}}A.create=r=>new A(r);const te=(r,e)=>{let t;switch(r.code){case d.invalid_type:r.received===u.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case d.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,x.jsonStringifyReplacer)}`;break;case d.unrecognized_keys:t=`Unrecognized key(s) in object: ${x.joinValues(r.keys,", ")}`;break;case d.invalid_union:t="Invalid input";break;case d.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${x.joinValues(r.options)}`;break;case d.invalid_enum_value:t=`Invalid enum value. Expected ${x.joinValues(r.options)}, received '${r.received}'`;break;case d.invalid_arguments:t="Invalid function arguments";break;case d.invalid_return_type:t="Invalid function return type";break;case d.invalid_date:t="Invalid date";break;case d.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:x.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case d.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="bigint"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case d.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case d.custom:t="Invalid input";break;case d.invalid_intersection_types:t="Intersection results could not be merged";break;case d.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case d.not_finite:t="Number must be finite";break;default:t=e.defaultError,x.assertNever(r)}return{message:t}};let ze=te;function De(){return ze}const Ue=r=>{const{data:e,path:t,errorMaps:s,issueData:a}=r,n=[...t,...a.path||[]],i={...a,path:n};if(a.message!==void 0)return{...a,path:n,message:a.message};let o="";const f=s.filter(h=>!!h).slice().reverse();for(const h of f)o=h(i,{data:e,defaultError:o}).message;return{...a,path:n,message:o}};function c(r,e){const t=De(),s=Ue({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,t,t===te?void 0:te].filter(a=>!!a)});r.common.issues.push(s)}class S{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const s=[];for(const a of t){if(a.status==="aborted")return m;a.status==="dirty"&&e.dirty(),s.push(a.value)}return{status:e.value,value:s}}static async mergeObjectAsync(e,t){const s=[];for(const a of t){const n=await a.key,i=await a.value;s.push({key:n,value:i})}return S.mergeObjectSync(e,s)}static mergeObjectSync(e,t){const s={};for(const a of t){const{key:n,value:i}=a;if(n.status==="aborted"||i.status==="aborted")return m;n.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),n.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(s[n.value]=i.value)}return{status:e.value,value:s}}}const m=Object.freeze({status:"aborted"}),F=r=>({status:"dirty",value:r}),O=r=>({status:"valid",value:r}),he=r=>r.status==="aborted",me=r=>r.status==="dirty",L=r=>r.status==="valid",Y=r=>typeof Promise<"u"&&r instanceof Promise;var l;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(l||(l={}));class ${constructor(e,t,s,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=s,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const pe=(r,e)=>{if(L(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new A(r.common.issues);return this._error=t,this._error}}};function g(r){if(!r)return{};const{errorMap:e,invalid_type_error:t,required_error:s,description:a}=r;if(e&&(t||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,o)=>{const{message:f}=r;return i.code==="invalid_enum_value"?{message:f??o.defaultError}:typeof o.data>"u"?{message:f??s??o.defaultError}:i.code!=="invalid_type"?{message:o.defaultError}:{message:f??t??o.defaultError}},description:a}}class _{get description(){return this._def.description}_getType(e){return I(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:I(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new S,ctx:{common:e.parent.common,data:e.data,parsedType:I(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(Y(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const s=this.safeParse(e,t);if(s.success)return s.data;throw s.error}safeParse(e,t){const s={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:I(e)},a=this._parseSync({data:e,path:s.path,parent:s});return pe(s,a)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:I(e)};if(!this["~standard"].async)try{const s=this._parseSync({data:e,path:[],parent:t});return L(s)?{value:s.value}:{issues:t.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(s=>L(s)?{value:s.value}:{issues:t.common.issues})}async parseAsync(e,t){const s=await this.safeParseAsync(e,t);if(s.success)return s.data;throw s.error}async safeParseAsync(e,t){const s={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:I(e)},a=this._parse({data:e,path:s.path,parent:s}),n=await(Y(a)?a:Promise.resolve(a));return pe(s,n)}refine(e,t){const s=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,n)=>{const i=e(a),o=()=>n.addIssue({code:d.custom,...s(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(f=>f?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((s,a)=>e(s)?!0:(a.addIssue(typeof t=="function"?t(s,a):t),!1))}_refinement(e){return new D({schema:this,typeName:p.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return E.create(this,this._def)}nullable(){return U.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return N.create(this)}promise(){return X.create(this,this._def)}or(e){return G.create([this,e],this._def)}and(e){return Q.create(this,e,this._def)}transform(e){return new D({...g(this._def),schema:this,typeName:p.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new re({...g(this._def),innerType:this,defaultValue:t,typeName:p.ZodDefault})}brand(){return new lt({typeName:p.ZodBranded,type:this,...g(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new ae({...g(this._def),innerType:this,catchValue:t,typeName:p.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return ie.create(this,e)}readonly(){return ne.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Be=/^c[^\s-]{8,}$/i,Fe=/^[0-9a-z]+$/,We=/^[0-9A-HJKMNP-TV-Z]{26}$/i,qe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Je=/^[a-z0-9_-]{21}$/i,Ye=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,He=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ge=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Qe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ee;const Xe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ke=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,et=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tt=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,st=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,rt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ze="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",at=new RegExp(`^${Ze}$`);function Re(r){let e="[0-5]\\d";r.precision?e=`${e}\\.\\d{${r.precision}}`:r.precision==null&&(e=`${e}(\\.\\d+)?`);const t=r.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t}`}function nt(r){return new RegExp(`^${Re(r)}$`)}function it(r){let e=`${Ze}T${Re(r)}`;const t=[];return t.push(r.local?"Z?":"Z"),r.offset&&t.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${t.join("|")})`,new RegExp(`^${e}$`)}function ot(r,e){return!!((e==="v4"||!e)&&Xe.test(r)||(e==="v6"||!e)&&et.test(r))}function dt(r,e){if(!Ye.test(r))return!1;try{const[t]=r.split(".");if(!t)return!1;const s=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),a=JSON.parse(atob(s));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function ct(r,e){return!!((e==="v4"||!e)&&Ke.test(r)||(e==="v6"||!e)&&tt.test(r))}class j extends _{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==u.string){const n=this._getOrReturnCtx(e);return c(n,{code:d.invalid_type,expected:u.string,received:n.parsedType}),m}const s=new S;let a;for(const n of this._def.checks)if(n.kind==="min")e.data.length<n.value&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="max")e.data.length>n.value&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!1,message:n.message}),s.dirty());else if(n.kind==="length"){const i=e.data.length>n.value,o=e.data.length<n.value;(i||o)&&(a=this._getOrReturnCtx(e,a),i?c(a,{code:d.too_big,maximum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}):o&&c(a,{code:d.too_small,minimum:n.value,type:"string",inclusive:!0,exact:!0,message:n.message}),s.dirty())}else if(n.kind==="email")Ge.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"email",code:d.invalid_string,message:n.message}),s.dirty());else if(n.kind==="emoji")ee||(ee=new RegExp(Qe,"u")),ee.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"emoji",code:d.invalid_string,message:n.message}),s.dirty());else if(n.kind==="uuid")qe.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"uuid",code:d.invalid_string,message:n.message}),s.dirty());else if(n.kind==="nanoid")Je.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"nanoid",code:d.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid")Be.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"cuid",code:d.invalid_string,message:n.message}),s.dirty());else if(n.kind==="cuid2")Fe.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"cuid2",code:d.invalid_string,message:n.message}),s.dirty());else if(n.kind==="ulid")We.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"ulid",code:d.invalid_string,message:n.message}),s.dirty());else if(n.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),c(a,{validation:"url",code:d.invalid_string,message:n.message}),s.dirty()}else n.kind==="regex"?(n.regex.lastIndex=0,n.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"regex",code:d.invalid_string,message:n.message}),s.dirty())):n.kind==="trim"?e.data=e.data.trim():n.kind==="includes"?e.data.includes(n.value,n.position)||(a=this._getOrReturnCtx(e,a),c(a,{code:d.invalid_string,validation:{includes:n.value,position:n.position},message:n.message}),s.dirty()):n.kind==="toLowerCase"?e.data=e.data.toLowerCase():n.kind==="toUpperCase"?e.data=e.data.toUpperCase():n.kind==="startsWith"?e.data.startsWith(n.value)||(a=this._getOrReturnCtx(e,a),c(a,{code:d.invalid_string,validation:{startsWith:n.value},message:n.message}),s.dirty()):n.kind==="endsWith"?e.data.endsWith(n.value)||(a=this._getOrReturnCtx(e,a),c(a,{code:d.invalid_string,validation:{endsWith:n.value},message:n.message}),s.dirty()):n.kind==="datetime"?it(n).test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{code:d.invalid_string,validation:"datetime",message:n.message}),s.dirty()):n.kind==="date"?at.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{code:d.invalid_string,validation:"date",message:n.message}),s.dirty()):n.kind==="time"?nt(n).test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{code:d.invalid_string,validation:"time",message:n.message}),s.dirty()):n.kind==="duration"?He.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"duration",code:d.invalid_string,message:n.message}),s.dirty()):n.kind==="ip"?ot(e.data,n.version)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"ip",code:d.invalid_string,message:n.message}),s.dirty()):n.kind==="jwt"?dt(e.data,n.alg)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"jwt",code:d.invalid_string,message:n.message}),s.dirty()):n.kind==="cidr"?ct(e.data,n.version)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"cidr",code:d.invalid_string,message:n.message}),s.dirty()):n.kind==="base64"?st.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"base64",code:d.invalid_string,message:n.message}),s.dirty()):n.kind==="base64url"?rt.test(e.data)||(a=this._getOrReturnCtx(e,a),c(a,{validation:"base64url",code:d.invalid_string,message:n.message}),s.dirty()):x.assertNever(n);return{status:s.value,value:e.data}}_regex(e,t,s){return this.refinement(a=>e.test(a),{validation:t,code:d.invalid_string,...l.errToObj(s)})}_addCheck(e){return new j({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...l.errToObj(e)})}url(e){return this._addCheck({kind:"url",...l.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...l.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...l.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...l.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...l.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...l.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...l.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...l.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...l.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...l.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...l.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...l.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...l.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...l.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...l.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...l.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...l.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...l.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...l.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...l.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...l.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...l.errToObj(t)})}nonempty(e){return this.min(1,l.errToObj(e))}trim(){return new j({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new j({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}j.create=r=>new j({checks:[],typeName:p.ZodString,coerce:r?.coerce??!1,...g(r)});function ut(r,e){const t=(r.toString().split(".")[1]||"").length,s=(e.toString().split(".")[1]||"").length,a=t>s?t:s,n=Number.parseInt(r.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return n%i/10**a}class W extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==u.number){const n=this._getOrReturnCtx(e);return c(n,{code:d.invalid_type,expected:u.number,received:n.parsedType}),m}let s;const a=new S;for(const n of this._def.checks)n.kind==="int"?x.isInteger(e.data)||(s=this._getOrReturnCtx(e,s),c(s,{code:d.invalid_type,expected:"integer",received:"float",message:n.message}),a.dirty()):n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),c(s,{code:d.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),c(s,{code:d.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),a.dirty()):n.kind==="multipleOf"?ut(e.data,n.value)!==0&&(s=this._getOrReturnCtx(e,s),c(s,{code:d.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):n.kind==="finite"?Number.isFinite(e.data)||(s=this._getOrReturnCtx(e,s),c(s,{code:d.not_finite,message:n.message}),a.dirty()):x.assertNever(n);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new W({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:l.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:l.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:l.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:l.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&x.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(t===null||s.value>t)&&(t=s.value):s.kind==="max"&&(e===null||s.value<e)&&(e=s.value)}return Number.isFinite(t)&&Number.isFinite(e)}}W.create=r=>new W({checks:[],typeName:p.ZodNumber,coerce:r?.coerce||!1,...g(r)});class q extends _{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==u.bigint)return this._getInvalidInput(e);let s;const a=new S;for(const n of this._def.checks)n.kind==="min"?(n.inclusive?e.data<n.value:e.data<=n.value)&&(s=this._getOrReturnCtx(e,s),c(s,{code:d.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="max"?(n.inclusive?e.data>n.value:e.data>=n.value)&&(s=this._getOrReturnCtx(e,s),c(s,{code:d.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),a.dirty()):n.kind==="multipleOf"?e.data%n.value!==BigInt(0)&&(s=this._getOrReturnCtx(e,s),c(s,{code:d.not_multiple_of,multipleOf:n.value,message:n.message}),a.dirty()):x.assertNever(n);return{status:a.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return c(t,{code:d.invalid_type,expected:u.bigint,received:t.parsedType}),m}gte(e,t){return this.setLimit("min",e,!0,l.toString(t))}gt(e,t){return this.setLimit("min",e,!1,l.toString(t))}lte(e,t){return this.setLimit("max",e,!0,l.toString(t))}lt(e,t){return this.setLimit("max",e,!1,l.toString(t))}setLimit(e,t,s,a){return new q({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:s,message:l.toString(a)}]})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:l.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:l.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:l.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:l.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:l.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}q.create=r=>new q({checks:[],typeName:p.ZodBigInt,coerce:r?.coerce??!1,...g(r)});class ge extends _{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==u.boolean){const s=this._getOrReturnCtx(e);return c(s,{code:d.invalid_type,expected:u.boolean,received:s.parsedType}),m}return O(e.data)}}ge.create=r=>new ge({typeName:p.ZodBoolean,coerce:r?.coerce||!1,...g(r)});class H extends _{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==u.date){const n=this._getOrReturnCtx(e);return c(n,{code:d.invalid_type,expected:u.date,received:n.parsedType}),m}if(Number.isNaN(e.data.getTime())){const n=this._getOrReturnCtx(e);return c(n,{code:d.invalid_date}),m}const s=new S;let a;for(const n of this._def.checks)n.kind==="min"?e.data.getTime()<n.value&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),s.dirty()):n.kind==="max"?e.data.getTime()>n.value&&(a=this._getOrReturnCtx(e,a),c(a,{code:d.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),s.dirty()):x.assertNever(n);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:l.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:l.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}H.create=r=>new H({checks:[],coerce:r?.coerce||!1,typeName:p.ZodDate,...g(r)});class ye extends _{_parse(e){if(this._getType(e)!==u.symbol){const s=this._getOrReturnCtx(e);return c(s,{code:d.invalid_type,expected:u.symbol,received:s.parsedType}),m}return O(e.data)}}ye.create=r=>new ye({typeName:p.ZodSymbol,...g(r)});class _e extends _{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return c(s,{code:d.invalid_type,expected:u.undefined,received:s.parsedType}),m}return O(e.data)}}_e.create=r=>new _e({typeName:p.ZodUndefined,...g(r)});class ve extends _{_parse(e){if(this._getType(e)!==u.null){const s=this._getOrReturnCtx(e);return c(s,{code:d.invalid_type,expected:u.null,received:s.parsedType}),m}return O(e.data)}}ve.create=r=>new ve({typeName:p.ZodNull,...g(r)});class xe extends _{constructor(){super(...arguments),this._any=!0}_parse(e){return O(e.data)}}xe.create=r=>new xe({typeName:p.ZodAny,...g(r)});class ke extends _{constructor(){super(...arguments),this._unknown=!0}_parse(e){return O(e.data)}}ke.create=r=>new ke({typeName:p.ZodUnknown,...g(r)});class V extends _{_parse(e){const t=this._getOrReturnCtx(e);return c(t,{code:d.invalid_type,expected:u.never,received:t.parsedType}),m}}V.create=r=>new V({typeName:p.ZodNever,...g(r)});class be extends _{_parse(e){if(this._getType(e)!==u.undefined){const s=this._getOrReturnCtx(e);return c(s,{code:d.invalid_type,expected:u.void,received:s.parsedType}),m}return O(e.data)}}be.create=r=>new be({typeName:p.ZodVoid,...g(r)});class N extends _{_parse(e){const{ctx:t,status:s}=this._processInputParams(e),a=this._def;if(t.parsedType!==u.array)return c(t,{code:d.invalid_type,expected:u.array,received:t.parsedType}),m;if(a.exactLength!==null){const i=t.data.length>a.exactLength.value,o=t.data.length<a.exactLength.value;(i||o)&&(c(t,{code:i?d.too_big:d.too_small,minimum:o?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),s.dirty())}if(a.minLength!==null&&t.data.length<a.minLength.value&&(c(t,{code:d.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),s.dirty()),a.maxLength!==null&&t.data.length>a.maxLength.value&&(c(t,{code:d.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),s.dirty()),t.common.async)return Promise.all([...t.data].map((i,o)=>a.type._parseAsync(new $(t,i,t.path,o)))).then(i=>S.mergeArray(s,i));const n=[...t.data].map((i,o)=>a.type._parseSync(new $(t,i,t.path,o)));return S.mergeArray(s,n)}get element(){return this._def.type}min(e,t){return new N({...this._def,minLength:{value:e,message:l.toString(t)}})}max(e,t){return new N({...this._def,maxLength:{value:e,message:l.toString(t)}})}length(e,t){return new N({...this._def,exactLength:{value:e,message:l.toString(t)}})}nonempty(e){return this.min(1,e)}}N.create=(r,e)=>new N({type:r,minLength:null,maxLength:null,exactLength:null,typeName:p.ZodArray,...g(e)});function M(r){if(r instanceof k){const e={};for(const t in r.shape){const s=r.shape[t];e[t]=E.create(M(s))}return new k({...r._def,shape:()=>e})}else return r instanceof N?new N({...r._def,type:M(r.element)}):r instanceof E?E.create(M(r.unwrap())):r instanceof U?U.create(M(r.unwrap())):r instanceof P?P.create(r.items.map(e=>M(e))):r}class k extends _{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=x.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==u.object){const h=this._getOrReturnCtx(e);return c(h,{code:d.invalid_type,expected:u.object,received:h.parsedType}),m}const{status:s,ctx:a}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof V&&this._def.unknownKeys==="strip"))for(const h in a.data)i.includes(h)||o.push(h);const f=[];for(const h of i){const y=n[h],w=a.data[h];f.push({key:{status:"valid",value:h},value:y._parse(new $(a,w,a.path,h)),alwaysSet:h in a.data})}if(this._def.catchall instanceof V){const h=this._def.unknownKeys;if(h==="passthrough")for(const y of o)f.push({key:{status:"valid",value:y},value:{status:"valid",value:a.data[y]}});else if(h==="strict")o.length>0&&(c(a,{code:d.unrecognized_keys,keys:o}),s.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const y of o){const w=a.data[y];f.push({key:{status:"valid",value:y},value:h._parse(new $(a,w,a.path,y)),alwaysSet:y in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const h=[];for(const y of f){const w=await y.key,v=await y.value;h.push({key:w,value:v,alwaysSet:y.alwaysSet})}return h}).then(h=>S.mergeObjectSync(s,h)):S.mergeObjectSync(s,f)}get shape(){return this._def.shape()}strict(e){return l.errToObj,new k({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,s)=>{const a=this._def.errorMap?.(t,s).message??s.defaultError;return t.code==="unrecognized_keys"?{message:l.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new k({...this._def,unknownKeys:"strip"})}passthrough(){return new k({...this._def,unknownKeys:"passthrough"})}extend(e){return new k({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new k({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:p.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new k({...this._def,catchall:e})}pick(e){const t={};for(const s of x.objectKeys(e))e[s]&&this.shape[s]&&(t[s]=this.shape[s]);return new k({...this._def,shape:()=>t})}omit(e){const t={};for(const s of x.objectKeys(this.shape))e[s]||(t[s]=this.shape[s]);return new k({...this._def,shape:()=>t})}deepPartial(){return M(this)}partial(e){const t={};for(const s of x.objectKeys(this.shape)){const a=this.shape[s];e&&!e[s]?t[s]=a:t[s]=a.optional()}return new k({...this._def,shape:()=>t})}required(e){const t={};for(const s of x.objectKeys(this.shape))if(e&&!e[s])t[s]=this.shape[s];else{let n=this.shape[s];for(;n instanceof E;)n=n._def.innerType;t[s]=n}return new k({...this._def,shape:()=>t})}keyof(){return Ie(x.objectKeys(this.shape))}}k.create=(r,e)=>new k({shape:()=>r,unknownKeys:"strip",catchall:V.create(),typeName:p.ZodObject,...g(e)});k.strictCreate=(r,e)=>new k({shape:()=>r,unknownKeys:"strict",catchall:V.create(),typeName:p.ZodObject,...g(e)});k.lazycreate=(r,e)=>new k({shape:r,unknownKeys:"strip",catchall:V.create(),typeName:p.ZodObject,...g(e)});class G extends _{_parse(e){const{ctx:t}=this._processInputParams(e),s=this._def.options;function a(n){for(const o of n)if(o.result.status==="valid")return o.result;for(const o of n)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;const i=n.map(o=>new A(o.ctx.common.issues));return c(t,{code:d.invalid_union,unionErrors:i}),m}if(t.common.async)return Promise.all(s.map(async n=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await n._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(a);{let n;const i=[];for(const f of s){const h={...t,common:{...t.common,issues:[]},parent:null},y=f._parseSync({data:t.data,path:t.path,parent:h});if(y.status==="valid")return y;y.status==="dirty"&&!n&&(n={result:y,ctx:h}),h.common.issues.length&&i.push(h.common.issues)}if(n)return t.common.issues.push(...n.ctx.common.issues),n.result;const o=i.map(f=>new A(f));return c(t,{code:d.invalid_union,unionErrors:o}),m}}get options(){return this._def.options}}G.create=(r,e)=>new G({options:r,typeName:p.ZodUnion,...g(e)});function se(r,e){const t=I(r),s=I(e);if(r===e)return{valid:!0,data:r};if(t===u.object&&s===u.object){const a=x.objectKeys(e),n=x.objectKeys(r).filter(o=>a.indexOf(o)!==-1),i={...r,...e};for(const o of n){const f=se(r[o],e[o]);if(!f.valid)return{valid:!1};i[o]=f.data}return{valid:!0,data:i}}else if(t===u.array&&s===u.array){if(r.length!==e.length)return{valid:!1};const a=[];for(let n=0;n<r.length;n++){const i=r[n],o=e[n],f=se(i,o);if(!f.valid)return{valid:!1};a.push(f.data)}return{valid:!0,data:a}}else return t===u.date&&s===u.date&&+r==+e?{valid:!0,data:r}:{valid:!1}}class Q extends _{_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=(n,i)=>{if(he(n)||he(i))return m;const o=se(n.value,i.value);return o.valid?((me(n)||me(i))&&t.dirty(),{status:t.value,value:o.data}):(c(s,{code:d.invalid_intersection_types}),m)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([n,i])=>a(n,i)):a(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Q.create=(r,e,t)=>new Q({left:r,right:e,typeName:p.ZodIntersection,...g(t)});class P extends _{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.array)return c(s,{code:d.invalid_type,expected:u.array,received:s.parsedType}),m;if(s.data.length<this._def.items.length)return c(s,{code:d.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;!this._def.rest&&s.data.length>this._def.items.length&&(c(s,{code:d.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const n=[...s.data].map((i,o)=>{const f=this._def.items[o]||this._def.rest;return f?f._parse(new $(s,i,s.path,o)):null}).filter(i=>!!i);return s.common.async?Promise.all(n).then(i=>S.mergeArray(t,i)):S.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new P({...this._def,rest:e})}}P.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new P({items:r,typeName:p.ZodTuple,rest:null,...g(e)})};class we extends _{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.map)return c(s,{code:d.invalid_type,expected:u.map,received:s.parsedType}),m;const a=this._def.keyType,n=this._def.valueType,i=[...s.data.entries()].map(([o,f],h)=>({key:a._parse(new $(s,o,s.path,[h,"key"])),value:n._parse(new $(s,f,s.path,[h,"value"]))}));if(s.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const f of i){const h=await f.key,y=await f.value;if(h.status==="aborted"||y.status==="aborted")return m;(h.status==="dirty"||y.status==="dirty")&&t.dirty(),o.set(h.value,y.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const f of i){const h=f.key,y=f.value;if(h.status==="aborted"||y.status==="aborted")return m;(h.status==="dirty"||y.status==="dirty")&&t.dirty(),o.set(h.value,y.value)}return{status:t.value,value:o}}}}we.create=(r,e,t)=>new we({valueType:e,keyType:r,typeName:p.ZodMap,...g(t)});class J extends _{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.parsedType!==u.set)return c(s,{code:d.invalid_type,expected:u.set,received:s.parsedType}),m;const a=this._def;a.minSize!==null&&s.data.size<a.minSize.value&&(c(s,{code:d.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),t.dirty()),a.maxSize!==null&&s.data.size>a.maxSize.value&&(c(s,{code:d.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());const n=this._def.valueType;function i(f){const h=new Set;for(const y of f){if(y.status==="aborted")return m;y.status==="dirty"&&t.dirty(),h.add(y.value)}return{status:t.value,value:h}}const o=[...s.data.values()].map((f,h)=>n._parse(new $(s,f,s.path,h)));return s.common.async?Promise.all(o).then(f=>i(f)):i(o)}min(e,t){return new J({...this._def,minSize:{value:e,message:l.toString(t)}})}max(e,t){return new J({...this._def,maxSize:{value:e,message:l.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}J.create=(r,e)=>new J({valueType:r,minSize:null,maxSize:null,typeName:p.ZodSet,...g(e)});class Ce extends _{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ce.create=(r,e)=>new Ce({getter:r,typeName:p.ZodLazy,...g(e)});class Te extends _{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return c(t,{received:t.data,code:d.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}Te.create=(r,e)=>new Te({value:r,typeName:p.ZodLiteral,...g(e)});function Ie(r,e){return new z({values:r,typeName:p.ZodEnum,...g(e)})}class z extends _{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),s=this._def.values;return c(t,{expected:x.joinValues(s),received:t.parsedType,code:d.invalid_type}),m}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),s=this._def.values;return c(t,{received:t.data,code:d.invalid_enum_value,options:s}),m}return O(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return z.create(e,{...this._def,...t})}exclude(e,t=this._def){return z.create(this.options.filter(s=>!e.includes(s)),{...this._def,...t})}}z.create=Ie;class Se extends _{_parse(e){const t=x.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(e);if(s.parsedType!==u.string&&s.parsedType!==u.number){const a=x.objectValues(t);return c(s,{expected:x.joinValues(a),received:s.parsedType,code:d.invalid_type}),m}if(this._cache||(this._cache=new Set(x.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=x.objectValues(t);return c(s,{received:s.data,code:d.invalid_enum_value,options:a}),m}return O(e.data)}get enum(){return this._def.values}}Se.create=(r,e)=>new Se({values:r,typeName:p.ZodNativeEnum,...g(e)});class X extends _{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==u.promise&&t.common.async===!1)return c(t,{code:d.invalid_type,expected:u.promise,received:t.parsedType}),m;const s=t.parsedType===u.promise?t.data:Promise.resolve(t.data);return O(s.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}}X.create=(r,e)=>new X({type:r,typeName:p.ZodPromise,...g(e)});class D extends _{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===p.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:s}=this._processInputParams(e),a=this._def.effect||null,n={addIssue:i=>{c(s,i),i.fatal?t.abort():t.dirty()},get path(){return s.path}};if(n.addIssue=n.addIssue.bind(n),a.type==="preprocess"){const i=a.transform(s.data,n);if(s.common.async)return Promise.resolve(i).then(async o=>{if(t.value==="aborted")return m;const f=await this._def.schema._parseAsync({data:o,path:s.path,parent:s});return f.status==="aborted"?m:f.status==="dirty"||t.value==="dirty"?F(f.value):f});{if(t.value==="aborted")return m;const o=this._def.schema._parseSync({data:i,path:s.path,parent:s});return o.status==="aborted"?m:o.status==="dirty"||t.value==="dirty"?F(o.value):o}}if(a.type==="refinement"){const i=o=>{const f=a.refinement(o,n);if(s.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?m:(o.status==="dirty"&&t.dirty(),i(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>o.status==="aborted"?m:(o.status==="dirty"&&t.dirty(),i(o.value).then(()=>({status:t.value,value:o.value}))))}if(a.type==="transform")if(s.common.async===!1){const i=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!L(i))return m;const o=a.transform(i.value,n);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(i=>L(i)?Promise.resolve(a.transform(i.value,n)).then(o=>({status:t.value,value:o})):m);x.assertNever(a)}}D.create=(r,e,t)=>new D({schema:r,typeName:p.ZodEffects,effect:e,...g(t)});D.createWithPreprocess=(r,e,t)=>new D({schema:e,effect:{type:"preprocess",transform:r},typeName:p.ZodEffects,...g(t)});class E extends _{_parse(e){return this._getType(e)===u.undefined?O(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}E.create=(r,e)=>new E({innerType:r,typeName:p.ZodOptional,...g(e)});class U extends _{_parse(e){return this._getType(e)===u.null?O(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}U.create=(r,e)=>new U({innerType:r,typeName:p.ZodNullable,...g(e)});class re extends _{_parse(e){const{ctx:t}=this._processInputParams(e);let s=t.data;return t.parsedType===u.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}re.create=(r,e)=>new re({innerType:r,typeName:p.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...g(e)});class ae extends _{_parse(e){const{ctx:t}=this._processInputParams(e),s={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Y(a)?a.then(n=>({status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new A(s.common.issues)},input:s.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new A(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ae.create=(r,e)=>new ae({innerType:r,typeName:p.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...g(e)});class Oe extends _{_parse(e){if(this._getType(e)!==u.nan){const s=this._getOrReturnCtx(e);return c(s,{code:d.invalid_type,expected:u.nan,received:s.parsedType}),m}return{status:"valid",value:e.data}}}Oe.create=r=>new Oe({typeName:p.ZodNaN,...g(r)});class lt extends _{_parse(e){const{ctx:t}=this._processInputParams(e),s=t.data;return this._def.type._parse({data:s,path:t.path,parent:t})}unwrap(){return this._def.type}}class ie extends _{_parse(e){const{status:t,ctx:s}=this._processInputParams(e);if(s.common.async)return(async()=>{const n=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return n.status==="aborted"?m:n.status==="dirty"?(t.dirty(),F(n.value)):this._def.out._parseAsync({data:n.value,path:s.path,parent:s})})();{const a=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?m:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:s.path,parent:s})}}static create(e,t){return new ie({in:e,out:t,typeName:p.ZodPipeline})}}class ne extends _{_parse(e){const t=this._def.innerType._parse(e),s=a=>(L(a)&&(a.value=Object.freeze(a.value)),a);return Y(t)?t.then(a=>s(a)):s(t)}unwrap(){return this._def.innerType}}ne.create=(r,e)=>new ne({innerType:r,typeName:p.ZodReadonly,...g(e)});var p;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline",r.ZodReadonly="ZodReadonly"})(p||(p={}));const Ne=j.create;V.create;N.create;const ft=k.create;G.create;Q.create;P.create;z.create;X.create;E.create;U.create;const Ae=ft({username:Ne().min(1,"Username is required").min(3,"Username must be at least 3 characters").max(50,"Username must be less than 50 characters"),password:Ne().min(1,"Password is required").min(3,"Password must be at least 3 characters")});function ht(r,e){const t=r.safeParse(e);if(t.success)return{success:!0,data:t.data};const s={};return t.error.errors.forEach(a=>{const n=a.path.join(".");s[n]=a.message}),{success:!1,errors:s}}const mt={class:"container"},pt={key:0},gt={key:1},yt={key:2},_t={key:3},vt={class:"form-group"},xt={key:0,class:"field-error"},kt={class:"form-group"},bt={key:0,class:"field-error"},wt={key:0,class:"error"},Ct=["disabled"],St=je({__name:"index",setup(r){const e=Ee(),t=Ve(()=>e.user.value),s=Le(),a=ue({username:"",password:""}),n=ue({}),i=le(""),o=le(!1),f=w=>{const v=Ae.shape[w];if(!v)return;const T=v.safeParse(a[w]);T.success?delete n[w]:n[w]=T.error.errors[0]?.message||"Invalid value"},h=w=>{delete n[w]},y=async()=>{i.value="",Object.keys(n).forEach(v=>{delete n[v]});const w=ht(Ae,a);if(!w.success){Object.assign(n,w.errors);return}o.value=!0;try{if(await e.login(a.username,a.password)){s?.setUserId(a.username);const T=new Pe;T.set("username",a.username),s?.identify(T),s?.track("user_logged_in",{username:a.username}),a.username="",a.password="",await Me("/")}else i.value="Login failed. Please check your credentials and try again."}catch(v){console.error("Login failed:",v),i.value="An error occurred during login. Please try again."}finally{o.value=!1}};return(w,v)=>(Z(),R("div",mt,[b(t)?(Z(),R("h1",pt,"Welcome back, "+B(b(t).username)+"!",1)):(Z(),R("h1",gt,"Welcome to Burrito Consideration App")),b(t)?(Z(),R("div",yt,[...v[6]||(v[6]=[C("p",null,"You are now logged in. Feel free to explore:",-1),C("ul",null,[C("li",null,"Consider the potential of burritos"),C("li",null,"View your profile and statistics")],-1)])])):(Z(),R("div",_t,[v[9]||(v[9]=C("p",null,"Please sign in to begin your burrito journey",-1)),C("form",{onSubmit:$e(y,["prevent"]),class:"form",novalidate:""},[C("div",vt,[v[7]||(v[7]=C("label",{for:"username"},"Username:",-1)),oe(C("input",{id:"username","onUpdate:modelValue":v[0]||(v[0]=T=>b(a).username=T),type:"text",placeholder:"Enter any username",class:ce({"error-input":b(n).username}),onBlur:v[1]||(v[1]=T=>f("username")),onInput:v[2]||(v[2]=T=>h("username"))},null,34),[[de,b(a).username]]),b(n).username?(Z(),R("p",xt,B(b(n).username),1)):K("",!0)]),C("div",kt,[v[8]||(v[8]=C("label",{for:"password"},"Password:",-1)),oe(C("input",{id:"password","onUpdate:modelValue":v[3]||(v[3]=T=>b(a).password=T),type:"password",placeholder:"Enter any password",class:ce({"error-input":b(n).password}),onBlur:v[4]||(v[4]=T=>f("password")),onInput:v[5]||(v[5]=T=>h("password"))},null,34),[[de,b(a).password]]),b(n).password?(Z(),R("p",bt,B(b(n).password),1)):K("",!0)]),b(i)?(Z(),R("p",wt,B(b(i)),1)):K("",!0),C("button",{type:"submit",class:"btn-primary",disabled:b(o)},B(b(o)?"Signing in...":"Sign In"),9,Ct)],32),v[10]||(v[10]=C("p",{class:"note"}," Note: This is a demo app. Use any username and password to sign in. ",-1))]))]))}});export{St as default};

```

---

## .output/public/_nuxt/CaxW3SQp.js

```js
import{_ as s,o as a,c as i,a as t,t as n,b as u,w as c,d as l,e as d}from"./BpsV6fwO.js";import{u as f}from"./Cvlh8XCj.js";const p={class:"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide"},m={class:"max-w-520px text-center"},h=["textContent"],b=["textContent"],x=["textContent"],g={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},status:{type:Number,default:404},statusText:{type:String,default:"Page not found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(e){const r=e;return f({title:`${r.status} - ${r.statusText} | ${r.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,w)=>{const o=d;return a(),i("div",p,[t("div",m,[t("h1",{class:"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]",textContent:n(e.status)},null,8,h),t("h2",{class:"font-semibold mb-2 sm:text-3xl text-2xl",textContent:n(e.statusText)},null,8,b),t("p",{class:"mb-4 px-2 text-[#64748B] text-md",textContent:n(e.description)},null,8,x),t("div",g,[u(o,{to:"/",class:"font-medium hover:text-[#00DC82] text-sm underline underline-offset-3"},{default:c(()=>[l(n(e.backHome),1)]),_:1})])])])}}},N=s(y,[["__scopeId","data-v-f09f9a20"]]);export{N as default};

```

---

## .output/public/_nuxt/CrxCT0gX.js

```js
import{B as F,C as x,D as z}from"./BpsV6fwO.js";var S=10240,A=["image/","audio/","video/","application/octet-stream","font/"];function q(e){return e?A.some(function(n){return e.toLowerCase().startsWith(n)}):!1}function N(e){if(e!=null){if(typeof e=="string")return e;if(e instanceof URLSearchParams)return e.toString();if(e instanceof FormData){var n=[];return e.forEach(function(t,i){n.push("".concat(i,"=").concat(typeof t=="string"?t:"[File]"))}),n.join("&")}}}function k(e,n){if(new Blob([e]).size<=n)return{value:e,truncated:!1};for(var t=0,i=Math.min(e.length,n);t<i;){var s=Math.ceil((t+i)/2);new Blob([e.slice(0,s)]).size<=n?t=s:i=s-1}return t>0&&e.charCodeAt(t-1)>=55296&&e.charCodeAt(t-1)<=56319&&(t-=1),{value:e.slice(0,t),truncated:!0}}var R=(function(){function e(){this.fetchObserver=null}return e.prototype.start=function(n,t){this.eventCallback=n,this.networkConfig=t,this.observeFetch()},e.prototype.stop=function(){var n;(n=this.fetchObserver)===null||n===void 0||n.call(this),this.fetchObserver=null,this.eventCallback=void 0,this.networkConfig=void 0},e.prototype.notifyEvent=function(n){var t;(t=this.eventCallback)===null||t===void 0||t.call(this,n)},e.prototype.observeFetch=function(){var n=this,t=z();if(t){var i=t.fetch;i&&(t.fetch=function(s,o){return F(n,void 0,void 0,function(){var d,r,a,h,b,u,l,v,w,_,p,l,y,g=this,m,E;return x(this,function(f){switch(f.label){case 0:d=Date.now(),r={timestamp:d,type:"fetch",method:o?.method||"GET",url:s.toString(),requestHeaders:o?.headers},a=(m=this.networkConfig)===null||m===void 0?void 0:m.body,a?.request&&(h=N(o?.body),h!==void 0&&(b=(E=a.maxBodySizeBytes)!==null&&E!==void 0?E:S,r.requestBody=k(h,b).value)),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,i(s,o)];case 2:return u=f.sent(),l=Date.now(),r.status=u.status,r.duration=l-d,v={},u.headers.forEach(function(B,c){v[c]=B}),r.responseHeaders=v,a?.response?(w=v["content-type"]||null,q(w)?(r.responseBodyStatus="skipped_binary",this.notifyEvent(r)):(_=u.clone(),_.text().then(function(B){var c,T=(c=a.maxBodySizeBytes)!==null&&c!==void 0?c:S,C=k(B,T),O=C.value,D=C.truncated;r.responseBody=O,r.responseBodyStatus=D?"truncated":"captured",g.notifyEvent(r)},function(){r.responseBodyStatus="error",g.notifyEvent(r)}))):this.notifyEvent(r),[2,u];case 3:throw p=f.sent(),l=Date.now(),r.duration=l-d,y=p,r.error={name:y.name||"UnknownError",message:y.message||"An unknown error occurred"},this.notifyEvent(r),p;case 4:return[2]}})})},this.fetchObserver=function(){t.fetch=i})}},e})();export{R as NetworkObservers};

```

---

## .output/public/_nuxt/Cvlh8XCj.js

```js
import{u as a,f as s,h as u,i as r,g as h}from"./BpsV6fwO.js";function i(t){const e=t||s();return e.ssrContext?.head||e.runWithContext(()=>{if(u()){const n=r(h);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function d(t,e={}){const n=e.head||i(e.nuxt);return a(t,{head:n,...e})}export{d as u};

```

---

## .output/public/_nuxt/D7Bf6Say.js

```js
var r=`var WebWorker=function(r){"use strict";var n=Uint8Array,e=Uint16Array,f=Uint32Array,t=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),a=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),o=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),i=function(r,n){for(var t=new e(31),a=0;a<31;++a)t[a]=n+=1<<r[a-1];var o=new f(t[30]);for(a=1;a<30;++a)for(var i=t[a];i<t[a+1];++i)o[i]=i-t[a]<<5|a;return[t,o]},v=i(t,2),u=v[0],s=v[1];u[28]=258,s[258]=28;for(var l=i(a,0)[1],c=new e(32768),h=0;h<32768;++h){var g=(43690&h)>>>1|(21845&h)<<1;g=(61680&(g=(52428&g)>>>2|(13107&g)<<2))>>>4|(3855&g)<<4,c[h]=((65280&g)>>>8|(255&g)<<8)>>>1}var w=function(r,n,f){for(var t=r.length,a=0,o=new e(n);a<t;++a)++o[r[a]-1];var i,v=new e(n);for(a=0;a<n;++a)v[a]=v[a-1]+o[a-1]<<1;if(f){i=new e(1<<n);var u=15-n;for(a=0;a<t;++a)if(r[a])for(var s=a<<4|r[a],l=n-r[a],h=v[r[a]-1]++<<l,g=h|(1<<l)-1;h<=g;++h)i[c[h]>>>u]=s}else for(i=new e(t),a=0;a<t;++a)i[a]=c[v[r[a]-1]++]>>>15-r[a];return i},d=new n(288);for(h=0;h<144;++h)d[h]=8;for(h=144;h<256;++h)d[h]=9;for(h=256;h<280;++h)d[h]=7;for(h=280;h<288;++h)d[h]=8;var m=new n(32);for(h=0;h<32;++h)m[h]=5;var y=w(d,9,0),M=w(m,5,0),p=function(r){return(r/8|0)+(7&r&&1)},b=function(r,t,a){(null==a||a>r.length)&&(a=r.length);var o=new(r instanceof e?e:r instanceof f?f:n)(a-t);return o.set(r.subarray(t,a)),o},C=function(r,n,e){e<<=7&n;var f=n/8|0;r[f]|=e,r[f+1]|=e>>>8},S=function(r,n,e){e<<=7&n;var f=n/8|0;r[f]|=e,r[f+1]|=e>>>8,r[f+2]|=e>>>16},x=function(r,f){for(var t=[],a=0;a<r.length;++a)r[a]&&t.push({s:a,f:r[a]});var o=t.length,i=t.slice();if(!o)return[new n(0),0];if(1==o){var v=new n(t[0].s+1);return v[t[0].s]=1,[v,1]}t.sort(function(r,n){return r.f-n.f}),t.push({s:-1,f:25001});var u=t[0],s=t[1],l=0,c=1,h=2;for(t[0]={s:-1,f:u.f+s.f,l:u,r:s};c!=o-1;)u=t[t[l].f<t[h].f?l++:h++],s=t[l!=c&&t[l].f<t[h].f?l++:h++],t[c++]={s:-1,f:u.f+s.f,l:u,r:s};var g=i[0].s;for(a=1;a<o;++a)i[a].s>g&&(g=i[a].s);var w=new e(g+1),d=A(t[c-1],w,0);if(d>f){a=0;var m=0,y=d-f,M=1<<y;for(i.sort(function(r,n){return w[n.s]-w[r.s]||r.f-n.f});a<o;++a){var p=i[a].s;if(!(w[p]>f))break;m+=M-(1<<d-w[p]),w[p]=f}for(m>>>=y;m>0;){var b=i[a].s;w[b]<f?m-=1<<f-w[b]++-1:++a}for(;a>=0&&m;--a){var C=i[a].s;w[C]==f&&(--w[C],++m)}d=f}return[new n(w),d]},A=function(r,n,e){return-1==r.s?Math.max(A(r.l,n,e+1),A(r.r,n,e+1)):n[r.s]=e},O=function(r){for(var n=r.length;n&&!r[--n];);for(var f=new e(++n),t=0,a=r[0],o=1,i=function(r){f[t++]=r},v=1;v<=n;++v)if(r[v]==a&&v!=n)++o;else{if(!a&&o>2){for(;o>138;o-=138)i(32754);o>2&&(i(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(i(a),--o;o>6;o-=6)i(8304);o>2&&(i(o-3<<5|8208),o=0)}for(;o--;)i(a);o=1,a=r[v]}return[f.subarray(0,t),n]},T=function(r,n){for(var e=0,f=0;f<n.length;++f)e+=r[f]*n[f];return e},k=function(r,n,e){var f=e.length,t=p(n+2);r[t]=255&f,r[t+1]=f>>>8,r[t+2]=255^r[t],r[t+3]=255^r[t+1];for(var a=0;a<f;++a)r[t+a+4]=e[a];return 8*(t+4+f)},E=function(r,n,f,i,v,u,s,l,c,h,g){C(n,g++,f),++v[256];for(var p=x(v,15),b=p[0],A=p[1],E=x(u,15),J=E[0],N=E[1],U=O(b),D=U[0],I=U[1],W=O(J),_=W[0],j=W[1],P=new e(19),q=0;q<D.length;++q)P[31&D[q]]++;for(q=0;q<_.length;++q)P[31&_[q]]++;for(var z=x(P,7),B=z[0],F=z[1],G=19;G>4&&!B[o[G-1]];--G);var H,K,L,Q,R=h+5<<3,V=T(v,d)+T(u,m)+s,X=T(v,b)+T(u,J)+s+14+3*G+T(P,B)+(2*P[16]+3*P[17]+7*P[18]);if(R<=V&&R<=X)return k(n,g,r.subarray(c,c+h));if(C(n,g,1+(X<V)),g+=2,X<V){H=w(b,A,0),K=b,L=w(J,N,0),Q=J;var Y=w(B,F,0);C(n,g,I-257),C(n,g+5,j-1),C(n,g+10,G-4),g+=14;for(q=0;q<G;++q)C(n,g+3*q,B[o[q]]);g+=3*G;for(var Z=[D,_],$=0;$<2;++$){var rr=Z[$];for(q=0;q<rr.length;++q){var nr=31&rr[q];C(n,g,Y[nr]),g+=B[nr],nr>15&&(C(n,g,rr[q]>>>5&127),g+=rr[q]>>>12)}}}else H=y,K=d,L=M,Q=m;for(q=0;q<l;++q)if(i[q]>255){nr=i[q]>>>18&31;S(n,g,H[nr+257]),g+=K[nr+257],nr>7&&(C(n,g,i[q]>>>23&31),g+=t[nr]);var er=31&i[q];S(n,g,L[er]),g+=Q[er],er>3&&(S(n,g,i[q]>>>5&8191),g+=a[er])}else S(n,g,H[i[q]]),g+=K[i[q]];return S(n,g,H[256]),g+K[256]},J=new f([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),N=function(r,o,i,v,u){return function(r,o,i,v,u,c){var h=r.length,g=new n(v+h+5*(1+Math.floor(h/7e3))+u),w=g.subarray(v,g.length-u),d=0;if(!o||h<8)for(var m=0;m<=h;m+=65535){var y=m+65535;y<h?d=k(w,d,r.subarray(m,y)):(w[m]=c,d=k(w,d,r.subarray(m,h)))}else{for(var M=J[o-1],C=M>>>13,S=8191&M,x=(1<<i)-1,A=new e(32768),O=new e(x+1),T=Math.ceil(i/3),N=2*T,U=function(n){return(r[n]^r[n+1]<<T^r[n+2]<<N)&x},D=new f(25e3),I=new e(288),W=new e(32),_=0,j=0,P=(m=0,0),q=0,z=0;m<h;++m){var B=U(m),F=32767&m,G=O[B];if(A[F]=G,O[B]=F,q<=m){var H=h-m;if((_>7e3||P>24576)&&H>423){d=E(r,w,0,D,I,W,j,P,z,m-z,d),P=_=j=0,z=m;for(var K=0;K<286;++K)I[K]=0;for(K=0;K<30;++K)W[K]=0}var L=2,Q=0,R=S,V=F-G&32767;if(H>2&&B==U(m-V))for(var X=Math.min(C,H)-1,Y=Math.min(32767,m),Z=Math.min(258,H);V<=Y&&--R&&F!=G;){if(r[m+L]==r[m+L-V]){for(var $=0;$<Z&&r[m+$]==r[m+$-V];++$);if($>L){if(L=$,Q=V,$>X)break;var rr=Math.min(V,$-2),nr=0;for(K=0;K<rr;++K){var er=m-V+K+32768&32767,fr=er-A[er]+32768&32767;fr>nr&&(nr=fr,G=er)}}}V+=(F=G)-(G=A[F])+32768&32767}if(Q){D[P++]=268435456|s[L]<<18|l[Q];var tr=31&s[L],ar=31&l[Q];j+=t[tr]+a[ar],++I[257+tr],++W[ar],q=m+L,++_}else D[P++]=r[m],++I[r[m]]}}d=E(r,w,c,D,I,W,j,P,z,m-z,d)}return b(g,0,v+p(d)+u)}(r,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+o.mem,i,v,!0)};function U(r,n){void 0===n&&(n={});var e=function(){var r=1,n=0;return{p:function(e){for(var f=r,t=n,a=e.length,o=0;o!=a;){for(var i=Math.min(o+5552,a);o<i;++o)t+=f+=e[o];f%=65521,t%=65521}r=f,n=t},d:function(){return(r>>>8<<16|(255&n)<<8|n>>>8)+2*((255&r)<<23)}}}();e.p(r);var f,t,a,o=N(r,n,2,4);return f=o,t=n.level,a=0==t?0:t<6?1:9==t?3:2,f[0]=120,f[1]=a<<6|(a?32-2*a:1),function(r,n,e){for(;e;++n)r[n]=e,e>>>=8}(o,o.length-4,e.d()),o}const D=r=>{const e={...r,v:"v1"};return function(r,n){var e="";if(!n&&"undefined"!=typeof TextDecoder)return(new TextDecoder).decode(r);for(var f=0;f<r.length;){var t=r[f++];t<128||n?e+=String.fromCharCode(t):t<224?e+=String.fromCharCode((31&t)<<6|63&r[f++]):t<240?e+=String.fromCharCode((15&t)<<12|(63&r[f++])<<6|63&r[f++]):(t=((15&t)<<18|(63&r[f++])<<12|(63&r[f++])<<6|63&r[f++])-65536,e+=String.fromCharCode(55296|t>>10,56320|1023&t))}return e}(U(function(r,e){var f=r.length;if(!e&&"undefined"!=typeof TextEncoder)return(new TextEncoder).encode(r);for(var t=new n(r.length+(r.length>>>1)),a=0,o=function(r){t[a++]=r},i=0;i<f;++i){if(a+5>t.length){var v=new n(a+8+(f-i<<1));v.set(t),t=v}var u=r.charCodeAt(i);u<128||e?o(u):u<2048?(o(192|u>>>6),o(128|63&u)):u>55295&&u<57344?(o(240|(u=65536+(1047552&u)|1023&r.charCodeAt(++i))>>>18),o(128|u>>>12&63),o(128|u>>>6&63),o(128|63&u)):(o(224|u>>>12),o(128|u>>>6&63),o(128|63&u))}return b(t,0,a)}(JSON.stringify(e))),!0)};onmessage=r=>{const{event:n,sessionId:e}="string"==typeof r.data?JSON.parse(r.data):r.data,f=JSON.stringify(D(n));postMessage({compressedEvent:f,sessionId:e})};const I=onmessage;return r.compressionOnMessage=I,Object.defineProperty(r,"__esModule",{value:!0}),r}({});
`;export{r as compressionScript};

```

---

## .output/public/_nuxt/DkWg1RwU.js

```js
import{j as d,k as l,c as s,a as t,d as i,t as u,l as r,o as n,r as p}from"./BpsV6fwO.js";const m={class:"container"},_={class:"stats"},c={style:{"margin-top":"2rem"}},b={key:0},g={key:1},y={key:2},f={key:3},h={key:4},v=d({__name:"profile",setup(k){const a=l(),e=p(()=>a.user.value);return(C,o)=>(n(),s("div",m,[o[4]||(o[4]=t("h1",null,"User Profile",-1)),t("div",_,[o[2]||(o[2]=t("h2",null,"Your Information",-1)),t("p",null,[o[0]||(o[0]=t("strong",null,"Username:",-1)),i(" "+u(r(e)?.username),1)]),t("p",null,[o[1]||(o[1]=t("strong",null,"Burrito Considerations:",-1)),i(" "+u(r(e)?.burritoConsiderations),1)])]),t("div",c,[o[3]||(o[3]=t("h3",null,"Your Burrito Journey",-1)),r(e)?.burritoConsiderations===0?(n(),s("p",b," You haven't considered any burritos yet. Visit the Burrito Consideration page to start! ")):r(e)?.burritoConsiderations===1?(n(),s("p",g," You've considered the burrito potential once. Keep going! ")):r(e)&&r(e).burritoConsiderations<5?(n(),s("p",y," You're getting the hang of burrito consideration! ")):r(e)&&r(e).burritoConsiderations<10?(n(),s("p",f," You're becoming a burrito consideration expert! ")):(n(),s("p",h,"You are a true burrito consideration master! 🌯"))])]))}});export{v as default};

```

---

## .output/public/_nuxt/DMrp4Fbu.js

```js
var rt={},on=Object.defineProperty,an=(e,t,r)=>t in e?on(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t,r)=>an(e,typeof t!="symbol"?t+"":t,r),Jr,ln=Object.defineProperty,un=(e,t,r)=>t in e?ln(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yr=(e,t,r)=>un(e,typeof t!="symbol"?t+"":t,r),Y=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Y||{});const Qr={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Xr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},je={};function cn(e){var t,r;const l=(r=(t=globalThis?.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(l&&globalThis[l])return globalThis[l]}function kr(e){if(je[e])return je[e];const t=cn(e)||globalThis[e],r=t.prototype,l=e in Qr?Qr[e]:void 0,s=!!(l&&l.every(m=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,m))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),f=e in Xr?Xr[e]:void 0,u=!!(f&&f.every(m=>{var a;return typeof r[m]=="function"&&((a=r[m])==null?void 0:a.toString().includes("[native code]"))}));if(s&&u)return je[e]=t.prototype,t.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const a=m.contentWindow;if(!a)return t.prototype;const p=a[e].prototype;return document.body.removeChild(m),p?je[e]=p:r}catch{return r}}const Ct={};function be(e,t,r){var l;const s=`${e}.${String(r)}`;if(Ct[s])return Ct[s].call(t);const f=kr(e),u=(l=Object.getOwnPropertyDescriptor(f,r))==null?void 0:l.get;return u?(Ct[s]=u,u.call(t)):t[r]}const xt={};function wi(e,t,r){const l=`${e}.${String(r)}`;if(xt[l])return xt[l].bind(t);const f=kr(e)[r];return typeof f!="function"?t[r]:(xt[l]=f,f.bind(t))}function hn(e){return be("Node",e,"childNodes")}function fn(e){return be("Node",e,"parentNode")}function pn(e){return be("Node",e,"parentElement")}function dn(e){return be("Node",e,"textContent")}function mn(e,t){return wi("Node",e,"contains")(t)}function gn(e){return wi("Node",e,"getRootNode")()}function yn(e){return!e||!("host"in e)?null:be("ShadowRoot",e,"host")}function wn(e){return e.styleSheets}function bn(e){return!e||!("shadowRoot"in e)?null:be("Element",e,"shadowRoot")}function Sn(e,t){return be("Element",e,"querySelector")(t)}function vn(e,t){return be("Element",e,"querySelectorAll")(t)}function Cn(){return kr("MutationObserver").constructor}const K={childNodes:hn,parentNode:fn,parentElement:pn,textContent:dn,contains:mn,getRootNode:gn,host:yn,styleSheets:wn,shadowRoot:bn,querySelector:Sn,querySelectorAll:vn,mutationObserver:Cn};function bi(e){return e.nodeType===e.ELEMENT_NODE}function Te(e){const t=e&&"host"in e&&"mode"in e&&K.host(e)||null;return!!(t&&"shadowRoot"in t&&K.shadowRoot(t)===e)}function Fe(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function xn(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Rn(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function Mr(e){try{const t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);const l=Array.from(t,s=>Si(s,r)).join("");return xn(l)}catch{return null}}function Si(e,t){if(Mn(e)){let r;try{r=Mr(e.styleSheet)||Rn(e)}catch{r=e.cssText}return e.styleSheet.href?nt(r,e.styleSheet.href):r}else{let r=e.cssText;return En(e)&&e.selectorText.includes(":")&&(r=On(r)),t?nt(r,t):r}}function On(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Mn(e){return"styleSheet"in e}function En(e){return"selectorText"in e}class vi{constructor(){Yr(this,"idNodeMap",new Map),Yr(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(l=>this.removeNodeFromMap(l))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){const l=r.id;this.idNodeMap.set(l,t),this.nodeMetaMap.set(t,r)}replace(t,r){const l=this.getNode(t);if(l){const s=this.nodeMetaMap.get(l);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function In(){return new vi}function st({element:e,maskInputOptions:t,tagName:r,type:l,value:s,maskInputFn:f}){let u=s||"";const m=l&&Ce(l);return(t[r.toLowerCase()]||m&&t[m])&&(f?u=f(u,e):u="*".repeat(u.length)),u}function Ce(e){return e.toLowerCase()}const Kr="__rrweb_original__";function An(e){const t=e.getContext("2d");if(!t)return!0;const r=50;for(let l=0;l<e.width;l+=r)for(let s=0;s<e.height;s+=r){const f=t.getImageData,u=Kr in f?f[Kr]:f;if(new Uint32Array(u.call(t,l,s,Math.min(r,e.width-l),Math.min(r,e.height-s)).data.buffer).some(a=>a!==0))return!1}return!0}function it(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ce(t):null}function Ci(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}const l=/\.([0-9a-z]+)(?:$)/i,s=r.pathname.match(l);return s?.[1]??null}function kn(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}const Nn=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Pn=/^(?:[a-z+]+:)?\/\//i,_n=/^www\..*/i,Ln=/^(data:)([^,]*),(.*)/i;function nt(e,t){return(e||"").replace(Nn,(r,l,s,f,u,m)=>{const a=s||u||m,p=l||f||"";if(!a)return r;if(Pn.test(a)||_n.test(a))return`url(${p}${a}${p})`;if(Ln.test(a))return`url(${p}${a}${p})`;if(a[0]==="/")return`url(${p}${kn(t)+a}${p})`;const i=t.split("/"),c=a.split("/");i.pop();for(const o of c)o!=="."&&(o===".."?i.pop():i.push(o));return`url(${p}${i.join("/")}${p})`})}function He(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Dn(e,t,r=!1){const l=Array.from(t.childNodes),s=[];let f=0;if(l.length>1&&e&&typeof e=="string"){let u=He(e,r);const m=u.length/e.length;for(let a=1;a<l.length;a++)if(l[a].textContent&&typeof l[a].textContent=="string"){const p=He(l[a].textContent,r),i=100;let c=3;for(;c<p.length&&(p[c].match(/[a-zA-Z0-9]/)||p.indexOf(p.substring(0,c),1)!==-1);c++);for(;c<p.length;c++){let o=p.substring(0,c),n=u.split(o),d=-1;if(n.length===2)d=n[0].length;else if(n.length>2&&n[0]===""&&l[a-1].textContent!=="")d=u.indexOf(o,1);else if(n.length===1){if(o=o.substring(0,o.length-1),n=u.split(o),n.length<=1)return s.push(e),s;c=i+1}else c===p.length-1&&(d=u.indexOf(o));if(n.length>=2&&c>i){const h=l[a-1].textContent;if(h&&typeof h=="string"){const y=He(h).length;d=u.indexOf(o,y)}d===-1&&(d=n[0].length)}if(d!==-1){let h=Math.floor(d/m);for(;h>0&&h<e.length;){if(f+=1,f>50*l.length)return s.push(e),s;const y=He(e.substring(0,h),r);if(y.length===d){s.push(e.substring(0,h)),e=e.substring(h),u=u.substring(d);break}else y.length<d?h+=Math.max(1,Math.floor((d-y.length)/m)):h-=Math.max(1,Math.floor((y.length-d)*m))}break}}}}return s.push(e),s}function Tn(e,t){return Dn(e,t).join("/* rr_split */")}const Fn="lightgrey";let Un=1;const $n=new RegExp("[^a-z0-9-_:]"),$e=-2;function xi(){return Un++}function Bn(e){if(e instanceof HTMLFormElement)return"form";const t=Ce(e.tagName);return $n.test(t)?"div":t}let Ee,Zr;const zn=/^[^ \t\n\r\u000c]+/,Wn=/^[, \t\n\r\u000c]+/;function qn(e,t){if(t.trim()==="")return t;let r=0;function l(f){let u;const m=f.exec(t.substring(r));return m?(u=m[0],r+=u.length,u):""}const s=[];for(;l(Wn),!(r>=t.length);){let f=l(zn);if(f.slice(-1)===",")f=ke(e,f.substring(0,f.length-1)),s.push(f);else{let u="";f=ke(e,f);let m=!1;for(;;){const a=t.charAt(r);if(a===""){s.push((f+u).trim());break}else if(m)a===")"&&(m=!1);else if(a===","){r+=1,s.push((f+u).trim());break}else a==="("&&(m=!0);u+=a,r+=1}}}return s.join(", ")}const es=new WeakMap;function ke(e,t){return!t||t.trim()===""?t:Nr(e,t)}function jn(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Nr(e,t){let r=es.get(e);if(r||(r=e.createElement("a"),es.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Ri(e,t,r,l){return l&&(r==="src"||r==="href"&&!(t==="use"&&l[0]==="#")||r==="xlink:href"&&l[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?ke(e,l):r==="srcset"?qn(e,l):r==="style"?nt(l,Nr(e)):t==="object"&&r==="data"?ke(e,l):l)}function Oi(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function Hn(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let l=e.classList.length;l--;){const s=e.classList[l];if(t.test(s))return!0}if(r)return e.matches(r)}catch{}return!1}function ot(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?ot(K.parentNode(e),t,r):!1;for(let l=e.classList.length;l--;){const s=e.classList[l];if(t.test(s))return!0}return r?ot(K.parentNode(e),t,r):!1}function Mi(e,t,r,l){let s;if(bi(e)){if(s=e,!K.childNodes(s).length)return!1}else{if(K.parentElement(e)===null)return!1;s=K.parentElement(e)}try{if(typeof t=="string"){if(l){if(s.closest(`.${t}`))return!0}else if(s.classList.contains(t))return!0}else if(ot(s,t,l))return!0;if(r){if(l){if(s.closest(r))return!0}else if(s.matches(r))return!0}}catch{}return!1}function Gn(e,t,r){const l=e.contentWindow;if(!l)return;let s=!1,f;try{f=l.document.readyState}catch{return}if(f!=="complete"){const m=setTimeout(()=>{s||(t(),s=!0)},r);e.addEventListener("load",()=>{clearTimeout(m),s=!0,t()});return}const u="about:blank";if(l.location.href!==u||e.src===u||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function Vn(e,t,r){let l=!1,s;try{s=e.sheet}catch{return}if(s)return;const f=setTimeout(()=>{l||(t(),l=!0)},r);e.addEventListener("load",()=>{clearTimeout(f),l=!0,t()})}function Jn(e,t){const{doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:u,inlineStylesheet:m,maskInputOptions:a={},maskTextFn:p,maskInputFn:i,maskAttributeFn:c,dataURLOptions:o={},inlineImages:n,recordCanvas:d,keepIframeSrcFn:h,newlyAddedElement:y=!1,cssCaptured:C=!1,applyBackgroundColorToBlockedElements:w=!1}=t,S=Yn(r,l);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Y.Document,childNodes:[],compatMode:e.compatMode}:{type:Y.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Y.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return Xn(e,{doc:r,blockClass:s,blockSelector:f,inlineStylesheet:m,maskInputOptions:a,maskInputFn:i,maskAttributeFn:c,dataURLOptions:o,inlineImages:n,recordCanvas:d,keepIframeSrcFn:h,newlyAddedElement:y,rootId:S,applyBackgroundColorToBlockedElements:w});case e.TEXT_NODE:return Qn(e,{doc:r,needsMask:u,maskTextFn:p,rootId:S,cssCaptured:C});case e.CDATA_SECTION_NODE:return{type:Y.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:Y.Comment,textContent:K.textContent(e)||"",rootId:S};default:return!1}}function Yn(e,t){if(!t.hasNode(e))return;const r=t.getId(e);return r===1?void 0:r}function Qn(e,t){const{needsMask:r,maskTextFn:l,rootId:s,cssCaptured:f}=t,u=K.parentNode(e),m=u&&u.tagName;let a="";const p=m==="STYLE"?!0:void 0,i=m==="SCRIPT"?!0:void 0;return i?a="SCRIPT_PLACEHOLDER":f||(a=K.textContent(e),p&&a&&(a=nt(a,Nr(t.doc)))),!p&&!i&&a&&r&&(a=l?l(a,K.parentElement(e)):a.replace(/[\S]/g,"*")),{type:Y.Text,textContent:a||"",rootId:s}}function Xn(e,t){const{doc:r,blockClass:l,blockSelector:s,inlineStylesheet:f,maskInputOptions:u={},maskInputFn:m,maskAttributeFn:a,dataURLOptions:p={},inlineImages:i,recordCanvas:c,keepIframeSrcFn:o,newlyAddedElement:n=!1,rootId:d,applyBackgroundColorToBlockedElements:h=!1}=t,y=Hn(e,l,s),C=Bn(e);let w={};const S=e.attributes.length;for(let g=0;g<S;g++){const v=e.attributes[g];if(!Oi(C,v.name,v.value)){const x=Ri(r,C,Ce(v.name),v.value);if(a&&x!==null){const O=a(v.name,x,e);O!==null&&(w[v.name]=O)}else w[v.name]=x}}if(C==="link"&&f){const g=Array.from(r.styleSheets).find(x=>x.href===e.href);let v=null;g&&(v=Mr(g)),v&&(delete w.rel,delete w.href,w._cssText=v)}if(C==="style"&&e.sheet){let g=Mr(e.sheet);g&&(e.childNodes.length>1&&(g=Tn(g,e)),w._cssText=g)}if(C==="input"||C==="textarea"||C==="select"){const g=e.value,v=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&g?w.value=st({element:e,type:it(e),tagName:C,value:g,maskInputOptions:u,maskInputFn:m}):v&&(w.checked=v)}if(C==="option"&&(e.selected&&!u.select?w.selected=!0:delete w.selected),C==="dialog"&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),C==="canvas"&&c){if(e.__context==="2d")An(e)||(w.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){const g=e.toDataURL(p.type,p.quality),v=r.createElement("canvas");v.width=e.width,v.height=e.height;const x=v.toDataURL(p.type,p.quality);g!==x&&(w.rr_dataURL=g)}}if(C==="img"&&i){Ee||(Ee=r.createElement("canvas"),Zr=Ee.getContext("2d"));const g=e,v=g.currentSrc||g.getAttribute("src")||"<unknown-src>",x=g.crossOrigin,O=()=>{g.removeEventListener("load",O);try{Ee.width=g.naturalWidth,Ee.height=g.naturalHeight,Zr.drawImage(g,0,0),w.rr_dataURL=Ee.toDataURL(p.type,p.quality)}catch(A){if(g.crossOrigin!=="anonymous"){g.crossOrigin="anonymous",g.complete&&g.naturalWidth!==0?O():g.addEventListener("load",O);return}else console.warn(`Cannot inline img src=${v}! Error: ${A}`)}g.crossOrigin==="anonymous"&&(x?w.crossOrigin=x:g.removeAttribute("crossorigin"))};g.complete&&g.naturalWidth!==0?O():g.addEventListener("load",O)}if(C==="audio"||C==="video"){const g=w;g.rr_mediaState=e.paused?"paused":"played",g.rr_mediaCurrentTime=e.currentTime,g.rr_mediaPlaybackRate=e.playbackRate,g.rr_mediaMuted=e.muted,g.rr_mediaLoop=e.loop,g.rr_mediaVolume=e.volume}if(n||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),y){const{width:g,height:v}=e.getBoundingClientRect();w={class:w.class,rr_width:`${g}px`,rr_height:`${v}px`,...h?{rr_background_color:Fn}:{}}}C==="iframe"&&!o(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);let b;try{customElements.get(C)&&(b=!0)}catch{}return{type:Y.Element,tagName:C,attributes:w,childNodes:[],isSVG:jn(e)||void 0,needBlock:y,rootId:d,isCustom:b}}function z(e){return e==null?"":e.toLowerCase()}function Kn(e,t){if(t.comment&&e.type===Y.Comment)return!0;if(e.type===Y.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ci(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(z(e.attributes.name).match(/^msapplication-tile(image|color)$/)||z(e.attributes.name)==="application-name"||z(e.attributes.rel)==="icon"||z(e.attributes.rel)==="apple-touch-icon"||z(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&z(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(z(e.attributes.property).match(/^(og|twitter|fb):/)||z(e.attributes.name).match(/^(og|twitter):/)||z(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(z(e.attributes.name)==="robots"||z(e.attributes.name)==="googlebot"||z(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(z(e.attributes.name)==="author"||z(e.attributes.name)==="generator"||z(e.attributes.name)==="framework"||z(e.attributes.name)==="publisher"||z(e.attributes.name)==="progid"||z(e.attributes.property).match(/^article:/)||z(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(z(e.attributes.name)==="google-site-verification"||z(e.attributes.name)==="yandex-verification"||z(e.attributes.name)==="csrf-token"||z(e.attributes.name)==="p:domain_verify"||z(e.attributes.name)==="verify-v1"||z(e.attributes.name)==="verification"||z(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ne(e,t){const{doc:r,mirror:l,blockClass:s,blockSelector:f,maskTextClass:u,maskTextSelector:m,skipChild:a=!1,inlineStylesheet:p=!0,maskInputOptions:i={},maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d,dataURLOptions:h={},inlineImages:y=!1,recordCanvas:C=!1,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:b=5e3,onStylesheetLoad:g,stylesheetLoadTimeout:v=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:O=!1,cssCaptured:A=!1,applyBackgroundColorToBlockedElements:M=!1}=t;let{needsMask:$}=t,{preserveWhiteSpace:k=!0}=t;$||($=Mi(e,u,m,$===void 0));const R=Jn(e,{doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:$,inlineStylesheet:p,maskInputOptions:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,dataURLOptions:h,inlineImages:y,recordCanvas:C,keepIframeSrcFn:x,newlyAddedElement:O,cssCaptured:A,applyBackgroundColorToBlockedElements:M});if(!R)return console.warn(e,"not serialized"),null;let Z;l.hasNode(e)?Z=l.getId(e):Kn(R,d)||!k&&R.type===Y.Text&&!R.textContent.replace(/^\s+|\s+$/gm,"").length?Z=$e:Z=xi();const N=Object.assign(R,{id:Z});if(l.add(e,N),Z===$e)return null;w&&w(e);let ee=!a;if(N.type===Y.Element){ee=ee&&!N.needBlock,delete N.needBlock;const F=K.shadowRoot(e);F&&Fe(F)&&(N.isShadowHost=!0)}if((N.type===Y.Document||N.type===Y.Element)&&ee){d.headWhitespace&&N.type===Y.Element&&N.tagName==="head"&&(k=!1);const F={doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:$,maskTextClass:u,maskTextSelector:m,skipChild:a,inlineStylesheet:p,maskInputOptions:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d,dataURLOptions:h,inlineImages:y,recordCanvas:C,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:g,stylesheetLoadTimeout:v,keepIframeSrcFn:x,cssCaptured:!1,applyBackgroundColorToBlockedElements:M};if(!(N.type===Y.Element&&N.tagName==="textarea"&&N.attributes.value!==void 0)){N.type===Y.Element&&N.attributes._cssText!==void 0&&typeof N.attributes._cssText=="string"&&(F.cssCaptured=!0);for(const W of Array.from(K.childNodes(e))){const P=Ne(W,F);P&&N.childNodes.push(P)}}let Q=null;if(bi(e)&&(Q=K.shadowRoot(e)))for(const W of Array.from(K.childNodes(Q))){const P=Ne(W,F);P&&(Fe(Q)&&(P.isShadow=!0),N.childNodes.push(P))}}const H=K.parentNode(e);return H&&Te(H)&&Fe(H)&&(N.isShadow=!0),N.type===Y.Element&&N.tagName==="iframe"&&Gn(e,()=>{const F=e.contentDocument;if(F&&S){const Q=Ne(F,{doc:F,mirror:l,blockClass:s,blockSelector:f,needsMask:$,maskTextClass:u,maskTextSelector:m,skipChild:!1,inlineStylesheet:p,maskInputOptions:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d,dataURLOptions:h,inlineImages:y,recordCanvas:C,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:g,stylesheetLoadTimeout:v,keepIframeSrcFn:x});Q&&S(e,Q)}},b),N.type===Y.Element&&N.tagName==="link"&&typeof N.attributes.rel=="string"&&(N.attributes.rel==="stylesheet"||N.attributes.rel==="preload"&&typeof N.attributes.href=="string"&&Ci(N.attributes.href)==="css")&&Vn(e,()=>{if(g){const F=Ne(e,{doc:r,mirror:l,blockClass:s,blockSelector:f,needsMask:$,maskTextClass:u,maskTextSelector:m,skipChild:!1,inlineStylesheet:p,maskInputOptions:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d,dataURLOptions:h,inlineImages:y,recordCanvas:C,preserveWhiteSpace:k,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:b,onStylesheetLoad:g,stylesheetLoadTimeout:v,keepIframeSrcFn:x});F&&g(e,F)}},v),N}function Zn(e,t){const{mirror:r=new vi,blockClass:l="rr-block",blockSelector:s=null,maskTextClass:f="rr-mask",maskTextSelector:u=null,inlineStylesheet:m=!0,inlineImages:a=!1,recordCanvas:p=!1,maskAllInputs:i=!1,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOM:d=!1,dataURLOptions:h,preserveWhiteSpace:y,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:b,stylesheetLoadTimeout:g,keepIframeSrcFn:v=()=>!1,applyBackgroundColorToBlockedElements:x=!1}=t||{};return Ne(e,{doc:e,mirror:r,blockClass:l,blockSelector:s,maskTextClass:f,maskTextSelector:u,skipChild:!1,inlineStylesheet:m,maskInputOptions:i===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:i===!1?{password:!0}:i,maskTextFn:c,maskInputFn:o,maskAttributeFn:n,slimDOMOptions:d===!0||d==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:d==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:d===!1?{}:d,dataURLOptions:h,inlineImages:a,recordCanvas:p,preserveWhiteSpace:y,onSerialize:C,onIframeLoad:w,iframeLoadTimeout:S,onStylesheetLoad:b,stylesheetLoadTimeout:g,keepIframeSrcFn:v,newlyAddedElement:!1,applyBackgroundColorToBlockedElements:x})}function eo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function to(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(l){var s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,s.get?s:{enumerable:!0,get:function(){return e[l]}})}),r}var Ge={exports:{}},ts;function ro(){if(ts)return Ge.exports;ts=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Ge.exports=t(),Ge.exports.createColors=t,Ge.exports}const so={},io=Object.freeze(Object.defineProperty({__proto__:null,default:so},Symbol.toStringTag,{value:"Module"})),he=to(io);var Rt,rs;function Pr(){if(rs)return Rt;rs=1;let e=ro(),t=he;class r extends Error{constructor(s,f,u,m,a,p){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),p&&(this.plugin=p),typeof f<"u"&&typeof u<"u"&&(typeof f=="number"?(this.line=f,this.column=u):(this.line=f.line,this.column=f.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),t&&s&&(f=t(f));let u=f.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),p=String(a).length,i,c;if(s){let{bold:o,gray:n,red:d}=e.createColors(!0);i=h=>o(d(h)),c=h=>n(h)}else i=c=o=>o;return u.slice(m,a).map((o,n)=>{let d=m+1+n,h=" "+(" "+d).slice(-p)+" | ";if(d===this.line){let y=c(h.replace(/\d/g," "))+o.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+c(h)+o+`
 `+y+i("^")}return" "+c(h)+o}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`

`+s+`
`),this.name+": "+this.message+s}}return Rt=r,r.default=r,Rt}var Ve={},ss;function _r(){return ss||(ss=1,Ve.isClean=Symbol("isClean"),Ve.my=Symbol("my")),Ve}var Ot,is;function Ei(){if(is)return Ot;is=1;const e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function t(l){return l[0].toUpperCase()+l.slice(1)}class r{constructor(s){this.builder=s}atrule(s,f){let u="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?u+=s.raws.afterName:m&&(u+=" "),s.nodes)this.block(s,u+m);else{let a=(s.raws.between||"")+(f?";":"");this.builder(u+m+a,s)}}beforeAfter(s,f){let u;s.type==="decl"?u=this.raw(s,null,"beforeDecl"):s.type==="comment"?u=this.raw(s,null,"beforeComment"):f==="before"?u=this.raw(s,null,"beforeRule"):u=this.raw(s,null,"beforeClose");let m=s.parent,a=0;for(;m&&m.type!=="root";)a+=1,m=m.parent;if(u.includes(`
`)){let p=this.raw(s,null,"indent");if(p.length)for(let i=0;i<a;i++)u+=p}return u}block(s,f){let u=this.raw(s,"between","beforeOpen");this.builder(f+u+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let u=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let a=s.nodes[m],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,f!==m||u)}}comment(s){let f=this.raw(s,"left","commentLeft"),u=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+u+"*/",s)}decl(s,f){let u=this.raw(s,"between","colon"),m=s.prop+u+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,u){let m;if(u||(u=f),f&&(m=s.raws[f],typeof m<"u"))return m;let a=s.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[u];let p=s.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(s,u);{let i="raw"+t(u);this[i]?m=this[i](p,s):p.walk(c=>{if(m=c.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[u]),p.rawCache[u]=m,m}rawBeforeClose(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return f=u.raws.after,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let u;return s.walkComments(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(f,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(s,f){let u;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(f,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(s){let f;return s.walk(u=>{if(u.type!=="decl"&&(f=u.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(u=>{if(u.nodes&&(u.parent!==s||s.first!==u)&&typeof u.raws.before<"u")return f=u.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(u=>{if(typeof u.raws.between<"u")return f=u.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length===0&&(f=u.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(u=>{let m=u.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof u.raws.before<"u"){let a=u.raws.before.split(`
`);return f=a[a.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(f=u.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let u=s[f],m=s.raws[f];return m&&m.value===u?m.raw:u}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return Ot=r,r.default=r,Ot}var Mt,ns;function ct(){if(ns)return Mt;ns=1;let e=Ei();function t(r,l){new e(l).stringify(r)}return Mt=t,t.default=t,Mt}var Et,os;function ht(){if(os)return Et;os=1;let{isClean:e,my:t}=_r(),r=Pr(),l=Ei(),s=ct();function f(m,a){let p=new m.constructor;for(let i in m){if(!Object.prototype.hasOwnProperty.call(m,i)||i==="proxyCache")continue;let c=m[i],o=typeof c;i==="parent"&&o==="object"?a&&(p[i]=a):i==="source"?p[i]=c:Array.isArray(c)?p[i]=c.map(n=>f(n,p)):(o==="object"&&c!==null&&(c=f(c)),p[i]=c)}return p}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let i of a[p])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=f(this);for(let i in a)p[i]=a[i];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:i,start:c}=this.rangeBy(p);return this.source.input.error(a,{column:c.column,line:c.line},{column:i.column,line:i.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,i){return a[p]===i||(a[p]=i,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let i=this.source.start;if(a.index)i=this.positionInside(a.index,p);else if(a.word){p=this.toString();let c=p.indexOf(a.word);c!==-1&&(i=this.positionInside(c,p))}return i}positionInside(a,p){let i=p||this.toString(),c=this.source.start.column,o=this.source.start.line;for(let n=0;n<a;n++)i[n]===`
`?(c=1,o+=1):c+=1;return{column:c,line:o}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let c=this.toString(),o=c.indexOf(a.word);o!==-1&&(p=this.positionInside(o,c),i=this.positionInside(o+a.word.length,c))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?i={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?i=this.positionInside(a.endIndex):a.index&&(i=this.positionInside(a.index+1));return(i.line<p.line||i.line===p.line&&i.column<=p.column)&&(i={column:p.column+1,line:p.line}),{end:i,start:p}}raw(a,p){return new l().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,i=!1;for(let c of a)c===this?i=!0:i?(this.parent.insertAfter(p,c),p=c):this.parent.insertBefore(p,c);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let i={},c=p==null;p=p||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let d=this[n];if(Array.isArray(d))i[n]=d.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof d=="object"&&d.toJSON)i[n]=d.toJSON(null,p);else if(n==="source"){let h=p.get(d.input);h==null&&(h=o,p.set(d.input,o),o++),i[n]={end:d.end,inputId:h,start:d.start}}else i[n]=d}return c&&(i.inputs=[...p.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let p="";return a(this,i=>{p+=i}),p}warn(a,p,i){let c={node:this};for(let o in i)c[o]=i[o];return a.warn(p,c)}get proxyOf(){return this}}return Et=u,u.default=u,Et}var It,as;function ft(){if(as)return It;as=1;let e=ht();class t extends e{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return It=t,t.default=t,It}var At,ls;function no(){if(ls)return At;ls=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return At={nanoid:(l=21)=>{let s="",f=l;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(l,s=21)=>(f=s)=>{let u="",m=f;for(;m--;)u+=l[Math.random()*l.length|0];return u}},At}var kt,us;function Ii(){if(us)return kt;us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{existsSync:r,readFileSync:l}=he,{dirname:s,join:f}=he;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class m{constructor(p,i){if(i.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let c=i.map?i.map.prev:void 0,o=this.loadMap(i.from,c);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=s(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let i=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(o.test(p)||n.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(i.test(p)||c.test(p))return u(p.substr(RegExp.lastMatch.length));let d=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let i=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let c=p.lastIndexOf(i.pop()),o=p.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(p.substring(c,o)))}loadFile(p){if(this.root=s(p),r(p))return this.mapFile=p,l(p,"utf-8").toString().trim()}loadMap(p,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let c=i(p);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return p&&(c=f(s(p),c)),this.loadFile(c)}}}startWith(p,i){return p?p.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return kt=m,m.default=m,kt}var Nt,cs;function pt(){if(cs)return Nt;cs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{fileURLToPath:r,pathToFileURL:l}=he,{isAbsolute:s,resolve:f}=he,{nanoid:u}=no(),m=he,a=Pr(),p=Ii(),i=Symbol("fromOffsetCache"),c=!!(e&&t),o=!!(f&&s);class n{constructor(h,y={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!o||/^\w+:\/\//.test(y.from)||s(y.from)?this.file=y.from:this.file=f(y.from)),o&&c){let C=new p(this.css,y);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,y,C,w={}){let S,b,g;if(y&&typeof y=="object"){let x=y,O=C;if(typeof x.offset=="number"){let A=this.fromOffset(x.offset);y=A.line,C=A.col}else y=x.line,C=x.column;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);b=A.line,g=A.col}else b=O.line,g=O.column}else if(!C){let x=this.fromOffset(y);y=x.line,C=x.col}let v=this.origin(y,C,b,g);return v?S=new a(h,v.endLine===void 0?v.line:{column:v.column,line:v.line},v.endLine===void 0?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,w.plugin):S=new a(h,b===void 0?y:{column:C,line:y},b===void 0?C:{column:g,line:b},this.css,this.file,w.plugin),S.input={column:C,endColumn:g,endLine:b,line:y,source:this.css},this.file&&(l&&(S.input.url=l(this.file).toString()),S.input.file=this.file),S}fromOffset(h){let y,C;if(this[i])C=this[i];else{let S=this.css.split(`
`);C=new Array(S.length);let b=0;for(let g=0,v=S.length;g<v;g++)C[g]=b,b+=S[g].length+1;this[i]=C}y=C[C.length-1];let w=0;if(h>=y)w=C.length-1;else{let S=C.length-2,b;for(;w<S;)if(b=w+(S-w>>1),h<C[b])S=b-1;else if(h>=C[b+1])w=b+1;else{w=b;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:f(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,y,C,w){if(!this.map)return!1;let S=this.map.consumer(),b=S.originalPositionFor({column:y,line:h});if(!b.source)return!1;let g;typeof C=="number"&&(g=S.originalPositionFor({column:w,line:C}));let v;s(b.source)?v=l(b.source):v=new URL(b.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let x={column:b.column,endColumn:g&&g.column,endLine:g&&g.line,line:b.line,url:v.toString()};if(v.protocol==="file:")if(r)x.file=r(v);else throw new Error("file: protocol is not available in this PostCSS build");let O=S.sourceContentFor(b.source);return O&&(x.source=O),x}toJSON(){let h={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(h[y]=this[y]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return Nt=n,n.default=n,m&&m.registerInput&&m.registerInput(n),Nt}var Pt,hs;function Ai(){if(hs)return Pt;hs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=he,{dirname:r,relative:l,resolve:s,sep:f}=he,{pathToFileURL:u}=he,m=pt(),a=!!(e&&t),p=!!(r&&s&&l&&f);class i{constructor(o,n,d,h){this.stringify=o,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let n=`
`;this.css.includes(`\r
`)&&(n=`\r
`),this.css+=n+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let n=this.toUrl(this.path(o.file)),d=o.root||r(o.file),h;this.mapOpts.sourcesContent===!1?(h=new e(o.text),h.sourcesContent&&(h.sourcesContent=null)):h=o.consumer(),this.map.applySourceMap(h,n,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let n=this.root.nodes.length-1;n>=0;n--)o=this.root.nodes[n],o.type==="comment"&&o.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,n=>{o+=n}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=t.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,n=1,d="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,C;this.stringify(this.root,(w,S,b)=>{if(this.css+=w,S&&b!=="end"&&(h.generated.line=o,h.generated.column=n-1,S.source&&S.source.start?(h.source=this.sourcePath(S),h.original.line=S.source.start.line,h.original.column=S.source.start.column-1,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,this.map.addMapping(h))),y=w.match(/\n/g),y?(o+=y.length,C=w.lastIndexOf(`
`),n=w.length-C):n+=w.length,S&&b!=="start"){let g=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==g.last||g.raws.semicolon)&&(S.source&&S.source.end?(h.source=this.sourcePath(S),h.original.line=S.source.end.line,h.original.column=S.source.end.column-1,h.generated.line=o,h.generated.column=n-2,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,h.generated.line=o,h.generated.column=n-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let n=this.memoizedPaths.get(o);if(n)return n;let d=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=r(s(d,this.mapOpts.annotation)));let h=l(d,o);return this.memoizedPaths.set(o,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let n=o.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let o=new m(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!o[d]){o[d]=!0;let h=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(h,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let n=this.memoizedFileURLs.get(o);if(n)return n;if(u){let d=u(o).toString();return this.memoizedFileURLs.set(o,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let n=this.memoizedURLs.get(o);if(n)return n;f==="\\"&&(o=o.replace(/\\/g,"/"));let d=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,d),d}}return Pt=i,Pt}var _t,fs;function dt(){if(fs)return _t;fs=1;let e=ht();class t extends e{constructor(l){super(l),this.type="comment"}}return _t=t,t.default=t,_t}var Lt,ps;function xe(){if(ps)return Lt;ps=1;let{isClean:e,my:t}=_r(),r=ft(),l=dt(),s=ht(),f,u,m,a;function p(o){return o.map(n=>(n.nodes&&(n.nodes=p(n.nodes)),delete n.source,n))}function i(o){if(o[e]=!1,o.proxyOf.nodes)for(let n of o.proxyOf.nodes)i(n)}class c extends s{append(...n){for(let d of n){let h=this.normalize(d,this.last);for(let y of h)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),h,y;for(;this.indexes[d]<this.proxyOf.nodes.length&&(h=this.indexes[d],y=n(this.proxyOf.nodes[h],h),y!==!1);)this.indexes[d]+=1;return delete this.indexes[d],y}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...h)=>n[d](...h.map(y=>typeof y=="function"?(C,w)=>y(C.toProxy(),w):y)):d==="every"||d==="some"?h=>n[d]((y,...C)=>h(y.toProxy(),...C)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(h=>h.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,h){return n[d]===h||(n[d]=h,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let h=this.index(n),y=this.normalize(d,this.proxyOf.nodes[h]).reverse();h=this.index(n);for(let w of y)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+y.length);return this.markDirty(),this}insertBefore(n,d){let h=this.index(n),y=h===0?"prepend":!1,C=this.normalize(d,this.proxyOf.nodes[h],y).reverse();h=this.index(n);for(let S of C)this.proxyOf.nodes.splice(h,0,S);let w;for(let S in this.indexes)w=this.indexes[S],h<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=p(f(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let y of n)y.parent&&y.parent.removeChild(y,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let y of n)y.parent&&y.parent.removeChild(y,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new r(n)]}else if(n.selector)n=[new u(n)];else if(n.name)n=[new m(n)];else if(n.text)n=[new l(n)];else throw new Error("Unknown node type in node creation");return n.map(y=>(y[t]||c.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&i(y),typeof y.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(y.raws.before=d.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...n){n=n.reverse();for(let d of n){let h=this.normalize(d,this.first,"prepend").reverse();for(let y of h)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+h.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let h in this.indexes)d=this.indexes[h],d>=n&&(this.indexes[h]=d-1);return this.markDirty(),this}replaceValues(n,d,h){return h||(h=d,d={}),this.walkDecls(y=>{d.props&&!d.props.includes(y.prop)||d.fast&&!y.value.includes(d.fast)||(y.value=y.value.replace(n,h))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,h)=>{let y;try{y=n(d,h)}catch(C){throw d.addToError(C)}return y!==!1&&d.walk&&(y=d.walk(n)),y})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="atrule"&&n.test(h.name))return d(h,y)}):this.walk((h,y)=>{if(h.type==="atrule"&&h.name===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="atrule")return d(h,y)}))}walkComments(n){return this.walk((d,h)=>{if(d.type==="comment")return n(d,h)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="decl"&&n.test(h.prop))return d(h,y)}):this.walk((h,y)=>{if(h.type==="decl"&&h.prop===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="decl")return d(h,y)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="rule"&&n.test(h.selector))return d(h,y)}):this.walk((h,y)=>{if(h.type==="rule"&&h.selector===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="rule")return d(h,y)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return c.registerParse=o=>{f=o},c.registerRule=o=>{u=o},c.registerAtRule=o=>{m=o},c.registerRoot=o=>{a=o},Lt=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,m.prototype):o.type==="rule"?Object.setPrototypeOf(o,u.prototype):o.type==="decl"?Object.setPrototypeOf(o,r.prototype):o.type==="comment"?Object.setPrototypeOf(o,l.prototype):o.type==="root"&&Object.setPrototypeOf(o,a.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(n=>{c.rebuild(n)})},Lt}var Dt,ds;function Lr(){if(ds)return Dt;ds=1;let e=xe(),t,r;class l extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},Dt=l,l.default=l,Dt}var Tt,ms;function ki(){if(ms)return Tt;ms=1;class e{constructor(r,l={}){if(this.type="warning",this.text=r,l.node&&l.node.source){let s=l.node.rangeBy(l);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in l)this[s]=l[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Tt=e,e.default=e,Tt}var Ft,gs;function Dr(){if(gs)return Ft;gs=1;let e=ki();class t{constructor(l,s,f){this.processor=l,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(l,s);return this.messages.push(f),f}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}}return Ft=t,t.default=t,Ft}var Ut,ys;function oo(){if(ys)return Ut;ys=1;const e=39,t=34,r=92,l=47,s=10,f=32,u=12,m=9,a=13,p=91,i=93,c=40,o=41,n=123,d=125,h=59,y=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return Ut=function(O,A={}){let M=O.css.valueOf(),$=A.ignoreErrors,k,R,Z,N,ee,H,F,Q,W,P,ye=M.length,E=0,pe=[],se=[];function Me(){return E}function de(X){throw O.error("Unclosed "+X,E)}function De(){return se.length===0&&E>=ye}function ae(X){if(se.length)return se.pop();if(E>=ye)return;let ne=X?X.ignoreUnclosed:!1;switch(k=M.charCodeAt(E),k){case s:case f:case m:case a:case u:{R=E;do R+=1,k=M.charCodeAt(R);while(k===f||k===s||k===m||k===a||k===u);P=["space",M.slice(E,R)],E=R-1;break}case p:case i:case n:case d:case C:case h:case o:{let _=String.fromCharCode(k);P=[_,_,E];break}case c:{if(Q=pe.length?pe.pop()[1]:"",W=M.charCodeAt(E+1),Q==="url"&&W!==e&&W!==t&&W!==f&&W!==s&&W!==m&&W!==u&&W!==a){R=E;do{if(H=!1,R=M.indexOf(")",R+1),R===-1)if($||ne){R=E;break}else de("bracket");for(F=R;M.charCodeAt(F-1)===r;)F-=1,H=!H}while(H);P=["brackets",M.slice(E,R+1),E,R],E=R}else R=M.indexOf(")",E+1),N=M.slice(E,R+1),R===-1||g.test(N)?P=["(","(",E]:(P=["brackets",N,E,R],E=R);break}case e:case t:{Z=k===e?"'":'"',R=E;do{if(H=!1,R=M.indexOf(Z,R+1),R===-1)if($||ne){R=E+1;break}else de("string");for(F=R;M.charCodeAt(F-1)===r;)F-=1,H=!H}while(H);P=["string",M.slice(E,R+1),E,R],E=R;break}case w:{S.lastIndex=E+1,S.test(M),S.lastIndex===0?R=M.length-1:R=S.lastIndex-2,P=["at-word",M.slice(E,R+1),E,R],E=R;break}case r:{for(R=E,ee=!0;M.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(k=M.charCodeAt(R+1),ee&&k!==l&&k!==f&&k!==s&&k!==m&&k!==a&&k!==u&&(R+=1,v.test(M.charAt(R)))){for(;v.test(M.charAt(R+1));)R+=1;M.charCodeAt(R+1)===f&&(R+=1)}P=["word",M.slice(E,R+1),E,R],E=R;break}default:{k===l&&M.charCodeAt(E+1)===y?(R=M.indexOf("*/",E+2)+1,R===0&&($||ne?R=M.length:de("comment")),P=["comment",M.slice(E,R+1),E,R],E=R):(b.lastIndex=E+1,b.test(M),b.lastIndex===0?R=M.length-1:R=b.lastIndex-2,P=["word",M.slice(E,R+1),E,R],pe.push(P),E=R);break}}return E++,P}function le(X){se.push(X)}return{back:le,endOfFile:De,nextToken:ae,position:Me}},Ut}var $t,ws;function Tr(){if(ws)return $t;ws=1;let e=xe();class t extends e{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}}return $t=t,t.default=t,e.registerAtRule(t),$t}var Bt,bs;function ze(){if(bs)return Bt;bs=1;let e=xe(),t,r;class l extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,u,m){let a=super.normalize(f);if(u){if(m==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of a)p.raws.before=u.raws.before}return a}removeChild(f,u){let m=this.index(f);return!u&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},Bt=l,l.default=l,e.registerRoot(l),Bt}var zt,Ss;function Ni(){if(Ss)return zt;Ss=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
`,"	"];return e.split(t,r)},split(t,r,l){let s=[],f="",u=!1,m=0,a=!1,p="",i=!1;for(let c of t)i?i=!1:c==="\\"?i=!0:a?c===p&&(a=!1):c==='"'||c==="'"?(a=!0,p=c):c==="("?m+=1:c===")"?m>0&&(m-=1):m===0&&r.includes(c)&&(u=!0),u?(f!==""&&s.push(f.trim()),f="",u=!1):f+=c;return(l||f!=="")&&s.push(f.trim()),s}};return zt=e,e.default=e,zt}var Wt,vs;function Fr(){if(vs)return Wt;vs=1;let e=xe(),t=Ni();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,u=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(u)}}return Wt=r,r.default=r,e.registerRule(r),Wt}var qt,Cs;function ao(){if(Cs)return qt;Cs=1;let e=ft(),t=oo(),r=dt(),l=Tr(),s=ze(),f=Fr();const u={empty:!0,space:!0};function m(p){for(let i=p.length-1;i>=0;i--){let c=p[i],o=c[3]||c[2];if(o)return o}}class a{constructor(i){this.input=i,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let c=new l;c.name=i[1].slice(1),c.name===""&&this.unnamedAtrule(c,i),this.init(c,i[2]);let o,n,d,h=!1,y=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),o=i[0],o==="("||o==="["?w.push(o==="("?")":"]"):o==="{"&&w.length>0?w.push("}"):o===w[w.length-1]&&w.pop(),w.length===0)if(o===";"){c.source.end=this.getPosition(i[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){y=!0;break}else if(o==="}"){if(C.length>0){for(d=C.length-1,n=C[d];n&&n[0]==="space";)n=C[--d];n&&(c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){h=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(c.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(c,"params",C),h&&(i=C[C.length-1],c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),y&&(c.nodes=[],this.current=c)}checkMissedSemicolon(i){let c=this.colon(i);if(c===!1)return;let o=0,n;for(let d=c-1;d>=0&&(n=i[d],!(n[0]!=="space"&&(o+=1,o===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(i){let c=0,o,n,d;for(let[h,y]of i.entries()){if(o=y,n=o[0],n==="("&&(c+=1),n===")"&&(c-=1),c===0&&n===":")if(!d)this.doubleColon(o);else{if(d[0]==="word"&&d[1]==="progid")continue;return h}d=o}return!1}comment(i){let c=new r;this.init(c,i[2]),c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++;let o=i[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let n=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=n[2],c.raws.left=n[1],c.raws.right=n[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,c){let o=new e;this.init(o,i[0][2]);let n=i[i.length-1];for(n[0]===";"&&(this.semicolon=!0,i.pop()),o.source.end=this.getPosition(n[3]||n[2]||m(i)),o.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),o.raws.before+=i.shift()[1];for(o.source.start=this.getPosition(i[0][2]),o.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;o.prop+=i.shift()[1]}o.raws.between="";let d;for(;i.length;)if(d=i.shift(),d[0]===":"){o.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),o.raws.between+=d[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let h=[],y;for(;i.length&&(y=i[0][0],!(y!=="space"&&y!=="comment"));)h.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(d=i[w],d[1].toLowerCase()==="!important"){o.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(o.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=i.slice(0),b="";for(let g=w;g>0;g--){let v=S[g][0];if(b.trim().indexOf("!")===0&&v!=="space")break;b=S.pop()[1]+b}b.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=b,i=S)}if(d[0]!=="space"&&d[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(o.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(o,"value",h.concat(i),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let c=new f;this.init(c,i[2]),c.selector="",c.raws.between="",this.current=c}end(i){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(i){if(this.spaces+=i[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let c=this.input.fromOffset(i);return{column:c.col,line:c.line,offset:i}}init(i,c){this.current.push(i),i.source={input:this.input,start:this.getPosition(c)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let c=!1,o=null,n=!1,d=null,h=[],y=i[1].startsWith("--"),C=[],w=i;for(;w;){if(o=w[0],C.push(w),o==="("||o==="[")d||(d=w),h.push(o==="("?")":"]");else if(y&&n&&o==="{")d||(d=w),h.push("}");else if(h.length===0)if(o===";")if(n){this.decl(C,y);return}else break;else if(o==="{"){this.rule(C);return}else if(o==="}"){this.tokenizer.back(C.pop()),c=!0;break}else o===":"&&(n=!0);else o===h[h.length-1]&&(h.pop(),h.length===0&&(d=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),h.length>0&&this.unclosedBracket(d),c&&n){if(!y)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,y)}else this.unknownWord(C)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,c,o,n){let d,h,y=o.length,C="",w=!0,S,b;for(let g=0;g<y;g+=1)d=o[g],h=d[0],h==="space"&&g===y-1&&!n?w=!1:h==="comment"?(b=o[g-1]?o[g-1][0]:"empty",S=o[g+1]?o[g+1][0]:"empty",!u[b]&&!u[S]?C.slice(-1)===","?w=!1:C+=d[1]:w=!1):C+=d[1];if(!w){let g=o.reduce((v,x)=>v+x[1],"");i.raws[c]={raw:g,value:C}}i[c]=C}rule(i){i.pop();let c=new f;this.init(c,i[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(c,"selector",i),this.current=c}spacesAndCommentsFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],!(c!=="space"&&c!=="comment"));)o=i.pop()[1]+o;return o}spacesAndCommentsFromStart(i){let c,o="";for(;i.length&&(c=i[0][0],!(c!=="space"&&c!=="comment"));)o+=i.shift()[1];return o}spacesFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],c==="space");)o=i.pop()[1]+o;return o}stringFrom(i,c){let o="";for(let n=c;n<i.length;n++)o+=i[n][1];return i.splice(c,i.length-c),o}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return qt=a,qt}var jt,xs;function Ur(){if(xs)return jt;xs=1;let e=xe(),t=ao(),r=pt();function l(s,f){let u=new r(s,f),m=new t(u);try{m.parse()}catch(a){throw a}return m.root}return jt=l,l.default=l,e.registerParse(l),jt}var Ht,Rs;function Pi(){if(Rs)return Ht;Rs=1;let{isClean:e,my:t}=_r(),r=Ai(),l=ct(),s=xe(),f=Lr(),u=Dr(),m=Ur(),a=ze();const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function n(S){return typeof S=="object"&&typeof S.then=="function"}function d(S){let b=!1,g=p[S.type];return S.type==="decl"?b=S.prop.toLowerCase():S.type==="atrule"&&(b=S.name.toLowerCase()),b&&S.append?[g,g+"-"+b,o,g+"Exit",g+"Exit-"+b]:b?[g,g+"-"+b,g+"Exit",g+"Exit-"+b]:S.append?[g,o,g+"Exit"]:[g,g+"Exit"]}function h(S){let b;return S.type==="document"?b=["Document",o,"DocumentExit"]:S.type==="root"?b=["Root",o,"RootExit"]:b=d(S),{eventIndex:0,events:b,iterator:0,node:S,visitorIndex:0,visitors:[]}}function y(S){return S[e]=!1,S.nodes&&S.nodes.forEach(b=>y(b)),S}let C={};class w{constructor(b,g,v){this.stringified=!1,this.processed=!1;let x;if(typeof g=="object"&&g!==null&&(g.type==="root"||g.type==="document"))x=y(g);else if(g instanceof w||g instanceof u)x=y(g.root),g.map&&(typeof v.map>"u"&&(v.map={}),v.map.inline||(v.map.inline=!1),v.map.prev=g.map);else{let O=m;v.syntax&&(O=v.syntax.parse),v.parser&&(O=v.parser),O.parse&&(O=O.parse);try{x=O(g,v)}catch(A){this.processed=!0,this.error=A}x&&!x[t]&&s.rebuild(x)}this.result=new u(b,x,v),this.helpers={...C,postcss:C,result:this.result},this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?{...O,...O.prepare(this.result)}:O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,g){let v=this.result.lastPlugin;try{g&&g.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=v.postcssPlugin,b.setMessage()):v.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(g,v,x)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([g,x])};for(let g of this.plugins)if(typeof g=="object")for(let v in g){if(!i[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${g.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[v])if(typeof g[v]=="object")for(let x in g[v])x==="*"?b(g,v,g[v][x]):b(g,v+"-"+x.toLowerCase(),g[v][x]);else typeof g[v]=="function"&&b(g,v,g[v])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let g=this.plugins[b],v=this.runOnRoot(g);if(n(v))try{await v}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let g=[h(b)];for(;g.length>0;){let v=this.visitTick(g);if(n(v))try{await v}catch(x){let O=g[g.length-1].node;throw this.handleError(x,O)}}}if(this.listeners.OnceExit)for(let[g,v]of this.listeners.OnceExit){this.result.lastPlugin=g;try{if(b.type==="document"){let x=b.nodes.map(O=>v(O,this.helpers));await Promise.all(x)}else await v(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let g=this.result.root.nodes.map(v=>b.Once(v,this.helpers));return n(g[0])?Promise.all(g):g}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(g){throw this.handleError(g)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,g=l;b.syntax&&(g=b.syntax.stringify),b.stringifier&&(g=b.stringifier),g.stringify&&(g=g.stringify);let x=new r(g,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let g=this.runOnRoot(b);if(n(g))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let g of b.nodes)this.visitSync(this.listeners.OnceExit,g);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,g){return this.async().then(b,g)}toString(){return this.css}visitSync(b,g){for(let[v,x]of b){this.result.lastPlugin=v;let O;try{O=x(g,this.helpers)}catch(A){throw this.handleError(A,g.proxyOf)}if(g.type!=="root"&&g.type!=="document"&&!g.parent)return!0;if(n(O))throw this.getAsyncError()}}visitTick(b){let g=b[b.length-1],{node:v,visitors:x}=g;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(x.length>0&&g.visitorIndex<x.length){let[A,M]=x[g.visitorIndex];g.visitorIndex+=1,g.visitorIndex===x.length&&(g.visitors=[],g.visitorIndex=0),this.result.lastPlugin=A;try{return M(v.toProxy(),this.helpers)}catch($){throw this.handleError($,v)}}if(g.iterator!==0){let A=g.iterator,M;for(;M=v.nodes[v.indexes[A]];)if(v.indexes[A]+=1,!M[e]){M[e]=!0,b.push(h(M));return}g.iterator=0,delete v.indexes[A]}let O=g.events;for(;g.eventIndex<O.length;){let A=O[g.eventIndex];if(g.eventIndex+=1,A===o){v.nodes&&v.nodes.length&&(v[e]=!0,g.iterator=v.getIterator());return}else if(this.listeners[A]){g.visitors=this.listeners[A];return}}b.pop()}walkSync(b){b[e]=!0;let g=d(b);for(let v of g)if(v===o)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[v];if(x&&this.visitSync(x,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return w.registerPostcss=S=>{C=S},Ht=w,w.default=w,a.registerLazyResult(w),f.registerLazyResult(w),Ht}var Gt,Os;function lo(){if(Os)return Gt;Os=1;let e=Ai(),t=ct(),r=Ur();const l=Dr();class s{constructor(u,m,a){m=m.toString(),this.stringified=!1,this._processor=u,this._css=m,this._opts=a,this._map=void 0;let p,i=t;this.result=new l(this._processor,p,this._opts),this.result.css=m;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new e(i,p,this._opts,m);if(o.isMap()){let[n,d]=o.generate();n&&(this.result.css=n),d&&(this.result.map=d)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,m){return this.async().then(u,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,m=r;try{u=m(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return Gt=s,s.default=s,Gt}var Vt,Ms;function uo(){if(Ms)return Vt;Ms=1;let e=lo(),t=Pi(),r=Lr(),l=ze();class s{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let m=[];for(let a of u)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(u,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,u,m):new t(this,u,m)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return Vt=s,s.default=s,l.registerProcessor(s),r.registerProcessor(s),Vt}var Jt,Es;function co(){if(Es)return Jt;Es=1;let e=ft(),t=Ii(),r=dt(),l=Tr(),s=pt(),f=ze(),u=Fr();function m(a,p){if(Array.isArray(a))return a.map(o=>m(o));let{inputs:i,...c}=a;if(i){p=[];for(let o of i){let n={...o,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),p.push(n)}}if(c.nodes&&(c.nodes=a.nodes.map(o=>m(o,p))),c.source){let{inputId:o,...n}=c.source;c.source=n,o!=null&&(c.source.input=p[o])}if(c.type==="root")return new f(c);if(c.type==="decl")return new e(c);if(c.type==="rule")return new u(c);if(c.type==="comment")return new r(c);if(c.type==="atrule")return new l(c);throw new Error("Unknown node type: "+a.type)}return Jt=m,m.default=m,Jt}var Yt,Is;function ho(){if(Is)return Yt;Is=1;let e=Pr(),t=ft(),r=Pi(),l=xe(),s=uo(),f=ct(),u=co(),m=Lr(),a=ki(),p=dt(),i=Tr(),c=Dr(),o=pt(),n=Ur(),d=Ni(),h=Fr(),y=ze(),C=ht();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new s(S)}return w.plugin=function(b,g){let v=!1;function x(...A){console&&console.warn&&!v&&(v=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),rt.LANG&&rt.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let M=g(...A);return M.postcssPlugin=b,M.postcssVersion=new s().version,M}let O;return Object.defineProperty(x,"postcss",{get(){return O||(O=x()),O}}),x.process=function(A,M,$){return w([x($)]).process(A,M)},x},w.stringify=f,w.parse=n,w.fromJSON=u,w.list=d,w.comment=S=>new p(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new h(S),w.root=S=>new y(S),w.document=S=>new m(S),w.CssSyntaxError=e,w.Declaration=t,w.Container=l,w.Processor=s,w.Document=m,w.Comment=p,w.Warning=a,w.AtRule=i,w.Result=c,w.Input=o,w.Rule=h,w.Root=y,w.Node=C,r.registerPostcss(w),Yt=w,w.default=w,Yt}var fo=ho();const q=eo(fo);q.stringify;q.fromJSON;q.plugin;q.parse;q.list;q.document;q.comment;q.atRule;q.rule;q.decl;q.root;q.CssSyntaxError;q.Declaration;q.Container;q.Processor;q.Document;q.Comment;q.Warning;q.AtRule;q.Result;q.Input;q.Rule;q.Root;q.Node;var po=Object.defineProperty,mo=(e,t,r)=>t in e?po(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oe=(e,t,r)=>mo(e,typeof t!="symbol"?t+"":t,r);function go(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function l(){return this instanceof l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(l){var s=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,s.get?s:{enumerable:!0,get:function(){return e[l]}})}),r}var Je={exports:{}},As;function wo(){if(As)return Je.exports;As=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Je.exports=t(),Je.exports.createColors=t,Je.exports}const bo={},So=Object.freeze(Object.defineProperty({__proto__:null,default:bo},Symbol.toStringTag,{value:"Module"})),fe=yo(So);var Qt,ks;function $r(){if(ks)return Qt;ks=1;let e=wo(),t=fe;class r extends Error{constructor(s,f,u,m,a,p){super(s),this.name="CssSyntaxError",this.reason=s,a&&(this.file=a),m&&(this.source=m),p&&(this.plugin=p),typeof f<"u"&&typeof u<"u"&&(typeof f=="number"?(this.line=f,this.column=u):(this.line=f.line,this.column=f.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),t&&s&&(f=t(f));let u=f.split(/\r?\n/),m=Math.max(this.line-3,0),a=Math.min(this.line+2,u.length),p=String(a).length,i,c;if(s){let{bold:o,gray:n,red:d}=e.createColors(!0);i=h=>o(d(h)),c=h=>n(h)}else i=c=o=>o;return u.slice(m,a).map((o,n)=>{let d=m+1+n,h=" "+(" "+d).slice(-p)+" | ";if(d===this.line){let y=c(h.replace(/\d/g," "))+o.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+c(h)+o+`
 `+y+i("^")}return" "+c(h)+o}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`

`+s+`
`),this.name+": "+this.message+s}}return Qt=r,r.default=r,Qt}var Ye={},Ns;function Br(){return Ns||(Ns=1,Ye.isClean=Symbol("isClean"),Ye.my=Symbol("my")),Ye}var Xt,Ps;function _i(){if(Ps)return Xt;Ps=1;const e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function t(l){return l[0].toUpperCase()+l.slice(1)}class r{constructor(s){this.builder=s}atrule(s,f){let u="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?u+=s.raws.afterName:m&&(u+=" "),s.nodes)this.block(s,u+m);else{let a=(s.raws.between||"")+(f?";":"");this.builder(u+m+a,s)}}beforeAfter(s,f){let u;s.type==="decl"?u=this.raw(s,null,"beforeDecl"):s.type==="comment"?u=this.raw(s,null,"beforeComment"):f==="before"?u=this.raw(s,null,"beforeRule"):u=this.raw(s,null,"beforeClose");let m=s.parent,a=0;for(;m&&m.type!=="root";)a+=1,m=m.parent;if(u.includes(`
`)){let p=this.raw(s,null,"indent");if(p.length)for(let i=0;i<a;i++)u+=p}return u}block(s,f){let u=this.raw(s,"between","beforeOpen");this.builder(f+u+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let u=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let a=s.nodes[m],p=this.raw(a,"before");p&&this.builder(p),this.stringify(a,f!==m||u)}}comment(s){let f=this.raw(s,"left","commentLeft"),u=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+u+"*/",s)}decl(s,f){let u=this.raw(s,"between","colon"),m=s.prop+u+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,u){let m;if(u||(u=f),f&&(m=s.raws[f],typeof m<"u"))return m;let a=s.parent;if(u==="before"&&(!a||a.type==="root"&&a.first===s||a&&a.type==="document"))return"";if(!a)return e[u];let p=s.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[u]<"u")return p.rawCache[u];if(u==="before"||u==="after")return this.beforeAfter(s,u);{let i="raw"+t(u);this[i]?m=this[i](p,s):p.walk(c=>{if(m=c.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[u]),p.rawCache[u]=m,m}rawBeforeClose(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length>0&&typeof u.raws.after<"u")return f=u.raws.after,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let u;return s.walkComments(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(f,null,"beforeDecl"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeDecl(s,f){let u;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return u=m.raws.before,u.includes(`
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),typeof u>"u"?u=this.raw(f,null,"beforeRule"):u&&(u=u.replace(/\S/g,"")),u}rawBeforeOpen(s){let f;return s.walk(u=>{if(u.type!=="decl"&&(f=u.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(u=>{if(u.nodes&&(u.parent!==s||s.first!==u)&&typeof u.raws.before<"u")return f=u.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(u=>{if(typeof u.raws.between<"u")return f=u.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length===0&&(f=u.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(u=>{let m=u.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof u.raws.before<"u"){let a=u.raws.before.split(`
`);return f=a[a.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(u=>{if(u.nodes&&u.nodes.length&&u.last.type==="decl"&&(f=u.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let u=s[f],m=s.raws[f];return m&&m.value===u?m.raw:u}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return Xt=r,r.default=r,Xt}var Kt,_s;function mt(){if(_s)return Kt;_s=1;let e=_i();function t(r,l){new e(l).stringify(r)}return Kt=t,t.default=t,Kt}var Zt,Ls;function gt(){if(Ls)return Zt;Ls=1;let{isClean:e,my:t}=Br(),r=$r(),l=_i(),s=mt();function f(m,a){let p=new m.constructor;for(let i in m){if(!Object.prototype.hasOwnProperty.call(m,i)||i==="proxyCache")continue;let c=m[i],o=typeof c;i==="parent"&&o==="object"?a&&(p[i]=a):i==="source"?p[i]=c:Array.isArray(c)?p[i]=c.map(n=>f(n,p)):(o==="object"&&c!==null&&(c=f(c)),p[i]=c)}return p}class u{constructor(a={}){this.raws={},this[e]=!1,this[t]=!0;for(let p in a)if(p==="nodes"){this.nodes=[];for(let i of a[p])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[p]=a[p]}addToError(a){if(a.postcssNode=this,a.stack&&this.source&&/\n\s{4}at /.test(a.stack)){let p=this.source;a.stack=a.stack.replace(/\n\s{4}at /,`$&${p.input.from}:${p.start.line}:${p.start.column}$&`)}return a}after(a){return this.parent.insertAfter(this,a),this}assign(a={}){for(let p in a)this[p]=a[p];return this}before(a){return this.parent.insertBefore(this,a),this}cleanRaws(a){delete this.raws.before,delete this.raws.after,a||delete this.raws.between}clone(a={}){let p=f(this);for(let i in a)p[i]=a[i];return p}cloneAfter(a={}){let p=this.clone(a);return this.parent.insertAfter(this,p),p}cloneBefore(a={}){let p=this.clone(a);return this.parent.insertBefore(this,p),p}error(a,p={}){if(this.source){let{end:i,start:c}=this.rangeBy(p);return this.source.input.error(a,{column:c.column,line:c.line},{column:i.column,line:i.line},p)}return new r(a)}getProxyProcessor(){return{get(a,p){return p==="proxyOf"?a:p==="root"?()=>a.root().toProxy():a[p]},set(a,p,i){return a[p]===i||(a[p]=i,(p==="prop"||p==="value"||p==="name"||p==="params"||p==="important"||p==="text")&&a.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let a=this;for(;a=a.parent;)a[e]=!1}}next(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a+1]}positionBy(a,p){let i=this.source.start;if(a.index)i=this.positionInside(a.index,p);else if(a.word){p=this.toString();let c=p.indexOf(a.word);c!==-1&&(i=this.positionInside(c,p))}return i}positionInside(a,p){let i=p||this.toString(),c=this.source.start.column,o=this.source.start.line;for(let n=0;n<a;n++)i[n]===`
`?(c=1,o+=1):c+=1;return{column:c,line:o}}prev(){if(!this.parent)return;let a=this.parent.index(this);return this.parent.nodes[a-1]}rangeBy(a){let p={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:p.column+1,line:p.line};if(a.word){let c=this.toString(),o=c.indexOf(a.word);o!==-1&&(p=this.positionInside(o,c),i=this.positionInside(o+a.word.length,c))}else a.start?p={column:a.start.column,line:a.start.line}:a.index&&(p=this.positionInside(a.index)),a.end?i={column:a.end.column,line:a.end.line}:typeof a.endIndex=="number"?i=this.positionInside(a.endIndex):a.index&&(i=this.positionInside(a.index+1));return(i.line<p.line||i.line===p.line&&i.column<=p.column)&&(i={column:p.column+1,line:p.line}),{end:i,start:p}}raw(a,p){return new l().raw(this,a,p)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...a){if(this.parent){let p=this,i=!1;for(let c of a)c===this?i=!0:i?(this.parent.insertAfter(p,c),p=c):this.parent.insertBefore(p,c);i||this.remove()}return this}root(){let a=this;for(;a.parent&&a.parent.type!=="document";)a=a.parent;return a}toJSON(a,p){let i={},c=p==null;p=p||new Map;let o=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let d=this[n];if(Array.isArray(d))i[n]=d.map(h=>typeof h=="object"&&h.toJSON?h.toJSON(null,p):h);else if(typeof d=="object"&&d.toJSON)i[n]=d.toJSON(null,p);else if(n==="source"){let h=p.get(d.input);h==null&&(h=o,p.set(d.input,o),o++),i[n]={end:d.end,inputId:h,start:d.start}}else i[n]=d}return c&&(i.inputs=[...p.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(a=s){a.stringify&&(a=a.stringify);let p="";return a(this,i=>{p+=i}),p}warn(a,p,i){let c={node:this};for(let o in i)c[o]=i[o];return a.warn(p,c)}get proxyOf(){return this}}return Zt=u,u.default=u,Zt}var er,Ds;function yt(){if(Ds)return er;Ds=1;let e=gt();class t extends e{constructor(l){l&&typeof l.value<"u"&&typeof l.value!="string"&&(l={...l,value:String(l.value)}),super(l),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return er=t,t.default=t,er}var tr,Ts;function vo(){if(Ts)return tr;Ts=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return tr={nanoid:(l=21)=>{let s="",f=l;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(l,s=21)=>(f=s)=>{let u="",m=f;for(;m--;)u+=l[Math.random()*l.length|0];return u}},tr}var rr,Fs;function Li(){if(Fs)return rr;Fs=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=fe,{existsSync:r,readFileSync:l}=fe,{dirname:s,join:f}=fe;function u(a){return Buffer?Buffer.from(a,"base64").toString():window.atob(a)}class m{constructor(p,i){if(i.map===!1)return;this.loadAnnotation(p),this.inline=this.startWith(this.annotation,"data:");let c=i.map?i.map.prev:void 0,o=this.loadMap(i.from,c);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=s(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(p){let i=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/;if(o.test(p)||n.test(p))return decodeURIComponent(p.substr(RegExp.lastMatch.length));if(i.test(p)||c.test(p))return u(p.substr(RegExp.lastMatch.length));let d=p.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+d)}getAnnotationURL(p){return p.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(p){return typeof p!="object"?!1:typeof p.mappings=="string"||typeof p._mappings=="string"||Array.isArray(p.sections)}loadAnnotation(p){let i=p.match(/\/\*\s*# sourceMappingURL=/gm);if(!i)return;let c=p.lastIndexOf(i.pop()),o=p.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(p.substring(c,o)))}loadFile(p){if(this.root=s(p),r(p))return this.mapFile=p,l(p,"utf-8").toString().trim()}loadMap(p,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let c=i(p);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return p&&(c=f(s(p),c)),this.loadFile(c)}}}startWith(p,i){return p?p.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return rr=m,m.default=m,rr}var sr,Us;function wt(){if(Us)return sr;Us=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=fe,{fileURLToPath:r,pathToFileURL:l}=fe,{isAbsolute:s,resolve:f}=fe,{nanoid:u}=vo(),m=fe,a=$r(),p=Li(),i=Symbol("fromOffsetCache"),c=!!(e&&t),o=!!(f&&s);class n{constructor(h,y={}){if(h===null||typeof h>"u"||typeof h=="object"&&!h.toString)throw new Error(`PostCSS received ${h} instead of CSS string`);if(this.css=h.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!o||/^\w+:\/\//.test(y.from)||s(y.from)?this.file=y.from:this.file=f(y.from)),o&&c){let C=new p(this.css,y);if(C.text){this.map=C;let w=C.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(h,y,C,w={}){let S,b,g;if(y&&typeof y=="object"){let x=y,O=C;if(typeof x.offset=="number"){let A=this.fromOffset(x.offset);y=A.line,C=A.col}else y=x.line,C=x.column;if(typeof O.offset=="number"){let A=this.fromOffset(O.offset);b=A.line,g=A.col}else b=O.line,g=O.column}else if(!C){let x=this.fromOffset(y);y=x.line,C=x.col}let v=this.origin(y,C,b,g);return v?S=new a(h,v.endLine===void 0?v.line:{column:v.column,line:v.line},v.endLine===void 0?v.column:{column:v.endColumn,line:v.endLine},v.source,v.file,w.plugin):S=new a(h,b===void 0?y:{column:C,line:y},b===void 0?C:{column:g,line:b},this.css,this.file,w.plugin),S.input={column:C,endColumn:g,endLine:b,line:y,source:this.css},this.file&&(l&&(S.input.url=l(this.file).toString()),S.input.file=this.file),S}fromOffset(h){let y,C;if(this[i])C=this[i];else{let S=this.css.split(`
`);C=new Array(S.length);let b=0;for(let g=0,v=S.length;g<v;g++)C[g]=b,b+=S[g].length+1;this[i]=C}y=C[C.length-1];let w=0;if(h>=y)w=C.length-1;else{let S=C.length-2,b;for(;w<S;)if(b=w+(S-w>>1),h<C[b])S=b-1;else if(h>=C[b+1])w=b+1;else{w=b;break}}return{col:h-C[w]+1,line:w+1}}mapResolve(h){return/^\w+:\/\//.test(h)?h:f(this.map.consumer().sourceRoot||this.map.root||".",h)}origin(h,y,C,w){if(!this.map)return!1;let S=this.map.consumer(),b=S.originalPositionFor({column:y,line:h});if(!b.source)return!1;let g;typeof C=="number"&&(g=S.originalPositionFor({column:w,line:C}));let v;s(b.source)?v=l(b.source):v=new URL(b.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let x={column:b.column,endColumn:g&&g.column,endLine:g&&g.line,line:b.line,url:v.toString()};if(v.protocol==="file:")if(r)x.file=r(v);else throw new Error("file: protocol is not available in this PostCSS build");let O=S.sourceContentFor(b.source);return O&&(x.source=O),x}toJSON(){let h={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(h[y]=this[y]);return this.map&&(h.map={...this.map},h.map.consumerCache&&(h.map.consumerCache=void 0)),h}get from(){return this.file||this.id}}return sr=n,n.default=n,m&&m.registerInput&&m.registerInput(n),sr}var ir,$s;function Di(){if($s)return ir;$s=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=fe,{dirname:r,relative:l,resolve:s,sep:f}=fe,{pathToFileURL:u}=fe,m=wt(),a=!!(e&&t),p=!!(r&&s&&l&&f);class i{constructor(o,n,d,h){this.stringify=o,this.mapOpts=d.map||{},this.root=n,this.opts=d,this.css=h,this.originalCSS=h,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let n=`
`;this.css.includes(`\r
`)&&(n=`\r
`),this.css+=n+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let n=this.toUrl(this.path(o.file)),d=o.root||r(o.file),h;this.mapOpts.sourcesContent===!1?(h=new e(o.text),h.sourcesContent&&(h.sourcesContent=null)):h=o.consumer(),this.map.applySourceMap(h,n,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let n=this.root.nodes.length-1;n>=0;n--)o=this.root.nodes[n],o.type==="comment"&&o.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&a&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,n=>{o+=n}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=t.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,n=1,d="<no source>",h={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,C;this.stringify(this.root,(w,S,b)=>{if(this.css+=w,S&&b!=="end"&&(h.generated.line=o,h.generated.column=n-1,S.source&&S.source.start?(h.source=this.sourcePath(S),h.original.line=S.source.start.line,h.original.column=S.source.start.column-1,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,this.map.addMapping(h))),y=w.match(/\n/g),y?(o+=y.length,C=w.lastIndexOf(`
`),n=w.length-C):n+=w.length,S&&b!=="start"){let g=S.parent||{raws:{}};(!(S.type==="decl"||S.type==="atrule"&&!S.nodes)||S!==g.last||g.raws.semicolon)&&(S.source&&S.source.end?(h.source=this.sourcePath(S),h.original.line=S.source.end.line,h.original.column=S.source.end.column-1,h.generated.line=o,h.generated.column=n-2,this.map.addMapping(h)):(h.source=d,h.original.line=1,h.original.column=0,h.generated.line=o,h.generated.column=n-1,this.map.addMapping(h)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let n=this.memoizedPaths.get(o);if(n)return n;let d=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=r(s(d,this.mapOpts.annotation)));let h=l(d,o);return this.memoizedPaths.set(o,h),h}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let n=o.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let o=new m(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(n=>{if(n.source){let d=n.source.input.from;if(d&&!o[d]){o[d]=!0;let h=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(h,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let n=this.memoizedFileURLs.get(o);if(n)return n;if(u){let d=u(o).toString();return this.memoizedFileURLs.set(o,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let n=this.memoizedURLs.get(o);if(n)return n;f==="\\"&&(o=o.replace(/\\/g,"/"));let d=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,d),d}}return ir=i,ir}var nr,Bs;function bt(){if(Bs)return nr;Bs=1;let e=gt();class t extends e{constructor(l){super(l),this.type="comment"}}return nr=t,t.default=t,nr}var or,zs;function Re(){if(zs)return or;zs=1;let{isClean:e,my:t}=Br(),r=yt(),l=bt(),s=gt(),f,u,m,a;function p(o){return o.map(n=>(n.nodes&&(n.nodes=p(n.nodes)),delete n.source,n))}function i(o){if(o[e]=!1,o.proxyOf.nodes)for(let n of o.proxyOf.nodes)i(n)}class c extends s{append(...n){for(let d of n){let h=this.normalize(d,this.last);for(let y of h)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let d of this.nodes)d.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let d=this.getIterator(),h,y;for(;this.indexes[d]<this.proxyOf.nodes.length&&(h=this.indexes[d],y=n(this.proxyOf.nodes[h],h),y!==!1);)this.indexes[d]+=1;return delete this.indexes[d],y}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,d){return d==="proxyOf"?n:n[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...h)=>n[d](...h.map(y=>typeof y=="function"?(C,w)=>y(C.toProxy(),w):y)):d==="every"||d==="some"?h=>n[d]((y,...C)=>h(y.toProxy(),...C)):d==="root"?()=>n.root().toProxy():d==="nodes"?n.nodes.map(h=>h.toProxy()):d==="first"||d==="last"?n[d].toProxy():n[d]:n[d]},set(n,d,h){return n[d]===h||(n[d]=h,(d==="name"||d==="params"||d==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,d){let h=this.index(n),y=this.normalize(d,this.proxyOf.nodes[h]).reverse();h=this.index(n);for(let w of y)this.proxyOf.nodes.splice(h+1,0,w);let C;for(let w in this.indexes)C=this.indexes[w],h<C&&(this.indexes[w]=C+y.length);return this.markDirty(),this}insertBefore(n,d){let h=this.index(n),y=h===0?"prepend":!1,C=this.normalize(d,this.proxyOf.nodes[h],y).reverse();h=this.index(n);for(let S of C)this.proxyOf.nodes.splice(h,0,S);let w;for(let S in this.indexes)w=this.indexes[S],h<=w&&(this.indexes[S]=w+C.length);return this.markDirty(),this}normalize(n,d){if(typeof n=="string")n=p(f(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let y of n)y.parent&&y.parent.removeChild(y,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let y of n)y.parent&&y.parent.removeChild(y,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new r(n)]}else if(n.selector)n=[new u(n)];else if(n.name)n=[new m(n)];else if(n.text)n=[new l(n)];else throw new Error("Unknown node type in node creation");return n.map(y=>(y[t]||c.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&i(y),typeof y.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(y.raws.before=d.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...n){n=n.reverse();for(let d of n){let h=this.normalize(d,this.first,"prepend").reverse();for(let y of h)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+h.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let d;for(let h in this.indexes)d=this.indexes[h],d>=n&&(this.indexes[h]=d-1);return this.markDirty(),this}replaceValues(n,d,h){return h||(h=d,d={}),this.walkDecls(y=>{d.props&&!d.props.includes(y.prop)||d.fast&&!y.value.includes(d.fast)||(y.value=y.value.replace(n,h))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((d,h)=>{let y;try{y=n(d,h)}catch(C){throw d.addToError(C)}return y!==!1&&d.walk&&(y=d.walk(n)),y})}walkAtRules(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="atrule"&&n.test(h.name))return d(h,y)}):this.walk((h,y)=>{if(h.type==="atrule"&&h.name===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="atrule")return d(h,y)}))}walkComments(n){return this.walk((d,h)=>{if(d.type==="comment")return n(d,h)})}walkDecls(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="decl"&&n.test(h.prop))return d(h,y)}):this.walk((h,y)=>{if(h.type==="decl"&&h.prop===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="decl")return d(h,y)}))}walkRules(n,d){return d?n instanceof RegExp?this.walk((h,y)=>{if(h.type==="rule"&&n.test(h.selector))return d(h,y)}):this.walk((h,y)=>{if(h.type==="rule"&&h.selector===n)return d(h,y)}):(d=n,this.walk((h,y)=>{if(h.type==="rule")return d(h,y)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return c.registerParse=o=>{f=o},c.registerRule=o=>{u=o},c.registerAtRule=o=>{m=o},c.registerRoot=o=>{a=o},or=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,m.prototype):o.type==="rule"?Object.setPrototypeOf(o,u.prototype):o.type==="decl"?Object.setPrototypeOf(o,r.prototype):o.type==="comment"?Object.setPrototypeOf(o,l.prototype):o.type==="root"&&Object.setPrototypeOf(o,a.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(n=>{c.rebuild(n)})},or}var ar,Ws;function zr(){if(Ws)return ar;Ws=1;let e=Re(),t,r;class l extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},ar=l,l.default=l,ar}var lr,qs;function Ti(){if(qs)return lr;qs=1;class e{constructor(r,l={}){if(this.type="warning",this.text=r,l.node&&l.node.source){let s=l.node.rangeBy(l);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in l)this[s]=l[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return lr=e,e.default=e,lr}var ur,js;function Wr(){if(js)return ur;js=1;let e=Ti();class t{constructor(l,s,f){this.processor=l,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(l,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(l,s);return this.messages.push(f),f}warnings(){return this.messages.filter(l=>l.type==="warning")}get content(){return this.css}}return ur=t,t.default=t,ur}var cr,Hs;function Co(){if(Hs)return cr;Hs=1;const e=39,t=34,r=92,l=47,s=10,f=32,u=12,m=9,a=13,p=91,i=93,c=40,o=41,n=123,d=125,h=59,y=42,C=58,w=64,S=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,g=/.[\r\n"'(/\\]/,v=/[\da-f]/i;return cr=function(O,A={}){let M=O.css.valueOf(),$=A.ignoreErrors,k,R,Z,N,ee,H,F,Q,W,P,ye=M.length,E=0,pe=[],se=[];function Me(){return E}function de(X){throw O.error("Unclosed "+X,E)}function De(){return se.length===0&&E>=ye}function ae(X){if(se.length)return se.pop();if(E>=ye)return;let ne=X?X.ignoreUnclosed:!1;switch(k=M.charCodeAt(E),k){case s:case f:case m:case a:case u:{R=E;do R+=1,k=M.charCodeAt(R);while(k===f||k===s||k===m||k===a||k===u);P=["space",M.slice(E,R)],E=R-1;break}case p:case i:case n:case d:case C:case h:case o:{let _=String.fromCharCode(k);P=[_,_,E];break}case c:{if(Q=pe.length?pe.pop()[1]:"",W=M.charCodeAt(E+1),Q==="url"&&W!==e&&W!==t&&W!==f&&W!==s&&W!==m&&W!==u&&W!==a){R=E;do{if(H=!1,R=M.indexOf(")",R+1),R===-1)if($||ne){R=E;break}else de("bracket");for(F=R;M.charCodeAt(F-1)===r;)F-=1,H=!H}while(H);P=["brackets",M.slice(E,R+1),E,R],E=R}else R=M.indexOf(")",E+1),N=M.slice(E,R+1),R===-1||g.test(N)?P=["(","(",E]:(P=["brackets",N,E,R],E=R);break}case e:case t:{Z=k===e?"'":'"',R=E;do{if(H=!1,R=M.indexOf(Z,R+1),R===-1)if($||ne){R=E+1;break}else de("string");for(F=R;M.charCodeAt(F-1)===r;)F-=1,H=!H}while(H);P=["string",M.slice(E,R+1),E,R],E=R;break}case w:{S.lastIndex=E+1,S.test(M),S.lastIndex===0?R=M.length-1:R=S.lastIndex-2,P=["at-word",M.slice(E,R+1),E,R],E=R;break}case r:{for(R=E,ee=!0;M.charCodeAt(R+1)===r;)R+=1,ee=!ee;if(k=M.charCodeAt(R+1),ee&&k!==l&&k!==f&&k!==s&&k!==m&&k!==a&&k!==u&&(R+=1,v.test(M.charAt(R)))){for(;v.test(M.charAt(R+1));)R+=1;M.charCodeAt(R+1)===f&&(R+=1)}P=["word",M.slice(E,R+1),E,R],E=R;break}default:{k===l&&M.charCodeAt(E+1)===y?(R=M.indexOf("*/",E+2)+1,R===0&&($||ne?R=M.length:de("comment")),P=["comment",M.slice(E,R+1),E,R],E=R):(b.lastIndex=E+1,b.test(M),b.lastIndex===0?R=M.length-1:R=b.lastIndex-2,P=["word",M.slice(E,R+1),E,R],pe.push(P),E=R);break}}return E++,P}function le(X){se.push(X)}return{back:le,endOfFile:De,nextToken:ae,position:Me}},cr}var hr,Gs;function qr(){if(Gs)return hr;Gs=1;let e=Re();class t extends e{constructor(l){super(l),this.type="atrule"}append(...l){return this.proxyOf.nodes||(this.nodes=[]),super.append(...l)}prepend(...l){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...l)}}return hr=t,t.default=t,e.registerAtRule(t),hr}var fr,Vs;function We(){if(Vs)return fr;Vs=1;let e=Re(),t,r;class l extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,u,m){let a=super.normalize(f);if(u){if(m==="prepend")this.nodes.length>1?u.raws.before=this.nodes[1].raws.before:delete u.raws.before;else if(this.first!==u)for(let p of a)p.raws.before=u.raws.before}return a}removeChild(f,u){let m=this.index(f);return!u&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new t(new r,this,f).stringify()}}return l.registerLazyResult=s=>{t=s},l.registerProcessor=s=>{r=s},fr=l,l.default=l,e.registerRoot(l),fr}var pr,Js;function Fi(){if(Js)return pr;Js=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
`,"	"];return e.split(t,r)},split(t,r,l){let s=[],f="",u=!1,m=0,a=!1,p="",i=!1;for(let c of t)i?i=!1:c==="\\"?i=!0:a?c===p&&(a=!1):c==='"'||c==="'"?(a=!0,p=c):c==="("?m+=1:c===")"?m>0&&(m-=1):m===0&&r.includes(c)&&(u=!0),u?(f!==""&&s.push(f.trim()),f="",u=!1):f+=c;return(l||f!=="")&&s.push(f.trim()),s}};return pr=e,e.default=e,pr}var dr,Ys;function jr(){if(Ys)return dr;Ys=1;let e=Re(),t=Fi();class r extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,u=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(u)}}return dr=r,r.default=r,e.registerRule(r),dr}var mr,Qs;function xo(){if(Qs)return mr;Qs=1;let e=yt(),t=Co(),r=bt(),l=qr(),s=We(),f=jr();const u={empty:!0,space:!0};function m(p){for(let i=p.length-1;i>=0;i--){let c=p[i],o=c[3]||c[2];if(o)return o}}class a{constructor(i){this.input=i,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let c=new l;c.name=i[1].slice(1),c.name===""&&this.unnamedAtrule(c,i),this.init(c,i[2]);let o,n,d,h=!1,y=!1,C=[],w=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),o=i[0],o==="("||o==="["?w.push(o==="("?")":"]"):o==="{"&&w.length>0?w.push("}"):o===w[w.length-1]&&w.pop(),w.length===0)if(o===";"){c.source.end=this.getPosition(i[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){y=!0;break}else if(o==="}"){if(C.length>0){for(d=C.length-1,n=C[d];n&&n[0]==="space";)n=C[--d];n&&(c.source.end=this.getPosition(n[3]||n[2]),c.source.end.offset++)}this.end(i);break}else C.push(i);else C.push(i);if(this.tokenizer.endOfFile()){h=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(C),C.length?(c.raws.afterName=this.spacesAndCommentsFromStart(C),this.raw(c,"params",C),h&&(i=C[C.length-1],c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),y&&(c.nodes=[],this.current=c)}checkMissedSemicolon(i){let c=this.colon(i);if(c===!1)return;let o=0,n;for(let d=c-1;d>=0&&(n=i[d],!(n[0]!=="space"&&(o+=1,o===2)));d--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(i){let c=0,o,n,d;for(let[h,y]of i.entries()){if(o=y,n=o[0],n==="("&&(c+=1),n===")"&&(c-=1),c===0&&n===":")if(!d)this.doubleColon(o);else{if(d[0]==="word"&&d[1]==="progid")continue;return h}d=o}return!1}comment(i){let c=new r;this.init(c,i[2]),c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++;let o=i[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let n=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=n[2],c.raws.left=n[1],c.raws.right=n[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,c){let o=new e;this.init(o,i[0][2]);let n=i[i.length-1];for(n[0]===";"&&(this.semicolon=!0,i.pop()),o.source.end=this.getPosition(n[3]||n[2]||m(i)),o.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),o.raws.before+=i.shift()[1];for(o.source.start=this.getPosition(i[0][2]),o.prop="";i.length;){let w=i[0][0];if(w===":"||w==="space"||w==="comment")break;o.prop+=i.shift()[1]}o.raws.between="";let d;for(;i.length;)if(d=i.shift(),d[0]===":"){o.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),o.raws.between+=d[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let h=[],y;for(;i.length&&(y=i[0][0],!(y!=="space"&&y!=="comment"));)h.push(i.shift());this.precheckMissedSemicolon(i);for(let w=i.length-1;w>=0;w--){if(d=i[w],d[1].toLowerCase()==="!important"){o.important=!0;let S=this.stringFrom(i,w);S=this.spacesFromEnd(i)+S,S!==" !important"&&(o.raws.important=S);break}else if(d[1].toLowerCase()==="important"){let S=i.slice(0),b="";for(let g=w;g>0;g--){let v=S[g][0];if(b.trim().indexOf("!")===0&&v!=="space")break;b=S.pop()[1]+b}b.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=b,i=S)}if(d[0]!=="space"&&d[0]!=="comment")break}i.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(o.raws.between+=h.map(w=>w[1]).join(""),h=[]),this.raw(o,"value",h.concat(i),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let c=new f;this.init(c,i[2]),c.selector="",c.raws.between="",this.current=c}end(i){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(i){if(this.spaces+=i[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(i){let c=this.input.fromOffset(i);return{column:c.col,line:c.line,offset:i}}init(i,c){this.current.push(i),i.source={input:this.input,start:this.getPosition(c)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let c=!1,o=null,n=!1,d=null,h=[],y=i[1].startsWith("--"),C=[],w=i;for(;w;){if(o=w[0],C.push(w),o==="("||o==="[")d||(d=w),h.push(o==="("?")":"]");else if(y&&n&&o==="{")d||(d=w),h.push("}");else if(h.length===0)if(o===";")if(n){this.decl(C,y);return}else break;else if(o==="{"){this.rule(C);return}else if(o==="}"){this.tokenizer.back(C.pop()),c=!0;break}else o===":"&&(n=!0);else o===h[h.length-1]&&(h.pop(),h.length===0&&(d=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),h.length>0&&this.unclosedBracket(d),c&&n){if(!y)for(;C.length&&(w=C[C.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(C.pop());this.decl(C,y)}else this.unknownWord(C)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,c,o,n){let d,h,y=o.length,C="",w=!0,S,b;for(let g=0;g<y;g+=1)d=o[g],h=d[0],h==="space"&&g===y-1&&!n?w=!1:h==="comment"?(b=o[g-1]?o[g-1][0]:"empty",S=o[g+1]?o[g+1][0]:"empty",!u[b]&&!u[S]?C.slice(-1)===","?w=!1:C+=d[1]:w=!1):C+=d[1];if(!w){let g=o.reduce((v,x)=>v+x[1],"");i.raws[c]={raw:g,value:C}}i[c]=C}rule(i){i.pop();let c=new f;this.init(c,i[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(c,"selector",i),this.current=c}spacesAndCommentsFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],!(c!=="space"&&c!=="comment"));)o=i.pop()[1]+o;return o}spacesAndCommentsFromStart(i){let c,o="";for(;i.length&&(c=i[0][0],!(c!=="space"&&c!=="comment"));)o+=i.shift()[1];return o}spacesFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],c==="space");)o=i.pop()[1]+o;return o}stringFrom(i,c){let o="";for(let n=c;n<i.length;n++)o+=i[n][1];return i.splice(c,i.length-c),o}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word",{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return mr=a,mr}var gr,Xs;function Hr(){if(Xs)return gr;Xs=1;let e=Re(),t=xo(),r=wt();function l(s,f){let u=new r(s,f),m=new t(u);try{m.parse()}catch(a){throw a}return m.root}return gr=l,l.default=l,e.registerParse(l),gr}var yr,Ks;function Ui(){if(Ks)return yr;Ks=1;let{isClean:e,my:t}=Br(),r=Di(),l=mt(),s=Re(),f=zr(),u=Wr(),m=Hr(),a=We();const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function n(S){return typeof S=="object"&&typeof S.then=="function"}function d(S){let b=!1,g=p[S.type];return S.type==="decl"?b=S.prop.toLowerCase():S.type==="atrule"&&(b=S.name.toLowerCase()),b&&S.append?[g,g+"-"+b,o,g+"Exit",g+"Exit-"+b]:b?[g,g+"-"+b,g+"Exit",g+"Exit-"+b]:S.append?[g,o,g+"Exit"]:[g,g+"Exit"]}function h(S){let b;return S.type==="document"?b=["Document",o,"DocumentExit"]:S.type==="root"?b=["Root",o,"RootExit"]:b=d(S),{eventIndex:0,events:b,iterator:0,node:S,visitorIndex:0,visitors:[]}}function y(S){return S[e]=!1,S.nodes&&S.nodes.forEach(b=>y(b)),S}let C={};class w{constructor(b,g,v){this.stringified=!1,this.processed=!1;let x;if(typeof g=="object"&&g!==null&&(g.type==="root"||g.type==="document"))x=y(g);else if(g instanceof w||g instanceof u)x=y(g.root),g.map&&(typeof v.map>"u"&&(v.map={}),v.map.inline||(v.map.inline=!1),v.map.prev=g.map);else{let O=m;v.syntax&&(O=v.syntax.parse),v.parser&&(O=v.parser),O.parse&&(O=O.parse);try{x=O(g,v)}catch(A){this.processed=!0,this.error=A}x&&!x[t]&&s.rebuild(x)}this.result=new u(b,x,v),this.helpers={...C,postcss:C,result:this.result},this.plugins=this.processor.plugins.map(O=>typeof O=="object"&&O.prepare?{...O,...O.prepare(this.result)}:O)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,g){let v=this.result.lastPlugin;try{g&&g.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=v.postcssPlugin,b.setMessage()):v.postcssVersion}catch(x){console&&console.error&&console.error(x)}return b}prepareVisitors(){this.listeners={};let b=(g,v,x)=>{this.listeners[v]||(this.listeners[v]=[]),this.listeners[v].push([g,x])};for(let g of this.plugins)if(typeof g=="object")for(let v in g){if(!i[v]&&/^[A-Z]/.test(v))throw new Error(`Unknown event ${v} in ${g.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[v])if(typeof g[v]=="object")for(let x in g[v])x==="*"?b(g,v,g[v][x]):b(g,v+"-"+x.toLowerCase(),g[v][x]);else typeof g[v]=="function"&&b(g,v,g[v])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let g=this.plugins[b],v=this.runOnRoot(g);if(n(v))try{await v}catch(x){throw this.handleError(x)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let g=[h(b)];for(;g.length>0;){let v=this.visitTick(g);if(n(v))try{await v}catch(x){let O=g[g.length-1].node;throw this.handleError(x,O)}}}if(this.listeners.OnceExit)for(let[g,v]of this.listeners.OnceExit){this.result.lastPlugin=g;try{if(b.type==="document"){let x=b.nodes.map(O=>v(O,this.helpers));await Promise.all(x)}else await v(b,this.helpers)}catch(x){throw this.handleError(x)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let g=this.result.root.nodes.map(v=>b.Once(v,this.helpers));return n(g[0])?Promise.all(g):g}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(g){throw this.handleError(g)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,g=l;b.syntax&&(g=b.syntax.stringify),b.stringifier&&(g=b.stringifier),g.stringify&&(g=g.stringify);let x=new r(g,this.result.root,this.result.opts).generate();return this.result.css=x[0],this.result.map=x[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let g=this.runOnRoot(b);if(n(g))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let g of b.nodes)this.visitSync(this.listeners.OnceExit,g);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,g){return this.async().then(b,g)}toString(){return this.css}visitSync(b,g){for(let[v,x]of b){this.result.lastPlugin=v;let O;try{O=x(g,this.helpers)}catch(A){throw this.handleError(A,g.proxyOf)}if(g.type!=="root"&&g.type!=="document"&&!g.parent)return!0;if(n(O))throw this.getAsyncError()}}visitTick(b){let g=b[b.length-1],{node:v,visitors:x}=g;if(v.type!=="root"&&v.type!=="document"&&!v.parent){b.pop();return}if(x.length>0&&g.visitorIndex<x.length){let[A,M]=x[g.visitorIndex];g.visitorIndex+=1,g.visitorIndex===x.length&&(g.visitors=[],g.visitorIndex=0),this.result.lastPlugin=A;try{return M(v.toProxy(),this.helpers)}catch($){throw this.handleError($,v)}}if(g.iterator!==0){let A=g.iterator,M;for(;M=v.nodes[v.indexes[A]];)if(v.indexes[A]+=1,!M[e]){M[e]=!0,b.push(h(M));return}g.iterator=0,delete v.indexes[A]}let O=g.events;for(;g.eventIndex<O.length;){let A=O[g.eventIndex];if(g.eventIndex+=1,A===o){v.nodes&&v.nodes.length&&(v[e]=!0,g.iterator=v.getIterator());return}else if(this.listeners[A]){g.visitors=this.listeners[A];return}}b.pop()}walkSync(b){b[e]=!0;let g=d(b);for(let v of g)if(v===o)b.nodes&&b.each(x=>{x[e]||this.walkSync(x)});else{let x=this.listeners[v];if(x&&this.visitSync(x,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return w.registerPostcss=S=>{C=S},yr=w,w.default=w,a.registerLazyResult(w),f.registerLazyResult(w),yr}var wr,Zs;function Ro(){if(Zs)return wr;Zs=1;let e=Di(),t=mt(),r=Hr();const l=Wr();class s{constructor(u,m,a){m=m.toString(),this.stringified=!1,this._processor=u,this._css=m,this._opts=a,this._map=void 0;let p,i=t;this.result=new l(this._processor,p,this._opts),this.result.css=m;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new e(i,p,this._opts,m);if(o.isMap()){let[n,d]=o.generate();n&&(this.result.css=n),d&&(this.result.map=d)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(u){return this.async().catch(u)}finally(u){return this.async().then(u,u)}sync(){if(this.error)throw this.error;return this.result}then(u,m){return this.async().then(u,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let u,m=r;try{u=m(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=u,u}get[Symbol.toStringTag](){return"NoWorkResult"}}return wr=s,s.default=s,wr}var br,ei;function Oo(){if(ei)return br;ei=1;let e=Ro(),t=Ui(),r=zr(),l=We();class s{constructor(u=[]){this.version="8.4.38",this.plugins=this.normalize(u)}normalize(u){let m=[];for(let a of u)if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),typeof a=="object"&&Array.isArray(a.plugins))m=m.concat(a.plugins);else if(typeof a=="object"&&a.postcssPlugin)m.push(a);else if(typeof a=="function")m.push(a);else if(!(typeof a=="object"&&(a.parse||a.stringify)))throw new Error(a+" is not a PostCSS plugin");return m}process(u,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,u,m):new t(this,u,m)}use(u){return this.plugins=this.plugins.concat(this.normalize([u])),this}}return br=s,s.default=s,l.registerProcessor(s),r.registerProcessor(s),br}var Sr,ti;function Mo(){if(ti)return Sr;ti=1;let e=yt(),t=Li(),r=bt(),l=qr(),s=wt(),f=We(),u=jr();function m(a,p){if(Array.isArray(a))return a.map(o=>m(o));let{inputs:i,...c}=a;if(i){p=[];for(let o of i){let n={...o,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:t.prototype}),p.push(n)}}if(c.nodes&&(c.nodes=a.nodes.map(o=>m(o,p))),c.source){let{inputId:o,...n}=c.source;c.source=n,o!=null&&(c.source.input=p[o])}if(c.type==="root")return new f(c);if(c.type==="decl")return new e(c);if(c.type==="rule")return new u(c);if(c.type==="comment")return new r(c);if(c.type==="atrule")return new l(c);throw new Error("Unknown node type: "+a.type)}return Sr=m,m.default=m,Sr}var vr,ri;function Eo(){if(ri)return vr;ri=1;let e=$r(),t=yt(),r=Ui(),l=Re(),s=Oo(),f=mt(),u=Mo(),m=zr(),a=Ti(),p=bt(),i=qr(),c=Wr(),o=wt(),n=Hr(),d=Fi(),h=jr(),y=We(),C=gt();function w(...S){return S.length===1&&Array.isArray(S[0])&&(S=S[0]),new s(S)}return w.plugin=function(b,g){let v=!1;function x(...A){console&&console.warn&&!v&&(v=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),rt.LANG&&rt.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let M=g(...A);return M.postcssPlugin=b,M.postcssVersion=new s().version,M}let O;return Object.defineProperty(x,"postcss",{get(){return O||(O=x()),O}}),x.process=function(A,M,$){return w([x($)]).process(A,M)},x},w.stringify=f,w.parse=n,w.fromJSON=u,w.list=d,w.comment=S=>new p(S),w.atRule=S=>new i(S),w.decl=S=>new t(S),w.rule=S=>new h(S),w.root=S=>new y(S),w.document=S=>new m(S),w.CssSyntaxError=e,w.Declaration=t,w.Container=l,w.Processor=s,w.Document=m,w.Comment=p,w.Warning=a,w.AtRule=i,w.Result=c,w.Input=o,w.Rule=h,w.Root=y,w.Node=C,r.registerPostcss(w),vr=w,w.default=w,vr}var Io=Eo();const j=go(Io);j.stringify;j.fromJSON;j.plugin;j.parse;j.list;j.document;j.comment;j.atRule;j.rule;j.decl;j.root;j.CssSyntaxError;j.Declaration;j.Container;j.Processor;j.Document;j.Comment;j.Warning;j.AtRule;j.Result;j.Input;j.Rule;j.Root;j.Node;class Gr{constructor(...t){oe(this,"parentElement",null),oe(this,"parentNode",null),oe(this,"ownerDocument"),oe(this,"firstChild",null),oe(this,"lastChild",null),oe(this,"previousSibling",null),oe(this,"nextSibling",null),oe(this,"ELEMENT_NODE",1),oe(this,"TEXT_NODE",3),oe(this,"nodeType"),oe(this,"nodeName"),oe(this,"RRNodeType")}get childNodes(){const t=[];let r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof Gr){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const si={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ii={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Qe={};function Ao(e){var t,r;const l=(r=(t=globalThis?.Zone)==null?void 0:t.__symbol__)==null?void 0:r.call(t,e);if(l&&globalThis[l])return globalThis[l]}function Vr(e){if(Qe[e])return Qe[e];const t=Ao(e)||globalThis[e],r=t.prototype,l=e in si?si[e]:void 0,s=!!(l&&l.every(m=>{var a,p;return!!((p=(a=Object.getOwnPropertyDescriptor(r,m))==null?void 0:a.get)!=null&&p.toString().includes("[native code]"))})),f=e in ii?ii[e]:void 0,u=!!(f&&f.every(m=>{var a;return typeof r[m]=="function"&&((a=r[m])==null?void 0:a.toString().includes("[native code]"))}));if(s&&u)return Qe[e]=t.prototype,t.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const a=m.contentWindow;if(!a)return t.prototype;const p=a[e].prototype;return document.body.removeChild(m),p?Qe[e]=p:r}catch{return r}}const Cr={};function Se(e,t,r){var l;const s=`${e}.${String(r)}`;if(Cr[s])return Cr[s].call(t);const f=Vr(e),u=(l=Object.getOwnPropertyDescriptor(f,r))==null?void 0:l.get;return u?(Cr[s]=u,u.call(t)):t[r]}const xr={};function $i(e,t,r){const l=`${e}.${String(r)}`;if(xr[l])return xr[l].bind(t);const f=Vr(e)[r];return typeof f!="function"?t[r]:(xr[l]=f,f.bind(t))}function ko(e){return Se("Node",e,"childNodes")}function No(e){return Se("Node",e,"parentNode")}function Po(e){return Se("Node",e,"parentElement")}function _o(e){return Se("Node",e,"textContent")}function Lo(e,t){return $i("Node",e,"contains")(t)}function Do(e){return $i("Node",e,"getRootNode")()}function To(e){return!e||!("host"in e)?null:Se("ShadowRoot",e,"host")}function Fo(e){return e.styleSheets}function Uo(e){return!e||!("shadowRoot"in e)?null:Se("Element",e,"shadowRoot")}function $o(e,t){return Se("Element",e,"querySelector")(t)}function Bo(e,t){return Se("Element",e,"querySelectorAll")(t)}function Bi(){return Vr("MutationObserver").constructor}const L={childNodes:ko,parentNode:No,parentElement:Po,textContent:_o,contains:Lo,getRootNode:Do,host:To,styleSheets:Fo,shadowRoot:Uo,querySelector:$o,querySelectorAll:Bo,mutationObserver:Bi};function te(e,t,r=document){const l={capture:!0,passive:!0};return r.addEventListener(e,t,l),()=>r.removeEventListener(e,t,l)}const Ie=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let ni={map:{},getId(){return console.error(Ie),-1},getNode(){return console.error(Ie),null},removeNodeFromMap(){console.error(Ie)},has(){return console.error(Ie),!1},reset(){console.error(Ie)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(ni=new Proxy(ni,{get(e,t,r){return t==="map"&&console.error(Ie),Reflect.get(e,t,r)}}));function Be(e,t,r={}){let l=null,s=0;return function(...f){const u=Date.now();!s&&r.leading===!1&&(s=u);const m=t-(u-s),a=this;m<=0||m>t?(l&&(clearTimeout(l),l=null),s=u,e.apply(a,f)):!l&&r.trailing!==!1&&(l=setTimeout(()=>{s=r.leading===!1?0:Date.now(),l=null,e.apply(a,f)},m))}}function St(e,t,r,l,s=window){const f=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,l?r:{set(u){setTimeout(()=>{r.set.call(this,u)},0),f&&f.set&&f.set.call(this,u)}}),()=>St(e,t,f||{},!0)}function Le(e,t,r){try{if(!(t in e))return()=>{};const l=e[t],s=r(l);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:l}})),e[t]=s,()=>{e[t]=l}}catch{return()=>{}}}let at=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(at=()=>new Date().getTime());function zi(e){var t,r,l,s;const f=e.document;return{left:f.scrollingElement?f.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:f.documentElement.scrollLeft||f?.body&&((t=L.parentElement(f.body))==null?void 0:t.scrollLeft)||((r=f?.body)==null?void 0:r.scrollLeft)||0,top:f.scrollingElement?f.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:f?.documentElement.scrollTop||f?.body&&((l=L.parentElement(f.body))==null?void 0:l.scrollTop)||((s=f?.body)==null?void 0:s.scrollTop)||0}}function Wi(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function qi(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ji(e){return e?e.nodeType===e.ELEMENT_NODE?e:L.parentElement(e):null}function re(e,t,r,l){if(!e)return!1;const s=ji(e);if(!s)return!1;try{if(typeof t=="string"){if(s.classList.contains(t)||l&&s.closest("."+t)!==null)return!0}else if(ot(s,t,l))return!0}catch{}return!!(r&&(s.matches(r)||l&&s.closest(r)!==null))}function zo(e,t){return t.getId(e)!==-1}function Rr(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===$e}function Hi(e,t){if(Te(e))return!1;const r=t.getId(e);if(!t.has(r))return!0;const l=L.parentNode(e);return l&&l.nodeType===e.DOCUMENT_NODE?!1:l?Hi(l,t):!0}function Er(e){return!!e.changedTouches}function Wo(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Gi(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Vi(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ir(e){return e?e instanceof Gr&&"shadowRoot"in e?!!e.shadowRoot:!!L.shadowRoot(e):!1}class qo{constructor(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let l;return r===void 0?l=this.id++:l=r,this.styleIDMap.set(t,l),this.idStyleMap.set(l,t),l}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Ji(e){var t;let r=null;return"getRootNode"in e&&((t=L.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&L.host(L.getRootNode(e))&&(r=L.host(L.getRootNode(e))),r}function jo(e){let t=e,r;for(;r=Ji(t);)t=r;return t}function Ho(e){const t=e.ownerDocument;if(!t)return!1;const r=jo(e);return L.contains(t,r)}function Yi(e){const t=e.ownerDocument;return t?L.contains(t,e)||Ho(e):!1}var U=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(U||{}),D=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(D||{}),ie=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ie||{}),ge=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(ge||{}),_e=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(_e||{}),Ae=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Ae||{}),Qi=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Qi||{});function oi(e){return"__ln"in e}class Go{constructor(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let l=0;l<t;l++)r=r?.next||null;return r}addNode(t){const r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&oi(t.previousSibling)){const l=t.previousSibling.__ln.next;r.next=l,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,l&&(l.previous=r)}else if(t.nextSibling&&oi(t.nextSibling)&&t.nextSibling.__ln.previous){const l=t.nextSibling.__ln.previous;r.previous=l,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,l&&(l.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){const r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const ai=(e,t)=>`${e}@${t}`;class Vo{constructor(){I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"maskAttributeFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),I(this,"emit",()=>{if(this.frozen||this.locked)return;const t=[],r=new Set,l=new Go,s=a=>{let p=a,i=$e;for(;i===$e;)p=p&&p.nextSibling,i=p&&this.mirror.getId(p);return i},f=a=>{const p=L.parentNode(a);if(!p||!Yi(a))return;let i=!1;if(a.nodeType===Node.TEXT_NODE){const d=p.tagName;if(d==="TEXTAREA")return;d==="STYLE"&&this.addedSet.has(p)&&(i=!0)}const c=Te(p)?this.mirror.getId(Ji(a)):this.mirror.getId(p),o=s(a);if(c===-1||o===-1)return l.addNode(a);const n=Ne(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:d=>{Gi(d,this.mirror)&&this.iframeManager.addIframe(d),Vi(d,this.mirror)&&this.stylesheetManager.trackLinkElement(d),Ir(a)&&this.shadowDomManager.addShadowRoot(L.shadowRoot(a),this.doc)},onIframeLoad:(d,h)=>{this.iframeManager.attachIframe(d,h),this.shadowDomManager.observeAttachShadow(d)},onStylesheetLoad:(d,h)=>{this.stylesheetManager.attachLinkElement(d,h)},cssCaptured:i});n&&(t.push({parentId:c,nextId:o,node:n}),r.add(n.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const a of this.movedSet)li(this.removesSubTreeCache,a,this.mirror)&&!this.movedSet.has(L.parentNode(a))||f(a);for(const a of this.addedSet)!ui(this.droppedSet,a)&&!li(this.removesSubTreeCache,a,this.mirror)||ui(this.movedSet,a)?f(a):this.droppedSet.add(a);let u=null;for(;l.length;){let a=null;if(u){const p=this.mirror.getId(L.parentNode(u.value)),i=s(u.value);p!==-1&&i!==-1&&(a=u)}if(!a){let p=l.tail;for(;p;){const i=p;if(p=p.previous,i){const c=this.mirror.getId(L.parentNode(i.value));if(s(i.value)===-1)continue;if(c!==-1){a=i;break}else{const n=i.value,d=L.parentNode(n);if(d&&d.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=L.host(d);if(this.mirror.getId(h)!==-1){a=i;break}}}}}}if(!a){for(;l.head;)l.removeNode(l.head.value);break}u=a.previous,l.removeNode(a.value),f(a.value)}const m={texts:this.texts.map(a=>{const p=a.node,i=L.parentNode(p);return i&&i.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(i),{id:this.mirror.getId(p),value:a.value}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>{const{attributes:p}=a;if(typeof p.style=="string"){const i=JSON.stringify(a.styleDiff),c=JSON.stringify(a._unchangedStyles);i.length<p.style.length&&(i+c).split("var(").length===p.style.split("var(").length&&(p.style=a.styleDiff)}return{id:this.mirror.getId(a.node),attributes:p}}).filter(a=>!r.has(a.id)).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:t};!m.texts.length&&!m.attributes.length&&!m.removes.length&&!m.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(m))}),I(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));const l=Array.from(L.childNodes(t),s=>L.textContent(s)||"").join("");r.attributes.value=st({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:it(t),value:l,maskInputFn:this.maskInputFn})}),I(this,"processMutation",t=>{if(!Rr(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{const r=L.textContent(t.target);!re(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Mi(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,ji(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{const r=t.target;let l=t.attributeName,s=t.target.getAttribute(l);if(l==="value"){const u=it(r);s=st({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:u,value:s,maskInputFn:this.maskInputFn})}if(re(t.target,this.blockClass,this.blockSelector,!1)||s===t.oldValue)return;let f=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&l==="src"&&!this.keepIframeSrcFn(s))if(!r.contentDocument)l="rr_src";else return;if(f||(f={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(f),this.attributeMap.set(t.target,f)),l==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Oi(r.tagName,l)){if(f.attributes[l]=Ri(this.doc,Ce(r.tagName),Ce(l),s),this.maskAttributeFn&&typeof f.attributes[l]=="string"){const u=this.maskAttributeFn(l,f.attributes[l],r);u!==null?f.attributes[l]=u:delete f.attributes[l]}if(l==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const u=this.unattachedDoc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue);for(const m of Array.from(r.style)){const a=r.style.getPropertyValue(m),p=r.style.getPropertyPriority(m);a!==u.style.getPropertyValue(m)||p!==u.style.getPropertyPriority(m)?p===""?f.styleDiff[m]=a:f.styleDiff[m]=[a,p]:f._unchangedStyles[m]=[a,p]}for(const m of Array.from(u.style))r.style.getPropertyValue(m)===""&&(f.styleDiff[m]=!1)}else l==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?f.attributes.rr_open_mode="modal":f.attributes.rr_open_mode="non-modal")}break}case"childList":{if(re(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{const l=this.mirror.getId(r),s=Te(t.target)?this.mirror.getId(L.host(t.target)):this.mirror.getId(t.target);re(t.target,this.blockClass,this.blockSelector,!1)||Rr(r,this.mirror,this.slimDOMOptions)||!zo(r,this.mirror)||(this.addedSet.has(r)?(Ar(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&l===-1||Hi(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[ai(l,s)]?Ar(this.movedSet,r):(this.removes.push({parentId:s,id:l,isShadow:Te(t.target)&&Fe(t.target)?!0:void 0}),Jo(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),I(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Rr(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let l=null;r&&this.mirror.hasNode(r)&&(l=this.mirror.getId(r)),l&&l!==-1&&(this.movedMap[ai(this.mirror.getId(t),l)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);re(t,this.blockClass,this.blockSelector,!1)||(L.childNodes(t).forEach(l=>this.genAdds(l)),Ir(t)&&L.childNodes(L.shadowRoot(t)).forEach(l=>{this.processedNodeManager.add(l,this),this.genAdds(l,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","maskAttributeFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ar(e,t){e.delete(t),L.childNodes(t).forEach(r=>Ar(e,r))}function Jo(e,t){const r=[e];for(;r.length;){const l=r.pop();t.has(l)||(t.add(l),L.childNodes(l).forEach(s=>r.push(s)))}}function li(e,t,r){return e.size===0?!1:Yo(e,t)}function Yo(e,t,r){const l=L.parentNode(t);return l?e.has(l):!1}function ui(e,t){return e.size===0?!1:Xi(e,t)}function Xi(e,t){const r=L.parentNode(t);return r?e.has(r)?!0:Xi(e,r):!1}let Ue;function Qo(e){Ue=e}function Xo(){Ue=void 0}const T=e=>Ue?((...r)=>{try{return e(...r)}catch(l){if(Ue&&Ue(l)===!0)return;throw l}}):e;function ci(e){return(...t)=>{try{return e(...t)}catch(r){try{r._external_=!0}catch{}throw r}}}const ve=[];function qe(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Ki(e,t){const r=new Vo;ve.push(r),r.init(e);const l=new(Bi())(T(r.processMutations.bind(r)));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function Ko({mousemoveCb:e,sampling:t,doc:r,mirror:l}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,f=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let u=[],m;const a=Be(T(c=>{const o=Date.now()-m;e(u.map(n=>(n.timeOffset-=o,n)),c),u=[],m=null}),f),p=T(Be(T(c=>{const o=qe(c),{clientX:n,clientY:d}=Er(c)?c.changedTouches[0]:c;m||(m=at()),u.push({x:n,y:d,id:l.getId(o),timeOffset:at()-m}),a(typeof DragEvent<"u"&&c instanceof DragEvent?D.Drag:c instanceof MouseEvent?D.MouseMove:D.TouchMove)}),s,{trailing:!1})),i=[te("mousemove",p,r),te("touchmove",p,r),te("drag",p,r)];return T(()=>{i.forEach(c=>c())})}function Zo({mouseInteractionCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,sampling:f}){if(f.mouseInteraction===!1)return()=>{};const u=f.mouseInteraction===!0||f.mouseInteraction===void 0?{}:f.mouseInteraction,m=[];let a=null;const p=i=>c=>{const o=qe(c);if(re(o,l,s,!0))return;let n=null,d=i;if("pointerType"in c){switch(c.pointerType){case"mouse":n=ge.Mouse;break;case"touch":n=ge.Touch;break;case"pen":n=ge.Pen;break}n===ge.Touch?ie[i]===ie.MouseDown?d="TouchStart":ie[i]===ie.MouseUp&&(d="TouchEnd"):ge.Pen}else Er(c)&&(n=ge.Touch);n!==null?(a=n,(d.startsWith("Touch")&&n===ge.Touch||d.startsWith("Mouse")&&n===ge.Mouse)&&(n=null)):ie[i]===ie.Click&&(n=a,a=null);const h=Er(c)?c.changedTouches[0]:c;if(!h)return;const y=r.getId(o),{clientX:C,clientY:w}=h;T(e)({type:ie[d],id:y,x:C,y:w,...n!==null&&{pointerType:n}})};return Object.keys(ie).filter(i=>Number.isNaN(Number(i))&&!i.endsWith("_Departed")&&u[i]!==!1).forEach(i=>{let c=Ce(i);const o=p(i);if(window.PointerEvent)switch(ie[i]){case ie.MouseDown:case ie.MouseUp:c=c.replace("mouse","pointer");break;case ie.TouchStart:case ie.TouchEnd:return}m.push(te(c,o,t))}),T(()=>{m.forEach(i=>i())})}function Zi({scrollCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,sampling:f}){const u=T(Be(T(m=>{const a=qe(m);if(!a||re(a,l,s,!0))return;const p=r.getId(a);if(a===t&&t.defaultView){const i=zi(t.defaultView);e({id:p,x:i.left,y:i.top})}else e({id:p,x:a.scrollLeft,y:a.scrollTop})}),f.scroll||100));return te("scroll",u,t)}function ea({viewportResizeCb:e},{win:t}){let r=-1,l=-1;const s=T(Be(T(()=>{const f=Wi(),u=qi();(r!==f||l!==u)&&(e({width:Number(u),height:Number(f)}),r=f,l=u)}),200));return te("resize",s,t)}const ta=["INPUT","TEXTAREA","SELECT"],hi=new WeakMap;function ra({inputCb:e,doc:t,mirror:r,blockClass:l,blockSelector:s,ignoreClass:f,ignoreSelector:u,maskInputOptions:m,maskInputFn:a,sampling:p,userTriggeredOnInput:i}){function c(w){let S=qe(w);const b=w.isTrusted,g=S&&S.tagName;if(S&&g==="OPTION"&&(S=L.parentElement(S)),!S||!g||ta.indexOf(g)<0||re(S,l,s,!0)||S.classList.contains(f)||u&&S.matches(u))return;let v=S.value,x=!1;const O=it(S)||"";O==="radio"||O==="checkbox"?x=S.checked:(m[g.toLowerCase()]||m[O])&&(v=st({element:S,maskInputOptions:m,tagName:g,type:O,value:v,maskInputFn:a})),o(S,i?{text:v,isChecked:x,userTriggered:b}:{text:v,isChecked:x});const A=S.name;O==="radio"&&A&&x&&t.querySelectorAll(`input[type="radio"][name="${A}"]`).forEach(M=>{if(M!==S){const $=M.value;o(M,i?{text:$,isChecked:!x,userTriggered:!1}:{text:$,isChecked:!x})}})}function o(w,S){const b=hi.get(w);if(!b||b.text!==S.text||b.isChecked!==S.isChecked){hi.set(w,S);const g=r.getId(w);T(e)({...S,id:g})}}const d=(p.input==="last"?["change"]:["input","change"]).map(w=>te(w,T(c),t)),h=t.defaultView;if(!h)return()=>{d.forEach(w=>w())};const y=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),C=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&d.push(...C.map(w=>St(w[0],w[1],{set(){T(c)({target:this,isTrusted:!1})}},!1,h))),T(()=>{d.forEach(w=>w())})}function lt(e){const t=[];function r(l,s){if(Xe("CSSGroupingRule")&&l.parentRule instanceof CSSGroupingRule||Xe("CSSMediaRule")&&l.parentRule instanceof CSSMediaRule||Xe("CSSSupportsRule")&&l.parentRule instanceof CSSSupportsRule||Xe("CSSConditionRule")&&l.parentRule instanceof CSSConditionRule){const u=Array.from(l.parentRule.cssRules).indexOf(l);s.unshift(u)}else if(l.parentStyleSheet){const u=Array.from(l.parentStyleSheet.cssRules).indexOf(l);s.unshift(u)}return s}return r(e,t)}function we(e,t,r){let l,s;return e?(e.ownerNode?l=t.getId(e.ownerNode):s=r.getId(e),{styleId:s,id:l}):{}}function sa({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:l}){if(!l.CSSStyleSheet||!l.CSSStyleSheet.prototype)return()=>{};const s=l.CSSStyleSheet.prototype.insertRule;l.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:T((i,c,o)=>{const[n,d]=o,{id:h,styleId:y}=we(c,t,r.styleMirror);return(h&&h!==-1||y&&y!==-1)&&e({id:h,styleId:y,adds:[{rule:n,index:d}]}),ci(()=>i.apply(c,o))()})}),l.CSSStyleSheet.prototype.addRule=function(i,c,o=this.cssRules.length){const n=`${i} { ${c} }`;return l.CSSStyleSheet.prototype.insertRule.apply(this,[n,o])};const f=l.CSSStyleSheet.prototype.deleteRule;l.CSSStyleSheet.prototype.deleteRule=new Proxy(f,{apply:T((i,c,o)=>{const[n]=o,{id:d,styleId:h}=we(c,t,r.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,removes:[{index:n}]}),ci(()=>i.apply(c,o))()})}),l.CSSStyleSheet.prototype.removeRule=function(i){return l.CSSStyleSheet.prototype.deleteRule.apply(this,[i])};let u;l.CSSStyleSheet.prototype.replace&&(u=l.CSSStyleSheet.prototype.replace,l.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:T((i,c,o)=>{const[n]=o,{id:d,styleId:h}=we(c,t,r.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,replace:n}),i.apply(c,o)})}));let m;l.CSSStyleSheet.prototype.replaceSync&&(m=l.CSSStyleSheet.prototype.replaceSync,l.CSSStyleSheet.prototype.replaceSync=new Proxy(m,{apply:T((i,c,o)=>{const[n]=o,{id:d,styleId:h}=we(c,t,r.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,replaceSync:n}),i.apply(c,o)})}));const a={};Ke("CSSGroupingRule")?a.CSSGroupingRule=l.CSSGroupingRule:(Ke("CSSMediaRule")&&(a.CSSMediaRule=l.CSSMediaRule),Ke("CSSConditionRule")&&(a.CSSConditionRule=l.CSSConditionRule),Ke("CSSSupportsRule")&&(a.CSSSupportsRule=l.CSSSupportsRule));const p={};return Object.entries(a).forEach(([i,c])=>{p[i]={insertRule:c.prototype.insertRule,deleteRule:c.prototype.deleteRule},c.prototype.insertRule=new Proxy(p[i].insertRule,{apply:T((o,n,d)=>{const[h,y]=d,{id:C,styleId:w}=we(n.parentStyleSheet,t,r.styleMirror);return(C&&C!==-1||w&&w!==-1)&&e({id:C,styleId:w,adds:[{rule:h,index:[...lt(n),y||0]}]}),o.apply(n,d)})}),c.prototype.deleteRule=new Proxy(p[i].deleteRule,{apply:T((o,n,d)=>{const[h]=d,{id:y,styleId:C}=we(n.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||C&&C!==-1)&&e({id:y,styleId:C,removes:[{index:[...lt(n),h]}]}),o.apply(n,d)})})}),T(()=>{l.CSSStyleSheet.prototype.insertRule=s,l.CSSStyleSheet.prototype.deleteRule=f,u&&(l.CSSStyleSheet.prototype.replace=u),m&&(l.CSSStyleSheet.prototype.replaceSync=m),Object.entries(a).forEach(([i,c])=>{c.prototype.insertRule=p[i].insertRule,c.prototype.deleteRule=p[i].deleteRule})})}function en({mirror:e,stylesheetManager:t},r){var l,s,f;let u=null;r.nodeName==="#document"?u=e.getId(r):u=e.getId(L.host(r));const m=r.nodeName==="#document"?(l=r.defaultView)==null?void 0:l.Document:(f=(s=r.ownerDocument)==null?void 0:s.defaultView)==null?void 0:f.ShadowRoot,a=m?.prototype?Object.getOwnPropertyDescriptor(m?.prototype,"adoptedStyleSheets"):void 0;return u===null||u===-1||!m||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){var p;return(p=a.get)==null?void 0:p.call(this)},set(p){var i;const c=(i=a.set)==null?void 0:i.call(this,p);if(u!==null&&u!==-1)try{t.adoptStyleSheets(p,u)}catch{}return c}}),T(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function ia({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:l},{win:s}){const f=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(f,{apply:T((m,a,p)=>{var i;const[c,o,n]=p;if(r.has(c))return f.apply(a,[c,o,n]);const{id:d,styleId:h}=we((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,l.styleMirror);return(d&&d!==-1||h&&h!==-1)&&e({id:d,styleId:h,set:{property:c,value:o,priority:n},index:lt(a.parentRule)}),m.apply(a,p)})});const u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:T((m,a,p)=>{var i;const[c]=p;if(r.has(c))return u.apply(a,[c]);const{id:o,styleId:n}=we((i=a.parentRule)==null?void 0:i.parentStyleSheet,t,l.styleMirror);return(o&&o!==-1||n&&n!==-1)&&e({id:o,styleId:n,remove:{property:c},index:lt(a.parentRule)}),m.apply(a,p)})}),T(()=>{s.CSSStyleDeclaration.prototype.setProperty=f,s.CSSStyleDeclaration.prototype.removeProperty=u})}function na({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:l,sampling:s,doc:f}){const u=T(a=>Be(T(p=>{const i=qe(p);if(!i||re(i,t,r,!0))return;const{currentTime:c,volume:o,muted:n,playbackRate:d,loop:h}=i;e({type:a,id:l.getId(i),currentTime:c,volume:o,muted:n,playbackRate:d,loop:h})}),s.media||500)),m=[te("play",u(Ae.Play),f),te("pause",u(Ae.Pause),f),te("seeked",u(Ae.Seeked),f),te("volumechange",u(Ae.VolumeChange),f),te("ratechange",u(Ae.RateChange),f)];return T(()=>{m.forEach(a=>a())})}function oa({fontCb:e,doc:t}){const r=t.defaultView;if(!r)return()=>{};const l=[],s=new WeakMap,f=r.FontFace;r.FontFace=function(a,p,i){const c=new f(a,p,i);return s.set(c,{family:a,buffer:typeof p!="string",descriptors:i,fontSource:typeof p=="string"?p:JSON.stringify(Array.from(new Uint8Array(p)))}),c};const u=Le(t.fonts,"add",function(m){return function(a){return setTimeout(T(()=>{const p=s.get(a);p&&(e(p),s.delete(a))}),0),m.apply(this,[a])}});return l.push(()=>{r.FontFace=f}),l.push(u),T(()=>{l.forEach(m=>m())})}function aa(e){const{doc:t,mirror:r,blockClass:l,blockSelector:s,selectionCb:f}=e;let u=!0;const m=T(()=>{const a=t.getSelection();if(!a||u&&a?.isCollapsed)return;u=a.isCollapsed||!1;const p=[],i=a.rangeCount||0;for(let c=0;c<i;c++){const o=a.getRangeAt(c),{startContainer:n,startOffset:d,endContainer:h,endOffset:y}=o;re(n,l,s,!0)||re(h,l,s,!0)||p.push({start:r.getId(n),startOffset:d,end:r.getId(h),endOffset:y})}f({ranges:p})});return m(),te("selectionchange",m)}function la({doc:e,customElementCb:t}){const r=e.defaultView;return!r||!r.customElements?()=>{}:Le(r.customElements,"define",function(s){return function(f,u,m){try{t({define:{name:f}})}catch{console.warn(`Custom element callback failed for ${f}`)}return s.apply(this,[f,u,m])}})}function ua(e,t){const{mutationCb:r,mousemoveCb:l,mouseInteractionCb:s,scrollCb:f,viewportResizeCb:u,inputCb:m,mediaInteractionCb:a,styleSheetRuleCb:p,styleDeclarationCb:i,canvasMutationCb:c,fontCb:o,selectionCb:n,customElementCb:d}=e;e.mutationCb=(...h)=>{t.mutation&&t.mutation(...h),r(...h)},e.mousemoveCb=(...h)=>{t.mousemove&&t.mousemove(...h),l(...h)},e.mouseInteractionCb=(...h)=>{t.mouseInteraction&&t.mouseInteraction(...h),s(...h)},e.scrollCb=(...h)=>{t.scroll&&t.scroll(...h),f(...h)},e.viewportResizeCb=(...h)=>{t.viewportResize&&t.viewportResize(...h),u(...h)},e.inputCb=(...h)=>{t.input&&t.input(...h),m(...h)},e.mediaInteractionCb=(...h)=>{t.mediaInteaction&&t.mediaInteaction(...h),a(...h)},e.styleSheetRuleCb=(...h)=>{t.styleSheetRule&&t.styleSheetRule(...h),p(...h)},e.styleDeclarationCb=(...h)=>{t.styleDeclaration&&t.styleDeclaration(...h),i(...h)},e.canvasMutationCb=(...h)=>{t.canvasMutation&&t.canvasMutation(...h),c(...h)},e.fontCb=(...h)=>{t.font&&t.font(...h),o(...h)},e.selectionCb=(...h)=>{t.selection&&t.selection(...h),n(...h)},e.customElementCb=(...h)=>{t.customElement&&t.customElement(...h),d(...h)}}function ca(e,t={}){const r=e.doc.defaultView;if(!r)return()=>{};ua(e,t);let l;e.recordDOM&&(l=Ki(e,e.doc));const s=Ko(e),f=Zo(e),u=Zi(e),m=ea(e,{win:r}),a=ra(e),p=na(e);let i=()=>{},c=()=>{},o=()=>{},n=()=>{};e.recordDOM&&(i=sa(e,{win:r}),c=en(e,e.doc),o=ia(e,{win:r}),e.collectFonts&&(n=oa(e)));const d=aa(e),h=la(e),y=[];for(const C of e.plugins)y.push(C.observer(C.callback,r,C.options));return T(()=>{ve.forEach(C=>C.reset()),l?.disconnect(),s(),f(),u(),m(),a(),p(),i(),c(),o(),n(),d(),h(),y.forEach(C=>C())})}function Xe(e){return typeof window[e]<"u"}function Ke(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class fi{constructor(t){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,l,s){const f=l||this.getIdToRemoteIdMap(t),u=s||this.getRemoteIdToIdMap(t);let m=f.get(r);return m||(m=this.generateIdFn(),f.set(r,m),u.set(m,r)),m}getIds(t,r){const l=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return r.map(f=>this.getId(t,f,l,s))}getRemoteId(t,r,l){const s=l||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;const f=s.get(r);return f||-1}getRemoteIds(t,r){const l=this.getRemoteIdToIdMap(t);return r.map(s=>this.getRemoteId(t,s,l))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}}class ha{constructor(t){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new fi(xi)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new fi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var l,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((l=t.contentWindow)==null||l.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){const r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const f=this.transformCrossOriginEvent(s,r.data.event);f&&this.wrappedEmit(f,r.data.isCheckout)}transformCrossOriginEvent(t,r){var l;switch(r.type){case U.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);const s=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(r.data.node,s),{timestamp:r.timestamp,type:U.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case U.Meta:case U.Load:case U.DomContentLoaded:return!1;case U.Plugin:return r;case U.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case U.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const f=this.crossOriginIframeRootIdMap.get(t);f&&this.patchRootIdOnNode(s.node,f)}),r.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),r.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),r.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,t,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(l=r.data.styles)==null||l.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),r}}return!1}replace(t,r,l,s){for(const f of s)!Array.isArray(r[f])&&typeof r[f]!="number"||(Array.isArray(r[f])?r[f]=t.getIds(l,r[f]):r[f]=t.getId(l,r[f]));return r}replaceIds(t,r,l){return this.replace(this.crossOriginIframeMirror,t,r,l)}replaceStyleIds(t,r,l){return this.replace(this.crossOriginIframeStyleMirror,t,r,l)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(l=>{this.replaceIdOnNode(l,r)})}patchRootIdOnNode(t,r){t.type!==Qi.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(l=>{this.patchRootIdOnNode(l,r)})}}class fa{constructor(t){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!Fe(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);const l=Ki({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>l.disconnect()),this.restoreHandlers.push(Zi({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(L.host(t))),this.restoreHandlers.push(en({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){const l=this;this.restoreHandlers.push(Le(t.prototype,"attachShadow",function(s){return function(f){const u=s.call(this,f),m=L.shadowRoot(this);return m&&Yi(this)&&l.addShadowRoot(m,r),u}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var Pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ze=0;Ze<Pe.length;Ze++)pa[Pe.charCodeAt(Ze)]=Ze;var da=function(e){var t=new Uint8Array(e),r,l=t.length,s="";for(r=0;r<l;r+=3)s+=Pe[t[r]>>2],s+=Pe[(t[r]&3)<<4|t[r+1]>>4],s+=Pe[(t[r+1]&15)<<2|t[r+2]>>6],s+=Pe[t[r+2]&63];return l%3===2?s=s.substring(0,s.length-1)+"=":l%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const pi=new Map;function ma(e,t){let r=pi.get(e);return r||(r=new Map,pi.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}const tn=(e,t,r)=>{if(!e||!(sn(e,t)||typeof e=="object"))return;const l=e.constructor.name,s=ma(r,l);let f=s.indexOf(e);return f===-1&&(f=s.length,s.push(e)),f};function et(e,t,r){if(e instanceof Array)return e.map(l=>et(l,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const l=e.constructor.name,s=da(e);return{rr_type:l,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[et(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const l=e.constructor.name,{src:s}=e;return{rr_type:l,src:s}}else if(e instanceof HTMLCanvasElement){const l="HTMLImageElement",s=e.toDataURL();return{rr_type:l,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[et(e.data,t,r),e.width,e.height]};if(sn(e,t)||typeof e=="object"){const l=e.constructor.name,s=tn(e,t,r);return{rr_type:l,index:s}}}}return e}const rn=(e,t,r)=>e.map(l=>et(l,t,r)),sn=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function ga(e,t,r,l){const s=[],f=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const u of f)try{if(typeof t.CanvasRenderingContext2D.prototype[u]!="function")continue;const m=Le(t.CanvasRenderingContext2D.prototype,u,function(a){return function(...p){return re(this.canvas,r,l,!0)||setTimeout(()=>{const i=rn(p,t,this);e(this.canvas,{type:_e["2D"],property:u,args:i})},0),a.apply(this,p)}});s.push(m)}catch{const m=St(t.CanvasRenderingContext2D.prototype,u,{set(a){e(this.canvas,{type:_e["2D"],property:u,args:[a],setter:!0})}});s.push(m)}return()=>{s.forEach(u=>u())}}function ya(e){return e==="experimental-webgl"?"webgl":e}function di(e,t,r,l){const s=[];try{const f=Le(e.HTMLCanvasElement.prototype,"getContext",function(u){return function(m,...a){if(!re(this,t,r,!0)){const p=ya(m);if("__context"in this||(this.__context=p),l&&["webgl","webgl2"].includes(p))if(a[0]&&typeof a[0]=="object"){const i=a[0];i.preserveDrawingBuffer||(i.preserveDrawingBuffer=!0)}else a.splice(0,1,{preserveDrawingBuffer:!0})}return u.apply(this,[m,...a])}});s.push(f)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{s.forEach(f=>f())}}function mi(e,t,r,l,s,f){const u=[],m=Object.getOwnPropertyNames(e);for(const a of m)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))try{if(typeof e[a]!="function")continue;const p=Le(e,a,function(i){return function(...c){const o=i.apply(this,c);if(tn(o,f,this),"tagName"in this.canvas&&!re(this.canvas,l,s,!0)){const n=rn(c,f,this),d={type:t,property:a,args:n};r(this.canvas,d)}return o}});u.push(p)}catch{const p=St(e,a,{set(i){r(this.canvas,{type:t,property:a,args:[i],setter:!0})}});u.push(p)}return u}function wa(e,t,r,l){const s=[];return s.push(...mi(t.WebGLRenderingContext.prototype,_e.WebGL,e,r,l,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...mi(t.WebGL2RenderingContext.prototype,_e.WebGL2,e,r,l,t)),()=>{s.forEach(f=>f())}}const nn=`(function() {
  "use strict";
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
  for (var i = 0; i < chars.length; i++) {
    lookup[chars.charCodeAt(i)] = i;
  }
  var encode = function(arraybuffer) {
    var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
    for (i2 = 0; i2 < len; i2 += 3) {
      base64 += chars[bytes[i2] >> 2];
      base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
      base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
      base64 += chars[bytes[i2 + 2] & 63];
    }
    if (len % 3 === 2) {
      base64 = base64.substring(0, base64.length - 1) + "=";
    } else if (len % 3 === 1) {
      base64 = base64.substring(0, base64.length - 2) + "==";
    }
    return base64;
  };
  const lastBlobMap = /* @__PURE__ */ new Map();
  const transparentBlobMap = /* @__PURE__ */ new Map();
  async function getTransparentBlobFor(width, height, dataURLOptions) {
    const id = \`\${width}-\${height}\`;
    if ("OffscreenCanvas" in globalThis) {
      if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
      const offscreen = new OffscreenCanvas(width, height);
      offscreen.getContext("2d");
      const blob = await offscreen.convertToBlob(dataURLOptions);
      const arrayBuffer = await blob.arrayBuffer();
      const base64 = encode(arrayBuffer);
      transparentBlobMap.set(id, base64);
      return base64;
    } else {
      return "";
    }
  }
  const worker = self;
  worker.onmessage = async function(e) {
    if ("OffscreenCanvas" in globalThis) {
      const { id, bitmap, width, height, dataURLOptions } = e.data;
      const transparentBase64 = getTransparentBlobFor(
        width,
        height,
        dataURLOptions
      );
      const offscreen = new OffscreenCanvas(width, height);
      const ctx = offscreen.getContext("2d");
      ctx.drawImage(bitmap, 0, 0);
      bitmap.close();
      const blob = await offscreen.convertToBlob(dataURLOptions);
      const type = blob.type;
      const arrayBuffer = await blob.arrayBuffer();
      const base64 = encode(arrayBuffer);
      if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
        lastBlobMap.set(id, base64);
        return worker.postMessage({ id });
      }
      if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
      worker.postMessage({
        id,
        type,
        base64,
        width,
        height
      });
      lastBlobMap.set(id, base64);
    } else {
      return worker.postMessage({ id: e.data.id });
    }
  };
})();
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
`,gi=typeof self<"u"&&self.Blob&&new Blob([nn],{type:"text/javascript;charset=utf-8"});function ba(e){let t;try{if(t=gi&&(self.URL||self.webkitURL).createObjectURL(gi),!t)throw"";const r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(nn),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}class Sa{constructor(t){I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",(a,p)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(p)});const{sampling:r="all",win:l,blockClass:s,blockSelector:f,recordCanvas:u,dataURLOptions:m}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,u&&r==="all"&&this.initCanvasMutationObserver(l,s,f),u&&typeof r=="number"&&this.initCanvasFPSObserver(r,l,s,f,{dataURLOptions:m})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,l,s,f){const u=di(r,l,s,!0),m=new Map,a=new ba;a.onmessage=d=>{const{id:h}=d.data;if(m.set(h,!1),!("base64"in d.data))return;const{base64:y,type:C,width:w,height:S}=d.data;this.mutationCb({id:h,type:_e["2D"],commands:[{property:"clearRect",args:[0,0,w,S]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:C}]},0,0]}]})};const p=1e3/t;let i=0,c;const o=()=>{const d=[];return r.document.querySelectorAll("canvas").forEach(h=>{re(h,l,s,!0)||d.push(h)}),d},n=d=>{if(i&&d-i<p){c=requestAnimationFrame(n);return}i=d,o().forEach(async h=>{var y;const C=this.mirror.getId(h);if(m.get(C)||h.width===0||h.height===0)return;if(m.set(C,!0),["webgl","webgl2"].includes(h.__context)){const S=h.getContext(h.__context);((y=S?.getContextAttributes())==null?void 0:y.preserveDrawingBuffer)===!1&&S.clear(S.COLOR_BUFFER_BIT)}const w=await createImageBitmap(h);a.postMessage({id:C,bitmap:w,width:h.width,height:h.height,dataURLOptions:f.dataURLOptions},[w])}),c=requestAnimationFrame(n)};c=requestAnimationFrame(n),this.resetObservers=()=>{u(),cancelAnimationFrame(c)}}initCanvasMutationObserver(t,r,l){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const s=di(t,r,l,!1),f=ga(this.processMutation.bind(this),t,r,l),u=wa(this.processMutation.bind(this),t,r,l);this.resetObservers=()=>{s(),f(),u()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{const l=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,l)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;const l=this.pendingCanvasMutations.get(t);if(!l||r===-1)return;const s=l.map(u=>{const{type:m,...a}=u;return a}),{type:f}=l[0];this.mutationCb({id:r,type:f,commands:s}),this.pendingCanvasMutations.delete(t)}}class va{constructor(t){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new qo),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;const l={id:r,styleIds:[]},s=[];for(const f of t){let u;this.styleMirror.has(f)?u=this.styleMirror.getId(f):(u=this.styleMirror.add(f),s.push({styleId:u,rules:Array.from(f.rules||CSSRule,(m,a)=>({rule:Si(m,f.href),index:a}))})),l.styleIds.push(u)}s.length>0&&(l.styles=s),this.adoptedStyleSheetCb(l)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Ca{constructor(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}inOtherBuffer(t,r){const l=this.nodeMap.get(t);return l&&Array.from(l).some(s=>s!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}}let J,tt,Or,ut=!1;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((Jr=e.contentWindow)==null?void 0:Jr.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ce=In();function Oe(e={}){const{emit:t,checkoutEveryNms:r,checkoutEveryNth:l,blockClass:s="rr-block",blockSelector:f=null,ignoreClass:u="rr-ignore",ignoreSelector:m=null,maskTextClass:a="rr-mask",maskTextSelector:p=null,inlineStylesheet:i=!0,maskAllInputs:c,maskInputOptions:o,slimDOMOptions:n,maskInputFn:d,maskTextFn:h,maskAttributeFn:y,hooks:C,packFn:w,sampling:S={},dataURLOptions:b={},mousemoveWait:g,recordDOM:v=!0,recordCanvas:x=!1,recordCrossOriginIframes:O=!1,recordAfter:A=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:$=!1,inlineImages:k=!1,plugins:R,keepIframeSrcFn:Z=()=>!1,ignoreCSSAttributes:N=new Set([]),errorHandler:ee,applyBackgroundColorToBlockedElements:H=!1}=e;Qo(ee);const F=O?window.parent===window:!0;let Q=!1;if(!F)try{window.parent.document&&(Q=!1)}catch{Q=!0}if(F&&!t)throw new Error("emit function is required");if(!F&&!Q)return()=>{};g!==void 0&&S.mousemove===void 0&&(S.mousemove=g),ce.reset();const W=c===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:o!==void 0?o:{password:!0},P=n===!0||n==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:n==="all",headMetaDescKeywords:n==="all",headTitleMutations:n==="all"}:n||{};Wo();let ye,E=0;const pe=_=>{for(const ue of R||[])ue.eventProcessor&&(_=ue.eventProcessor(_));return w&&!Q&&(_=w(_)),_};J=(_,ue)=>{var G;const V=_;if(V.timestamp=at(),(G=ve[0])!=null&&G.isFrozen()&&V.type!==U.FullSnapshot&&!(V.type===U.IncrementalSnapshot&&V.data.source===D.Mutation)&&ve.forEach(me=>me.unfreeze()),F)t?.(pe(V),ue);else if(Q){const me={type:"rrweb",event:pe(V),origin:window.location.origin,isCheckout:ue};window.parent.postMessage(me,"*")}if(V.type===U.FullSnapshot)ye=V,E=0;else if(V.type===U.IncrementalSnapshot){if(V.data.source===D.Mutation&&V.data.isAttachIframe)return;E++;const me=l&&E>=l,B=r&&V.timestamp-ye.timestamp>r;(me||B)&&tt(!0)}};const se=_=>{J({type:U.IncrementalSnapshot,data:{source:D.Mutation,..._}})},Me=_=>J({type:U.IncrementalSnapshot,data:{source:D.Scroll,..._}}),de=_=>J({type:U.IncrementalSnapshot,data:{source:D.CanvasMutation,..._}}),De=_=>J({type:U.IncrementalSnapshot,data:{source:D.AdoptedStyleSheet,..._}}),ae=new va({mutationCb:se,adoptedStyleSheetCb:De}),le=new ha({mirror:ce,mutationCb:se,stylesheetManager:ae,recordCrossOriginIframes:O,wrappedEmit:J});for(const _ of R||[])_.getMirror&&_.getMirror({nodeMirror:ce,crossOriginIframeMirror:le.crossOriginIframeMirror,crossOriginIframeStyleMirror:le.crossOriginIframeStyleMirror});const X=new Ca;Or=new Sa({recordCanvas:x,mutationCb:de,win:window,blockClass:s,blockSelector:f,mirror:ce,sampling:S.canvas,dataURLOptions:b});const ne=new fa({mutationCb:se,scrollCb:Me,bypassOptions:{blockClass:s,blockSelector:f,maskTextClass:a,maskTextSelector:p,inlineStylesheet:i,maskInputOptions:W,dataURLOptions:b,maskTextFn:h,maskInputFn:d,maskAttributeFn:y,recordCanvas:x,inlineImages:k,sampling:S,slimDOMOptions:P,iframeManager:le,stylesheetManager:ae,canvasManager:Or,keepIframeSrcFn:Z,processedNodeManager:X},mirror:ce});tt=(_=!1)=>{if(!v)return;J({type:U.Meta,data:{href:window.location.href,width:qi(),height:Wi()}},_),ae.reset(),ne.init(),ve.forEach(G=>G.lock());const ue=Zn(document,{mirror:ce,blockClass:s,blockSelector:f,maskTextClass:a,maskTextSelector:p,inlineStylesheet:i,maskAllInputs:W,maskTextFn:h,maskInputFn:d,maskAttributeFn:y,slimDOM:P,dataURLOptions:b,recordCanvas:x,inlineImages:k,applyBackgroundColorToBlockedElements:H,onSerialize:G=>{Gi(G,ce)&&le.addIframe(G),Vi(G,ce)&&ae.trackLinkElement(G),Ir(G)&&ne.addShadowRoot(L.shadowRoot(G),document)},onIframeLoad:(G,V)=>{le.attachIframe(G,V),ne.observeAttachShadow(G)},onStylesheetLoad:(G,V)=>{ae.attachLinkElement(G,V)},keepIframeSrcFn:Z});if(!ue)return console.warn("Failed to snapshot the document");J({type:U.FullSnapshot,data:{node:ue,initialOffset:zi(window)}},_),ve.forEach(G=>G.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ae.adoptStyleSheets(document.adoptedStyleSheets,ce.getId(document))};try{const _=[],ue=V=>{var me;return T(ca)({mutationCb:se,mousemoveCb:(B,vt)=>J({type:U.IncrementalSnapshot,data:{source:vt,positions:B}}),mouseInteractionCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.MouseInteraction,...B}}),scrollCb:Me,viewportResizeCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.ViewportResize,...B}}),inputCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.Input,...B}}),mediaInteractionCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.MediaInteraction,...B}}),styleSheetRuleCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.StyleSheetRule,...B}}),styleDeclarationCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.StyleDeclaration,...B}}),canvasMutationCb:de,fontCb:B=>J({type:U.IncrementalSnapshot,data:{source:D.Font,...B}}),selectionCb:B=>{J({type:U.IncrementalSnapshot,data:{source:D.Selection,...B}})},customElementCb:B=>{J({type:U.IncrementalSnapshot,data:{source:D.CustomElement,...B}})},blockClass:s,ignoreClass:u,ignoreSelector:m,maskTextClass:a,maskTextSelector:p,maskInputOptions:W,inlineStylesheet:i,sampling:S,recordDOM:v,recordCanvas:x,inlineImages:k,userTriggeredOnInput:M,collectFonts:$,doc:V,maskInputFn:d,maskTextFn:h,maskAttributeFn:y,keepIframeSrcFn:Z,blockSelector:f,slimDOMOptions:P,dataURLOptions:b,mirror:ce,iframeManager:le,stylesheetManager:ae,shadowDomManager:ne,processedNodeManager:X,canvasManager:Or,ignoreCSSAttributes:N,plugins:((me=R?.filter(B=>B.observer))==null?void 0:me.map(B=>({observer:B.observer,options:B.options,callback:vt=>J({type:U.Plugin,data:{plugin:B.name,payload:vt}})})))||[]},C)};le.addLoadListener(V=>{try{_.push(ue(V.contentDocument))}catch(me){console.warn(me)}});const G=()=>{tt(),_.push(ue(document)),ut=!0};return document.readyState==="interactive"||document.readyState==="complete"?G():(_.push(te("DOMContentLoaded",()=>{J({type:U.DomContentLoaded,data:{}}),A==="DOMContentLoaded"&&G()})),_.push(te("load",()=>{J({type:U.Load,data:{}}),A==="load"&&G()},window))),()=>{_.forEach(V=>V()),X.destroy(),ut=!1,Xo()}}catch(_){console.warn(_)}}Oe.addCustomEvent=(e,t)=>{if(!ut)throw new Error("please add custom event after start recording");J({type:U.Custom,data:{tag:e,payload:t}})};Oe.freezePage=()=>{ve.forEach(e=>e.freeze())};Oe.takeFullSnapshot=e=>{if(!ut)throw new Error("please take full snapshot after start recording");tt(e)};Oe.mirror=ce;var yi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(yi||(yi={}));const{addCustomEvent:xa}=Oe,{freezePage:Ra}=Oe,{takeFullSnapshot:Oa}=Oe;export{Oe as record};

```

---

## .output/public/_nuxt/DOp-_5WN.js

```js
import{j as m,k as p,c as i,a as s,l as n,t as u,p as b,r as f,x as h,z as _,o as l}from"./BpsV6fwO.js";const C={class:"container"},v={style:{"text-align":"center"}},y={key:0,class:"success"},k={class:"stats"},B=m({__name:"burrito",setup(T){const a=p(),o=f(()=>a.user.value),c=_(),r=h(!1),d=async()=>{if(o.value)try{const e=await $fetch("/api/burrito/consider",{method:"POST",body:{username:o.value.username}});e.success&&e.user&&(a.setUser(e.user),r.value=!0,c?.track("burrito_considered",{total_considerations:e.user.burritoConsiderations,username:e.user.username}),setTimeout(()=>{r.value=!1},2e3))}catch(e){console.error("Error considering burrito:",e)}};return(e,t)=>(l(),i("div",C,[t[1]||(t[1]=s("h1",null,"Burrito consideration zone",-1)),t[2]||(t[2]=s("p",null,"Take a moment to truly consider the potential of burritos.",-1)),s("div",v,[s("button",{onClick:d,class:"btn-burrito"}," I have considered the burrito potential "),n(r)?(l(),i("p",y," Thank you for your consideration! Count: "+u(n(o)?.burritoConsiderations),1)):b("",!0)]),s("div",k,[t[0]||(t[0]=s("h3",null,"Consideration stats",-1)),s("p",null,"Total considerations: "+u(n(o)?.burritoConsiderations),1)])]))}});export{B as default};

```

---

## .output/public/_nuxt/iMBneS3o.js

```js
import{A as t,k as e,y as u}from"./BpsV6fwO.js";const f=t((a,s)=>{if(!e().user.value)return u("/")});export{f as default};

```

---

## .output/public/_nuxt/PJVKHxNq.js

```js
import{B as N,C as A,E as U,F as O}from"./BpsV6fwO.js";var L=function(a,e){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])},L(a,e)};function k(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");L(a,e);function r(){this.constructor=a}a.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var d=function(){return d=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},d.apply(this,arguments)};function y(a){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&a[e],t=0;if(r)return r.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&t>=a.length&&(a=void 0),{value:a&&a[t++],done:!a}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function D(a,e){var r=typeof Symbol=="function"&&a[Symbol.iterator];if(!r)return a;var t=r.call(a),n,o=[],i;try{for(;(e===void 0||e-- >0)&&!(n=t.next()).done;)o.push(n.value)}catch(c){i={error:c}}finally{try{n&&!n.done&&(r=t.return)&&r.call(t)}finally{if(i)throw i.error}}return o}function P(a,e,r){if(arguments.length===2)for(var t=0,n=e.length,o;t<n;t++)(o||!(t in e))&&(o||(o=Array.prototype.slice.call(e,0,t)),o[t]=e[t]);return a.concat(o||Array.prototype.slice.call(e))}var s={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},j=function(a){for(var e=[],r=0,t=0;t<a.length;t++){var n=a.charCodeAt(t);n<128?e[r++]=n:n<2048?(e[r++]=n>>6|192,e[r++]=n&63|128):(n&64512)==55296&&t+1<a.length&&(a.charCodeAt(t+1)&64512)==56320?(n=65536+((n&1023)<<10)+(a.charCodeAt(++t)&1023),e[r++]=n>>18|240,e[r++]=n>>12&63|128,e[r++]=n>>6&63|128,e[r++]=n&63|128):(e[r++]=n>>12|224,e[r++]=n>>6&63|128,e[r++]=n&63|128)}return Uint8Array.from(e)},R=-862048943,I=461845907,C=15,M=13,Q=5,B=-430675100,F=function(a,e){e===void 0&&(e=0);for(var r=j(a),t=r.length,n=t>>2,o=e,i=0;i<n;i++){var c=i<<2,v=q(r,c);o=X(v,o)}var f=n<<2,u=0;switch(t-f){case 3:u^=r[f+2]<<16,u^=r[f+1]<<8,u^=r[f],u=Math.imul(u,R),u=m(u,C),u=Math.imul(u,I),o^=u;break;case 2:u^=r[f+1]<<8,u^=r[f],u=Math.imul(u,R),u=m(u,C),u=Math.imul(u,I),o^=u;break;case 1:u^=r[f],u=Math.imul(u,R),u=m(u,C),u=Math.imul(u,I),o^=u;break}return o^=t,Y(o)>>>0},X=function(a,e){var r=a,t=e;return r=Math.imul(r,R),r=m(r,C),r=Math.imul(r,I),t^=r,t=m(t,M),t=Math.imul(t,Q),t+B|0},Y=function(a){var e=a;return e^=e>>>16,e=Math.imul(e,-2048144789),e^=e>>>13,e=Math.imul(e,-1028477387),e^=e>>>16,e},m=function(a,e,r){r===void 0&&(r=32),e>r&&(e=e%r);var t=4294967295<<r-e>>>0,n=(a&t)>>>0>>>r-e>>>0;return(a<<e|n)>>>0},q=function(a,e){e===void 0&&(e=0);var r=a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3];return J(r)},J=function(a){return(a&-16777216)>>>24|(a&16711680)>>>8|(a&65280)<<8|(a&255)<<24},H=function(a,e){var r,t;if(!(!e||e.length===0)){try{for(var n=y(e),o=n.next();!o.done;o=n.next()){var i=o.value;if(!i||!a||typeof a!="object")return;a=a[i]}}catch(c){r={error:c}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}if(a)return a}},z="(\\d+)\\.(\\d+)",K="(\\d+)",$="(-(([-\\w]+\\.?)*))?",W="^".concat(z,"(\\.").concat(K).concat($,")?$"),Z=(function(){function a(e,r,t,n){n===void 0&&(n=void 0),this.major=e,this.minor=r,this.patch=t,this.preRelease=n}return a.parse=function(e){if(e){var r=new RegExp(W).exec(e);if(r){var t=Number(r[1]),n=Number(r[2]);if(!(isNaN(t)||isNaN(n))){var o=Number(r[4])||0,i=r[5]||void 0;return new a(t,n,o,i)}}}},a.prototype.compareTo=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch||this.preRelease&&!e.preRelease?-1:!this.preRelease&&e.preRelease?1:this.preRelease&&e.preRelease?this.preRelease>e.preRelease?1:this.preRelease<e.preRelease?-1:0:0},a})(),V=(function(){function a(){}return a.prototype.evaluate=function(e,r){var t,n,o={},i={context:e,result:o};try{for(var c=y(r),v=c.next();!v.done;v=c.next()){var f=v.value,u=this.evaluateFlag(i,f);u&&(o[f.key]=u)}}catch(S){t={error:S}}finally{try{v&&!v.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return o},a.prototype.evaluateFlag=function(e,r){var t,n,o;try{for(var i=y(r.segments),c=i.next();!c.done;c=i.next()){var v=c.value;if(o=this.evaluateSegment(e,r,v),o){var f=d(d(d({},r.metadata),v.metadata),o.metadata);o=d(d({},o),{metadata:f});break}}}catch(u){t={error:u}}finally{try{c&&!c.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o},a.prototype.evaluateSegment=function(e,r,t){var n,o,i,c;if(!t.conditions){var v=this.bucket(e,t);return v!==void 0?r.variants[v]:void 0}try{for(var f=y(t.conditions),u=f.next();!u.done;u=f.next()){var S=u.value,h=!0;try{for(var E=(i=void 0,y(S)),T=E.next();!T.done;T=E.next()){var l=T.value;if(h=this.matchCondition(e,l),!h)break}}catch(p){i={error:p}}finally{try{T&&!T.done&&(c=E.return)&&c.call(E)}finally{if(i)throw i.error}}if(h){var v=this.bucket(e,t);return v!==void 0?r.variants[v]:void 0}}}catch(p){n={error:p}}finally{try{u&&!u.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},a.prototype.matchCondition=function(e,r){var t=H(e,r.selector);if(t)if(this.isSetOperator(r.op)){var n=this.coerceStringArray(t);return n?this.matchSet(n,r.op,r.values):!1}else{var o=this.coerceString(t);return o!==void 0?this.matchString(o,r.op,r.values):!1}else return this.matchNull(r.op,r.values)},a.prototype.getHash=function(e){return F(e)},a.prototype.bucket=function(e,r){var t,n,o,i;if(!r.bucket)return r.variant;var c=this.coerceString(H(e,r.bucket.selector));if(!c||c.length===0)return r.variant;var v="".concat(r.bucket.salt,"/").concat(c),f=this.getHash(v),u=f%100,S=Math.floor(f/100);try{for(var h=y(r.bucket.allocations),E=h.next();!E.done;E=h.next()){var T=E.value,l=T.range[0],p=T.range[1];if(u>=l&&u<p)try{for(var g=(o=void 0,y(T.distributions)),_=g.next();!_.done;_=g.next()){var x=_.value,b=x.range[0],G=x.range[1];if(S>=b&&S<G)return x.variant}}catch(w){o={error:w}}finally{try{_&&!_.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}}}catch(w){t={error:w}}finally{try{E&&!E.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return r.variant},a.prototype.matchNull=function(e,r){var t=this.containsNone(r);switch(e){case s.IS:case s.CONTAINS:case s.LESS_THAN:case s.LESS_THAN_EQUALS:case s.GREATER_THAN:case s.GREATER_THAN_EQUALS:case s.VERSION_LESS_THAN:case s.VERSION_LESS_THAN_EQUALS:case s.VERSION_GREATER_THAN:case s.VERSION_GREATER_THAN_EQUALS:case s.SET_IS:case s.SET_CONTAINS:case s.SET_CONTAINS_ANY:return t;case s.IS_NOT:case s.DOES_NOT_CONTAIN:case s.SET_DOES_NOT_CONTAIN:case s.SET_DOES_NOT_CONTAIN_ANY:return!t;default:return!1}},a.prototype.matchSet=function(e,r,t){switch(r){case s.SET_IS:return this.setEquals(e,t);case s.SET_IS_NOT:return!this.setEquals(e,t);case s.SET_CONTAINS:return this.matchesSetContainsAll(e,t);case s.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,t);case s.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,t);case s.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,t);default:return!1}},a.prototype.matchString=function(e,r,t){var n=this;switch(r){case s.IS:return this.matchesIs(e,t);case s.IS_NOT:return!this.matchesIs(e,t);case s.CONTAINS:return this.matchesContains(e,t);case s.DOES_NOT_CONTAIN:return!this.matchesContains(e,t);case s.LESS_THAN:case s.LESS_THAN_EQUALS:case s.GREATER_THAN:case s.GREATER_THAN_EQUALS:return this.matchesComparable(e,r,t,function(o){return n.parseNumber(o)},this.comparator);case s.VERSION_LESS_THAN:case s.VERSION_LESS_THAN_EQUALS:case s.VERSION_GREATER_THAN:case s.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,r,t,function(o){return Z.parse(o)},this.versionComparator);case s.REGEX_MATCH:return this.matchesRegex(e,t);case s.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,t);default:return!1}},a.prototype.matchesIs=function(e,r){if(this.containsBooleans(r)){var t=e.toLowerCase();if(t==="true"||t==="false")return r.some(function(n){return n.toLowerCase()===t})}return r.some(function(n){return e===n})},a.prototype.matchesContains=function(e,r){var t,n;try{for(var o=y(r),i=o.next();!i.done;i=o.next()){var c=i.value;if(e.toLowerCase().includes(c.toLowerCase()))return!0}}catch(v){t={error:v}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!1},a.prototype.matchesComparable=function(e,r,t,n,o){var i=this,c=n(e),v=t.map(function(f){return n(f)}).filter(function(f){return f!==void 0});return c===void 0||v.length===0?t.some(function(f){return i.comparator(e,r,f)}):v.some(function(f){return o(c,r,f)})},a.prototype.comparator=function(e,r,t){switch(r){case s.LESS_THAN:case s.VERSION_LESS_THAN:return e<t;case s.LESS_THAN_EQUALS:case s.VERSION_LESS_THAN_EQUALS:return e<=t;case s.GREATER_THAN:case s.VERSION_GREATER_THAN:return e>t;case s.GREATER_THAN_EQUALS:case s.VERSION_GREATER_THAN_EQUALS:return e>=t;default:return!1}},a.prototype.versionComparator=function(e,r,t){var n=e.compareTo(t);switch(r){case s.LESS_THAN:case s.VERSION_LESS_THAN:return n<0;case s.LESS_THAN_EQUALS:case s.VERSION_LESS_THAN_EQUALS:return n<=0;case s.GREATER_THAN:case s.VERSION_GREATER_THAN:return n>0;case s.GREATER_THAN_EQUALS:case s.VERSION_GREATER_THAN_EQUALS:return n>=0;default:return!1}},a.prototype.matchesRegex=function(e,r){return r.some(function(t){return!!new RegExp(t).exec(e)})},a.prototype.containsNone=function(e){return e.some(function(r){return r==="(none)"})},a.prototype.containsBooleans=function(e){return e.some(function(r){switch(r.toLowerCase()){case"true":case"false":return!0;default:return!1}})},a.prototype.parseNumber=function(e){var r;return(r=Number(e))!==null&&r!==void 0?r:void 0},a.prototype.coerceString=function(e){if(e)return typeof e=="object"?JSON.stringify(e):String(e)},a.prototype.coerceStringArray=function(e){var r=this;if(Array.isArray(e)){var t=e;return t.map(function(i){return r.coerceString(i)}).filter(Boolean)}var n=String(e);try{var o=JSON.parse(n);if(Array.isArray(o)){var t=e;return t.map(function(c){return r.coerceString(c)}).filter(Boolean)}else return}catch{return}},a.prototype.isSetOperator=function(e){switch(e){case s.SET_IS:case s.SET_IS_NOT:case s.SET_CONTAINS:case s.SET_DOES_NOT_CONTAIN:case s.SET_CONTAINS_ANY:case s.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},a.prototype.setEquals=function(e,r){var t=new Set(e),n=new Set(r);return t.size===n.size&&P([],D(n),!1).every(function(o){return t.has(o)})},a.prototype.matchesSetContainsAll=function(e,r){var t,n;if(e.length<r.length)return!1;try{for(var o=y(r),i=o.next();!i.done;i=o.next()){var c=i.value;if(!this.matchesIs(c,e))return!1}}catch(v){t={error:v}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},a.prototype.matchesSetContainsAny=function(e,r){var t,n;try{for(var o=y(r),i=o.next();!i.done;i=o.next()){var c=i.value;if(this.matchesIs(c,e))return!0}}catch(v){t={error:v}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!1},a})();typeof TextDecoder=="function"&&new TextDecoder;typeof TextEncoder=="function"&&new TextEncoder;const ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",re=Array.prototype.slice.call(ee);(a=>{let e={};return a.forEach((r,t)=>e[r]=t),e})(re);String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);(function(a){k(e,a);function e(r,t){var n=a.call(this,t)||this;return n.statusCode=r,Object.setPrototypeOf(n,e.prototype),n}return e})(Error);var te=1e3*60*60*24*2,ne=(function(){function a(){var e=this;this.dbs={},this.createStore=function(r){return N(e,void 0,void 0,function(){return A(this,function(t){switch(t.label){case 0:return[4,U(r,1,{upgrade:function(n){n.objectStoreNames.contains("eventTypesForSession")||n.createObjectStore("eventTypesForSession",{keyPath:"sessionId"})}})];case 1:return[2,t.sent()]}})})},this.openOrCreateDB=function(r){return N(e,void 0,void 0,function(){var t,n;return A(this,function(o){switch(o.label){case 0:return this.dbs&&this.dbs[r]?[2,this.dbs[r]]:(t="".concat(r.substring(0,10),"_amp_targeting"),[4,this.createStore(t)]);case 1:return n=o.sent(),this.dbs[r]=n,[2,n]}})})},this.updateEventListForSession=function(r){var t=r.sessionId,n=r.eventType,o=r.eventTime,i=r.loggerProvider,c=r.tx;return N(e,void 0,void 0,function(){var v,f,u,S,h,E,T;return A(this,function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),[4,c.store.get(t)];case 1:return v=l.sent(),f=v?v.eventTypes:{},u=f[n]||{},S=O(O({},f),(E={},E[n]=O(O({},u),(T={},T[o]={event_type:n},T)),E)),[4,c.store.put({sessionId:t,eventTypes:S})];case 2:return l.sent(),[2,S];case 3:return h=l.sent(),i.warn("Failed to store events for targeting ".concat(t,": ").concat(h)),[3,4];case 4:return[2,void 0]}})})},this.deleteOldSessionEventTypes=function(r){var t=r.currentSessionId,n=r.loggerProvider,o=r.tx;return N(e,void 0,void 0,function(){var i,c,v,f,u;return A(this,function(S){switch(S.label){case 0:return S.trys.push([0,6,,7]),[4,o.store.getAll()];case 1:i=S.sent(),c=0,S.label=2;case 2:return c<i.length?(v=i[c],f=Date.now()-v.sessionId,v.sessionId!==t&&f>te?[4,o.store.delete(v.sessionId)]:[3,4]):[3,5];case 3:S.sent(),S.label=4;case 4:return c++,[3,2];case 5:return[3,7];case 6:return u=S.sent(),n.warn("Failed to clear old session events for targeting: ".concat(u)),[3,7];case 7:return[2]}})})},this.storeEventTypeForSession=function(r){var t=r.loggerProvider,n=r.sessionId,o=r.eventType,i=r.eventTime,c=r.apiKey;return N(e,void 0,void 0,function(){var v,f,u,S;return A(this,function(h){switch(h.label){case 0:return h.trys.push([0,5,,6]),[4,this.openOrCreateDB(c)];case 1:return v=h.sent(),f=v.transaction("eventTypesForSession","readwrite"),f?[4,this.updateEventListForSession({sessionId:n,tx:f,loggerProvider:t,eventType:o,eventTime:i})]:[2];case 2:return u=h.sent(),[4,this.deleteOldSessionEventTypes({currentSessionId:n,tx:f,loggerProvider:t})];case 3:return h.sent(),[4,f.done];case 4:return h.sent(),[2,u];case 5:return S=h.sent(),t.warn("Failed to store events for targeting ".concat(n,": ").concat(S)),[3,6];case 6:return[2,void 0]}})})}}return a})(),ae=new ne,oe=(function(){function a(){var e=this;this.evaluateTargeting=function(r){var t=r.apiKey,n=r.loggerProvider,o=r.event,i=r.sessionId,c=r.userProperties,v=r.deviceId,f=r.flag;return N(e,void 0,void 0,function(){var u,S,h,E,T;return A(this,function(l){switch(l.label){case 0:return o&&o.time?[4,ae.storeEventTypeForSession({loggerProvider:n,apiKey:t,sessionId:i,eventType:o.event_type,eventTime:o.time})]:[3,2];case 1:return S=l.sent(),[3,3];case 2:S=void 0,l.label=3;case 3:return u=S,h=u&&new Set(Object.keys(u)),E={session_id:i,event:o,event_types:h&&Array.from(h),user:{device_id:v,user_properties:c}},T=this.evaluationEngine.evaluate(E,[f]),[2,T]}})})},this.evaluationEngine=new V}return a})(),ie=function(){var a=new oe;return{evaluateTargeting:a.evaluateTargeting.bind(a)}};const se=ie();var ce=se.evaluateTargeting;export{ce as evaluateTargeting};

```

---

## .output/public/_nuxt/sPdhR0i8.js

```js
var me={},ki=Object.defineProperty,qi=(e,o,p)=>o in e?ki(e,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[o]=p,le=(e,o,p)=>qi(e,typeof o!="symbol"?o+"":o,p),Fi=Object.defineProperty,Bi=(e,o,p)=>o in e?Fi(e,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[o]=p,_e=(e,o,p)=>Bi(e,typeof o!="symbol"?o+"":o,p),tr,zi=Object.defineProperty,ji=(e,o,p)=>o in e?zi(e,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[o]=p,rr=(e,o,p)=>ji(e,typeof o!="symbol"?o+"":o,p);const ir={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},sr={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ae={};function Wi(e){var o,p;const d=(p=(o=globalThis?.Zone)==null?void 0:o.__symbol__)==null?void 0:p.call(o,e);if(d&&globalThis[d])return globalThis[d]}function kt(e){if(ae[e])return ae[e];const o=Wi(e)||globalThis[e],p=o.prototype,d=e in ir?ir[e]:void 0,s=!!(d&&d.every(m=>{var n,h;return!!((h=(n=Object.getOwnPropertyDescriptor(p,m))==null?void 0:n.get)!=null&&h.toString().includes("[native code]"))})),f=e in sr?sr[e]:void 0,a=!!(f&&f.every(m=>{var n;return typeof p[m]=="function"&&((n=p[m])==null?void 0:n.toString().includes("[native code]"))}));if(s&&a)return ae[e]=o.prototype,o.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const n=m.contentWindow;if(!n)return o.prototype;const h=n[e].prototype;return document.body.removeChild(m),h?ae[e]=h:p}catch{return p}}const Ie={};function W(e,o,p){var d;const s=`${e}.${String(p)}`;if(Ie[s])return Ie[s].call(o);const f=kt(e),a=(d=Object.getOwnPropertyDescriptor(f,p))==null?void 0:d.get;return a?(Ie[s]=a,a.call(o)):o[p]}const Le={};function pi(e,o,p){const d=`${e}.${String(p)}`;if(Le[d])return Le[d].bind(o);const f=kt(e)[p];return typeof f!="function"?o[p]:(Le[d]=f,f.bind(o))}function Hi(e){return W("Node",e,"childNodes")}function Gi(e){return W("Node",e,"parentNode")}function Ji(e){return W("Node",e,"parentElement")}function Vi(e){return W("Node",e,"textContent")}function Ki(e,o){return pi("Node",e,"contains")(o)}function Qi(e){return pi("Node",e,"getRootNode")()}function Yi(e){return!e||!("host"in e)?null:W("ShadowRoot",e,"host")}function Xi(e){return e.styleSheets}function Zi(e){return!e||!("shadowRoot"in e)?null:W("Element",e,"shadowRoot")}function es(e,o){return W("Element",e,"querySelector")(o)}function ts(e,o){return W("Element",e,"querySelectorAll")(o)}function rs(){return kt("MutationObserver").constructor}const ge={childNodes:Hi,parentNode:Gi,parentElement:Ji,textContent:Vi,contains:Ki,getRootNode:Qi,host:Yi,styleSheets:Xi,shadowRoot:Zi,querySelector:es,querySelectorAll:ts,mutationObserver:rs};function is(e){const o=e&&"host"in e&&"mode"in e&&ge.host(e)||null;return!!(o&&"shadowRoot"in o&&ge.shadowRoot(o)===e)}class ss{constructor(){rr(this,"idNodeMap",new Map),rr(this,"nodeMetaMap",new WeakMap)}getId(o){var p;return o?((p=this.getMeta(o))==null?void 0:p.id)??-1:-1}getNode(o){return this.idNodeMap.get(o)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(o){return this.nodeMetaMap.get(o)||null}removeNodeFromMap(o){const p=this.getId(o);this.idNodeMap.delete(p),o.childNodes&&o.childNodes.forEach(d=>this.removeNodeFromMap(d))}has(o){return this.idNodeMap.has(o)}hasNode(o){return this.nodeMetaMap.has(o)}add(o,p){const d=p.id;this.idNodeMap.set(d,o),this.nodeMetaMap.set(o,p)}replace(o,p){const d=this.getNode(o);if(d){const s=this.nodeMetaMap.get(d);s&&this.nodeMetaMap.set(p,s)}this.idNodeMap.set(o,p)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function ns(){return new ss}const os=-2;function Tt(e,o,p){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return p?Tt(ge.parentNode(e),o,p):!1;for(let d=e.classList.length;d--;){const s=e.classList[d];if(o.test(s))return!0}return p?Tt(ge.parentNode(e),o,p):!1}function ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function as(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var o=e.default;if(typeof o=="function"){var p=function d(){return this instanceof d?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};p.prototype=o.prototype}else p={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(p,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),p}var ue={exports:{}},nr;function us(){if(nr)return ue.exports;nr=1;var e=String,o=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ue.exports=o(),ue.exports.createColors=o,ue.exports}const fs={},hs=Object.freeze(Object.defineProperty({__proto__:null,default:fs},Symbol.toStringTag,{value:"Module"})),F=as(hs);var $e,or;function qt(){if(or)return $e;or=1;let e=us(),o=F;class p extends Error{constructor(s,f,a,m,n,h){super(s),this.name="CssSyntaxError",this.reason=s,n&&(this.file=n),m&&(this.source=m),h&&(this.plugin=h),typeof f<"u"&&typeof a<"u"&&(typeof f=="number"?(this.line=f,this.column=a):(this.line=f.line,this.column=f.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,p)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),o&&s&&(f=o(f));let a=f.split(/\r?\n/),m=Math.max(this.line-3,0),n=Math.min(this.line+2,a.length),h=String(n).length,t,l;if(s){let{bold:i,gray:r,red:c}=e.createColors(!0);t=u=>i(c(u)),l=u=>r(u)}else t=l=i=>i;return a.slice(m,n).map((i,r)=>{let c=m+1+r,u=" "+(" "+c).slice(-h)+" | ";if(c===this.line){let g=l(u.replace(/\d/g," "))+i.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+l(u)+i+`
 `+g+t("^")}return" "+l(u)+i}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`

`+s+`
`),this.name+": "+this.message+s}}return $e=p,p.default=p,$e}var fe={},lr;function Ft(){return lr||(lr=1,fe.isClean=Symbol("isClean"),fe.my=Symbol("my")),fe}var Te,ar;function di(){if(ar)return Te;ar=1;const e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function o(d){return d[0].toUpperCase()+d.slice(1)}class p{constructor(s){this.builder=s}atrule(s,f){let a="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?a+=s.raws.afterName:m&&(a+=" "),s.nodes)this.block(s,a+m);else{let n=(s.raws.between||"")+(f?";":"");this.builder(a+m+n,s)}}beforeAfter(s,f){let a;s.type==="decl"?a=this.raw(s,null,"beforeDecl"):s.type==="comment"?a=this.raw(s,null,"beforeComment"):f==="before"?a=this.raw(s,null,"beforeRule"):a=this.raw(s,null,"beforeClose");let m=s.parent,n=0;for(;m&&m.type!=="root";)n+=1,m=m.parent;if(a.includes(`
`)){let h=this.raw(s,null,"indent");if(h.length)for(let t=0;t<n;t++)a+=h}return a}block(s,f){let a=this.raw(s,"between","beforeOpen");this.builder(f+a+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let a=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let n=s.nodes[m],h=this.raw(n,"before");h&&this.builder(h),this.stringify(n,f!==m||a)}}comment(s){let f=this.raw(s,"left","commentLeft"),a=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+a+"*/",s)}decl(s,f){let a=this.raw(s,"between","colon"),m=s.prop+a+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,a){let m;if(a||(a=f),f&&(m=s.raws[f],typeof m<"u"))return m;let n=s.parent;if(a==="before"&&(!n||n.type==="root"&&n.first===s||n&&n.type==="document"))return"";if(!n)return e[a];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[a]<"u")return h.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(s,a);{let t="raw"+o(a);this[t]?m=this[t](h,s):h.walk(l=>{if(m=l.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[a]),h.rawCache[a]=m,m}rawBeforeClose(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return f=a.raws.after,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let a;return s.walkComments(m=>{if(typeof m.raws.before<"u")return a=m.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(f,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(s,f){let a;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return a=m.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(f,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(s){let f;return s.walk(a=>{if(a.type!=="decl"&&(f=a.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(a=>{if(a.nodes&&(a.parent!==s||s.first!==a)&&typeof a.raws.before<"u")return f=a.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(a=>{if(typeof a.raws.between<"u")return f=a.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length===0&&(f=a.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(a=>{let m=a.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof a.raws.before<"u"){let n=a.raws.before.split(`
`);return f=n[n.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(f=a.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let a=s[f],m=s.raws[f];return m&&m.value===a?m.raw:a}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return Te=p,p.default=p,Te}var Ue,ur;function ye(){if(ur)return Ue;ur=1;let e=di();function o(p,d){new e(d).stringify(p)}return Ue=o,o.default=o,Ue}var De,fr;function we(){if(fr)return De;fr=1;let{isClean:e,my:o}=Ft(),p=qt(),d=di(),s=ye();function f(m,n){let h=new m.constructor;for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t)||t==="proxyCache")continue;let l=m[t],i=typeof l;t==="parent"&&i==="object"?n&&(h[t]=n):t==="source"?h[t]=l:Array.isArray(l)?h[t]=l.map(r=>f(r,h)):(i==="object"&&l!==null&&(l=f(l)),h[t]=l)}return h}class a{constructor(n={}){this.raws={},this[e]=!1,this[o]=!0;for(let h in n)if(h==="nodes"){this.nodes=[];for(let t of n[h])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[h]=n[h]}addToError(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){let h=this.source;n.stack=n.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return n}after(n){return this.parent.insertAfter(this,n),this}assign(n={}){for(let h in n)this[h]=n[h];return this}before(n){return this.parent.insertBefore(this,n),this}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}clone(n={}){let h=f(this);for(let t in n)h[t]=n[t];return h}cloneAfter(n={}){let h=this.clone(n);return this.parent.insertAfter(this,h),h}cloneBefore(n={}){let h=this.clone(n);return this.parent.insertBefore(this,h),h}error(n,h={}){if(this.source){let{end:t,start:l}=this.rangeBy(h);return this.source.input.error(n,{column:l.column,line:l.line},{column:t.column,line:t.line},h)}return new p(n)}getProxyProcessor(){return{get(n,h){return h==="proxyOf"?n:h==="root"?()=>n.root().toProxy():n[h]},set(n,h,t){return n[h]===t||(n[h]=t,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&n.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let n=this;for(;n=n.parent;)n[e]=!1}}next(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n+1]}positionBy(n,h){let t=this.source.start;if(n.index)t=this.positionInside(n.index,h);else if(n.word){h=this.toString();let l=h.indexOf(n.word);l!==-1&&(t=this.positionInside(l,h))}return t}positionInside(n,h){let t=h||this.toString(),l=this.source.start.column,i=this.source.start.line;for(let r=0;r<n;r++)t[r]===`
`?(l=1,i+=1):l+=1;return{column:l,line:i}}prev(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n-1]}rangeBy(n){let h={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(n.word){let l=this.toString(),i=l.indexOf(n.word);i!==-1&&(h=this.positionInside(i,l),t=this.positionInside(i+n.word.length,l))}else n.start?h={column:n.start.column,line:n.start.line}:n.index&&(h=this.positionInside(n.index)),n.end?t={column:n.end.column,line:n.end.line}:typeof n.endIndex=="number"?t=this.positionInside(n.endIndex):n.index&&(t=this.positionInside(n.index+1));return(t.line<h.line||t.line===h.line&&t.column<=h.column)&&(t={column:h.column+1,line:h.line}),{end:t,start:h}}raw(n,h){return new d().raw(this,n,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...n){if(this.parent){let h=this,t=!1;for(let l of n)l===this?t=!0:t?(this.parent.insertAfter(h,l),h=l):this.parent.insertBefore(h,l);t||this.remove()}return this}root(){let n=this;for(;n.parent&&n.parent.type!=="document";)n=n.parent;return n}toJSON(n,h){let t={},l=h==null;h=h||new Map;let i=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let c=this[r];if(Array.isArray(c))t[r]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,h):u);else if(typeof c=="object"&&c.toJSON)t[r]=c.toJSON(null,h);else if(r==="source"){let u=h.get(c.input);u==null&&(u=i,h.set(c.input,i),i++),t[r]={end:c.end,inputId:u,start:c.start}}else t[r]=c}return l&&(t.inputs=[...h.keys()].map(r=>r.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(n=s){n.stringify&&(n=n.stringify);let h="";return n(this,t=>{h+=t}),h}warn(n,h,t){let l={node:this};for(let i in t)l[i]=t[i];return n.warn(h,l)}get proxyOf(){return this}}return De=a,a.default=a,De}var ke,hr;function be(){if(hr)return ke;hr=1;let e=we();class o extends e{constructor(d){d&&typeof d.value<"u"&&typeof d.value!="string"&&(d={...d,value:String(d.value)}),super(d),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return ke=o,o.default=o,ke}var qe,cr;function cs(){if(cr)return qe;cr=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return qe={nanoid:(d=21)=>{let s="",f=d;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(d,s=21)=>(f=s)=>{let a="",m=f;for(;m--;)a+=d[Math.random()*d.length|0];return a}},qe}var Fe,pr;function mi(){if(pr)return Fe;pr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=F,{existsSync:p,readFileSync:d}=F,{dirname:s,join:f}=F;function a(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}class m{constructor(h,t){if(t.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let l=t.map?t.map.prev:void 0,i=this.loadMap(t.from,l);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let t=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(i.test(h)||r.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(t.test(h)||l.test(h))return a(h.substr(RegExp.lastMatch.length));let c=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let t=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let l=h.lastIndexOf(t.pop()),i=h.indexOf("*/",l);l>-1&&i>-1&&(this.annotation=this.getAnnotationURL(h.substring(l,i)))}loadFile(h){if(this.root=s(h),p(h))return this.mapFile=h,d(h,"utf-8").toString().trim()}loadMap(h,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let l=t(h);if(l){let i=this.loadFile(l);if(!i)throw new Error("Unable to load previous source map: "+l.toString());return i}}else{if(t instanceof e)return o.fromSourceMap(t).toString();if(t instanceof o)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return h&&(l=f(s(h),l)),this.loadFile(l)}}}startWith(h,t){return h?h.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Fe=m,m.default=m,Fe}var Be,dr;function ve(){if(dr)return Be;dr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=F,{fileURLToPath:p,pathToFileURL:d}=F,{isAbsolute:s,resolve:f}=F,{nanoid:a}=cs(),m=F,n=qt(),h=mi(),t=Symbol("fromOffsetCache"),l=!!(e&&o),i=!!(f&&s);class r{constructor(u,g={}){if(u===null||typeof u>"u"||typeof u=="object"&&!u.toString)throw new Error(`PostCSS received ${u} instead of CSS string`);if(this.css=u.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!i||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=f(g.from)),i&&l){let S=new h(this.css,g);if(S.text){this.map=S;let b=S.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(u,g,S,b={}){let v,w,y;if(g&&typeof g=="object"){let R=g,P=S;if(typeof R.offset=="number"){let A=this.fromOffset(R.offset);g=A.line,S=A.col}else g=R.line,S=R.column;if(typeof P.offset=="number"){let A=this.fromOffset(P.offset);w=A.line,y=A.col}else w=P.line,y=P.column}else if(!S){let R=this.fromOffset(g);g=R.line,S=R.col}let x=this.origin(g,S,w,y);return x?v=new n(u,x.endLine===void 0?x.line:{column:x.column,line:x.line},x.endLine===void 0?x.column:{column:x.endColumn,line:x.endLine},x.source,x.file,b.plugin):v=new n(u,w===void 0?g:{column:S,line:g},w===void 0?S:{column:y,line:w},this.css,this.file,b.plugin),v.input={column:S,endColumn:y,endLine:w,line:g,source:this.css},this.file&&(d&&(v.input.url=d(this.file).toString()),v.input.file=this.file),v}fromOffset(u){let g,S;if(this[t])S=this[t];else{let v=this.css.split(`
`);S=new Array(v.length);let w=0;for(let y=0,x=v.length;y<x;y++)S[y]=w,w+=v[y].length+1;this[t]=S}g=S[S.length-1];let b=0;if(u>=g)b=S.length-1;else{let v=S.length-2,w;for(;b<v;)if(w=b+(v-b>>1),u<S[w])v=w-1;else if(u>=S[w+1])b=w+1;else{b=w;break}}return{col:u-S[b]+1,line:b+1}}mapResolve(u){return/^\w+:\/\//.test(u)?u:f(this.map.consumer().sourceRoot||this.map.root||".",u)}origin(u,g,S,b){if(!this.map)return!1;let v=this.map.consumer(),w=v.originalPositionFor({column:g,line:u});if(!w.source)return!1;let y;typeof S=="number"&&(y=v.originalPositionFor({column:b,line:S}));let x;s(w.source)?x=d(w.source):x=new URL(w.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let R={column:w.column,endColumn:y&&y.column,endLine:y&&y.line,line:w.line,url:x.toString()};if(x.protocol==="file:")if(p)R.file=p(x);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(w.source);return P&&(R.source=P),R}toJSON(){let u={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(u[g]=this[g]);return this.map&&(u.map={...this.map},u.map.consumerCache&&(u.map.consumerCache=void 0)),u}get from(){return this.file||this.id}}return Be=r,r.default=r,m&&m.registerInput&&m.registerInput(r),Be}var ze,mr;function gi(){if(mr)return ze;mr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=F,{dirname:p,relative:d,resolve:s,sep:f}=F,{pathToFileURL:a}=F,m=ve(),n=!!(e&&o),h=!!(p&&s&&d&&f);class t{constructor(i,r,c,u){this.stringify=i,this.mapOpts=c.map||{},this.root=r,this.opts=c,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let i;this.isInline()?i="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?i=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?i=this.mapOpts.annotation(this.opts.to,this.root):i=this.outputFile()+".map";let r=`
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# sourceMappingURL="+i+" */"}applyPrevMaps(){for(let i of this.previous()){let r=this.toUrl(this.path(i.file)),c=i.root||p(i.file),u;this.mapOpts.sourcesContent===!1?(u=new e(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,r,this.toUrl(this.path(c)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let i;for(let r=this.root.nodes.length-1;r>=0;r--)i=this.root.nodes[r],i.type==="comment"&&i.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&n&&this.isMap())return this.generateMap();{let i="";return this.stringify(this.root,r=>{i+=r}),[i]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let i=this.previous()[0].consumer();i.file=this.outputFile(),this.map=o.fromSourceMap(i,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let i=1,r=1,c="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(b,v,w)=>{if(this.css+=b,v&&w!=="end"&&(u.generated.line=i,u.generated.column=r-1,v.source&&v.source.start?(u.source=this.sourcePath(v),u.original.line=v.source.start.line,u.original.column=v.source.start.column-1,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,this.map.addMapping(u))),g=b.match(/\n/g),g?(i+=g.length,S=b.lastIndexOf(`
`),r=b.length-S):r+=b.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(u.source=this.sourcePath(v),u.original.line=v.source.end.line,u.original.column=v.source.end.column-1,u.generated.line=i,u.generated.column=r-2,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,u.generated.line=i,u.generated.column=r-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(i=>i.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let i=this.mapOpts.annotation;return typeof i<"u"&&i!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(i=>i.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(i){if(this.mapOpts.absolute||i.charCodeAt(0)===60||/^\w+:\/\//.test(i))return i;let r=this.memoizedPaths.get(i);if(r)return r;let c=this.opts.to?p(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(c=p(s(c,this.mapOpts.annotation)));let u=d(c,i);return this.memoizedPaths.set(i,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(i=>{if(i.source&&i.source.input.map){let r=i.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let i=new m(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps}setSourcesContent(){let i={};if(this.root)this.root.walk(r=>{if(r.source){let c=r.source.input.from;if(c&&!i[c]){i[c]=!0;let u=this.usesFileUrls?this.toFileUrl(c):this.toUrl(this.path(c));this.map.setSourceContent(u,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(i){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(i.source.input.from):this.toUrl(this.path(i.source.input.from))}toBase64(i){return Buffer?Buffer.from(i).toString("base64"):window.btoa(unescape(encodeURIComponent(i)))}toFileUrl(i){let r=this.memoizedFileURLs.get(i);if(r)return r;if(a){let c=a(i).toString();return this.memoizedFileURLs.set(i,c),c}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(i){let r=this.memoizedURLs.get(i);if(r)return r;f==="\\"&&(i=i.replace(/\\/g,"/"));let c=encodeURI(i).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(i,c),c}}return ze=t,ze}var je,gr;function xe(){if(gr)return je;gr=1;let e=we();class o extends e{constructor(d){super(d),this.type="comment"}}return je=o,o.default=o,je}var We,yr;function Q(){if(yr)return We;yr=1;let{isClean:e,my:o}=Ft(),p=be(),d=xe(),s=we(),f,a,m,n;function h(i){return i.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(i){if(i[e]=!1,i.proxyOf.nodes)for(let r of i.proxyOf.nodes)t(r)}class l extends s{append(...r){for(let c of r){let u=this.normalize(c,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let c of this.nodes)c.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let c=this.getIterator(),u,g;for(;this.indexes[c]<this.proxyOf.nodes.length&&(u=this.indexes[c],g=r(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[c]+=1;return delete this.indexes[c],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,c){return c==="proxyOf"?r:r[c]?c==="each"||typeof c=="string"&&c.startsWith("walk")?(...u)=>r[c](...u.map(g=>typeof g=="function"?(S,b)=>g(S.toProxy(),b):g)):c==="every"||c==="some"?u=>r[c]((g,...S)=>u(g.toProxy(),...S)):c==="root"?()=>r.root().toProxy():c==="nodes"?r.nodes.map(u=>u.toProxy()):c==="first"||c==="last"?r[c].toProxy():r[c]:r[c]},set(r,c,u){return r[c]===u||(r[c]=u,(c==="name"||c==="params"||c==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,c){let u=this.index(r),g=this.normalize(c,this.proxyOf.nodes[u]).reverse();u=this.index(r);for(let b of g)this.proxyOf.nodes.splice(u+1,0,b);let S;for(let b in this.indexes)S=this.indexes[b],u<S&&(this.indexes[b]=S+g.length);return this.markDirty(),this}insertBefore(r,c){let u=this.index(r),g=u===0?"prepend":!1,S=this.normalize(c,this.proxyOf.nodes[u],g).reverse();u=this.index(r);for(let v of S)this.proxyOf.nodes.splice(u,0,v);let b;for(let v in this.indexes)b=this.indexes[v],u<=b&&(this.indexes[v]=b+S.length);return this.markDirty(),this}normalize(r,c){if(typeof r=="string")r=h(f(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new p(r)]}else if(r.selector)r=[new a(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[o]||l.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before>"u"&&c&&typeof c.raws.before<"u"&&(g.raws.before=c.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let c of r){let u=this.normalize(c,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let c;for(let u in this.indexes)c=this.indexes[u],c>=r&&(this.indexes[u]=c-1);return this.markDirty(),this}replaceValues(r,c,u){return u||(u=c,c={}),this.walkDecls(g=>{c.props&&!c.props.includes(g.prop)||c.fast&&!g.value.includes(c.fast)||(g.value=g.value.replace(r,u))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((c,u)=>{let g;try{g=r(c,u)}catch(S){throw c.addToError(S)}return g!==!1&&c.walk&&(g=c.walk(r)),g})}walkAtRules(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&r.test(u.name))return c(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="atrule")return c(u,g)}))}walkComments(r){return this.walk((c,u)=>{if(c.type==="comment")return r(c,u)})}walkDecls(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&r.test(u.prop))return c(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="decl")return c(u,g)}))}walkRules(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&r.test(u.selector))return c(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="rule")return c(u,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return l.registerParse=i=>{f=i},l.registerRule=i=>{a=i},l.registerAtRule=i=>{m=i},l.registerRoot=i=>{n=i},We=l,l.default=l,l.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,m.prototype):i.type==="rule"?Object.setPrototypeOf(i,a.prototype):i.type==="decl"?Object.setPrototypeOf(i,p.prototype):i.type==="comment"?Object.setPrototypeOf(i,d.prototype):i.type==="root"&&Object.setPrototypeOf(i,n.prototype),i[o]=!0,i.nodes&&i.nodes.forEach(r=>{l.rebuild(r)})},We}var He,wr;function Bt(){if(wr)return He;wr=1;let e=Q(),o,p;class d extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new o(new p,this,f).stringify()}}return d.registerLazyResult=s=>{o=s},d.registerProcessor=s=>{p=s},He=d,d.default=d,He}var Ge,br;function yi(){if(br)return Ge;br=1;class e{constructor(p,d={}){if(this.type="warning",this.text=p,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ge=e,e.default=e,Ge}var Je,vr;function zt(){if(vr)return Je;vr=1;let e=yi();class o{constructor(d,s,f){this.processor=d,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(d,s);return this.messages.push(f),f}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return Je=o,o.default=o,Je}var Ve,xr;function ps(){if(xr)return Ve;xr=1;const e=39,o=34,p=92,d=47,s=10,f=32,a=12,m=9,n=13,h=91,t=93,l=40,i=41,r=123,c=125,u=59,g=42,S=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,x=/[\da-f]/i;return Ve=function(P,A={}){let E=P.css.valueOf(),T=A.ignoreErrors,N,O,te,G,z,L,U,re,$,M,ie=E.length,C=0,J=[],j=[];function Pe(){return C}function V(D){throw P.error("Unclosed "+D,C)}function Ae(){return j.length===0&&C>=ie}function Ne(D){if(j.length)return j.pop();if(C>=ie)return;let K=D?D.ignoreUnclosed:!1;switch(N=E.charCodeAt(C),N){case s:case f:case m:case n:case a:{O=C;do O+=1,N=E.charCodeAt(O);while(N===f||N===s||N===m||N===n||N===a);M=["space",E.slice(C,O)],C=O-1;break}case h:case t:case r:case c:case S:case u:case i:{let se=String.fromCharCode(N);M=[se,se,C];break}case l:{if(re=J.length?J.pop()[1]:"",$=E.charCodeAt(C+1),re==="url"&&$!==e&&$!==o&&$!==f&&$!==s&&$!==m&&$!==a&&$!==n){O=C;do{if(L=!1,O=E.indexOf(")",O+1),O===-1)if(T||K){O=C;break}else V("bracket");for(U=O;E.charCodeAt(U-1)===p;)U-=1,L=!L}while(L);M=["brackets",E.slice(C,O+1),C,O],C=O}else O=E.indexOf(")",C+1),G=E.slice(C,O+1),O===-1||y.test(G)?M=["(","(",C]:(M=["brackets",G,C,O],C=O);break}case e:case o:{te=N===e?"'":'"',O=C;do{if(L=!1,O=E.indexOf(te,O+1),O===-1)if(T||K){O=C+1;break}else V("string");for(U=O;E.charCodeAt(U-1)===p;)U-=1,L=!L}while(L);M=["string",E.slice(C,O+1),C,O],C=O;break}case b:{v.lastIndex=C+1,v.test(E),v.lastIndex===0?O=E.length-1:O=v.lastIndex-2,M=["at-word",E.slice(C,O+1),C,O],C=O;break}case p:{for(O=C,z=!0;E.charCodeAt(O+1)===p;)O+=1,z=!z;if(N=E.charCodeAt(O+1),z&&N!==d&&N!==f&&N!==s&&N!==m&&N!==n&&N!==a&&(O+=1,x.test(E.charAt(O)))){for(;x.test(E.charAt(O+1));)O+=1;E.charCodeAt(O+1)===f&&(O+=1)}M=["word",E.slice(C,O+1),C,O],C=O;break}default:{N===d&&E.charCodeAt(C+1)===g?(O=E.indexOf("*/",C+2)+1,O===0&&(T||K?O=E.length:V("comment")),M=["comment",E.slice(C,O+1),C,O],C=O):(w.lastIndex=C+1,w.test(E),w.lastIndex===0?O=E.length-1:O=w.lastIndex-2,M=["word",E.slice(C,O+1),C,O],J.push(M),C=O);break}}return C++,M}function Me(D){j.push(D)}return{back:Me,endOfFile:Ae,nextToken:Ne,position:Pe}},Ve}var Ke,Sr;function jt(){if(Sr)return Ke;Sr=1;let e=Q();class o extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return Ke=o,o.default=o,e.registerAtRule(o),Ke}var Qe,Rr;function ne(){if(Rr)return Qe;Rr=1;let e=Q(),o,p;class d extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,a,m){let n=super.normalize(f);if(a){if(m==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of n)h.raws.before=a.raws.before}return n}removeChild(f,a){let m=this.index(f);return!a&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new o(new p,this,f).stringify()}}return d.registerLazyResult=s=>{o=s},d.registerProcessor=s=>{p=s},Qe=d,d.default=d,e.registerRoot(d),Qe}var Ye,Or;function wi(){if(Or)return Ye;Or=1;let e={comma(o){return e.split(o,[","],!0)},space(o){let p=[" ",`
`,"	"];return e.split(o,p)},split(o,p,d){let s=[],f="",a=!1,m=0,n=!1,h="",t=!1;for(let l of o)t?t=!1:l==="\\"?t=!0:n?l===h&&(n=!1):l==='"'||l==="'"?(n=!0,h=l):l==="("?m+=1:l===")"?m>0&&(m-=1):m===0&&p.includes(l)&&(a=!0),a?(f!==""&&s.push(f.trim()),f="",a=!1):f+=l;return(d||f!=="")&&s.push(f.trim()),s}};return Ye=e,e.default=e,Ye}var Xe,Cr;function Wt(){if(Cr)return Xe;Cr=1;let e=Q(),o=wi();class p extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return o.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,a=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(a)}}return Xe=p,p.default=p,e.registerRule(p),Xe}var Ze,Er;function ds(){if(Er)return Ze;Er=1;let e=be(),o=ps(),p=xe(),d=jt(),s=ne(),f=Wt();const a={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let l=h[t],i=l[3]||l[2];if(i)return i}}class n{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let l=new d;l.name=t[1].slice(1),l.name===""&&this.unnamedAtrule(l,t),this.init(l,t[2]);let i,r,c,u=!1,g=!1,S=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),i=t[0],i==="("||i==="["?b.push(i==="("?")":"]"):i==="{"&&b.length>0?b.push("}"):i===b[b.length-1]&&b.pop(),b.length===0)if(i===";"){l.source.end=this.getPosition(t[2]),l.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){g=!0;break}else if(i==="}"){if(S.length>0){for(c=S.length-1,r=S[c];r&&r[0]==="space";)r=S[--c];r&&(l.source.end=this.getPosition(r[3]||r[2]),l.source.end.offset++)}this.end(t);break}else S.push(t);else S.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(l.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(l,"params",S),u&&(t=S[S.length-1],l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),g&&(l.nodes=[],this.current=l)}checkMissedSemicolon(t){let l=this.colon(t);if(l===!1)return;let i=0,r;for(let c=l-1;c>=0&&(r=t[c],!(r[0]!=="space"&&(i+=1,i===2)));c--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let l=0,i,r,c;for(let[u,g]of t.entries()){if(i=g,r=i[0],r==="("&&(l+=1),r===")"&&(l-=1),l===0&&r===":")if(!c)this.doubleColon(i);else{if(c[0]==="word"&&c[1]==="progid")continue;return u}c=i}return!1}comment(t){let l=new p;this.init(l,t[2]),l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))l.text="",l.raws.left=i,l.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);l.text=r[2],l.raws.left=r[1],l.raws.right=r[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(t,l){let i=new e;this.init(i,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(r[3]||r[2]||m(t)),i.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;i.prop+=t.shift()[1]}i.raws.between="";let c;for(;t.length;)if(c=t.shift(),c[0]===":"){i.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),i.raws.between+=c[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let u=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)u.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(c=t[b],c[1].toLowerCase()==="!important"){i.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(i.raws.important=v);break}else if(c[1].toLowerCase()==="important"){let v=t.slice(0),w="";for(let y=b;y>0;y--){let x=v[y][0];if(w.trim().indexOf("!")===0&&x!=="space")break;w=v.pop()[1]+w}w.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=w,t=v)}if(c[0]!=="space"&&c[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(i.raws.between+=u.map(b=>b[1]).join(""),u=[]),this.raw(i,"value",u.concat(t),l),i.value.includes(":")&&!l&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let l=new f;this.init(l,t[2]),l.selector="",l.raws.between="",this.current=l}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let l=this.input.fromOffset(t);return{column:l.col,line:l.line,offset:t}}init(t,l){this.current.push(t),t.source={input:this.input,start:this.getPosition(l)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let l=!1,i=null,r=!1,c=null,u=[],g=t[1].startsWith("--"),S=[],b=t;for(;b;){if(i=b[0],S.push(b),i==="("||i==="[")c||(c=b),u.push(i==="("?")":"]");else if(g&&r&&i==="{")c||(c=b),u.push("}");else if(u.length===0)if(i===";")if(r){this.decl(S,g);return}else break;else if(i==="{"){this.rule(S);return}else if(i==="}"){this.tokenizer.back(S.pop()),l=!0;break}else i===":"&&(r=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(c=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(l=!0),u.length>0&&this.unclosedBracket(c),l&&r){if(!g)for(;S.length&&(b=S[S.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,l,i,r){let c,u,g=i.length,S="",b=!0,v,w;for(let y=0;y<g;y+=1)c=i[y],u=c[0],u==="space"&&y===g-1&&!r?b=!1:u==="comment"?(w=i[y-1]?i[y-1][0]:"empty",v=i[y+1]?i[y+1][0]:"empty",!a[w]&&!a[v]?S.slice(-1)===","?b=!1:S+=c[1]:b=!1):S+=c[1];if(!b){let y=i.reduce((x,R)=>x+R[1],"");t.raws[l]={raw:y,value:S}}t[l]=S}rule(t){t.pop();let l=new f;this.init(l,t[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(l,"selector",t),this.current=l}spacesAndCommentsFromEnd(t){let l,i="";for(;t.length&&(l=t[t.length-1][0],!(l!=="space"&&l!=="comment"));)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let l,i="";for(;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)i+=t.shift()[1];return i}spacesFromEnd(t){let l,i="";for(;t.length&&(l=t[t.length-1][0],l==="space");)i=t.pop()[1]+i;return i}stringFrom(t,l){let i="";for(let r=l;r<t.length;r++)i+=t[r][1];return t.splice(l,t.length-l),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,l){throw this.input.error("At-rule without name",{offset:l[2]},{offset:l[2]+l[1].length})}}return Ze=n,Ze}var et,Pr;function Ht(){if(Pr)return et;Pr=1;let e=Q(),o=ds(),p=ve();function d(s,f){let a=new p(s,f),m=new o(a);try{m.parse()}catch(n){throw n}return m.root}return et=d,d.default=d,e.registerParse(d),et}var tt,Ar;function bi(){if(Ar)return tt;Ar=1;let{isClean:e,my:o}=Ft(),p=gi(),d=ye(),s=Q(),f=Bt(),a=zt(),m=Ht(),n=ne();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},t={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},l={Once:!0,postcssPlugin:!0,prepare:!0},i=0;function r(v){return typeof v=="object"&&typeof v.then=="function"}function c(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,i,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,i,y+"Exit"]:[y,y+"Exit"]}function u(v){let w;return v.type==="document"?w=["Document",i,"DocumentExit"]:v.type==="root"?w=["Root",i,"RootExit"]:w=c(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[e]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let S={};class b{constructor(w,y,x){this.stringified=!1,this.processed=!1;let R;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))R=g(y);else if(y instanceof b||y instanceof a)R=g(y.root),y.map&&(typeof x.map>"u"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=y.map);else{let P=m;x.syntax&&(P=x.syntax.parse),x.parser&&(P=x.parser),P.parse&&(P=P.parse);try{R=P(y,x)}catch(A){this.processed=!0,this.error=A}R&&!R[o]&&s.rebuild(R)}this.result=new a(w,R,x),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let x=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=x.postcssPlugin,w.setMessage()):x.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(y,x,R)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([y,R])};for(let y of this.plugins)if(typeof y=="object")for(let x in y){if(!t[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[x])if(typeof y[x]=="object")for(let R in y[x])R==="*"?w(y,x,y[x][R]):w(y,x+"-"+R.toLowerCase(),y[x][R]);else typeof y[x]=="function"&&w(y,x,y[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],x=this.runOnRoot(y);if(r(x))try{await x}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[u(w)];for(;y.length>0;){let x=this.visitTick(y);if(r(x))try{await x}catch(R){let P=y[y.length-1].node;throw this.handleError(R,P)}}}if(this.listeners.OnceExit)for(let[y,x]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let R=w.nodes.map(P=>x(P,this.helpers));await Promise.all(R)}else await x(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(x=>w.Once(x,this.helpers));return r(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=d;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let R=new p(y,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(r(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[x,R]of w){this.result.lastPlugin=x;let P;try{P=R(y,this.helpers)}catch(A){throw this.handleError(A,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(r(P))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:x,visitors:R}=y;if(x.type!=="root"&&x.type!=="document"&&!x.parent){w.pop();return}if(R.length>0&&y.visitorIndex<R.length){let[A,E]=R[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===R.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=A;try{return E(x.toProxy(),this.helpers)}catch(T){throw this.handleError(T,x)}}if(y.iterator!==0){let A=y.iterator,E;for(;E=x.nodes[x.indexes[A]];)if(x.indexes[A]+=1,!E[e]){E[e]=!0,w.push(u(E));return}y.iterator=0,delete x.indexes[A]}let P=y.events;for(;y.eventIndex<P.length;){let A=P[y.eventIndex];if(y.eventIndex+=1,A===i){x.nodes&&x.nodes.length&&(x[e]=!0,y.iterator=x.getIterator());return}else if(this.listeners[A]){y.visitors=this.listeners[A];return}}w.pop()}walkSync(w){w[e]=!0;let y=c(w);for(let x of y)if(x===i)w.nodes&&w.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[x];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return b.registerPostcss=v=>{S=v},tt=b,b.default=b,n.registerLazyResult(b),f.registerLazyResult(b),tt}var rt,Nr;function ms(){if(Nr)return rt;Nr=1;let e=gi(),o=ye(),p=Ht();const d=zt();class s{constructor(a,m,n){m=m.toString(),this.stringified=!1,this._processor=a,this._css=m,this._opts=n,this._map=void 0;let h,t=o;this.result=new d(this._processor,h,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let i=new e(t,h,this._opts,m);if(i.isMap()){let[r,c]=i.generate();r&&(this.result.css=r),c&&(this.result.map=c)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,m){return this.async().then(a,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,m=p;try{a=m(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return rt=s,s.default=s,rt}var it,Mr;function gs(){if(Mr)return it;Mr=1;let e=ms(),o=bi(),p=Bt(),d=ne();class s{constructor(a=[]){this.version="8.4.38",this.plugins=this.normalize(a)}normalize(a){let m=[];for(let n of a)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))m=m.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)m.push(n);else if(typeof n=="function")m.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return m}process(a,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,a,m):new o(this,a,m)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return it=s,s.default=s,d.registerProcessor(s),p.registerProcessor(s),it}var st,_r;function ys(){if(_r)return st;_r=1;let e=be(),o=mi(),p=xe(),d=jt(),s=ve(),f=ne(),a=Wt();function m(n,h){if(Array.isArray(n))return n.map(i=>m(i));let{inputs:t,...l}=n;if(t){h=[];for(let i of t){let r={...i,__proto__:s.prototype};r.map&&(r.map={...r.map,__proto__:o.prototype}),h.push(r)}}if(l.nodes&&(l.nodes=n.nodes.map(i=>m(i,h))),l.source){let{inputId:i,...r}=l.source;l.source=r,i!=null&&(l.source.input=h[i])}if(l.type==="root")return new f(l);if(l.type==="decl")return new e(l);if(l.type==="rule")return new a(l);if(l.type==="comment")return new p(l);if(l.type==="atrule")return new d(l);throw new Error("Unknown node type: "+n.type)}return st=m,m.default=m,st}var nt,Ir;function ws(){if(Ir)return nt;Ir=1;let e=qt(),o=be(),p=bi(),d=Q(),s=gs(),f=ye(),a=ys(),m=Bt(),n=yi(),h=xe(),t=jt(),l=zt(),i=ve(),r=Ht(),c=wi(),u=Wt(),g=ne(),S=we();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(w,y){let x=!1;function R(...A){console&&console.warn&&!x&&(x=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),me.LANG&&me.LANG.startsWith("cn")&&console.warn(w+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let E=y(...A);return E.postcssPlugin=w,E.postcssVersion=new s().version,E}let P;return Object.defineProperty(R,"postcss",{get(){return P||(P=R()),P}}),R.process=function(A,E,T){return b([R(T)]).process(A,E)},R},b.stringify=f,b.parse=r,b.fromJSON=a,b.list=c,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new o(v),b.rule=v=>new u(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=o,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=n,b.AtRule=t,b.Result=l,b.Input=i,b.Rule=u,b.Root=g,b.Node=S,p.registerPostcss(b),nt=b,b.default=b,nt}var bs=ws();const _=ls(bs);_.stringify;_.fromJSON;_.plugin;_.parse;_.list;_.document;_.comment;_.atRule;_.rule;_.decl;_.root;_.CssSyntaxError;_.Declaration;_.Container;_.Processor;_.Document;_.Comment;_.Warning;_.AtRule;_.Result;_.Input;_.Rule;_.Root;_.Node;var vs=Object.defineProperty,xs=(e,o,p)=>o in e?vs(e,o,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[o]=p,k=(e,o,p)=>xs(e,typeof o!="symbol"?o+"":o,p);function Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rs(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var o=e.default;if(typeof o=="function"){var p=function d(){return this instanceof d?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};p.prototype=o.prototype}else p={};return Object.defineProperty(p,"__esModule",{value:!0}),Object.keys(e).forEach(function(d){var s=Object.getOwnPropertyDescriptor(e,d);Object.defineProperty(p,d,s.get?s:{enumerable:!0,get:function(){return e[d]}})}),p}var he={exports:{}},Lr;function Os(){if(Lr)return he.exports;Lr=1;var e=String,o=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return he.exports=o(),he.exports.createColors=o,he.exports}const Cs={},Es=Object.freeze(Object.defineProperty({__proto__:null,default:Cs},Symbol.toStringTag,{value:"Module"})),B=Rs(Es);var ot,$r;function Gt(){if($r)return ot;$r=1;let e=Os(),o=B;class p extends Error{constructor(s,f,a,m,n,h){super(s),this.name="CssSyntaxError",this.reason=s,n&&(this.file=n),m&&(this.source=m),h&&(this.plugin=h),typeof f<"u"&&typeof a<"u"&&(typeof f=="number"?(this.line=f,this.column=a):(this.line=f.line,this.column=f.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,p)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let f=this.source;s==null&&(s=e.isColorSupported),o&&s&&(f=o(f));let a=f.split(/\r?\n/),m=Math.max(this.line-3,0),n=Math.min(this.line+2,a.length),h=String(n).length,t,l;if(s){let{bold:i,gray:r,red:c}=e.createColors(!0);t=u=>i(c(u)),l=u=>r(u)}else t=l=i=>i;return a.slice(m,n).map((i,r)=>{let c=m+1+r,u=" "+(" "+c).slice(-h)+" | ";if(c===this.line){let g=l(u.replace(/\d/g," "))+i.slice(0,this.column-1).replace(/[^\t]/g," ");return t(">")+l(u)+i+`
 `+g+t("^")}return" "+l(u)+i}).join(`
`)}toString(){let s=this.showSourceCode();return s&&(s=`

`+s+`
`),this.name+": "+this.message+s}}return ot=p,p.default=p,ot}var ce={},Tr;function Jt(){return Tr||(Tr=1,ce.isClean=Symbol("isClean"),ce.my=Symbol("my")),ce}var lt,Ur;function vi(){if(Ur)return lt;Ur=1;const e={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function o(d){return d[0].toUpperCase()+d.slice(1)}class p{constructor(s){this.builder=s}atrule(s,f){let a="@"+s.name,m=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?a+=s.raws.afterName:m&&(a+=" "),s.nodes)this.block(s,a+m);else{let n=(s.raws.between||"")+(f?";":"");this.builder(a+m+n,s)}}beforeAfter(s,f){let a;s.type==="decl"?a=this.raw(s,null,"beforeDecl"):s.type==="comment"?a=this.raw(s,null,"beforeComment"):f==="before"?a=this.raw(s,null,"beforeRule"):a=this.raw(s,null,"beforeClose");let m=s.parent,n=0;for(;m&&m.type!=="root";)n+=1,m=m.parent;if(a.includes(`
`)){let h=this.raw(s,null,"indent");if(h.length)for(let t=0;t<n;t++)a+=h}return a}block(s,f){let a=this.raw(s,"between","beforeOpen");this.builder(f+a+"{",s,"start");let m;s.nodes&&s.nodes.length?(this.body(s),m=this.raw(s,"after")):m=this.raw(s,"after","emptyBody"),m&&this.builder(m),this.builder("}",s,"end")}body(s){let f=s.nodes.length-1;for(;f>0&&s.nodes[f].type==="comment";)f-=1;let a=this.raw(s,"semicolon");for(let m=0;m<s.nodes.length;m++){let n=s.nodes[m],h=this.raw(n,"before");h&&this.builder(h),this.stringify(n,f!==m||a)}}comment(s){let f=this.raw(s,"left","commentLeft"),a=this.raw(s,"right","commentRight");this.builder("/*"+f+s.text+a+"*/",s)}decl(s,f){let a=this.raw(s,"between","colon"),m=s.prop+a+this.rawValue(s,"value");s.important&&(m+=s.raws.important||" !important"),f&&(m+=";"),this.builder(m,s)}document(s){this.body(s)}raw(s,f,a){let m;if(a||(a=f),f&&(m=s.raws[f],typeof m<"u"))return m;let n=s.parent;if(a==="before"&&(!n||n.type==="root"&&n.first===s||n&&n.type==="document"))return"";if(!n)return e[a];let h=s.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[a]<"u")return h.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(s,a);{let t="raw"+o(a);this[t]?m=this[t](h,s):h.walk(l=>{if(m=l.raws[f],typeof m<"u")return!1})}return typeof m>"u"&&(m=e[a]),h.rawCache[a]=m,m}rawBeforeClose(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return f=a.raws.after,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawBeforeComment(s,f){let a;return s.walkComments(m=>{if(typeof m.raws.before<"u")return a=m.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(f,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(s,f){let a;return s.walkDecls(m=>{if(typeof m.raws.before<"u")return a=m.raws.before,a.includes(`
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(f,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(s){let f;return s.walk(a=>{if(a.type!=="decl"&&(f=a.raws.between,typeof f<"u"))return!1}),f}rawBeforeRule(s){let f;return s.walk(a=>{if(a.nodes&&(a.parent!==s||s.first!==a)&&typeof a.raws.before<"u")return f=a.raws.before,f.includes(`
`)&&(f=f.replace(/[^\n]+$/,"")),!1}),f&&(f=f.replace(/\S/g,"")),f}rawColon(s){let f;return s.walkDecls(a=>{if(typeof a.raws.between<"u")return f=a.raws.between.replace(/[^\s:]/g,""),!1}),f}rawEmptyBody(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length===0&&(f=a.raws.after,typeof f<"u"))return!1}),f}rawIndent(s){if(s.raws.indent)return s.raws.indent;let f;return s.walk(a=>{let m=a.parent;if(m&&m!==s&&m.parent&&m.parent===s&&typeof a.raws.before<"u"){let n=a.raws.before.split(`
`);return f=n[n.length-1],f=f.replace(/\S/g,""),!1}}),f}rawSemicolon(s){let f;return s.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(f=a.raws.semicolon,typeof f<"u"))return!1}),f}rawValue(s,f){let a=s[f],m=s.raws[f];return m&&m.value===a?m.raw:a}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,f){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,f)}}return lt=p,p.default=p,lt}var at,Dr;function Se(){if(Dr)return at;Dr=1;let e=vi();function o(p,d){new e(d).stringify(p)}return at=o,o.default=o,at}var ut,kr;function Re(){if(kr)return ut;kr=1;let{isClean:e,my:o}=Jt(),p=Gt(),d=vi(),s=Se();function f(m,n){let h=new m.constructor;for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t)||t==="proxyCache")continue;let l=m[t],i=typeof l;t==="parent"&&i==="object"?n&&(h[t]=n):t==="source"?h[t]=l:Array.isArray(l)?h[t]=l.map(r=>f(r,h)):(i==="object"&&l!==null&&(l=f(l)),h[t]=l)}return h}class a{constructor(n={}){this.raws={},this[e]=!1,this[o]=!0;for(let h in n)if(h==="nodes"){this.nodes=[];for(let t of n[h])typeof t.clone=="function"?this.append(t.clone()):this.append(t)}else this[h]=n[h]}addToError(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){let h=this.source;n.stack=n.stack.replace(/\n\s{4}at /,`$&${h.input.from}:${h.start.line}:${h.start.column}$&`)}return n}after(n){return this.parent.insertAfter(this,n),this}assign(n={}){for(let h in n)this[h]=n[h];return this}before(n){return this.parent.insertBefore(this,n),this}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}clone(n={}){let h=f(this);for(let t in n)h[t]=n[t];return h}cloneAfter(n={}){let h=this.clone(n);return this.parent.insertAfter(this,h),h}cloneBefore(n={}){let h=this.clone(n);return this.parent.insertBefore(this,h),h}error(n,h={}){if(this.source){let{end:t,start:l}=this.rangeBy(h);return this.source.input.error(n,{column:l.column,line:l.line},{column:t.column,line:t.line},h)}return new p(n)}getProxyProcessor(){return{get(n,h){return h==="proxyOf"?n:h==="root"?()=>n.root().toProxy():n[h]},set(n,h,t){return n[h]===t||(n[h]=t,(h==="prop"||h==="value"||h==="name"||h==="params"||h==="important"||h==="text")&&n.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let n=this;for(;n=n.parent;)n[e]=!1}}next(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n+1]}positionBy(n,h){let t=this.source.start;if(n.index)t=this.positionInside(n.index,h);else if(n.word){h=this.toString();let l=h.indexOf(n.word);l!==-1&&(t=this.positionInside(l,h))}return t}positionInside(n,h){let t=h||this.toString(),l=this.source.start.column,i=this.source.start.line;for(let r=0;r<n;r++)t[r]===`
`?(l=1,i+=1):l+=1;return{column:l,line:i}}prev(){if(!this.parent)return;let n=this.parent.index(this);return this.parent.nodes[n-1]}rangeBy(n){let h={column:this.source.start.column,line:this.source.start.line},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:h.column+1,line:h.line};if(n.word){let l=this.toString(),i=l.indexOf(n.word);i!==-1&&(h=this.positionInside(i,l),t=this.positionInside(i+n.word.length,l))}else n.start?h={column:n.start.column,line:n.start.line}:n.index&&(h=this.positionInside(n.index)),n.end?t={column:n.end.column,line:n.end.line}:typeof n.endIndex=="number"?t=this.positionInside(n.endIndex):n.index&&(t=this.positionInside(n.index+1));return(t.line<h.line||t.line===h.line&&t.column<=h.column)&&(t={column:h.column+1,line:h.line}),{end:t,start:h}}raw(n,h){return new d().raw(this,n,h)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...n){if(this.parent){let h=this,t=!1;for(let l of n)l===this?t=!0:t?(this.parent.insertAfter(h,l),h=l):this.parent.insertBefore(h,l);t||this.remove()}return this}root(){let n=this;for(;n.parent&&n.parent.type!=="document";)n=n.parent;return n}toJSON(n,h){let t={},l=h==null;h=h||new Map;let i=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let c=this[r];if(Array.isArray(c))t[r]=c.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,h):u);else if(typeof c=="object"&&c.toJSON)t[r]=c.toJSON(null,h);else if(r==="source"){let u=h.get(c.input);u==null&&(u=i,h.set(c.input,i),i++),t[r]={end:c.end,inputId:u,start:c.start}}else t[r]=c}return l&&(t.inputs=[...h.keys()].map(r=>r.toJSON())),t}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(n=s){n.stringify&&(n=n.stringify);let h="";return n(this,t=>{h+=t}),h}warn(n,h,t){let l={node:this};for(let i in t)l[i]=t[i];return n.warn(h,l)}get proxyOf(){return this}}return ut=a,a.default=a,ut}var ft,qr;function Oe(){if(qr)return ft;qr=1;let e=Re();class o extends e{constructor(d){d&&typeof d.value<"u"&&typeof d.value!="string"&&(d={...d,value:String(d.value)}),super(d),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return ft=o,o.default=o,ft}var ht,Fr;function Ps(){if(Fr)return ht;Fr=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return ht={nanoid:(d=21)=>{let s="",f=d;for(;f--;)s+=e[Math.random()*64|0];return s},customAlphabet:(d,s=21)=>(f=s)=>{let a="",m=f;for(;m--;)a+=d[Math.random()*d.length|0];return a}},ht}var ct,Br;function xi(){if(Br)return ct;Br=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=B,{existsSync:p,readFileSync:d}=B,{dirname:s,join:f}=B;function a(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}class m{constructor(h,t){if(t.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let l=t.map?t.map.prev:void 0,i=this.loadMap(t.from,l);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=s(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let t=/^data:application\/json;charset=utf-?8;base64,/,l=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(i.test(h)||r.test(h))return decodeURIComponent(h.substr(RegExp.lastMatch.length));if(t.test(h)||l.test(h))return a(h.substr(RegExp.lastMatch.length));let c=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+c)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let t=h.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let l=h.lastIndexOf(t.pop()),i=h.indexOf("*/",l);l>-1&&i>-1&&(this.annotation=this.getAnnotationURL(h.substring(l,i)))}loadFile(h){if(this.root=s(h),p(h))return this.mapFile=h,d(h,"utf-8").toString().trim()}loadMap(h,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let l=t(h);if(l){let i=this.loadFile(l);if(!i)throw new Error("Unable to load previous source map: "+l.toString());return i}}else{if(t instanceof e)return o.fromSourceMap(t).toString();if(t instanceof o)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let l=this.annotation;return h&&(l=f(s(h),l)),this.loadFile(l)}}}startWith(h,t){return h?h.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ct=m,m.default=m,ct}var pt,zr;function Ce(){if(zr)return pt;zr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=B,{fileURLToPath:p,pathToFileURL:d}=B,{isAbsolute:s,resolve:f}=B,{nanoid:a}=Ps(),m=B,n=Gt(),h=xi(),t=Symbol("fromOffsetCache"),l=!!(e&&o),i=!!(f&&s);class r{constructor(u,g={}){if(u===null||typeof u>"u"||typeof u=="object"&&!u.toString)throw new Error(`PostCSS received ${u} instead of CSS string`);if(this.css=u.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,g.from&&(!i||/^\w+:\/\//.test(g.from)||s(g.from)?this.file=g.from:this.file=f(g.from)),i&&l){let S=new h(this.css,g);if(S.text){this.map=S;let b=S.consumer().file;!this.file&&b&&(this.file=this.mapResolve(b))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(u,g,S,b={}){let v,w,y;if(g&&typeof g=="object"){let R=g,P=S;if(typeof R.offset=="number"){let A=this.fromOffset(R.offset);g=A.line,S=A.col}else g=R.line,S=R.column;if(typeof P.offset=="number"){let A=this.fromOffset(P.offset);w=A.line,y=A.col}else w=P.line,y=P.column}else if(!S){let R=this.fromOffset(g);g=R.line,S=R.col}let x=this.origin(g,S,w,y);return x?v=new n(u,x.endLine===void 0?x.line:{column:x.column,line:x.line},x.endLine===void 0?x.column:{column:x.endColumn,line:x.endLine},x.source,x.file,b.plugin):v=new n(u,w===void 0?g:{column:S,line:g},w===void 0?S:{column:y,line:w},this.css,this.file,b.plugin),v.input={column:S,endColumn:y,endLine:w,line:g,source:this.css},this.file&&(d&&(v.input.url=d(this.file).toString()),v.input.file=this.file),v}fromOffset(u){let g,S;if(this[t])S=this[t];else{let v=this.css.split(`
`);S=new Array(v.length);let w=0;for(let y=0,x=v.length;y<x;y++)S[y]=w,w+=v[y].length+1;this[t]=S}g=S[S.length-1];let b=0;if(u>=g)b=S.length-1;else{let v=S.length-2,w;for(;b<v;)if(w=b+(v-b>>1),u<S[w])v=w-1;else if(u>=S[w+1])b=w+1;else{b=w;break}}return{col:u-S[b]+1,line:b+1}}mapResolve(u){return/^\w+:\/\//.test(u)?u:f(this.map.consumer().sourceRoot||this.map.root||".",u)}origin(u,g,S,b){if(!this.map)return!1;let v=this.map.consumer(),w=v.originalPositionFor({column:g,line:u});if(!w.source)return!1;let y;typeof S=="number"&&(y=v.originalPositionFor({column:b,line:S}));let x;s(w.source)?x=d(w.source):x=new URL(w.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let R={column:w.column,endColumn:y&&y.column,endLine:y&&y.line,line:w.line,url:x.toString()};if(x.protocol==="file:")if(p)R.file=p(x);else throw new Error("file: protocol is not available in this PostCSS build");let P=v.sourceContentFor(w.source);return P&&(R.source=P),R}toJSON(){let u={};for(let g of["hasBOM","css","file","id"])this[g]!=null&&(u[g]=this[g]);return this.map&&(u.map={...this.map},u.map.consumerCache&&(u.map.consumerCache=void 0)),u}get from(){return this.file||this.id}}return pt=r,r.default=r,m&&m.registerInput&&m.registerInput(r),pt}var dt,jr;function Si(){if(jr)return dt;jr=1;let{SourceMapConsumer:e,SourceMapGenerator:o}=B,{dirname:p,relative:d,resolve:s,sep:f}=B,{pathToFileURL:a}=B,m=Ce(),n=!!(e&&o),h=!!(p&&s&&d&&f);class t{constructor(i,r,c,u){this.stringify=i,this.mapOpts=c.map||{},this.root=r,this.opts=c,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let i;this.isInline()?i="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?i=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?i=this.mapOpts.annotation(this.opts.to,this.root):i=this.outputFile()+".map";let r=`
`;this.css.includes(`\r
`)&&(r=`\r
`),this.css+=r+"/*# sourceMappingURL="+i+" */"}applyPrevMaps(){for(let i of this.previous()){let r=this.toUrl(this.path(i.file)),c=i.root||p(i.file),u;this.mapOpts.sourcesContent===!1?(u=new e(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,r,this.toUrl(this.path(c)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let i;for(let r=this.root.nodes.length-1;r>=0;r--)i=this.root.nodes[r],i.type==="comment"&&i.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&n&&this.isMap())return this.generateMap();{let i="";return this.stringify(this.root,r=>{i+=r}),[i]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let i=this.previous()[0].consumer();i.file=this.outputFile(),this.map=o.fromSourceMap(i,{ignoreInvalidMapping:!0})}else this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new o({file:this.outputFile(),ignoreInvalidMapping:!0});let i=1,r=1,c="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,S;this.stringify(this.root,(b,v,w)=>{if(this.css+=b,v&&w!=="end"&&(u.generated.line=i,u.generated.column=r-1,v.source&&v.source.start?(u.source=this.sourcePath(v),u.original.line=v.source.start.line,u.original.column=v.source.start.column-1,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,this.map.addMapping(u))),g=b.match(/\n/g),g?(i+=g.length,S=b.lastIndexOf(`
`),r=b.length-S):r+=b.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(u.source=this.sourcePath(v),u.original.line=v.source.end.line,u.original.column=v.source.end.column-1,u.generated.line=i,u.generated.column=r-2,this.map.addMapping(u)):(u.source=c,u.original.line=1,u.original.column=0,u.generated.line=i,u.generated.column=r-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(i=>i.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let i=this.mapOpts.annotation;return typeof i<"u"&&i!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(i=>i.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(i){if(this.mapOpts.absolute||i.charCodeAt(0)===60||/^\w+:\/\//.test(i))return i;let r=this.memoizedPaths.get(i);if(r)return r;let c=this.opts.to?p(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(c=p(s(c,this.mapOpts.annotation)));let u=d(c,i);return this.memoizedPaths.set(i,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(i=>{if(i.source&&i.source.input.map){let r=i.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let i=new m(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps}setSourcesContent(){let i={};if(this.root)this.root.walk(r=>{if(r.source){let c=r.source.input.from;if(c&&!i[c]){i[c]=!0;let u=this.usesFileUrls?this.toFileUrl(c):this.toUrl(this.path(c));this.map.setSourceContent(u,r.source.input.css)}}});else if(this.css){let r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}}sourcePath(i){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(i.source.input.from):this.toUrl(this.path(i.source.input.from))}toBase64(i){return Buffer?Buffer.from(i).toString("base64"):window.btoa(unescape(encodeURIComponent(i)))}toFileUrl(i){let r=this.memoizedFileURLs.get(i);if(r)return r;if(a){let c=a(i).toString();return this.memoizedFileURLs.set(i,c),c}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(i){let r=this.memoizedURLs.get(i);if(r)return r;f==="\\"&&(i=i.replace(/\\/g,"/"));let c=encodeURI(i).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(i,c),c}}return dt=t,dt}var mt,Wr;function Ee(){if(Wr)return mt;Wr=1;let e=Re();class o extends e{constructor(d){super(d),this.type="comment"}}return mt=o,o.default=o,mt}var gt,Hr;function Y(){if(Hr)return gt;Hr=1;let{isClean:e,my:o}=Jt(),p=Oe(),d=Ee(),s=Re(),f,a,m,n;function h(i){return i.map(r=>(r.nodes&&(r.nodes=h(r.nodes)),delete r.source,r))}function t(i){if(i[e]=!1,i.proxyOf.nodes)for(let r of i.proxyOf.nodes)t(r)}class l extends s{append(...r){for(let c of r){let u=this.normalize(c,this.last);for(let g of u)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(r){if(super.cleanRaws(r),this.nodes)for(let c of this.nodes)c.cleanRaws(r)}each(r){if(!this.proxyOf.nodes)return;let c=this.getIterator(),u,g;for(;this.indexes[c]<this.proxyOf.nodes.length&&(u=this.indexes[c],g=r(this.proxyOf.nodes[u],u),g!==!1);)this.indexes[c]+=1;return delete this.indexes[c],g}every(r){return this.nodes.every(r)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let r=this.lastEach;return this.indexes[r]=0,r}getProxyProcessor(){return{get(r,c){return c==="proxyOf"?r:r[c]?c==="each"||typeof c=="string"&&c.startsWith("walk")?(...u)=>r[c](...u.map(g=>typeof g=="function"?(S,b)=>g(S.toProxy(),b):g)):c==="every"||c==="some"?u=>r[c]((g,...S)=>u(g.toProxy(),...S)):c==="root"?()=>r.root().toProxy():c==="nodes"?r.nodes.map(u=>u.toProxy()):c==="first"||c==="last"?r[c].toProxy():r[c]:r[c]},set(r,c,u){return r[c]===u||(r[c]=u,(c==="name"||c==="params"||c==="selector")&&r.markDirty()),!0}}}index(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))}insertAfter(r,c){let u=this.index(r),g=this.normalize(c,this.proxyOf.nodes[u]).reverse();u=this.index(r);for(let b of g)this.proxyOf.nodes.splice(u+1,0,b);let S;for(let b in this.indexes)S=this.indexes[b],u<S&&(this.indexes[b]=S+g.length);return this.markDirty(),this}insertBefore(r,c){let u=this.index(r),g=u===0?"prepend":!1,S=this.normalize(c,this.proxyOf.nodes[u],g).reverse();u=this.index(r);for(let v of S)this.proxyOf.nodes.splice(u,0,v);let b;for(let v in this.indexes)b=this.indexes[v],u<=b&&(this.indexes[v]=b+S.length);return this.markDirty(),this}normalize(r,c){if(typeof r=="string")r=h(f(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(let g of r)g.parent&&g.parent.removeChild(g,"ignore")}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new p(r)]}else if(r.selector)r=[new a(r)];else if(r.name)r=[new m(r)];else if(r.text)r=[new d(r)];else throw new Error("Unknown node type in node creation");return r.map(g=>(g[o]||l.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[e]&&t(g),typeof g.raws.before>"u"&&c&&typeof c.raws.before<"u"&&(g.raws.before=c.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...r){r=r.reverse();for(let c of r){let u=this.normalize(c,this.first,"prepend").reverse();for(let g of u)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+u.length}return this.markDirty(),this}push(r){return r.parent=this,this.proxyOf.nodes.push(r),this}removeAll(){for(let r of this.proxyOf.nodes)r.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);let c;for(let u in this.indexes)c=this.indexes[u],c>=r&&(this.indexes[u]=c-1);return this.markDirty(),this}replaceValues(r,c,u){return u||(u=c,c={}),this.walkDecls(g=>{c.props&&!c.props.includes(g.prop)||c.fast&&!g.value.includes(c.fast)||(g.value=g.value.replace(r,u))}),this.markDirty(),this}some(r){return this.nodes.some(r)}walk(r){return this.each((c,u)=>{let g;try{g=r(c,u)}catch(S){throw c.addToError(S)}return g!==!1&&c.walk&&(g=c.walk(r)),g})}walkAtRules(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="atrule"&&r.test(u.name))return c(u,g)}):this.walk((u,g)=>{if(u.type==="atrule"&&u.name===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="atrule")return c(u,g)}))}walkComments(r){return this.walk((c,u)=>{if(c.type==="comment")return r(c,u)})}walkDecls(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="decl"&&r.test(u.prop))return c(u,g)}):this.walk((u,g)=>{if(u.type==="decl"&&u.prop===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="decl")return c(u,g)}))}walkRules(r,c){return c?r instanceof RegExp?this.walk((u,g)=>{if(u.type==="rule"&&r.test(u.selector))return c(u,g)}):this.walk((u,g)=>{if(u.type==="rule"&&u.selector===r)return c(u,g)}):(c=r,this.walk((u,g)=>{if(u.type==="rule")return c(u,g)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return l.registerParse=i=>{f=i},l.registerRule=i=>{a=i},l.registerAtRule=i=>{m=i},l.registerRoot=i=>{n=i},gt=l,l.default=l,l.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,m.prototype):i.type==="rule"?Object.setPrototypeOf(i,a.prototype):i.type==="decl"?Object.setPrototypeOf(i,p.prototype):i.type==="comment"?Object.setPrototypeOf(i,d.prototype):i.type==="root"&&Object.setPrototypeOf(i,n.prototype),i[o]=!0,i.nodes&&i.nodes.forEach(r=>{l.rebuild(r)})},gt}var yt,Gr;function Vt(){if(Gr)return yt;Gr=1;let e=Y(),o,p;class d extends e{constructor(f){super({type:"document",...f}),this.nodes||(this.nodes=[])}toResult(f={}){return new o(new p,this,f).stringify()}}return d.registerLazyResult=s=>{o=s},d.registerProcessor=s=>{p=s},yt=d,d.default=d,yt}var wt,Jr;function Ri(){if(Jr)return wt;Jr=1;class e{constructor(p,d={}){if(this.type="warning",this.text=p,d.node&&d.node.source){let s=d.node.rangeBy(d);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in d)this[s]=d[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return wt=e,e.default=e,wt}var bt,Vr;function Kt(){if(Vr)return bt;Vr=1;let e=Ri();class o{constructor(d,s,f){this.processor=d,this.messages=[],this.root=s,this.opts=f,this.css=void 0,this.map=void 0}toString(){return this.css}warn(d,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let f=new e(d,s);return this.messages.push(f),f}warnings(){return this.messages.filter(d=>d.type==="warning")}get content(){return this.css}}return bt=o,o.default=o,bt}var vt,Kr;function As(){if(Kr)return vt;Kr=1;const e=39,o=34,p=92,d=47,s=10,f=32,a=12,m=9,n=13,h=91,t=93,l=40,i=41,r=123,c=125,u=59,g=42,S=58,b=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,x=/[\da-f]/i;return vt=function(P,A={}){let E=P.css.valueOf(),T=A.ignoreErrors,N,O,te,G,z,L,U,re,$,M,ie=E.length,C=0,J=[],j=[];function Pe(){return C}function V(D){throw P.error("Unclosed "+D,C)}function Ae(){return j.length===0&&C>=ie}function Ne(D){if(j.length)return j.pop();if(C>=ie)return;let K=D?D.ignoreUnclosed:!1;switch(N=E.charCodeAt(C),N){case s:case f:case m:case n:case a:{O=C;do O+=1,N=E.charCodeAt(O);while(N===f||N===s||N===m||N===n||N===a);M=["space",E.slice(C,O)],C=O-1;break}case h:case t:case r:case c:case S:case u:case i:{let se=String.fromCharCode(N);M=[se,se,C];break}case l:{if(re=J.length?J.pop()[1]:"",$=E.charCodeAt(C+1),re==="url"&&$!==e&&$!==o&&$!==f&&$!==s&&$!==m&&$!==a&&$!==n){O=C;do{if(L=!1,O=E.indexOf(")",O+1),O===-1)if(T||K){O=C;break}else V("bracket");for(U=O;E.charCodeAt(U-1)===p;)U-=1,L=!L}while(L);M=["brackets",E.slice(C,O+1),C,O],C=O}else O=E.indexOf(")",C+1),G=E.slice(C,O+1),O===-1||y.test(G)?M=["(","(",C]:(M=["brackets",G,C,O],C=O);break}case e:case o:{te=N===e?"'":'"',O=C;do{if(L=!1,O=E.indexOf(te,O+1),O===-1)if(T||K){O=C+1;break}else V("string");for(U=O;E.charCodeAt(U-1)===p;)U-=1,L=!L}while(L);M=["string",E.slice(C,O+1),C,O],C=O;break}case b:{v.lastIndex=C+1,v.test(E),v.lastIndex===0?O=E.length-1:O=v.lastIndex-2,M=["at-word",E.slice(C,O+1),C,O],C=O;break}case p:{for(O=C,z=!0;E.charCodeAt(O+1)===p;)O+=1,z=!z;if(N=E.charCodeAt(O+1),z&&N!==d&&N!==f&&N!==s&&N!==m&&N!==n&&N!==a&&(O+=1,x.test(E.charAt(O)))){for(;x.test(E.charAt(O+1));)O+=1;E.charCodeAt(O+1)===f&&(O+=1)}M=["word",E.slice(C,O+1),C,O],C=O;break}default:{N===d&&E.charCodeAt(C+1)===g?(O=E.indexOf("*/",C+2)+1,O===0&&(T||K?O=E.length:V("comment")),M=["comment",E.slice(C,O+1),C,O],C=O):(w.lastIndex=C+1,w.test(E),w.lastIndex===0?O=E.length-1:O=w.lastIndex-2,M=["word",E.slice(C,O+1),C,O],J.push(M),C=O);break}}return C++,M}function Me(D){j.push(D)}return{back:Me,endOfFile:Ae,nextToken:Ne,position:Pe}},vt}var xt,Qr;function Qt(){if(Qr)return xt;Qr=1;let e=Y();class o extends e{constructor(d){super(d),this.type="atrule"}append(...d){return this.proxyOf.nodes||(this.nodes=[]),super.append(...d)}prepend(...d){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...d)}}return xt=o,o.default=o,e.registerAtRule(o),xt}var St,Yr;function oe(){if(Yr)return St;Yr=1;let e=Y(),o,p;class d extends e{constructor(f){super(f),this.type="root",this.nodes||(this.nodes=[])}normalize(f,a,m){let n=super.normalize(f);if(a){if(m==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of n)h.raws.before=a.raws.before}return n}removeChild(f,a){let m=this.index(f);return!a&&m===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[m].raws.before),super.removeChild(f)}toResult(f={}){return new o(new p,this,f).stringify()}}return d.registerLazyResult=s=>{o=s},d.registerProcessor=s=>{p=s},St=d,d.default=d,e.registerRoot(d),St}var Rt,Xr;function Oi(){if(Xr)return Rt;Xr=1;let e={comma(o){return e.split(o,[","],!0)},space(o){let p=[" ",`
`,"	"];return e.split(o,p)},split(o,p,d){let s=[],f="",a=!1,m=0,n=!1,h="",t=!1;for(let l of o)t?t=!1:l==="\\"?t=!0:n?l===h&&(n=!1):l==='"'||l==="'"?(n=!0,h=l):l==="("?m+=1:l===")"?m>0&&(m-=1):m===0&&p.includes(l)&&(a=!0),a?(f!==""&&s.push(f.trim()),f="",a=!1):f+=l;return(d||f!=="")&&s.push(f.trim()),s}};return Rt=e,e.default=e,Rt}var Ot,Zr;function Yt(){if(Zr)return Ot;Zr=1;let e=Y(),o=Oi();class p extends e{constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return o.comma(this.selector)}set selectors(s){let f=this.selector?this.selector.match(/,\s*/):null,a=f?f[0]:","+this.raw("between","beforeOpen");this.selector=s.join(a)}}return Ot=p,p.default=p,e.registerRule(p),Ot}var Ct,ei;function Ns(){if(ei)return Ct;ei=1;let e=Oe(),o=As(),p=Ee(),d=Qt(),s=oe(),f=Yt();const a={empty:!0,space:!0};function m(h){for(let t=h.length-1;t>=0;t--){let l=h[t],i=l[3]||l[2];if(i)return i}}class n{constructor(t){this.input=t,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{column:1,line:1,offset:0}}}atrule(t){let l=new d;l.name=t[1].slice(1),l.name===""&&this.unnamedAtrule(l,t),this.init(l,t[2]);let i,r,c,u=!1,g=!1,S=[],b=[];for(;!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),i=t[0],i==="("||i==="["?b.push(i==="("?")":"]"):i==="{"&&b.length>0?b.push("}"):i===b[b.length-1]&&b.pop(),b.length===0)if(i===";"){l.source.end=this.getPosition(t[2]),l.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){g=!0;break}else if(i==="}"){if(S.length>0){for(c=S.length-1,r=S[c];r&&r[0]==="space";)r=S[--c];r&&(l.source.end=this.getPosition(r[3]||r[2]),l.source.end.offset++)}this.end(t);break}else S.push(t);else S.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}l.raws.between=this.spacesAndCommentsFromEnd(S),S.length?(l.raws.afterName=this.spacesAndCommentsFromStart(S),this.raw(l,"params",S),u&&(t=S[S.length-1],l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++,this.spaces=l.raws.between,l.raws.between="")):(l.raws.afterName="",l.params=""),g&&(l.nodes=[],this.current=l)}checkMissedSemicolon(t){let l=this.colon(t);if(l===!1)return;let i=0,r;for(let c=l-1;c>=0&&(r=t[c],!(r[0]!=="space"&&(i+=1,i===2)));c--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(t){let l=0,i,r,c;for(let[u,g]of t.entries()){if(i=g,r=i[0],r==="("&&(l+=1),r===")"&&(l-=1),l===0&&r===":")if(!c)this.doubleColon(i);else{if(c[0]==="word"&&c[1]==="progid")continue;return u}c=i}return!1}comment(t){let l=new p;this.init(l,t[2]),l.source.end=this.getPosition(t[3]||t[2]),l.source.end.offset++;let i=t[1].slice(2,-2);if(/^\s*$/.test(i))l.text="",l.raws.left=i,l.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);l.text=r[2],l.raws.left=r[1],l.raws.right=r[3]}}createTokenizer(){this.tokenizer=o(this.input)}decl(t,l){let i=new e;this.init(i,t[0][2]);let r=t[t.length-1];for(r[0]===";"&&(this.semicolon=!0,t.pop()),i.source.end=this.getPosition(r[3]||r[2]||m(t)),i.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),i.raws.before+=t.shift()[1];for(i.source.start=this.getPosition(t[0][2]),i.prop="";t.length;){let b=t[0][0];if(b===":"||b==="space"||b==="comment")break;i.prop+=t.shift()[1]}i.raws.between="";let c;for(;t.length;)if(c=t.shift(),c[0]===":"){i.raws.between+=c[1];break}else c[0]==="word"&&/\w/.test(c[1])&&this.unknownWord([c]),i.raws.between+=c[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let u=[],g;for(;t.length&&(g=t[0][0],!(g!=="space"&&g!=="comment"));)u.push(t.shift());this.precheckMissedSemicolon(t);for(let b=t.length-1;b>=0;b--){if(c=t[b],c[1].toLowerCase()==="!important"){i.important=!0;let v=this.stringFrom(t,b);v=this.spacesFromEnd(t)+v,v!==" !important"&&(i.raws.important=v);break}else if(c[1].toLowerCase()==="important"){let v=t.slice(0),w="";for(let y=b;y>0;y--){let x=v[y][0];if(w.trim().indexOf("!")===0&&x!=="space")break;w=v.pop()[1]+w}w.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=w,t=v)}if(c[0]!=="space"&&c[0]!=="comment")break}t.some(b=>b[0]!=="space"&&b[0]!=="comment")&&(i.raws.between+=u.map(b=>b[1]).join(""),u=[]),this.raw(i,"value",u.concat(t),l),i.value.includes(":")&&!l&&this.checkMissedSemicolon(t)}doubleColon(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})}emptyRule(t){let l=new f;this.init(l,t[2]),l.selector="",l.raws.between="",this.current=l}end(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(t){if(this.spaces+=t[1],this.current.nodes){let l=this.current.nodes[this.current.nodes.length-1];l&&l.type==="rule"&&!l.raws.ownSemicolon&&(l.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(t){let l=this.input.fromOffset(t);return{column:l.col,line:l.line,offset:t}}init(t,l){this.current.push(t),t.source={input:this.input,start:this.getPosition(l)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)}other(t){let l=!1,i=null,r=!1,c=null,u=[],g=t[1].startsWith("--"),S=[],b=t;for(;b;){if(i=b[0],S.push(b),i==="("||i==="[")c||(c=b),u.push(i==="("?")":"]");else if(g&&r&&i==="{")c||(c=b),u.push("}");else if(u.length===0)if(i===";")if(r){this.decl(S,g);return}else break;else if(i==="{"){this.rule(S);return}else if(i==="}"){this.tokenizer.back(S.pop()),l=!0;break}else i===":"&&(r=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(c=null));b=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(l=!0),u.length>0&&this.unclosedBracket(c),l&&r){if(!g)for(;S.length&&(b=S[S.length-1][0],!(b!=="space"&&b!=="comment"));)this.tokenizer.back(S.pop());this.decl(S,g)}else this.unknownWord(S)}parse(){let t;for(;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()}precheckMissedSemicolon(){}raw(t,l,i,r){let c,u,g=i.length,S="",b=!0,v,w;for(let y=0;y<g;y+=1)c=i[y],u=c[0],u==="space"&&y===g-1&&!r?b=!1:u==="comment"?(w=i[y-1]?i[y-1][0]:"empty",v=i[y+1]?i[y+1][0]:"empty",!a[w]&&!a[v]?S.slice(-1)===","?b=!1:S+=c[1]:b=!1):S+=c[1];if(!b){let y=i.reduce((x,R)=>x+R[1],"");t.raws[l]={raw:y,value:S}}t[l]=S}rule(t){t.pop();let l=new f;this.init(l,t[0][2]),l.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(l,"selector",t),this.current=l}spacesAndCommentsFromEnd(t){let l,i="";for(;t.length&&(l=t[t.length-1][0],!(l!=="space"&&l!=="comment"));)i=t.pop()[1]+i;return i}spacesAndCommentsFromStart(t){let l,i="";for(;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)i+=t.shift()[1];return i}spacesFromEnd(t){let l,i="";for(;t.length&&(l=t[t.length-1][0],l==="space");)i=t.pop()[1]+i;return i}stringFrom(t,l){let i="";for(let r=l;r<t.length;r++)i+=t[r][1];return t.splice(l,t.length-l),i}unclosedBlock(){let t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)}unclosedBracket(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})}unexpectedClose(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})}unknownWord(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})}unnamedAtrule(t,l){throw this.input.error("At-rule without name",{offset:l[2]},{offset:l[2]+l[1].length})}}return Ct=n,Ct}var Et,ti;function Xt(){if(ti)return Et;ti=1;let e=Y(),o=Ns(),p=Ce();function d(s,f){let a=new p(s,f),m=new o(a);try{m.parse()}catch(n){throw n}return m.root}return Et=d,d.default=d,e.registerParse(d),Et}var Pt,ri;function Ci(){if(ri)return Pt;ri=1;let{isClean:e,my:o}=Jt(),p=Si(),d=Se(),s=Y(),f=Vt(),a=Kt(),m=Xt(),n=oe();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},t={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},l={Once:!0,postcssPlugin:!0,prepare:!0},i=0;function r(v){return typeof v=="object"&&typeof v.then=="function"}function c(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,i,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,i,y+"Exit"]:[y,y+"Exit"]}function u(v){let w;return v.type==="document"?w=["Document",i,"DocumentExit"]:v.type==="root"?w=["Root",i,"RootExit"]:w=c(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[e]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let S={};class b{constructor(w,y,x){this.stringified=!1,this.processed=!1;let R;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))R=g(y);else if(y instanceof b||y instanceof a)R=g(y.root),y.map&&(typeof x.map>"u"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=y.map);else{let P=m;x.syntax&&(P=x.syntax.parse),x.parser&&(P=x.parser),P.parse&&(P=P.parse);try{R=P(y,x)}catch(A){this.processed=!0,this.error=A}R&&!R[o]&&s.rebuild(R)}this.result=new a(w,R,x),this.helpers={...S,postcss:S,result:this.result},this.plugins=this.processor.plugins.map(P=>typeof P=="object"&&P.prepare?{...P,...P.prepare(this.result)}:P)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let x=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=x.postcssPlugin,w.setMessage()):x.postcssVersion}catch(R){console&&console.error&&console.error(R)}return w}prepareVisitors(){this.listeners={};let w=(y,x,R)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([y,R])};for(let y of this.plugins)if(typeof y=="object")for(let x in y){if(!t[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!l[x])if(typeof y[x]=="object")for(let R in y[x])R==="*"?w(y,x,y[x][R]):w(y,x+"-"+R.toLowerCase(),y[x][R]);else typeof y[x]=="function"&&w(y,x,y[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],x=this.runOnRoot(y);if(r(x))try{await x}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[u(w)];for(;y.length>0;){let x=this.visitTick(y);if(r(x))try{await x}catch(R){let P=y[y.length-1].node;throw this.handleError(R,P)}}}if(this.listeners.OnceExit)for(let[y,x]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let R=w.nodes.map(P=>x(P,this.helpers));await Promise.all(R)}else await x(w,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(x=>w.Once(x,this.helpers));return r(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=d;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let R=new p(y,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(r(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[x,R]of w){this.result.lastPlugin=x;let P;try{P=R(y,this.helpers)}catch(A){throw this.handleError(A,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(r(P))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:x,visitors:R}=y;if(x.type!=="root"&&x.type!=="document"&&!x.parent){w.pop();return}if(R.length>0&&y.visitorIndex<R.length){let[A,E]=R[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===R.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=A;try{return E(x.toProxy(),this.helpers)}catch(T){throw this.handleError(T,x)}}if(y.iterator!==0){let A=y.iterator,E;for(;E=x.nodes[x.indexes[A]];)if(x.indexes[A]+=1,!E[e]){E[e]=!0,w.push(u(E));return}y.iterator=0,delete x.indexes[A]}let P=y.events;for(;y.eventIndex<P.length;){let A=P[y.eventIndex];if(y.eventIndex+=1,A===i){x.nodes&&x.nodes.length&&(x[e]=!0,y.iterator=x.getIterator());return}else if(this.listeners[A]){y.visitors=this.listeners[A];return}}w.pop()}walkSync(w){w[e]=!0;let y=c(w);for(let x of y)if(x===i)w.nodes&&w.each(R=>{R[e]||this.walkSync(R)});else{let R=this.listeners[x];if(R&&this.visitSync(R,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return b.registerPostcss=v=>{S=v},Pt=b,b.default=b,n.registerLazyResult(b),f.registerLazyResult(b),Pt}var At,ii;function Ms(){if(ii)return At;ii=1;let e=Si(),o=Se(),p=Xt();const d=Kt();class s{constructor(a,m,n){m=m.toString(),this.stringified=!1,this._processor=a,this._css=m,this._opts=n,this._map=void 0;let h,t=o;this.result=new d(this._processor,h,this._opts),this.result.css=m;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let i=new e(t,h,this._opts,m);if(i.isMap()){let[r,c]=i.generate();r&&(this.result.css=r),c&&(this.result.map=c)}else i.clearAnnotation(),this.result.css=i.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,m){return this.async().then(a,m)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let a,m=p;try{a=m(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}}return At=s,s.default=s,At}var Nt,si;function _s(){if(si)return Nt;si=1;let e=Ms(),o=Ci(),p=Vt(),d=oe();class s{constructor(a=[]){this.version="8.4.38",this.plugins=this.normalize(a)}normalize(a){let m=[];for(let n of a)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))m=m.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)m.push(n);else if(typeof n=="function")m.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return m}process(a,m={}){return!this.plugins.length&&!m.parser&&!m.stringifier&&!m.syntax?new e(this,a,m):new o(this,a,m)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return Nt=s,s.default=s,d.registerProcessor(s),p.registerProcessor(s),Nt}var Mt,ni;function Is(){if(ni)return Mt;ni=1;let e=Oe(),o=xi(),p=Ee(),d=Qt(),s=Ce(),f=oe(),a=Yt();function m(n,h){if(Array.isArray(n))return n.map(i=>m(i));let{inputs:t,...l}=n;if(t){h=[];for(let i of t){let r={...i,__proto__:s.prototype};r.map&&(r.map={...r.map,__proto__:o.prototype}),h.push(r)}}if(l.nodes&&(l.nodes=n.nodes.map(i=>m(i,h))),l.source){let{inputId:i,...r}=l.source;l.source=r,i!=null&&(l.source.input=h[i])}if(l.type==="root")return new f(l);if(l.type==="decl")return new e(l);if(l.type==="rule")return new a(l);if(l.type==="comment")return new p(l);if(l.type==="atrule")return new d(l);throw new Error("Unknown node type: "+n.type)}return Mt=m,m.default=m,Mt}var _t,oi;function Ls(){if(oi)return _t;oi=1;let e=Gt(),o=Oe(),p=Ci(),d=Y(),s=_s(),f=Se(),a=Is(),m=Vt(),n=Ri(),h=Ee(),t=Qt(),l=Kt(),i=Ce(),r=Xt(),c=Oi(),u=Yt(),g=oe(),S=Re();function b(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new s(v)}return b.plugin=function(w,y){let x=!1;function R(...A){console&&console.warn&&!x&&(x=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),me.LANG&&me.LANG.startsWith("cn")&&console.warn(w+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));let E=y(...A);return E.postcssPlugin=w,E.postcssVersion=new s().version,E}let P;return Object.defineProperty(R,"postcss",{get(){return P||(P=R()),P}}),R.process=function(A,E,T){return b([R(T)]).process(A,E)},R},b.stringify=f,b.parse=r,b.fromJSON=a,b.list=c,b.comment=v=>new h(v),b.atRule=v=>new t(v),b.decl=v=>new o(v),b.rule=v=>new u(v),b.root=v=>new g(v),b.document=v=>new m(v),b.CssSyntaxError=e,b.Declaration=o,b.Container=d,b.Processor=s,b.Document=m,b.Comment=h,b.Warning=n,b.AtRule=t,b.Result=l,b.Input=i,b.Rule=u,b.Root=g,b.Node=S,p.registerPostcss(b),_t=b,b.default=b,_t}var $s=Ls();const I=Ss($s);I.stringify;I.fromJSON;I.plugin;I.parse;I.list;I.document;I.comment;I.atRule;I.rule;I.decl;I.root;I.CssSyntaxError;I.Declaration;I.Container;I.Processor;I.Document;I.Comment;I.Warning;I.AtRule;I.Result;I.Input;I.Rule;I.Root;I.Node;class Zt{constructor(...o){k(this,"parentElement",null),k(this,"parentNode",null),k(this,"ownerDocument"),k(this,"firstChild",null),k(this,"lastChild",null),k(this,"previousSibling",null),k(this,"nextSibling",null),k(this,"ELEMENT_NODE",1),k(this,"TEXT_NODE",3),k(this,"nodeType"),k(this,"nodeName"),k(this,"RRNodeType")}get childNodes(){const o=[];let p=this.firstChild;for(;p;)o.push(p),p=p.nextSibling;return o}contains(o){if(o instanceof Zt){if(o.ownerDocument!==this.ownerDocument)return!1;if(o===this)return!0}else return!1;for(;o.parentNode;){if(o.parentNode===this)return!0;o=o.parentNode}return!1}appendChild(o){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(o,p){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(o){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const li={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ai={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},pe={};function Ts(e){var o,p;const d=(p=(o=globalThis?.Zone)==null?void 0:o.__symbol__)==null?void 0:p.call(o,e);if(d&&globalThis[d])return globalThis[d]}function er(e){if(pe[e])return pe[e];const o=Ts(e)||globalThis[e],p=o.prototype,d=e in li?li[e]:void 0,s=!!(d&&d.every(m=>{var n,h;return!!((h=(n=Object.getOwnPropertyDescriptor(p,m))==null?void 0:n.get)!=null&&h.toString().includes("[native code]"))})),f=e in ai?ai[e]:void 0,a=!!(f&&f.every(m=>{var n;return typeof p[m]=="function"&&((n=p[m])==null?void 0:n.toString().includes("[native code]"))}));if(s&&a)return pe[e]=o.prototype,o.prototype;try{const m=document.createElement("iframe");document.body.appendChild(m);const n=m.contentWindow;if(!n)return o.prototype;const h=n[e].prototype;return document.body.removeChild(m),h?pe[e]=h:p}catch{return p}}const It={};function H(e,o,p){var d;const s=`${e}.${String(p)}`;if(It[s])return It[s].call(o);const f=er(e),a=(d=Object.getOwnPropertyDescriptor(f,p))==null?void 0:d.get;return a?(It[s]=a,a.call(o)):o[p]}const Lt={};function Ei(e,o,p){const d=`${e}.${String(p)}`;if(Lt[d])return Lt[d].bind(o);const f=er(e)[p];return typeof f!="function"?o[p]:(Lt[d]=f,f.bind(o))}function Us(e){return H("Node",e,"childNodes")}function Ds(e){return H("Node",e,"parentNode")}function ks(e){return H("Node",e,"parentElement")}function qs(e){return H("Node",e,"textContent")}function Fs(e,o){return Ei("Node",e,"contains")(o)}function Bs(e){return Ei("Node",e,"getRootNode")()}function zs(e){return!e||!("host"in e)?null:H("ShadowRoot",e,"host")}function js(e){return e.styleSheets}function Ws(e){return!e||!("shadowRoot"in e)?null:H("Element",e,"shadowRoot")}function Hs(e,o){return H("Element",e,"querySelector")(o)}function Gs(e,o){return H("Element",e,"querySelectorAll")(o)}function Js(){return er("MutationObserver").constructor}const q={childNodes:Us,parentNode:Ds,parentElement:ks,textContent:qs,contains:Fs,getRootNode:Bs,host:zs,styleSheets:js,shadowRoot:Ws,querySelector:Hs,querySelectorAll:Gs,mutationObserver:Js};function Vs(e,o,p=document){const d={capture:!0,passive:!0};return p.addEventListener(e,o,d),()=>p.removeEventListener(e,o,d)}const ee=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`;let Ut={map:{},getId(){return console.error(ee),-1},getNode(){return console.error(ee),null},removeNodeFromMap(){console.error(ee)},has(){return console.error(ee),!1},reset(){console.error(ee)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Ut=new Proxy(Ut,{get(e,o,p){return o==="map"&&console.error(ee),Reflect.get(e,o,p)}}));function Ks(e,o,p={}){let d=null,s=0;return function(...f){const a=Date.now();!s&&p.leading===!1&&(s=a);const m=o-(a-s),n=this;m<=0||m>o?(d&&(clearTimeout(d),d=null),s=a,e.apply(n,f)):!d&&p.trailing!==!1&&(d=setTimeout(()=>{s=p.leading===!1?0:Date.now(),d=null,e.apply(n,f)},m))}}function Pi(e,o,p,d,s=window){const f=s.Object.getOwnPropertyDescriptor(e,o);return s.Object.defineProperty(e,o,d?p:{set(a){setTimeout(()=>{p.set.call(this,a)},0),f&&f.set&&f.set.call(this,a)}}),()=>Pi(e,o,f||{},!0)}function Qs(e,o,p){try{if(!(o in e))return()=>{};const d=e[o],s=p(d);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:d}})),e[o]=s,()=>{e[o]=d}}catch{return()=>{}}}let Ai=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Ai=()=>new Date().getTime());function Ys(e){var o,p,d,s;const f=e.document;return{left:f.scrollingElement?f.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:f.documentElement.scrollLeft||f?.body&&((o=q.parentElement(f.body))==null?void 0:o.scrollLeft)||((p=f?.body)==null?void 0:p.scrollLeft)||0,top:f.scrollingElement?f.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:f?.documentElement.scrollTop||f?.body&&((d=q.parentElement(f.body))==null?void 0:d.scrollTop)||((s=f?.body)==null?void 0:s.scrollTop)||0}}function Xs(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Zs(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ni(e){return e?e.nodeType===e.ELEMENT_NODE?e:q.parentElement(e):null}function en(e,o,p,d){if(!e)return!1;const s=Ni(e);if(!s)return!1;try{if(typeof o=="string"){if(s.classList.contains(o)||d&&s.closest("."+o)!==null)return!0}else if(Tt(s,o,d))return!0}catch{}return!!(p&&(s.matches(p)||d&&s.closest(p)!==null))}function tn(e,o){return o.getId(e)!==-1}function rn(e,o,p){return e.tagName==="TITLE"&&p.headTitleMutations?!0:o.getId(e)===os}function Mi(e,o){if(is(e))return!1;const p=o.getId(e);if(!o.has(p))return!0;const d=q.parentNode(e);return d&&d.nodeType===e.DOCUMENT_NODE?!1:d?Mi(d,o):!0}function sn(e){return!!e.changedTouches}function nn(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function on(e){const o={},p=(s,f)=>{const a={value:s,parent:f,children:[]};return o[s.node.id]=a,a},d=[];for(const s of e){const{nextId:f,parentId:a}=s;if(f&&f in o){const m=o[f];if(m.parent){const n=m.parent.children.indexOf(m);m.parent.children.splice(n,0,p(s,m.parent))}else{const n=d.indexOf(m);d.splice(n,0,p(s,null))}continue}if(a in o){const m=o[a];m.children.push(p(s,m));continue}d.push(p(s,null))}return d}function _i(e,o){o(e.value);for(let p=e.children.length-1;p>=0;p--)_i(e.children[p],o)}function ln(e,o){return!!(e.nodeName==="IFRAME"&&o.getMeta(e))}function an(e,o){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&o.getMeta(e))}function Ii(e,o){var p,d;const s=(d=(p=e.ownerDocument)==null?void 0:p.defaultView)==null?void 0:d.frameElement;if(!s||s===o)return{x:0,y:0,relativeScale:1,absoluteScale:1};const f=s.getBoundingClientRect(),a=Ii(s,o),m=f.height/s.clientHeight;return{x:f.x*a.relativeScale+a.x,y:f.y*a.relativeScale+a.y,relativeScale:m,absoluteScale:a.absoluteScale*m}}function un(e){return e?e instanceof Zt&&"shadowRoot"in e?!!e.shadowRoot:!!q.shadowRoot(e):!1}function Li(e,o){const p=e[o[0]];return o.length===1?p:Li(p.cssRules[o[1]].cssRules,o.slice(2))}function fn(e){const o=[...e],p=o.pop();return{positions:o,index:p}}function hn(e){const o=new Set,p=[];for(let d=e.length;d--;){const s=e[d];o.has(s.id)||(p.push(s),o.add(s.id))}return p}class cn{constructor(){_e(this,"id",1),_e(this,"styleIDMap",new WeakMap),_e(this,"idStyleMap",new Map)}getId(o){return this.styleIDMap.get(o)??-1}has(o){return this.styleIDMap.has(o)}add(o,p){if(this.has(o))return this.getId(o);let d;return p===void 0?d=this.id++:d=p,this.styleIDMap.set(o,d),this.idStyleMap.set(d,o),d}getStyle(o){return this.idStyleMap.get(o)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function $i(e){var o;let p=null;return"getRootNode"in e&&((o=q.getRootNode(e))==null?void 0:o.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&q.host(q.getRootNode(e))&&(p=q.host(q.getRootNode(e))),p}function Ti(e){let o=e,p;for(;p=$i(o);)o=p;return o}function Ui(e){const o=e.ownerDocument;if(!o)return!1;const p=Ti(e);return q.contains(o,p)}function pn(e){const o=e.ownerDocument;return o?q.contains(o,e)||Ui(e):!1}const dn=Object.freeze(Object.defineProperty({__proto__:null,StyleSheetMirror:cn,get _mirror(){return Ut},closestElementOfNode:Ni,getBaseDimension:Ii,getNestedRule:Li,getPositionsAndIndex:fn,getRootShadowHost:Ti,getShadowHost:$i,getWindowHeight:Xs,getWindowScroll:Ys,getWindowWidth:Zs,hasShadowRoot:un,hookSetter:Pi,inDom:pn,isAncestorRemoved:Mi,isBlocked:en,isIgnored:rn,isSerialized:tn,isSerializedIframe:ln,isSerializedStylesheet:an,iterateResolveTree:_i,legacy_isTouchEvent:sn,get nowTimestamp(){return Ai},on:Vs,patch:Qs,polyfill:nn,queueToResolveTrees:on,shadowHostInDom:Ui,throttle:Ks,uniqueTextMutations:hn},Symbol.toStringTag,{value:"Module"}));var ui="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var de=0;de<ui.length;de++)mn[ui.charCodeAt(de)]=de;const gn=`(function() {
  "use strict";
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
  for (var i = 0; i < chars.length; i++) {
    lookup[chars.charCodeAt(i)] = i;
  }
  var encode = function(arraybuffer) {
    var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
    for (i2 = 0; i2 < len; i2 += 3) {
      base64 += chars[bytes[i2] >> 2];
      base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
      base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
      base64 += chars[bytes[i2 + 2] & 63];
    }
    if (len % 3 === 2) {
      base64 = base64.substring(0, base64.length - 1) + "=";
    } else if (len % 3 === 1) {
      base64 = base64.substring(0, base64.length - 2) + "==";
    }
    return base64;
  };
  const lastBlobMap = /* @__PURE__ */ new Map();
  const transparentBlobMap = /* @__PURE__ */ new Map();
  async function getTransparentBlobFor(width, height, dataURLOptions) {
    const id = \`\${width}-\${height}\`;
    if ("OffscreenCanvas" in globalThis) {
      if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
      const offscreen = new OffscreenCanvas(width, height);
      offscreen.getContext("2d");
      const blob = await offscreen.convertToBlob(dataURLOptions);
      const arrayBuffer = await blob.arrayBuffer();
      const base64 = encode(arrayBuffer);
      transparentBlobMap.set(id, base64);
      return base64;
    } else {
      return "";
    }
  }
  const worker = self;
  worker.onmessage = async function(e) {
    if ("OffscreenCanvas" in globalThis) {
      const { id, bitmap, width, height, dataURLOptions } = e.data;
      const transparentBase64 = getTransparentBlobFor(
        width,
        height,
        dataURLOptions
      );
      const offscreen = new OffscreenCanvas(width, height);
      const ctx = offscreen.getContext("2d");
      ctx.drawImage(bitmap, 0, 0);
      bitmap.close();
      const blob = await offscreen.convertToBlob(dataURLOptions);
      const type = blob.type;
      const arrayBuffer = await blob.arrayBuffer();
      const base64 = encode(arrayBuffer);
      if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
        lastBlobMap.set(id, base64);
        return worker.postMessage({ id });
      }
      if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
      worker.postMessage({
        id,
        type,
        base64,
        width,
        height
      });
      lastBlobMap.set(id, base64);
    } else {
      return worker.postMessage({ id: e.data.id });
    }
  };
})();
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
`;typeof self<"u"&&self.Blob&&new Blob([gn],{type:"text/javascript;charset=utf-8"});try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((tr=e.contentWindow)==null?void 0:tr.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}ns();var fi;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(fi||(fi={}));class X{constructor(o){le(this,"fileName"),le(this,"functionName"),le(this,"lineNumber"),le(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}toString(){const o=this.lineNumber||"",p=this.columnNumber||"";return this.functionName?`${this.functionName} (${this.fileName}:${o}:${p})`:`${this.fileName}:${o}:${p}`}}const yn=/(^|@)\S+:\d+/,hi=/^\s*at .*(\S+:\d+|\(native\))/m,wn=/^(eval@)?(\[native code])?$/,$t={parse:function(e){return e?typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u"?this.parseOpera(e):e.stack&&e.stack.match(hi)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(e.indexOf(":")===-1)return[e];const p=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!p)throw new Error(`Cannot parse given url: ${e}`);return[p[1],p[2]||void 0,p[3]||void 0]},parseV8OrIE:function(e){return e.stack.split(`
`).filter(function(p){return!!p.match(hi)},this).map(function(p){p.indexOf("(eval ")>-1&&(p=p.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));let d=p.replace(/^\s+/,"").replace(/\(eval code/g,"(");const s=d.match(/ (\((.+):(\d+):(\d+)\)$)/);d=s?d.replace(s[0],""):d;const f=d.split(/\s+/).slice(1),a=this.extractLocation(s?s[1]:f.pop()),m=f.join(" ")||void 0,n=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new X({functionName:m,fileName:n,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(e){return e.stack.split(`
`).filter(function(p){return!p.match(wn)},this).map(function(p){if(p.indexOf(" > eval")>-1&&(p=p.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),p.indexOf("@")===-1&&p.indexOf(":")===-1)return new X({functionName:p});{const d=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=p.match(d),f=s&&s[1]?s[1]:void 0,a=this.extractLocation(p.replace(d,""));return new X({functionName:f,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})}},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(`
`)>-1&&e.message.split(`
`).length>e.stacktrace.split(`
`).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){const o=/Line (\d+).*script (?:in )?(\S+)/i,p=e.message.split(`
`),d=[];for(let s=2,f=p.length;s<f;s+=2){const a=o.exec(p[s]);a&&d.push(new X({fileName:a[2],lineNumber:parseFloat(a[1])}))}return d},parseOpera10:function(e){const o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,p=e.stacktrace.split(`
`),d=[];for(let s=0,f=p.length;s<f;s+=2){const a=o.exec(p[s]);a&&d.push(new X({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return d},parseOpera11:function(e){return e.stack.split(`
`).filter(function(p){return!!p.match(yn)&&!p.match(/^Error created at/)},this).map(function(p){const d=p.split("@"),s=this.extractLocation(d.pop()),a=(d.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new X({functionName:a,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)}};function bn(e){if(!e||!e.outerHTML)return"";let o="";for(;e.parentElement;){let p=e.localName;if(!p)break;p=p.toLowerCase();const d=e.parentElement,s=[];if(d.children&&d.children.length>0)for(let f=0;f<d.children.length;f++){const a=d.children[f];a.localName&&a.localName.toLowerCase&&a.localName.toLowerCase()===p&&s.push(a)}s.length>1&&(p+=`:eq(${s.indexOf(e)})`),o=p+(o?">"+o:""),e=d}return o}function Dt(e){return Object.prototype.toString.call(e)==="[object Object]"}function Di(e,o){if(o===0)return!0;const p=Object.keys(e);for(const d of p)if(Dt(e[d])&&Di(e[d],o-1))return!0;return!1}function Z(e,o){const p={numOfKeysLimit:50,depthOfLimit:4};Object.assign(p,o);const d=[],s=[];return JSON.stringify(e,function(m,n){if(d.length>0){const h=d.indexOf(this);~h?d.splice(h+1):d.push(this),~h?s.splice(h,1/0,m):s.push(m),~d.indexOf(n)&&(d[0]===n?n="[Circular ~]":n="[Circular ~."+s.slice(0,d.indexOf(n)).join(".")+"]")}else d.push(n);if(n===null)return n;if(n===void 0)return"undefined";if(f(n))return a(n);if(typeof n=="bigint")return n.toString()+"n";if(n instanceof Event){const h={};for(const t in n){const l=n[t];Array.isArray(l)?h[t]=bn(l.length?l[0]:null):h[t]=l}return h}else{if(n instanceof Node)return n instanceof HTMLElement?n?n.outerHTML:"":n.nodeName;if(n instanceof Error)return n.stack?n.stack+`
End of stack for Error object`:n.name+": "+n.message}return n});function f(m){return!!(Dt(m)&&Object.keys(m).length>p.numOfKeysLimit||typeof m=="function"||Dt(m)&&Di(m,p.depthOfLimit))}function a(m){let n=m.toString();return p.stringLengthLimit&&n.length>p.stringLengthLimit&&(n=`${n.slice(0,p.stringLengthLimit)}...`),n}}const ci={level:["assert","clear","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],lengthThreshold:1e3,logger:"console"};function vn(e,o,p){const d=p?Object.assign({},ci,p):ci,s=d.logger;if(!s)return()=>{};let f;typeof s=="string"?f=o[s]:f=s;let a=0,m=!1;const n=[];if(d.level.includes("error")){const t=i=>{const r=i.message,c=i.error,u=$t.parse(c).map(S=>S.toString()),g=[Z(r,d.stringifyOptions)];e({level:"error",trace:u,payload:g})};o.addEventListener("error",t),n.push(()=>{o.removeEventListener("error",t)});const l=i=>{let r,c;i.reason instanceof Error?(r=i.reason,c=[Z(`Uncaught (in promise) ${r.name}: ${r.message}`,d.stringifyOptions)]):(r=new Error,c=[Z("Uncaught (in promise)",d.stringifyOptions),Z(i.reason,d.stringifyOptions)]);const u=$t.parse(r).map(g=>g.toString());e({level:"error",trace:u,payload:c})};o.addEventListener("unhandledrejection",l),n.push(()=>{o.removeEventListener("unhandledrejection",l)})}for(const t of d.level)n.push(h(f,t));return()=>{n.forEach(t=>t())};function h(t,l){return t[l]?dn.patch(t,l,i=>(...r)=>{if(i.apply(this,r),!(l==="assert"&&r[0])&&!m){m=!0;try{const c=$t.parse(new Error).map(S=>S.toString()).splice(1),g=(l==="assert"?r.slice(1):r).map(S=>Z(S,d.stringifyOptions));a++,a<d.lengthThreshold?e({level:l,trace:c,payload:g}):a===d.lengthThreshold&&e({level:"warn",trace:[],payload:[Z("The number of log records reached the threshold.")]})}catch(c){i("rrweb logger error:",c,...r)}finally{m=!1}}}):()=>{}}}const xn="rrweb/console@1",Sn=e=>({name:xn,observer:vn,options:e});export{xn as PLUGIN_NAME,Sn as getRecordConsolePlugin};

```

---

## .output/public/robots.txt

```txt
User-Agent: *
Disallow:

```

---

## .output/server/chunks/_/error-500.mjs

```mjs
import { escapeHtml } from '@vue/shared';

const _messages = {
	"appName": "Nuxt",
	"status": 500,
	"statusText": "Internal server error",
	"description": "This page is temporarily unavailable.",
	"refresh": "Refresh this page"
};
const template = (messages) => {
	messages = {
		..._messages,
		...messages
	};
	return "<!DOCTYPE html><html lang=\"en\"><head><title>" + escapeHtml(messages.status) + " - " + escapeHtml(messages.statusText) + " | " + escapeHtml(messages.appName) + "</title><meta charset=\"utf-8\"><meta content=\"width=device-width,initial-scale=1.0,minimum-scale=1.0\" name=\"viewport\"><script>!function(){const e=document.createElement(\"link\").relList;if(!(e&&e.supports&&e.supports(\"modulepreload\"))){for(const e of document.querySelectorAll('link[rel=\"modulepreload\"]'))r(e);new MutationObserver(e=>{for(const o of e)if(\"childList\"===o.type)for(const e of o.addedNodes)\"LINK\"===e.tagName&&\"modulepreload\"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),\"use-credentials\"===e.crossOrigin?r.credentials=\"include\":\"anonymous\"===e.crossOrigin?r.credentials=\"omit\":r.credentials=\"same-origin\",r}(e);fetch(e.href,r)}}();<\/script><style>*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:\"\"}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.grid{display:grid}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.max-w-520px{max-width:520px}.min-h-screen{min-height:100vh}.place-content-center{place-content:center}.overflow-hidden{overflow:hidden}.bg-white{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.text-\\[80px\\]{font-size:80px}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\\[\\#020420\\]{--un-text-opacity:1;color:rgb(2 4 32/var(--un-text-opacity))}.text-\\[\\#64748B\\]{--un-text-opacity:1;color:rgb(100 116 139/var(--un-text-opacity))}.font-semibold{font-weight:600}.leading-none{line-height:1}.tracking-wide{letter-spacing:.025em}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal) var(--un-slashed-zero) var(--un-numeric-figure) var(--un-numeric-spacing) var(--un-numeric-fraction)}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media(prefers-color-scheme:dark){.dark\\:bg-\\[\\#020420\\]{--un-bg-opacity:1;background-color:rgb(2 4 32/var(--un-bg-opacity))}.dark\\:text-white{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media(min-width:640px){.sm\\:text-\\[110px\\]{font-size:110px}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}}</style></head><body class=\"antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide\"><div class=\"max-w-520px text-center\"><h1 class=\"font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]\">" + escapeHtml(messages.status) + "</h1><h2 class=\"font-semibold mb-2 sm:text-3xl text-2xl\">" + escapeHtml(messages.statusText) + "</h2><p class=\"mb-4 px-2 text-[#64748B] text-md\">" + escapeHtml(messages.description) + "</p></div></body></html>";
};

export { template };
//# sourceMappingURL=error-500.mjs.map

```

---

## .output/server/chunks/_/error-500.mjs.map

```map
{"version":3,"file":"error-500.mjs","sources":["../../../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/templates/error-500.mjs"],"names":[],"mappings":"","x_google_ignoreList":[0]}
```

---

## .output/server/chunks/_/users.mjs

```mjs
import { u as useRuntimeConfig } from '../nitro/nitro.mjs';
import { createInstance } from '@amplitude/analytics-node';

let client = null;
function useServerAmplitude() {
  const config = useRuntimeConfig();
  const apiKey = config.public.amplitudeApiKey;
  if (!apiKey) return null;
  if (!client) {
    client = createInstance();
    client.init(apiKey);
  }
  return client;
}

const users = /* @__PURE__ */ new Map();
function getOrCreateUser(username) {
  let user = users.get(username);
  if (!user) {
    user = { username, burritoConsiderations: 0 };
    users.set(username, user);
  }
  return user;
}
function incrementBurritoConsiderations(username) {
  const user = users.get(username);
  if (!user) {
    throw new Error("User not found");
  }
  user.burritoConsiderations++;
  users.set(username, user);
  return { ...user };
}

export { useServerAmplitude as a, getOrCreateUser as g, incrementBurritoConsiderations as i, users as u };
//# sourceMappingURL=users.mjs.map

```

---

## .output/server/chunks/_/users.mjs.map

```map
{"version":3,"file":"users.mjs","sources":["../../../../server/utils/amplitude.ts","../../../../server/utils/users.ts"],"names":[],"mappings":";;;AAGA,IAAA,MAAA,GAAA,IAAA;AAEA,SAAA,kBAAA,GAAA;AACA,EAAA,MAAA,SAAA,gBAAA,EAAA;AACA,EAAA,MAAA,MAAA,GAAA,OAAA,MAAA,CAAA,eAAA;AAEA,EAAA,IAAA,CAAA,QAAA,OAAA,IAAA;AAEA,EAAA,IAAA,CAAA,MAAA,EAAA;AACA,IAAA,MAAA,GAAA,cAAA,EAAA;AACA,IAAA,MAAA,CAAA,KAAA,MAAA,CAAA;AAAA,EACA;AACA,EAAA,OAAA,MAAA;AACA;;ACfO,MAAM,KAAA,uBAAY,GAAA;AAElB,SAAS,gBAAgB,QAAA,EAAuE;AACrG,EAAA,IAAI,IAAA,GAAO,KAAA,CAAM,GAAA,CAAI,QAAQ,CAAA;AAE7B,EAAA,IAAI,CAAC,IAAA,EAAM;AACT,IAAA,IAAA,GAAO,EAAE,QAAA,EAAU,qBAAA,EAAuB,CAAA,EAAE;AAC5C,IAAA,KAAA,CAAM,GAAA,CAAI,UAAU,IAAI,CAAA;AAAA,EAC1B;AAEA,EAAA,OAAO,IAAA;AACT;AAEO,SAAS,+BAA+B,QAAA,EAAuE;AACpH,EAAA,MAAM,IAAA,GAAO,KAAA,CAAM,GAAA,CAAI,QAAQ,CAAA;AAE/B,EAAA,IAAI,CAAC,IAAA,EAAM;AACT,IAAA,MAAM,IAAI,MAAM,gBAAgB,CAAA;AAAA,EAClC;AAEA,EAAA,IAAA,CAAK,qBAAA,EAAA;AACL,EAAA,KAAA,CAAM,GAAA,CAAI,UAAU,IAAI,CAAA;AAExB,EAAA,OAAO,EAAE,GAAG,IAAA,EAAK;AACnB;;;;"}
```

---

## .output/server/chunks/nitro/nitro.mjs

```mjs
import process from 'node:process';globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import http, { Server as Server$1 } from 'node:http';
import https, { Server } from 'node:https';
import { EventEmitter } from 'node:events';
import { Buffer as Buffer$1 } from 'node:buffer';
import { promises, existsSync } from 'node:fs';
import { resolve as resolve$1, dirname as dirname$1, join } from 'node:path';
import { createHash } from 'node:crypto';
import { fileURLToPath } from 'node:url';

const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
const JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
function jsonParseTransform(key, value) {
  if (key === "__proto__" || key === "constructor" && value && typeof value === "object" && "prototype" in value) {
    warnKeyDropped(key);
    return;
  }
  return value;
}
function warnKeyDropped(key) {
  console.warn(`[destr] Dropping "${key}" key to prevent prototype pollution.`);
}
function destr(value, options = {}) {
  if (typeof value !== "string") {
    return value;
  }
  if (value[0] === '"' && value[value.length - 1] === '"' && value.indexOf("\\") === -1) {
    return value.slice(1, -1);
  }
  const _value = value.trim();
  if (_value.length <= 9) {
    switch (_value.toLowerCase()) {
      case "true": {
        return true;
      }
      case "false": {
        return false;
      }
      case "undefined": {
        return void 0;
      }
      case "null": {
        return null;
      }
      case "nan": {
        return Number.NaN;
      }
      case "infinity": {
        return Number.POSITIVE_INFINITY;
      }
      case "-infinity": {
        return Number.NEGATIVE_INFINITY;
      }
    }
  }
  if (!JsonSigRx.test(value)) {
    if (options.strict) {
      throw new SyntaxError("[destr] Invalid JSON");
    }
    return value;
  }
  try {
    if (suspectProtoRx.test(value) || suspectConstructorRx.test(value)) {
      if (options.strict) {
        throw new Error("[destr] Possible prototype pollution");
      }
      return JSON.parse(value, jsonParseTransform);
    }
    return JSON.parse(value);
  } catch (error) {
    if (options.strict) {
      throw error;
    }
    return value;
  }
}

const HASH_RE = /#/g;
const AMPERSAND_RE = /&/g;
const SLASH_RE = /\//g;
const EQUAL_RE = /=/g;
const PLUS_RE = /\+/g;
const ENC_CARET_RE = /%5e/gi;
const ENC_BACKTICK_RE = /%60/gi;
const ENC_PIPE_RE = /%7c/gi;
const ENC_SPACE_RE = /%20/gi;
const ENC_SLASH_RE = /%2f/gi;
function encode(text) {
  return encodeURI("" + text).replace(ENC_PIPE_RE, "|");
}
function encodeQueryValue(input) {
  return encode(typeof input === "string" ? input : JSON.stringify(input)).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CARET_RE, "^").replace(SLASH_RE, "%2F");
}
function encodeQueryKey(text) {
  return encodeQueryValue(text).replace(EQUAL_RE, "%3D");
}
function decode(text = "") {
  try {
    return decodeURIComponent("" + text);
  } catch {
    return "" + text;
  }
}
function decodePath(text) {
  return decode(text.replace(ENC_SLASH_RE, "%252F"));
}
function decodeQueryKey(text) {
  return decode(text.replace(PLUS_RE, " "));
}
function decodeQueryValue(text) {
  return decode(text.replace(PLUS_RE, " "));
}

function parseQuery(parametersString = "") {
  const object = /* @__PURE__ */ Object.create(null);
  if (parametersString[0] === "?") {
    parametersString = parametersString.slice(1);
  }
  for (const parameter of parametersString.split("&")) {
    const s = parameter.match(/([^=]+)=?(.*)/) || [];
    if (s.length < 2) {
      continue;
    }
    const key = decodeQueryKey(s[1]);
    if (key === "__proto__" || key === "constructor") {
      continue;
    }
    const value = decodeQueryValue(s[2] || "");
    if (object[key] === void 0) {
      object[key] = value;
    } else if (Array.isArray(object[key])) {
      object[key].push(value);
    } else {
      object[key] = [object[key], value];
    }
  }
  return object;
}
function encodeQueryItem(key, value) {
  if (typeof value === "number" || typeof value === "boolean") {
    value = String(value);
  }
  if (!value) {
    return encodeQueryKey(key);
  }
  if (Array.isArray(value)) {
    return value.map(
      (_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`
    ).join("&");
  }
  return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
}
function stringifyQuery(query) {
  return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
}

const PROTOCOL_STRICT_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/;
const PROTOCOL_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{2})?/;
const PROTOCOL_RELATIVE_REGEX = /^([/\\]\s*){2,}[^/\\]/;
const PROTOCOL_SCRIPT_RE = /^[\s\0]*(blob|data|javascript|vbscript):$/i;
const TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
const JOIN_LEADING_SLASH_RE = /^\.?\//;
function hasProtocol(inputString, opts = {}) {
  if (typeof opts === "boolean") {
    opts = { acceptRelative: opts };
  }
  if (opts.strict) {
    return PROTOCOL_STRICT_REGEX.test(inputString);
  }
  return PROTOCOL_REGEX.test(inputString) || (opts.acceptRelative ? PROTOCOL_RELATIVE_REGEX.test(inputString) : false);
}
function isScriptProtocol(protocol) {
  return !!protocol && PROTOCOL_SCRIPT_RE.test(protocol);
}
function hasTrailingSlash(input = "", respectQueryAndFragment) {
  if (!respectQueryAndFragment) {
    return input.endsWith("/");
  }
  return TRAILING_SLASH_RE.test(input);
}
function withoutTrailingSlash(input = "", respectQueryAndFragment) {
  if (!respectQueryAndFragment) {
    return (hasTrailingSlash(input) ? input.slice(0, -1) : input) || "/";
  }
  if (!hasTrailingSlash(input, true)) {
    return input || "/";
  }
  let path = input;
  let fragment = "";
  const fragmentIndex = input.indexOf("#");
  if (fragmentIndex !== -1) {
    path = input.slice(0, fragmentIndex);
    fragment = input.slice(fragmentIndex);
  }
  const [s0, ...s] = path.split("?");
  const cleanPath = s0.endsWith("/") ? s0.slice(0, -1) : s0;
  return (cleanPath || "/") + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
}
function withTrailingSlash(input = "", respectQueryAndFragment) {
  if (!respectQueryAndFragment) {
    return input.endsWith("/") ? input : input + "/";
  }
  if (hasTrailingSlash(input, true)) {
    return input || "/";
  }
  let path = input;
  let fragment = "";
  const fragmentIndex = input.indexOf("#");
  if (fragmentIndex !== -1) {
    path = input.slice(0, fragmentIndex);
    fragment = input.slice(fragmentIndex);
    if (!path) {
      return fragment;
    }
  }
  const [s0, ...s] = path.split("?");
  return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
}
function hasLeadingSlash(input = "") {
  return input.startsWith("/");
}
function withLeadingSlash(input = "") {
  return hasLeadingSlash(input) ? input : "/" + input;
}
function withBase(input, base) {
  if (isEmptyURL(base) || hasProtocol(input)) {
    return input;
  }
  const _base = withoutTrailingSlash(base);
  if (input.startsWith(_base)) {
    const nextChar = input[_base.length];
    if (!nextChar || nextChar === "/" || nextChar === "?") {
      return input;
    }
  }
  return joinURL(_base, input);
}
function withoutBase(input, base) {
  if (isEmptyURL(base)) {
    return input;
  }
  const _base = withoutTrailingSlash(base);
  if (!input.startsWith(_base)) {
    return input;
  }
  const nextChar = input[_base.length];
  if (nextChar && nextChar !== "/" && nextChar !== "?") {
    return input;
  }
  const trimmed = input.slice(_base.length);
  return trimmed[0] === "/" ? trimmed : "/" + trimmed;
}
function withQuery(input, query) {
  const parsed = parseURL(input);
  const mergedQuery = { ...parseQuery(parsed.search), ...query };
  parsed.search = stringifyQuery(mergedQuery);
  return stringifyParsedURL(parsed);
}
function getQuery$1(input) {
  return parseQuery(parseURL(input).search);
}
function isEmptyURL(url) {
  return !url || url === "/";
}
function isNonEmptyURL(url) {
  return url && url !== "/";
}
function joinURL(base, ...input) {
  let url = base || "";
  for (const segment of input.filter((url2) => isNonEmptyURL(url2))) {
    if (url) {
      const _segment = segment.replace(JOIN_LEADING_SLASH_RE, "");
      url = withTrailingSlash(url) + _segment;
    } else {
      url = segment;
    }
  }
  return url;
}
function joinRelativeURL(..._input) {
  const JOIN_SEGMENT_SPLIT_RE = /\/(?!\/)/;
  const input = _input.filter(Boolean);
  const segments = [];
  let segmentsDepth = 0;
  for (const i of input) {
    if (!i || i === "/") {
      continue;
    }
    for (const [sindex, s] of i.split(JOIN_SEGMENT_SPLIT_RE).entries()) {
      if (!s || s === ".") {
        continue;
      }
      if (s === "..") {
        if (segments.length === 1 && hasProtocol(segments[0])) {
          continue;
        }
        segments.pop();
        segmentsDepth--;
        continue;
      }
      if (sindex === 1 && segments[segments.length - 1]?.endsWith(":/")) {
        segments[segments.length - 1] += "/" + s;
        continue;
      }
      segments.push(s);
      segmentsDepth++;
    }
  }
  let url = segments.join("/");
  if (segmentsDepth >= 0) {
    if (input[0]?.startsWith("/") && !url.startsWith("/")) {
      url = "/" + url;
    } else if (input[0]?.startsWith("./") && !url.startsWith("./")) {
      url = "./" + url;
    }
  } else {
    url = "../".repeat(-1 * segmentsDepth) + url;
  }
  if (input[input.length - 1]?.endsWith("/") && !url.endsWith("/")) {
    url += "/";
  }
  return url;
}

const protocolRelative = Symbol.for("ufo:protocolRelative");
function parseURL(input = "", defaultProto) {
  const _specialProtoMatch = input.match(
    /^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
  );
  if (_specialProtoMatch) {
    const [, _proto, _pathname = ""] = _specialProtoMatch;
    return {
      protocol: _proto.toLowerCase(),
      pathname: _pathname,
      href: _proto + _pathname,
      auth: "",
      host: "",
      search: "",
      hash: ""
    };
  }
  if (!hasProtocol(input, { acceptRelative: true })) {
    return parsePath(input);
  }
  const [, protocol = "", auth, hostAndPath = ""] = input.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [];
  let [, host = "", path = ""] = hostAndPath.match(/([^#/?]*)(.*)?/) || [];
  if (protocol === "file:") {
    path = path.replace(/\/(?=[A-Za-z]:)/, "");
  }
  const { pathname, search, hash } = parsePath(path);
  return {
    protocol: protocol.toLowerCase(),
    auth: auth ? auth.slice(0, Math.max(0, auth.length - 1)) : "",
    host,
    pathname,
    search,
    hash,
    [protocolRelative]: !protocol
  };
}
function parsePath(input = "") {
  const [pathname = "", search = "", hash = ""] = (input.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
  return {
    pathname,
    search,
    hash
  };
}
function stringifyParsedURL(parsed) {
  const pathname = parsed.pathname || "";
  const search = parsed.search ? (parsed.search.startsWith("?") ? "" : "?") + parsed.search : "";
  const hash = parsed.hash || "";
  const auth = parsed.auth ? parsed.auth + "@" : "";
  const host = parsed.host || "";
  const proto = parsed.protocol || parsed[protocolRelative] ? (parsed.protocol || "") + "//" : "";
  return proto + auth + host + pathname + search + hash;
}

const NODE_TYPES = {
  NORMAL: 0,
  WILDCARD: 1,
  PLACEHOLDER: 2
};

function createRouter$1(options = {}) {
  const ctx = {
    options,
    rootNode: createRadixNode(),
    staticRoutesMap: {}
  };
  const normalizeTrailingSlash = (p) => options.strictTrailingSlash ? p : p.replace(/\/$/, "") || "/";
  if (options.routes) {
    for (const path in options.routes) {
      insert(ctx, normalizeTrailingSlash(path), options.routes[path]);
    }
  }
  return {
    ctx,
    lookup: (path) => lookup(ctx, normalizeTrailingSlash(path)),
    insert: (path, data) => insert(ctx, normalizeTrailingSlash(path), data),
    remove: (path) => remove(ctx, normalizeTrailingSlash(path))
  };
}
function lookup(ctx, path) {
  const staticPathNode = ctx.staticRoutesMap[path];
  if (staticPathNode) {
    return staticPathNode.data;
  }
  const sections = path.split("/");
  const params = {};
  let paramsFound = false;
  let wildcardNode = null;
  let node = ctx.rootNode;
  let wildCardParam = null;
  for (let i = 0; i < sections.length; i++) {
    const section = sections[i];
    if (node.wildcardChildNode !== null) {
      wildcardNode = node.wildcardChildNode;
      wildCardParam = sections.slice(i).join("/");
    }
    const nextNode = node.children.get(section);
    if (nextNode === void 0) {
      if (node && node.placeholderChildren.length > 1) {
        const remaining = sections.length - i;
        node = node.placeholderChildren.find((c) => c.maxDepth === remaining) || null;
      } else {
        node = node.placeholderChildren[0] || null;
      }
      if (!node) {
        break;
      }
      if (node.paramName) {
        params[node.paramName] = section;
      }
      paramsFound = true;
    } else {
      node = nextNode;
    }
  }
  if ((node === null || node.data === null) && wildcardNode !== null) {
    node = wildcardNode;
    params[node.paramName || "_"] = wildCardParam;
    paramsFound = true;
  }
  if (!node) {
    return null;
  }
  if (paramsFound) {
    return {
      ...node.data,
      params: paramsFound ? params : void 0
    };
  }
  return node.data;
}
function insert(ctx, path, data) {
  let isStaticRoute = true;
  const sections = path.split("/");
  let node = ctx.rootNode;
  let _unnamedPlaceholderCtr = 0;
  const matchedNodes = [node];
  for (const section of sections) {
    let childNode;
    if (childNode = node.children.get(section)) {
      node = childNode;
    } else {
      const type = getNodeType(section);
      childNode = createRadixNode({ type, parent: node });
      node.children.set(section, childNode);
      if (type === NODE_TYPES.PLACEHOLDER) {
        childNode.paramName = section === "*" ? `_${_unnamedPlaceholderCtr++}` : section.slice(1);
        node.placeholderChildren.push(childNode);
        isStaticRoute = false;
      } else if (type === NODE_TYPES.WILDCARD) {
        node.wildcardChildNode = childNode;
        childNode.paramName = section.slice(
          3
          /* "**:" */
        ) || "_";
        isStaticRoute = false;
      }
      matchedNodes.push(childNode);
      node = childNode;
    }
  }
  for (const [depth, node2] of matchedNodes.entries()) {
    node2.maxDepth = Math.max(matchedNodes.length - depth, node2.maxDepth || 0);
  }
  node.data = data;
  if (isStaticRoute === true) {
    ctx.staticRoutesMap[path] = node;
  }
  return node;
}
function remove(ctx, path) {
  let success = false;
  const sections = path.split("/");
  let node = ctx.rootNode;
  for (const section of sections) {
    node = node.children.get(section);
    if (!node) {
      return success;
    }
  }
  if (node.data) {
    const lastSection = sections.at(-1) || "";
    node.data = null;
    if (Object.keys(node.children).length === 0 && node.parent) {
      node.parent.children.delete(lastSection);
      node.parent.wildcardChildNode = null;
      node.parent.placeholderChildren = [];
    }
    success = true;
  }
  return success;
}
function createRadixNode(options = {}) {
  return {
    type: options.type || NODE_TYPES.NORMAL,
    maxDepth: 0,
    parent: options.parent || null,
    children: /* @__PURE__ */ new Map(),
    data: options.data || null,
    paramName: options.paramName || null,
    wildcardChildNode: null,
    placeholderChildren: []
  };
}
function getNodeType(str) {
  if (str.startsWith("**")) {
    return NODE_TYPES.WILDCARD;
  }
  if (str[0] === ":" || str === "*") {
    return NODE_TYPES.PLACEHOLDER;
  }
  return NODE_TYPES.NORMAL;
}

function toRouteMatcher(router) {
  const table = _routerNodeToTable("", router.ctx.rootNode);
  return _createMatcher(table, router.ctx.options.strictTrailingSlash);
}
function _createMatcher(table, strictTrailingSlash) {
  return {
    ctx: { table },
    matchAll: (path) => _matchRoutes(path, table, strictTrailingSlash)
  };
}
function _createRouteTable() {
  return {
    static: /* @__PURE__ */ new Map(),
    wildcard: /* @__PURE__ */ new Map(),
    dynamic: /* @__PURE__ */ new Map()
  };
}
function _matchRoutes(path, table, strictTrailingSlash) {
  if (strictTrailingSlash !== true && path.endsWith("/")) {
    path = path.slice(0, -1) || "/";
  }
  const matches = [];
  for (const [key, value] of _sortRoutesMap(table.wildcard)) {
    if (path === key || path.startsWith(key + "/")) {
      matches.push(value);
    }
  }
  for (const [key, value] of _sortRoutesMap(table.dynamic)) {
    if (path.startsWith(key + "/")) {
      const subPath = "/" + path.slice(key.length).split("/").splice(2).join("/");
      matches.push(..._matchRoutes(subPath, value));
    }
  }
  const staticMatch = table.static.get(path);
  if (staticMatch) {
    matches.push(staticMatch);
  }
  return matches.filter(Boolean);
}
function _sortRoutesMap(m) {
  return [...m.entries()].sort((a, b) => a[0].length - b[0].length);
}
function _routerNodeToTable(initialPath, initialNode) {
  const table = _createRouteTable();
  function _addNode(path, node) {
    if (path) {
      if (node.type === NODE_TYPES.NORMAL && !(path.includes("*") || path.includes(":"))) {
        if (node.data) {
          table.static.set(path, node.data);
        }
      } else if (node.type === NODE_TYPES.WILDCARD) {
        table.wildcard.set(path.replace("/**", ""), node.data);
      } else if (node.type === NODE_TYPES.PLACEHOLDER) {
        const subTable = _routerNodeToTable("", node);
        if (node.data) {
          subTable.static.set("/", node.data);
        }
        table.dynamic.set(path.replace(/\/\*|\/:\w+/, ""), subTable);
        return;
      }
    }
    for (const [childPath, child] of node.children.entries()) {
      _addNode(`${path}/${childPath}`.replace("//", "/"), child);
    }
  }
  _addNode(initialPath, initialNode);
  return table;
}

function isPlainObject(value) {
  if (value === null || typeof value !== "object") {
    return false;
  }
  const prototype = Object.getPrototypeOf(value);
  if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
    return false;
  }
  if (Symbol.iterator in value) {
    return false;
  }
  if (Symbol.toStringTag in value) {
    return Object.prototype.toString.call(value) === "[object Module]";
  }
  return true;
}

function _defu(baseObject, defaults, namespace = ".", merger) {
  if (!isPlainObject(defaults)) {
    return _defu(baseObject, {}, namespace, merger);
  }
  const object = Object.assign({}, defaults);
  for (const key in baseObject) {
    if (key === "__proto__" || key === "constructor") {
      continue;
    }
    const value = baseObject[key];
    if (value === null || value === void 0) {
      continue;
    }
    if (merger && merger(object, key, value, namespace)) {
      continue;
    }
    if (Array.isArray(value) && Array.isArray(object[key])) {
      object[key] = [...value, ...object[key]];
    } else if (isPlainObject(value) && isPlainObject(object[key])) {
      object[key] = _defu(
        value,
        object[key],
        (namespace ? `${namespace}.` : "") + key.toString(),
        merger
      );
    } else {
      object[key] = value;
    }
  }
  return object;
}
function createDefu(merger) {
  return (...arguments_) => (
    // eslint-disable-next-line unicorn/no-array-reduce
    arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
  );
}
const defu = createDefu();
const defuFn = createDefu((object, key, currentValue) => {
  if (object[key] !== void 0 && typeof currentValue === "function") {
    object[key] = currentValue(object[key]);
    return true;
  }
});

function o(n){throw new Error(`${n} is not implemented yet!`)}let i$1 = class i extends EventEmitter{__unenv__={};readableEncoding=null;readableEnded=true;readableFlowing=false;readableHighWaterMark=0;readableLength=0;readableObjectMode=false;readableAborted=false;readableDidRead=false;closed=false;errored=null;readable=false;destroyed=false;static from(e,t){return new i(t)}constructor(e){super();}_read(e){}read(e){}setEncoding(e){return this}pause(){return this}resume(){return this}isPaused(){return  true}unpipe(e){return this}unshift(e,t){}wrap(e){return this}push(e,t){return  false}_destroy(e,t){this.removeAllListeners();}destroy(e){return this.destroyed=true,this._destroy(e),this}pipe(e,t){return {}}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return this.destroy(),Promise.resolve()}async*[Symbol.asyncIterator](){throw o("Readable.asyncIterator")}iterator(e){throw o("Readable.iterator")}map(e,t){throw o("Readable.map")}filter(e,t){throw o("Readable.filter")}forEach(e,t){throw o("Readable.forEach")}reduce(e,t,r){throw o("Readable.reduce")}find(e,t){throw o("Readable.find")}findIndex(e,t){throw o("Readable.findIndex")}some(e,t){throw o("Readable.some")}toArray(e){throw o("Readable.toArray")}every(e,t){throw o("Readable.every")}flatMap(e,t){throw o("Readable.flatMap")}drop(e,t){throw o("Readable.drop")}take(e,t){throw o("Readable.take")}asIndexedPairs(e){throw o("Readable.asIndexedPairs")}};let l$1 = class l extends EventEmitter{__unenv__={};writable=true;writableEnded=false;writableFinished=false;writableHighWaterMark=0;writableLength=0;writableObjectMode=false;writableCorked=0;closed=false;errored=null;writableNeedDrain=false;writableAborted=false;destroyed=false;_data;_encoding="utf8";constructor(e){super();}pipe(e,t){return {}}_write(e,t,r){if(this.writableEnded){r&&r();return}if(this._data===void 0)this._data=e;else {const s=typeof this._data=="string"?Buffer$1.from(this._data,this._encoding||t||"utf8"):this._data,a=typeof e=="string"?Buffer$1.from(e,t||this._encoding||"utf8"):e;this._data=Buffer$1.concat([s,a]);}this._encoding=t,r&&r();}_writev(e,t){}_destroy(e,t){}_final(e){}write(e,t,r){const s=typeof t=="string"?this._encoding:"utf8",a=typeof t=="function"?t:typeof r=="function"?r:void 0;return this._write(e,s,a),true}setDefaultEncoding(e){return this}end(e,t,r){const s=typeof e=="function"?e:typeof t=="function"?t:typeof r=="function"?r:void 0;if(this.writableEnded)return s&&s(),this;const a=e===s?void 0:e;if(a){const u=t===s?void 0:t;this.write(a,u,s);}return this.writableEnded=true,this.writableFinished=true,this.emit("close"),this.emit("finish"),this}cork(){}uncork(){}destroy(e){return this.destroyed=true,delete this._data,this.removeAllListeners(),this}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return Promise.resolve()}};const c=class{allowHalfOpen=true;_destroy;constructor(e=new i$1,t=new l$1){Object.assign(this,e),Object.assign(this,t),this._destroy=m(e._destroy,t._destroy);}};function _(){return Object.assign(c.prototype,i$1.prototype),Object.assign(c.prototype,l$1.prototype),c}function m(...n){return function(...e){for(const t of n)t(...e);}}const g=_();class A extends g{__unenv__={};bufferSize=0;bytesRead=0;bytesWritten=0;connecting=false;destroyed=false;pending=false;localAddress="";localPort=0;remoteAddress="";remoteFamily="";remotePort=0;autoSelectFamilyAttemptedAddresses=[];readyState="readOnly";constructor(e){super();}write(e,t,r){return  false}connect(e,t,r){return this}end(e,t,r){return this}setEncoding(e){return this}pause(){return this}resume(){return this}setTimeout(e,t){return this}setNoDelay(e){return this}setKeepAlive(e,t){return this}address(){return {}}unref(){return this}ref(){return this}destroySoon(){this.destroy();}resetAndDestroy(){const e=new Error("ERR_SOCKET_CLOSED");return e.code="ERR_SOCKET_CLOSED",this.destroy(e),this}}class y extends i$1{aborted=false;httpVersion="1.1";httpVersionMajor=1;httpVersionMinor=1;complete=true;connection;socket;headers={};trailers={};method="GET";url="/";statusCode=200;statusMessage="";closed=false;errored=null;readable=false;constructor(e){super(),this.socket=this.connection=e||new A;}get rawHeaders(){const e=this.headers,t=[];for(const r in e)if(Array.isArray(e[r]))for(const s of e[r])t.push(r,s);else t.push(r,e[r]);return t}get rawTrailers(){return []}setTimeout(e,t){return this}get headersDistinct(){return p(this.headers)}get trailersDistinct(){return p(this.trailers)}}function p(n){const e={};for(const[t,r]of Object.entries(n))t&&(e[t]=(Array.isArray(r)?r:[r]).filter(Boolean));return e}class w extends l$1{statusCode=200;statusMessage="";upgrading=false;chunkedEncoding=false;shouldKeepAlive=false;useChunkedEncodingByDefault=false;sendDate=false;finished=false;headersSent=false;strictContentLength=false;connection=null;socket=null;req;_headers={};constructor(e){super(),this.req=e;}assignSocket(e){e._httpMessage=this,this.socket=e,this.connection=e,this.emit("socket",e),this._flush();}_flush(){this.flushHeaders();}detachSocket(e){}writeContinue(e){}writeHead(e,t,r){e&&(this.statusCode=e),typeof t=="string"&&(this.statusMessage=t,t=void 0);const s=r||t;if(s&&!Array.isArray(s))for(const a in s)this.setHeader(a,s[a]);return this.headersSent=true,this}writeProcessing(){}setTimeout(e,t){return this}appendHeader(e,t){e=e.toLowerCase();const r=this._headers[e],s=[...Array.isArray(r)?r:[r],...Array.isArray(t)?t:[t]].filter(Boolean);return this._headers[e]=s.length>1?s:s[0],this}setHeader(e,t){return this._headers[e.toLowerCase()]=t,this}setHeaders(e){for(const[t,r]of Object.entries(e))this.setHeader(t,r);return this}getHeader(e){return this._headers[e.toLowerCase()]}getHeaders(){return this._headers}getHeaderNames(){return Object.keys(this._headers)}hasHeader(e){return e.toLowerCase()in this._headers}removeHeader(e){delete this._headers[e.toLowerCase()];}addTrailers(e){}flushHeaders(){}writeEarlyHints(e,t){typeof t=="function"&&t();}}const E=(()=>{const n=function(){};return n.prototype=Object.create(null),n})();function R(n={}){const e=new E,t=Array.isArray(n)||H(n)?n:Object.entries(n);for(const[r,s]of t)if(s){if(e[r]===void 0){e[r]=s;continue}e[r]=[...Array.isArray(e[r])?e[r]:[e[r]],...Array.isArray(s)?s:[s]];}return e}function H(n){return typeof n?.entries=="function"}function v(n={}){if(n instanceof Headers)return n;const e=new Headers;for(const[t,r]of Object.entries(n))if(r!==void 0){if(Array.isArray(r)){for(const s of r)e.append(t,String(s));continue}e.set(t,String(r));}return e}const S=new Set([101,204,205,304]);async function b(n,e){const t=new y,r=new w(t);t.url=e.url?.toString()||"/";let s;if(!t.url.startsWith("/")){const d=new URL(t.url);s=d.host,t.url=d.pathname+d.search+d.hash;}t.method=e.method||"GET",t.headers=R(e.headers||{}),t.headers.host||(t.headers.host=e.host||s||"localhost"),t.connection.encrypted=t.connection.encrypted||e.protocol==="https",t.body=e.body||null,t.__unenv__=e.context,await n(t,r);let a=r._data;(S.has(r.statusCode)||t.method.toUpperCase()==="HEAD")&&(a=null,delete r._headers["content-length"]);const u={status:r.statusCode,statusText:r.statusMessage,headers:r._headers,body:a};return t.destroy(),r.destroy(),u}async function C(n,e,t={}){try{const r=await b(n,{url:e,...t});return new Response(r.body,{status:r.status,statusText:r.statusText,headers:v(r.headers)})}catch(r){return new Response(r.toString(),{status:Number.parseInt(r.statusCode||r.code)||500,statusText:r.statusText})}}

function hasProp(obj, prop) {
  try {
    return prop in obj;
  } catch {
    return false;
  }
}

class H3Error extends Error {
  static __h3_error__ = true;
  statusCode = 500;
  fatal = false;
  unhandled = false;
  statusMessage;
  data;
  cause;
  constructor(message, opts = {}) {
    super(message, opts);
    if (opts.cause && !this.cause) {
      this.cause = opts.cause;
    }
  }
  toJSON() {
    const obj = {
      message: this.message,
      statusCode: sanitizeStatusCode(this.statusCode, 500)
    };
    if (this.statusMessage) {
      obj.statusMessage = sanitizeStatusMessage(this.statusMessage);
    }
    if (this.data !== void 0) {
      obj.data = this.data;
    }
    return obj;
  }
}
function createError$1(input) {
  if (typeof input === "string") {
    return new H3Error(input);
  }
  if (isError(input)) {
    return input;
  }
  const err = new H3Error(input.message ?? input.statusMessage ?? "", {
    cause: input.cause || input
  });
  if (hasProp(input, "stack")) {
    try {
      Object.defineProperty(err, "stack", {
        get() {
          return input.stack;
        }
      });
    } catch {
      try {
        err.stack = input.stack;
      } catch {
      }
    }
  }
  if (input.data) {
    err.data = input.data;
  }
  if (input.statusCode) {
    err.statusCode = sanitizeStatusCode(input.statusCode, err.statusCode);
  } else if (input.status) {
    err.statusCode = sanitizeStatusCode(input.status, err.statusCode);
  }
  if (input.statusMessage) {
    err.statusMessage = input.statusMessage;
  } else if (input.statusText) {
    err.statusMessage = input.statusText;
  }
  if (err.statusMessage) {
    const originalMessage = err.statusMessage;
    const sanitizedMessage = sanitizeStatusMessage(err.statusMessage);
    if (sanitizedMessage !== originalMessage) {
      console.warn(
        "[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default."
      );
    }
  }
  if (input.fatal !== void 0) {
    err.fatal = input.fatal;
  }
  if (input.unhandled !== void 0) {
    err.unhandled = input.unhandled;
  }
  return err;
}
function sendError(event, error, debug) {
  if (event.handled) {
    return;
  }
  const h3Error = isError(error) ? error : createError$1(error);
  const responseBody = {
    statusCode: h3Error.statusCode,
    statusMessage: h3Error.statusMessage,
    stack: [],
    data: h3Error.data
  };
  if (debug) {
    responseBody.stack = (h3Error.stack || "").split("\n").map((l) => l.trim());
  }
  if (event.handled) {
    return;
  }
  const _code = Number.parseInt(h3Error.statusCode);
  setResponseStatus(event, _code, h3Error.statusMessage);
  event.node.res.setHeader("content-type", MIMES.json);
  event.node.res.end(JSON.stringify(responseBody, void 0, 2));
}
function isError(input) {
  return input?.constructor?.__h3_error__ === true;
}

function getQuery(event) {
  return getQuery$1(event.path || "");
}
function isMethod(event, expected, allowHead) {
  if (typeof expected === "string") {
    if (event.method === expected) {
      return true;
    }
  } else if (expected.includes(event.method)) {
    return true;
  }
  return false;
}
function assertMethod(event, expected, allowHead) {
  if (!isMethod(event, expected)) {
    throw createError$1({
      statusCode: 405,
      statusMessage: "HTTP method is not allowed."
    });
  }
}
function getRequestHeaders(event) {
  const _headers = {};
  for (const key in event.node.req.headers) {
    const val = event.node.req.headers[key];
    _headers[key] = Array.isArray(val) ? val.filter(Boolean).join(", ") : val;
  }
  return _headers;
}
function getRequestHeader(event, name) {
  const headers = getRequestHeaders(event);
  const value = headers[name.toLowerCase()];
  return value;
}
function getRequestHost(event, opts = {}) {
  if (opts.xForwardedHost) {
    const _header = event.node.req.headers["x-forwarded-host"];
    const xForwardedHost = (_header || "").split(",").shift()?.trim();
    if (xForwardedHost) {
      return xForwardedHost;
    }
  }
  return event.node.req.headers.host || "localhost";
}
function getRequestProtocol(event, opts = {}) {
  if (opts.xForwardedProto !== false && event.node.req.headers["x-forwarded-proto"] === "https") {
    return "https";
  }
  return event.node.req.connection?.encrypted ? "https" : "http";
}
function getRequestURL(event, opts = {}) {
  const host = getRequestHost(event, opts);
  const protocol = getRequestProtocol(event, opts);
  const path = (event.node.req.originalUrl || event.path).replace(
    /^[/\\]+/g,
    "/"
  );
  return new URL(path, `${protocol}://${host}`);
}

const RawBodySymbol = Symbol.for("h3RawBody");
const ParsedBodySymbol = Symbol.for("h3ParsedBody");
const PayloadMethods$1 = ["PATCH", "POST", "PUT", "DELETE"];
function readRawBody(event, encoding = "utf8") {
  assertMethod(event, PayloadMethods$1);
  const _rawBody = event._requestBody || event.web?.request?.body || event.node.req[RawBodySymbol] || event.node.req.rawBody || event.node.req.body;
  if (_rawBody) {
    const promise2 = Promise.resolve(_rawBody).then((_resolved) => {
      if (Buffer.isBuffer(_resolved)) {
        return _resolved;
      }
      if (typeof _resolved.pipeTo === "function") {
        return new Promise((resolve, reject) => {
          const chunks = [];
          _resolved.pipeTo(
            new WritableStream({
              write(chunk) {
                chunks.push(chunk);
              },
              close() {
                resolve(Buffer.concat(chunks));
              },
              abort(reason) {
                reject(reason);
              }
            })
          ).catch(reject);
        });
      } else if (typeof _resolved.pipe === "function") {
        return new Promise((resolve, reject) => {
          const chunks = [];
          _resolved.on("data", (chunk) => {
            chunks.push(chunk);
          }).on("end", () => {
            resolve(Buffer.concat(chunks));
          }).on("error", reject);
        });
      }
      if (_resolved.constructor === Object) {
        return Buffer.from(JSON.stringify(_resolved));
      }
      if (_resolved instanceof URLSearchParams) {
        return Buffer.from(_resolved.toString());
      }
      if (_resolved instanceof FormData) {
        return new Response(_resolved).bytes().then((uint8arr) => Buffer.from(uint8arr));
      }
      return Buffer.from(_resolved);
    });
    return encoding ? promise2.then((buff) => buff.toString(encoding)) : promise2;
  }
  if (!Number.parseInt(event.node.req.headers["content-length"] || "") && !/\bchunked\b/i.test(
    String(event.node.req.headers["transfer-encoding"] ?? "")
  )) {
    return Promise.resolve(void 0);
  }
  const promise = event.node.req[RawBodySymbol] = new Promise(
    (resolve, reject) => {
      const bodyData = [];
      event.node.req.on("error", (err) => {
        reject(err);
      }).on("data", (chunk) => {
        bodyData.push(chunk);
      }).on("end", () => {
        resolve(Buffer.concat(bodyData));
      });
    }
  );
  const result = encoding ? promise.then((buff) => buff.toString(encoding)) : promise;
  return result;
}
async function readBody(event, options = {}) {
  const request = event.node.req;
  if (hasProp(request, ParsedBodySymbol)) {
    return request[ParsedBodySymbol];
  }
  const contentType = request.headers["content-type"] || "";
  const body = await readRawBody(event);
  let parsed;
  if (contentType === "application/json") {
    parsed = _parseJSON(body, options.strict ?? true);
  } else if (contentType.startsWith("application/x-www-form-urlencoded")) {
    parsed = _parseURLEncodedBody(body);
  } else if (contentType.startsWith("text/")) {
    parsed = body;
  } else {
    parsed = _parseJSON(body, options.strict ?? false);
  }
  request[ParsedBodySymbol] = parsed;
  return parsed;
}
function getRequestWebStream(event) {
  if (!PayloadMethods$1.includes(event.method)) {
    return;
  }
  const bodyStream = event.web?.request?.body || event._requestBody;
  if (bodyStream) {
    return bodyStream;
  }
  const _hasRawBody = RawBodySymbol in event.node.req || "rawBody" in event.node.req || "body" in event.node.req || "__unenv__" in event.node.req;
  if (_hasRawBody) {
    return new ReadableStream({
      async start(controller) {
        const _rawBody = await readRawBody(event, false);
        if (_rawBody) {
          controller.enqueue(_rawBody);
        }
        controller.close();
      }
    });
  }
  return new ReadableStream({
    start: (controller) => {
      event.node.req.on("data", (chunk) => {
        controller.enqueue(chunk);
      });
      event.node.req.on("end", () => {
        controller.close();
      });
      event.node.req.on("error", (err) => {
        controller.error(err);
      });
    }
  });
}
function _parseJSON(body = "", strict) {
  if (!body) {
    return void 0;
  }
  try {
    return destr(body, { strict });
  } catch {
    throw createError$1({
      statusCode: 400,
      statusMessage: "Bad Request",
      message: "Invalid JSON body"
    });
  }
}
function _parseURLEncodedBody(body) {
  const form = new URLSearchParams(body);
  const parsedForm = /* @__PURE__ */ Object.create(null);
  for (const [key, value] of form.entries()) {
    if (hasProp(parsedForm, key)) {
      if (!Array.isArray(parsedForm[key])) {
        parsedForm[key] = [parsedForm[key]];
      }
      parsedForm[key].push(value);
    } else {
      parsedForm[key] = value;
    }
  }
  return parsedForm;
}

function handleCacheHeaders(event, opts) {
  const cacheControls = ["public", ...opts.cacheControls || []];
  let cacheMatched = false;
  if (opts.maxAge !== void 0) {
    cacheControls.push(`max-age=${+opts.maxAge}`, `s-maxage=${+opts.maxAge}`);
  }
  if (opts.modifiedTime) {
    const modifiedTime = new Date(opts.modifiedTime);
    const ifModifiedSince = event.node.req.headers["if-modified-since"];
    event.node.res.setHeader("last-modified", modifiedTime.toUTCString());
    if (ifModifiedSince && new Date(ifModifiedSince) >= modifiedTime) {
      cacheMatched = true;
    }
  }
  if (opts.etag) {
    event.node.res.setHeader("etag", opts.etag);
    const ifNonMatch = event.node.req.headers["if-none-match"];
    if (ifNonMatch === opts.etag) {
      cacheMatched = true;
    }
  }
  event.node.res.setHeader("cache-control", cacheControls.join(", "));
  if (cacheMatched) {
    event.node.res.statusCode = 304;
    if (!event.handled) {
      event.node.res.end();
    }
    return true;
  }
  return false;
}

const MIMES = {
  html: "text/html",
  json: "application/json"
};

const DISALLOWED_STATUS_CHARS = /[^\u0009\u0020-\u007E]/g;
function sanitizeStatusMessage(statusMessage = "") {
  return statusMessage.replace(DISALLOWED_STATUS_CHARS, "");
}
function sanitizeStatusCode(statusCode, defaultStatusCode = 200) {
  if (!statusCode) {
    return defaultStatusCode;
  }
  if (typeof statusCode === "string") {
    statusCode = Number.parseInt(statusCode, 10);
  }
  if (statusCode < 100 || statusCode > 999) {
    return defaultStatusCode;
  }
  return statusCode;
}
function splitCookiesString(cookiesString) {
  if (Array.isArray(cookiesString)) {
    return cookiesString.flatMap((c) => splitCookiesString(c));
  }
  if (typeof cookiesString !== "string") {
    return [];
  }
  const cookiesStrings = [];
  let pos = 0;
  let start;
  let ch;
  let lastComma;
  let nextStart;
  let cookiesSeparatorFound;
  const skipWhitespace = () => {
    while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
      pos += 1;
    }
    return pos < cookiesString.length;
  };
  const notSpecialChar = () => {
    ch = cookiesString.charAt(pos);
    return ch !== "=" && ch !== ";" && ch !== ",";
  };
  while (pos < cookiesString.length) {
    start = pos;
    cookiesSeparatorFound = false;
    while (skipWhitespace()) {
      ch = cookiesString.charAt(pos);
      if (ch === ",") {
        lastComma = pos;
        pos += 1;
        skipWhitespace();
        nextStart = pos;
        while (pos < cookiesString.length && notSpecialChar()) {
          pos += 1;
        }
        if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
          cookiesSeparatorFound = true;
          pos = nextStart;
          cookiesStrings.push(cookiesString.slice(start, lastComma));
          start = pos;
        } else {
          pos = lastComma + 1;
        }
      } else {
        pos += 1;
      }
    }
    if (!cookiesSeparatorFound || pos >= cookiesString.length) {
      cookiesStrings.push(cookiesString.slice(start));
    }
  }
  return cookiesStrings;
}

const defer = typeof setImmediate === "undefined" ? (fn) => fn() : setImmediate;
function send(event, data, type) {
  if (type) {
    defaultContentType(event, type);
  }
  return new Promise((resolve) => {
    defer(() => {
      if (!event.handled) {
        event.node.res.end(data);
      }
      resolve();
    });
  });
}
function sendNoContent(event, code) {
  if (event.handled) {
    return;
  }
  if (!code && event.node.res.statusCode !== 200) {
    code = event.node.res.statusCode;
  }
  const _code = sanitizeStatusCode(code, 204);
  if (_code === 204) {
    event.node.res.removeHeader("content-length");
  }
  event.node.res.writeHead(_code);
  event.node.res.end();
}
function setResponseStatus(event, code, text) {
  if (code) {
    event.node.res.statusCode = sanitizeStatusCode(
      code,
      event.node.res.statusCode
    );
  }
  if (text) {
    event.node.res.statusMessage = sanitizeStatusMessage(text);
  }
}
function getResponseStatus(event) {
  return event.node.res.statusCode;
}
function getResponseStatusText(event) {
  return event.node.res.statusMessage;
}
function defaultContentType(event, type) {
  if (type && event.node.res.statusCode !== 304 && !event.node.res.getHeader("content-type")) {
    event.node.res.setHeader("content-type", type);
  }
}
function sendRedirect(event, location, code = 302) {
  event.node.res.statusCode = sanitizeStatusCode(
    code,
    event.node.res.statusCode
  );
  event.node.res.setHeader("location", location);
  const encodedLoc = location.replace(/"/g, "%22");
  const html = `<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=${encodedLoc}"></head></html>`;
  return send(event, html, MIMES.html);
}
function getResponseHeader(event, name) {
  return event.node.res.getHeader(name);
}
function setResponseHeaders(event, headers) {
  for (const [name, value] of Object.entries(headers)) {
    event.node.res.setHeader(
      name,
      value
    );
  }
}
const setHeaders = setResponseHeaders;
function setResponseHeader(event, name, value) {
  event.node.res.setHeader(name, value);
}
function appendResponseHeader(event, name, value) {
  let current = event.node.res.getHeader(name);
  if (!current) {
    event.node.res.setHeader(name, value);
    return;
  }
  if (!Array.isArray(current)) {
    current = [current.toString()];
  }
  event.node.res.setHeader(name, [...current, value]);
}
function removeResponseHeader(event, name) {
  return event.node.res.removeHeader(name);
}
function isStream(data) {
  if (!data || typeof data !== "object") {
    return false;
  }
  if (typeof data.pipe === "function") {
    if (typeof data._read === "function") {
      return true;
    }
    if (typeof data.abort === "function") {
      return true;
    }
  }
  if (typeof data.pipeTo === "function") {
    return true;
  }
  return false;
}
function isWebResponse(data) {
  return typeof Response !== "undefined" && data instanceof Response;
}
function sendStream(event, stream) {
  if (!stream || typeof stream !== "object") {
    throw new Error("[h3] Invalid stream provided.");
  }
  event.node.res._data = stream;
  if (!event.node.res.socket) {
    event._handled = true;
    return Promise.resolve();
  }
  if (hasProp(stream, "pipeTo") && typeof stream.pipeTo === "function") {
    return stream.pipeTo(
      new WritableStream({
        write(chunk) {
          event.node.res.write(chunk);
        }
      })
    ).then(() => {
      event.node.res.end();
    });
  }
  if (hasProp(stream, "pipe") && typeof stream.pipe === "function") {
    return new Promise((resolve, reject) => {
      stream.pipe(event.node.res);
      if (stream.on) {
        stream.on("end", () => {
          event.node.res.end();
          resolve();
        });
        stream.on("error", (error) => {
          reject(error);
        });
      }
      event.node.res.on("close", () => {
        if (stream.abort) {
          stream.abort();
        }
      });
    });
  }
  throw new Error("[h3] Invalid or incompatible stream provided.");
}
function sendWebResponse(event, response) {
  for (const [key, value] of response.headers) {
    if (key === "set-cookie") {
      event.node.res.appendHeader(key, splitCookiesString(value));
    } else {
      event.node.res.setHeader(key, value);
    }
  }
  if (response.status) {
    event.node.res.statusCode = sanitizeStatusCode(
      response.status,
      event.node.res.statusCode
    );
  }
  if (response.statusText) {
    event.node.res.statusMessage = sanitizeStatusMessage(response.statusText);
  }
  if (response.redirected) {
    event.node.res.setHeader("location", response.url);
  }
  if (!response.body) {
    event.node.res.end();
    return;
  }
  return sendStream(event, response.body);
}

const PayloadMethods = /* @__PURE__ */ new Set(["PATCH", "POST", "PUT", "DELETE"]);
const ignoredHeaders = /* @__PURE__ */ new Set([
  "transfer-encoding",
  "accept-encoding",
  "connection",
  "keep-alive",
  "upgrade",
  "expect",
  "host",
  "accept"
]);
async function proxyRequest(event, target, opts = {}) {
  let body;
  let duplex;
  if (PayloadMethods.has(event.method)) {
    if (opts.streamRequest) {
      body = getRequestWebStream(event);
      duplex = "half";
    } else {
      body = await readRawBody(event, false).catch(() => void 0);
    }
  }
  const method = opts.fetchOptions?.method || event.method;
  const fetchHeaders = mergeHeaders$1(
    getProxyRequestHeaders(event, { host: target.startsWith("/") }),
    opts.fetchOptions?.headers,
    opts.headers
  );
  return sendProxy(event, target, {
    ...opts,
    fetchOptions: {
      method,
      body,
      duplex,
      ...opts.fetchOptions,
      headers: fetchHeaders
    }
  });
}
async function sendProxy(event, target, opts = {}) {
  let response;
  try {
    response = await _getFetch(opts.fetch)(target, {
      headers: opts.headers,
      ignoreResponseError: true,
      // make $ofetch.raw transparent
      ...opts.fetchOptions
    });
  } catch (error) {
    throw createError$1({
      status: 502,
      statusMessage: "Bad Gateway",
      cause: error
    });
  }
  event.node.res.statusCode = sanitizeStatusCode(
    response.status,
    event.node.res.statusCode
  );
  event.node.res.statusMessage = sanitizeStatusMessage(response.statusText);
  const cookies = [];
  for (const [key, value] of response.headers.entries()) {
    if (key === "content-encoding") {
      continue;
    }
    if (key === "content-length") {
      continue;
    }
    if (key === "set-cookie") {
      cookies.push(...splitCookiesString(value));
      continue;
    }
    event.node.res.setHeader(key, value);
  }
  if (cookies.length > 0) {
    event.node.res.setHeader(
      "set-cookie",
      cookies.map((cookie) => {
        if (opts.cookieDomainRewrite) {
          cookie = rewriteCookieProperty(
            cookie,
            opts.cookieDomainRewrite,
            "domain"
          );
        }
        if (opts.cookiePathRewrite) {
          cookie = rewriteCookieProperty(
            cookie,
            opts.cookiePathRewrite,
            "path"
          );
        }
        return cookie;
      })
    );
  }
  if (opts.onResponse) {
    await opts.onResponse(event, response);
  }
  if (response._data !== void 0) {
    return response._data;
  }
  if (event.handled) {
    return;
  }
  if (opts.sendStream === false) {
    const data = new Uint8Array(await response.arrayBuffer());
    return event.node.res.end(data);
  }
  if (response.body) {
    for await (const chunk of response.body) {
      event.node.res.write(chunk);
    }
  }
  return event.node.res.end();
}
function getProxyRequestHeaders(event, opts) {
  const headers = /* @__PURE__ */ Object.create(null);
  const reqHeaders = getRequestHeaders(event);
  for (const name in reqHeaders) {
    if (!ignoredHeaders.has(name) || name === "host" && opts?.host) {
      headers[name] = reqHeaders[name];
    }
  }
  return headers;
}
function fetchWithEvent(event, req, init, options) {
  return _getFetch(options?.fetch)(req, {
    ...init,
    context: init?.context || event.context,
    headers: {
      ...getProxyRequestHeaders(event, {
        host: typeof req === "string" && req.startsWith("/")
      }),
      ...init?.headers
    }
  });
}
function _getFetch(_fetch) {
  if (_fetch) {
    return _fetch;
  }
  if (globalThis.fetch) {
    return globalThis.fetch;
  }
  throw new Error(
    "fetch is not available. Try importing `node-fetch-native/polyfill` for Node.js."
  );
}
function rewriteCookieProperty(header, map, property) {
  const _map = typeof map === "string" ? { "*": map } : map;
  return header.replace(
    new RegExp(`(;\\s*${property}=)([^;]+)`, "gi"),
    (match, prefix, previousValue) => {
      let newValue;
      if (previousValue in _map) {
        newValue = _map[previousValue];
      } else if ("*" in _map) {
        newValue = _map["*"];
      } else {
        return match;
      }
      return newValue ? prefix + newValue : "";
    }
  );
}
function mergeHeaders$1(defaults, ...inputs) {
  const _inputs = inputs.filter(Boolean);
  if (_inputs.length === 0) {
    return defaults;
  }
  const merged = new Headers(defaults);
  for (const input of _inputs) {
    const entries = Array.isArray(input) ? input : typeof input.entries === "function" ? input.entries() : Object.entries(input);
    for (const [key, value] of entries) {
      if (value !== void 0) {
        merged.set(key, value);
      }
    }
  }
  return merged;
}

class H3Event {
  "__is_event__" = true;
  // Context
  node;
  // Node
  web;
  // Web
  context = {};
  // Shared
  // Request
  _method;
  _path;
  _headers;
  _requestBody;
  // Response
  _handled = false;
  // Hooks
  _onBeforeResponseCalled;
  _onAfterResponseCalled;
  constructor(req, res) {
    this.node = { req, res };
  }
  // --- Request ---
  get method() {
    if (!this._method) {
      this._method = (this.node.req.method || "GET").toUpperCase();
    }
    return this._method;
  }
  get path() {
    return this._path || this.node.req.url || "/";
  }
  get headers() {
    if (!this._headers) {
      this._headers = _normalizeNodeHeaders(this.node.req.headers);
    }
    return this._headers;
  }
  // --- Respoonse ---
  get handled() {
    return this._handled || this.node.res.writableEnded || this.node.res.headersSent;
  }
  respondWith(response) {
    return Promise.resolve(response).then(
      (_response) => sendWebResponse(this, _response)
    );
  }
  // --- Utils ---
  toString() {
    return `[${this.method}] ${this.path}`;
  }
  toJSON() {
    return this.toString();
  }
  // --- Deprecated ---
  /** @deprecated Please use `event.node.req` instead. */
  get req() {
    return this.node.req;
  }
  /** @deprecated Please use `event.node.res` instead. */
  get res() {
    return this.node.res;
  }
}
function isEvent(input) {
  return hasProp(input, "__is_event__");
}
function createEvent(req, res) {
  return new H3Event(req, res);
}
function _normalizeNodeHeaders(nodeHeaders) {
  const headers = new Headers();
  for (const [name, value] of Object.entries(nodeHeaders)) {
    if (Array.isArray(value)) {
      for (const item of value) {
        headers.append(name, item);
      }
    } else if (value) {
      headers.set(name, value);
    }
  }
  return headers;
}

function defineEventHandler(handler) {
  if (typeof handler === "function") {
    handler.__is_handler__ = true;
    return handler;
  }
  const _hooks = {
    onRequest: _normalizeArray(handler.onRequest),
    onBeforeResponse: _normalizeArray(handler.onBeforeResponse)
  };
  const _handler = (event) => {
    return _callHandler(event, handler.handler, _hooks);
  };
  _handler.__is_handler__ = true;
  _handler.__resolve__ = handler.handler.__resolve__;
  _handler.__websocket__ = handler.websocket;
  return _handler;
}
function _normalizeArray(input) {
  return input ? Array.isArray(input) ? input : [input] : void 0;
}
async function _callHandler(event, handler, hooks) {
  if (hooks.onRequest) {
    for (const hook of hooks.onRequest) {
      await hook(event);
      if (event.handled) {
        return;
      }
    }
  }
  const body = await handler(event);
  const response = { body };
  if (hooks.onBeforeResponse) {
    for (const hook of hooks.onBeforeResponse) {
      await hook(event, response);
    }
  }
  return response.body;
}
const eventHandler = defineEventHandler;
function isEventHandler(input) {
  return hasProp(input, "__is_handler__");
}
function toEventHandler(input, _, _route) {
  if (!isEventHandler(input)) {
    console.warn(
      "[h3] Implicit event handler conversion is deprecated. Use `eventHandler()` or `fromNodeMiddleware()` to define event handlers.",
      _route && _route !== "/" ? `
     Route: ${_route}` : "",
      `
     Handler: ${input}`
    );
  }
  return input;
}
function defineLazyEventHandler(factory) {
  let _promise;
  let _resolved;
  const resolveHandler = () => {
    if (_resolved) {
      return Promise.resolve(_resolved);
    }
    if (!_promise) {
      _promise = Promise.resolve(factory()).then((r) => {
        const handler2 = r.default || r;
        if (typeof handler2 !== "function") {
          throw new TypeError(
            "Invalid lazy handler result. It should be a function:",
            handler2
          );
        }
        _resolved = { handler: toEventHandler(r.default || r) };
        return _resolved;
      });
    }
    return _promise;
  };
  const handler = eventHandler((event) => {
    if (_resolved) {
      return _resolved.handler(event);
    }
    return resolveHandler().then((r) => r.handler(event));
  });
  handler.__resolve__ = resolveHandler;
  return handler;
}
const lazyEventHandler = defineLazyEventHandler;

function createApp(options = {}) {
  const stack = [];
  const handler = createAppEventHandler(stack, options);
  const resolve = createResolver(stack);
  handler.__resolve__ = resolve;
  const getWebsocket = cachedFn(() => websocketOptions(resolve, options));
  const app = {
    // @ts-expect-error
    use: (arg1, arg2, arg3) => use(app, arg1, arg2, arg3),
    resolve,
    handler,
    stack,
    options,
    get websocket() {
      return getWebsocket();
    }
  };
  return app;
}
function use(app, arg1, arg2, arg3) {
  if (Array.isArray(arg1)) {
    for (const i of arg1) {
      use(app, i, arg2, arg3);
    }
  } else if (Array.isArray(arg2)) {
    for (const i of arg2) {
      use(app, arg1, i, arg3);
    }
  } else if (typeof arg1 === "string") {
    app.stack.push(
      normalizeLayer({ ...arg3, route: arg1, handler: arg2 })
    );
  } else if (typeof arg1 === "function") {
    app.stack.push(normalizeLayer({ ...arg2, handler: arg1 }));
  } else {
    app.stack.push(normalizeLayer({ ...arg1 }));
  }
  return app;
}
function createAppEventHandler(stack, options) {
  const spacing = options.debug ? 2 : void 0;
  return eventHandler(async (event) => {
    event.node.req.originalUrl = event.node.req.originalUrl || event.node.req.url || "/";
    const _reqPath = event._path || event.node.req.url || "/";
    let _layerPath;
    if (options.onRequest) {
      await options.onRequest(event);
    }
    for (const layer of stack) {
      if (layer.route.length > 1) {
        if (!_reqPath.startsWith(layer.route)) {
          continue;
        }
        _layerPath = _reqPath.slice(layer.route.length) || "/";
      } else {
        _layerPath = _reqPath;
      }
      if (layer.match && !layer.match(_layerPath, event)) {
        continue;
      }
      event._path = _layerPath;
      event.node.req.url = _layerPath;
      const val = await layer.handler(event);
      const _body = val === void 0 ? void 0 : await val;
      if (_body !== void 0) {
        const _response = { body: _body };
        if (options.onBeforeResponse) {
          event._onBeforeResponseCalled = true;
          await options.onBeforeResponse(event, _response);
        }
        await handleHandlerResponse(event, _response.body, spacing);
        if (options.onAfterResponse) {
          event._onAfterResponseCalled = true;
          await options.onAfterResponse(event, _response);
        }
        return;
      }
      if (event.handled) {
        if (options.onAfterResponse) {
          event._onAfterResponseCalled = true;
          await options.onAfterResponse(event, void 0);
        }
        return;
      }
    }
    if (!event.handled) {
      throw createError$1({
        statusCode: 404,
        statusMessage: `Cannot find any path matching ${event.path || "/"}.`
      });
    }
    if (options.onAfterResponse) {
      event._onAfterResponseCalled = true;
      await options.onAfterResponse(event, void 0);
    }
  });
}
function createResolver(stack) {
  return async (path) => {
    let _layerPath;
    for (const layer of stack) {
      if (layer.route === "/" && !layer.handler.__resolve__) {
        continue;
      }
      if (!path.startsWith(layer.route)) {
        continue;
      }
      _layerPath = path.slice(layer.route.length) || "/";
      if (layer.match && !layer.match(_layerPath, void 0)) {
        continue;
      }
      let res = { route: layer.route, handler: layer.handler };
      if (res.handler.__resolve__) {
        const _res = await res.handler.__resolve__(_layerPath);
        if (!_res) {
          continue;
        }
        res = {
          ...res,
          ..._res,
          route: joinURL(res.route || "/", _res.route || "/")
        };
      }
      return res;
    }
  };
}
function normalizeLayer(input) {
  let handler = input.handler;
  if (handler.handler) {
    handler = handler.handler;
  }
  if (input.lazy) {
    handler = lazyEventHandler(handler);
  } else if (!isEventHandler(handler)) {
    handler = toEventHandler(handler, void 0, input.route);
  }
  return {
    route: withoutTrailingSlash(input.route),
    match: input.match,
    handler
  };
}
function handleHandlerResponse(event, val, jsonSpace) {
  if (val === null) {
    return sendNoContent(event);
  }
  if (val) {
    if (isWebResponse(val)) {
      return sendWebResponse(event, val);
    }
    if (isStream(val)) {
      return sendStream(event, val);
    }
    if (val.buffer) {
      return send(event, val);
    }
    if (val.arrayBuffer && typeof val.arrayBuffer === "function") {
      return val.arrayBuffer().then((arrayBuffer) => {
        return send(event, Buffer.from(arrayBuffer), val.type);
      });
    }
    if (val instanceof Error) {
      throw createError$1(val);
    }
    if (typeof val.end === "function") {
      return true;
    }
  }
  const valType = typeof val;
  if (valType === "string") {
    return send(event, val, MIMES.html);
  }
  if (valType === "object" || valType === "boolean" || valType === "number") {
    return send(event, JSON.stringify(val, void 0, jsonSpace), MIMES.json);
  }
  if (valType === "bigint") {
    return send(event, val.toString(), MIMES.json);
  }
  throw createError$1({
    statusCode: 500,
    statusMessage: `[h3] Cannot send ${valType} as response.`
  });
}
function cachedFn(fn) {
  let cache;
  return () => {
    if (!cache) {
      cache = fn();
    }
    return cache;
  };
}
function websocketOptions(evResolver, appOptions) {
  return {
    ...appOptions.websocket,
    async resolve(info) {
      const url = info.request?.url || info.url || "/";
      const { pathname } = typeof url === "string" ? parseURL(url) : url;
      const resolved = await evResolver(pathname);
      return resolved?.handler?.__websocket__ || {};
    }
  };
}

const RouterMethods = [
  "connect",
  "delete",
  "get",
  "head",
  "options",
  "post",
  "put",
  "trace",
  "patch"
];
function createRouter(opts = {}) {
  const _router = createRouter$1({});
  const routes = {};
  let _matcher;
  const router = {};
  const addRoute = (path, handler, method) => {
    let route = routes[path];
    if (!route) {
      routes[path] = route = { path, handlers: {} };
      _router.insert(path, route);
    }
    if (Array.isArray(method)) {
      for (const m of method) {
        addRoute(path, handler, m);
      }
    } else {
      route.handlers[method] = toEventHandler(handler, void 0, path);
    }
    return router;
  };
  router.use = router.add = (path, handler, method) => addRoute(path, handler, method || "all");
  for (const method of RouterMethods) {
    router[method] = (path, handle) => router.add(path, handle, method);
  }
  const matchHandler = (path = "/", method = "get") => {
    const qIndex = path.indexOf("?");
    if (qIndex !== -1) {
      path = path.slice(0, Math.max(0, qIndex));
    }
    const matched = _router.lookup(path);
    if (!matched || !matched.handlers) {
      return {
        error: createError$1({
          statusCode: 404,
          name: "Not Found",
          statusMessage: `Cannot find any route matching ${path || "/"}.`
        })
      };
    }
    let handler = matched.handlers[method] || matched.handlers.all;
    if (!handler) {
      if (!_matcher) {
        _matcher = toRouteMatcher(_router);
      }
      const _matches = _matcher.matchAll(path).reverse();
      for (const _match of _matches) {
        if (_match.handlers[method]) {
          handler = _match.handlers[method];
          matched.handlers[method] = matched.handlers[method] || handler;
          break;
        }
        if (_match.handlers.all) {
          handler = _match.handlers.all;
          matched.handlers.all = matched.handlers.all || handler;
          break;
        }
      }
    }
    if (!handler) {
      return {
        error: createError$1({
          statusCode: 405,
          name: "Method Not Allowed",
          statusMessage: `Method ${method} is not allowed on this route.`
        })
      };
    }
    return { matched, handler };
  };
  const isPreemptive = opts.preemptive || opts.preemtive;
  router.handler = eventHandler((event) => {
    const match = matchHandler(
      event.path,
      event.method.toLowerCase()
    );
    if ("error" in match) {
      if (isPreemptive) {
        throw match.error;
      } else {
        return;
      }
    }
    event.context.matchedRoute = match.matched;
    const params = match.matched.params || {};
    event.context.params = params;
    return Promise.resolve(match.handler(event)).then((res) => {
      if (res === void 0 && isPreemptive) {
        return null;
      }
      return res;
    });
  });
  router.handler.__resolve__ = async (path) => {
    path = withLeadingSlash(path);
    const match = matchHandler(path);
    if ("error" in match) {
      return;
    }
    let res = {
      route: match.matched.path,
      handler: match.handler
    };
    if (match.handler.__resolve__) {
      const _res = await match.handler.__resolve__(path);
      if (!_res) {
        return;
      }
      res = { ...res, ..._res };
    }
    return res;
  };
  return router;
}
function toNodeListener(app) {
  const toNodeHandle = async function(req, res) {
    const event = createEvent(req, res);
    try {
      await app.handler(event);
    } catch (_error) {
      const error = createError$1(_error);
      if (!isError(_error)) {
        error.unhandled = true;
      }
      setResponseStatus(event, error.statusCode, error.statusMessage);
      if (app.options.onError) {
        await app.options.onError(error, event);
      }
      if (event.handled) {
        return;
      }
      if (error.unhandled || error.fatal) {
        console.error("[h3]", error.fatal ? "[fatal]" : "[unhandled]", error);
      }
      if (app.options.onBeforeResponse && !event._onBeforeResponseCalled) {
        await app.options.onBeforeResponse(event, { body: error });
      }
      await sendError(event, error, !!app.options.debug);
      if (app.options.onAfterResponse && !event._onAfterResponseCalled) {
        await app.options.onAfterResponse(event, { body: error });
      }
    }
  };
  return toNodeHandle;
}

function flatHooks(configHooks, hooks = {}, parentName) {
  for (const key in configHooks) {
    const subHook = configHooks[key];
    const name = parentName ? `${parentName}:${key}` : key;
    if (typeof subHook === "object" && subHook !== null) {
      flatHooks(subHook, hooks, name);
    } else if (typeof subHook === "function") {
      hooks[name] = subHook;
    }
  }
  return hooks;
}
const defaultTask = { run: (function_) => function_() };
const _createTask = () => defaultTask;
const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
function serialTaskCaller(hooks, args) {
  const name = args.shift();
  const task = createTask(name);
  return hooks.reduce(
    (promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
    Promise.resolve()
  );
}
function parallelTaskCaller(hooks, args) {
  const name = args.shift();
  const task = createTask(name);
  return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
}
function callEachWith(callbacks, arg0) {
  for (const callback of [...callbacks]) {
    callback(arg0);
  }
}

class Hookable {
  constructor() {
    this._hooks = {};
    this._before = void 0;
    this._after = void 0;
    this._deprecatedMessages = void 0;
    this._deprecatedHooks = {};
    this.hook = this.hook.bind(this);
    this.callHook = this.callHook.bind(this);
    this.callHookWith = this.callHookWith.bind(this);
  }
  hook(name, function_, options = {}) {
    if (!name || typeof function_ !== "function") {
      return () => {
      };
    }
    const originalName = name;
    let dep;
    while (this._deprecatedHooks[name]) {
      dep = this._deprecatedHooks[name];
      name = dep.to;
    }
    if (dep && !options.allowDeprecated) {
      let message = dep.message;
      if (!message) {
        message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
      }
      if (!this._deprecatedMessages) {
        this._deprecatedMessages = /* @__PURE__ */ new Set();
      }
      if (!this._deprecatedMessages.has(message)) {
        console.warn(message);
        this._deprecatedMessages.add(message);
      }
    }
    if (!function_.name) {
      try {
        Object.defineProperty(function_, "name", {
          get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
          configurable: true
        });
      } catch {
      }
    }
    this._hooks[name] = this._hooks[name] || [];
    this._hooks[name].push(function_);
    return () => {
      if (function_) {
        this.removeHook(name, function_);
        function_ = void 0;
      }
    };
  }
  hookOnce(name, function_) {
    let _unreg;
    let _function = (...arguments_) => {
      if (typeof _unreg === "function") {
        _unreg();
      }
      _unreg = void 0;
      _function = void 0;
      return function_(...arguments_);
    };
    _unreg = this.hook(name, _function);
    return _unreg;
  }
  removeHook(name, function_) {
    if (this._hooks[name]) {
      const index = this._hooks[name].indexOf(function_);
      if (index !== -1) {
        this._hooks[name].splice(index, 1);
      }
      if (this._hooks[name].length === 0) {
        delete this._hooks[name];
      }
    }
  }
  deprecateHook(name, deprecated) {
    this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
    const _hooks = this._hooks[name] || [];
    delete this._hooks[name];
    for (const hook of _hooks) {
      this.hook(name, hook);
    }
  }
  deprecateHooks(deprecatedHooks) {
    Object.assign(this._deprecatedHooks, deprecatedHooks);
    for (const name in deprecatedHooks) {
      this.deprecateHook(name, deprecatedHooks[name]);
    }
  }
  addHooks(configHooks) {
    const hooks = flatHooks(configHooks);
    const removeFns = Object.keys(hooks).map(
      (key) => this.hook(key, hooks[key])
    );
    return () => {
      for (const unreg of removeFns.splice(0, removeFns.length)) {
        unreg();
      }
    };
  }
  removeHooks(configHooks) {
    const hooks = flatHooks(configHooks);
    for (const key in hooks) {
      this.removeHook(key, hooks[key]);
    }
  }
  removeAllHooks() {
    for (const key in this._hooks) {
      delete this._hooks[key];
    }
  }
  callHook(name, ...arguments_) {
    arguments_.unshift(name);
    return this.callHookWith(serialTaskCaller, name, ...arguments_);
  }
  callHookParallel(name, ...arguments_) {
    arguments_.unshift(name);
    return this.callHookWith(parallelTaskCaller, name, ...arguments_);
  }
  callHookWith(caller, name, ...arguments_) {
    const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
    if (this._before) {
      callEachWith(this._before, event);
    }
    const result = caller(
      name in this._hooks ? [...this._hooks[name]] : [],
      arguments_
    );
    if (result instanceof Promise) {
      return result.finally(() => {
        if (this._after && event) {
          callEachWith(this._after, event);
        }
      });
    }
    if (this._after && event) {
      callEachWith(this._after, event);
    }
    return result;
  }
  beforeEach(function_) {
    this._before = this._before || [];
    this._before.push(function_);
    return () => {
      if (this._before !== void 0) {
        const index = this._before.indexOf(function_);
        if (index !== -1) {
          this._before.splice(index, 1);
        }
      }
    };
  }
  afterEach(function_) {
    this._after = this._after || [];
    this._after.push(function_);
    return () => {
      if (this._after !== void 0) {
        const index = this._after.indexOf(function_);
        if (index !== -1) {
          this._after.splice(index, 1);
        }
      }
    };
  }
}
function createHooks() {
  return new Hookable();
}

const s$1=globalThis.Headers,i=globalThis.AbortController,l=globalThis.fetch||(()=>{throw new Error("[node-fetch-native] Failed to fetch: `globalThis.fetch` is not available!")});

class FetchError extends Error {
  constructor(message, opts) {
    super(message, opts);
    this.name = "FetchError";
    if (opts?.cause && !this.cause) {
      this.cause = opts.cause;
    }
  }
}
function createFetchError(ctx) {
  const errorMessage = ctx.error?.message || ctx.error?.toString() || "";
  const method = ctx.request?.method || ctx.options?.method || "GET";
  const url = ctx.request?.url || String(ctx.request) || "/";
  const requestStr = `[${method}] ${JSON.stringify(url)}`;
  const statusStr = ctx.response ? `${ctx.response.status} ${ctx.response.statusText}` : "<no response>";
  const message = `${requestStr}: ${statusStr}${errorMessage ? ` ${errorMessage}` : ""}`;
  const fetchError = new FetchError(
    message,
    ctx.error ? { cause: ctx.error } : void 0
  );
  for (const key of ["request", "options", "response"]) {
    Object.defineProperty(fetchError, key, {
      get() {
        return ctx[key];
      }
    });
  }
  for (const [key, refKey] of [
    ["data", "_data"],
    ["status", "status"],
    ["statusCode", "status"],
    ["statusText", "statusText"],
    ["statusMessage", "statusText"]
  ]) {
    Object.defineProperty(fetchError, key, {
      get() {
        return ctx.response && ctx.response[refKey];
      }
    });
  }
  return fetchError;
}

const payloadMethods = new Set(
  Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
);
function isPayloadMethod(method = "GET") {
  return payloadMethods.has(method.toUpperCase());
}
function isJSONSerializable(value) {
  if (value === void 0) {
    return false;
  }
  const t = typeof value;
  if (t === "string" || t === "number" || t === "boolean" || t === null) {
    return true;
  }
  if (t !== "object") {
    return false;
  }
  if (Array.isArray(value)) {
    return true;
  }
  if (value.buffer) {
    return false;
  }
  if (value instanceof FormData || value instanceof URLSearchParams) {
    return false;
  }
  return value.constructor && value.constructor.name === "Object" || typeof value.toJSON === "function";
}
const textTypes = /* @__PURE__ */ new Set([
  "image/svg",
  "application/xml",
  "application/xhtml",
  "application/html"
]);
const JSON_RE = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
function detectResponseType(_contentType = "") {
  if (!_contentType) {
    return "json";
  }
  const contentType = _contentType.split(";").shift() || "";
  if (JSON_RE.test(contentType)) {
    return "json";
  }
  if (contentType === "text/event-stream") {
    return "stream";
  }
  if (textTypes.has(contentType) || contentType.startsWith("text/")) {
    return "text";
  }
  return "blob";
}
function resolveFetchOptions(request, input, defaults, Headers) {
  const headers = mergeHeaders(
    input?.headers ?? request?.headers,
    defaults?.headers,
    Headers
  );
  let query;
  if (defaults?.query || defaults?.params || input?.params || input?.query) {
    query = {
      ...defaults?.params,
      ...defaults?.query,
      ...input?.params,
      ...input?.query
    };
  }
  return {
    ...defaults,
    ...input,
    query,
    params: query,
    headers
  };
}
function mergeHeaders(input, defaults, Headers) {
  if (!defaults) {
    return new Headers(input);
  }
  const headers = new Headers(defaults);
  if (input) {
    for (const [key, value] of Symbol.iterator in input || Array.isArray(input) ? input : new Headers(input)) {
      headers.set(key, value);
    }
  }
  return headers;
}
async function callHooks(context, hooks) {
  if (hooks) {
    if (Array.isArray(hooks)) {
      for (const hook of hooks) {
        await hook(context);
      }
    } else {
      await hooks(context);
    }
  }
}

const retryStatusCodes = /* @__PURE__ */ new Set([
  408,
  // Request Timeout
  409,
  // Conflict
  425,
  // Too Early (Experimental)
  429,
  // Too Many Requests
  500,
  // Internal Server Error
  502,
  // Bad Gateway
  503,
  // Service Unavailable
  504
  // Gateway Timeout
]);
const nullBodyResponses = /* @__PURE__ */ new Set([101, 204, 205, 304]);
function createFetch(globalOptions = {}) {
  const {
    fetch = globalThis.fetch,
    Headers = globalThis.Headers,
    AbortController = globalThis.AbortController
  } = globalOptions;
  async function onError(context) {
    const isAbort = context.error && context.error.name === "AbortError" && !context.options.timeout || false;
    if (context.options.retry !== false && !isAbort) {
      let retries;
      if (typeof context.options.retry === "number") {
        retries = context.options.retry;
      } else {
        retries = isPayloadMethod(context.options.method) ? 0 : 1;
      }
      const responseCode = context.response && context.response.status || 500;
      if (retries > 0 && (Array.isArray(context.options.retryStatusCodes) ? context.options.retryStatusCodes.includes(responseCode) : retryStatusCodes.has(responseCode))) {
        const retryDelay = typeof context.options.retryDelay === "function" ? context.options.retryDelay(context) : context.options.retryDelay || 0;
        if (retryDelay > 0) {
          await new Promise((resolve) => setTimeout(resolve, retryDelay));
        }
        return $fetchRaw(context.request, {
          ...context.options,
          retry: retries - 1
        });
      }
    }
    const error = createFetchError(context);
    if (Error.captureStackTrace) {
      Error.captureStackTrace(error, $fetchRaw);
    }
    throw error;
  }
  const $fetchRaw = async function $fetchRaw2(_request, _options = {}) {
    const context = {
      request: _request,
      options: resolveFetchOptions(
        _request,
        _options,
        globalOptions.defaults,
        Headers
      ),
      response: void 0,
      error: void 0
    };
    if (context.options.method) {
      context.options.method = context.options.method.toUpperCase();
    }
    if (context.options.onRequest) {
      await callHooks(context, context.options.onRequest);
      if (!(context.options.headers instanceof Headers)) {
        context.options.headers = new Headers(
          context.options.headers || {}
          /* compat */
        );
      }
    }
    if (typeof context.request === "string") {
      if (context.options.baseURL) {
        context.request = withBase(context.request, context.options.baseURL);
      }
      if (context.options.query) {
        context.request = withQuery(context.request, context.options.query);
        delete context.options.query;
      }
      if ("query" in context.options) {
        delete context.options.query;
      }
      if ("params" in context.options) {
        delete context.options.params;
      }
    }
    if (context.options.body && isPayloadMethod(context.options.method)) {
      if (isJSONSerializable(context.options.body)) {
        const contentType = context.options.headers.get("content-type");
        if (typeof context.options.body !== "string") {
          context.options.body = contentType === "application/x-www-form-urlencoded" ? new URLSearchParams(
            context.options.body
          ).toString() : JSON.stringify(context.options.body);
        }
        if (!contentType) {
          context.options.headers.set("content-type", "application/json");
        }
        if (!context.options.headers.has("accept")) {
          context.options.headers.set("accept", "application/json");
        }
      } else if (
        // ReadableStream Body
        "pipeTo" in context.options.body && typeof context.options.body.pipeTo === "function" || // Node.js Stream Body
        typeof context.options.body.pipe === "function"
      ) {
        if (!("duplex" in context.options)) {
          context.options.duplex = "half";
        }
      }
    }
    let abortTimeout;
    if (!context.options.signal && context.options.timeout) {
      const controller = new AbortController();
      abortTimeout = setTimeout(() => {
        const error = new Error(
          "[TimeoutError]: The operation was aborted due to timeout"
        );
        error.name = "TimeoutError";
        error.code = 23;
        controller.abort(error);
      }, context.options.timeout);
      context.options.signal = controller.signal;
    }
    try {
      context.response = await fetch(
        context.request,
        context.options
      );
    } catch (error) {
      context.error = error;
      if (context.options.onRequestError) {
        await callHooks(
          context,
          context.options.onRequestError
        );
      }
      return await onError(context);
    } finally {
      if (abortTimeout) {
        clearTimeout(abortTimeout);
      }
    }
    const hasBody = (context.response.body || // https://github.com/unjs/ofetch/issues/324
    // https://github.com/unjs/ofetch/issues/294
    // https://github.com/JakeChampion/fetch/issues/1454
    context.response._bodyInit) && !nullBodyResponses.has(context.response.status) && context.options.method !== "HEAD";
    if (hasBody) {
      const responseType = (context.options.parseResponse ? "json" : context.options.responseType) || detectResponseType(context.response.headers.get("content-type") || "");
      switch (responseType) {
        case "json": {
          const data = await context.response.text();
          const parseFunction = context.options.parseResponse || destr;
          context.response._data = parseFunction(data);
          break;
        }
        case "stream": {
          context.response._data = context.response.body || context.response._bodyInit;
          break;
        }
        default: {
          context.response._data = await context.response[responseType]();
        }
      }
    }
    if (context.options.onResponse) {
      await callHooks(
        context,
        context.options.onResponse
      );
    }
    if (!context.options.ignoreResponseError && context.response.status >= 400 && context.response.status < 600) {
      if (context.options.onResponseError) {
        await callHooks(
          context,
          context.options.onResponseError
        );
      }
      return await onError(context);
    }
    return context.response;
  };
  const $fetch = async function $fetch2(request, options) {
    const r = await $fetchRaw(request, options);
    return r._data;
  };
  $fetch.raw = $fetchRaw;
  $fetch.native = (...args) => fetch(...args);
  $fetch.create = (defaultOptions = {}, customGlobalOptions = {}) => createFetch({
    ...globalOptions,
    ...customGlobalOptions,
    defaults: {
      ...globalOptions.defaults,
      ...customGlobalOptions.defaults,
      ...defaultOptions
    }
  });
  return $fetch;
}

function createNodeFetch() {
  const useKeepAlive = JSON.parse(process.env.FETCH_KEEP_ALIVE || "false");
  if (!useKeepAlive) {
    return l;
  }
  const agentOptions = { keepAlive: true };
  const httpAgent = new http.Agent(agentOptions);
  const httpsAgent = new https.Agent(agentOptions);
  const nodeFetchOptions = {
    agent(parsedURL) {
      return parsedURL.protocol === "http:" ? httpAgent : httpsAgent;
    }
  };
  return function nodeFetchWithKeepAlive(input, init) {
    return l(input, { ...nodeFetchOptions, ...init });
  };
}
const fetch = globalThis.fetch ? (...args) => globalThis.fetch(...args) : createNodeFetch();
const Headers$1 = globalThis.Headers || s$1;
const AbortController = globalThis.AbortController || i;
const ofetch = createFetch({ fetch, Headers: Headers$1, AbortController });
const $fetch = ofetch;

function wrapToPromise(value) {
  if (!value || typeof value.then !== "function") {
    return Promise.resolve(value);
  }
  return value;
}
function asyncCall(function_, ...arguments_) {
  try {
    return wrapToPromise(function_(...arguments_));
  } catch (error) {
    return Promise.reject(error);
  }
}
function isPrimitive(value) {
  const type = typeof value;
  return value === null || type !== "object" && type !== "function";
}
function isPureObject(value) {
  const proto = Object.getPrototypeOf(value);
  return !proto || proto.isPrototypeOf(Object);
}
function stringify(value) {
  if (isPrimitive(value)) {
    return String(value);
  }
  if (isPureObject(value) || Array.isArray(value)) {
    return JSON.stringify(value);
  }
  if (typeof value.toJSON === "function") {
    return stringify(value.toJSON());
  }
  throw new Error("[unstorage] Cannot stringify value!");
}
const BASE64_PREFIX = "base64:";
function serializeRaw(value) {
  if (typeof value === "string") {
    return value;
  }
  return BASE64_PREFIX + base64Encode(value);
}
function deserializeRaw(value) {
  if (typeof value !== "string") {
    return value;
  }
  if (!value.startsWith(BASE64_PREFIX)) {
    return value;
  }
  return base64Decode(value.slice(BASE64_PREFIX.length));
}
function base64Decode(input) {
  if (globalThis.Buffer) {
    return Buffer.from(input, "base64");
  }
  return Uint8Array.from(
    globalThis.atob(input),
    (c) => c.codePointAt(0)
  );
}
function base64Encode(input) {
  if (globalThis.Buffer) {
    return Buffer.from(input).toString("base64");
  }
  return globalThis.btoa(String.fromCodePoint(...input));
}

const storageKeyProperties = [
  "has",
  "hasItem",
  "get",
  "getItem",
  "getItemRaw",
  "set",
  "setItem",
  "setItemRaw",
  "del",
  "remove",
  "removeItem",
  "getMeta",
  "setMeta",
  "removeMeta",
  "getKeys",
  "clear",
  "mount",
  "unmount"
];
function prefixStorage(storage, base) {
  base = normalizeBaseKey(base);
  if (!base) {
    return storage;
  }
  const nsStorage = { ...storage };
  for (const property of storageKeyProperties) {
    nsStorage[property] = (key = "", ...args) => (
      // @ts-ignore
      storage[property](base + key, ...args)
    );
  }
  nsStorage.getKeys = (key = "", ...arguments_) => storage.getKeys(base + key, ...arguments_).then((keys) => keys.map((key2) => key2.slice(base.length)));
  nsStorage.keys = nsStorage.getKeys;
  nsStorage.getItems = async (items, commonOptions) => {
    const prefixedItems = items.map(
      (item) => typeof item === "string" ? base + item : { ...item, key: base + item.key }
    );
    const results = await storage.getItems(prefixedItems, commonOptions);
    return results.map((entry) => ({
      key: entry.key.slice(base.length),
      value: entry.value
    }));
  };
  nsStorage.setItems = async (items, commonOptions) => {
    const prefixedItems = items.map((item) => ({
      key: base + item.key,
      value: item.value,
      options: item.options
    }));
    return storage.setItems(prefixedItems, commonOptions);
  };
  return nsStorage;
}
function normalizeKey$1(key) {
  if (!key) {
    return "";
  }
  return key.split("?")[0]?.replace(/[/\\]/g, ":").replace(/:+/g, ":").replace(/^:|:$/g, "") || "";
}
function joinKeys(...keys) {
  return normalizeKey$1(keys.join(":"));
}
function normalizeBaseKey(base) {
  base = normalizeKey$1(base);
  return base ? base + ":" : "";
}
function filterKeyByDepth(key, depth) {
  if (depth === void 0) {
    return true;
  }
  let substrCount = 0;
  let index = key.indexOf(":");
  while (index > -1) {
    substrCount++;
    index = key.indexOf(":", index + 1);
  }
  return substrCount <= depth;
}
function filterKeyByBase(key, base) {
  if (base) {
    return key.startsWith(base) && key[key.length - 1] !== "$";
  }
  return key[key.length - 1] !== "$";
}

function defineDriver$1(factory) {
  return factory;
}

const DRIVER_NAME$1 = "memory";
const memory = defineDriver$1(() => {
  const data = /* @__PURE__ */ new Map();
  return {
    name: DRIVER_NAME$1,
    getInstance: () => data,
    hasItem(key) {
      return data.has(key);
    },
    getItem(key) {
      return data.get(key) ?? null;
    },
    getItemRaw(key) {
      return data.get(key) ?? null;
    },
    setItem(key, value) {
      data.set(key, value);
    },
    setItemRaw(key, value) {
      data.set(key, value);
    },
    removeItem(key) {
      data.delete(key);
    },
    getKeys() {
      return [...data.keys()];
    },
    clear() {
      data.clear();
    },
    dispose() {
      data.clear();
    }
  };
});

function createStorage(options = {}) {
  const context = {
    mounts: { "": options.driver || memory() },
    mountpoints: [""],
    watching: false,
    watchListeners: [],
    unwatch: {}
  };
  const getMount = (key) => {
    for (const base of context.mountpoints) {
      if (key.startsWith(base)) {
        return {
          base,
          relativeKey: key.slice(base.length),
          driver: context.mounts[base]
        };
      }
    }
    return {
      base: "",
      relativeKey: key,
      driver: context.mounts[""]
    };
  };
  const getMounts = (base, includeParent) => {
    return context.mountpoints.filter(
      (mountpoint) => mountpoint.startsWith(base) || includeParent && base.startsWith(mountpoint)
    ).map((mountpoint) => ({
      relativeBase: base.length > mountpoint.length ? base.slice(mountpoint.length) : void 0,
      mountpoint,
      driver: context.mounts[mountpoint]
    }));
  };
  const onChange = (event, key) => {
    if (!context.watching) {
      return;
    }
    key = normalizeKey$1(key);
    for (const listener of context.watchListeners) {
      listener(event, key);
    }
  };
  const startWatch = async () => {
    if (context.watching) {
      return;
    }
    context.watching = true;
    for (const mountpoint in context.mounts) {
      context.unwatch[mountpoint] = await watch(
        context.mounts[mountpoint],
        onChange,
        mountpoint
      );
    }
  };
  const stopWatch = async () => {
    if (!context.watching) {
      return;
    }
    for (const mountpoint in context.unwatch) {
      await context.unwatch[mountpoint]();
    }
    context.unwatch = {};
    context.watching = false;
  };
  const runBatch = (items, commonOptions, cb) => {
    const batches = /* @__PURE__ */ new Map();
    const getBatch = (mount) => {
      let batch = batches.get(mount.base);
      if (!batch) {
        batch = {
          driver: mount.driver,
          base: mount.base,
          items: []
        };
        batches.set(mount.base, batch);
      }
      return batch;
    };
    for (const item of items) {
      const isStringItem = typeof item === "string";
      const key = normalizeKey$1(isStringItem ? item : item.key);
      const value = isStringItem ? void 0 : item.value;
      const options2 = isStringItem || !item.options ? commonOptions : { ...commonOptions, ...item.options };
      const mount = getMount(key);
      getBatch(mount).items.push({
        key,
        value,
        relativeKey: mount.relativeKey,
        options: options2
      });
    }
    return Promise.all([...batches.values()].map((batch) => cb(batch))).then(
      (r) => r.flat()
    );
  };
  const storage = {
    // Item
    hasItem(key, opts = {}) {
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      return asyncCall(driver.hasItem, relativeKey, opts);
    },
    getItem(key, opts = {}) {
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      return asyncCall(driver.getItem, relativeKey, opts).then(
        (value) => destr(value)
      );
    },
    getItems(items, commonOptions = {}) {
      return runBatch(items, commonOptions, (batch) => {
        if (batch.driver.getItems) {
          return asyncCall(
            batch.driver.getItems,
            batch.items.map((item) => ({
              key: item.relativeKey,
              options: item.options
            })),
            commonOptions
          ).then(
            (r) => r.map((item) => ({
              key: joinKeys(batch.base, item.key),
              value: destr(item.value)
            }))
          );
        }
        return Promise.all(
          batch.items.map((item) => {
            return asyncCall(
              batch.driver.getItem,
              item.relativeKey,
              item.options
            ).then((value) => ({
              key: item.key,
              value: destr(value)
            }));
          })
        );
      });
    },
    getItemRaw(key, opts = {}) {
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      if (driver.getItemRaw) {
        return asyncCall(driver.getItemRaw, relativeKey, opts);
      }
      return asyncCall(driver.getItem, relativeKey, opts).then(
        (value) => deserializeRaw(value)
      );
    },
    async setItem(key, value, opts = {}) {
      if (value === void 0) {
        return storage.removeItem(key);
      }
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      if (!driver.setItem) {
        return;
      }
      await asyncCall(driver.setItem, relativeKey, stringify(value), opts);
      if (!driver.watch) {
        onChange("update", key);
      }
    },
    async setItems(items, commonOptions) {
      await runBatch(items, commonOptions, async (batch) => {
        if (batch.driver.setItems) {
          return asyncCall(
            batch.driver.setItems,
            batch.items.map((item) => ({
              key: item.relativeKey,
              value: stringify(item.value),
              options: item.options
            })),
            commonOptions
          );
        }
        if (!batch.driver.setItem) {
          return;
        }
        await Promise.all(
          batch.items.map((item) => {
            return asyncCall(
              batch.driver.setItem,
              item.relativeKey,
              stringify(item.value),
              item.options
            );
          })
        );
      });
    },
    async setItemRaw(key, value, opts = {}) {
      if (value === void 0) {
        return storage.removeItem(key, opts);
      }
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      if (driver.setItemRaw) {
        await asyncCall(driver.setItemRaw, relativeKey, value, opts);
      } else if (driver.setItem) {
        await asyncCall(driver.setItem, relativeKey, serializeRaw(value), opts);
      } else {
        return;
      }
      if (!driver.watch) {
        onChange("update", key);
      }
    },
    async removeItem(key, opts = {}) {
      if (typeof opts === "boolean") {
        opts = { removeMeta: opts };
      }
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      if (!driver.removeItem) {
        return;
      }
      await asyncCall(driver.removeItem, relativeKey, opts);
      if (opts.removeMeta || opts.removeMata) {
        await asyncCall(driver.removeItem, relativeKey + "$", opts);
      }
      if (!driver.watch) {
        onChange("remove", key);
      }
    },
    // Meta
    async getMeta(key, opts = {}) {
      if (typeof opts === "boolean") {
        opts = { nativeOnly: opts };
      }
      key = normalizeKey$1(key);
      const { relativeKey, driver } = getMount(key);
      const meta = /* @__PURE__ */ Object.create(null);
      if (driver.getMeta) {
        Object.assign(meta, await asyncCall(driver.getMeta, relativeKey, opts));
      }
      if (!opts.nativeOnly) {
        const value = await asyncCall(
          driver.getItem,
          relativeKey + "$",
          opts
        ).then((value_) => destr(value_));
        if (value && typeof value === "object") {
          if (typeof value.atime === "string") {
            value.atime = new Date(value.atime);
          }
          if (typeof value.mtime === "string") {
            value.mtime = new Date(value.mtime);
          }
          Object.assign(meta, value);
        }
      }
      return meta;
    },
    setMeta(key, value, opts = {}) {
      return this.setItem(key + "$", value, opts);
    },
    removeMeta(key, opts = {}) {
      return this.removeItem(key + "$", opts);
    },
    // Keys
    async getKeys(base, opts = {}) {
      base = normalizeBaseKey(base);
      const mounts = getMounts(base, true);
      let maskedMounts = [];
      const allKeys = [];
      let allMountsSupportMaxDepth = true;
      for (const mount of mounts) {
        if (!mount.driver.flags?.maxDepth) {
          allMountsSupportMaxDepth = false;
        }
        const rawKeys = await asyncCall(
          mount.driver.getKeys,
          mount.relativeBase,
          opts
        );
        for (const key of rawKeys) {
          const fullKey = mount.mountpoint + normalizeKey$1(key);
          if (!maskedMounts.some((p) => fullKey.startsWith(p))) {
            allKeys.push(fullKey);
          }
        }
        maskedMounts = [
          mount.mountpoint,
          ...maskedMounts.filter((p) => !p.startsWith(mount.mountpoint))
        ];
      }
      const shouldFilterByDepth = opts.maxDepth !== void 0 && !allMountsSupportMaxDepth;
      return allKeys.filter(
        (key) => (!shouldFilterByDepth || filterKeyByDepth(key, opts.maxDepth)) && filterKeyByBase(key, base)
      );
    },
    // Utils
    async clear(base, opts = {}) {
      base = normalizeBaseKey(base);
      await Promise.all(
        getMounts(base, false).map(async (m) => {
          if (m.driver.clear) {
            return asyncCall(m.driver.clear, m.relativeBase, opts);
          }
          if (m.driver.removeItem) {
            const keys = await m.driver.getKeys(m.relativeBase || "", opts);
            return Promise.all(
              keys.map((key) => m.driver.removeItem(key, opts))
            );
          }
        })
      );
    },
    async dispose() {
      await Promise.all(
        Object.values(context.mounts).map((driver) => dispose(driver))
      );
    },
    async watch(callback) {
      await startWatch();
      context.watchListeners.push(callback);
      return async () => {
        context.watchListeners = context.watchListeners.filter(
          (listener) => listener !== callback
        );
        if (context.watchListeners.length === 0) {
          await stopWatch();
        }
      };
    },
    async unwatch() {
      context.watchListeners = [];
      await stopWatch();
    },
    // Mount
    mount(base, driver) {
      base = normalizeBaseKey(base);
      if (base && context.mounts[base]) {
        throw new Error(`already mounted at ${base}`);
      }
      if (base) {
        context.mountpoints.push(base);
        context.mountpoints.sort((a, b) => b.length - a.length);
      }
      context.mounts[base] = driver;
      if (context.watching) {
        Promise.resolve(watch(driver, onChange, base)).then((unwatcher) => {
          context.unwatch[base] = unwatcher;
        }).catch(console.error);
      }
      return storage;
    },
    async unmount(base, _dispose = true) {
      base = normalizeBaseKey(base);
      if (!base || !context.mounts[base]) {
        return;
      }
      if (context.watching && base in context.unwatch) {
        context.unwatch[base]?.();
        delete context.unwatch[base];
      }
      if (_dispose) {
        await dispose(context.mounts[base]);
      }
      context.mountpoints = context.mountpoints.filter((key) => key !== base);
      delete context.mounts[base];
    },
    getMount(key = "") {
      key = normalizeKey$1(key) + ":";
      const m = getMount(key);
      return {
        driver: m.driver,
        base: m.base
      };
    },
    getMounts(base = "", opts = {}) {
      base = normalizeKey$1(base);
      const mounts = getMounts(base, opts.parents);
      return mounts.map((m) => ({
        driver: m.driver,
        base: m.mountpoint
      }));
    },
    // Aliases
    keys: (base, opts = {}) => storage.getKeys(base, opts),
    get: (key, opts = {}) => storage.getItem(key, opts),
    set: (key, value, opts = {}) => storage.setItem(key, value, opts),
    has: (key, opts = {}) => storage.hasItem(key, opts),
    del: (key, opts = {}) => storage.removeItem(key, opts),
    remove: (key, opts = {}) => storage.removeItem(key, opts)
  };
  return storage;
}
function watch(driver, onChange, base) {
  return driver.watch ? driver.watch((event, key) => onChange(event, base + key)) : () => {
  };
}
async function dispose(driver) {
  if (typeof driver.dispose === "function") {
    await asyncCall(driver.dispose);
  }
}

const _assets = {

};

const normalizeKey = function normalizeKey(key) {
  if (!key) {
    return "";
  }
  return key.split("?")[0]?.replace(/[/\\]/g, ":").replace(/:+/g, ":").replace(/^:|:$/g, "") || "";
};

const assets$1 = {
  getKeys() {
    return Promise.resolve(Object.keys(_assets))
  },
  hasItem (id) {
    id = normalizeKey(id);
    return Promise.resolve(id in _assets)
  },
  getItem (id) {
    id = normalizeKey(id);
    return Promise.resolve(_assets[id] ? _assets[id].import() : null)
  },
  getMeta (id) {
    id = normalizeKey(id);
    return Promise.resolve(_assets[id] ? _assets[id].meta : {})
  }
};

function defineDriver(factory) {
  return factory;
}
function createError(driver, message, opts) {
  const err = new Error(`[unstorage] [${driver}] ${message}`, opts);
  if (Error.captureStackTrace) {
    Error.captureStackTrace(err, createError);
  }
  return err;
}
function createRequiredError(driver, name) {
  if (Array.isArray(name)) {
    return createError(
      driver,
      `Missing some of the required options ${name.map((n) => "`" + n + "`").join(", ")}`
    );
  }
  return createError(driver, `Missing required option \`${name}\`.`);
}

function ignoreNotfound(err) {
  return err.code === "ENOENT" || err.code === "EISDIR" ? null : err;
}
function ignoreExists(err) {
  return err.code === "EEXIST" ? null : err;
}
async function writeFile(path, data, encoding) {
  await ensuredir(dirname$1(path));
  return promises.writeFile(path, data, encoding);
}
function readFile(path, encoding) {
  return promises.readFile(path, encoding).catch(ignoreNotfound);
}
function unlink(path) {
  return promises.unlink(path).catch(ignoreNotfound);
}
function readdir(dir) {
  return promises.readdir(dir, { withFileTypes: true }).catch(ignoreNotfound).then((r) => r || []);
}
async function ensuredir(dir) {
  if (existsSync(dir)) {
    return;
  }
  await ensuredir(dirname$1(dir)).catch(ignoreExists);
  await promises.mkdir(dir).catch(ignoreExists);
}
async function readdirRecursive(dir, ignore, maxDepth) {
  if (ignore && ignore(dir)) {
    return [];
  }
  const entries = await readdir(dir);
  const files = [];
  await Promise.all(
    entries.map(async (entry) => {
      const entryPath = resolve$1(dir, entry.name);
      if (entry.isDirectory()) {
        if (maxDepth === void 0 || maxDepth > 0) {
          const dirFiles = await readdirRecursive(
            entryPath,
            ignore,
            maxDepth === void 0 ? void 0 : maxDepth - 1
          );
          files.push(...dirFiles.map((f) => entry.name + "/" + f));
        }
      } else {
        if (!(ignore && ignore(entry.name))) {
          files.push(entry.name);
        }
      }
    })
  );
  return files;
}
async function rmRecursive(dir) {
  const entries = await readdir(dir);
  await Promise.all(
    entries.map((entry) => {
      const entryPath = resolve$1(dir, entry.name);
      if (entry.isDirectory()) {
        return rmRecursive(entryPath).then(() => promises.rmdir(entryPath));
      } else {
        return promises.unlink(entryPath);
      }
    })
  );
}

const PATH_TRAVERSE_RE = /\.\.:|\.\.$/;
const DRIVER_NAME = "fs-lite";
const unstorage_47drivers_47fs_45lite = defineDriver((opts = {}) => {
  if (!opts.base) {
    throw createRequiredError(DRIVER_NAME, "base");
  }
  opts.base = resolve$1(opts.base);
  const r = (key) => {
    if (PATH_TRAVERSE_RE.test(key)) {
      throw createError(
        DRIVER_NAME,
        `Invalid key: ${JSON.stringify(key)}. It should not contain .. segments`
      );
    }
    const resolved = join(opts.base, key.replace(/:/g, "/"));
    return resolved;
  };
  return {
    name: DRIVER_NAME,
    options: opts,
    flags: {
      maxDepth: true
    },
    hasItem(key) {
      return existsSync(r(key));
    },
    getItem(key) {
      return readFile(r(key), "utf8");
    },
    getItemRaw(key) {
      return readFile(r(key));
    },
    async getMeta(key) {
      const { atime, mtime, size, birthtime, ctime } = await promises.stat(r(key)).catch(() => ({}));
      return { atime, mtime, size, birthtime, ctime };
    },
    setItem(key, value) {
      if (opts.readOnly) {
        return;
      }
      return writeFile(r(key), value, "utf8");
    },
    setItemRaw(key, value) {
      if (opts.readOnly) {
        return;
      }
      return writeFile(r(key), value);
    },
    removeItem(key) {
      if (opts.readOnly) {
        return;
      }
      return unlink(r(key));
    },
    getKeys(_base, topts) {
      return readdirRecursive(r("."), opts.ignore, topts?.maxDepth);
    },
    async clear() {
      if (opts.readOnly || opts.noClear) {
        return;
      }
      await rmRecursive(r("."));
    }
  };
});

const storage = createStorage({});

storage.mount('/assets', assets$1);

storage.mount('data', unstorage_47drivers_47fs_45lite({"driver":"fsLite","base":"./.data/kv"}));

function useStorage(base = "") {
  return base ? prefixStorage(storage, base) : storage;
}

const e=globalThis.process?.getBuiltinModule?.("crypto")?.hash,r="sha256",s="base64url";function digest(t){if(e)return e(r,t,s);const o=createHash(r).update(t);return globalThis.process?.versions?.webcontainer?o.digest().toString(s):o.digest(s)}

const Hasher = /* @__PURE__ */ (() => {
  class Hasher2 {
    buff = "";
    #context = /* @__PURE__ */ new Map();
    write(str) {
      this.buff += str;
    }
    dispatch(value) {
      const type = value === null ? "null" : typeof value;
      return this[type](value);
    }
    object(object) {
      if (object && typeof object.toJSON === "function") {
        return this.object(object.toJSON());
      }
      const objString = Object.prototype.toString.call(object);
      let objType = "";
      const objectLength = objString.length;
      objType = objectLength < 10 ? "unknown:[" + objString + "]" : objString.slice(8, objectLength - 1);
      objType = objType.toLowerCase();
      let objectNumber = null;
      if ((objectNumber = this.#context.get(object)) === void 0) {
        this.#context.set(object, this.#context.size);
      } else {
        return this.dispatch("[CIRCULAR:" + objectNumber + "]");
      }
      if (typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(object)) {
        this.write("buffer:");
        return this.write(object.toString("utf8"));
      }
      if (objType !== "object" && objType !== "function" && objType !== "asyncfunction") {
        if (this[objType]) {
          this[objType](object);
        } else {
          this.unknown(object, objType);
        }
      } else {
        const keys = Object.keys(object).sort();
        const extraKeys = [];
        this.write("object:" + (keys.length + extraKeys.length) + ":");
        const dispatchForKey = (key) => {
          this.dispatch(key);
          this.write(":");
          this.dispatch(object[key]);
          this.write(",");
        };
        for (const key of keys) {
          dispatchForKey(key);
        }
        for (const key of extraKeys) {
          dispatchForKey(key);
        }
      }
    }
    array(arr, unordered) {
      unordered = unordered === void 0 ? false : unordered;
      this.write("array:" + arr.length + ":");
      if (!unordered || arr.length <= 1) {
        for (const entry of arr) {
          this.dispatch(entry);
        }
        return;
      }
      const contextAdditions = /* @__PURE__ */ new Map();
      const entries = arr.map((entry) => {
        const hasher = new Hasher2();
        hasher.dispatch(entry);
        for (const [key, value] of hasher.#context) {
          contextAdditions.set(key, value);
        }
        return hasher.toString();
      });
      this.#context = contextAdditions;
      entries.sort();
      return this.array(entries, false);
    }
    date(date) {
      return this.write("date:" + date.toJSON());
    }
    symbol(sym) {
      return this.write("symbol:" + sym.toString());
    }
    unknown(value, type) {
      this.write(type);
      if (!value) {
        return;
      }
      this.write(":");
      if (value && typeof value.entries === "function") {
        return this.array(
          [...value.entries()],
          true
          /* ordered */
        );
      }
    }
    error(err) {
      return this.write("error:" + err.toString());
    }
    boolean(bool) {
      return this.write("bool:" + bool);
    }
    string(string) {
      this.write("string:" + string.length + ":");
      this.write(string);
    }
    function(fn) {
      this.write("fn:");
      if (isNativeFunction(fn)) {
        this.dispatch("[native]");
      } else {
        this.dispatch(fn.toString());
      }
    }
    number(number) {
      return this.write("number:" + number);
    }
    null() {
      return this.write("Null");
    }
    undefined() {
      return this.write("Undefined");
    }
    regexp(regex) {
      return this.write("regex:" + regex.toString());
    }
    arraybuffer(arr) {
      this.write("arraybuffer:");
      return this.dispatch(new Uint8Array(arr));
    }
    url(url) {
      return this.write("url:" + url.toString());
    }
    map(map) {
      this.write("map:");
      const arr = [...map];
      return this.array(arr, false);
    }
    set(set) {
      this.write("set:");
      const arr = [...set];
      return this.array(arr, false);
    }
    bigint(number) {
      return this.write("bigint:" + number.toString());
    }
  }
  for (const type of [
    "uint8array",
    "uint8clampedarray",
    "unt8array",
    "uint16array",
    "unt16array",
    "uint32array",
    "unt32array",
    "float32array",
    "float64array"
  ]) {
    Hasher2.prototype[type] = function(arr) {
      this.write(type + ":");
      return this.array([...arr], false);
    };
  }
  function isNativeFunction(f) {
    if (typeof f !== "function") {
      return false;
    }
    return Function.prototype.toString.call(f).slice(
      -15
      /* "[native code] }".length */
    ) === "[native code] }";
  }
  return Hasher2;
})();
function serialize(object) {
  const hasher = new Hasher();
  hasher.dispatch(object);
  return hasher.buff;
}
function hash(value) {
  return digest(typeof value === "string" ? value : serialize(value)).replace(/[-_]/g, "").slice(0, 10);
}

function defaultCacheOptions() {
  return {
    name: "_",
    base: "/cache",
    swr: true,
    maxAge: 1
  };
}
function defineCachedFunction(fn, opts = {}) {
  opts = { ...defaultCacheOptions(), ...opts };
  const pending = {};
  const group = opts.group || "nitro/functions";
  const name = opts.name || fn.name || "_";
  const integrity = opts.integrity || hash([fn, opts]);
  const validate = opts.validate || ((entry) => entry.value !== void 0);
  async function get(key, resolver, shouldInvalidateCache, event) {
    const cacheKey = [opts.base, group, name, key + ".json"].filter(Boolean).join(":").replace(/:\/$/, ":index");
    let entry = await useStorage().getItem(cacheKey).catch((error) => {
      console.error(`[cache] Cache read error.`, error);
      useNitroApp().captureError(error, { event, tags: ["cache"] });
    }) || {};
    if (typeof entry !== "object") {
      entry = {};
      const error = new Error("Malformed data read from cache.");
      console.error("[cache]", error);
      useNitroApp().captureError(error, { event, tags: ["cache"] });
    }
    const ttl = (opts.maxAge ?? 0) * 1e3;
    if (ttl) {
      entry.expires = Date.now() + ttl;
    }
    const expired = shouldInvalidateCache || entry.integrity !== integrity || ttl && Date.now() - (entry.mtime || 0) > ttl || validate(entry) === false;
    const _resolve = async () => {
      const isPending = pending[key];
      if (!isPending) {
        if (entry.value !== void 0 && (opts.staleMaxAge || 0) >= 0 && opts.swr === false) {
          entry.value = void 0;
          entry.integrity = void 0;
          entry.mtime = void 0;
          entry.expires = void 0;
        }
        pending[key] = Promise.resolve(resolver());
      }
      try {
        entry.value = await pending[key];
      } catch (error) {
        if (!isPending) {
          delete pending[key];
        }
        throw error;
      }
      if (!isPending) {
        entry.mtime = Date.now();
        entry.integrity = integrity;
        delete pending[key];
        if (validate(entry) !== false) {
          let setOpts;
          if (opts.maxAge && !opts.swr) {
            setOpts = { ttl: opts.maxAge };
          }
          const promise = useStorage().setItem(cacheKey, entry, setOpts).catch((error) => {
            console.error(`[cache] Cache write error.`, error);
            useNitroApp().captureError(error, { event, tags: ["cache"] });
          });
          if (event?.waitUntil) {
            event.waitUntil(promise);
          }
        }
      }
    };
    const _resolvePromise = expired ? _resolve() : Promise.resolve();
    if (entry.value === void 0) {
      await _resolvePromise;
    } else if (expired && event && event.waitUntil) {
      event.waitUntil(_resolvePromise);
    }
    if (opts.swr && validate(entry) !== false) {
      _resolvePromise.catch((error) => {
        console.error(`[cache] SWR handler error.`, error);
        useNitroApp().captureError(error, { event, tags: ["cache"] });
      });
      return entry;
    }
    return _resolvePromise.then(() => entry);
  }
  return async (...args) => {
    const shouldBypassCache = await opts.shouldBypassCache?.(...args);
    if (shouldBypassCache) {
      return fn(...args);
    }
    const key = await (opts.getKey || getKey)(...args);
    const shouldInvalidateCache = await opts.shouldInvalidateCache?.(...args);
    const entry = await get(
      key,
      () => fn(...args),
      shouldInvalidateCache,
      args[0] && isEvent(args[0]) ? args[0] : void 0
    );
    let value = entry.value;
    if (opts.transform) {
      value = await opts.transform(entry, ...args) || value;
    }
    return value;
  };
}
function cachedFunction(fn, opts = {}) {
  return defineCachedFunction(fn, opts);
}
function getKey(...args) {
  return args.length > 0 ? hash(args) : "";
}
function escapeKey(key) {
  return String(key).replace(/\W/g, "");
}
function defineCachedEventHandler(handler, opts = defaultCacheOptions()) {
  const variableHeaderNames = (opts.varies || []).filter(Boolean).map((h) => h.toLowerCase()).sort();
  const _opts = {
    ...opts,
    getKey: async (event) => {
      const customKey = await opts.getKey?.(event);
      if (customKey) {
        return escapeKey(customKey);
      }
      const _path = event.node.req.originalUrl || event.node.req.url || event.path;
      let _pathname;
      try {
        _pathname = escapeKey(decodeURI(parseURL(_path).pathname)).slice(0, 16) || "index";
      } catch {
        _pathname = "-";
      }
      const _hashedPath = `${_pathname}.${hash(_path)}`;
      const _headers = variableHeaderNames.map((header) => [header, event.node.req.headers[header]]).map(([name, value]) => `${escapeKey(name)}.${hash(value)}`);
      return [_hashedPath, ..._headers].join(":");
    },
    validate: (entry) => {
      if (!entry.value) {
        return false;
      }
      if (entry.value.code >= 400) {
        return false;
      }
      if (entry.value.body === void 0) {
        return false;
      }
      if (entry.value.headers.etag === "undefined" || entry.value.headers["last-modified"] === "undefined") {
        return false;
      }
      return true;
    },
    group: opts.group || "nitro/handlers",
    integrity: opts.integrity || hash([handler, opts])
  };
  const _cachedHandler = cachedFunction(
    async (incomingEvent) => {
      const variableHeaders = {};
      for (const header of variableHeaderNames) {
        const value = incomingEvent.node.req.headers[header];
        if (value !== void 0) {
          variableHeaders[header] = value;
        }
      }
      const reqProxy = cloneWithProxy(incomingEvent.node.req, {
        headers: variableHeaders
      });
      const resHeaders = {};
      let _resSendBody;
      const resProxy = cloneWithProxy(incomingEvent.node.res, {
        statusCode: 200,
        writableEnded: false,
        writableFinished: false,
        headersSent: false,
        closed: false,
        getHeader(name) {
          return resHeaders[name];
        },
        setHeader(name, value) {
          resHeaders[name] = value;
          return this;
        },
        getHeaderNames() {
          return Object.keys(resHeaders);
        },
        hasHeader(name) {
          return name in resHeaders;
        },
        removeHeader(name) {
          delete resHeaders[name];
        },
        getHeaders() {
          return resHeaders;
        },
        end(chunk, arg2, arg3) {
          if (typeof chunk === "string") {
            _resSendBody = chunk;
          }
          if (typeof arg2 === "function") {
            arg2();
          }
          if (typeof arg3 === "function") {
            arg3();
          }
          return this;
        },
        write(chunk, arg2, arg3) {
          if (typeof chunk === "string") {
            _resSendBody = chunk;
          }
          if (typeof arg2 === "function") {
            arg2(void 0);
          }
          if (typeof arg3 === "function") {
            arg3();
          }
          return true;
        },
        writeHead(statusCode, headers2) {
          this.statusCode = statusCode;
          if (headers2) {
            if (Array.isArray(headers2) || typeof headers2 === "string") {
              throw new TypeError("Raw headers  is not supported.");
            }
            for (const header in headers2) {
              const value = headers2[header];
              if (value !== void 0) {
                this.setHeader(
                  header,
                  value
                );
              }
            }
          }
          return this;
        }
      });
      const event = createEvent(reqProxy, resProxy);
      event.fetch = (url, fetchOptions) => fetchWithEvent(event, url, fetchOptions, {
        fetch: useNitroApp().localFetch
      });
      event.$fetch = (url, fetchOptions) => fetchWithEvent(event, url, fetchOptions, {
        fetch: globalThis.$fetch
      });
      event.waitUntil = incomingEvent.waitUntil;
      event.context = incomingEvent.context;
      event.context.cache = {
        options: _opts
      };
      const body = await handler(event) || _resSendBody;
      const headers = event.node.res.getHeaders();
      headers.etag = String(
        headers.Etag || headers.etag || `W/"${hash(body)}"`
      );
      headers["last-modified"] = String(
        headers["Last-Modified"] || headers["last-modified"] || (/* @__PURE__ */ new Date()).toUTCString()
      );
      const cacheControl = [];
      if (opts.swr) {
        if (opts.maxAge) {
          cacheControl.push(`s-maxage=${opts.maxAge}`);
        }
        if (opts.staleMaxAge) {
          cacheControl.push(`stale-while-revalidate=${opts.staleMaxAge}`);
        } else {
          cacheControl.push("stale-while-revalidate");
        }
      } else if (opts.maxAge) {
        cacheControl.push(`max-age=${opts.maxAge}`);
      }
      if (cacheControl.length > 0) {
        headers["cache-control"] = cacheControl.join(", ");
      }
      const cacheEntry = {
        code: event.node.res.statusCode,
        headers,
        body
      };
      return cacheEntry;
    },
    _opts
  );
  return defineEventHandler(async (event) => {
    if (opts.headersOnly) {
      if (handleCacheHeaders(event, { maxAge: opts.maxAge })) {
        return;
      }
      return handler(event);
    }
    const response = await _cachedHandler(
      event
    );
    if (event.node.res.headersSent || event.node.res.writableEnded) {
      return response.body;
    }
    if (handleCacheHeaders(event, {
      modifiedTime: new Date(response.headers["last-modified"]),
      etag: response.headers.etag,
      maxAge: opts.maxAge
    })) {
      return;
    }
    event.node.res.statusCode = response.code;
    for (const name in response.headers) {
      const value = response.headers[name];
      if (name === "set-cookie") {
        event.node.res.appendHeader(
          name,
          splitCookiesString(value)
        );
      } else {
        if (value !== void 0) {
          event.node.res.setHeader(name, value);
        }
      }
    }
    return response.body;
  });
}
function cloneWithProxy(obj, overrides) {
  return new Proxy(obj, {
    get(target, property, receiver) {
      if (property in overrides) {
        return overrides[property];
      }
      return Reflect.get(target, property, receiver);
    },
    set(target, property, value, receiver) {
      if (property in overrides) {
        overrides[property] = value;
        return true;
      }
      return Reflect.set(target, property, value, receiver);
    }
  });
}
const cachedEventHandler = defineCachedEventHandler;

function klona(x) {
	if (typeof x !== 'object') return x;

	var k, tmp, str=Object.prototype.toString.call(x);

	if (str === '[object Object]') {
		if (x.constructor !== Object && typeof x.constructor === 'function') {
			tmp = new x.constructor();
			for (k in x) {
				if (x.hasOwnProperty(k) && tmp[k] !== x[k]) {
					tmp[k] = klona(x[k]);
				}
			}
		} else {
			tmp = {}; // null
			for (k in x) {
				if (k === '__proto__') {
					Object.defineProperty(tmp, k, {
						value: klona(x[k]),
						configurable: true,
						enumerable: true,
						writable: true,
					});
				} else {
					tmp[k] = klona(x[k]);
				}
			}
		}
		return tmp;
	}

	if (str === '[object Array]') {
		k = x.length;
		for (tmp=Array(k); k--;) {
			tmp[k] = klona(x[k]);
		}
		return tmp;
	}

	if (str === '[object Set]') {
		tmp = new Set;
		x.forEach(function (val) {
			tmp.add(klona(val));
		});
		return tmp;
	}

	if (str === '[object Map]') {
		tmp = new Map;
		x.forEach(function (val, key) {
			tmp.set(klona(key), klona(val));
		});
		return tmp;
	}

	if (str === '[object Date]') {
		return new Date(+x);
	}

	if (str === '[object RegExp]') {
		tmp = new RegExp(x.source, x.flags);
		tmp.lastIndex = x.lastIndex;
		return tmp;
	}

	if (str === '[object DataView]') {
		return new x.constructor( klona(x.buffer) );
	}

	if (str === '[object ArrayBuffer]') {
		return x.slice(0);
	}

	// ArrayBuffer.isView(x)
	// ~> `new` bcuz `Buffer.slice` => ref
	if (str.slice(-6) === 'Array]') {
		return new x.constructor(x);
	}

	return x;
}

const inlineAppConfig = {
  "nuxt": {}
};



const appConfig = defuFn(inlineAppConfig);

const NUMBER_CHAR_RE = /\d/;
const STR_SPLITTERS = ["-", "_", "/", "."];
function isUppercase(char = "") {
  if (NUMBER_CHAR_RE.test(char)) {
    return void 0;
  }
  return char !== char.toLowerCase();
}
function splitByCase(str, separators) {
  const splitters = STR_SPLITTERS;
  const parts = [];
  if (!str || typeof str !== "string") {
    return parts;
  }
  let buff = "";
  let previousUpper;
  let previousSplitter;
  for (const char of str) {
    const isSplitter = splitters.includes(char);
    if (isSplitter === true) {
      parts.push(buff);
      buff = "";
      previousUpper = void 0;
      continue;
    }
    const isUpper = isUppercase(char);
    if (previousSplitter === false) {
      if (previousUpper === false && isUpper === true) {
        parts.push(buff);
        buff = char;
        previousUpper = isUpper;
        continue;
      }
      if (previousUpper === true && isUpper === false && buff.length > 1) {
        const lastChar = buff.at(-1);
        parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
        buff = lastChar + char;
        previousUpper = isUpper;
        continue;
      }
    }
    buff += char;
    previousUpper = isUpper;
    previousSplitter = isSplitter;
  }
  parts.push(buff);
  return parts;
}
function kebabCase(str, joiner) {
  return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner) : "";
}
function snakeCase(str) {
  return kebabCase(str || "", "_");
}

function getEnv(key, opts) {
  const envKey = snakeCase(key).toUpperCase();
  return destr(
    process.env[opts.prefix + envKey] ?? process.env[opts.altPrefix + envKey]
  );
}
function _isObject(input) {
  return typeof input === "object" && !Array.isArray(input);
}
function applyEnv(obj, opts, parentKey = "") {
  for (const key in obj) {
    const subKey = parentKey ? `${parentKey}_${key}` : key;
    const envValue = getEnv(subKey, opts);
    if (_isObject(obj[key])) {
      if (_isObject(envValue)) {
        obj[key] = { ...obj[key], ...envValue };
        applyEnv(obj[key], opts, subKey);
      } else if (envValue === void 0) {
        applyEnv(obj[key], opts, subKey);
      } else {
        obj[key] = envValue ?? obj[key];
      }
    } else {
      obj[key] = envValue ?? obj[key];
    }
    if (opts.envExpansion && typeof obj[key] === "string") {
      obj[key] = _expandFromEnv(obj[key]);
    }
  }
  return obj;
}
const envExpandRx = /\{\{([^{}]*)\}\}/g;
function _expandFromEnv(value) {
  return value.replace(envExpandRx, (match, key) => {
    return process.env[key] || match;
  });
}

const _inlineRuntimeConfig = {
  "app": {
    "baseURL": "/",
    "buildId": "7a355604-2848-4fa3-ac41-6bb8a329672b",
    "buildAssetsDir": "/_nuxt/",
    "cdnURL": ""
  },
  "nitro": {
    "envPrefix": "NUXT_",
    "routeRules": {
      "/__nuxt_error": {
        "cache": false
      },
      "/_nuxt/builds/meta/**": {
        "headers": {
          "cache-control": "public, max-age=31536000, immutable"
        }
      },
      "/_nuxt/builds/**": {
        "headers": {
          "cache-control": "public, max-age=1, immutable"
        }
      },
      "/_nuxt/**": {
        "headers": {
          "cache-control": "public, max-age=31536000, immutable"
        }
      }
    }
  },
  "public": {
    "amplitudeApiKey": ""
  }
};
const envOptions = {
  prefix: "NITRO_",
  altPrefix: _inlineRuntimeConfig.nitro.envPrefix ?? process.env.NITRO_ENV_PREFIX ?? "_",
  envExpansion: _inlineRuntimeConfig.nitro.envExpansion ?? process.env.NITRO_ENV_EXPANSION ?? false
};
const _sharedRuntimeConfig = _deepFreeze(
  applyEnv(klona(_inlineRuntimeConfig), envOptions)
);
function useRuntimeConfig(event) {
  if (!event) {
    return _sharedRuntimeConfig;
  }
  if (event.context.nitro.runtimeConfig) {
    return event.context.nitro.runtimeConfig;
  }
  const runtimeConfig = klona(_inlineRuntimeConfig);
  applyEnv(runtimeConfig, envOptions);
  event.context.nitro.runtimeConfig = runtimeConfig;
  return runtimeConfig;
}
_deepFreeze(klona(appConfig));
function _deepFreeze(object) {
  const propNames = Object.getOwnPropertyNames(object);
  for (const name of propNames) {
    const value = object[name];
    if (value && typeof value === "object") {
      _deepFreeze(value);
    }
  }
  return Object.freeze(object);
}
new Proxy(/* @__PURE__ */ Object.create(null), {
  get: (_, prop) => {
    console.warn(
      "Please use `useRuntimeConfig()` instead of accessing config directly."
    );
    const runtimeConfig = useRuntimeConfig();
    if (prop in runtimeConfig) {
      return runtimeConfig[prop];
    }
    return void 0;
  }
});

function createContext(opts = {}) {
  let currentInstance;
  let isSingleton = false;
  const checkConflict = (instance) => {
    if (currentInstance && currentInstance !== instance) {
      throw new Error("Context conflict");
    }
  };
  let als;
  if (opts.asyncContext) {
    const _AsyncLocalStorage = opts.AsyncLocalStorage || globalThis.AsyncLocalStorage;
    if (_AsyncLocalStorage) {
      als = new _AsyncLocalStorage();
    } else {
      console.warn("[unctx] `AsyncLocalStorage` is not provided.");
    }
  }
  const _getCurrentInstance = () => {
    if (als) {
      const instance = als.getStore();
      if (instance !== void 0) {
        return instance;
      }
    }
    return currentInstance;
  };
  return {
    use: () => {
      const _instance = _getCurrentInstance();
      if (_instance === void 0) {
        throw new Error("Context is not available");
      }
      return _instance;
    },
    tryUse: () => {
      return _getCurrentInstance();
    },
    set: (instance, replace) => {
      if (!replace) {
        checkConflict(instance);
      }
      currentInstance = instance;
      isSingleton = true;
    },
    unset: () => {
      currentInstance = void 0;
      isSingleton = false;
    },
    call: (instance, callback) => {
      checkConflict(instance);
      currentInstance = instance;
      try {
        return als ? als.run(instance, callback) : callback();
      } finally {
        if (!isSingleton) {
          currentInstance = void 0;
        }
      }
    },
    async callAsync(instance, callback) {
      currentInstance = instance;
      const onRestore = () => {
        currentInstance = instance;
      };
      const onLeave = () => currentInstance === instance ? onRestore : void 0;
      asyncHandlers.add(onLeave);
      try {
        const r = als ? als.run(instance, callback) : callback();
        if (!isSingleton) {
          currentInstance = void 0;
        }
        return await r;
      } finally {
        asyncHandlers.delete(onLeave);
      }
    }
  };
}
function createNamespace(defaultOpts = {}) {
  const contexts = {};
  return {
    get(key, opts = {}) {
      if (!contexts[key]) {
        contexts[key] = createContext({ ...defaultOpts, ...opts });
      }
      return contexts[key];
    }
  };
}
const _globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : {};
const globalKey = "__unctx__";
const defaultNamespace = _globalThis[globalKey] || (_globalThis[globalKey] = createNamespace());
const getContext = (key, opts = {}) => defaultNamespace.get(key, opts);
const asyncHandlersKey = "__unctx_async_handlers__";
const asyncHandlers = _globalThis[asyncHandlersKey] || (_globalThis[asyncHandlersKey] = /* @__PURE__ */ new Set());
function executeAsync(function_) {
  const restores = [];
  for (const leaveHandler of asyncHandlers) {
    const restore2 = leaveHandler();
    if (restore2) {
      restores.push(restore2);
    }
  }
  const restore = () => {
    for (const restore2 of restores) {
      restore2();
    }
  };
  let awaitable = function_();
  if (awaitable && typeof awaitable === "object" && "catch" in awaitable) {
    awaitable = awaitable.catch((error) => {
      restore();
      throw error;
    });
  }
  return [awaitable, restore];
}

getContext("nitro-app", {
  asyncContext: false,
  AsyncLocalStorage: void 0
});

const config = useRuntimeConfig();
const _routeRulesMatcher = toRouteMatcher(
  createRouter$1({ routes: config.nitro.routeRules })
);
function createRouteRulesHandler(ctx) {
  return eventHandler((event) => {
    const routeRules = getRouteRules(event);
    if (routeRules.headers) {
      setHeaders(event, routeRules.headers);
    }
    if (routeRules.redirect) {
      let target = routeRules.redirect.to;
      if (target.endsWith("/**")) {
        let targetPath = event.path;
        const strpBase = routeRules.redirect._redirectStripBase;
        if (strpBase) {
          targetPath = withoutBase(targetPath, strpBase);
        }
        target = joinURL(target.slice(0, -3), targetPath);
      } else if (event.path.includes("?")) {
        const query = getQuery$1(event.path);
        target = withQuery(target, query);
      }
      return sendRedirect(event, target, routeRules.redirect.statusCode);
    }
    if (routeRules.proxy) {
      let target = routeRules.proxy.to;
      if (target.endsWith("/**")) {
        let targetPath = event.path;
        const strpBase = routeRules.proxy._proxyStripBase;
        if (strpBase) {
          targetPath = withoutBase(targetPath, strpBase);
        }
        target = joinURL(target.slice(0, -3), targetPath);
      } else if (event.path.includes("?")) {
        const query = getQuery$1(event.path);
        target = withQuery(target, query);
      }
      return proxyRequest(event, target, {
        fetch: ctx.localFetch,
        ...routeRules.proxy
      });
    }
  });
}
function getRouteRules(event) {
  event.context._nitro = event.context._nitro || {};
  if (!event.context._nitro.routeRules) {
    event.context._nitro.routeRules = getRouteRulesForPath(
      withoutBase(event.path.split("?")[0], useRuntimeConfig().app.baseURL)
    );
  }
  return event.context._nitro.routeRules;
}
function getRouteRulesForPath(path) {
  return defu({}, ..._routeRulesMatcher.matchAll(path).reverse());
}

function _captureError(error, type) {
  console.error(`[${type}]`, error);
  useNitroApp().captureError(error, { tags: [type] });
}
function trapUnhandledNodeErrors() {
  process.on(
    "unhandledRejection",
    (error) => _captureError(error, "unhandledRejection")
  );
  process.on(
    "uncaughtException",
    (error) => _captureError(error, "uncaughtException")
  );
}
function joinHeaders(value) {
  return Array.isArray(value) ? value.join(", ") : String(value);
}
function normalizeFetchResponse(response) {
  if (!response.headers.has("set-cookie")) {
    return response;
  }
  return new Response(response.body, {
    status: response.status,
    statusText: response.statusText,
    headers: normalizeCookieHeaders(response.headers)
  });
}
function normalizeCookieHeader(header = "") {
  return splitCookiesString(joinHeaders(header));
}
function normalizeCookieHeaders(headers) {
  const outgoingHeaders = new Headers();
  for (const [name, header] of headers) {
    if (name === "set-cookie") {
      for (const cookie of normalizeCookieHeader(header)) {
        outgoingHeaders.append("set-cookie", cookie);
      }
    } else {
      outgoingHeaders.set(name, joinHeaders(header));
    }
  }
  return outgoingHeaders;
}

/**
* Nitro internal functions extracted from https://github.com/nitrojs/nitro/blob/v2/src/runtime/internal/utils.ts
*/
function isJsonRequest(event) {
	// If the client specifically requests HTML, then avoid classifying as JSON.
	if (hasReqHeader(event, "accept", "text/html")) {
		return false;
	}
	return hasReqHeader(event, "accept", "application/json") || hasReqHeader(event, "user-agent", "curl/") || hasReqHeader(event, "user-agent", "httpie/") || hasReqHeader(event, "sec-fetch-mode", "cors") || event.path.startsWith("/api/") || event.path.endsWith(".json");
}
function hasReqHeader(event, name, includes) {
	const value = getRequestHeader(event, name);
	return value && typeof value === "string" && value.toLowerCase().includes(includes);
}

const errorHandler$0 = (async function errorhandler(error, event, { defaultHandler }) {
	if (event.handled || isJsonRequest(event)) {
		// let Nitro handle JSON errors
		return;
	}
	// invoke default Nitro error handler (which will log appropriately if required)
	const defaultRes = await defaultHandler(error, event, { json: true });
	// let Nitro handle redirect if appropriate
	const status = error.status || error.statusCode || 500;
	if (status === 404 && defaultRes.status === 302) {
		setResponseHeaders(event, defaultRes.headers);
		setResponseStatus(event, defaultRes.status, defaultRes.statusText);
		return send(event, JSON.stringify(defaultRes.body, null, 2));
	}
	const errorObject = defaultRes.body;
	// remove proto/hostname/port from URL
	const url = new URL(errorObject.url);
	errorObject.url = withoutBase(url.pathname, useRuntimeConfig(event).app.baseURL) + url.search + url.hash;
	// add default server message
	errorObject.message ||= "Server Error";
	// we will be rendering this error internally so we can pass along the error.data safely
	errorObject.data ||= error.data;
	errorObject.statusText ||= error.statusText || error.statusMessage;
	delete defaultRes.headers["content-type"];
	delete defaultRes.headers["content-security-policy"];
	setResponseHeaders(event, defaultRes.headers);
	// Access request headers
	const reqHeaders = getRequestHeaders(event);
	// Detect to avoid recursion in SSR rendering of errors
	const isRenderingError = event.path.startsWith("/__nuxt_error") || !!reqHeaders["x-nuxt-error"];
	// HTML response (via SSR)
	const res = isRenderingError ? null : await useNitroApp().localFetch(withQuery(joinURL(useRuntimeConfig(event).app.baseURL, "/__nuxt_error"), errorObject), {
		headers: {
			...reqHeaders,
			"x-nuxt-error": "true"
		},
		redirect: "manual"
	}).catch(() => null);
	if (event.handled) {
		return;
	}
	// Fallback to static rendered error page
	if (!res) {
		const { template } = await import('../_/error-500.mjs');
		setResponseHeader(event, "Content-Type", "text/html;charset=UTF-8");
		return send(event, template(errorObject));
	}
	const html = await res.text();
	for (const [header, value] of res.headers.entries()) {
		if (header === "set-cookie") {
			appendResponseHeader(event, header, value);
			continue;
		}
		setResponseHeader(event, header, value);
	}
	setResponseStatus(event, res.status && res.status !== 200 ? res.status : defaultRes.status, res.statusText || defaultRes.statusText);
	return send(event, html);
});

function defineNitroErrorHandler(handler) {
  return handler;
}

const errorHandler$1 = defineNitroErrorHandler(
  function defaultNitroErrorHandler(error, event) {
    const res = defaultHandler(error, event);
    setResponseHeaders(event, res.headers);
    setResponseStatus(event, res.status, res.statusText);
    return send(event, JSON.stringify(res.body, null, 2));
  }
);
function defaultHandler(error, event, opts) {
  const isSensitive = error.unhandled || error.fatal;
  const statusCode = error.statusCode || 500;
  const statusMessage = error.statusMessage || "Server Error";
  const url = getRequestURL(event, { xForwardedHost: true, xForwardedProto: true });
  if (statusCode === 404) {
    const baseURL = "/";
    if (/^\/[^/]/.test(baseURL) && !url.pathname.startsWith(baseURL)) {
      const redirectTo = `${baseURL}${url.pathname.slice(1)}${url.search}`;
      return {
        status: 302,
        statusText: "Found",
        headers: { location: redirectTo },
        body: `Redirecting...`
      };
    }
  }
  if (isSensitive && !opts?.silent) {
    const tags = [error.unhandled && "[unhandled]", error.fatal && "[fatal]"].filter(Boolean).join(" ");
    console.error(`[request error] ${tags} [${event.method}] ${url}
`, error);
  }
  const headers = {
    "content-type": "application/json",
    // Prevent browser from guessing the MIME types of resources.
    "x-content-type-options": "nosniff",
    // Prevent error page from being embedded in an iframe
    "x-frame-options": "DENY",
    // Prevent browsers from sending the Referer header
    "referrer-policy": "no-referrer",
    // Disable the execution of any js
    "content-security-policy": "script-src 'none'; frame-ancestors 'none';"
  };
  setResponseStatus(event, statusCode, statusMessage);
  if (statusCode === 404 || !getResponseHeader(event, "cache-control")) {
    headers["cache-control"] = "no-cache";
  }
  const body = {
    error: true,
    url: url.href,
    statusCode,
    statusMessage,
    message: isSensitive ? "Server Error" : error.message,
    data: isSensitive ? void 0 : error.data
  };
  return {
    status: statusCode,
    statusText: statusMessage,
    headers,
    body
  };
}

const errorHandlers = [errorHandler$0, errorHandler$1];

async function errorHandler(error, event) {
  for (const handler of errorHandlers) {
    try {
      await handler(error, event, { defaultHandler });
      if (event.handled) {
        return; // Response handled
      }
    } catch(error) {
      // Handler itself thrown, log and continue
      console.error(error);
    }
  }
  // H3 will handle fallback
}

const plugins = [
  
];

const assets = {
  "/favicon.ico": {
    "type": "image/vnd.microsoft.icon",
    "etag": "\"10be-n8egyE9tcb7sKGr/pYCaQ4uWqxI\"",
    "mtime": "2026-04-07T20:18:38.470Z",
    "size": 4286,
    "path": "../public/favicon.ico"
  },
  "/robots.txt": {
    "type": "text/plain; charset=utf-8",
    "etag": "\"18-j8OIsL9qGDmNZ+lHhp2tyH4XtaE\"",
    "mtime": "2026-04-07T20:18:38.470Z",
    "size": 24,
    "path": "../public/robots.txt"
  },
  "/_nuxt/BaEVHuX6.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"d96-/P904IUVI3bQAbW5knxipDlZca4\"",
    "mtime": "2026-04-07T20:18:38.467Z",
    "size": 3478,
    "path": "../public/_nuxt/BaEVHuX6.js"
  },
  "/_nuxt/BTkul5Q2.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"dba2-NVVaEaPPe8zzyuF4DqUtPS+R/TA\"",
    "mtime": "2026-04-07T20:18:38.467Z",
    "size": 56226,
    "path": "../public/_nuxt/BTkul5Q2.js"
  },
  "/_nuxt/CaxW3SQp.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"eb9-gB3CR745EyKQuCQg/hwdAT4Yap0\"",
    "mtime": "2026-04-07T20:18:38.467Z",
    "size": 3769,
    "path": "../public/_nuxt/CaxW3SQp.js"
  },
  "/_nuxt/CrxCT0gX.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"9ec-h1vnihOLMMAayecicIDS8LMMOVA\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 2540,
    "path": "../public/_nuxt/CrxCT0gX.js"
  },
  "/_nuxt/Cvlh8XCj.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"146-UJT9GwX77ZUmuooZCT4jfQvdYLM\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 326,
    "path": "../public/_nuxt/Cvlh8XCj.js"
  },
  "/_nuxt/D7Bf6Say.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"1bae-+4vI/GRp5EE8r7TKU34YxCQF8y0\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 7086,
    "path": "../public/_nuxt/D7Bf6Say.js"
  },
  "/_nuxt/DOp-_5WN.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"4b5-UU1M4XP63KaPG8RFhshZ0AgTqjs\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 1205,
    "path": "../public/_nuxt/DOp-_5WN.js"
  },
  "/_nuxt/DkWg1RwU.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"4cf-SbAszd3wdgRfA8MkBDqTcX2V6Vs\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 1231,
    "path": "../public/_nuxt/DkWg1RwU.js"
  },
  "/_nuxt/PJVKHxNq.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"3d61-WUsD8DghvkrY9LikK97oHmT4F1E\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 15713,
    "path": "../public/_nuxt/PJVKHxNq.js"
  },
  "/_nuxt/entry.WkMqRY_v.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"916-gwWvUB8MDlyti/BBWmtgccH2jMs\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 2326,
    "path": "../public/_nuxt/entry.WkMqRY_v.css"
  },
  "/_nuxt/error-404.DyKsVtYE.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"97e-/KRWx0xHUVAZCtFHQobEm0AmqL8\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 2430,
    "path": "../public/_nuxt/error-404.DyKsVtYE.css"
  },
  "/_nuxt/DMrp4Fbu.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"2c5c0-RHnXNeFAiZOpu1b0QA2EM5wRIdY\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 181696,
    "path": "../public/_nuxt/DMrp4Fbu.js"
  },
  "/_nuxt/iMBneS3o.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"7b-1d7eCFGU/VK5OrPp3KRs5tvVf7E\"",
    "mtime": "2026-04-07T20:18:38.469Z",
    "size": 123,
    "path": "../public/_nuxt/iMBneS3o.js"
  },
  "/_nuxt/error-500.D-HKo5t7.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"773-Tpn4iFO+vCuTJ/ajqZlnrv/w4Iw\"",
    "mtime": "2026-04-07T20:18:38.469Z",
    "size": 1907,
    "path": "../public/_nuxt/error-500.D-HKo5t7.css"
  },
  "/_nuxt/builds/latest.json": {
    "type": "application/json",
    "etag": "\"47-ykGZBCfJ1Wd8u21jLMteqJHPEVc\"",
    "mtime": "2026-04-07T20:18:38.465Z",
    "size": 71,
    "path": "../public/_nuxt/builds/latest.json"
  },
  "/_nuxt/sPdhR0i8.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"1ea1a-sNK2+hnzW2eFc16+offQJuykapM\"",
    "mtime": "2026-04-07T20:18:38.469Z",
    "size": 125466,
    "path": "../public/_nuxt/sPdhR0i8.js"
  },
  "/_nuxt/builds/meta/7a355604-2848-4fa3-ac41-6bb8a329672b.json": {
    "type": "application/json",
    "etag": "\"58-j/CrxDHzln7WbGtWRJ1ci1Rx5UY\"",
    "mtime": "2026-04-07T20:18:38.463Z",
    "size": 88,
    "path": "../public/_nuxt/builds/meta/7a355604-2848-4fa3-ac41-6bb8a329672b.json"
  },
  "/_nuxt/BpsV6fwO.js": {
    "type": "text/javascript; charset=utf-8",
    "etag": "\"86d7b-x8b9wsI2M+X85MNYzMcZutScYKY\"",
    "mtime": "2026-04-07T20:18:38.468Z",
    "size": 552315,
    "path": "../public/_nuxt/BpsV6fwO.js"
  }
};

const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
function normalizeWindowsPath(input = "") {
  if (!input) {
    return input;
  }
  return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
}
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
function cwd() {
  if (typeof process !== "undefined" && typeof process.cwd === "function") {
    return process.cwd().replace(/\\/g, "/");
  }
  return "/";
}
const resolve = function(...arguments_) {
  arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
  let resolvedPath = "";
  let resolvedAbsolute = false;
  for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
    const path = index >= 0 ? arguments_[index] : cwd();
    if (!path || path.length === 0) {
      continue;
    }
    resolvedPath = `${path}/${resolvedPath}`;
    resolvedAbsolute = isAbsolute(path);
  }
  resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
  if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
    return `/${resolvedPath}`;
  }
  return resolvedPath.length > 0 ? resolvedPath : ".";
};
function normalizeString(path, allowAboveRoot) {
  let res = "";
  let lastSegmentLength = 0;
  let lastSlash = -1;
  let dots = 0;
  let char = null;
  for (let index = 0; index <= path.length; ++index) {
    if (index < path.length) {
      char = path[index];
    } else if (char === "/") {
      break;
    } else {
      char = "/";
    }
    if (char === "/") {
      if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
        if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
          if (res.length > 2) {
            const lastSlashIndex = res.lastIndexOf("/");
            if (lastSlashIndex === -1) {
              res = "";
              lastSegmentLength = 0;
            } else {
              res = res.slice(0, lastSlashIndex);
              lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
            }
            lastSlash = index;
            dots = 0;
            continue;
          } else if (res.length > 0) {
            res = "";
            lastSegmentLength = 0;
            lastSlash = index;
            dots = 0;
            continue;
          }
        }
        if (allowAboveRoot) {
          res += res.length > 0 ? "/.." : "..";
          lastSegmentLength = 2;
        }
      } else {
        if (res.length > 0) {
          res += `/${path.slice(lastSlash + 1, index)}`;
        } else {
          res = path.slice(lastSlash + 1, index);
        }
        lastSegmentLength = index - lastSlash - 1;
      }
      lastSlash = index;
      dots = 0;
    } else if (char === "." && dots !== -1) {
      ++dots;
    } else {
      dots = -1;
    }
  }
  return res;
}
const isAbsolute = function(p) {
  return _IS_ABSOLUTE_RE.test(p);
};
const dirname = function(p) {
  const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
  if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
    segments[0] += "/";
  }
  return segments.join("/") || (isAbsolute(p) ? "/" : ".");
};

function readAsset (id) {
  const serverDir = dirname(fileURLToPath(globalThis._importMeta_.url));
  return promises.readFile(resolve(serverDir, assets[id].path))
}

const publicAssetBases = {"/_nuxt/builds/meta/":{"maxAge":31536000},"/_nuxt/builds/":{"maxAge":1},"/_nuxt/":{"maxAge":31536000}};

function isPublicAssetURL(id = '') {
  if (assets[id]) {
    return true
  }
  for (const base in publicAssetBases) {
    if (id.startsWith(base)) { return true }
  }
  return false
}

function getAsset (id) {
  return assets[id]
}

const METHODS = /* @__PURE__ */ new Set(["HEAD", "GET"]);
const EncodingMap = { gzip: ".gz", br: ".br" };
const _cwWNAj = eventHandler((event) => {
  if (event.method && !METHODS.has(event.method)) {
    return;
  }
  let id = decodePath(
    withLeadingSlash(withoutTrailingSlash(parseURL(event.path).pathname))
  );
  let asset;
  const encodingHeader = String(
    getRequestHeader(event, "accept-encoding") || ""
  );
  const encodings = [
    ...encodingHeader.split(",").map((e) => EncodingMap[e.trim()]).filter(Boolean).sort(),
    ""
  ];
  for (const encoding of encodings) {
    for (const _id of [id + encoding, joinURL(id, "index.html" + encoding)]) {
      const _asset = getAsset(_id);
      if (_asset) {
        asset = _asset;
        id = _id;
        break;
      }
    }
  }
  if (!asset) {
    if (isPublicAssetURL(id)) {
      removeResponseHeader(event, "Cache-Control");
      throw createError$1({ statusCode: 404 });
    }
    return;
  }
  if (asset.encoding !== void 0) {
    appendResponseHeader(event, "Vary", "Accept-Encoding");
  }
  const ifNotMatch = getRequestHeader(event, "if-none-match") === asset.etag;
  if (ifNotMatch) {
    setResponseStatus(event, 304, "Not Modified");
    return "";
  }
  const ifModifiedSinceH = getRequestHeader(event, "if-modified-since");
  const mtimeDate = new Date(asset.mtime);
  if (ifModifiedSinceH && asset.mtime && new Date(ifModifiedSinceH) >= mtimeDate) {
    setResponseStatus(event, 304, "Not Modified");
    return "";
  }
  if (asset.type && !getResponseHeader(event, "Content-Type")) {
    setResponseHeader(event, "Content-Type", asset.type);
  }
  if (asset.etag && !getResponseHeader(event, "ETag")) {
    setResponseHeader(event, "ETag", asset.etag);
  }
  if (asset.mtime && !getResponseHeader(event, "Last-Modified")) {
    setResponseHeader(event, "Last-Modified", mtimeDate.toUTCString());
  }
  if (asset.encoding && !getResponseHeader(event, "Content-Encoding")) {
    setResponseHeader(event, "Content-Encoding", asset.encoding);
  }
  if (asset.size > 0 && !getResponseHeader(event, "Content-Length")) {
    setResponseHeader(event, "Content-Length", asset.size);
  }
  return readAsset(id);
});

const _SxA8c9 = defineEventHandler(() => {});

const _lazy_GMHxmz = () => import('../routes/api/auth/login.post.mjs');
const _lazy_Jmd7pB = () => import('../routes/api/burrito/consider.post.mjs');
const _lazy_YUXn1l = () => import('../routes/renderer.mjs').then(function (n) { return n.r; });

const handlers = [
  { route: '', handler: _cwWNAj, lazy: false, middleware: true, method: undefined },
  { route: '/api/auth/login', handler: _lazy_GMHxmz, lazy: true, middleware: false, method: "post" },
  { route: '/api/burrito/consider', handler: _lazy_Jmd7pB, lazy: true, middleware: false, method: "post" },
  { route: '/__nuxt_error', handler: _lazy_YUXn1l, lazy: true, middleware: false, method: undefined },
  { route: '/__nuxt_island/**', handler: _SxA8c9, lazy: false, middleware: false, method: undefined },
  { route: '/**', handler: _lazy_YUXn1l, lazy: true, middleware: false, method: undefined }
];

function createNitroApp() {
  const config = useRuntimeConfig();
  const hooks = createHooks();
  const captureError = (error, context = {}) => {
    const promise = hooks.callHookParallel("error", error, context).catch((error_) => {
      console.error("Error while capturing another error", error_);
    });
    if (context.event && isEvent(context.event)) {
      const errors = context.event.context.nitro?.errors;
      if (errors) {
        errors.push({ error, context });
      }
      if (context.event.waitUntil) {
        context.event.waitUntil(promise);
      }
    }
  };
  const h3App = createApp({
    debug: destr(false),
    onError: (error, event) => {
      captureError(error, { event, tags: ["request"] });
      return errorHandler(error, event);
    },
    onRequest: async (event) => {
      event.context.nitro = event.context.nitro || { errors: [] };
      const fetchContext = event.node.req?.__unenv__;
      if (fetchContext?._platform) {
        event.context = {
          _platform: fetchContext?._platform,
          // #3335
          ...fetchContext._platform,
          ...event.context
        };
      }
      if (!event.context.waitUntil && fetchContext?.waitUntil) {
        event.context.waitUntil = fetchContext.waitUntil;
      }
      event.fetch = (req, init) => fetchWithEvent(event, req, init, { fetch: localFetch });
      event.$fetch = (req, init) => fetchWithEvent(event, req, init, {
        fetch: $fetch
      });
      event.waitUntil = (promise) => {
        if (!event.context.nitro._waitUntilPromises) {
          event.context.nitro._waitUntilPromises = [];
        }
        event.context.nitro._waitUntilPromises.push(promise);
        if (event.context.waitUntil) {
          event.context.waitUntil(promise);
        }
      };
      event.captureError = (error, context) => {
        captureError(error, { event, ...context });
      };
      await nitroApp$1.hooks.callHook("request", event).catch((error) => {
        captureError(error, { event, tags: ["request"] });
      });
    },
    onBeforeResponse: async (event, response) => {
      await nitroApp$1.hooks.callHook("beforeResponse", event, response).catch((error) => {
        captureError(error, { event, tags: ["request", "response"] });
      });
    },
    onAfterResponse: async (event, response) => {
      await nitroApp$1.hooks.callHook("afterResponse", event, response).catch((error) => {
        captureError(error, { event, tags: ["request", "response"] });
      });
    }
  });
  const router = createRouter({
    preemptive: true
  });
  const nodeHandler = toNodeListener(h3App);
  const localCall = (aRequest) => b(
    nodeHandler,
    aRequest
  );
  const localFetch = (input, init) => {
    if (!input.toString().startsWith("/")) {
      return globalThis.fetch(input, init);
    }
    return C(
      nodeHandler,
      input,
      init
    ).then((response) => normalizeFetchResponse(response));
  };
  const $fetch = createFetch({
    fetch: localFetch,
    Headers: Headers$1,
    defaults: { baseURL: config.app.baseURL }
  });
  globalThis.$fetch = $fetch;
  h3App.use(createRouteRulesHandler({ localFetch }));
  for (const h of handlers) {
    let handler = h.lazy ? lazyEventHandler(h.handler) : h.handler;
    if (h.middleware || !h.route) {
      const middlewareBase = (config.app.baseURL + (h.route || "/")).replace(
        /\/+/g,
        "/"
      );
      h3App.use(middlewareBase, handler);
    } else {
      const routeRules = getRouteRulesForPath(
        h.route.replace(/:\w+|\*\*/g, "_")
      );
      if (routeRules.cache) {
        handler = cachedEventHandler(handler, {
          group: "nitro/routes",
          ...routeRules.cache
        });
      }
      router.use(h.route, handler, h.method);
    }
  }
  h3App.use(config.app.baseURL, router.handler);
  const app = {
    hooks,
    h3App,
    router,
    localCall,
    localFetch,
    captureError
  };
  return app;
}
function runNitroPlugins(nitroApp2) {
  for (const plugin of plugins) {
    try {
      plugin(nitroApp2);
    } catch (error) {
      nitroApp2.captureError(error, { tags: ["plugin"] });
      throw error;
    }
  }
}
const nitroApp$1 = createNitroApp();
function useNitroApp() {
  return nitroApp$1;
}
runNitroPlugins(nitroApp$1);

function defineRenderHandler(render) {
  const runtimeConfig = useRuntimeConfig();
  return eventHandler(async (event) => {
    const nitroApp = useNitroApp();
    const ctx = { event, render, response: void 0 };
    await nitroApp.hooks.callHook("render:before", ctx);
    if (!ctx.response) {
      if (event.path === `${runtimeConfig.app.baseURL}favicon.ico`) {
        setResponseHeader(event, "Content-Type", "image/x-icon");
        return send(
          event,
          "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
        );
      }
      ctx.response = await ctx.render(event);
      if (!ctx.response) {
        const _currentStatus = getResponseStatus(event);
        setResponseStatus(event, _currentStatus === 200 ? 500 : _currentStatus);
        return send(
          event,
          "No response returned from render handler: " + event.path
        );
      }
    }
    await nitroApp.hooks.callHook("render:response", ctx.response, ctx);
    if (ctx.response.headers) {
      setResponseHeaders(event, ctx.response.headers);
    }
    if (ctx.response.statusCode || ctx.response.statusMessage) {
      setResponseStatus(
        event,
        ctx.response.statusCode,
        ctx.response.statusMessage
      );
    }
    return ctx.response.body;
  });
}

const debug = (...args) => {
};
function GracefulShutdown(server, opts) {
  opts = opts || {};
  const options = Object.assign(
    {
      signals: "SIGINT SIGTERM",
      timeout: 3e4,
      development: false,
      forceExit: true,
      onShutdown: (signal) => Promise.resolve(signal),
      preShutdown: (signal) => Promise.resolve(signal)
    },
    opts
  );
  let isShuttingDown = false;
  const connections = {};
  let connectionCounter = 0;
  const secureConnections = {};
  let secureConnectionCounter = 0;
  let failed = false;
  let finalRun = false;
  function onceFactory() {
    let called = false;
    return (emitter, events, callback) => {
      function call() {
        if (!called) {
          called = true;
          return Reflect.apply(callback, this, arguments);
        }
      }
      for (const e of events) {
        emitter.on(e, call);
      }
    };
  }
  const signals = options.signals.split(" ").map((s) => s.trim()).filter((s) => s.length > 0);
  const once = onceFactory();
  once(process, signals, (signal) => {
    debug("received shut down signal", signal);
    shutdown(signal).then(() => {
      if (options.forceExit) {
        process.exit(failed ? 1 : 0);
      }
    }).catch((error) => {
      debug("server shut down error occurred", error);
      process.exit(1);
    });
  });
  function isFunction(functionToCheck) {
    const getType = Object.prototype.toString.call(functionToCheck);
    return /^\[object\s([A-Za-z]+)?Function]$/.test(getType);
  }
  function destroy(socket, force = false) {
    if (socket._isIdle && isShuttingDown || force) {
      socket.destroy();
      if (socket.server instanceof http.Server) {
        delete connections[socket._connectionId];
      } else {
        delete secureConnections[socket._connectionId];
      }
    }
  }
  function destroyAllConnections(force = false) {
    debug("Destroy Connections : " + (force ? "forced close" : "close"));
    let counter = 0;
    let secureCounter = 0;
    for (const key of Object.keys(connections)) {
      const socket = connections[key];
      const serverResponse = socket._httpMessage;
      if (serverResponse && !force) {
        if (!serverResponse.headersSent) {
          serverResponse.setHeader("connection", "close");
        }
      } else {
        counter++;
        destroy(socket);
      }
    }
    debug("Connections destroyed : " + counter);
    debug("Connection Counter    : " + connectionCounter);
    for (const key of Object.keys(secureConnections)) {
      const socket = secureConnections[key];
      const serverResponse = socket._httpMessage;
      if (serverResponse && !force) {
        if (!serverResponse.headersSent) {
          serverResponse.setHeader("connection", "close");
        }
      } else {
        secureCounter++;
        destroy(socket);
      }
    }
    debug("Secure Connections destroyed : " + secureCounter);
    debug("Secure Connection Counter    : " + secureConnectionCounter);
  }
  server.on("request", (req, res) => {
    req.socket._isIdle = false;
    if (isShuttingDown && !res.headersSent) {
      res.setHeader("connection", "close");
    }
    res.on("finish", () => {
      req.socket._isIdle = true;
      destroy(req.socket);
    });
  });
  server.on("connection", (socket) => {
    if (isShuttingDown) {
      socket.destroy();
    } else {
      const id = connectionCounter++;
      socket._isIdle = true;
      socket._connectionId = id;
      connections[id] = socket;
      socket.once("close", () => {
        delete connections[socket._connectionId];
      });
    }
  });
  server.on("secureConnection", (socket) => {
    if (isShuttingDown) {
      socket.destroy();
    } else {
      const id = secureConnectionCounter++;
      socket._isIdle = true;
      socket._connectionId = id;
      secureConnections[id] = socket;
      socket.once("close", () => {
        delete secureConnections[socket._connectionId];
      });
    }
  });
  process.on("close", () => {
    debug("closed");
  });
  function shutdown(sig) {
    function cleanupHttp() {
      destroyAllConnections();
      debug("Close http server");
      return new Promise((resolve, reject) => {
        server.close((err) => {
          if (err) {
            return reject(err);
          }
          return resolve(true);
        });
      });
    }
    debug("shutdown signal - " + sig);
    if (options.development) {
      debug("DEV-Mode - immediate forceful shutdown");
      return process.exit(0);
    }
    function finalHandler() {
      if (!finalRun) {
        finalRun = true;
        if (options.finally && isFunction(options.finally)) {
          debug("executing finally()");
          options.finally();
        }
      }
      return Promise.resolve();
    }
    function waitForReadyToShutDown(totalNumInterval) {
      debug(`waitForReadyToShutDown... ${totalNumInterval}`);
      if (totalNumInterval === 0) {
        debug(
          `Could not close connections in time (${options.timeout}ms), will forcefully shut down`
        );
        return Promise.resolve(true);
      }
      const allConnectionsClosed = Object.keys(connections).length === 0 && Object.keys(secureConnections).length === 0;
      if (allConnectionsClosed) {
        debug("All connections closed. Continue to shutting down");
        return Promise.resolve(false);
      }
      debug("Schedule the next waitForReadyToShutdown");
      return new Promise((resolve) => {
        setTimeout(() => {
          resolve(waitForReadyToShutDown(totalNumInterval - 1));
        }, 250);
      });
    }
    if (isShuttingDown) {
      return Promise.resolve();
    }
    debug("shutting down");
    return options.preShutdown(sig).then(() => {
      isShuttingDown = true;
      cleanupHttp();
    }).then(() => {
      const pollIterations = options.timeout ? Math.round(options.timeout / 250) : 0;
      return waitForReadyToShutDown(pollIterations);
    }).then((force) => {
      debug("Do onShutdown now");
      if (force) {
        destroyAllConnections(force);
      }
      return options.onShutdown(sig);
    }).then(finalHandler).catch((error) => {
      const errString = typeof error === "string" ? error : JSON.stringify(error);
      debug(errString);
      failed = true;
      throw errString;
    });
  }
  function shutdownManual() {
    return shutdown("manual");
  }
  return shutdownManual;
}

function getGracefulShutdownConfig() {
  return {
    disabled: !!process.env.NITRO_SHUTDOWN_DISABLED,
    signals: (process.env.NITRO_SHUTDOWN_SIGNALS || "SIGTERM SIGINT").split(" ").map((s) => s.trim()),
    timeout: Number.parseInt(process.env.NITRO_SHUTDOWN_TIMEOUT || "", 10) || 3e4,
    forceExit: !process.env.NITRO_SHUTDOWN_NO_FORCE_EXIT
  };
}
function setupGracefulShutdown(listener, nitroApp) {
  const shutdownConfig = getGracefulShutdownConfig();
  if (shutdownConfig.disabled) {
    return;
  }
  GracefulShutdown(listener, {
    signals: shutdownConfig.signals.join(" "),
    timeout: shutdownConfig.timeout,
    forceExit: shutdownConfig.forceExit,
    onShutdown: async () => {
      await new Promise((resolve) => {
        const timeout = setTimeout(() => {
          console.warn("Graceful shutdown timeout, force exiting...");
          resolve();
        }, shutdownConfig.timeout);
        nitroApp.hooks.callHook("close").catch((error) => {
          console.error(error);
        }).finally(() => {
          clearTimeout(timeout);
          resolve();
        });
      });
    }
  });
}

const cert = process.env.NITRO_SSL_CERT;
const key = process.env.NITRO_SSL_KEY;
const nitroApp = useNitroApp();
const server = cert && key ? new Server({ key, cert }, toNodeListener(nitroApp.h3App)) : new Server$1(toNodeListener(nitroApp.h3App));
const port = destr(process.env.NITRO_PORT || process.env.PORT) || 3e3;
const host = process.env.NITRO_HOST || process.env.HOST;
const path = process.env.NITRO_UNIX_SOCKET;
const listener = server.listen(path ? { path } : { port, host }, (err) => {
  if (err) {
    console.error(err);
    process.exit(1);
  }
  const protocol = cert && key ? "https" : "http";
  const addressInfo = listener.address();
  if (typeof addressInfo === "string") {
    console.log(`Listening on unix socket ${addressInfo}`);
    return;
  }
  const baseURL = (useRuntimeConfig().app.baseURL || "").replace(/\/$/, "");
  const url = `${protocol}://${addressInfo.family === "IPv6" ? `[${addressInfo.address}]` : addressInfo.address}:${addressInfo.port}${baseURL}`;
  console.log(`Listening on ${url}`);
});
trapUnhandledNodeErrors();
setupGracefulShutdown(listener, nitroApp);
const nodeServer = {};

export { $fetch as $, getResponseStatus as a, decodePath as b, createError$1 as c, defineEventHandler as d, defineRenderHandler as e, getQuery as f, getResponseStatusText as g, destr as h, getRouteRules as i, joinRelativeURL as j, joinURL as k, useNitroApp as l, hasProtocol as m, isScriptProtocol as n, getContext as o, parseQuery as p, withTrailingSlash as q, readBody as r, sanitizeStatusCode as s, withoutTrailingSlash as t, useRuntimeConfig as u, createHooks as v, withQuery as w, executeAsync as x, defu as y, nodeServer as z };
//# sourceMappingURL=nitro.mjs.map

```

---

## .output/server/chunks/nitro/nitro.mjs.map

```map
{"version":3,"file":"nitro.mjs","sources":["../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../node_modules/.pnpm/h3@1.15.5/node_modules/h3/dist/index.mjs","../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/dist/index.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/drivers/utils/index.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2/node_modules/unstorage/drivers/fs-lite.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/error.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/handlers/error.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/static.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/renderer.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../node_modules/.pnpm/nitropack@2.13.1_idb-keyval@6.2.2/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["getQuery","createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","normalizeKey","defineDriver","DRIVER_NAME","dirname","fsPromises","resolve","fsp","_inlineAppConfig","createRadixRouter","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37]}
```

---

## .output/server/chunks/routes/api/auth/login.post.mjs

```mjs
import { d as defineEventHandler, r as readBody, c as createError } from '../../../nitro/nitro.mjs';
import { u as users, g as getOrCreateUser, a as useServerAmplitude } from '../../../_/users.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
import '@amplitude/analytics-node';

const login_post = defineEventHandler(async (event) => {
  const body = await readBody(event);
  const { username, password } = body || {};
  if (!username || !password) {
    throw createError({
      statusCode: 400,
      message: "Username and password required"
    });
  }
  const isNewUser = !users.has(username);
  const user = getOrCreateUser(username);
  const amplitude = useServerAmplitude();
  amplitude == null ? void 0 : amplitude.track("server_login", {
    username,
    isNewUser,
    source: "api"
  }, { user_id: username });
  return {
    success: true,
    user
  };
});

export { login_post as default };
//# sourceMappingURL=login.post.mjs.map

```

---

## .output/server/chunks/routes/api/auth/login.post.mjs.map

```map
{"version":3,"file":"login.post.mjs","sources":["../../../../../../server/api/auth/login.post.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,mBAAA,kBAAA,CAAA,OAAA,KAAA,KAAA;AACA,EAAA,MAAA,IAAA,GAAA,MAAA,QAAA,CAAA,KAAA,CAAA;AACA,EAAA,MAAA,EAAA,QAAA,EAAA,QAAA,EAAA,GAAA,QAAA,EAAA;AAEA,EAAA,IAAA,CAAA,QAAA,IAAA,CAAA,QAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,OAAA,EAAA;AAAA,KACA,CAAA;AAAA,EACA;AAEA,EAAA,MAAA,SAAA,GAAA,CAAA,KAAA,CAAA,GAAA,CAAA,QAAA,CAAA;AACA,EAAA,MAAA,IAAA,GAAA,gBAAA,QAAA,CAAA;AAGA,EAAA,MAAA,YAAA,kBAAA,EAAA;AACA,EAAA,SAAA,IAAA,IAAA,GAAA,MAAA,GAAA,SAAA,CAAA,MAAA,cAAA,EAAA;AAAA,IACA,QAAA;AAAA,IACA,SAAA;AAAA,IACA,MAAA,EAAA;AAAA,GACA,EAAA,EAAA,OAAA,EAAA,QAAA,EAAA,CAAA;AAEA,EAAA,OAAA;AAAA,IACA,OAAA,EAAA,IAAA;AAAA,IACA;AAAA,GACA;AACA,CAAA,CAAA;;;;"}
```

---

## .output/server/chunks/routes/api/burrito/consider.post.mjs

```mjs
import { d as defineEventHandler, r as readBody, c as createError } from '../../../nitro/nitro.mjs';
import { u as users, i as incrementBurritoConsiderations, a as useServerAmplitude } from '../../../_/users.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
import '@amplitude/analytics-node';

const consider_post = defineEventHandler(async (event) => {
  const body = await readBody(event);
  const username = body == null ? void 0 : body.username;
  if (!username) {
    throw createError({
      statusCode: 400,
      message: "Username required"
    });
  }
  if (!users.has(username)) {
    throw createError({
      statusCode: 404,
      message: "User not found"
    });
  }
  const user = incrementBurritoConsiderations(username);
  const amplitude = useServerAmplitude();
  amplitude == null ? void 0 : amplitude.track("burrito_considered", {
    username,
    total_considerations: user.burritoConsiderations,
    source: "api"
  }, { user_id: username });
  return {
    success: true,
    user: { ...user }
  };
});

export { consider_post as default };
//# sourceMappingURL=consider.post.mjs.map

```

---

## .output/server/chunks/routes/api/burrito/consider.post.mjs.map

```map
{"version":3,"file":"consider.post.mjs","sources":["../../../../../../server/api/burrito/consider.post.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,sBAAA,kBAAA,CAAA,OAAA,KAAA,KAAA;AACA,EAAA,MAAA,IAAA,GAAA,MAAA,QAAA,CAAA,KAAA,CAAA;AACA,EAAA,MAAA,WAAA,IAAA,IAAA,IAAA,GAAA,MAAA,GAAA,IAAA,CAAA,QAAA;AAEA,EAAA,IAAA,CAAA,QAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,OAAA,EAAA;AAAA,KACA,CAAA;AAAA,EACA;AAEA,EAAA,IAAA,CAAA,KAAA,CAAA,GAAA,CAAA,QAAA,CAAA,EAAA;AACA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,OAAA,EAAA;AAAA,KACA,CAAA;AAAA,EACA;AAGA,EAAA,MAAA,IAAA,GAAA,+BAAA,QAAA,CAAA;AAGA,EAAA,MAAA,YAAA,kBAAA,EAAA;AACA,EAAA,SAAA,IAAA,IAAA,GAAA,MAAA,GAAA,SAAA,CAAA,MAAA,oBAAA,EAAA;AAAA,IACA,QAAA;AAAA,IACA,sBAAA,IAAA,CAAA,qBAAA;AAAA,IACA,MAAA,EAAA;AAAA,GACA,EAAA,EAAA,OAAA,EAAA,QAAA,EAAA,CAAA;AAEA,EAAA,OAAA;AAAA,IACA,OAAA,EAAA,IAAA;AAAA,IACA,IAAA,EAAA,EAAA,GAAA,IAAA;AAAA,GACA;AACA,CAAA,CAAA;;;;"}
```

---

## .output/server/chunks/routes/renderer.mjs

```mjs
import { createRenderer, getRequestDependencies, getPreloadLinks, getPrefetchLinks } from 'vue-bundle-renderer/runtime';
import { j as joinRelativeURL, u as useRuntimeConfig, g as getResponseStatusText, a as getResponseStatus, b as decodePath, e as defineRenderHandler, f as getQuery, c as createError, h as destr, i as getRouteRules, k as joinURL, l as useNitroApp } from '../nitro/nitro.mjs';
import { renderToString } from 'vue/server-renderer';
import { createHead as createHead$1, propsToString, renderSSRHead } from 'unhead/server';
import { stringify, uneval } from 'devalue';
import { walkResolver } from 'unhead/utils';
import { isRef, toValue, hasInjectionContext, inject, ref, watchEffect, getCurrentInstance, onBeforeUnmount, onDeactivated, onActivated } from 'vue';

const VueResolver = (_, value) => {
  return isRef(value) ? toValue(value) : value;
};

const headSymbol = "usehead";
// @__NO_SIDE_EFFECTS__
function vueInstall(head) {
  const plugin = {
    install(app) {
      app.config.globalProperties.$unhead = head;
      app.config.globalProperties.$head = head;
      app.provide(headSymbol, head);
    }
  };
  return plugin.install;
}

// @__NO_SIDE_EFFECTS__
function injectHead() {
  if (hasInjectionContext()) {
    const instance = inject(headSymbol);
    if (!instance) {
      throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
    }
    return instance;
  }
  throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");
}
function useHead(input, options = {}) {
  const head = options.head || /* @__PURE__ */ injectHead();
  return head.ssr ? head.push(input || {}, options) : clientUseHead(head, input, options);
}
function clientUseHead(head, input, options = {}) {
  const deactivated = ref(false);
  let entry;
  watchEffect(() => {
    const i = deactivated.value ? {} : walkResolver(input, VueResolver);
    if (entry) {
      entry.patch(i);
    } else {
      entry = head.push(i, options);
    }
  });
  const vm = getCurrentInstance();
  if (vm) {
    onBeforeUnmount(() => {
      entry.dispose();
    });
    onDeactivated(() => {
      deactivated.value = true;
    });
    onActivated(() => {
      deactivated.value = false;
    });
  }
  return entry;
}

// @__NO_SIDE_EFFECTS__
function createHead(options = {}) {
  const head = createHead$1({
    ...options,
    propResolvers: [VueResolver]
  });
  head.install = vueInstall(head);
  return head;
}

const NUXT_RUNTIME_PAYLOAD_EXTRACTION = false;

const appHead = {"meta":[{"name":"viewport","content":"width=device-width, initial-scale=1"},{"charset":"utf-8"}],"link":[],"style":[],"script":[],"noscript":[]};

const appRootTag = "div";

const appRootAttrs = {"id":"__nuxt"};

const appTeleportTag = "div";

const appTeleportAttrs = {"id":"teleports"};

const appSpaLoaderTag = "div";

const appSpaLoaderAttrs = {"id":"__nuxt-loader"};

const appId = "nuxt-app";

function baseURL() {
	// TODO: support passing event to `useRuntimeConfig`
	return useRuntimeConfig().app.baseURL;
}
function buildAssetsDir() {
	// TODO: support passing event to `useRuntimeConfig`
	return useRuntimeConfig().app.buildAssetsDir;
}
function buildAssetsURL(...path) {
	return joinRelativeURL(publicAssetsURL(), buildAssetsDir(), ...path);
}
function publicAssetsURL(...path) {
	// TODO: support passing event to `useRuntimeConfig`
	const app = useRuntimeConfig().app;
	const publicBase = app.cdnURL || app.baseURL;
	return path.length ? joinRelativeURL(publicBase, ...path) : publicBase;
}

const APP_ROOT_OPEN_TAG = `<${appRootTag}${propsToString(appRootAttrs)}>`;
const APP_ROOT_CLOSE_TAG = `</${appRootTag}>`;
// @ts-expect-error file will be produced after app build
const getServerEntry = () => import('../build/server.mjs').then((r) => r.default || r);
// @ts-expect-error file will be produced after app build
const getPrecomputedDependencies = () => import('../build/client.precomputed.mjs').then((r) => r.default || r).then((r) => typeof r === "function" ? r() : r);
// -- SSR Renderer --
const getSSRRenderer = lazyCachedFunction(async () => {
	// Load server bundle
	const createSSRApp = await getServerEntry();
	if (!createSSRApp) {
		throw new Error("Server bundle is not available");
	}
	// Load precomputed dependencies
	const precomputed = await getPrecomputedDependencies();
	// Create renderer
	const renderer = createRenderer(createSSRApp, {
		precomputed,
		manifest: undefined,
		renderToString: renderToString$1,
		buildAssetsURL
	});
	async function renderToString$1(input, context) {
		const html = await renderToString(input, context);
		return APP_ROOT_OPEN_TAG + html + APP_ROOT_CLOSE_TAG;
	}
	return renderer;
});
// -- SPA Renderer --
const getSPARenderer = lazyCachedFunction(async () => {
	const precomputed = await getPrecomputedDependencies();
	// @ts-expect-error virtual file
	const spaTemplate = await import('../virtual/_virtual_spa-template.mjs').then((r) => r.template).catch(() => "").then((r) => {
		{
			const APP_SPA_LOADER_OPEN_TAG = `<${appSpaLoaderTag}${propsToString(appSpaLoaderAttrs)}>`;
			const APP_SPA_LOADER_CLOSE_TAG = `</${appSpaLoaderTag}>`;
			const appTemplate = APP_ROOT_OPEN_TAG + APP_ROOT_CLOSE_TAG;
			const loaderTemplate = r ? APP_SPA_LOADER_OPEN_TAG + r + APP_SPA_LOADER_CLOSE_TAG : "";
			return appTemplate + loaderTemplate;
		}
	});
	// Create SPA renderer and cache the result for all requests
	const renderer = createRenderer(() => () => {}, {
		precomputed,
		manifest: undefined,
		renderToString: () => spaTemplate,
		buildAssetsURL
	});
	const result = await renderer.renderToString({});
	const renderToString = (ssrContext) => {
		const config = useRuntimeConfig(ssrContext.event);
		ssrContext.modules ||= new Set();
		ssrContext.payload.serverRendered = false;
		ssrContext.config = {
			public: config.public,
			app: config.app
		};
		return Promise.resolve(result);
	};
	return {
		rendererContext: renderer.rendererContext,
		renderToString
	};
});
function lazyCachedFunction(fn) {
	let res = null;
	return () => {
		if (res === null) {
			res = fn().catch((err) => {
				res = null;
				throw err;
			});
		}
		return res;
	};
}
function getRenderer(ssrContext) {
	return ssrContext.noSSR ? getSPARenderer() : getSSRRenderer();
}
// @ts-expect-error file will be produced after app build
const getSSRStyles = lazyCachedFunction(() => import('../build/styles.mjs').then((r) => r.default || r));

function renderPayloadResponse(ssrContext) {
	return {
		body: stringify(splitPayload(ssrContext).payload, ssrContext["~payloadReducers"]) ,
		statusCode: getResponseStatus(ssrContext.event),
		statusMessage: getResponseStatusText(ssrContext.event),
		headers: {
			"content-type": "application/json;charset=utf-8" ,
			"x-powered-by": "Nuxt"
		}
	};
}
function renderPayloadJsonScript(opts) {
	const contents = opts.data ? stringify(opts.data, opts.ssrContext["~payloadReducers"]) : "";
	const payload = {
		"type": "application/json",
		"innerHTML": contents,
		"data-nuxt-data": appId,
		"data-ssr": !(opts.ssrContext.noSSR)
	};
	{
		payload.id = "__NUXT_DATA__";
	}
	if (opts.src) {
		payload["data-src"] = opts.src;
	}
	const config = uneval(opts.ssrContext.config);
	return [payload, { innerHTML: `window.__NUXT__={};window.__NUXT__.config=${config}` }];
}
function splitPayload(ssrContext) {
	const { data, prerenderedAt, ...initial } = ssrContext.payload;
	return {
		initial: {
			...initial,
			prerenderedAt
		},
		payload: {
			data,
			prerenderedAt
		}
	};
}

const unheadOptions = {
  disableDefaults: true,
};

function createSSRContext(event) {
	const ssrContext = {
		url: decodePath(event.path),
		event,
		runtimeConfig: useRuntimeConfig(event),
		noSSR: event.context.nuxt?.noSSR || (false),
		head: createHead(unheadOptions),
		error: false,
		nuxt: undefined,
		payload: {},
		["~payloadReducers"]: Object.create(null),
		modules: new Set()
	};
	return ssrContext;
}
function setSSRError(ssrContext, error) {
	ssrContext.error = true;
	ssrContext.payload = { error };
	ssrContext.url = error.url;
}

async function renderInlineStyles(usedModules) {
	const styleMap = await getSSRStyles();
	const inlinedStyles = new Set();
	for (const mod of usedModules) {
		if (mod in styleMap && styleMap[mod]) {
			for (const style of await styleMap[mod]()) {
				inlinedStyles.add(style);
			}
		}
	}
	return Array.from(inlinedStyles).map((style) => ({ innerHTML: style }));
}

const renderSSRHeadOptions = {"omitLineBreaks":true};

const entryIds = [];

// @ts-expect-error private property consumed by vite-generated url helpers
globalThis.__buildAssetsURL = buildAssetsURL;
// @ts-expect-error private property consumed by vite-generated url helpers
globalThis.__publicAssetsURL = publicAssetsURL;
const HAS_APP_TELEPORTS = !!(appTeleportAttrs.id);
const APP_TELEPORT_OPEN_TAG = HAS_APP_TELEPORTS ? `<${appTeleportTag}${propsToString(appTeleportAttrs)}>` : "";
const APP_TELEPORT_CLOSE_TAG = HAS_APP_TELEPORTS ? `</${appTeleportTag}>` : "";
const PAYLOAD_URL_RE = /^[^?]*\/_payload.json(?:\?.*)?$/ ;
const PAYLOAD_FILENAME = "_payload.json" ;
const renderer = defineRenderHandler(async (event) => {
	const nitroApp = useNitroApp();
	// Whether we're rendering an error page
	const ssrError = event.path.startsWith("/__nuxt_error") ? getQuery(event) : null;
	if (ssrError && !("__unenv__" in event.node.req)) {
		throw createError({
			status: 404,
			statusText: "Page Not Found: /__nuxt_error",
			message: "Page Not Found: /__nuxt_error"
		});
	}
	// Initialize ssr context
	const ssrContext = createSSRContext(event);
	// needed for hash hydration plugin to work
	const headEntryOptions = { mode: "server" };
	ssrContext.head.push(appHead, headEntryOptions);
	if (ssrError) {
		// eslint-disable-next-line @typescript-eslint/no-deprecated
		const status = ssrError.status || ssrError.statusCode;
		if (status) {
			// eslint-disable-next-line @typescript-eslint/no-deprecated
			ssrError.status = ssrError.statusCode = Number.parseInt(status);
		}
		if (typeof ssrError.data === "string") {
			try {
				ssrError.data = destr(ssrError.data);
			} catch {}
		}
		setSSRError(ssrContext, ssrError);
	}
	// Get route options (for `ssr: false`, `isr`, `cache` and `noScripts`)
	const routeOptions = getRouteRules(event);
	// Whether we are prerendering route or using ISR/SWR caching
	const _PAYLOAD_EXTRACTION = !ssrContext.noSSR && (NUXT_RUNTIME_PAYLOAD_EXTRACTION);
	const isRenderingPayload = (_PAYLOAD_EXTRACTION || false) && PAYLOAD_URL_RE.test(ssrContext.url);
	if (isRenderingPayload) {
		const url = ssrContext.url.substring(0, ssrContext.url.lastIndexOf("/")) || "/";
		ssrContext.url = url;
		event._path = event.node.req.url = url;
	}
	if (routeOptions.ssr === false) {
		ssrContext.noSSR = true;
	}
	const payloadURL = _PAYLOAD_EXTRACTION ? joinURL(ssrContext.runtimeConfig.app.cdnURL || ssrContext.runtimeConfig.app.baseURL, ssrContext.url.replace(/\?.*$/, ""), PAYLOAD_FILENAME) + "?" + ssrContext.runtimeConfig.app.buildId : undefined;
	// Render app
	const renderer = await getRenderer(ssrContext);
	{
		for (const id of entryIds) {
			ssrContext.modules.add(id);
		}
	}
	const _rendered = await renderer.renderToString(ssrContext).catch(async (error) => {
		// We use error to bypass full render if we have an early response we can make
		// TODO: remove _renderResponse in nuxt v5
		if ((ssrContext["~renderResponse"] || ssrContext._renderResponse) && error.message === "skipping render") {
			return {};
		}
		// Use explicitly thrown error in preference to subsequent rendering errors
		const _err = !ssrError && ssrContext.payload?.error || error;
		await ssrContext.nuxt?.hooks.callHook("app:error", _err);
		throw _err;
	});
	// Render inline styles
	// TODO: remove _renderResponse in nuxt v5
	const inlinedStyles = !ssrContext["~renderResponse"] && !ssrContext._renderResponse && !isRenderingPayload ? await renderInlineStyles(ssrContext.modules ?? []) : [];
	await ssrContext.nuxt?.hooks.callHook("app:rendered", {
		ssrContext,
		renderResult: _rendered
	});
	if (ssrContext["~renderResponse"] || ssrContext._renderResponse) {
		// TODO: remove _renderResponse in nuxt v5
		return ssrContext["~renderResponse"] || ssrContext._renderResponse;
	}
	// Handle errors
	if (ssrContext.payload?.error && !ssrError) {
		throw ssrContext.payload.error;
	}
	// Directly render payload routes
	if (isRenderingPayload) {
		const response = renderPayloadResponse(ssrContext);
		return response;
	}
	const NO_SCRIPTS = routeOptions.noScripts;
	// Setup head
	const { styles, scripts } = getRequestDependencies(ssrContext, renderer.rendererContext);
	// 1. Preload payloads and app manifest
	if (_PAYLOAD_EXTRACTION && !NO_SCRIPTS) {
		ssrContext.head.push({ link: [{
			rel: "preload",
			as: "fetch",
			crossorigin: "anonymous",
			href: payloadURL
		} ] }, headEntryOptions);
	}
	if (ssrContext["~preloadManifest"] && !NO_SCRIPTS) {
		ssrContext.head.push({ link: [{
			rel: "preload",
			as: "fetch",
			fetchpriority: "low",
			crossorigin: "anonymous",
			href: buildAssetsURL(`builds/meta/${ssrContext.runtimeConfig.app.buildId}.json`)
		}] }, {
			...headEntryOptions,
			tagPriority: "low"
		});
	}
	// 2. Styles
	if (inlinedStyles.length) {
		ssrContext.head.push({ style: inlinedStyles });
	}
	const link = [];
	for (const resource of Object.values(styles)) {
		// Add CSS links in <head> for CSS files
		// - in production
		// - in dev mode when not rendering an island
		link.push({
			rel: "stylesheet",
			href: renderer.rendererContext.buildAssetsURL(resource.file),
			crossorigin: ""
		});
	}
	if (link.length) {
		ssrContext.head.push({ link }, headEntryOptions);
	}
	if (!NO_SCRIPTS) {
		// 4. Resource Hints
		// Remove lazy hydrated modules from ssrContext.modules so they don't get preloaded
		// (CSS links are already added above, this only affects JS preloads)
		if (ssrContext["~lazyHydratedModules"]) {
			for (const id of ssrContext["~lazyHydratedModules"]) {
				ssrContext.modules?.delete(id);
			}
		}
		ssrContext.head.push({ link: getPreloadLinks(ssrContext, renderer.rendererContext) }, headEntryOptions);
		ssrContext.head.push({ link: getPrefetchLinks(ssrContext, renderer.rendererContext) }, headEntryOptions);
		// 5. Payloads
		ssrContext.head.push({ script: _PAYLOAD_EXTRACTION ? renderPayloadJsonScript({
			ssrContext,
			data: splitPayload(ssrContext).initial,
			src: payloadURL
		})  : renderPayloadJsonScript({
			ssrContext,
			data: ssrContext.payload
		})  }, {
			...headEntryOptions,
			tagPosition: "bodyClose",
			tagPriority: "high"
		});
	}
	// 6. Scripts
	if (!routeOptions.noScripts) {
		const tagPosition = "head";
		ssrContext.head.push({ script: Object.values(scripts).map((resource) => ({
			type: resource.module ? "module" : null,
			src: renderer.rendererContext.buildAssetsURL(resource.file),
			defer: resource.module ? null : true,
			tagPosition,
			crossorigin: ""
		})) }, headEntryOptions);
	}
	const { headTags, bodyTags, bodyTagsOpen, htmlAttrs, bodyAttrs } = await renderSSRHead(ssrContext.head, renderSSRHeadOptions);
	// Create render context
	const htmlContext = {
		htmlAttrs: htmlAttrs ? [htmlAttrs] : [],
		head: normalizeChunks([headTags]),
		bodyAttrs: bodyAttrs ? [bodyAttrs] : [],
		bodyPrepend: normalizeChunks([bodyTagsOpen, ssrContext.teleports?.body]),
		body: [_rendered.html, APP_TELEPORT_OPEN_TAG + (HAS_APP_TELEPORTS ? joinTags([ssrContext.teleports?.[`#${appTeleportAttrs.id}`]]) : "") + APP_TELEPORT_CLOSE_TAG],
		bodyAppend: [bodyTags]
	};
	// Allow hooking into the rendered result
	await nitroApp.hooks.callHook("render:html", htmlContext, { event });
	// Construct HTML response
	return {
		body: renderHTMLDocument(htmlContext),
		statusCode: getResponseStatus(event),
		statusMessage: getResponseStatusText(event),
		headers: {
			"content-type": "text/html;charset=utf-8",
			"x-powered-by": "Nuxt"
		}
	};
});
function normalizeChunks(chunks) {
	const result = [];
	for (const _chunk of chunks) {
		const chunk = _chunk?.trim();
		if (chunk) {
			result.push(chunk);
		}
	}
	return result;
}
function joinTags(tags) {
	return tags.join("");
}
function joinAttrs(chunks) {
	if (chunks.length === 0) {
		return "";
	}
	return " " + chunks.join(" ");
}
function renderHTMLDocument(html) {
	return "<!DOCTYPE html>" + `<html${joinAttrs(html.htmlAttrs)}>` + `<head>${joinTags(html.head)}</head>` + `<body${joinAttrs(html.bodyAttrs)}>${joinTags(html.bodyPrepend)}${joinTags(html.body)}${joinTags(html.bodyAppend)}</body>` + "</html>";
}

const renderer$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
  __proto__: null,
  default: renderer
}, Symbol.toStringTag, { value: 'Module' }));

export { baseURL as b, headSymbol as h, renderer$1 as r, useHead as u };
//# sourceMappingURL=renderer.mjs.map

```

---

## .output/server/chunks/routes/renderer.mjs.map

```map
{"version":3,"file":"renderer.mjs","sources":["../../../../node_modules/.pnpm/@unhead+vue@2.1.2_vue@3.5.27/node_modules/@unhead/vue/dist/shared/vue.N9zWjxoK.mjs","../../../../node_modules/.pnpm/@unhead+vue@2.1.2_vue@3.5.27/node_modules/@unhead/vue/dist/shared/vue.Bm-NbY4b.mjs","../../../../node_modules/.pnpm/@unhead+vue@2.1.2_vue@3.5.27/node_modules/@unhead/vue/dist/server.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/build-files.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/payload.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/app.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/utils/renderer/inline-styles.mjs","../../../../node_modules/.pnpm/@nuxt+nitro-server@4.3.0_db0@0.3.4_idb-keyval@6.2.2_ioredis@5.9.2_magicast@0.5.1_nuxt@4_e7e8ae81c59162932a5ca46c47340ed2/node_modules/@nuxt/nitro-server/dist/runtime/handlers/renderer.mjs"],"names":["renderToString","_renderToString"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
```

---

## .output/server/chunks/virtual/_virtual_spa-template.mjs

```mjs
const template = "";

export { template };
//# sourceMappingURL=_virtual_spa-template.mjs.map

```

---

## .output/server/chunks/virtual/_virtual_spa-template.mjs.map

```map
{"version":3,"file":"_virtual_spa-template.mjs","sources":[],"names":[],"mappings":";;;;"}
```

---

## .output/server/index.mjs

```mjs
import process from 'node:process';globalThis._importMeta_={url:import.meta.url,env:process.env};import 'node:http';
import 'node:https';
export { z as default } from './chunks/nitro/nitro.mjs';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';
//# sourceMappingURL=index.mjs.map

```

---

## .output/server/index.mjs.map

```map
{"version":3,"file":"index.mjs","sources":[],"names":[],"mappings":";;;;;;;;"}
```

---

## app/app.vue

```vue
<template>
  <div style="min-height: 100vh; display: flex; flex-direction: column; background: #f5f5f5; width: 100%;">
    <AppHeader />
    <main style="flex: 1;">
      <NuxtPage />
    </main>
  </div>
</template>

```

---

## app/components/AppHeader.vue

```vue
<template>
  <header class="header">
    <div class="header-container">
      <nav>
        <NuxtLink to="/">Home</NuxtLink>
        <template v-if="user">
          <NuxtLink to="/burrito">Burrito Consideration</NuxtLink>
          <NuxtLink to="/profile">Profile</NuxtLink>
        </template>
      </nav>
      <div class="user-section">
        <span v-if="user">Welcome, {{ user.username }}!</span>
        <span v-else>Not logged in</span>
        <button v-if="user" @click="handleLogout" class="btn-logout">Logout</button>
      </div>
    </div>
  </header>
</template>

<script setup lang="ts">
const amplitude = useAmplitude()
const auth = useAuth()
const user = computed(() => auth.user.value)

const handleLogout = async () => {
  amplitude?.track('User Logged Out')
  amplitude?.reset()
  auth.logout()
  await navigateTo('/')
}
</script>

```

---

## app/composables/useAmplitude.ts

```ts
import * as amplitude from '@amplitude/unified'

export function useAmplitude() {
  if (process.client) {
    return amplitude
  }
  return null
}

```

---

## app/composables/useAuth.ts

```ts
interface User {
  username: string
  burritoConsiderations: number
}

const users: Map<string, User> = new Map()

export function useAuth() {
  const user = useState<User | null>('auth-user', () => {
    if (process.client) {
      const storedUsername = localStorage.getItem('currentUser')
      if (storedUsername) {
        const existingUser = users.get(storedUsername)
        if (existingUser) {
          return existingUser
        }
      }
    }
    return null
  })

  const login = async (username: string, password: string): Promise<boolean> => {
    try {
      const response = await $fetch<{ success: boolean; user: User }>('/api/auth/login', {
        method: 'POST',
        body: { username, password },
      })

      if (response.success) {
        let localUser = users.get(username)
        if (!localUser) {
          localUser = response.user
          users.set(username, localUser)
        }

        user.value = localUser
        if (process.client) {
          localStorage.setItem('currentUser', username)
        }

        return true
      }
      return false
    } catch (error) {
      console.error('Login error:', error)
      return false
    }
  }

  const logout = () => {
    user.value = null
    if (process.client) {
      localStorage.removeItem('currentUser')
    }
  }

  const incrementBurritoConsiderations = () => {
    if (user.value) {
      user.value.burritoConsiderations++
      users.set(user.value.username, user.value)
      // Trigger reactivity
      user.value = { ...user.value }
    }
  }

  const setUser = (newUser: User) => {
    user.value = newUser
    users.set(newUser.username, newUser)
  }

  return {
    user,
    login,
    logout,
    incrementBurritoConsiderations,
    setUser,
  }
}

```

---

## app/middleware/auth.ts

```ts
export default defineNuxtRouteMiddleware((to, from) => {
  const auth = useAuth()
  const user = auth.user.value

  // If user is not logged in, redirect to home/login page
  if (!user) {
    return navigateTo('/')
  }
})

```

---

## app/pages/burrito.vue

```vue
<template>
  <div class="container">
    <h1>Burrito consideration zone</h1>
    <p>Take a moment to truly consider the potential of burritos.</p>

    <div style="text-align: center">
      <button @click="handleConsideration" class="btn-burrito">
        I have considered the burrito potential
      </button>

      <p v-if="hasConsidered" class="success">
        Thank you for your consideration! Count: {{ user?.burritoConsiderations }}
      </p>
    </div>

    <div class="stats">
      <h3>Consideration stats</h3>
      <p>Total considerations: {{ user?.burritoConsiderations }}</p>
    </div>
  </div>
</template>

<script setup lang="ts">
definePageMeta({
  middleware: 'auth'
})

const auth = useAuth()
const user = computed(() => auth.user.value)
const amplitude = useAmplitude()
const hasConsidered = ref(false)

const handleConsideration = async () => {
  if (!user.value) return

  try {
    const response = await $fetch('/api/burrito/consider', {
      method: 'POST',
      body: { username: user.value.username },
    })

    if (response.success && response.user) {
      auth.setUser(response.user)
      hasConsidered.value = true

      // Client-side tracking (in addition to server-side tracking)
      amplitude?.track('Burrito Considered', {
        total_considerations: response.user.burritoConsiderations,
        username: response.user.username,
      })

      setTimeout(() => {
        hasConsidered.value = false
      }, 2000)
    }
  } catch (err) {
    console.error('Error considering burrito:', err)
  }
}
</script>

```

---

## app/pages/index.vue

```vue
<template>
  <div class="container">
    <h1 v-if="user">Welcome back, {{ user.username }}!</h1>
    <h1 v-else>Welcome to Burrito Consideration App</h1>

    <div v-if="user">
      <p>You are now logged in. Feel free to explore:</p>
      <ul>
        <li>Consider the potential of burritos</li>
        <li>View your profile and statistics</li>
      </ul>
    </div>

    <div v-else>
      <p>Please sign in to begin your burrito journey</p>

      <form @submit.prevent="handleSubmit" class="form" novalidate>
        <div class="form-group">
          <label for="username">Username:</label>
          <input
            id="username"
            v-model="formData.username"
            type="text"
            placeholder="Enter any username"
            :class="{ 'error-input': errors.username }"
            @blur="validateField('username')"
            @input="clearError('username')"
          />
          <p v-if="errors.username" class="field-error">{{ errors.username }}</p>
        </div>

        <div class="form-group">
          <label for="password">Password:</label>
          <input
            id="password"
            v-model="formData.password"
            type="password"
            placeholder="Enter any password"
            :class="{ 'error-input': errors.password }"
            @blur="validateField('password')"
            @input="clearError('password')"
          />
          <p v-if="errors.password" class="field-error">{{ errors.password }}</p>
        </div>

        <p v-if="error" class="error">{{ error }}</p>

        <button type="submit" class="btn-primary" :disabled="isSubmitting">
          {{ isSubmitting ? 'Signing in...' : 'Sign In' }}
        </button>
      </form>

      <p class="note">
        Note: This is a demo app. Use any username and password to sign in.
      </p>
    </div>
  </div>
</template>

<script setup lang="ts">
import { Identify } from '@amplitude/unified'
import { loginSchema, validateForm, type LoginFormData } from '../utils/formValidation'

const auth = useAuth()
const user = computed(() => auth.user.value)

const amplitude = useAmplitude()

const formData = reactive<LoginFormData>({
  username: '',
  password: '',
})

const errors = reactive<Partial<Record<keyof LoginFormData, string>>>({})
const error = ref('')
const isSubmitting = ref(false)

const validateField = (field: keyof LoginFormData) => {
  const fieldSchema = loginSchema.shape[field]
  if (!fieldSchema) return

  const result = fieldSchema.safeParse(formData[field])
  if (!result.success) {
    errors[field] = result.error.errors[0]?.message || 'Invalid value'
  } else {
    delete errors[field]
  }
}

const clearError = (field: keyof LoginFormData) => {
  delete errors[field]
}

const handleSubmit = async () => {
  // Clear previous errors
  error.value = ''
  Object.keys(errors).forEach((key) => {
    delete errors[key as keyof LoginFormData]
  })

  // Validate entire form
  const validation = validateForm(loginSchema, formData)
  if (!validation.success) {
    Object.assign(errors, validation.errors)
    return
  }

  isSubmitting.value = true

  try {
    const success = await auth.login(formData.username, formData.password)
    if (success) {
      // Identify user in Amplitude using username as user ID
      amplitude?.setUserId(formData.username)
      const identifyObj = new Identify()
      identifyObj.set('username', formData.username)
      amplitude?.identify(identifyObj)

      // Capture login event
      amplitude?.track('User Logged In', { username: formData.username })

      formData.username = ''
      formData.password = ''
      await navigateTo('/')
    } else {
      error.value = 'Login failed. Please check your credentials and try again.'
    }
  } catch (err) {
    console.error('Login failed:', err)
    error.value = 'An error occurred during login. Please try again.'
  } finally {
    isSubmitting.value = false
  }
}
</script>

```

---

## app/pages/profile.vue

```vue
<template>
  <div class="container">
    <h1>User Profile</h1>

    <div class="stats">
      <h2>Your Information</h2>
      <p><strong>Username:</strong> {{ user?.username }}</p>
      <p><strong>Burrito Considerations:</strong> {{ user?.burritoConsiderations }}</p>
    </div>

    <div style="margin-top: 2rem">
      <h3>Your Burrito Journey</h3>
      <p v-if="user?.burritoConsiderations === 0">
        You haven't considered any burritos yet. Visit the Burrito Consideration page to start!
      </p>
      <p v-else-if="user?.burritoConsiderations === 1">
        You've considered the burrito potential once. Keep going!
      </p>
      <p v-else-if="user && user.burritoConsiderations < 5">
        You're getting the hang of burrito consideration!
      </p>
      <p v-else-if="user && user.burritoConsiderations < 10">
        You're becoming a burrito consideration expert!
      </p>
      <p v-else>You are a true burrito consideration master! 🌯</p>
    </div>
  </div>
</template>

<script setup lang="ts">
definePageMeta({
  middleware: 'auth'
})

const auth = useAuth()
const user = computed(() => auth.user.value)
</script>

```

---

## app/plugins/amplitude.client.ts

```ts
import { defineNuxtPlugin, useRuntimeConfig } from '#imports'
import * as amplitude from '@amplitude/unified'

export default defineNuxtPlugin((nuxtApp) => {
  const runtimeConfig = useRuntimeConfig()
  const apiKey = runtimeConfig.public.amplitudeApiKey as string | undefined

  if (apiKey) {
    void amplitude.initAll(apiKey)
  }

  return {
    provide: {
      amplitude,
    },
  }
})

```

---

## app/utils/formValidation.ts

```ts
import { z } from 'zod'

export const loginSchema = z.object({
  username: z
    .string()
    .min(1, 'Username is required')
    .min(3, 'Username must be at least 3 characters')
    .max(50, 'Username must be less than 50 characters'),
  password: z
    .string()
    .min(1, 'Password is required')
    .min(3, 'Password must be at least 3 characters'),
})

export type LoginFormData = z.infer<typeof loginSchema>

export function validateForm<T>(schema: z.ZodSchema<T>, data: unknown): {
  success: boolean
  data?: T
  errors?: Record<string, string>
} {
  const result = schema.safeParse(data)

  if (result.success) {
    return { success: true, data: result.data }
  }

  const errors: Record<string, string> = {}
  result.error.errors.forEach((error) => {
    const path = error.path.join('.')
    errors[path] = error.message
  })

  return { success: false, errors }
}

```

---

## nuxt.config.ts

```ts
import { fileURLToPath } from 'node:url'
import { resolve, dirname } from 'node:path'

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2025-07-15',
  devtools: { enabled: true },
  css: [resolve(__dirname, 'assets/css/main.css')],
  runtimeConfig: {
    public: {
      amplitudeApiKey: process.env.NUXT_PUBLIC_AMPLITUDE_API_KEY || '',
    },
  },
})

```

---

## public/robots.txt

```txt
User-Agent: *
Disallow:

```

---

## server/api/auth/login.post.ts

```ts
import { useServerAmplitude } from '../../utils/amplitude'
import { getOrCreateUser, users } from '../../utils/users'

export default defineEventHandler(async (event) => {
  const body = await readBody<{ username: string; password: string }>(event)
  const { username, password } = body || {}

  if (!username || !password) {
    throw createError({
      statusCode: 400,
      message: 'Username and password required',
    })
  }

  const isNewUser = !users.has(username)
  const user = getOrCreateUser(username)

  // Capture server-side login event
  const amplitude = useServerAmplitude()
  amplitude?.track('Server Login Completed', {
    username,
    isNewUser,
    source: 'api',
  }, { user_id: username })

  return {
    success: true,
    user,
  }
})

```

---

## server/api/burrito/consider.post.ts

```ts
import { useServerAmplitude } from '../../utils/amplitude'
import { users, incrementBurritoConsiderations } from '../../utils/users'

export default defineEventHandler(async (event) => {
  const body = await readBody<{ username: string }>(event)
  const username = body?.username

  if (!username) {
    throw createError({
      statusCode: 400,
      message: 'Username required',
    })
  }

  if (!users.has(username)) {
    throw createError({
      statusCode: 404,
      message: 'User not found',
    })
  }

  // Increment burrito considerations (fake, in-memory)
  const user = incrementBurritoConsiderations(username)

  // Capture server-side burrito consideration event
  const amplitude = useServerAmplitude()
  amplitude?.track('Burrito Considered', {
    username,
    total_considerations: user.burritoConsiderations,
    source: 'api',
  }, { user_id: username })

  return {
    success: true,
    user: { ...user },
  }
})

```

---

## server/utils/amplitude.ts

```ts
import { createInstance } from '@amplitude/analytics-node'
import type { NodeClient } from '@amplitude/analytics-core'

let client: NodeClient | null = null

export function useServerAmplitude(): NodeClient | null {
  const config = useRuntimeConfig()
  const apiKey = config.public.amplitudeApiKey as string | undefined

  if (!apiKey) return null

  if (!client) {
    client = createInstance()
    client.init(apiKey)
  }
  return client
}

```

---

## server/utils/users.ts

```ts
// Shared in-memory storage for users (fake, no database)
export const users = new Map<string, { username: string; burritoConsiderations: number }>()

export function getOrCreateUser(username: string): { username: string; burritoConsiderations: number } {
  let user = users.get(username)
  
  if (!user) {
    user = { username, burritoConsiderations: 0 }
    users.set(username, user)
  }
  
  return user
}

export function incrementBurritoConsiderations(username: string): { username: string; burritoConsiderations: number } {
  const user = users.get(username)
  
  if (!user) {
    throw new Error('User not found')
  }
  
  user.burritoConsiderations++
  users.set(username, user)
  
  return { ...user }
}

```

---

