diff --git a/README.md b/README.md
index b2357e9..026f85a 100644
--- a/README.md
+++ b/README.md
@@ -34,6 +34,7 @@ npx rosetta check # CI gate: fails if anything is stale or broken (no API ke
- [Coming from Lingo.dev](#coming-from-lingodev)
- [Library API](#library-api)
- [React & Next.js](#react--nextjs)
+- [Locale routing & cookies](#locale-routing--cookies)
- [Development](#development)
## Quick start
@@ -555,6 +556,119 @@ the route handler or Server Action above.
> Node-only workflow (`push`, `check`, …, which read and write files), so prefer the
> `next` entrypoint in edge code.
+## Locale routing & cookies
+
+Translating strings is half the job. Knowing *which* locale a request is in — and
+switching cleanly — is the other half, and it's where most apps hand-roll fragile
+middleware, server actions, and `router.refresh()` races. Rosetta ships the runtime
+layer too: `rosetta-i18n/locale` (core), `/react`, `/next`, `/astro`.
+
+The model is one-directional and needs no client-side guessing:
+
+1. a **locale-prefixed URL** (`/ja/pricing`) is authoritative,
+2. then a **forced header** (`x-rosetta-locale`, set by middleware),
+3. then the **cookie**,
+4. then the **default locale**.
+
+**Switching writes the cookie and navigates to the localized URL**, so the URL and the
+cookie always agree. A full-page navigation makes it a single request with no
+refresh-after-push race.
+
+### Config (plain data)
+
+```ts
+// i18n/config.ts
+import type { LocaleConfig } from "rosetta-i18n/locale";
+
+export const localeConfig: LocaleConfig = {
+ locales: ["en", "ja", "de", "es"],
+ defaultLocale: "en",
+ // Only these paths have localized variants; everything else stays bare.
+ localizedPaths: ["/", "/pricing", "/agents"],
+ localizedPathPrefixes: ["/blog/", "/help/", "/vs/"],
+};
+```
+
+The core also exports the pure helpers (`resolveLocale`, `stripLocale`, `localizePath`,
+`planSwitch`, `serializeLocaleCookie`, …) if you're wiring your own framework.
+
+### React
+
+```tsx
+"use client";
+import { LocaleProvider, LocaleSwitcher } from "rosetta-i18n/react";
+
+export function App({ locale, children }: { locale: string; children: React.ReactNode }) {
+ return (
+
+ {/* or render={({ locales, locale, switchTo, labelFor }) => …} */}
+
+ {children}
+
+ );
+}
+```
+
+Hooks: `useLocale()`, `useLocales()`, `useLocaleSwitch()`, `useLocaleContext()`.
+`switchTo(locale)` writes the cookie and navigates (full page by default; pass
+`navigate` to hook a router, `persist` to save server-side).
+
+### Next.js (App Router)
+
+```ts
+// middleware.ts
+import { createLocaleMiddleware } from "rosetta-i18n/next";
+import { localeConfig } from "./i18n/config";
+
+export const middleware = createLocaleMiddleware(localeConfig);
+export const config = { matcher: ["/((?!_next|favicon.ico|.*\\..*).*)"] };
+```
+
+```tsx
+// app/layout.tsx
+import { RosettaProvider } from "rosetta-i18n/next";
+import { localeConfig } from "@/i18n/config";
+
+export default function RootLayout({ children }: { children: React.ReactNode }) {
+ return (
+
+
+ {children}
+
+
+ );
+}
+```
+
+`RosettaProvider` reads the locale the middleware forced (`getServerLocale(config)`)
+and provides it to the client. Persist the choice for signed-in users with a server
+action:
+
+```ts
+// app/locale-actions.ts
+"use server";
+import { createSetLocaleAction } from "rosetta-i18n/next";
+import { localeConfig } from "@/i18n/config";
+
+export const setLocale = createSetLocaleAction(localeConfig, {
+ persist: (locale) => updateUserProfile(userId, { locale }),
+});
+```
+
+### Astro
+
+```ts
+// src/middleware.ts
+import { createAstroLocaleMiddleware } from "rosetta-i18n/astro";
+import { localeConfig } from "../i18n/config";
+
+export const onRequest = createAstroLocaleMiddleware(localeConfig);
+```
+
+The middleware sets `Astro.locals.locale` (read it with `getAstroLocale(Astro, config)`)
+and rewrites prefixed URLs. For a switcher, render the React `` as an
+island wrapped in ``.
+
## Legacy `translate-catalog`
The 0.x one-shot command still works but is deprecated and will be removed in v2:
diff --git a/package.json b/package.json
index 9faabb2..77d807a 100644
--- a/package.json
+++ b/package.json
@@ -46,6 +46,18 @@
"types": "./dist/types/next.d.ts",
"default": "./dist/esm/next.js"
},
+ "./react": {
+ "types": "./dist/types/react.d.ts",
+ "default": "./dist/esm/react.js"
+ },
+ "./astro": {
+ "types": "./dist/types/locale/astro.d.ts",
+ "default": "./dist/esm/astro.js"
+ },
+ "./locale": {
+ "types": "./dist/types/locale/core.d.ts",
+ "default": "./dist/esm/locale.js"
+ },
"./config": {
"types": "./dist/types/config.d.ts",
"default": "./dist/esm/config.js"
@@ -67,16 +79,26 @@
"lint:fix": "biome check --write"
},
"peerDependencies": {
- "next": ">=14.0.0"
+ "astro": ">=4.0.0",
+ "next": ">=14.0.0",
+ "react": ">=18.0.0"
},
"peerDependenciesMeta": {
"next": {
"optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "astro": {
+ "optional": true
}
},
"devDependencies": {
"@biomejs/biome": "2.5.12",
"@types/node": "22.15.3",
+ "@types/react": "^19.3.0",
+ "react": "^19.3.0",
"rollup": "^4.63.1",
"rollup-plugin-esbuild": "^6.1.1",
"typescript": "5.9.2",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f05de4c..c87f7c6 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -8,6 +8,9 @@ importers:
.:
dependencies:
+ astro:
+ specifier: '>=4.0.0'
+ version: 7.3.5(@types/node@22.15.3)
next:
specifier: '>=14.0.0'
version: 16.3.5(@types/node@22.15.3)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)
@@ -18,6 +21,12 @@ importers:
'@types/node':
specifier: 22.15.3
version: 22.15.3
+ '@types/react':
+ specifier: ^19.3.0
+ version: 19.3.0
+ react:
+ specifier: ^19.3.0
+ version: 19.3.0
rollup:
specifier: ^4.63.1
version: 4.63.3
@@ -29,10 +38,108 @@ importers:
version: 5.9.2
vitest:
specifier: ^3.2.7
- version: 3.2.7(@types/node@22.15.3)
+ version: 3.2.7(@types/node@22.15.3)(lightningcss@1.33.0)
packages:
+ '@astrojs/compiler-binding-android-arm64@0.5.1':
+ resolution: {integrity: sha512-nMb2nMIJtcWLNH+fV75Enmi+jp4tIOYOfsv4XtpgdOWkqc9P4uSSdK5u1xb340AzrXo5V18SxLl/nc3vcqtamQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [android]
+
+ '@astrojs/compiler-binding-darwin-arm64@0.5.1':
+ resolution: {integrity: sha512-5k4+nZ/WRt+dcVow4z7rBuI7iv9A58h/uQ91YJe1PrTivbcCkq3u2Ynx/AZJwII4CsZawBCeGpojkFjutZBhBQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@astrojs/compiler-binding-darwin-x64@0.5.1':
+ resolution: {integrity: sha512-0Buw+YST9Ff2EqQyhRMQujuFq/dijLw3zXWhsvI0dJ2pGrT38iVoxTEca2eBX/PfhlwkVWSRJEKO5gMqKHyeHg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [darwin]
+
+ '@astrojs/compiler-binding-linux-arm64-gnu@0.5.1':
+ resolution: {integrity: sha512-x5LRpyCoMKuu3INr18cn42YhwSOaRpp9b5Ny3eJJ/sWVeejC16Zeshu1JlvlSmEZACLeWxU5JM0RX6T6nI+YyA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+
+ '@astrojs/compiler-binding-linux-arm64-musl@0.5.1':
+ resolution: {integrity: sha512-mL7tQEuDk3rGfaKmrO63nw6WBy1TPVioQGmVyjcAr+C+a/k3SVMYBytNSMqH9mZPT/Swj30JaZ2N842Z1NnOEQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+
+ '@astrojs/compiler-binding-linux-x64-gnu@0.5.1':
+ resolution: {integrity: sha512-uLGc9jtxwiDe4cQyhNPQim4ECiB/YzbWlXssfLAv8r374kArfTwBHjwR2+j+XVyF71yCx5mF9YNRclRqdNBgeg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+
+ '@astrojs/compiler-binding-linux-x64-musl@0.5.1':
+ resolution: {integrity: sha512-G0cywinaQUc8v1MrytvYKUX7svTDMmYtOCZfxjwKPbJi59zIqM+Ll0rWgO0GQWLZH3XoPYo19ZwlP3Xt9ep9YA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+
+ '@astrojs/compiler-binding-wasm32-wasi@0.5.1':
+ resolution: {integrity: sha512-yMhLL8asmLydoAdnEZxAw6eLfNDs3YJl6jqn0pjPt6zrb2U5qIDLnii4/twThpIFODKkQ6YDpBRTOz/vSfZCxw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [wasm32]
+
+ '@astrojs/compiler-binding-win32-arm64-msvc@0.5.1':
+ resolution: {integrity: sha512-aClIG6poFt3Wf/bZykrEAX2nAnKvBHW6RXiKUa69QjBtWH0/FOlOAjnFcxRNlhej2AMWNYFx0o+LGjwMcH8P7Q==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [win32]
+
+ '@astrojs/compiler-binding-win32-x64-msvc@0.5.1':
+ resolution: {integrity: sha512-/E6uBCagY70YpWqssBC+/FuniNSloeQPRgj7l3LDWiqjxIyTLnIgX1sTt18FU7jrigetpSnC9cHAM6b6IxSgPw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [win32]
+
+ '@astrojs/compiler-binding@0.5.1':
+ resolution: {integrity: sha512-oczyolLUl9mNrtuBuNjuvn5thpHrFLXAHAWGTRg0JDHQ8cGVsVeFekOu2uSoQGgainJIi+A3/9m0DyYwz3Nlnw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+
+ '@astrojs/compiler-rs@0.5.1':
+ resolution: {integrity: sha512-1k1acnX7DepIiea9U9/Y+d1hdAFfylu1ZQQkkYgRSwBOBAsXInolyZuh/2tax+83vu/A+hOYP6P3+265RvMTvw==}
+ engines: {node: '>=22.12.0'}
+
+ '@astrojs/internal-helpers@0.11.0':
+ resolution: {integrity: sha512-3rzxJ+xbo0+8YyqOzLziIN32wmsHdCjEVz2sGOpRxJ+Ben/KiLph4ItxBy1abEL+E8fkRzqjg0rfXmaHJGw9JA==}
+
+ '@astrojs/markdown-satteri@0.4.2':
+ resolution: {integrity: sha512-g4QehXnB/MzxQWnSf17NciFInMqEJy9948p8cc7zGg/r7995m0Ln5PMr3Xlnj24iey1LchaoZ3SzTOa3D4P/3w==}
+
+ '@astrojs/prism@4.0.2':
+ resolution: {integrity: sha512-KTivpmnz6lDsC6o9H4+DNm2SrE/GHzw8cNAvEJwAvUT+eoaEnn/4NtbDNfRRaxaJHdp15gf+tfHAWiXR4wB3BA==}
+ engines: {node: '>=22.12.0'}
+
+ '@astrojs/telemetry@3.3.3':
+ resolution: {integrity: sha512-C1TLn5sPJr0x4vk56piHWKbnqlEB8BKyte5Y45V02U+D7BGO5eMqZDH5aPjnkXQWJggvmsTXxH03QMZ9NgWLzQ==}
+ engines: {node: 18.20.8 || ^20.3.0 || >=22.0.0}
+
+ '@babel/helper-string-parser@7.29.7':
+ resolution: {integrity: sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-validator-identifier@7.29.7':
+ resolution: {integrity: sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/parser@7.29.9':
+ resolution: {integrity: sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/types@7.29.8':
+ resolution: {integrity: sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==}
+ engines: {node: '>=6.9.0'}
+
'@biomejs/biome@2.5.12':
resolution: {integrity: sha512-Lw4VHZRebrReBBnlHa12JQjnIBm3JJAA55PDB9LbBVBF0q4RYphm6KfmIjqtPhf61MxZ5Q9KoK8R8x+7per5Aw==}
engines: {node: '>=14.21.3'}
@@ -86,9 +193,81 @@ packages:
cpu: [x64]
os: [win32]
+ '@bruits/satteri-darwin-arm64@0.10.5':
+ resolution: {integrity: sha512-27KTVl4TJkVahMy/ohyA7qd4938G5UNneFUz/PsScYfpIhj0IVAS23mpcJXdPF44sa6nva198lmV/cKIb2YPyA==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@bruits/satteri-darwin-x64@0.10.5':
+ resolution: {integrity: sha512-IjnLe3nKspq6qaeqGgjT7MT8VrTV74yWRlaag7ZdNsI8TDAYZ0iPxMCo+9KQZHUk5EyVB+reBI/PFWL5KuFw9Q==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@bruits/satteri-linux-arm64-gnu@0.10.5':
+ resolution: {integrity: sha512-glkYXZCJywjP13v67eAyAMSJdF+ncvEbYvgi/wOtffL9tQ27lr/zsyzUfgs+ovjJ9d8JNQKiXeiArJcX8PJL9w==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@bruits/satteri-linux-arm64-musl@0.10.5':
+ resolution: {integrity: sha512-yWdgG1g17Nh2QyGVlFUxGRa3FEFwiMcpZEyMNWkbM3deC94cmVc+/i9OuyFpdKuWo3GkgoCtYVOoxk1uCnCZIA==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@bruits/satteri-linux-x64-gnu@0.10.5':
+ resolution: {integrity: sha512-FVaLoPT1fBgGl0J+AYebyyXJYBachGl8Oyyrf1lye4RTqCB4S0Gwkj1uM9RJyThUOvx5VUmAT1CnNh1SFHA+kw==}
+ cpu: [x64]
+ os: [linux]
+
+ '@bruits/satteri-linux-x64-musl@0.10.5':
+ resolution: {integrity: sha512-EHpVAx2bqW3GINHTKkljtxVfQmVDGWIuwOYOP5YghTj+0PkBa2o8oKPRtQ9Kbsr1Fye8jtUcDjhwj2jMNugZKg==}
+ cpu: [x64]
+ os: [linux]
+
+ '@bruits/satteri-wasm32-wasi@0.10.5':
+ resolution: {integrity: sha512-ypz8c/Zmipxp4IoeDa228Gstv6TLzVmNs3yC6wKCoNSOjx1iwpgzu87Y3hTkXFdwChVGU85qeUDuOIarGUZQLw==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+
+ '@bruits/satteri-win32-arm64-msvc@0.10.5':
+ resolution: {integrity: sha512-siTV88nb0LRqNpkL2gXboqCwVdq95sLtzMHS1/3eONV2gLbB3NAK46wmSMvCO/yquBvI2lvaFIfd8P12ecsxBw==}
+ cpu: [arm64]
+ os: [win32]
+
+ '@bruits/satteri-win32-x64-msvc@0.10.5':
+ resolution: {integrity: sha512-C3IfPvfvMXmlzBxaMPKFS1XiuV9pu2mC7YqkPk7PSvTgPZ8gbdASIpHpztDLvTTQjqZ0z1Ol8tK5X+V6XXC0wQ==}
+ cpu: [x64]
+ os: [win32]
+
+ '@capsizecss/unpack@4.0.1':
+ resolution: {integrity: sha512-CuNiSqg7+e1cO/GjffyMOm5Tt2jUF9CWHHnvQ/UkqvtkGfHdgwEC0wpmq7fkN3gxwpRnrAN0WzO3vREKmNolMQ==}
+ engines: {node: '>=18'}
+
+ '@clack/core@1.5.1':
+ resolution: {integrity: sha512-iHTrHA8MtVuLl2TfZySmcKv1qO2PoyC9Z7pfSDozEuV5vtY3/wcOPKJXlqJ5Oq2Cx5DDGQGAMVx6HZfRRoVEbQ==}
+ engines: {node: '>= 20.12.0'}
+
+ '@clack/prompts@1.8.1':
+ resolution: {integrity: sha512-dlT1m5e/0yUL0kRNcQn7yGLVThkgbB0Ga/1AmfDDC/8ik6AIiSf2QLQO2zPYvefsHP0aFgxO93cVLCCfDp7kzQ==}
+ engines: {node: '>= 20.12.0'}
+
+ '@emnapi/core@1.11.1':
+ resolution: {integrity: sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==}
+
+ '@emnapi/core@1.11.3':
+ resolution: {integrity: sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==}
+
+ '@emnapi/runtime@1.11.1':
+ resolution: {integrity: sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==}
+
'@emnapi/runtime@1.11.3':
resolution: {integrity: sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==}
+ '@emnapi/wasi-threads@1.2.2':
+ resolution: {integrity: sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==}
+
+ '@emnapi/wasi-threads@1.2.3':
+ resolution: {integrity: sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==}
+
'@esbuild/aix-ppc64@0.28.2':
resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==}
engines: {node: '>=18'}
@@ -400,6 +579,13 @@ packages:
cpu: [x64]
os: [linux]
+ '@napi-rs/wasm-runtime@1.2.4':
+ resolution: {integrity: sha512-AJxoUD2/15ESHbvpcyjU274nsAPLuOtPHCk0vKJM5pj//Fg/B1FXNWjPnXTT9PymCYYiHo4zPj0ZomXBKhoy7g==}
+ engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0}
+ peerDependencies:
+ '@emnapi/core': ^1.7.1 || ^2.0.0-alpha.4
+ '@emnapi/runtime': ^1.7.1 || ^2.0.0-alpha.4
+
'@next/env@16.3.5':
resolution: {integrity: sha512-NWEXVDMqoEo0ktmU6u0sE2Vg0LOcsD7NnOTJNo3/fEaTfsg+F1bMIxuDmQbda4e3yTIQwVdUREF2yIuMOusKtg==}
@@ -451,6 +637,105 @@ packages:
cpu: [x64]
os: [win32]
+ '@oslojs/encoding@1.1.0':
+ resolution: {integrity: sha512-70wQhgYmndg4GCPxPPxPGevRKqTIJ2Nh4OkiMWmDAVYsTQ+Ta7Sq+rPevXyXGdzr30/qZBnyOalCszoMxlyldQ==}
+
+ '@oxc-project/types@0.151.0':
+ resolution: {integrity: sha512-J1yXrIlNDZVzE3ada310xeAw7nH8yCAyLPuUIsjKatFPmfn5bS1oW+cM+QsGOtVWd5nhSpbwZWx/rue+r5Z+PA==}
+
+ '@rolldown/binding-android-arm-eabi@1.2.11':
+ resolution: {integrity: sha512-A5kXfGKvKWWZE0TtPrfsvT+q4Y5d1QG8gGUzpYjGydM+fARM9MuX90PrXYXe0XbsDVgyxxNzHo6giCj90bsFNw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm]
+ os: [android]
+
+ '@rolldown/binding-android-arm64@1.2.11':
+ resolution: {integrity: sha512-z6cTycz+iJ4PVkuL4HHW4DfTfoeU/2nqYYuSOrTmH7yHK5Y0LCOnA03V4ZNxavyVaU1oOqUgIg2klN/s+USGOA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [android]
+
+ '@rolldown/binding-darwin-arm64@1.2.11':
+ resolution: {integrity: sha512-jShvqNtP6vDC6/A5JOAzbVV+DkgHqhl/ScVCJEbt+TUY6QYz7YnXcrg3sLtFBniro0f/Ld50ZwCWA6f7KYD1nQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@rolldown/binding-darwin-x64@1.2.11':
+ resolution: {integrity: sha512-f2i2xiNWq1Z1l2++q2fuhZRdLAT3aqxD6vRNm1RAxpUoBcdqNB3C0s1Bt+K+PbEx2F5F4gQp6hqKkphCY/xF9w==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [darwin]
+
+ '@rolldown/binding-freebsd-x64@1.2.11':
+ resolution: {integrity: sha512-4Ir5FSOKIAMr4r0kExpt1s3bMgzJU3rA45AYOHtQpls0oNeqcYBKrWMlckrYH4KCfGLfkfn1tN1dmZPMVsdXow==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@rolldown/binding-linux-arm-gnueabihf@1.2.11':
+ resolution: {integrity: sha512-/gnRDM+39BROzAN/k1OZjDPnDMcZxB/0EUxKjONO5yVkNEvlsoMDrxGNKgZi/ttFriS2gwlDNzB65pvNbFOXIQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm]
+ os: [linux]
+
+ '@rolldown/binding-linux-arm64-gnu@1.2.11':
+ resolution: {integrity: sha512-PFaK8HwvAHbaKbBcDNQihjMKYvFnA5hiENx/l5tphTDz1E0WFp32l0A7aq7lyUwGsRw/xSrNIy/gIK4thrSCrw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+
+ '@rolldown/binding-linux-arm64-musl@1.2.11':
+ resolution: {integrity: sha512-AskzJUIKRLPxkruR1wLKewGbOw+EYfU/9lOrBFj4AFrEA8hPpKFnODWNu2WLaNs0QNkEb9QIJufmVZZIL/bJlg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [linux]
+
+ '@rolldown/binding-linux-ppc64-gnu@1.2.11':
+ resolution: {integrity: sha512-qlUGAheh2yh8afH7QBgx0PrRHN85hKnNd78x8MeMhXivuevgd8vgf6/CstOzmNKY/lLTHvNTrPy98cLnAugzJw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@rolldown/binding-linux-s390x-gnu@1.2.11':
+ resolution: {integrity: sha512-secpEad+0vCbSfn8upFySkDskv+bGPk3THSDS9Y89yc4rb4kzqHp8Dmyd9BkQW4SnhNXBZCl/6CrO//hZahNJQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [s390x]
+ os: [linux]
+
+ '@rolldown/binding-linux-x64-gnu@1.2.11':
+ resolution: {integrity: sha512-mOVBT3dPpkWm8XBWPmU4bf+U6dYDLeMo/9ojUmis4N0L5uu10qra5vOyngZ7/PSdoE4G9KvRt4bloRxNjLas7A==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+
+ '@rolldown/binding-linux-x64-musl@1.2.11':
+ resolution: {integrity: sha512-Is78i9A8Ui4SqcxUwFJ9uMmjDn58IbVTjFWYdQestFEgeuEmHMLGNriXnVJKkwG2YiZjw8cP0zCTyDMdDGtOOg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [linux]
+
+ '@rolldown/binding-openharmony-arm64@1.2.11':
+ resolution: {integrity: sha512-dUCXneZ87INUMyQ0D+C0HrEBNUPNXHaPmU5GTjyKTJEiussw9Kaj5Ln8UztPe4epV/ffvgNBEadksdYhmW6xJA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@rolldown/binding-win32-arm64-msvc@1.2.11':
+ resolution: {integrity: sha512-jByxb6qfd+bH1xUd0qnfFnb17i9sWBPY2tOavJ0l3tdr3OTu+Kvtm8cd/JV5nFt657b1VqGltxg9olOEfofXWw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [arm64]
+ os: [win32]
+
+ '@rolldown/binding-win32-x64-msvc@1.2.11':
+ resolution: {integrity: sha512-/PzKqzAJ03i19oy2ItPvyvaVjOjBCNnfaJs8yvUdGBKmiESgnrJSQ2awd81QzFbbnAmu7YO9ZnJrDCb9VSJPRA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ cpu: [x64]
+ os: [win32]
+
+ '@rolldown/pluginutils@1.0.1':
+ resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==}
+
'@rollup/rollup-android-arm-eabi@4.63.3':
resolution: {integrity: sha512-w3Jnvi1ocaVm/c7yVPpfB98XeSRBMyzp6njL5MVVbGyXjpmUkN+s6Hp4t0PqhGCCaI1ZHMKXt/w0lA1RCaLVcw==}
cpu: [arm]
@@ -576,21 +861,76 @@ packages:
cpu: [x64]
os: [win32]
+ '@shikijs/core@4.4.3':
+ resolution: {integrity: sha512-QCR4q2ZO/ILJEuwiBMel4wdcTDb1JGwfjKTxPDF6x8ixOaluPrVqIn06C99AcRPhmYlBR56d/Fb+GN58GzExpg==}
+ engines: {node: '>=20'}
+
+ '@shikijs/engine-javascript@4.4.3':
+ resolution: {integrity: sha512-FbOjFJp9VLdo1Wevs10BBtVxiTWwNLqZh5Gkhjgda/ioL15YOgeSl9n+6XMa3qRlPQzfhFNe641SrynFHYG0nQ==}
+ engines: {node: '>=20'}
+
+ '@shikijs/engine-oniguruma@4.4.3':
+ resolution: {integrity: sha512-EcOQkxdxGQrc1Row/cC2c96/v1dbZqGnEVu1qTuT/MJmp6+cXCvQussowVmCv5Tqr3KuY3c7IbM6HTW3LJ1k9w==}
+ engines: {node: '>=20'}
+
+ '@shikijs/langs@4.4.3':
+ resolution: {integrity: sha512-ePic0yfAJGOF83D5wBHK/00EjK65oahBYxFk5epgq33WRv7X9UuxLEV8PtR0szC0z8dl7INIpIodB99JRFlR+A==}
+ engines: {node: '>=20'}
+
+ '@shikijs/primitive@4.4.3':
+ resolution: {integrity: sha512-m0wBeLDQDeIxRdUmrCPdQqfuUamDwRL5isCfYbguKD6NiaKpVbsv+3J81DyIKgNW5h4WAIIr8T4EkgQrBBxvaQ==}
+ engines: {node: '>=20'}
+
+ '@shikijs/themes@4.4.3':
+ resolution: {integrity: sha512-w8UHjeUnIR965KMWJHUPXOc2mNJUnK3vpVLYLvw5IYU2mnTTJ89E24OrJDBNiJDQ0qzb0tc4l7mrIXx5cFeIyw==}
+ engines: {node: '>=20'}
+
+ '@shikijs/types@4.4.3':
+ resolution: {integrity: sha512-UEJxmRR++MAGR6hugn0vgVS2W/6lWAts84FFSrnlH9sP0LNol7E5+NQ792pH8liWUhyMyjhTgSUH3k7iD7tc5g==}
+ engines: {node: '>=20'}
+
+ '@shikijs/vscode-textmate@10.0.2':
+ resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}
+
'@swc/helpers@0.5.23':
resolution: {integrity: sha512-5lSsMOTXURePglDfvuAQUqkGek9Hg2kksOYay2m0+XR++b2NWYL/4sWyuvVBIs8oKnJaxkdi9whaL/sqN13afw==}
+ '@tybys/wasm-util@0.10.4':
+ resolution: {integrity: sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==}
+
'@types/chai@5.2.3':
resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==}
'@types/deep-eql@4.0.2':
resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==}
+ '@types/estree-jsx@1.0.5':
+ resolution: {integrity: sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==}
+
'@types/estree@1.0.9':
resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}
+ '@types/hast@3.0.5':
+ resolution: {integrity: sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==}
+
+ '@types/mdast@4.0.4':
+ resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==}
+
+ '@types/nlcst@2.0.3':
+ resolution: {integrity: sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA==}
+
'@types/node@22.15.3':
resolution: {integrity: sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==}
+ '@types/react@19.3.0':
+ resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==}
+
+ '@types/unist@3.0.3':
+ resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==}
+
+ '@ungap/structured-clone@1.4.0':
+ resolution: {integrity: sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==}
+
'@vitest/expect@3.2.7':
resolution: {integrity: sha512-E8eBXaKibuvH2pSZErOjdVb5vF4PbKYcrnluBTYxEk1l/VhhwZg1kZQsdtjq+CsF5CFydf2Rdkz7jDHKSisi3w==}
@@ -620,15 +960,50 @@ packages:
'@vitest/utils@3.2.7':
resolution: {integrity: sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==}
+ am-i-vibing@0.4.0:
+ resolution: {integrity: sha512-MxT4XZL7pzLHpuvhDKdMaQHMGGkJDLluKBLsbstn+8wv9sWcFT6h+0ve9qkml95amVTZtZV83gQe2hY+ojgHLg==}
+ hasBin: true
+
+ anymatch@3.1.3:
+ resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
+ engines: {node: '>= 8'}
+
+ argparse@2.0.1:
+ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+
+ aria-query@5.3.2:
+ resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
+ engines: {node: '>= 0.4'}
+
assertion-error@2.0.1:
resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
engines: {node: '>=12'}
+ astro@7.3.5:
+ resolution: {integrity: sha512-1p/ernaq/RuESbM5NMjWzbO6SiebMGrGcYlGjMfBhzzgM+n/X7AUmVyw8BqW2QYCdivpsHwJBcD1fqmlTZjZHg==}
+ engines: {node: '>=22.12.0', npm: '>=9.6.5', pnpm: '>=7.1.0'}
+ hasBin: true
+ peerDependencies:
+ '@astrojs/markdown-remark': ^7.3.0
+ peerDependenciesMeta:
+ '@astrojs/markdown-remark':
+ optional: true
+
+ axobject-query@4.1.0:
+ resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}
+ engines: {node: '>= 0.4'}
+
+ bail@2.0.2:
+ resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==}
+
baseline-browser-mapping@2.11.25:
resolution: {integrity: sha512-gMmEShwwq7FJqMwvfRwvCl00v4kN+KOfJqXn+f4nrufak5gNHJOksd/60Dvjuz7sI8Y5WiSFBa8FEYr+zoyqCw==}
engines: {node: '>=6.0.0'}
hasBin: true
+ boolbase@1.0.0:
+ resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==}
+
cac@6.7.14:
resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
engines: {node: '>=8'}
@@ -636,17 +1011,81 @@ packages:
caniuse-lite@1.0.30001810:
resolution: {integrity: sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==}
+ ccount@2.0.1:
+ resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
+
chai@5.3.3:
resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}
engines: {node: '>=18'}
+ character-entities-html4@2.1.0:
+ resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==}
+
+ character-entities-legacy@3.0.0:
+ resolution: {integrity: sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==}
+
check-error@2.1.3:
resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==}
engines: {node: '>= 16'}
+ chokidar@5.0.0:
+ resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==}
+ engines: {node: '>= 20.19.0'}
+
+ ci-info@4.4.0:
+ resolution: {integrity: sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==}
+ engines: {node: '>=8'}
+
client-only@0.0.1:
resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
+ clsx@2.1.1:
+ resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
+ engines: {node: '>=6'}
+
+ comma-separated-tokens@2.0.3:
+ resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==}
+
+ commander@11.1.0:
+ resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
+ engines: {node: '>=16'}
+
+ common-ancestor-path@2.0.0:
+ resolution: {integrity: sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng==}
+ engines: {node: '>= 18'}
+
+ cookie-es@1.2.3:
+ resolution: {integrity: sha512-lXVyvUvrNXblMqzIRrxHb57UUVmqsSWlxqt3XIjCkUP0wDAf6uicO6KMbEgYrMNtEvWgWHwe42CKxPu9MYAnWw==}
+
+ cookie@2.0.1:
+ resolution: {integrity: sha512-yuToqVvRrj6pfDXREyQAAv8SkAEk/8GS3jQRTiUMm66TVtBYmqQeoEjL2Lmq8Rpo6271vH76InTChTitEAm65w==}
+ engines: {node: '>=22'}
+
+ crossws@0.3.5:
+ resolution: {integrity: sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==}
+
+ css-select@6.0.0:
+ resolution: {integrity: sha512-rZZVSLle8v0+EY8QAkDWrKhpgt6SA5OtHsgBnsj6ZaLb5dmDVOWUDtQitd9ydxxvEjhewNudS6eTVU7uOyzvXw==}
+
+ css-tree@2.2.1:
+ resolution: {integrity: sha512-OA0mILzGc1kCOCSJerOeqDxDQ4HOh+G8NbOJFOTgOCzpw7fCBubk0fEyxp8AgOL/jvLgYA/uV0cMbe43ElF1JA==}
+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'}
+
+ css-tree@3.2.1:
+ resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==}
+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}
+
+ css-what@7.0.0:
+ resolution: {integrity: sha512-wD5oz5xibMOPHzy13CyGmogB3phdvcDaB5t0W/Nr5Z2O/agcB8YwOz6e2Lsp10pNDzBoDO9nVa3RGs/2BttpHQ==}
+ engines: {node: '>= 6'}
+
+ csso@5.0.5:
+ resolution: {integrity: sha512-0LrrStPOdJj+SPCCrGhzryycLjwcgUSHBtxNA8aIDxf0GLsRh1cKYhB00Gd1lDOS4yGH69+SNn13+TWbVHETFQ==}
+ engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0, npm: '>=7.0.0'}
+
+ csstype@3.2.3:
+ resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
+
debug@4.4.3:
resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
engines: {node: '>=6.0'}
@@ -660,13 +1099,57 @@ packages:
resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}
engines: {node: '>=6'}
+ defu@6.1.7:
+ resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==}
+
+ dequal@2.0.3:
+ resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}
+ engines: {node: '>=6'}
+
+ destr@2.0.5:
+ resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==}
+
detect-libc@2.1.2:
resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
engines: {node: '>=8'}
+ devalue@5.9.4:
+ resolution: {integrity: sha512-sPAT4pztbu6586/hrhOnMKS17IJrvg12mXiSPSS3W5qDeN2RGgvZ0diZCm31dBbnevfVmujNO3IM2wrS4Y2Rhg==}
+
+ devlop@1.1.0:
+ resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==}
+
+ diff@9.0.0:
+ resolution: {integrity: sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw==}
+ engines: {node: '>=0.3.1'}
+
+ dom-serializer@2.0.0:
+ resolution: {integrity: sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==}
+
+ domelementtype@2.3.0:
+ resolution: {integrity: sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==}
+
+ domhandler@5.0.3:
+ resolution: {integrity: sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==}
+ engines: {node: '>= 4'}
+
+ domutils@3.2.2:
+ resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==}
+
+ dset@3.1.4:
+ resolution: {integrity: sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA==}
+ engines: {node: '>=4'}
+
+ entities@4.5.0:
+ resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
+ engines: {node: '>=0.12'}
+
es-module-lexer@1.7.0:
resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}
+ es-module-lexer@2.3.2:
+ resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==}
+
esbuild@0.28.2:
resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==}
engines: {node: '>=18'}
@@ -675,10 +1158,25 @@ packages:
estree-walker@3.0.3:
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
+ eventemitter3@5.0.4:
+ resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==}
+
expect-type@1.4.0:
resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==}
engines: {node: '>=12.0.0'}
+ extend@3.0.2:
+ resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}
+
+ fast-string-truncated-width@3.0.3:
+ resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==}
+
+ fast-string-width@3.0.2:
+ resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==}
+
+ fast-wrap-ansi@0.2.2:
+ resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==}
+
fdir@6.5.0:
resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
engines: {node: '>=12.0.0'}
@@ -688,6 +1186,21 @@ packages:
picomatch:
optional: true
+ find-proc@0.2.0:
+ resolution: {integrity: sha512-a6h2nTrgB3g5Wrn4au9Ux4kMk7IJtyF6oA8uGn+mk3weLZssUtc1cp6meHIzzuW2o1srrBAxzkmXLbqjRkgB6w==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+
+ flattie@1.1.1:
+ resolution: {integrity: sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==}
+ engines: {node: '>=8'}
+
+ fontace@0.4.1:
+ resolution: {integrity: sha512-lDMvbAzSnHmbYMTEld5qdtvNH2/pWpICOqpean9IgC7vUbUJc3k+k5Dokp85CegamqQpFbXf0rAVkbzpyTA8aw==}
+
+ fontkitten@1.0.3:
+ resolution: {integrity: sha512-Wp1zXWPVUPBmfoa3Cqc9ctaKuzKAV6uLstRqlR56kSjplf5uAce+qeyYym7F+PHbGTk+tCEdkCW6RD7DX/gBZw==}
+ engines: {node: '>=20'}
+
fsevents@2.3.3:
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
@@ -696,32 +1209,188 @@ packages:
get-tsconfig@4.14.3:
resolution: {integrity: sha512-++QEw4DIY7WGoukz+/+A/8dGYPT9l9yIadnmSgZ8Rjr3YVSVDipQSO9CdnJo9ePqFqUUqh+wk9uIaoiAwsiPkA==}
- js-tokens@9.0.1:
- resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}
+ get-tsconfig@5.0.0-beta.4:
+ resolution: {integrity: sha512-7nF7C9fIPFEMHgEMEfgIlO9wDdZ8CyHw27rWciFZfHvHDReIiPhsYuzPRXsfvBCqFy1l8RRyyWV7QLM+ZhUJsQ==}
+ engines: {node: '>=20.20.0'}
- loupe@3.2.1:
- resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}
+ github-slugger@2.0.0:
+ resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==}
- magic-string@0.30.21:
- resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+ h3@1.15.11:
+ resolution: {integrity: sha512-L3THSe2MPeBwgIZVSH5zLdBBU90TOxarvhK9d04IDY2AmVS8j2Jz2LIWtwsGOU3lu2I5jCN7FNvVfY2+XyF+mg==}
- ms@2.1.3:
- resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+ hast-util-to-html@9.0.5:
+ resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}
- nanoid@3.3.19:
- resolution: {integrity: sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==}
- engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hast-util-whitespace@3.0.0:
+ resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==}
+
+ html-escaper@3.0.3:
+ resolution: {integrity: sha512-RuMffC89BOWQoY0WKGpIhn5gX3iI54O6nRA0yC124NYVtzjmFWBIiFd8M0x+ZdX0P9R4lADg1mgP8C7PxGOWuQ==}
+
+ html-void-elements@3.0.0:
+ resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==}
+
+ http-cache-semantics@4.2.0:
+ resolution: {integrity: sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==}
+
+ iron-webcrypto@1.2.1:
+ resolution: {integrity: sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg==}
+
+ is-docker@4.0.0:
+ resolution: {integrity: sha512-LHE+wROyG/Y/0ZnbktRCoTix2c1RhgWaZraMZ8o1Q7zCh0VSrICJQO5oqIIISrcSBtrXv0o233w1IYwsWCjTzA==}
+ engines: {node: '>=20'}
hasBin: true
- next@16.3.5:
- resolution: {integrity: sha512-MdtsTgzyfCPRLC6uJ1mN8ao7lyJ4BB0U6Inhnx3gta1UcCIdHK3yxLG0E8OWQteWD8/Q0qb8A5o7wJaL8M9y2w==}
- engines: {node: '>=20.9.0'}
+ is-plain-obj@4.1.0:
+ resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}
+ engines: {node: '>=12'}
+
+ js-tokens@9.0.1:
+ resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}
+
+ js-yaml@4.3.2:
+ resolution: {integrity: sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==}
hasBin: true
- peerDependencies:
- '@opentelemetry/api': ^1.1.0
- '@playwright/test': ^1.51.1
- babel-plugin-react-compiler: '*'
- react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
+
+ jsonc-parser@3.3.1:
+ resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==}
+
+ lightningcss-android-arm64@1.33.0:
+ resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [android]
+
+ lightningcss-darwin-arm64@1.33.0:
+ resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ lightningcss-darwin-x64@1.33.0:
+ resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ lightningcss-freebsd-x64@1.33.0:
+ resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ lightningcss-linux-arm-gnueabihf@1.33.0:
+ resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm]
+ os: [linux]
+
+ lightningcss-linux-arm64-gnu@1.33.0:
+ resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+
+ lightningcss-linux-arm64-musl@1.33.0:
+ resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+
+ lightningcss-linux-x64-gnu@1.33.0:
+ resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+
+ lightningcss-linux-x64-musl@1.33.0:
+ resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+
+ lightningcss-win32-arm64-msvc@1.33.0:
+ resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ lightningcss-win32-x64-msvc@1.33.0:
+ resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [win32]
+
+ lightningcss@1.33.0:
+ resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==}
+ engines: {node: '>= 12.0.0'}
+
+ loupe@3.2.1:
+ resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==}
+
+ lru-cache@11.5.3:
+ resolution: {integrity: sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==}
+ engines: {node: 20 || >=22}
+
+ magic-string@0.30.21:
+ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+
+ magic-string@1.4.2:
+ resolution: {integrity: sha512-vG+rjFRj1PqdIBozIxAGMjPlOhaVe+GXpbttY/iSK7rGcJRMlwNJO7dcUwmUqkymsFLJiNGI06t4D7Fr7yRC9g==}
+
+ magicast@0.5.5:
+ resolution: {integrity: sha512-UicdXN8zQ3JHlxVq+28afMXPr1z7WNY6+7EJnzTdQWkTAlMLF5fNCCKxJHBQwGaNGR11581EiQmQzx73+MvszA==}
+
+ mdast-util-to-hast@13.2.1:
+ resolution: {integrity: sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==}
+
+ mdn-data@2.0.28:
+ resolution: {integrity: sha512-aylIc7Z9y4yzHYAJNuESG3hfhC+0Ibp/MAMiaOZgNv4pmEdFyfZhhhny4MNiAfWdBQ1RQ2mfDWmM1x8SvGyp8g==}
+
+ mdn-data@2.27.1:
+ resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==}
+
+ micromark-util-character@2.1.1:
+ resolution: {integrity: sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==}
+
+ micromark-util-encode@2.0.1:
+ resolution: {integrity: sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==}
+
+ micromark-util-sanitize-uri@2.0.1:
+ resolution: {integrity: sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==}
+
+ micromark-util-symbol@2.0.1:
+ resolution: {integrity: sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==}
+
+ micromark-util-types@2.0.3:
+ resolution: {integrity: sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==}
+
+ mrmime@2.0.1:
+ resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==}
+ engines: {node: '>=10'}
+
+ ms@2.1.3:
+ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+
+ nanoid@3.3.19:
+ resolution: {integrity: sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+
+ neotraverse@1.0.1:
+ resolution: {integrity: sha512-WmmLty1YWwJl9yZi77v2dVIV6X2kuYV8YYBI/G3LWGKdGHmHUvL1z7FW0iDvEvGAwNEoc5x1tOOOyDnf5jJw/w==}
+ engines: {node: '>= 10'}
+
+ next@16.3.5:
+ resolution: {integrity: sha512-MdtsTgzyfCPRLC6uJ1mN8ao7lyJ4BB0U6Inhnx3gta1UcCIdHK3yxLG0E8OWQteWD8/Q0qb8A5o7wJaL8M9y2w==}
+ engines: {node: '>=20.9.0'}
+ hasBin: true
+ peerDependencies:
+ '@opentelemetry/api': ^1.1.0
+ '@playwright/test': ^1.51.1
+ babel-plugin-react-compiler: '*'
+ react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
sass: ^1.3.0
peerDependenciesMeta:
@@ -734,6 +1403,53 @@ packages:
sass:
optional: true
+ nlcst-to-string@4.0.0:
+ resolution: {integrity: sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA==}
+
+ node-fetch-native@1.6.7:
+ resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==}
+
+ node-mock-http@1.0.5:
+ resolution: {integrity: sha512-KQyt/wLjG3TAc7DOUhpqWzgd4ERxR80JOlTK5VE5R1S12IaPVN5qkj4klBce9HPG1Njuup4Sb5bljaT34lIyjw==}
+
+ normalize-path@3.0.0:
+ resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
+ engines: {node: '>=0.10.0'}
+
+ nth-check@2.1.1:
+ resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
+
+ obug@3.0.0:
+ resolution: {integrity: sha512-5vvB5+W7ePv+p3uqxi+RcW1XAzLW0/hxt3/4X4Lc4qHudzOhmBiBwOY6DRob4WnanAEGvNcLjF+KNOufrUoEQw==}
+ engines: {node: '>=12.20.0'}
+
+ ofetch@1.5.1:
+ resolution: {integrity: sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA==}
+
+ ohash@2.0.12:
+ resolution: {integrity: sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==}
+
+ oniguruma-parser@0.12.2:
+ resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==}
+
+ oniguruma-to-es@4.3.6:
+ resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==}
+
+ p-limit@7.3.3:
+ resolution: {integrity: sha512-SKgVvDU5TNIxQ4r30U75BNLC6a+6GOEjngrk/ysM5+Zu3oJuk1SC5ApzIzY/7PjCEjoVPMWJ0zho/4QUiEB7TQ==}
+ engines: {node: '>=20'}
+
+ p-queue@9.3.3:
+ resolution: {integrity: sha512-NXAOdnEe5FsZJfT4oK84lE1Y5cFFdWlRuOo5tww8DyNMxyRXwn39fIkUtNLKppcPC+UYU/bXujNCUGDv01y7CA==}
+ engines: {node: '>=20'}
+
+ p-timeout@7.0.2:
+ resolution: {integrity: sha512-prbX4Z3YszrFNgH+MW5Zoeq3baXrMtP/MQnFeET90UB/GtGcGDQ5Usg9OCy6ETjTTntOw1SL2z9fMPUppN3Guw==}
+ engines: {node: '>=20'}
+
+ package-manager-detector@1.8.0:
+ resolution: {integrity: sha512-yQA4H19AmPEoMUeavPMDIe1higySl/gH/yaQrkT/s07Qp+7pp2hYz30N3z2l5BkjVkF9Ow6o0wjJamm2y7Sn0A==}
+
pathe@2.0.3:
resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
@@ -741,9 +1457,16 @@ packages:
resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==}
engines: {node: '>= 14.16'}
+ piccolore@0.1.3:
+ resolution: {integrity: sha512-o8bTeDWjE086iwKrROaDf31K0qC/BENdm15/uH9usSC/uZjJOKb2YGiVHfLY4GhwsERiPI1jmwI2XrA7ACOxVw==}
+
picocolors@1.1.1:
resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
+ picomatch@2.3.2:
+ resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==}
+ engines: {node: '>=8.6'}
+
picomatch@4.0.7:
resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}
engines: {node: '>=12'}
@@ -756,6 +1479,20 @@ packages:
resolution: {integrity: sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==}
engines: {node: ^10 || ^12 || >=14}
+ prismjs@1.30.0:
+ resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==}
+ engines: {node: '>=6'}
+
+ process-ancestry@0.1.0:
+ resolution: {integrity: sha512-tGqJW/UnclpYASFcM6Xh8D8l/BMtaQ9+CSG0vlJSJTcdMM4lDRv4c6H0Pdcsfted+bVczdYSfk2fdukg2gQkZg==}
+ engines: {node: '>=18.0.0'}
+
+ property-information@7.2.0:
+ resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==}
+
+ radix3@1.1.2:
+ resolution: {integrity: sha512-b484I/7b8rDEdSDKckSSBA8knMpcdsXudlE/LNL639wFoHKwLbEkQFZHWEYwDC0wa0FKUcCY+GAF73Z7wxNVFA==}
+
react-dom@19.3.0:
resolution: {integrity: sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==}
peerDependencies:
@@ -765,9 +1502,30 @@ packages:
resolution: {integrity: sha512-E8LUcbtBWt20bbl2YoHfx4ZDBdxVTfOKtCZn9cDSJ4l6/nuoApcpIBcj47t2wZoVX8g2ZHuMHbiShgCR1T5Sog==}
engines: {node: '>=0.10.0'}
+ readdirp@5.1.1:
+ resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==}
+ engines: {node: '>= 20.19.0'}
+
+ regex-recursion@6.0.2:
+ resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==}
+
+ regex-utilities@2.3.0:
+ resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==}
+
+ regex@6.1.0:
+ resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==}
+
resolve-pkg-maps@1.0.0:
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
+ retext-smartypants@6.2.0:
+ resolution: {integrity: sha512-kk0jOU7+zGv//kfjXEBjdIryL1Acl4i9XNkHxtM7Tm5lFiCog576fjNC9hjoR7LTKQ0DsPWy09JummSsH1uqfQ==}
+
+ rolldown@1.2.11:
+ resolution: {integrity: sha512-qpSwIyz0jHQq5qXBTNxFmE6664rJ7O+4TvPFOiOaBSrz8IOHc1koKKSqTM2H6u1UG1+TveuC6vaDHKXFOvb1Kw==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ hasBin: true
+
rollup-plugin-esbuild@6.2.1:
resolution: {integrity: sha512-jTNOMGoMRhs0JuueJrJqbW8tOwxumaWYq+V5i+PD+8ecSCVkuX27tGW7BXqDgoULQ55rO7IdNxPcnsWtshz3AA==}
engines: {node: '>=14.18.0'}
@@ -780,6 +1538,13 @@ packages:
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true
+ satteri@0.10.5:
+ resolution: {integrity: sha512-Ao1LKpAEa9Wdg0otgbVKViZHEq9ebdXe4DMrp3s9vQAU0HNIuHnFEuMuOcm0ZIXyV0Yzxj91NvhLpvXZJO/5ZQ==}
+
+ sax@1.6.1:
+ resolution: {integrity: sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==}
+ engines: {node: '>=11.0.0'}
+
scheduler@0.28.0:
resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==}
@@ -797,19 +1562,36 @@ packages:
'@types/node':
optional: true
+ shiki@4.4.3:
+ resolution: {integrity: sha512-Mb/GvXPHBAXdgGIcnfU5L3ldpn1XcxrGkPHwqgRx17/I2XRfqlFKk2vGkHWINn1kdXvzJZeuO3is6I9KLPFm0g==}
+ engines: {node: '>=20'}
+
siginfo@2.0.0:
resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==}
+ sisteransi@1.0.5:
+ resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
+
+ smol-toml@1.9.0:
+ resolution: {integrity: sha512-hpd+HLON7HdZXqYchMM/+LaTTbdK0AU3NngIJ4KVyWbY9bfQqdL9cD+4yf6dUoU2Ap4VsU0JkQi6FxAI1B2mXQ==}
+ engines: {node: '>= 18'}
+
source-map-js@1.2.1:
resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
engines: {node: '>=0.10.0'}
+ space-separated-tokens@2.0.2:
+ resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}
+
stackback@0.0.2:
resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==}
std-env@3.10.0:
resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==}
+ stringify-entities@4.0.4:
+ resolution: {integrity: sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==}
+
strip-literal@3.1.0:
resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==}
@@ -826,12 +1608,28 @@ packages:
babel-plugin-macros:
optional: true
+ svgo@4.1.0:
+ resolution: {integrity: sha512-bkxnTg1kSU0guhIBmibA6UUhrQmPVA1XsQLN+ylCd+UWzbnLkySOcXpyk1mrl05f+pcaCx2eHb+sp6BgMZWX+Q==}
+ engines: {node: '>=16'}
+ hasBin: true
+
+ tiny-inflate@1.0.3:
+ resolution: {integrity: sha512-pkY1fj1cKHb2seWDy0B16HeWyczlJA9/WW3u3c4z/NiWDsO3DOU5D7nhTLE9CF0yXv/QZFY7sEJmj24dK+Rrqw==}
+
tinybench@2.9.0:
resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
+ tinyclip@1.0.3:
+ resolution: {integrity: sha512-nTv2raKFMzGG6JJp0lpNDsRPdfFE6UHlu2rVEjXo8vkx1ZS3LW2CVXqIaLu8xZlu+6tbFs9V58Qc/Jmk/Ii7wA==}
+ engines: {node: ^16.14.0 || >= 17.3.0}
+
tinyexec@0.3.2:
resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}
+ tinyexec@1.3.1:
+ resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==}
+ engines: {node: '>=18'}
+
tinyglobby@0.2.17:
resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==}
engines: {node: '>=12.0.0'}
@@ -848,6 +1646,12 @@ packages:
resolution: {integrity: sha512-u8KszXvGfU68hVcZpRHKG28T0krMuv2G5nDhiHaMLen/gIuFEgIJhaJuO69qjnXg5paSrbPMFfx3brNuN8eVSg==}
engines: {node: '>=14.0.0'}
+ trim-lines@3.0.1:
+ resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}
+
+ trough@2.2.0:
+ resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}
+
tslib@2.8.1:
resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
@@ -856,13 +1660,119 @@ packages:
engines: {node: '>=14.17'}
hasBin: true
+ ufo@1.6.4:
+ resolution: {integrity: sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==}
+
+ ultrahtml@1.7.0:
+ resolution: {integrity: sha512-2xRd0VHoAQE4M+vF/DvFFB7pUV0ZxTW1TLi7lHQWnF/Sb5TPeEUV/l+hxcNnGO00ZXGnR0voCMmYRKQf+rvJ2g==}
+
+ uncrypto@0.1.3:
+ resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==}
+
undici-types@6.21.0:
resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
+ undici@8.11.2:
+ resolution: {integrity: sha512-u4UB2/IrKdU6lFxumHmmo1a3fCQO5tzQllRorfoRS63txhrB7xTpSn1PftwC4qEHkOaqP95fCWW4lJzwErwzhQ==}
+ engines: {node: '>=22.19.0'}
+
+ unified@11.0.5:
+ resolution: {integrity: sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==}
+
+ unifont@0.7.5:
+ resolution: {integrity: sha512-ULe/Cs+ZIsq+dcFofNkhqielCrUJnb5mr+Yc4EBM2VlL+6OZR6+cjtI2mT1bJvRBrVncqHAbLURxmPLcCXzWMg==}
+
+ unist-util-is@6.0.1:
+ resolution: {integrity: sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==}
+
+ unist-util-position@5.0.0:
+ resolution: {integrity: sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==}
+
+ unist-util-stringify-position@4.0.0:
+ resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==}
+
+ unist-util-visit-parents@6.0.2:
+ resolution: {integrity: sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==}
+
+ unist-util-visit@5.1.0:
+ resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==}
+
unplugin-utils@0.2.5:
resolution: {integrity: sha512-gwXJnPRewT4rT7sBi/IvxKTjsms7jX7QIDLOClApuZwR49SXbrB1z2NLUZ+vDHyqCj/n58OzRRqaW+B8OZi8vg==}
engines: {node: '>=18.12.0'}
+ unstorage@1.17.5:
+ resolution: {integrity: sha512-0i3iqvRfx29hkNntHyQvJTpf5W9dQ9ZadSoRU8+xVlhVtT7jAX57fazYO9EHvcRCfBCyi5YRya7XCDOsbTgkPg==}
+ peerDependencies:
+ '@azure/app-configuration': ^1.8.0
+ '@azure/cosmos': ^4.2.0
+ '@azure/data-tables': ^13.3.0
+ '@azure/identity': ^4.6.0
+ '@azure/keyvault-secrets': ^4.9.0
+ '@azure/storage-blob': ^12.26.0
+ '@capacitor/preferences': ^6 || ^7 || ^8
+ '@deno/kv': '>=0.9.0'
+ '@netlify/blobs': ^6.5.0 || ^7.0.0 || ^8.1.0 || ^9.0.0 || ^10.0.0
+ '@planetscale/database': ^1.19.0
+ '@upstash/redis': ^1.34.3
+ '@vercel/blob': '>=0.27.1'
+ '@vercel/functions': ^2.2.12 || ^3.0.0
+ '@vercel/kv': ^1 || ^2 || ^3
+ aws4fetch: ^1.0.20
+ db0: '>=0.2.1'
+ idb-keyval: ^6.2.1
+ ioredis: ^5.4.2
+ uploadthing: ^7.4.4
+ peerDependenciesMeta:
+ '@azure/app-configuration':
+ optional: true
+ '@azure/cosmos':
+ optional: true
+ '@azure/data-tables':
+ optional: true
+ '@azure/identity':
+ optional: true
+ '@azure/keyvault-secrets':
+ optional: true
+ '@azure/storage-blob':
+ optional: true
+ '@capacitor/preferences':
+ optional: true
+ '@deno/kv':
+ optional: true
+ '@netlify/blobs':
+ optional: true
+ '@planetscale/database':
+ optional: true
+ '@upstash/redis':
+ optional: true
+ '@vercel/blob':
+ optional: true
+ '@vercel/functions':
+ optional: true
+ '@vercel/kv':
+ optional: true
+ aws4fetch:
+ optional: true
+ db0:
+ optional: true
+ idb-keyval:
+ optional: true
+ ioredis:
+ optional: true
+ uploadthing:
+ optional: true
+
+ verkit@0.4.1:
+ resolution: {integrity: sha512-mMVzj0TXExtVdlDEq+Mzp0eyOuyznNpFobNM3uAqe3HVm/Ps2c+u17BligMkZjZCA6EiXpoon8iRTer3iu40SQ==}
+ engines: {node: '>=18.12.0'}
+
+ vfile-message@4.0.3:
+ resolution: {integrity: sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==}
+
+ vfile@6.0.3:
+ resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==}
+
vite-node@3.2.4:
resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==}
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
@@ -908,6 +1818,57 @@ packages:
yaml:
optional: true
+ vite@8.3.1:
+ resolution: {integrity: sha512-/bvH9E9tmCXRGp2uXY3WbOldqpTwFkbha/8ANaEQ6VkxhH60KyqLwgZq6lG2y+4uT55x9+9eUHMpQ7uGnOCKjA==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ hasBin: true
+ peerDependencies:
+ '@types/node': ^20.19.0 || >=22.12.0
+ '@vitejs/devtools': ^0.7.1
+ esbuild: ^0.27.0 || ^0.28.0
+ jiti: '>=1.21.0'
+ less: ^4.0.0
+ sass: ^1.70.0
+ sass-embedded: ^1.70.0
+ stylus: '>=0.54.8'
+ sugarss: ^5.0.0
+ terser: ^5.16.0
+ tsx: ^4.8.1
+ yaml: ^2.4.2
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ '@vitejs/devtools':
+ optional: true
+ esbuild:
+ optional: true
+ jiti:
+ optional: true
+ less:
+ optional: true
+ sass:
+ optional: true
+ sass-embedded:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
+ tsx:
+ optional: true
+ yaml:
+ optional: true
+
+ vitefu@1.1.3:
+ resolution: {integrity: sha512-ub4okH7Z5KLjb6hDyjqrGXqWtWvoYdU3IGm/NorpgHncKoLTCfRIbvlhBm7r0YstIaQRYlp4yEbFqDcKSzXSSg==}
+ peerDependencies:
+ vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0
+ peerDependenciesMeta:
+ vite:
+ optional: true
+
vitest@3.2.7:
resolution: {integrity: sha512-KrxIJ62Fd89gfysR4WotlgZABiz2dqFPgqGzX7s+CwsqLFomRH7777ZcrOD6+WVAh7khPQP41A+BKbpcJFrdEg==}
engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
@@ -941,8 +1902,118 @@ packages:
engines: {node: '>=8'}
hasBin: true
+ xxhash-wasm@1.1.0:
+ resolution: {integrity: sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA==}
+
+ yargs-parser@22.0.0:
+ resolution: {integrity: sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==}
+ engines: {node: ^20.19.0 || ^22.12.0 || >=23}
+
+ yocto-queue@1.2.2:
+ resolution: {integrity: sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==}
+ engines: {node: '>=12.20'}
+
+ zod@4.6.5:
+ resolution: {integrity: sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==}
+
+ zwitch@2.0.4:
+ resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}
+
snapshots:
+ '@astrojs/compiler-binding-android-arm64@0.5.1':
+ optional: true
+
+ '@astrojs/compiler-binding-darwin-arm64@0.5.1':
+ optional: true
+
+ '@astrojs/compiler-binding-darwin-x64@0.5.1':
+ optional: true
+
+ '@astrojs/compiler-binding-linux-arm64-gnu@0.5.1':
+ optional: true
+
+ '@astrojs/compiler-binding-linux-arm64-musl@0.5.1':
+ optional: true
+
+ '@astrojs/compiler-binding-linux-x64-gnu@0.5.1':
+ optional: true
+
+ '@astrojs/compiler-binding-linux-x64-musl@0.5.1':
+ optional: true
+
+ '@astrojs/compiler-binding-wasm32-wasi@0.5.1':
+ dependencies:
+ '@emnapi/core': 1.11.3
+ '@emnapi/runtime': 1.11.3
+ '@napi-rs/wasm-runtime': 1.2.4(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)
+ optional: true
+
+ '@astrojs/compiler-binding-win32-arm64-msvc@0.5.1':
+ optional: true
+
+ '@astrojs/compiler-binding-win32-x64-msvc@0.5.1':
+ optional: true
+
+ '@astrojs/compiler-binding@0.5.1':
+ optionalDependencies:
+ '@astrojs/compiler-binding-android-arm64': 0.5.1
+ '@astrojs/compiler-binding-darwin-arm64': 0.5.1
+ '@astrojs/compiler-binding-darwin-x64': 0.5.1
+ '@astrojs/compiler-binding-linux-arm64-gnu': 0.5.1
+ '@astrojs/compiler-binding-linux-arm64-musl': 0.5.1
+ '@astrojs/compiler-binding-linux-x64-gnu': 0.5.1
+ '@astrojs/compiler-binding-linux-x64-musl': 0.5.1
+ '@astrojs/compiler-binding-wasm32-wasi': 0.5.1
+ '@astrojs/compiler-binding-win32-arm64-msvc': 0.5.1
+ '@astrojs/compiler-binding-win32-x64-msvc': 0.5.1
+
+ '@astrojs/compiler-rs@0.5.1':
+ dependencies:
+ '@astrojs/compiler-binding': 0.5.1
+
+ '@astrojs/internal-helpers@0.11.0':
+ dependencies:
+ '@types/hast': 3.0.5
+ '@types/mdast': 4.0.4
+ js-yaml: 4.3.2
+ picomatch: 4.0.7
+ retext-smartypants: 6.2.0
+ shiki: 4.4.3
+ smol-toml: 1.9.0
+ unified: 11.0.5
+
+ '@astrojs/markdown-satteri@0.4.2':
+ dependencies:
+ '@astrojs/internal-helpers': 0.11.0
+ '@astrojs/prism': 4.0.2
+ github-slugger: 2.0.0
+ satteri: 0.10.5
+
+ '@astrojs/prism@4.0.2':
+ dependencies:
+ prismjs: 1.30.0
+
+ '@astrojs/telemetry@3.3.3':
+ dependencies:
+ ci-info: 4.4.0
+ dset: 3.1.4
+ is-docker: 4.0.0
+ package-manager-detector: 1.8.0
+
+ '@babel/helper-string-parser@7.29.7': {}
+
+ '@babel/helper-validator-identifier@7.29.7': {}
+
+ '@babel/parser@7.29.9':
+ dependencies:
+ '@babel/types': 7.29.8
+
+ '@babel/types@7.29.8':
+ dependencies:
+ '@babel/helper-string-parser': 7.29.7
+ '@babel/helper-validator-identifier': 7.29.7
+
'@biomejs/biome@2.5.12':
optionalDependencies:
'@biomejs/cli-darwin-arm64': 2.5.12
@@ -978,11 +2049,85 @@ snapshots:
'@biomejs/cli-win32-x64@2.5.12':
optional: true
+ '@bruits/satteri-darwin-arm64@0.10.5':
+ optional: true
+
+ '@bruits/satteri-darwin-x64@0.10.5':
+ optional: true
+
+ '@bruits/satteri-linux-arm64-gnu@0.10.5':
+ optional: true
+
+ '@bruits/satteri-linux-arm64-musl@0.10.5':
+ optional: true
+
+ '@bruits/satteri-linux-x64-gnu@0.10.5':
+ optional: true
+
+ '@bruits/satteri-linux-x64-musl@0.10.5':
+ optional: true
+
+ '@bruits/satteri-wasm32-wasi@0.10.5':
+ dependencies:
+ '@emnapi/core': 1.11.1
+ '@emnapi/runtime': 1.11.1
+ '@napi-rs/wasm-runtime': 1.2.4(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)
+ optional: true
+
+ '@bruits/satteri-win32-arm64-msvc@0.10.5':
+ optional: true
+
+ '@bruits/satteri-win32-x64-msvc@0.10.5':
+ optional: true
+
+ '@capsizecss/unpack@4.0.1':
+ dependencies:
+ fontkitten: 1.0.3
+
+ '@clack/core@1.5.1':
+ dependencies:
+ fast-wrap-ansi: 0.2.2
+ sisteransi: 1.0.5
+
+ '@clack/prompts@1.8.1':
+ dependencies:
+ '@clack/core': 1.5.1
+ fast-string-width: 3.0.2
+ fast-wrap-ansi: 0.2.2
+ sisteransi: 1.0.5
+
+ '@emnapi/core@1.11.1':
+ dependencies:
+ '@emnapi/wasi-threads': 1.2.2
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/core@1.11.3':
+ dependencies:
+ '@emnapi/wasi-threads': 1.2.3
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/runtime@1.11.1':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
'@emnapi/runtime@1.11.3':
dependencies:
tslib: 2.8.1
optional: true
+ '@emnapi/wasi-threads@1.2.2':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/wasi-threads@1.2.3':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
'@esbuild/aix-ppc64@0.28.2':
optional: true
@@ -1173,6 +2318,20 @@ snapshots:
'@napi-rs/lzma-linux-x64-gnu@1.5.1':
optional: true
+ '@napi-rs/wasm-runtime@1.2.4(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.1)':
+ dependencies:
+ '@emnapi/core': 1.11.1
+ '@emnapi/runtime': 1.11.1
+ '@tybys/wasm-util': 0.10.4
+ optional: true
+
+ '@napi-rs/wasm-runtime@1.2.4(@emnapi/core@1.11.3)(@emnapi/runtime@1.11.3)':
+ dependencies:
+ '@emnapi/core': 1.11.3
+ '@emnapi/runtime': 1.11.3
+ '@tybys/wasm-util': 0.10.4
+ optional: true
+
'@next/env@16.3.5': {}
'@next/swc-darwin-arm64@16.3.5':
@@ -1199,6 +2358,57 @@ snapshots:
'@next/swc-win32-x64-msvc@16.3.5':
optional: true
+ '@oslojs/encoding@1.1.0': {}
+
+ '@oxc-project/types@0.151.0': {}
+
+ '@rolldown/binding-android-arm-eabi@1.2.11':
+ optional: true
+
+ '@rolldown/binding-android-arm64@1.2.11':
+ optional: true
+
+ '@rolldown/binding-darwin-arm64@1.2.11':
+ optional: true
+
+ '@rolldown/binding-darwin-x64@1.2.11':
+ optional: true
+
+ '@rolldown/binding-freebsd-x64@1.2.11':
+ optional: true
+
+ '@rolldown/binding-linux-arm-gnueabihf@1.2.11':
+ optional: true
+
+ '@rolldown/binding-linux-arm64-gnu@1.2.11':
+ optional: true
+
+ '@rolldown/binding-linux-arm64-musl@1.2.11':
+ optional: true
+
+ '@rolldown/binding-linux-ppc64-gnu@1.2.11':
+ optional: true
+
+ '@rolldown/binding-linux-s390x-gnu@1.2.11':
+ optional: true
+
+ '@rolldown/binding-linux-x64-gnu@1.2.11':
+ optional: true
+
+ '@rolldown/binding-linux-x64-musl@1.2.11':
+ optional: true
+
+ '@rolldown/binding-openharmony-arm64@1.2.11':
+ optional: true
+
+ '@rolldown/binding-win32-arm64-msvc@1.2.11':
+ optional: true
+
+ '@rolldown/binding-win32-x64-msvc@1.2.11':
+ optional: true
+
+ '@rolldown/pluginutils@1.0.1': {}
+
'@rollup/rollup-android-arm-eabi@4.63.3':
optional: true
@@ -1274,9 +2484,54 @@ snapshots:
'@rollup/rollup-win32-x64-msvc@4.63.3':
optional: true
- '@swc/helpers@0.5.23':
+ '@shikijs/core@4.4.3':
+ dependencies:
+ '@shikijs/primitive': 4.4.3
+ '@shikijs/types': 4.4.3
+ '@shikijs/vscode-textmate': 10.0.2
+ '@types/hast': 3.0.5
+ hast-util-to-html: 9.0.5
+
+ '@shikijs/engine-javascript@4.4.3':
+ dependencies:
+ '@shikijs/types': 4.4.3
+ '@shikijs/vscode-textmate': 10.0.2
+ oniguruma-to-es: 4.3.6
+
+ '@shikijs/engine-oniguruma@4.4.3':
+ dependencies:
+ '@shikijs/types': 4.4.3
+ '@shikijs/vscode-textmate': 10.0.2
+
+ '@shikijs/langs@4.4.3':
+ dependencies:
+ '@shikijs/types': 4.4.3
+
+ '@shikijs/primitive@4.4.3':
+ dependencies:
+ '@shikijs/types': 4.4.3
+ '@shikijs/vscode-textmate': 10.0.2
+ '@types/hast': 3.0.5
+
+ '@shikijs/themes@4.4.3':
+ dependencies:
+ '@shikijs/types': 4.4.3
+
+ '@shikijs/types@4.4.3':
+ dependencies:
+ '@shikijs/vscode-textmate': 10.0.2
+ '@types/hast': 3.0.5
+
+ '@shikijs/vscode-textmate@10.0.2': {}
+
+ '@swc/helpers@0.5.23':
+ dependencies:
+ tslib: 2.8.1
+
+ '@tybys/wasm-util@0.10.4':
dependencies:
tslib: 2.8.1
+ optional: true
'@types/chai@5.2.3':
dependencies:
@@ -1285,12 +2540,36 @@ snapshots:
'@types/deep-eql@4.0.2': {}
+ '@types/estree-jsx@1.0.5':
+ dependencies:
+ '@types/estree': 1.0.9
+
'@types/estree@1.0.9': {}
+ '@types/hast@3.0.5':
+ dependencies:
+ '@types/unist': 3.0.3
+
+ '@types/mdast@4.0.4':
+ dependencies:
+ '@types/unist': 3.0.3
+
+ '@types/nlcst@2.0.3':
+ dependencies:
+ '@types/unist': 3.0.3
+
'@types/node@22.15.3':
dependencies:
undici-types: 6.21.0
+ '@types/react@19.3.0':
+ dependencies:
+ csstype: 3.2.3
+
+ '@types/unist@3.0.3': {}
+
+ '@ungap/structured-clone@1.4.0': {}
+
'@vitest/expect@3.2.7':
dependencies:
'@types/chai': 5.2.3
@@ -1299,13 +2578,13 @@ snapshots:
chai: 5.3.3
tinyrainbow: 2.0.0
- '@vitest/mocker@3.2.7(vite@7.3.6(@types/node@22.15.3))':
+ '@vitest/mocker@3.2.7(vite@7.3.6(@types/node@22.15.3)(lightningcss@1.33.0))':
dependencies:
'@vitest/spy': 3.2.7
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
- vite: 7.3.6(@types/node@22.15.3)
+ vite: 7.3.6(@types/node@22.15.3)(lightningcss@1.33.0)
'@vitest/pretty-format@3.2.7':
dependencies:
@@ -1333,14 +2612,124 @@ snapshots:
loupe: 3.2.1
tinyrainbow: 2.0.0
+ am-i-vibing@0.4.0:
+ dependencies:
+ process-ancestry: 0.1.0
+
+ anymatch@3.1.3:
+ dependencies:
+ normalize-path: 3.0.0
+ picomatch: 2.3.2
+
+ argparse@2.0.1: {}
+
+ aria-query@5.3.2: {}
+
assertion-error@2.0.1: {}
+ astro@7.3.5(@types/node@22.15.3):
+ dependencies:
+ '@astrojs/compiler-rs': 0.5.1
+ '@astrojs/internal-helpers': 0.11.0
+ '@astrojs/markdown-satteri': 0.4.2
+ '@astrojs/telemetry': 3.3.3
+ '@capsizecss/unpack': 4.0.1
+ '@clack/prompts': 1.8.1
+ '@oslojs/encoding': 1.1.0
+ am-i-vibing: 0.4.0
+ aria-query: 5.3.2
+ axobject-query: 4.1.0
+ ci-info: 4.4.0
+ clsx: 2.1.1
+ common-ancestor-path: 2.0.0
+ cookie: 2.0.1
+ devalue: 5.9.4
+ diff: 9.0.0
+ dset: 3.1.4
+ es-module-lexer: 2.3.2
+ esbuild: 0.28.2
+ find-proc: 0.2.0
+ flattie: 1.1.1
+ fontace: 0.4.1
+ get-tsconfig: 5.0.0-beta.4
+ github-slugger: 2.0.0
+ html-escaper: 3.0.3
+ http-cache-semantics: 4.2.0
+ js-yaml: 4.3.2
+ jsonc-parser: 3.3.1
+ magic-string: 1.4.2
+ magicast: 0.5.5
+ mrmime: 2.0.1
+ neotraverse: 1.0.1
+ obug: 3.0.0
+ p-limit: 7.3.3
+ p-queue: 9.3.3
+ package-manager-detector: 1.8.0
+ piccolore: 0.1.3
+ picomatch: 4.0.7
+ shiki: 4.4.3
+ smol-toml: 1.9.0
+ svgo: 4.1.0
+ tinyclip: 1.0.3
+ tinyexec: 1.3.1
+ tinyglobby: 0.2.17
+ ultrahtml: 1.7.0
+ unifont: 0.7.5
+ unstorage: 1.17.5
+ verkit: 0.4.1
+ vite: 8.3.1(@types/node@22.15.3)(esbuild@0.28.2)
+ vitefu: 1.1.3(vite@8.3.1(@types/node@22.15.3)(esbuild@0.28.2))
+ xxhash-wasm: 1.1.0
+ yargs-parser: 22.0.0
+ zod: 4.6.5
+ optionalDependencies:
+ sharp: 0.35.4(@types/node@22.15.3)
+ transitivePeerDependencies:
+ - '@azure/app-configuration'
+ - '@azure/cosmos'
+ - '@azure/data-tables'
+ - '@azure/identity'
+ - '@azure/keyvault-secrets'
+ - '@azure/storage-blob'
+ - '@capacitor/preferences'
+ - '@deno/kv'
+ - '@netlify/blobs'
+ - '@planetscale/database'
+ - '@types/node'
+ - '@upstash/redis'
+ - '@vercel/blob'
+ - '@vercel/functions'
+ - '@vercel/kv'
+ - '@vitejs/devtools'
+ - aws4fetch
+ - db0
+ - idb-keyval
+ - ioredis
+ - jiti
+ - less
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - terser
+ - tsx
+ - uploadthing
+ - yaml
+
+ axobject-query@4.1.0: {}
+
+ bail@2.0.2: {}
+
baseline-browser-mapping@2.11.25: {}
+ boolbase@1.0.0: {}
+
cac@6.7.14: {}
caniuse-lite@1.0.30001810: {}
+ ccount@2.0.1: {}
+
chai@5.3.3:
dependencies:
assertion-error: 2.0.1
@@ -1349,21 +2738,110 @@ snapshots:
loupe: 3.2.1
pathval: 2.0.1
+ character-entities-html4@2.1.0: {}
+
+ character-entities-legacy@3.0.0: {}
+
check-error@2.1.3: {}
+ chokidar@5.0.0:
+ dependencies:
+ readdirp: 5.1.1
+
+ ci-info@4.4.0: {}
+
client-only@0.0.1: {}
+ clsx@2.1.1: {}
+
+ comma-separated-tokens@2.0.3: {}
+
+ commander@11.1.0: {}
+
+ common-ancestor-path@2.0.0: {}
+
+ cookie-es@1.2.3: {}
+
+ cookie@2.0.1: {}
+
+ crossws@0.3.5:
+ dependencies:
+ uncrypto: 0.1.3
+
+ css-select@6.0.0:
+ dependencies:
+ boolbase: 1.0.0
+ css-what: 7.0.0
+ domhandler: 5.0.3
+ domutils: 3.2.2
+ nth-check: 2.1.1
+
+ css-tree@2.2.1:
+ dependencies:
+ mdn-data: 2.0.28
+ source-map-js: 1.2.1
+
+ css-tree@3.2.1:
+ dependencies:
+ mdn-data: 2.27.1
+ source-map-js: 1.2.1
+
+ css-what@7.0.0: {}
+
+ csso@5.0.5:
+ dependencies:
+ css-tree: 2.2.1
+
+ csstype@3.2.3: {}
+
debug@4.4.3:
dependencies:
ms: 2.1.3
deep-eql@5.0.2: {}
- detect-libc@2.1.2:
- optional: true
+ defu@6.1.7: {}
+
+ dequal@2.0.3: {}
+
+ destr@2.0.5: {}
+
+ detect-libc@2.1.2: {}
+
+ devalue@5.9.4: {}
+
+ devlop@1.1.0:
+ dependencies:
+ dequal: 2.0.3
+
+ diff@9.0.0: {}
+
+ dom-serializer@2.0.0:
+ dependencies:
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+ entities: 4.5.0
+
+ domelementtype@2.3.0: {}
+
+ domhandler@5.0.3:
+ dependencies:
+ domelementtype: 2.3.0
+
+ domutils@3.2.2:
+ dependencies:
+ dom-serializer: 2.0.0
+ domelementtype: 2.3.0
+ domhandler: 5.0.3
+
+ dset@3.1.4: {}
+
+ entities@4.5.0: {}
es-module-lexer@1.7.0: {}
+ es-module-lexer@2.3.2: {}
+
esbuild@0.28.2:
optionalDependencies:
'@esbuild/aix-ppc64': 0.28.2
@@ -1397,12 +2875,38 @@ snapshots:
dependencies:
'@types/estree': 1.0.9
+ eventemitter3@5.0.4: {}
+
expect-type@1.4.0: {}
+ extend@3.0.2: {}
+
+ fast-string-truncated-width@3.0.3: {}
+
+ fast-string-width@3.0.2:
+ dependencies:
+ fast-string-truncated-width: 3.0.3
+
+ fast-wrap-ansi@0.2.2:
+ dependencies:
+ fast-string-width: 3.0.2
+
fdir@6.5.0(picomatch@4.0.7):
optionalDependencies:
picomatch: 4.0.7
+ find-proc@0.2.0: {}
+
+ flattie@1.1.1: {}
+
+ fontace@0.4.1:
+ dependencies:
+ fontkitten: 1.0.3
+
+ fontkitten@1.0.3:
+ dependencies:
+ tiny-inflate: 1.0.3
+
fsevents@2.3.3:
optional: true
@@ -1410,18 +2914,170 @@ snapshots:
dependencies:
resolve-pkg-maps: 1.0.0
+ get-tsconfig@5.0.0-beta.4:
+ dependencies:
+ resolve-pkg-maps: 1.0.0
+
+ github-slugger@2.0.0: {}
+
+ h3@1.15.11:
+ dependencies:
+ cookie-es: 1.2.3
+ crossws: 0.3.5
+ defu: 6.1.7
+ destr: 2.0.5
+ iron-webcrypto: 1.2.1
+ node-mock-http: 1.0.5
+ radix3: 1.1.2
+ ufo: 1.6.4
+ uncrypto: 0.1.3
+
+ hast-util-to-html@9.0.5:
+ dependencies:
+ '@types/hast': 3.0.5
+ '@types/unist': 3.0.3
+ ccount: 2.0.1
+ comma-separated-tokens: 2.0.3
+ hast-util-whitespace: 3.0.0
+ html-void-elements: 3.0.0
+ mdast-util-to-hast: 13.2.1
+ property-information: 7.2.0
+ space-separated-tokens: 2.0.2
+ stringify-entities: 4.0.4
+ zwitch: 2.0.4
+
+ hast-util-whitespace@3.0.0:
+ dependencies:
+ '@types/hast': 3.0.5
+
+ html-escaper@3.0.3: {}
+
+ html-void-elements@3.0.0: {}
+
+ http-cache-semantics@4.2.0: {}
+
+ iron-webcrypto@1.2.1: {}
+
+ is-docker@4.0.0: {}
+
+ is-plain-obj@4.1.0: {}
+
js-tokens@9.0.1: {}
+ js-yaml@4.3.2:
+ dependencies:
+ argparse: 2.0.1
+
+ jsonc-parser@3.3.1: {}
+
+ lightningcss-android-arm64@1.33.0:
+ optional: true
+
+ lightningcss-darwin-arm64@1.33.0:
+ optional: true
+
+ lightningcss-darwin-x64@1.33.0:
+ optional: true
+
+ lightningcss-freebsd-x64@1.33.0:
+ optional: true
+
+ lightningcss-linux-arm-gnueabihf@1.33.0:
+ optional: true
+
+ lightningcss-linux-arm64-gnu@1.33.0:
+ optional: true
+
+ lightningcss-linux-arm64-musl@1.33.0:
+ optional: true
+
+ lightningcss-linux-x64-gnu@1.33.0:
+ optional: true
+
+ lightningcss-linux-x64-musl@1.33.0:
+ optional: true
+
+ lightningcss-win32-arm64-msvc@1.33.0:
+ optional: true
+
+ lightningcss-win32-x64-msvc@1.33.0:
+ optional: true
+
+ lightningcss@1.33.0:
+ dependencies:
+ detect-libc: 2.1.2
+ optionalDependencies:
+ lightningcss-android-arm64: 1.33.0
+ lightningcss-darwin-arm64: 1.33.0
+ lightningcss-darwin-x64: 1.33.0
+ lightningcss-freebsd-x64: 1.33.0
+ lightningcss-linux-arm-gnueabihf: 1.33.0
+ lightningcss-linux-arm64-gnu: 1.33.0
+ lightningcss-linux-arm64-musl: 1.33.0
+ lightningcss-linux-x64-gnu: 1.33.0
+ lightningcss-linux-x64-musl: 1.33.0
+ lightningcss-win32-arm64-msvc: 1.33.0
+ lightningcss-win32-x64-msvc: 1.33.0
+
loupe@3.2.1: {}
+ lru-cache@11.5.3: {}
+
magic-string@0.30.21:
dependencies:
'@jridgewell/sourcemap-codec': 1.6.0
+ magic-string@1.4.2:
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.6.0
+
+ magicast@0.5.5:
+ dependencies:
+ '@babel/parser': 7.29.9
+ '@babel/types': 7.29.8
+ source-map-js: 1.2.1
+
+ mdast-util-to-hast@13.2.1:
+ dependencies:
+ '@types/hast': 3.0.5
+ '@types/mdast': 4.0.4
+ '@ungap/structured-clone': 1.4.0
+ devlop: 1.1.0
+ micromark-util-sanitize-uri: 2.0.1
+ trim-lines: 3.0.1
+ unist-util-position: 5.0.0
+ unist-util-visit: 5.1.0
+ vfile: 6.0.3
+
+ mdn-data@2.0.28: {}
+
+ mdn-data@2.27.1: {}
+
+ micromark-util-character@2.1.1:
+ dependencies:
+ micromark-util-symbol: 2.0.1
+ micromark-util-types: 2.0.3
+
+ micromark-util-encode@2.0.1: {}
+
+ micromark-util-sanitize-uri@2.0.1:
+ dependencies:
+ micromark-util-character: 2.1.1
+ micromark-util-encode: 2.0.1
+ micromark-util-symbol: 2.0.1
+
+ micromark-util-symbol@2.0.1: {}
+
+ micromark-util-types@2.0.3: {}
+
+ mrmime@2.0.1: {}
+
ms@2.1.3: {}
nanoid@3.3.19: {}
+ neotraverse@1.0.1: {}
+
next@16.3.5(@types/node@22.15.3)(react-dom@19.3.0(react@19.3.0))(react@19.3.0):
dependencies:
'@next/env': 16.3.5
@@ -1447,12 +3103,61 @@ snapshots:
- '@types/node'
- babel-plugin-macros
+ nlcst-to-string@4.0.0:
+ dependencies:
+ '@types/nlcst': 2.0.3
+
+ node-fetch-native@1.6.7: {}
+
+ node-mock-http@1.0.5: {}
+
+ normalize-path@3.0.0: {}
+
+ nth-check@2.1.1:
+ dependencies:
+ boolbase: 1.0.0
+
+ obug@3.0.0: {}
+
+ ofetch@1.5.1:
+ dependencies:
+ destr: 2.0.5
+ node-fetch-native: 1.6.7
+ ufo: 1.6.4
+
+ ohash@2.0.12: {}
+
+ oniguruma-parser@0.12.2: {}
+
+ oniguruma-to-es@4.3.6:
+ dependencies:
+ oniguruma-parser: 0.12.2
+ regex: 6.1.0
+ regex-recursion: 6.0.2
+
+ p-limit@7.3.3:
+ dependencies:
+ yocto-queue: 1.2.2
+
+ p-queue@9.3.3:
+ dependencies:
+ eventemitter3: 5.0.4
+ p-timeout: 7.0.2
+
+ p-timeout@7.0.2: {}
+
+ package-manager-detector@1.8.0: {}
+
pathe@2.0.3: {}
pathval@2.0.1: {}
+ piccolore@0.1.3: {}
+
picocolors@1.1.1: {}
+ picomatch@2.3.2: {}
+
picomatch@4.0.7: {}
postcss@8.5.23:
@@ -1467,6 +3172,14 @@ snapshots:
picocolors: 1.1.1
source-map-js: 1.2.1
+ prismjs@1.30.0: {}
+
+ process-ancestry@0.1.0: {}
+
+ property-information@7.2.0: {}
+
+ radix3@1.1.2: {}
+
react-dom@19.3.0(react@19.3.0):
dependencies:
react: 19.3.0
@@ -1474,8 +3187,47 @@ snapshots:
react@19.3.0: {}
+ readdirp@5.1.1: {}
+
+ regex-recursion@6.0.2:
+ dependencies:
+ regex-utilities: 2.3.0
+
+ regex-utilities@2.3.0: {}
+
+ regex@6.1.0:
+ dependencies:
+ regex-utilities: 2.3.0
+
resolve-pkg-maps@1.0.0: {}
+ retext-smartypants@6.2.0:
+ dependencies:
+ '@types/nlcst': 2.0.3
+ nlcst-to-string: 4.0.0
+ unist-util-visit: 5.1.0
+
+ rolldown@1.2.11:
+ dependencies:
+ '@oxc-project/types': 0.151.0
+ '@rolldown/pluginutils': 1.0.1
+ optionalDependencies:
+ '@rolldown/binding-android-arm-eabi': 1.2.11
+ '@rolldown/binding-android-arm64': 1.2.11
+ '@rolldown/binding-darwin-arm64': 1.2.11
+ '@rolldown/binding-darwin-x64': 1.2.11
+ '@rolldown/binding-freebsd-x64': 1.2.11
+ '@rolldown/binding-linux-arm-gnueabihf': 1.2.11
+ '@rolldown/binding-linux-arm64-gnu': 1.2.11
+ '@rolldown/binding-linux-arm64-musl': 1.2.11
+ '@rolldown/binding-linux-ppc64-gnu': 1.2.11
+ '@rolldown/binding-linux-s390x-gnu': 1.2.11
+ '@rolldown/binding-linux-x64-gnu': 1.2.11
+ '@rolldown/binding-linux-x64-musl': 1.2.11
+ '@rolldown/binding-openharmony-arm64': 1.2.11
+ '@rolldown/binding-win32-arm64-msvc': 1.2.11
+ '@rolldown/binding-win32-x64-msvc': 1.2.11
+
rollup-plugin-esbuild@6.2.1(esbuild@0.28.2)(rollup@4.63.3):
dependencies:
debug: 4.4.3
@@ -1519,6 +3271,25 @@ snapshots:
'@rollup/rollup-win32-x64-msvc': 4.63.3
fsevents: 2.3.3
+ satteri@0.10.5:
+ dependencies:
+ '@types/estree-jsx': 1.0.5
+ '@types/hast': 3.0.5
+ '@types/mdast': 4.0.4
+ '@types/unist': 3.0.3
+ optionalDependencies:
+ '@bruits/satteri-darwin-arm64': 0.10.5
+ '@bruits/satteri-darwin-x64': 0.10.5
+ '@bruits/satteri-linux-arm64-gnu': 0.10.5
+ '@bruits/satteri-linux-arm64-musl': 0.10.5
+ '@bruits/satteri-linux-x64-gnu': 0.10.5
+ '@bruits/satteri-linux-x64-musl': 0.10.5
+ '@bruits/satteri-wasm32-wasi': 0.10.5
+ '@bruits/satteri-win32-arm64-msvc': 0.10.5
+ '@bruits/satteri-win32-x64-msvc': 0.10.5
+
+ sax@1.6.1: {}
+
scheduler@0.28.0: {}
semver@7.8.5:
@@ -1558,14 +3329,36 @@ snapshots:
'@types/node': 22.15.3
optional: true
+ shiki@4.4.3:
+ dependencies:
+ '@shikijs/core': 4.4.3
+ '@shikijs/engine-javascript': 4.4.3
+ '@shikijs/engine-oniguruma': 4.4.3
+ '@shikijs/langs': 4.4.3
+ '@shikijs/themes': 4.4.3
+ '@shikijs/types': 4.4.3
+ '@shikijs/vscode-textmate': 10.0.2
+ '@types/hast': 3.0.5
+
siginfo@2.0.0: {}
+ sisteransi@1.0.5: {}
+
+ smol-toml@1.9.0: {}
+
source-map-js@1.2.1: {}
+ space-separated-tokens@2.0.2: {}
+
stackback@0.0.2: {}
std-env@3.10.0: {}
+ stringify-entities@4.0.4:
+ dependencies:
+ character-entities-html4: 2.1.0
+ character-entities-legacy: 3.0.0
+
strip-literal@3.1.0:
dependencies:
js-tokens: 9.0.1
@@ -1575,10 +3368,26 @@ snapshots:
client-only: 0.0.1
react: 19.3.0
+ svgo@4.1.0:
+ dependencies:
+ commander: 11.1.0
+ css-select: 6.0.0
+ css-tree: 3.2.1
+ css-what: 7.0.0
+ csso: 5.0.5
+ picocolors: 1.1.1
+ sax: 1.6.1
+
+ tiny-inflate@1.0.3: {}
+
tinybench@2.9.0: {}
+ tinyclip@1.0.3: {}
+
tinyexec@0.3.2: {}
+ tinyexec@1.3.1: {}
+
tinyglobby@0.2.17:
dependencies:
fdir: 6.5.0(picomatch@4.0.7)
@@ -1590,24 +3399,98 @@ snapshots:
tinyspy@4.0.6: {}
+ trim-lines@3.0.1: {}
+
+ trough@2.2.0: {}
+
tslib@2.8.1: {}
typescript@5.9.2: {}
+ ufo@1.6.4: {}
+
+ ultrahtml@1.7.0: {}
+
+ uncrypto@0.1.3: {}
+
undici-types@6.21.0: {}
+ undici@8.11.2: {}
+
+ unified@11.0.5:
+ dependencies:
+ '@types/unist': 3.0.3
+ bail: 2.0.2
+ devlop: 1.1.0
+ extend: 3.0.2
+ is-plain-obj: 4.1.0
+ trough: 2.2.0
+ vfile: 6.0.3
+
+ unifont@0.7.5:
+ dependencies:
+ css-tree: 3.2.1
+ ohash: 2.0.12
+ undici: 8.11.2
+
+ unist-util-is@6.0.1:
+ dependencies:
+ '@types/unist': 3.0.3
+
+ unist-util-position@5.0.0:
+ dependencies:
+ '@types/unist': 3.0.3
+
+ unist-util-stringify-position@4.0.0:
+ dependencies:
+ '@types/unist': 3.0.3
+
+ unist-util-visit-parents@6.0.2:
+ dependencies:
+ '@types/unist': 3.0.3
+ unist-util-is: 6.0.1
+
+ unist-util-visit@5.1.0:
+ dependencies:
+ '@types/unist': 3.0.3
+ unist-util-is: 6.0.1
+ unist-util-visit-parents: 6.0.2
+
unplugin-utils@0.2.5:
dependencies:
pathe: 2.0.3
picomatch: 4.0.7
- vite-node@3.2.4(@types/node@22.15.3):
+ unstorage@1.17.5:
+ dependencies:
+ anymatch: 3.1.3
+ chokidar: 5.0.0
+ destr: 2.0.5
+ h3: 1.15.11
+ lru-cache: 11.5.3
+ node-fetch-native: 1.6.7
+ ofetch: 1.5.1
+ ufo: 1.6.4
+
+ verkit@0.4.1: {}
+
+ vfile-message@4.0.3:
+ dependencies:
+ '@types/unist': 3.0.3
+ unist-util-stringify-position: 4.0.0
+
+ vfile@6.0.3:
+ dependencies:
+ '@types/unist': 3.0.3
+ vfile-message: 4.0.3
+
+ vite-node@3.2.4(@types/node@22.15.3)(lightningcss@1.33.0):
dependencies:
cac: 6.7.14
debug: 4.4.3
es-module-lexer: 1.7.0
pathe: 2.0.3
- vite: 7.3.6(@types/node@22.15.3)
+ vite: 7.3.6(@types/node@22.15.3)(lightningcss@1.33.0)
transitivePeerDependencies:
- '@types/node'
- jiti
@@ -1622,7 +3505,7 @@ snapshots:
- tsx
- yaml
- vite@7.3.6(@types/node@22.15.3):
+ vite@7.3.6(@types/node@22.15.3)(lightningcss@1.33.0):
dependencies:
esbuild: 0.28.2
fdir: 6.5.0(picomatch@4.0.7)
@@ -1633,12 +3516,29 @@ snapshots:
optionalDependencies:
'@types/node': 22.15.3
fsevents: 2.3.3
+ lightningcss: 1.33.0
- vitest@3.2.7(@types/node@22.15.3):
+ vite@8.3.1(@types/node@22.15.3)(esbuild@0.28.2):
+ dependencies:
+ lightningcss: 1.33.0
+ picomatch: 4.0.7
+ postcss: 8.5.28
+ rolldown: 1.2.11
+ tinyglobby: 0.2.17
+ optionalDependencies:
+ '@types/node': 22.15.3
+ esbuild: 0.28.2
+ fsevents: 2.3.3
+
+ vitefu@1.1.3(vite@8.3.1(@types/node@22.15.3)(esbuild@0.28.2)):
+ optionalDependencies:
+ vite: 8.3.1(@types/node@22.15.3)(esbuild@0.28.2)
+
+ vitest@3.2.7(@types/node@22.15.3)(lightningcss@1.33.0):
dependencies:
'@types/chai': 5.2.3
'@vitest/expect': 3.2.7
- '@vitest/mocker': 3.2.7(vite@7.3.6(@types/node@22.15.3))
+ '@vitest/mocker': 3.2.7(vite@7.3.6(@types/node@22.15.3)(lightningcss@1.33.0))
'@vitest/pretty-format': 3.2.7
'@vitest/runner': 3.2.7
'@vitest/snapshot': 3.2.7
@@ -1656,8 +3556,8 @@ snapshots:
tinyglobby: 0.2.17
tinypool: 1.1.1
tinyrainbow: 2.0.0
- vite: 7.3.6(@types/node@22.15.3)
- vite-node: 3.2.4(@types/node@22.15.3)
+ vite: 7.3.6(@types/node@22.15.3)(lightningcss@1.33.0)
+ vite-node: 3.2.4(@types/node@22.15.3)(lightningcss@1.33.0)
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 22.15.3
@@ -1679,3 +3579,13 @@ snapshots:
dependencies:
siginfo: 2.0.0
stackback: 0.0.2
+
+ xxhash-wasm@1.1.0: {}
+
+ yargs-parser@22.0.0: {}
+
+ yocto-queue@1.2.2: {}
+
+ zod@4.6.5: {}
+
+ zwitch@2.0.4: {}
diff --git a/rollup.config.mjs b/rollup.config.mjs
index 698c888..fca6aa7 100644
--- a/rollup.config.mjs
+++ b/rollup.config.mjs
@@ -1,16 +1,28 @@
import esbuild from "rollup-plugin-esbuild";
const esbuildPlugin = esbuild({
- include: /\.[jt]s?$/,
+ include: /\.[jt]sx?$/,
exclude: /node_modules/,
sourceMap: true,
minify: process.env.NODE_ENV === "production",
target: "esnext",
tsconfig: "tsconfig.json",
+ jsx: "automatic",
});
const isNodeBuiltin = (id) => id.startsWith("node:");
+// Framework packages are peer dependencies, and the runtime entries import each
+// other by package name (so client boundaries survive) — never bundle them.
+const external = (id) =>
+ isNodeBuiltin(id) ||
+ id === "next" ||
+ id.startsWith("next/") ||
+ id === "react" ||
+ id.startsWith("react/") ||
+ id === "rosetta-i18n" ||
+ id.startsWith("rosetta-i18n/");
+
export default [
{
input: ["src/index.ts", "src/config.ts"],
@@ -19,7 +31,7 @@ export default [
format: "esm",
sourcemap: true,
},
- external: isNodeBuiltin,
+ external,
plugins: [esbuildPlugin],
},
{
@@ -30,7 +42,7 @@ export default [
sourcemap: true,
banner: "#!/usr/bin/env node",
},
- external: isNodeBuiltin,
+ external,
plugins: [esbuildPlugin],
},
{
@@ -40,7 +52,39 @@ export default [
format: "esm",
sourcemap: true,
},
- external: (id) => id === "next/cache" || isNodeBuiltin(id),
+ external,
+ plugins: [esbuildPlugin],
+ },
+ {
+ input: "src/react.tsx",
+ output: {
+ file: "dist/esm/react.js",
+ format: "esm",
+ sourcemap: true,
+ // Client component boundary — must be the first line of the file.
+ banner: '"use client";',
+ },
+ external,
+ plugins: [esbuildPlugin],
+ },
+ {
+ input: "src/locale/core.ts",
+ output: {
+ file: "dist/esm/locale.js",
+ format: "esm",
+ sourcemap: true,
+ },
+ external,
+ plugins: [esbuildPlugin],
+ },
+ {
+ input: "src/locale/astro.ts",
+ output: {
+ file: "dist/esm/astro.js",
+ format: "esm",
+ sourcemap: true,
+ },
+ external,
plugins: [esbuildPlugin],
},
];
diff --git a/src/locale/astro.ts b/src/locale/astro.ts
new file mode 100644
index 0000000..4c5581f
--- /dev/null
+++ b/src/locale/astro.ts
@@ -0,0 +1,90 @@
+/**
+ * Astro adapter.
+ *
+ * Astro's middleware runs on every request, so it's the natural place to
+ * resolve the locale, force it onto `Astro.locals.locale`, rewrite
+ * locale-prefixed URLs to their canonical path, and persist the cookie.
+ *
+ * ```ts
+ * // src/middleware.ts
+ * import { defineMiddleware } from "astro:middleware";
+ * import { createAstroLocaleMiddleware } from "rosetta-i18n/astro";
+ * import { localeConfig } from "../i18n/config";
+ *
+ * export const onRequest = createAstroLocaleMiddleware(localeConfig);
+ * ```
+ *
+ * For a client switch, render the React `` as an island and
+ * wrap it in ``.
+ * Types are structural, so this module never depends on `astro`.
+ */
+
+import {
+ isLocale,
+ LOCALE_HEADER,
+ type LocaleConfig,
+ localeCookieName,
+ parseCookie,
+ resolveLocale,
+ serializeLocaleCookie,
+} from "./core";
+
+export interface AstroLocaleContext {
+ request: Request;
+ locals: Record;
+ /** Astro's `context.rewrite()`. */
+ rewrite: (url: string | URL) => Promise;
+}
+
+export type AstroMiddlewareNext = (rewrite?: URL) => Promise;
+
+export function createAstroLocaleMiddleware(config: LocaleConfig) {
+ return async function onRequest(
+ context: AstroLocaleContext,
+ next: AstroMiddlewareNext,
+ ): Promise {
+ const url = new URL(context.request.url);
+ const resolved = resolveLocale(config, {
+ pathname: url.pathname,
+ header: context.request.headers.get(LOCALE_HEADER),
+ cookie: parseCookie(
+ context.request.headers.get("cookie"),
+ localeCookieName(config),
+ ),
+ });
+
+ context.locals.locale = resolved.locale;
+
+ if (resolved.source === "url") {
+ const target = new URL(url);
+ target.pathname = resolved.path;
+ const response = await context.rewrite(target);
+ response.headers.set(LOCALE_HEADER, resolved.locale);
+ response.headers.append(
+ "Set-Cookie",
+ serializeLocaleCookie(config, resolved.locale),
+ );
+ return response;
+ }
+
+ const response = await next();
+ // Persist only when the URL can't decide it (bare path) and the cookie
+ // disagrees — never on a rewrite, where the URL is authoritative.
+ if (resolved.source === "cookie" || resolved.source === "default") {
+ response.headers.append(
+ "Set-Cookie",
+ serializeLocaleCookie(config, resolved.locale),
+ );
+ }
+ return response;
+ };
+}
+
+/** Read the locale the middleware stored on `Astro.locals`. */
+export function getAstroLocale(
+ context: { locals: Record },
+ config: LocaleConfig,
+): string {
+ const locale = context.locals.locale;
+ return isLocale(config, locale) ? locale : config.defaultLocale;
+}
diff --git a/src/locale/core.test.ts b/src/locale/core.test.ts
new file mode 100644
index 0000000..7853796
--- /dev/null
+++ b/src/locale/core.test.ts
@@ -0,0 +1,132 @@
+import { describe, expect, it } from "vitest";
+import {
+ type LocaleConfig,
+ localeFromPath,
+ localizePath,
+ parseCookie,
+ planSwitch,
+ resolveLocale,
+ serializeLocaleCookie,
+ stripLocale,
+ switchHref,
+} from "./core";
+
+const config: LocaleConfig = {
+ locales: ["en", "ja", "es"],
+ defaultLocale: "en",
+ localizedPaths: ["/", "/pricing"],
+ localizedPathPrefixes: ["/blog/"],
+};
+
+describe("resolveLocale", () => {
+ it("makes a locale-prefixed URL authoritative, and returns the canonical path", () => {
+ expect(resolveLocale(config, { pathname: "/ja/pricing" })).toEqual({
+ locale: "ja",
+ path: "/pricing",
+ source: "url",
+ });
+ expect(resolveLocale(config, { pathname: "/ja" })).toEqual({
+ locale: "ja",
+ path: "/",
+ source: "url",
+ });
+ });
+
+ it("falls back to the forced header, then the cookie, then the default", () => {
+ expect(
+ resolveLocale(config, { pathname: "/pricing", header: "es" }).source,
+ ).toBe("header");
+ expect(
+ resolveLocale(config, { pathname: "/pricing", cookie: "ja" }),
+ ).toEqual({ locale: "ja", path: "/pricing", source: "cookie" });
+ expect(resolveLocale(config, { pathname: "/pricing" })).toEqual({
+ locale: "en",
+ path: "/pricing",
+ source: "default",
+ });
+ });
+
+ it("ignores an unknown header/cookie value", () => {
+ expect(
+ resolveLocale(config, {
+ pathname: "/pricing",
+ header: "xx",
+ cookie: "ja",
+ }).locale,
+ ).toBe("ja");
+ });
+
+ it("lets the URL beat a conflicting header and cookie", () => {
+ expect(
+ resolveLocale(config, {
+ pathname: "/es/pricing",
+ header: "ja",
+ cookie: "ja",
+ }).locale,
+ ).toBe("es");
+ });
+});
+
+describe("paths", () => {
+ it("extracts and strips the locale segment", () => {
+ expect(localeFromPath(config, "/ja/pricing")).toBe("ja");
+ expect(localeFromPath(config, "/pricing")).toBeNull();
+ expect(stripLocale(config, "/ja/pricing")).toEqual({
+ locale: "ja",
+ path: "/pricing",
+ });
+ expect(stripLocale(config, "/ja")).toEqual({ locale: "ja", path: "/" });
+ expect(stripLocale(config, "/pricing")).toEqual({
+ locale: null,
+ path: "/pricing",
+ });
+ });
+
+ it("prefixes non-default locales and leaves the default bare", () => {
+ expect(localizePath(config, "/pricing", "ja")).toBe("/ja/pricing");
+ expect(localizePath(config, "/", "ja")).toBe("/ja");
+ expect(localizePath(config, "/pricing", "en")).toBe("/pricing");
+ });
+
+ it("builds a switch href from any current URL", () => {
+ expect(switchHref(config, "/ja/pricing", "es")).toBe("/es/pricing");
+ expect(switchHref(config, "/ja", "en")).toBe("/");
+ expect(switchHref(config, "/blog/x", "ja")).toBe("/ja/blog/x");
+ });
+});
+
+describe("planSwitch", () => {
+ it("returns the href and cookie for a localized path", () => {
+ expect(planSwitch(config, "/ja/pricing", "es")).toEqual({
+ href: "/es/pricing",
+ cookie: {
+ name: "locale",
+ value: "es",
+ options: { path: "/", maxAge: 60 * 60 * 24 * 365, sameSite: "lax" },
+ },
+ });
+ });
+
+ it("returns null when the path has no localized variant", () => {
+ expect(planSwitch(config, "/privacy", "ja")).toBeNull();
+ });
+
+ it("honours a custom cookie name", () => {
+ const custom: LocaleConfig = { ...config, cookieName: "lang" };
+ expect(planSwitch(custom, "/pricing", "ja")?.cookie.name).toBe("lang");
+ });
+});
+
+describe("cookies", () => {
+ it("serializes a Set-Cookie value", () => {
+ expect(serializeLocaleCookie(config, "ja")).toBe(
+ "locale=ja; Path=/; Max-Age=31536000; SameSite=Lax",
+ );
+ });
+
+ it("parses a cookie header", () => {
+ expect(parseCookie("a=1; locale=ja; b=2", "locale")).toBe("ja");
+ expect(parseCookie("a=1", "locale")).toBeNull();
+ expect(parseCookie(undefined, "locale")).toBeNull();
+ });
+});
diff --git a/src/locale/core.ts b/src/locale/core.ts
new file mode 100644
index 0000000..642d4d1
--- /dev/null
+++ b/src/locale/core.ts
@@ -0,0 +1,226 @@
+/**
+ * Runtime locale layer — framework-agnostic core.
+ *
+ * The translation engine answers "how do I translate these strings?". This
+ * module answers "which locale is this request in, and how do I switch?" — the
+ * routing + cookie model that the React, Next, and Astro adapters are thin
+ * wrappers around.
+ *
+ * The config is deliberately plain data (no functions) so the exact same object
+ * can cross the server → client boundary. Resolution is deterministic and
+ * one-directional:
+ *
+ * 1. a locale-prefixed URL (`/ja/pricing`) is authoritative,
+ * 2. then a forced header (`x-rosetta-locale`, set by middleware),
+ * 3. then the persisted cookie,
+ * 4. then the default locale.
+ *
+ * Switching sets the cookie *and* navigates to the localized URL, so the URL and
+ * the cookie always agree. There is no client-side guessing, no
+ * refresh-after-push race, and no way for a stale request to re-pin the locale.
+ */
+
+export const LOCALE_HEADER = "x-rosetta-locale";
+export const DEFAULT_LOCALE_COOKIE = "locale";
+export const ONE_YEAR_SECONDS = 60 * 60 * 24 * 365;
+
+export interface LocaleConfig {
+ /** Every locale, including the default. Order is the switcher order. */
+ locales: readonly string[];
+ /** The locale served without a URL prefix. */
+ defaultLocale: string;
+ /** Cookie that persists the choice. Default `"locale"`. */
+ cookieName?: string;
+ /** Cookie max-age in seconds. Default one year. */
+ cookieMaxAgeSeconds?: number;
+ /** Prefix the default locale too (`/en/...`). Default `false`. */
+ prefixDefaultLocale?: boolean;
+ /**
+ * Canonical (unprefixed) paths that have localized variants — exact matches.
+ * Omit both this and `localizedPathPrefixes` to localize every path.
+ */
+ localizedPaths?: readonly string[];
+ /** Canonical paths that have localized variants — prefix matches (e.g. `/blog/`). */
+ localizedPathPrefixes?: readonly string[];
+}
+
+export type LocaleSource = "url" | "header" | "cookie" | "default";
+
+export interface ResolvedLocale {
+ locale: string;
+ /** The canonical, unprefixed path for this request. */
+ path: string;
+ source: LocaleSource;
+}
+
+export interface LocaleCookieOptions {
+ path: string;
+ maxAge: number;
+ sameSite: "lax";
+}
+
+export interface LocaleSwitchPlan {
+ /** Localized URL to navigate to. */
+ href: string;
+ /** Cookie to persist the choice. */
+ cookie: { name: string; value: string; options: LocaleCookieOptions };
+}
+
+export function localeCookieName(config: LocaleConfig): string {
+ return config.cookieName ?? DEFAULT_LOCALE_COOKIE;
+}
+
+export function localeCookieOptions(config: LocaleConfig): LocaleCookieOptions {
+ return {
+ path: "/",
+ maxAge: config.cookieMaxAgeSeconds ?? ONE_YEAR_SECONDS,
+ sameSite: "lax",
+ };
+}
+
+export function isLocale(
+ config: LocaleConfig,
+ value: unknown,
+): value is string {
+ return typeof value === "string" && config.locales.includes(value);
+}
+
+export function isLocalizedPath(
+ config: LocaleConfig,
+ pathname: string,
+): boolean {
+ const hasRules =
+ (config.localizedPaths?.length ?? 0) > 0 ||
+ (config.localizedPathPrefixes?.length ?? 0) > 0;
+ if (!hasRules) return true;
+ if (config.localizedPaths?.includes(pathname)) return true;
+ return (
+ config.localizedPathPrefixes?.some(
+ (prefix) => pathname === prefix || pathname.startsWith(prefix),
+ ) ?? false
+ );
+}
+
+/** The leading locale segment of a path, if it is one we know. */
+export function localeFromPath(
+ config: LocaleConfig,
+ pathname: string,
+): string | null {
+ const segment = pathname.split("/")[1];
+ return segment && isLocale(config, segment) ? segment : null;
+}
+
+/** Strip a leading locale segment, returning the canonical path. */
+export function stripLocale(
+ config: LocaleConfig,
+ pathname: string,
+): { locale: string | null; path: string } {
+ const locale = localeFromPath(config, pathname);
+ if (!locale) return { locale: null, path: pathname || "/" };
+ const rest = pathname.slice(locale.length + 1);
+ return { locale, path: rest || "/" };
+}
+
+/**
+ * Prefix a canonical path for a locale. The default locale stays bare unless
+ * `prefixDefaultLocale` is set.
+ */
+export function localizePath(
+ config: LocaleConfig,
+ pathname: string,
+ locale: string,
+): string {
+ if (locale === config.defaultLocale && !config.prefixDefaultLocale) {
+ return pathname;
+ }
+ return pathname === "/" ? `/${locale}` : `/${locale}${pathname}`;
+}
+
+/** The URL to navigate to when switching `pathname` to `locale`. */
+export function switchHref(
+ config: LocaleConfig,
+ pathname: string,
+ locale: string,
+): string {
+ const { path } = stripLocale(config, pathname);
+ return localizePath(config, path, locale);
+}
+
+/**
+ * Resolve the active locale for a request. Precedence: URL prefix → forced
+ * header → cookie → default. `path` is always the canonical (unprefixed) path.
+ */
+export function resolveLocale(
+ config: LocaleConfig,
+ input: { pathname: string; header?: string | null; cookie?: string | null },
+): ResolvedLocale {
+ const fromPath = localeFromPath(config, input.pathname);
+ if (fromPath) {
+ return {
+ locale: fromPath,
+ path: stripLocale(config, input.pathname).path,
+ source: "url",
+ };
+ }
+ if (isLocale(config, input.header)) {
+ return { locale: input.header, path: input.pathname, source: "header" };
+ }
+ if (isLocale(config, input.cookie)) {
+ return { locale: input.cookie, path: input.pathname, source: "cookie" };
+ }
+ return {
+ locale: config.defaultLocale,
+ path: input.pathname,
+ source: "default",
+ };
+}
+
+/** The `Set-Cookie` value that persists `locale`. */
+export function serializeLocaleCookie(
+ config: LocaleConfig,
+ locale: string,
+): string {
+ const options = localeCookieOptions(config);
+ return `${localeCookieName(config)}=${encodeURIComponent(locale)}; Path=${
+ options.path
+ }; Max-Age=${options.maxAge}; SameSite=${capitalize(options.sameSite)}`;
+}
+
+/** Read a single cookie value from a `Cookie:` header. */
+export function parseCookie(
+ header: string | null | undefined,
+ name: string,
+): string | null {
+ if (!header) return null;
+ for (const part of header.split(";")) {
+ const [key, ...rest] = part.trim().split("=");
+ if (key === name) return decodeURIComponent(rest.join("="));
+ }
+ return null;
+}
+
+/**
+ * Everything a client needs to switch locale: set `cookie`, navigate to `href`.
+ * Returns `null` when the current path has no localized variant (legal pages,
+ * API routes, …), so the switcher can no-op instead of linking to a 404.
+ */
+export function planSwitch(
+ config: LocaleConfig,
+ pathname: string,
+ locale: string,
+): LocaleSwitchPlan | null {
+ const { path } = stripLocale(config, pathname);
+ if (!isLocalizedPath(config, path)) return null;
+ return {
+ href: localizePath(config, path, locale),
+ cookie: {
+ name: localeCookieName(config),
+ value: locale,
+ options: localeCookieOptions(config),
+ },
+ };
+}
+
+function capitalize(value: string): string {
+ return value.charAt(0).toUpperCase() + value.slice(1);
+}
diff --git a/src/locale/next.tsx b/src/locale/next.tsx
new file mode 100644
index 0000000..c7a21d2
--- /dev/null
+++ b/src/locale/next.tsx
@@ -0,0 +1,144 @@
+/**
+ * Next.js adapter (App Router).
+ *
+ * Three pieces, each doing one thing:
+ *
+ * 1. `createLocaleMiddleware(config)` — route locale from the URL, force it
+ * onto the request as `x-rosetta-locale`, and (only when the URL is
+ * authoritative) persist it in the cookie.
+ * 2. `` — a server component that reads the locale and
+ * provides it to the client. Wrap your tree in it.
+ * 3. `createSetLocaleAction(config)` — a server action for signed-in users who
+ * want the choice stored on their account.
+ *
+ * The client `` (from `rosetta-i18n/react`) sets the cookie and
+ * hard-navigates, so the URL and cookie always agree — no refresh races.
+ */
+
+import { cookies, headers } from "next/headers";
+import { type NextRequest, NextResponse } from "next/server";
+import type { ReactNode } from "react";
+// Self-import so the client boundary is preserved: the browser gets
+// `rosetta-i18n/react` (which carries "use client"), not an inlined copy.
+import { LocaleProvider } from "rosetta-i18n/react";
+import {
+ isLocale,
+ LOCALE_HEADER,
+ type LocaleConfig,
+ localeCookieName,
+ localeCookieOptions,
+ resolveLocale,
+} from "./core";
+
+/** The active locale for the current server render (reads the forced header, then the cookie). */
+export async function getServerLocale(config: LocaleConfig): Promise {
+ const headerStore = await headers();
+ const fromHeader = headerStore.get(LOCALE_HEADER);
+ if (isLocale(config, fromHeader)) return fromHeader;
+ const cookieStore = await cookies();
+ const fromCookie = cookieStore.get(localeCookieName(config))?.value ?? null;
+ return isLocale(config, fromCookie) ? fromCookie : config.defaultLocale;
+}
+
+/** Server component: resolves the locale and provides it to the client tree. */
+export async function RosettaProvider({
+ config,
+ children,
+}: {
+ config: LocaleConfig;
+ children: ReactNode;
+}) {
+ const locale = await getServerLocale(config);
+ return (
+
+ {children}
+
+ );
+}
+
+/**
+ * Middleware: resolve the locale for every request, force it onto the request
+ * (`x-rosetta-locale`) so server components don't re-derive it, rewrite
+ * locale-prefixed URLs to their canonical path, and persist the cookie only
+ * when the URL is authoritative.
+ *
+ * ```ts
+ * // middleware.ts
+ * import { createLocaleMiddleware } from "rosetta-i18n/next";
+ * export const middleware = createLocaleMiddleware(config);
+ * export const config = { matcher: ["/((?!_next|favicon.ico).*)"] };
+ * ```
+ */
+export function createLocaleMiddleware(config: LocaleConfig) {
+ return function localeMiddleware(request: NextRequest): NextResponse {
+ const cookieName = localeCookieName(config);
+ const resolved = resolveLocale(config, {
+ pathname: request.nextUrl.pathname,
+ header: request.headers.get(LOCALE_HEADER),
+ cookie: request.cookies.get(cookieName)?.value ?? null,
+ });
+
+ const requestHeaders = new Headers(request.headers);
+ requestHeaders.set(LOCALE_HEADER, resolved.locale);
+
+ let response: NextResponse;
+ if (resolved.source === "url") {
+ const url = request.nextUrl.clone();
+ url.pathname = resolved.path;
+ response = NextResponse.rewrite(url, {
+ request: { headers: requestHeaders },
+ });
+ } else {
+ response = NextResponse.next({ request: { headers: requestHeaders } });
+ }
+
+ // Persist only when the URL decides the locale (a locale-prefixed visit),
+ // so a transient request to a bare path can't re-pin or clobber the choice.
+ if (resolved.source === "url") {
+ response.cookies.set(
+ cookieName,
+ resolved.locale,
+ localeCookieOptions(config),
+ );
+ }
+
+ return response;
+ };
+}
+
+/**
+ * Server action factory for persisting the choice on the account. Use with the
+ * client provider's `persist` (for signed-in members).
+ *
+ * ```ts
+ * // app/locale-actions.ts
+ * "use server";
+ * export const persistLocale = createSetLocaleAction(config, {
+ * persist: (locale) => updateUserProfile(userId, { locale }),
+ * });
+ * ```
+ */
+export function createSetLocaleAction(
+ config: LocaleConfig,
+ options: { persist?: (locale: string) => void | Promise } = {},
+) {
+ return async function setLocale(locale: string): Promise {
+ const next = isLocale(config, locale) ? locale : config.defaultLocale;
+ const cookieStore = await cookies();
+ cookieStore.set(
+ localeCookieName(config),
+ next,
+ localeCookieOptions(config),
+ );
+ await options.persist?.(next);
+ return next;
+ };
+}
+
+export {
+ LOCALE_HEADER,
+ type LocaleConfig,
+ localeCookieName,
+ localeCookieOptions,
+ resolveLocale,
+} from "./core";
diff --git a/src/next.ts b/src/next.ts
index 1828e1e..442afa0 100644
--- a/src/next.ts
+++ b/src/next.ts
@@ -85,3 +85,6 @@ export function cachedTranslate(
);
return run();
}
+
+// Runtime locale layer for the App Router (middleware, server provider, action).
+export * from "./locale/next";
diff --git a/src/react.tsx b/src/react.tsx
new file mode 100644
index 0000000..9ee59b1
--- /dev/null
+++ b/src/react.tsx
@@ -0,0 +1,190 @@
+"use client";
+
+/**
+ * React adapter: a server-resolved locale, provided to the client, with a
+ * switcher that can't race.
+ *
+ * The server resolves the locale (see the Next/Astro adapters) and renders
+ * ``. The client only ever *reads* that locale
+ * and, to switch, sets the cookie and navigates — it never guesses.
+ */
+
+import {
+ createContext,
+ type ReactNode,
+ useCallback,
+ useContext,
+ useMemo,
+ useState,
+} from "react";
+import { type LocaleConfig, planSwitch } from "./locale/core";
+
+export interface LocaleContextValue {
+ config: LocaleConfig;
+ /** The active locale, resolved on the server for this request. */
+ locale: string;
+ /** True while a switch is in flight. */
+ pending: boolean;
+ /** Switch locale: writes the cookie, then navigates. */
+ switchTo: (locale: string) => void;
+ /** Localized href for the current page in `locale`, or `null` if it has none. */
+ hrefFor: (locale: string) => string | null;
+}
+
+const LocaleContext = createContext(null);
+
+export interface LocaleProviderProps {
+ /** Plain data, safe to pass from a server component. */
+ config: LocaleConfig;
+ /** The locale resolved for this request. */
+ locale: string;
+ /**
+ * Navigate to the localized URL. Defaults to a full-page `location.assign`,
+ * which is the reliable choice: one request, URL and cookie in agreement.
+ */
+ navigate?: (href: string) => void;
+ /**
+ * Persist the choice server-side (the cookie is already written). Use for
+ * signed-in users, e.g. a server action that stores the locale.
+ */
+ persist?: (locale: string) => void | Promise;
+ children: ReactNode;
+}
+
+function defaultNavigate(href: string): void {
+ window.location.assign(href);
+}
+
+function writeCookie(
+ name: string,
+ value: string,
+ options: { path: string; maxAge: number },
+): void {
+ // biome-ignore lint/suspicious/noDocumentCookie: the Cookie Store API isn't available in Safari, so document.cookie is the portable choice.
+ document.cookie = `${name}=${encodeURIComponent(value)}; Path=${options.path}; Max-Age=${
+ options.maxAge
+ }; SameSite=Lax`;
+}
+
+export function LocaleProvider({
+ config,
+ locale,
+ navigate,
+ persist,
+ children,
+}: LocaleProviderProps) {
+ const [pending, setPending] = useState(false);
+
+ const switchTo = useCallback(
+ (next: string) => {
+ if (next === locale || pending) return;
+ const pathname =
+ typeof window === "undefined" ? "/" : window.location.pathname;
+ const plan = planSwitch(config, pathname, next);
+ if (!plan) return; // current path has no localized variant
+ setPending(true);
+ writeCookie(plan.cookie.name, plan.cookie.value, plan.cookie.options);
+ try {
+ void persist?.(next);
+ } catch {
+ /* persistence is best-effort */
+ }
+ (navigate ?? defaultNavigate)(plan.href);
+ },
+ [config, locale, pending, navigate, persist],
+ );
+
+ const hrefFor = useCallback(
+ (target: string): string | null => {
+ const pathname =
+ typeof window === "undefined" ? "/" : window.location.pathname;
+ return planSwitch(config, pathname, target)?.href ?? null;
+ },
+ [config],
+ );
+
+ const value = useMemo(
+ () => ({ config, locale, pending, switchTo, hrefFor }),
+ [config, locale, pending, switchTo, hrefFor],
+ );
+
+ return (
+ {children}
+ );
+}
+
+export function useLocaleContext(): LocaleContextValue {
+ const value = useContext(LocaleContext);
+ if (!value) {
+ throw new Error(
+ "rosetta-i18n: no locale context — render (or the framework provider) above this component.",
+ );
+ }
+ return value;
+}
+
+export function useLocale(): string {
+ return useLocaleContext().locale;
+}
+
+export function useLocales(): readonly string[] {
+ return useLocaleContext().config.locales;
+}
+
+/** `[locale, switchTo]` — the switcher primitive. */
+export function useLocaleSwitch(): (locale: string) => void {
+ return useLocaleContext().switchTo;
+}
+
+export interface LocaleSwitcherRenderProps {
+ locales: readonly string[];
+ locale: string;
+ pending: boolean;
+ switchTo: (locale: string) => void;
+ /** Endonym for a locale (e.g. `"日本語"`), unless overridden by `labels`. */
+ labelFor: (locale: string) => string;
+}
+
+export interface LocaleSwitcherProps {
+ /** Render your own UI. Omit for a plain, unstyled ``. */
+ render?: (props: LocaleSwitcherRenderProps) => ReactNode;
+ /** Display names per locale. Defaults to the locale's own name. */
+ labels?: Record;
+}
+
+function defaultLabel(locale: string): string {
+ try {
+ return (
+ new Intl.DisplayNames([locale], { type: "language" }).of(locale) ?? locale
+ );
+ } catch {
+ return locale;
+ }
+}
+
+export function LocaleSwitcher({ render, labels }: LocaleSwitcherProps) {
+ const { config, locale, pending, switchTo } = useLocaleContext();
+ const labelFor = (value: string) => labels?.[value] ?? defaultLabel(value);
+ const props: LocaleSwitcherRenderProps = {
+ locales: config.locales,
+ locale,
+ pending,
+ switchTo,
+ labelFor,
+ };
+ if (render) return <>{render(props)}>;
+ return (
+ switchTo(event.target.value)}
+ >
+ {config.locales.map((value) => (
+
+ {labelFor(value)}
+
+ ))}
+
+ );
+}
diff --git a/tsconfig.json b/tsconfig.json
index a323b72..1bd2cd9 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -9,9 +9,14 @@
"esModuleInterop": true,
"resolveJsonModule": true,
"isolatedModules": true,
+ "jsx": "react-jsx",
"declaration": true,
"noEmit": true,
- "types": ["node"]
+ "types": ["node"],
+ "baseUrl": ".",
+ "paths": {
+ "rosetta-i18n/react": ["./src/react.tsx"]
+ }
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
diff --git a/vitest.config.ts b/vitest.config.ts
index 2f67188..b115882 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -1,6 +1,17 @@
+import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
export default defineConfig({
+ resolve: {
+ alias: {
+ // The Next entry imports the client provider by package name so the
+ // "use client" boundary survives bundling. In tests (which run before
+ // `dist` is built) resolve that to the source.
+ "rosetta-i18n/react": fileURLToPath(
+ new URL("./src/react.tsx", import.meta.url),
+ ),
+ },
+ },
test: {
include: ["src/**/*.test.ts"],
},