diff --git a/.env.example b/.env.example new file mode 100644 index 000000000..97989ded7 --- /dev/null +++ b/.env.example @@ -0,0 +1,8 @@ +# Ingestion (`npm run ingest`). The docs site does not read this file. +MEILISEARCH_URL= +MEILISEARCH_API_KEY= +VOYAGE_API_KEY= +# Optional. Must match the chat deployment. Defaults: docs-chunks, api-routes, voyage +MEILISEARCH_DOCS_INDEX= +MEILISEARCH_ROUTES_INDEX= +MEILISEARCH_EMBEDDER= diff --git a/.github/workflows/ingest-chat-indexes.yml b/.github/workflows/ingest-chat-indexes.yml new file mode 100644 index 000000000..5dc786e78 --- /dev/null +++ b/.github/workflows/ingest-chat-indexes.yml @@ -0,0 +1,43 @@ +# Keeps the docs chat indexes in sync. Sync state lives in Meilisearch, so unchanged pages are skipped. +name: Ingest chat indexes + +on: + workflow_dispatch: + inputs: + force: + description: Re-sync every page, even unchanged ones + type: boolean + default: false + push: + branches: + - main + +jobs: + ingest: + name: Ingest docs into Meilisearch + if: github.repository == 'meilisearch/documentation' + runs-on: ubuntu-latest + concurrency: + group: ingest + cancel-in-progress: false + steps: + - uses: actions/checkout@v6 + + # `--env-file-if-exists` in the ingest script needs Node.js 20.12 or newer. + - uses: actions/setup-node@v7 + with: + node-version: "22" + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Ingest + run: npm run ingest -- ${{ github.event_name == 'workflow_dispatch' && inputs.force && '--force' || '' }} + env: + MEILISEARCH_URL: ${{ vars.CHAT_MEILISEARCH_URL }} + MEILISEARCH_API_KEY: ${{ secrets.CHAT_MEILISEARCH_API_KEY }} + VOYAGE_API_KEY: ${{ secrets.VOYAGE_API_KEY }} + MEILISEARCH_DOCS_INDEX: ${{ vars.MEILISEARCH_DOCS_INDEX }} + MEILISEARCH_ROUTES_INDEX: ${{ vars.MEILISEARCH_ROUTES_INDEX }} + MEILISEARCH_EMBEDDER: ${{ vars.MEILISEARCH_EMBEDDER }} diff --git a/.gitignore b/.gitignore index 107bcbc9d..5c8c53bbd 100644 --- a/.gitignore +++ b/.gitignore @@ -139,6 +139,7 @@ yarn-error.log # Script output broken-links.txt +.ingest/ # Claude Code (local only, not committed) .claude/superpowers diff --git a/.mintignore b/.mintignore index 816f821a6..5d835002d 100644 --- a/.mintignore +++ b/.mintignore @@ -1,2 +1,3 @@ # Agent instruction files are not documentation pages. **/AGENTS.md +chat/ diff --git a/chat-loader.js b/chat-loader.js new file mode 100644 index 000000000..266fbe2ab --- /dev/null +++ b/chat-loader.js @@ -0,0 +1,53 @@ +// Loads the "Ask AI" chat widget (source in /chat, built with Vite and hosted on Vercel). +// Mintlify serves this file on every page; the widget itself is not part of the docs build. +// +// Mintlify cannot read Vercel's env vars. A preview hostname already ends with the branch +// slug Vercel puts in VERCEL_BRANCH_URL: +// meilisearch-6b28dec2-.mintlify.site +// -> documentation-chat-git--meili.vercel.app +// The bundle then calls the API on the origin baked in from that env var. + +const MEILI_CHAT_PROD_URL = 'https://documentation-chat.vercel.app' +// Used only when `npm run dev` is running in chat/. 127.0.0.1 avoids an IPv6-only bind. +const MEILI_CHAT_DEV_URL = 'http://127.0.0.1:5173' +const MINTLIFY_PREVIEW = /^meilisearch-6b28dec2-(.+)\.mintlify\.site$/ +// DNS labels are at most 63 characters. Vercel truncates the branch alias to fit. +const BRANCH_PREFIX = 'documentation-chat-git-' +const BRANCH_SUFFIX = '-meili' + +function branchChatUrl(hostname) { + const match = hostname.match(MINTLIFY_PREVIEW) + if (!match || !/^[a-z0-9-]+$/.test(match[1])) return '' + const room = 63 - BRANCH_PREFIX.length - BRANCH_SUFFIX.length + const branch = match[1].slice(0, room).replace(/-+$/, '') + if (!branch) return '' + return `https://${BRANCH_PREFIX}${branch}${BRANCH_SUFFIX}.vercel.app` +} + +function loadMeilisearchChat() { + if (window.__meiliChatLoaded) { + return + } + + const { hostname } = window.location + const isLocal = hostname === 'localhost' || hostname === '127.0.0.1' + // Local docs always use the chat dev server (`npm run dev` in chat/). + const base = (isLocal ? MEILI_CHAT_DEV_URL : branchChatUrl(hostname) || MEILI_CHAT_PROD_URL).replace(/\/$/, '') + window.__meiliChatLoaded = true + + const script = document.createElement('script') + script.src = `${base}/chat.js` + script.async = true + script.onload = () => window.MeiliChat && window.MeiliChat.mount({ apiBase: base }) + script.onerror = () => { + window.__meiliChatLoaded = false + console.warn('Meilisearch chat widget failed to load from', script.src) + } + document.head.appendChild(script) +} + +if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', loadMeilisearchChat) +} else { + loadMeilisearchChat() +} diff --git a/chat/.env.example b/chat/.env.example new file mode 100644 index 000000000..81549adf3 --- /dev/null +++ b/chat/.env.example @@ -0,0 +1,16 @@ +# Required +OPENROUTER_API_KEY= +MEILISEARCH_URL=https://ms-909f535664f8-173.lon.meilisearch.io +# Search-only key with access to the docs and routes indexes +MEILISEARCH_KEY= +# Voyage key for rerank-3 +VOYAGE_API_KEY= +# Optional. OpenAI models on OpenRouter. The query model only writes the search. +CHAT_MODEL=openai/gpt-6-luna +CHAT_QUERY_MODEL=openai/gpt-6-luna +# Comma-separated hostnames, "*." for subdomains. Default: meilisearch.com,*.meilisearch.com,*.mintlify.site +CHAT_ALLOWED_ORIGINS= +# Must match the ingestion run. Defaults: docs-chunks, api-routes, voyage +MEILISEARCH_DOCS_INDEX= +MEILISEARCH_ROUTES_INDEX= +MEILISEARCH_EMBEDDER= diff --git a/chat/.gitignore b/chat/.gitignore new file mode 100644 index 000000000..be7d373ba --- /dev/null +++ b/chat/.gitignore @@ -0,0 +1,4 @@ +node_modules +dist +.env.local +.vercel diff --git a/chat/api/chat.ts b/chat/api/chat.ts new file mode 100644 index 000000000..c00d4716b --- /dev/null +++ b/chat/api/chat.ts @@ -0,0 +1,889 @@ +import { voyage } from "@ai-sdk/voyage"; +import { createOpenRouter } from "@openrouter/ai-sdk-provider"; +import { convertToModelMessages, isStepCount, rerank, streamText, tool, type UIMessage } from "ai"; +import { Meilisearch } from "meilisearch"; +import { z } from "zod"; +import { fenceLanguage, lookupCandidates, methodCandidates, quoteFilter, selectSample } from "../src/samples.js"; +import type { ChatUser } from "../src/user.ts"; + +const DEFAULT_MODEL = "openai/gpt-6-luna"; +const DEFAULT_QUERY_MODEL = "openai/gpt-6-luna"; +/** Reasoning ciphertext only decrypts on the upstream that created it. */ +const OPENAI_PROVIDER = { only: ["openai"], allow_fallbacks: false }; +const DEFAULT_ALLOWED_ORIGINS = "meilisearch.com,*.meilisearch.com,*.mintlify.site"; +const MAX_MESSAGES = 30; +const MAX_TEXT_LENGTH = 4000; +/** About 8k tokens. Safety net for the largest pages. */ +const MAX_PAGE_CHARS = 30_000; +/** Default `pagination.maxTotalHits`. */ +const MAX_PAGE_CHUNKS = 1000; +/** Federated multi-search pool. Meilisearch merges docs and routes by ranking score. */ +const RETRIEVE = 50; +/** Voyage rerank keeps this many, then the score trim drops the weak tail. */ +const RERANK_TOP = 15; +/** Drop a hit below this Voyage score, unless it is one of the first MIN_KEEP. */ +const MIN_SCORE = 0.5; +/** Drop a hit more than this far below the top Voyage score. */ +const MAX_DROP = 0.2; +const MIN_KEEP = 3; +const MAX_SEARCHES = 2; +const MAX_READS = 2; + +const HIT_FIELDS = ["title", "page", "url", "anchor", "breadcrumb", "content", "content_type", "tab", "group"] as const; + +const SYSTEM_PROMPT = `You are the Meilisearch documentation assistant, embedded in the Meilisearch docs website. + +Rules: +- Call the search tool before answering a question about Meilisearch. Write 1 short, keyword-rich query, about 12 words at most. If the question has two distinct parts, call search twice in the same turn, one query per part. Do not search more than twice. On a follow-up question, include the topic from the earlier turns in the query. +- Answer from the search hits. They may be prose chunks, code samples already in the reader's language, or API route chunks. +- Call expand_page or get_api_route only when the hits are not enough: a chunk is cut off, or the answer needs parameters, a request body, or a complete example. Pass expand_page the "page" field of a hit. Pass get_api_route the page of a hit whose content_type is "api_route", or a method and path. Open at most two pages or routes. +- Answer only from the search results, expanded pages, and get_api_route results. If they do not contain the answer, say so plainly and suggest rephrasing. Never invent settings, routes, parameters, or behavior. +- If the question is not about Meilisearch or search, politely decline and say what you can help with. + +Output +- Be concise and direct. Synthesize the information from tool calls into a tailored answer, don't just repeat. +- Link to sources when they allow the reader to learn nore about a mentioned API or concept. Use it to avoid digressing and enable progressive disclosure of information to users. +- Links should be inserted inline as Markdown links on the relevant keywords using the "url" field of the result (append "#anchor" when "anchor" is not null). For an expanded page, use the "url" it returns, or the URL of a search result from that page. Never link to a URL that was not returned by a tool, and never guess an anchor. +- Write for readers who may not be native English speakers. +`; + +/** Cuts `text` to at most `max` characters, on a paragraph boundary when possible. */ +function truncate(text: string, max: number): { text: string; truncated: boolean } { + if (text.length <= max) return { text, truncated: false }; + const cut = text.lastIndexOf("\n\n", max); + return { text: text.slice(0, cut > 0 ? cut : max), truncated: true }; +} + +type ChatConfig = { + openrouterKey: string | undefined; + meiliUrl: string | undefined; + meiliKey: string | undefined; + voyageKey: string | undefined; + model: string; + queryModel: string; + allowedOrigins: string[]; + docsIndex: string; + routesIndex: string; + embedder: string; +}; + +/** Reads every setting once. Empty strings fall back to the defaults. */ +function readConfig(): ChatConfig { + const env = process.env; + return { + openrouterKey: env.OPENROUTER_API_KEY, + meiliUrl: env.MEILISEARCH_URL, + meiliKey: env.MEILISEARCH_KEY, + voyageKey: env.VOYAGE_API_KEY, + model: env.CHAT_MODEL || DEFAULT_MODEL, + queryModel: env.CHAT_QUERY_MODEL || DEFAULT_QUERY_MODEL, + allowedOrigins: (env.CHAT_ALLOWED_ORIGINS || DEFAULT_ALLOWED_ORIGINS) + .split(",") + .map((entry) => entry.trim()) + .filter(Boolean), + docsIndex: env.MEILISEARCH_DOCS_INDEX || "docs-chunks", + routesIndex: env.MEILISEARCH_ROUTES_INDEX || "api-routes", + embedder: env.MEILISEARCH_EMBEDDER || "voyage", + }; +} + +/** `*.example.com` matches subdomains only, not the apex. */ +function matchesHost(hostname: string, pattern: string): boolean { + return pattern.startsWith("*.") ? hostname.endsWith(pattern.slice(1)) : hostname === pattern; +} + +function isAllowedOrigin(origin: string | null, allowed: string[]): boolean { + const dev = process.env.NODE_ENV !== "production"; + if (!origin) return dev; + try { + const { protocol, hostname } = new URL(origin); + // Local docs (mint dev) call the hosted API. A remote site cannot use these hosts. + if ((hostname === "localhost" || hostname === "127.0.0.1") && (protocol === "http:" || protocol === "https:")) { + return true; + } + return protocol === "https:" && allowed.some((pattern) => matchesHost(hostname, pattern)); + } catch { + return false; + } +} + +function corsHeaders(origin: string | null): Record { + return { + "Access-Control-Allow-Origin": origin ?? "*", + "Access-Control-Allow-Methods": "POST, OPTIONS", + "Access-Control-Allow-Headers": "Content-Type", + "Access-Control-Max-Age": "86400", + Vary: "Origin", + }; +} + +function json(status: number, body: unknown, headers: Record): Response { + return new Response(JSON.stringify(body), { + status, + headers: { ...headers, "Content-Type": "application/json" }, + }); +} + +function isRecord(value: unknown): value is Record { + return typeof value === "object" && value !== null && !Array.isArray(value); +} + +function stringRecord(value: unknown): Record | undefined { + if (!isRecord(value)) return undefined; + const codes: Record = {}; + for (const [key, entry] of Object.entries(value)) { + if (typeof entry !== "string") return undefined; + codes[key] = entry; + } + return codes; +} + +type SearchHit = { + title: string; + page: string; + url: string; + anchor: string | null; + breadcrumb: string; + content: string; + content_type: string; + tab: string | null; + group: string | null; +}; + +function rerankDocument(hit: { breadcrumb: string; content: string }): string { + return hit.breadcrumb ? `${hit.breadcrumb}\n${hit.content}` : hit.content; +} + +function elapsedMs(started: number): number { + return Math.round(performance.now() - started); +} + +function average(scores: number[]): number | null { + if (scores.length === 0) return null; + return scores.reduce((sum, score) => sum + score, 0) / scores.length; +} + +function formatScore(score: number | null): string { + return score === null ? "n/a" : score.toFixed(3); +} + +const PRE_RANKS = [1, 10, 20, 50]; +const POST_RANKS = [1, 5, 10, 15]; + +type ScoreCurve = { + avg: number | null; + min: number | null; + at: Array<{ rank: number; score: number }>; +}; + +type MeiliSpan = { + ms: number; + processingMs: number; + inFlight: number; + trace?: Record; +}; + +type MeiliSummary = { + ms: number; + processingMs: number; + waitMs: number; + inFlight: number; + traces: Array | undefined>; +}; + +type TraceNode = { duration?: string; children: Map }; + +type KeptHit = { page: string; rank: number; meiliRank: number }; + +type SearchDetail = { + q: string; + meili: MeiliSummary; + rerankMs: number; + candidates: number; + reranked: number; + kept: number; + cutoff: number | null; + dupes: number; + docs: number; + routes: number; + meiliBytes: number; + resultBytes: number; + pre: ScoreCurve; + post: ScoreCurve; + hits: KeptHit[]; +}; + +type ReadDetail = { + bytes: number; + page?: string; + matched?: string; + meili: MeiliSummary; +}; + +type OpenedPage = { tool: string; arg: string; page?: string }; + +function scoreCurve(scores: Array, ranks: number[]): ScoreCurve { + const finite = scores.filter((score): score is number => typeof score === "number" && Number.isFinite(score)); + return { + avg: average(finite), + min: finite.length === 0 ? null : Math.min(...finite), + at: ranks.flatMap((rank) => { + const score = scores[rank - 1]; + return typeof score === "number" && Number.isFinite(score) ? [{ rank, score }] : []; + }), + }; +} + +function formatCurve(label: string, curve: ScoreCurve): string { + const points = curve.at.map((point) => `r${point.rank}=${point.score.toFixed(3)}`).join(" "); + return `${label} ${points}${points ? " " : ""}min=${formatScore(curve.min)} avg=${formatScore(curve.avg)}`; +} + +function formatDuration(value: number): string { + if (value >= 10_000) return `${Math.round(value / 1000)}s`; + if (value >= 1000) return `${(value / 1000).toFixed(1)}s`; + return `${Math.round(value)}ms`; +} + +function formatBytes(bytes: number): string { + if (bytes < 0) return "n/a"; + if (bytes >= 1024 * 1024) return `${(bytes / (1024 * 1024)).toFixed(1)}MB`; + if (bytes >= 1024) return `${Math.round(bytes / 1024)}kB`; + return `${bytes}B`; +} + +function formatCount(value: number | undefined): string { + return value === undefined ? "n/a" : String(value); +} + +function utf8Bytes(value: unknown): number { + try { + return new TextEncoder().encode(JSON.stringify(value)).length; + } catch { + return -1; + } +} + +function summarizeSpans(spans: MeiliSpan[]): MeiliSummary { + const ms = spans.reduce((sum, span) => sum + span.ms, 0); + const processingMs = spans.reduce((sum, span) => sum + span.processingMs, 0); + const inFlight = spans.reduce((max, span) => Math.max(max, span.inFlight), 0); + return { ms, processingMs, waitMs: Math.max(0, ms - processingMs), inFlight, traces: spans.map((span) => span.trace) }; +} + +function traceChild(parent: TraceNode, name: string): TraceNode { + const existing = parent.children.get(name); + if (existing) return existing; + const created: TraceNode = { children: new Map() }; + parent.children.set(name, created); + return created; +} + +/** `performanceDetails` keys are `parent > child` paths. Values are duration strings. */ +function addTraceValue(node: TraceNode, key: string, value: unknown): void { + let current = node; + for (const part of key.split(" > ")) current = traceChild(current, part); + if (typeof value === "string" || typeof value === "number") { + current.duration = String(value); + return; + } + if (!isRecord(value)) return; + for (const [nestedKey, nestedValue] of Object.entries(value)) addTraceValue(current, nestedKey, nestedValue); +} + +function renderTrace(node: TraceNode, indent: string): string[] { + const lines: string[] = []; + const entries = [...node.children.entries()]; + entries.forEach(([name, child], index) => { + const last = index === entries.length - 1; + const duration = child.duration === undefined ? "" : ` ${child.duration}`; + lines.push(`${indent}${last ? "└─" : "├─"} ${name}${duration}`); + lines.push(...renderTrace(child, `${indent}${last ? " " : "│ "}`)); + }); + return lines; +} + +function formatTraces(traces: Array | undefined>): string[] { + const present = traces.filter((trace): trace is Record => isRecord(trace) && Object.keys(trace).length > 0); + if (present.length === 0) return ["trace unavailable"]; + return present.flatMap((trace, index) => { + const root: TraceNode = { children: new Map() }; + for (const [key, value] of Object.entries(trace)) addTraceValue(root, key, value); + const heading = present.length === 1 ? "trace" : `trace ${index + 1}`; + return [heading, ...renderTrace(root, "")]; + }); +} + +function logChat(lines: string[]): void { + console.log(lines.map((line) => `[chat] ${line}`).join("\n")); +} + +function formatOpened(searches: SearchDetail[], opened: OpenedPage[]): string[] { + const openedPages = new Set(); + for (const read of opened) { + if (read.page) openedPages.add(read.page); + if (read.tool === "expand_page") openedPages.add(read.arg); + } + + const best = new Map(); + const distinct = new Set(); + for (const search of searches) { + for (const hit of search.hits) { + if (!hit.page) continue; + distinct.add(hit.page); + const previous = best.get(hit.page); + if (!openedPages.has(hit.page)) continue; + if (!previous || hit.rank < previous.rank) { + best.set(hit.page, { rank: hit.rank, meiliRank: hit.meiliRank, query: search.q }); + } + } + } + + const used = [...best.entries()].sort((a, b) => a[1].rank - b[1].rank || a[0].localeCompare(b[0])); + const seenUnmatched = new Set(); + const unmatched = opened.filter((read) => { + const page = read.tool === "expand_page" ? read.arg : read.page; + if (!page || best.has(page) || seenUnmatched.has(`${read.tool}\0${read.arg}\0${page}`)) return false; + seenUnmatched.add(`${read.tool}\0${read.arg}\0${page}`); + return true; + }); + + const lines = [` kept ${distinct.size} pages, ${used.length} opened from those hits`]; + const rows: Array<{ label: string; query?: string }> = [ + ...used.map(([page, hit]) => ({ label: `r${hit.rank} m${hit.meiliRank} ${page}`, query: hit.query })), + ...unmatched.map((read) => ({ + label: `${read.tool} "${read.arg}"${read.page ? ` → ${read.page}` : ""} not in kept hits`, + })), + ]; + rows.forEach((row, index) => { + const last = index === rows.length - 1; + lines.push(` ${last ? "└─" : "├─"} ${row.label}`); + if (row.query) lines.push(` ${last ? " " : "│ "}"${row.query}"`); + }); + return lines; +} + +function rankingScore(hit: unknown): number | undefined { + if (!isRecord(hit) || typeof hit._rankingScore !== "number") return undefined; + return hit._rankingScore; +} + +function federationIndexUid(hit: unknown): string | undefined { + if (!isRecord(hit) || !isRecord(hit._federation) || typeof hit._federation.indexUid !== "string") return undefined; + return hit._federation.indexUid; +} + +function toolArg(input: unknown): string | undefined { + if (!isRecord(input)) return undefined; + const value = input.q ?? input.page ?? input.route; + return typeof value === "string" ? value : undefined; +} + +type RankedHit = { hit: T; score: number; originalIndex: number }; + +async function rerankHits( + query: string, + pool: T[], +): Promise<{ ranked: RankedHit[]; ms: number }> { + const started = performance.now(); + const documents = pool.map(rerankDocument); + try { + const { ranking } = await rerank({ + model: voyage.reranking("rerank-3"), + query, + documents, + topN: RERANK_TOP, + }); + return { + ranked: ranking.map((item) => ({ hit: pool[item.originalIndex], score: item.score, originalIndex: item.originalIndex })), + ms: elapsedMs(started), + }; + } catch (error) { + console.error("[chat] rerank failed", error); + throw error; + } +} + +const chatUserSchema = z.object({ + codeLanguage: z.string().nullable().optional(), +}); + +/** Missing or invalid preference becomes `{ codeLanguage: null }`. Never rejects the request. */ +function parseChatUser(value: unknown): ChatUser { + const parsed = chatUserSchema.safeParse(value ?? {}); + if (!parsed.success) return { codeLanguage: null }; + const codeLanguage = parsed.data.codeLanguage?.trim() ?? ""; + if (!codeLanguage || codeLanguage.length > 40) return { codeLanguage: null }; + return { codeLanguage }; +} + +function isValidMessages(messages: unknown): messages is UIMessage[] { + if (!Array.isArray(messages) || messages.length === 0 || messages.length > MAX_MESSAGES) return false; + return messages.every( + (message) => + message && + typeof message === "object" && + Array.isArray(message.parts) && + message.parts.every( + (part: { type?: unknown; text?: unknown }) => + part.type !== "text" || (typeof part.text === "string" && part.text.length <= MAX_TEXT_LENGTH), + ), + ); +} + +export function OPTIONS(request: Request): Response { + const { allowedOrigins } = readConfig(); + const origin = request.headers.get("origin"); + if (!isAllowedOrigin(origin, allowedOrigins)) return new Response(null, { status: 403 }); + return new Response(null, { status: 204, headers: corsHeaders(origin) }); +} + +export async function POST(request: Request): Promise { + const config = readConfig(); + const origin = request.headers.get("origin"); + if (!isAllowedOrigin(origin, config.allowedOrigins)) return new Response(null, { status: 403 }); + const headers = corsHeaders(origin); + + const { openrouterKey, meiliUrl, meiliKey, voyageKey } = config; + if (!openrouterKey || !meiliUrl || !meiliKey || !voyageKey) { + const missing = (["OPENROUTER_API_KEY", "MEILISEARCH_URL", "MEILISEARCH_KEY", "VOYAGE_API_KEY"] as const).filter( + (name) => !process.env[name], + ); + console.error(`[chat] missing environment variables: ${missing.join(", ")}`); + return json(500, { error: "Chat is not configured" }, headers); + } + + void fetch(new URL("/health", meiliUrl)).catch(() => {}); + void fetch("https://api.voyageai.com/", { method: "HEAD" }).catch(() => {}); + + let messages: unknown; + let userInput: unknown; + try { + ({ messages, user: userInput } = await request.json()); + } catch { + return json(400, { error: "Invalid JSON" }, headers); + } + if (!isValidMessages(messages)) return json(400, { error: "Invalid messages" }, headers); + + const user = parseChatUser(userInput); + const started = performance.now(); + let inFlightMeili = 0; + let answerFirstOutput: number | undefined; + const searches: SearchDetail[] = []; + const searchDetails = new Map(); + const seenChunks = new Set(); + let searchCount = 0; + let readCount = 0; + const readDetails = new Map(); + const opened: OpenedPage[] = []; + + async function runMeili( + spans: MeiliSpan[], + task: () => Promise, + ): Promise { + inFlightMeili += 1; + const inFlight = inFlightMeili; + const meiliStarted = performance.now(); + try { + const value = await task(); + spans.push({ + ms: elapsedMs(meiliStarted), + processingMs: value.processingTimeMs, + inFlight, + trace: isRecord(value.performanceDetails) ? value.performanceDetails : undefined, + }); + return value; + } finally { + inFlightMeili -= 1; + } + } + + function rememberRead(toolCallId: string, tool: string, arg: string, body: unknown, spans: MeiliSpan[]): void { + const resolved = isRecord(body) && typeof body.page === "string" ? body.page : undefined; + const matched = isRecord(body) && typeof body.matched === "string" ? body.matched : undefined; + readDetails.set(toolCallId, { + bytes: utf8Bytes(body), + page: resolved ?? (tool === "expand_page" ? arg : undefined), + matched, + meili: summarizeSpans(spans), + }); + opened.push({ tool, arg, page: tool === "expand_page" ? arg : resolved }); + } + + const openrouter = createOpenRouter({ apiKey: openrouterKey }); + const main = openrouter(config.model, { reasoning: { effort: "low" }, provider: OPENAI_PROVIDER }); + const fast = openrouter(config.queryModel, { + reasoning: { effort: "low", exclude: true }, + provider: OPENAI_PROVIDER, + }); + const client = new Meilisearch({ host: meiliUrl, apiKey: meiliKey }); + const index = client.index(config.docsIndex); + const routes = client.index(config.routesIndex); + + const renderSample = (codes: Record | undefined): string => { + const selected = selectSample(codes, user.codeLanguage); + if (!selected.code && !selected.note) return ""; + const block = selected.code ? `\`\`\`${fenceLanguage(selected.language)}\n${selected.code}\n\`\`\`` : ""; + return [block, selected.note].filter(Boolean).join("\n\n"); + }; + + const text = (value: unknown): string => (typeof value === "string" ? value : ""); + const textOrNull = (value: unknown): string | null => (typeof value === "string" ? value : null); + const toHit = (value: unknown): SearchHit => { + const hit = isRecord(value) ? value : {}; + const contentType = text(hit.content_type); + const content = contentType === "code_sample" ? renderSample(stringRecord(hit.codes)) : text(hit.content); + return { + title: text(hit.title), + page: text(hit.page), + url: text(hit.url), + anchor: textOrNull(hit.anchor), + breadcrumb: text(hit.breadcrumb), + content, + content_type: contentType, + tab: textOrNull(hit.tab), + group: textOrNull(hit.group), + }; + }; + + const search = tool({ + description: + "Search the Meilisearch documentation. Results are prose chunks, code samples already in the reader's language, or API route chunks. Pass one short keyword-rich query, about 12 words. If the question has two distinct parts, call this tool twice in the same turn. On a follow-up, include the topic from earlier turns. Call expand_page or get_api_route only when a hit is missing detail: parameters, a full example, or steps the chunk cuts off.", + inputSchema: z.object({ + q: z.string().min(1).max(500).describe("The search query"), + }), + execute: async ({ q }, { toolCallId }) => { + if (searchCount >= MAX_SEARCHES) return { hits: [], note: "Search budget used. Answer from earlier hits." }; + searchCount += 1; + const spans: MeiliSpan[] = []; + const retrieved = await runMeili(spans, () => + client.multiSearch({ + federation: { limit: RETRIEVE, showPerformanceDetails: true }, + queries: [ + { + indexUid: config.docsIndex, + q, + hybrid: { embedder: config.embedder, semanticRatio: 0.5 }, + showRankingScore: true, + attributesToRetrieve: [...HIT_FIELDS, "codes"], + }, + { + indexUid: config.routesIndex, + q, + hybrid: { embedder: config.embedder, semanticRatio: 0.5 }, + showRankingScore: true, + attributesToRetrieve: [...HIT_FIELDS], + }, + ], + }), + ); + const rawHits = retrieved.hits; + const docs = rawHits.filter((hit) => federationIndexUid(hit) === config.docsIndex).length; + const routeHits = rawHits.filter((hit) => federationIndexUid(hit) === config.routesIndex).length; + const pool = rawHits.map((hit) => toHit(hit)); + const detail: SearchDetail = { + q, + meili: summarizeSpans(spans), + rerankMs: 0, + candidates: pool.length, + reranked: 0, + kept: 0, + cutoff: null, + dupes: 0, + docs, + routes: routeHits, + meiliBytes: utf8Bytes(rawHits), + resultBytes: utf8Bytes({ hits: [] }), + pre: scoreCurve( + rawHits.map((hit) => rankingScore(hit)), + PRE_RANKS, + ), + post: scoreCurve([], POST_RANKS), + hits: [], + }; + searches.push(detail); + searchDetails.set(toolCallId, detail); + if (pool.length === 0) return { hits: [] }; + const reranked = await rerankHits(q, pool); + const top = reranked.ranked[0]?.score ?? 0; + const cutoff = top - MAX_DROP; + let dupes = 0; + const kept = reranked.ranked.flatMap((item, index) => { + if (index >= MIN_KEEP && (item.score < MIN_SCORE || item.score < cutoff)) return []; + const key = `${item.hit.page}#${item.hit.anchor ?? ""}`; + if (seenChunks.has(key)) { + dupes += 1; + return []; + } + seenChunks.add(key); + return [{ ...item, voyageRank: index + 1 }]; + }); + detail.rerankMs = reranked.ms; + detail.reranked = reranked.ranked.length; + detail.kept = kept.length; + detail.cutoff = reranked.ranked.length === 0 ? null : Math.max(MIN_SCORE, cutoff); + detail.dupes = dupes; + detail.post = scoreCurve( + reranked.ranked.map((item) => item.score), + POST_RANKS, + ); + detail.hits = kept.flatMap((item) => (item.hit.page ? [{ page: item.hit.page, rank: item.voyageRank, meiliRank: item.originalIndex + 1 }] : [])); + detail.resultBytes = utf8Bytes({ hits: kept.map((item) => item.hit) }); + return { hits: kept.map((item) => item.hit) }; + }, + }); + + // Chunks of one page are ordered by chunk_index. Joining them rebuilds the page, samples included. + const expandPage = tool({ + description: + "Read one documentation page in full, including code samples already chosen for the reader's language. Use it only when a search hit cuts off the steps or example the answer needs. Pass the `page` field of a search result.", + inputSchema: z.object({ + page: z + .string() + .min(1) + .max(300) + .regex(/^[\w\-/.]+$/) + .describe('The "page" field of a search result, for example "capabilities/personalization/overview"'), + }), + execute: async ({ page }, { toolCallId }) => { + if (readCount >= MAX_READS) { + const denied = { error: "Read budget used. Answer from what you have." }; + rememberRead(toolCallId, "expand_page", page, denied, []); + return denied; + } + readCount += 1; + const spans: MeiliSpan[] = []; + const { hits, estimatedTotalHits } = await runMeili(spans, () => + index.search("", { + filter: `page = "${page}"`, // the schema regex rejects quotes and backslashes + sort: ["chunk_index:asc"], + limit: MAX_PAGE_CHUNKS, + attributesToRetrieve: ["title", "url", "content", "content_type", "codes"], + showPerformanceDetails: true, + }), + ); + if (hits.length === 0) { + const missing = { error: `No page found for "${page}". Use the page field of a search result.` }; + rememberRead(toolCallId, "expand_page", page, missing, spans); + return missing; + } + const parts = hits.map((hit) => + hit.content_type === "code_sample" ? renderSample(hit.codes as Record | undefined) : String(hit.content ?? ""), + ); + const markdown = [`# ${hits[0].title}`, ...parts.filter(Boolean)].join("\n\n"); + const { text, truncated } = truncate(markdown, MAX_PAGE_CHARS); + const body = { + title: hits[0].title as string, + url: (hits[0].url as string).split("#")[0], + markdown: text, + truncated: truncated || (estimatedTotalHits ?? hits.length) > hits.length, + }; + rememberRead(toolCallId, "expand_page", page, body, spans); + return body; + }, + }); + + const routeAttributes = ["title", "page", "url", "content", "chunk_index", "codes"]; + const loadRoute = async (filter: string, spans: MeiliSpan[]) => { + const { hits } = await runMeili(spans, () => + routes.search("", { + filter, + sort: ["chunk_index:asc"], + limit: MAX_PAGE_CHUNKS, + attributesToRetrieve: routeAttributes, + showPerformanceDetails: true, + }), + ); + return hits; + }; + + const presentRoute = (hits: Record[], matched: "exact" | "similar" | "sdk_method") => { + const codes = hits.find((hit) => hit.codes)?.codes as Record | undefined; + const selected = selectSample(codes, user.codeLanguage); + const markdown = hits.map((hit) => String(hit.content ?? "")).join("\n\n"); + const { text, truncated } = truncate(markdown, MAX_PAGE_CHARS); + return { + matched, + title: hits[0].title as string, + page: hits[0].page as string, + url: String(hits[0].url).split("#")[0], + markdown: text, + truncated, + language: selected.language, + code: selected.code, + ...(selected.note ? { note: selected.note } : {}), + }; + }; + + const pagesOf = (hits: readonly object[]) => { + const seen = new Set(); + const pages: { title: string; page: string; url: string }[] = []; + for (const hit of hits) { + if (!isRecord(hit)) continue; + const page = hit.page; + if (typeof page !== "string" || seen.has(page)) continue; + seen.add(page); + const url = hit.url; + pages.push({ + title: typeof hit.title === "string" ? hit.title : "", + page, + url: typeof url === "string" ? url.split("#")[0] : "", + }); + } + return pages; + }; + + const getApiRoute = tool({ + description: + 'Read one API route: its parameters, request body, and response example, plus a code sample already chosen for the reader\'s language. Pass a method and path ("POST /indexes/{index_uid}/search"), a docs URL, a slug such as "search-with-post", or an SDK method name such as updateEmbedders or update_embedders. If note is set, the reader\'s language has no sample: show the HTTP request and say so.', + inputSchema: z.object({ + route: z + .string() + .min(1) + .max(500) + .describe( + 'Method and path, docs URL, slug, or SDK method name. For example "POST /indexes/{index_uid}/search", "search-with-post", or "updateEmbedders".', + ), + }), + execute: async ({ route }, { toolCallId }) => { + if (readCount >= MAX_READS) { + const denied = { error: "Read budget used. Answer from what you have." }; + rememberRead(toolCallId, "get_api_route", route, denied, []); + return denied; + } + readCount += 1; + const spans: MeiliSpan[] = []; + const finish = (body: unknown) => { + rememberRead(toolCallId, "get_api_route", route, body, spans); + return body; + }; + const candidates = lookupCandidates(route); + if (candidates.length === 0) return finish({ error: "Provide a method and path, a docs URL, a slug, or an SDK method name." }); + const exact = await loadRoute(`lookup_keys IN [${candidates.map(quoteFilter).join(", ")}]`, spans); + if (exact.length > 0) return finish(presentRoute(exact, "exact")); + + const methods = methodCandidates(route); + if (methods.length > 0) { + const methodHits = await loadRoute(`sdk_methods IN [${methods.map(quoteFilter).join(", ")}]`, spans); + const pages = pagesOf(methodHits); + if (pages.length === 1) return finish(presentRoute(methodHits, "sdk_method")); + if (pages.length > 1) { + return finish({ + matches: pages.slice(0, 8), + hint: "Several routes match this SDK method. Call get_api_route again with the method and path (the title or page).", + }); + } + } + + const similar = await runMeili(spans, () => + routes.search(route, { + limit: 5, + hybrid: { embedder: config.embedder, semanticRatio: 0.5 }, + attributesToRetrieve: ["page"], + showPerformanceDetails: true, + }), + ); + const page = similar.hits[0]?.page as string | undefined; + if (!page) return finish({ error: `No API route found for "${route}".` }); + const hits = await loadRoute(`page = ${quoteFilter(page)}`, spans); + if (hits.length === 0) return finish({ error: `No API route found for "${route}".` }); + return finish(presentRoute(hits, "similar")); + }, + }); + + const logFooter = (status: string) => { + const lines = [`└─ ${status}`]; + if (answerFirstOutput !== undefined) lines.push(` answer firstOutput +${formatDuration(answerFirstOutput)}`); + lines.push(...formatOpened(searches, opened)); + logChat(lines); + }; + + logChat(["trace"]); + const result = streamText({ + model: main, + system: SYSTEM_PROMPT, + messages: await convertToModelMessages(messages), + tools: { search, expand_page: expandPage, get_api_route: getApiRoute }, + stopWhen: isStepCount(3), + prepareStep: ({ stepNumber }) => { + if (stepNumber === 0) return { model: fast, activeTools: ["search"], toolChoice: "required" }; + if (stepNumber === 1) return { activeTools: ["expand_page", "get_api_route"] }; + return { toolChoice: "none" }; + }, + onStepEnd: (step) => { + const stepMs = Math.round(step.performance.stepTimeMs); + const now = elapsedMs(started); + const ttft = step.performance.timeToFirstOutputMs; + const firstOutputAt = ttft === undefined ? undefined : now - stepMs + Math.round(ttft); + if (step.finishReason === "stop" && firstOutputAt !== undefined) answerFirstOutput = firstOutputAt; + + const durations = step.toolCalls.map((call) => step.performance.toolExecutionMs[call.toolCallId] ?? 0); + const slowest = durations.length > 1 ? Math.max(...durations) : undefined; + const lines = [ + `├─ step ${step.stepNumber} ${formatDuration(stepMs)} at +${formatDuration(now)} model ${formatDuration(Math.round(step.performance.responseTimeMs))} firstOutput ${firstOutputAt === undefined ? "n/a" : `+${formatDuration(firstOutputAt)}`} in ${formatCount(step.usage.inputTokens)} cache ${formatCount(step.usage.inputTokenDetails?.cacheReadTokens)} out ${formatCount(step.usage.outputTokens)} reason ${formatCount(step.usage.outputTokenDetails?.reasoningTokens)} ${step.finishReason}`, + ]; + + step.toolCalls.forEach((call, index) => { + const last = index === step.toolCalls.length - 1; + const branch = last ? "└─" : "├─"; + const pad = last ? " " : "│ "; + const duration = step.performance.toolExecutionMs[call.toolCallId]; + const slow = slowest !== undefined && duration === slowest && slowest > 0 ? " slowest" : ""; + const arg = toolArg(call.input) ?? ""; + const durationLabel = duration === undefined ? "n/a" : formatDuration(Math.round(duration)); + + if (call.toolName === "search") { + const detail = searchDetails.get(call.toolCallId); + lines.push(`│ ${branch} search ${durationLabel}${slow} "${arg}"`); + if (!detail) { + lines.push(`│ ${pad}no detail`); + return; + } + lines.push( + `│ ${pad}meili ${formatDuration(detail.meili.ms)} processing ${formatDuration(detail.meili.processingMs)} wait ${formatDuration(detail.meili.waitMs)} inFlight ${detail.meili.inFlight} payload ${formatBytes(detail.meiliBytes)}`, + ); + for (const line of formatTraces(detail.meili.traces)) lines.push(`│ ${pad}${line}`); + const cutoff = detail.cutoff === null ? "n/a" : detail.cutoff.toFixed(3); + lines.push( + `│ ${pad}rerank ${formatDuration(detail.rerankMs)} ${detail.candidates}→${detail.reranked} trimmed ${detail.reranked}→${detail.kept} cutoff ${cutoff} dupes ${detail.dupes} docs ${detail.docs} routes ${detail.routes} result ${formatBytes(detail.resultBytes)}`, + ); + lines.push(`│ ${pad}${formatCurve("pre ", detail.pre)}`); + lines.push(`│ ${pad}${formatCurve("post", detail.post)}`); + return; + } + + const read = readDetails.get(call.toolCallId); + const page = read?.page && read.page !== arg ? ` page ${read.page}` : ""; + const matched = read?.matched ? ` ${read.matched}` : ""; + const bytes = read ? ` ${formatBytes(read.bytes)}` : ""; + const meili = read + ? ` meili ${formatDuration(read.meili.ms)} processing ${formatDuration(read.meili.processingMs)} wait ${formatDuration(read.meili.waitMs)} inFlight ${read.meili.inFlight}` + : ""; + lines.push(`│ ${branch} ${call.toolName} ${durationLabel}${slow} "${arg}"${bytes}${meili}${page}${matched}`); + if (read) for (const line of formatTraces(read.meili.traces)) lines.push(`│ ${pad}${line}`); + }); + + logChat(lines); + }, + onStepError: (event) => { + logChat([`├─ step ${event.stepNumber} failed at +${formatDuration(elapsedMs(started))}`]); + console.error("[chat] step error", event.error); + }, + onEnd: (event) => { + logFooter( + `roundtrip ${formatDuration(elapsedMs(started))} steps ${event.steps.length} ${event.finishReason} in ${formatCount(event.usage.inputTokens)} cache ${formatCount(event.usage.inputTokenDetails?.cacheReadTokens)} out ${formatCount(event.usage.outputTokens)} reason ${formatCount(event.usage.outputTokenDetails?.reasoningTokens)}`, + ); + }, + onAbort: (event) => { + logFooter(`aborted at +${formatDuration(elapsedMs(started))} steps ${event.steps.length}`); + }, + }); + + return result.toUIMessageStreamResponse({ + headers, + onError: (error) => { + console.error("[chat] stream error", error); + return "Something went wrong. Please try again."; + }, + }); +} diff --git a/chat/package-lock.json b/chat/package-lock.json new file mode 100644 index 000000000..9b2e2fde0 --- /dev/null +++ b/chat/package-lock.json @@ -0,0 +1,3650 @@ +{ + "name": "meilisearch-docs-chat", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "meilisearch-docs-chat", + "dependencies": { + "@ai-sdk/react": "^4.0.166", + "@ai-sdk/voyage": "^2.0.0", + "@openrouter/ai-sdk-provider": "^3.1.0", + "ai": "^7.0.162", + "meilisearch": "^0.60.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", + "shiki": "^4.6.0", + "streamdown": "^2.7.1", + "zod": "^4.4.3" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.3.4", + "@types/node": "^20.0.0", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", + "@vitejs/plugin-react": "^6.2.1", + "tailwindcss": "^4.3.4", + "typescript": "^5.0.0", + "vite": "^8.3.5" + } + }, + "node_modules/@ai-sdk/gateway": { + "version": "4.0.135", + "resolved": "https://registry.npmjs.org/@ai-sdk/gateway/-/gateway-4.0.135.tgz", + "integrity": "sha512-gnMpZP42WIhy24fpnbbtV7SBqEhYY8ZSMsfgoNRh5r41D1HwnJTm1k7d4uYSIpiaEb5J8IPTHVSzwgWmGoSFEA==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "4.0.35", + "@ai-sdk/provider-utils": "5.0.74", + "@vercel/oidc": "3.2.0" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/mcp": { + "version": "2.0.90", + "resolved": "https://registry.npmjs.org/@ai-sdk/mcp/-/mcp-2.0.90.tgz", + "integrity": "sha512-OCjo4WpxpEtJ6ZIhoni9KxKfSHNua33Ox/gpUNtY+CU1TlZxMVBu5P0jbMNlUxTyqgD0UDtyw5IiU1PAE9Jwgw==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "4.0.35", + "@ai-sdk/provider-utils": "5.0.74", + "cross-spawn": "^7.0.6", + "pkce-challenge": "^5.0.1" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/provider": { + "version": "4.0.35", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-4.0.35.tgz", + "integrity": "sha512-yBz6fmLS8MSCIzy7NiHEUAq56ZLD4ZA1GR6bpXBxgbwUacP1La7LuwAr/xy9jSzthem4F8Xu2OrhvU/JrE9fYA==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@ai-sdk/provider-utils": { + "version": "5.0.74", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-5.0.74.tgz", + "integrity": "sha512-42R/bzs520oy3PMj8FI1KGegjLEjaUsNcaEltb6yxN0KnmhihWvlgMb19pEF8CKKqv6Bq6+qMVji8mtyrMubSQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "4.0.35", + "@standard-schema/spec": "^1.1.0", + "@workflow/serde": "4.1.0", + "eventsource-parser": "^3.0.8", + "undici": "^7.29.1" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/react": { + "version": "4.0.166", + "resolved": "https://registry.npmjs.org/@ai-sdk/react/-/react-4.0.166.tgz", + "integrity": "sha512-/VmUL9WPMIZ8cctoZFmQSZ7SorvbxMF6eJF88QhnvdsZ/oRKZhzqVmsSYZEqbitkZqL+sLYgISUjg0y12+xfsg==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/mcp": "2.0.90", + "@ai-sdk/provider": "4.0.35", + "@ai-sdk/provider-utils": "5.0.74", + "ai": "7.0.162", + "swr": "^2.4.1", + "throttleit": "2.1.0" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "react": "^18 || ~19.0.1 || ~19.1.2 || ^19.2.1" + } + }, + "node_modules/@ai-sdk/voyage": { + "version": "2.0.84", + "resolved": "https://registry.npmjs.org/@ai-sdk/voyage/-/voyage-2.0.84.tgz", + "integrity": "sha512-os7taluBR5p1Coyau4Vg/MTxwdCmMbfICtX32HdfARFcvsd5sdojM+1UVqe2k0Z/xHgx+JDnh6RLtnrg4bBT1w==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "4.0.39", + "@ai-sdk/provider-utils": "5.0.82" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@ai-sdk/voyage/node_modules/@ai-sdk/provider": { + "version": "4.0.39", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-4.0.39.tgz", + "integrity": "sha512-jRvAhvW23+TeMGVCME2WGejP/TjzyDg7TplUep3t8HcEYnC2/8zqhCy9RRrjjVs1ljcygABZ8pQ21MbCRdF01w==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=22" + } + }, + "node_modules/@ai-sdk/voyage/node_modules/@ai-sdk/provider-utils": { + "version": "5.0.82", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider-utils/-/provider-utils-5.0.82.tgz", + "integrity": "sha512-9s3Le9LsTR0exy14H8SERw4uMgFhiP0yJVoLefzfQCnnptj71noYh1AoVEsjfJjmMH1y16+1OqBVTDpTpU6M3Q==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/provider": "4.0.39", + "@standard-schema/spec": "^1.1.0", + "@workflow/serde": "4.1.0", + "eventsource-parser": "^3.0.8" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@openrouter/ai-sdk-provider": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@openrouter/ai-sdk-provider/-/ai-sdk-provider-3.1.0.tgz", + "integrity": "sha512-BQy1TA9fKrh47s9ivsO6FY5QimN7GUF0i8Qon3pkxQclEgShso0dClpcWn8OIyPLEZZPFaFKgI8TW4S/O0p0Dw==", + "license": "Apache-2.0", + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "ai": "^7.0.0", + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.156.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.156.0.tgz", + "integrity": "sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/oxc-project" + } + }, + "node_modules/@rolldown/binding-android-arm-eabi": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.16.tgz", + "integrity": "sha512-ia3DwAs0OsMGS7+IConptSiyk9pEXkOx/AbJ2n/lAGxH3QkWQus1t8d7gnAT38FCU2sQu8lUbeR6AiZFv4JxaA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.16.tgz", + "integrity": "sha512-kx5wBiMB6E7TEvpl2B9gjLU004BkvEm2Dr941BFjx/SontPwSzNuQUIoVKxHHoSjpFIfHMmcguyLOtyn0hObRg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.16.tgz", + "integrity": "sha512-qslZrXnKJU4cUpjoAmtAo/KQM9e2IRMlmpig6Zpwj+8KWxW8v+nkAf9216Bsek9lOC1jvg2yCjygCFo2f83msQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.16.tgz", + "integrity": "sha512-FdF+y48ND13eAyM2mQn+85kvAqNlvRWROy2rhgA463X/0Gv4vGtazZtfaF1mRBLscYvtOlh4QnLjOWiFzX69OQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.16.tgz", + "integrity": "sha512-ddjqFM5e95AgLbUPtKIS7V1KTVlA0RUgCVr5mn+/IEhsdy3pr+Vuj/HZ7nlMN2FyxIwUktOH1LEPIQXO1v9y1Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.16.tgz", + "integrity": "sha512-tHdKWbFkFBI687iim3LIyIvyL7j66VvQYkDPss5Stn/qyE2tWkR1YD0dXmXPFKKqT/o5ZEJVsaRsWS2meQwGOA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.16.tgz", + "integrity": "sha512-FJiLGAblPBMlBEdbOqw6kW6QcXDWAf/oJu7gYs9ZJZwmg+K+/zjFLxPTIY9izJUzxzc24FHvmseyA0IvJSl17w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.16.tgz", + "integrity": "sha512-hrJpblMsrQ58U9veWpbXzkhV5zStunds6HWLprqq1qauvgBr1E6P+24kLj6lSLI9vjRn/RYpjprhkHQPKGWpNg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.16.tgz", + "integrity": "sha512-qJd/dC6j6CwLG9/s/RP2nb1RZ0GIgj7Ioj7x/SYa3RzjVrlzrmH0fhIOpfvqQDeIsdP0loi+kHaMhJzY1PBIaA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.16.tgz", + "integrity": "sha512-Vx7Xg5uUJuNcujJjI70OICaH0EYj80BtOLZTSN7uOYg8QOLlyKnaG0IW7Fn/J0IpJsaKzmDKMhOQv1JBM9m9vg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.16.tgz", + "integrity": "sha512-TNKhgE3uJTsTzatUSSYt0Kgo+Oa2uSlSjz4r1aEIea7HX6ULBym4fAlYUhG1i6pjNf2njfCUAfKwr6C3E9Xg1w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.16.tgz", + "integrity": "sha512-7chXdpjXZ8qG0+mIxECN3cT9kvhZ3/oZhMX6Pp876P7CDrIy8nJswva6Mq357JR7eYXfuskwZxMeV1SzoZdHrA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.16.tgz", + "integrity": "sha512-Kwjt+7uNTJK5/MDkGWGVO2KQPnj8yAV75dMpfwyHZrJSXWHrniOB0aUEWlVYf3H1hOqFLIStLdM5QXq6bnKmOQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.16.tgz", + "integrity": "sha512-/LH6WfjDRXXJz/p5xl4TmU+jpcnwcxbKEQBW/GZE0JHfN0lGIyTtsUEGaQ/q/GikkGJ2yLKe6pwm7AnEWO8pdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.16.tgz", + "integrity": "sha512-1lv1KvX0Z871zfk7vw+dnXMMnHNyDwMzWG8Kv3HxDXMOhzCX4SHc7HK319fInP0i+0p9D8brkfzL7pJOaGl+tw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@shikijs/core": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-4.6.0.tgz", + "integrity": "sha512-bfd4OKgvoyXYiYmMRuleA656P4V7M/Du9lcTl38Ngm6KszMj7bq4J1IGZwSYR4c95Tv5UQALtYNWUwaI9UT3xw==", + "license": "MIT", + "dependencies": { + "@shikijs/primitive": "4.6.0", + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5", + "hast-util-to-html": "^9.0.6" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/engine-javascript": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-4.6.0.tgz", + "integrity": "sha512-K0oqxFoL+kEMdz89mHLFO15Tsbv3kFZ6WR1cXZKMvLSc+oqaM00A6pyga1qSeXB22dP0tTiSApRcGBaKWsEccg==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "oniguruma-to-es": "^4.3.6" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-4.6.0.tgz", + "integrity": "sha512-aggd6Q7SuJOXNnsUbfG2XesxBJKBMAw/PDTUo9PyRjMaaJJ2dNrI+q0C+25ARXAK9yLHAlwxc9oRT2u68YKZ7w==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/langs": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-4.6.0.tgz", + "integrity": "sha512-1yMEX3oCVV54LUq/ovfpRkDQoYDkcvjSWFFa/YLUDMiSoRzMi2uxLJYbv41ahT8Lu9lFMaa7hecd3Q39trqUyg==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/primitive": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/primitive/-/primitive-4.6.0.tgz", + "integrity": "sha512-c54+TQEo9ToqgfL/AU8FpjnV09+GA9Oa7M5ROkkXteZfp5XzpAJGXjjvZQFQioJOwm/w/6Z3lIzQstAkl8coag==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/themes": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-4.6.0.tgz", + "integrity": "sha512-qHAVAs80RiGD+IRuH9G+JPDOEc9A/kHsng4EzCUCwB9bLzW6Z0y9WETh2YyCcADJBmfrIaJ1Jp7KBNP6FHkgtQ==", + "license": "MIT", + "dependencies": { + "@shikijs/types": "4.6.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/types": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-4.6.0.tgz", + "integrity": "sha512-+ENG1adsKt/X7cRYw1Nl7BEpBmPOjmQ7bR/eGmHuMlT8gtOFf3KEi5l31DJYyAWhW6Y6bjP1plU7FmaxWGENFw==", + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.1.0.tgz", + "integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==", + "license": "MIT" + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "license": "MIT" + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.4.tgz", + "integrity": "sha512-b7QK/QG04v3j04NbpG82XLCedRyulnkuwUDwRa9oK/ypnJIzMapz2Wg+0TltVczjUzDaJJHIa1+jj9aMUOFMTQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.24.5", + "jiti": "^2.7.0", + "lightningcss": "1.33.0", + "magic-string": "^1.1.0", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.4" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.4.tgz", + "integrity": "sha512-riqsRw2sLF7B1sNCCkTl3KYXEqvhTiABzZ/4oxxHfZ3c3Td60bCBfOrUuUGOiHagd3E7V+zG46c+XBDWZGFBcg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.4", + "@tailwindcss/oxide-darwin-arm64": "4.3.4", + "@tailwindcss/oxide-darwin-x64": "4.3.4", + "@tailwindcss/oxide-freebsd-x64": "4.3.4", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.4", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.4", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.4", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.4", + "@tailwindcss/oxide-linux-x64-musl": "4.3.4", + "@tailwindcss/oxide-wasm32-wasi": "4.3.4", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.4", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.4" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.4.tgz", + "integrity": "sha512-qkjxt+EFocOi3mtsUS3ndlj6yj4SHubwBdvBynLnS8T4mvSzX0Enn0CpypJKmBEtczUAXOHVZKA2zTGzSNU2Sg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.4.tgz", + "integrity": "sha512-i/awUA/7mJQAbA3AzCW8aQtUh5goMieUdF1zOoclLaJUCxDvsXQ8VJqpQZY3dfcHS6PJjd3tw25nNneD/mEviQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.4.tgz", + "integrity": "sha512-q56V9U6AnoYz/yj/alkDLhSQ9AZoXQSEl93f7WETa0+32CudbqM57BXdYXfMYPKudueXKaA+MG6L/0KRseF7Jg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.4.tgz", + "integrity": "sha512-r0W7A+Z9HTHh7bwihJl45E/zZKLjxD50/jToVF/E/RZHSl8+EWO+4yKKJpPMcUooT9hdoip3Zx1uWnbMg4N79g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.4.tgz", + "integrity": "sha512-3aih/sRxzeYfi2Bkh+bGYNf2YU9Llamb2mpA7BNF1obYzdgEeWDAMQzK6BSwzLhs/eTdOaSur92qrGfchagUtQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.4.tgz", + "integrity": "sha512-ktJSrPGQou4OqL88rDEx5CkeM9BjzrwZvYo8u7B7VL1zkBa2XBm351o4MQrek95qikb2M++26Y7w7vbH6Mgl8g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.4.tgz", + "integrity": "sha512-rt3hjUxT7utAtcB+df6wHyaXDyxhE7Zd1x7L/nvB5Jb2qBb8dZwFUoWqeRja1BaF5OlSqkKSjBmVXj9OsevmCQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.4.tgz", + "integrity": "sha512-XE3jO2yOOWjttpeGvpwf3/b274NMi3QapQSAI/EzsgrmYNan1Tw8dXT9JQkN7K0OgvuqiC8mcCyNvGzEkpVJPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.4.tgz", + "integrity": "sha512-PaAZ2FjJaZk9SQLYtKIfQWiFm/xtl7pX2MKPgCzn0mS/VU54yu+vP457AJdB2XFLxU3gO2abLCt8N7Lg4EbKNg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.4.tgz", + "integrity": "sha512-bjO9WmoM687p8AoCIyw1DUqzpAs4JICLvNmIPxIWDmhw8IOsdubtWQLShyJmISnDKtRy1BBApHVOUl6sNFQQJA==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.11.3", + "@emnapi/runtime": "^1.11.3", + "@emnapi/wasi-threads": "^1.2.3", + "@napi-rs/wasm-runtime": "^1.2.2", + "@tybys/wasm-util": "^0.10.3", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": { + "version": "1.11.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.3", + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": { + "version": "1.11.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": { + "version": "1.2.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": { + "version": "1.2.2", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.3" + }, + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=23.5.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.3", + "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.3" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": { + "version": "0.10.3", + "dev": true, + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": { + "version": "2.8.1", + "dev": true, + "inBundle": true, + "license": "0BSD", + "optional": true + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.4.tgz", + "integrity": "sha512-jCrwCvWVtt7ruMXp6dFPd5KBNU8o1tWtEdZbTL/w/hvD3lUYZA0E2mmfvTzW4QLHIx5wGQU9HeY7997R1QTrEg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.4.tgz", + "integrity": "sha512-cge1wcedn1FrRSXL22lF5sNDYr8c9+VImk7zFYLPs12jkDmchSrZNfzWqOKub+5Hb/aYRdDEqERGGDKONBlOzQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.4.tgz", + "integrity": "sha512-wGukGWb8SVuN7+FJvSS7M5eSJWDIWwVSvUvj1q41eTIhGPsS2DAgFWjA7YURJNwjHSgty59Hz8iMUiyO+YMHBQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.4", + "@tailwindcss/oxide": "4.3.4", + "tailwindcss": "4.3.4" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@types/debug": { + "version": "4.1.13", + "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz", + "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==", + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", + "license": "MIT" + }, + "node_modules/@types/estree-jsx": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz", + "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==", + "license": "MIT", + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/@types/hast": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz", + "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.19.43", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz", + "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/react": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.3.0.tgz", + "integrity": "sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.3.0", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.3.0.tgz", + "integrity": "sha512-ZI7bU42mZXXKHn/qNLEw2IrbiINU7X5+vfgdixBHkCNpYWXjKgfQ/P+uyGb5CjOLB9UcnTeg3rylQtV2hym44Q==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.3.0" + } + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.4.0.tgz", + "integrity": "sha512-1mEZtMKPM09vDmQt5y7YvmN2+DFTP7Tg0EWXdic8/C6VRnpb33e4ghisCIE3WZjsE2N8mf+QV1Zqh7ZFYLWInQ==", + "license": "ISC" + }, + "node_modules/@vercel/oidc": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@vercel/oidc/-/oidc-3.2.0.tgz", + "integrity": "sha512-UycprH3T6n3jH0k44NHMa7pnFHGu/N05MjojYr+Mc6I7obkoLIJujSWwin1pCvdy/eOxrI/l3uDLQsmcrOb4ug==", + "license": "Apache-2.0", + "engines": { + "node": ">= 20" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-6.2.1.tgz", + "integrity": "sha512-9KyWCij3r0+qLG3Q62vBmv0VyevmYibAtxaCIVK9o0k6CXgaajZRIe8tpfchQcdZArJ5b/7OrIz4W3b2uxVRDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@rolldown/pluginutils": "^1.0.1" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "@rolldown/plugin-babel": "^0.1.7 || ^0.2.0 || ^0.3.0", + "babel-plugin-react-compiler": "^1.0.0", + "oxc-transform-react": ">=0.152.0 <0.157.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "@rolldown/plugin-babel": { + "optional": true + }, + "babel-plugin-react-compiler": { + "optional": true + }, + "oxc-transform-react": { + "optional": true + } + } + }, + "node_modules/@workflow/serde": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@workflow/serde/-/serde-4.1.0.tgz", + "integrity": "sha512-pav4F2BoirECWR7Nf1TKt+2eETcBj7jj4cBefQ8VXQCA6NPkaKeLfj/zMgi+3zYV5ZIBT4GuUiphsj0/b9hPQQ==", + "license": "Apache-2.0" + }, + "node_modules/ai": { + "version": "7.0.162", + "resolved": "https://registry.npmjs.org/ai/-/ai-7.0.162.tgz", + "integrity": "sha512-NPzL6/GmjjPwhzM1kGP9O60TfJ3uXV4Z4A/ztljxcJFAmRAFAjgk5mAHaikk3sE8NQo4NbRCiS+DgHinE2d0sQ==", + "license": "Apache-2.0", + "dependencies": { + "@ai-sdk/gateway": "4.0.135", + "@ai-sdk/provider": "4.0.35", + "@ai-sdk/provider-utils": "5.0.74" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "zod": "^3.25.76 || ^4.1.8" + } + }, + "node_modules/bail": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz", + "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz", + "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-reference-invalid": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz", + "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decode-named-character-reference": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz", + "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==", + "license": "MIT", + "dependencies": { + "character-entities": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.26.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.26.1.tgz", + "integrity": "sha512-PPnnSJq3azKOIewXR/uppBV/6h98dprBJ/WaQ9Qgj10xX1lJLNfg+XShpbsrSqcDSy2yYYyhfXM1wWhftqgyzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/estree-util-is-identifier-name": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz", + "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/eventsource-parser": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.1.tgz", + "integrity": "sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/hast-util-from-parse5": { + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/hast-util-from-parse5/-/hast-util-from-parse5-8.0.4.tgz", + "integrity": "sha512-Yq7XlXor0Cpb71sI2E0zpv8QxQ5a6rfhDEETk4bcgrFX2SvJAY2PHocWwFtL6U9qyfiyByW3wZ6sZEfP2kW81g==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "devlop": "^1.0.0", + "hastscript": "^9.0.0", + "property-information": "^7.0.0", + "vfile": "^6.0.0", + "vfile-location": "^5.0.0", + "web-namespaces": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-parse-selector": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz", + "integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-raw": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/hast-util-raw/-/hast-util-raw-9.1.0.tgz", + "integrity": "sha512-Y8/SBAHkZGoNkpzqqfCldijcuUKh7/su31kEBp67cFY09Wy0mTRgtsLYsiIxMJxlu0f6AA5SUTbDR8K0rxnbUw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "@ungap/structured-clone": "^1.0.0", + "hast-util-from-parse5": "^8.0.0", + "hast-util-to-parse5": "^8.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "parse5": "^7.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0", + "web-namespaces": "^2.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-sanitize": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/hast-util-sanitize/-/hast-util-sanitize-5.0.2.tgz", + "integrity": "sha512-3yTWghByc50aGS7JlGhk61SPenfE/p1oaFeNwkOOyrscaOkMGrcW9+Cy/QAIOBpZxP1yqDIzFMR0+Np0i0+usg==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@ungap/structured-clone": "^1.0.0", + "unist-util-position": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-html": { + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.6.tgz", + "integrity": "sha512-1SZUxCN3TtJAE7e2BQN2MBHsoZ1gnmi9GoCP5Di59CSWptIezSAW09yDZyVbanb78V9eCwrKqdQsjtfVTxYHWA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^3.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "stringify-entities": "^4.0.0", + "zwitch": "^2.0.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-jsx-runtime": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.7.tgz", + "integrity": "sha512-F7DNV2NMcTxA4GqPVHnXzX+mpoPHAIY9rJAVH3CZ1FdBZOcBUEjUuvMkMpHVs/sicEtznh9tMGj5WUR9S4E2rg==", + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "devlop": "^1.0.0", + "estree-util-is-identifier-name": "^3.0.0", + "hast-util-whitespace": "^3.0.0", + "mdast-util-mdx-expression": "^2.0.0", + "mdast-util-mdx-jsx": "^3.0.0", + "mdast-util-mdxjs-esm": "^2.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "style-to-object": "^2.0.0", + "unist-util-position": "^5.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-to-parse5": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/hast-util-to-parse5/-/hast-util-to-parse5-8.0.1.tgz", + "integrity": "sha512-MlWT6Pjt4CG9lFCjiz4BH7l9wmrMkfkJYCxFwKQic8+RTZgWPuWxwAfjJElsXkex7DJjfSJsQIt931ilUgmwdA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "devlop": "^1.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "web-namespaces": "^2.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hastscript": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.3.tgz", + "integrity": "sha512-1ALZXSmCGmW3h8AMz4R4+QKSKFi7sNgXLVwmwB8FYVtl1CwQ3WDkSAEY/d5tp1g/vbQgq2s1WlHgfO3jbw1TsA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-parse-selector": "^4.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/html-url-attributes": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz", + "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/html-void-elements": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/inline-style-parser": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.9.tgz", + "integrity": "sha512-IttN8BqKLxzUrnTqHI+/hwAJQItBAUjdoHERCDv+oOuX48VP6bzW8+QjOXSfoevzq3YrYAwX1uLHp8TqO9yIeg==", + "license": "MIT" + }, + "node_modules/is-alphabetical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz", + "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-alphanumerical": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz", + "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==", + "license": "MIT", + "dependencies": { + "is-alphabetical": "^2.0.0", + "is-decimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-decimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz", + "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-hexadecimal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz", + "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-plain-obj": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz", + "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "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" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/longest-streak": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz", + "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/magic-string": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.4.5.tgz", + "integrity": "sha512-oLLC2+YvQUfAa+vxoufE/yc1icb87M9iXIRqAoR/2EhE/8cb3SF/+Gi0c2By1B+5Vz2e2vQtUvHiu1+63Znh+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.6.0" + } + }, + "node_modules/markdown-table": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.1.0.tgz", + "integrity": "sha512-xpeSCdM+B+6P3ncfgaB7FoDbtJ30xAe6Z18TGT7AgXJsHqCElCICZovQqdRMm7kHgpTyYv36EupqewoFFSB8vw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/marked": { + "version": "18.1.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-18.1.3.tgz", + "integrity": "sha512-9ChMH8EVVgjgID49nsL6IWxWk5c6GtAsq/xw7U1ggkjkU5AGuv68oLTVlFRtvcUYZtpbNyjyvGo3YDu0fGapiw==", + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/mdast-util-find-and-replace": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.4.tgz", + "integrity": "sha512-z4B5c6jrnJ1ltOQemhWYPBSAo6y42Z8Gt2yEgfgNTMcLSU59B8bfj8Z8AnAlJrBGLnqkdAUZ7jdDEqQw3KuipQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "escape-string-regexp": "^5.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-from-markdown": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.1.0.tgz", + "integrity": "sha512-KRLgmPaP2H1ul2bpoJkOS+9pAcDAAj9Nu1mqLnh8NLeJG5tlvj42TH80PIGBpROWlRXLk0lDrWNuZCFy/tsB4A==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark": "^4.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz", + "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==", + "license": "MIT", + "dependencies": { + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-gfm-autolink-literal": "^2.0.0", + "mdast-util-gfm-footnote": "^2.0.0", + "mdast-util-gfm-strikethrough": "^2.0.0", + "mdast-util-gfm-table": "^2.0.0", + "mdast-util-gfm-task-list-item": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-autolink-literal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz", + "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "ccount": "^2.0.0", + "devlop": "^1.0.0", + "mdast-util-find-and-replace": "^3.0.0", + "micromark-util-character": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-strikethrough": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.1.tgz", + "integrity": "sha512-OuJHqvr455pwu2OaOrir7dbzqs4jlWKOtlu9L6GjcIjjQwNyw02VntQsr/Ek6/A13vgnXfUhBekWRUP1OkNivw==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-table": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.1.tgz", + "integrity": "sha512-fiIjPrAy4kz68/eFbPHhsiWDGHhqUSVoU1XsfLM5DsEPXw7MxgiVVyulUggFRckVWeT1KXQXkg5vm3kv4oMSOA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "markdown-table": "^3.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "mdast-util-to-string": "^4.0.0", + "unist-util-visit": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-gfm-task-list-item": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz", + "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-mdx-expression": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz", + "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==", + "license": "MIT", + "dependencies": { + "@types/estree-jsx": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-mdx-jsx": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.1.tgz", + "integrity": "sha512-oXp1GIa+E9IwIs3a106+tr3Bz2MlTTBvlXjOZMoIat11kk7vjqgmBnksB9WHmWv+gZh7k3IUgpAHlwHB7DH4GQ==", + "license": "MIT", + "dependencies": { + "@types/estree-jsx": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "devlop": "^1.1.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0", + "parse-entities": "^4.0.0", + "stringify-entities": "^4.0.0", + "unist-util-stringify-position": "^4.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-mdxjs-esm": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz", + "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==", + "license": "MIT", + "dependencies": { + "@types/estree-jsx": "^1.0.0", + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "devlop": "^1.0.0", + "mdast-util-from-markdown": "^2.0.0", + "mdast-util-to-markdown": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-phrasing": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz", + "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz", + "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-markdown": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.2.2.tgz", + "integrity": "sha512-ELNT5jYDUdx0B/hlUSSAiAEtvqkY3Oriwkp1KEYseF1Ccu4MnKkmE5yK3oE3WGT/Pq8VTE+XwP0GLL5pafY8yA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "@types/unist": "^3.0.0", + "longest-streak": "^3.0.0", + "mdast-util-phrasing": "^4.0.0", + "mdast-util-to-string": "^4.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-decode-string": "^2.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "unist-util-visit": "^5.0.0", + "zwitch": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/mdast-util-to-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz", + "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/meilisearch": { + "version": "0.60.0", + "resolved": "https://registry.npmjs.org/meilisearch/-/meilisearch-0.60.0.tgz", + "integrity": "sha512-z32KgxE6/7hRzbVfzUgzlmNl2OS7TwGE6wSWs2tVEuAY9DWrX6zAmt0s7wTyelH36orIaZ3/t1mQsCsExGtVDQ==", + "license": "MIT", + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/micromark": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.3.tgz", + "integrity": "sha512-oGYfQzHSG5dOMovQcJ3fyTmZlWAWpi0XA0sJwJs+i6OT88o1+Jtw/8z0CmdowSLxGhhFK89rQ/oXph/wN02PNw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "@types/debug": "^4.0.0", + "debug": "^4.0.0", + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-edit-map": "^1.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-core-commonmark": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.4.tgz", + "integrity": "sha512-wxEeE8v8XVvOrxn1TZj74qYhAtTQsSqufHVS3uNVyT1MupXxhyaHk8/9xDNPh9BmL77QNDgWTkZ3RsYHB2ry7w==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "devlop": "^1.0.0", + "micromark-factory-destination": "^2.0.0", + "micromark-factory-label": "^2.0.0", + "micromark-factory-space": "^2.1.0", + "micromark-factory-title": "^2.0.0", + "micromark-factory-whitespace": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-edit-map": "^1.0.0", + "micromark-util-html-tag-name": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-subtokenize": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.3" + } + }, + "node_modules/micromark-extension-gfm": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz", + "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==", + "license": "MIT", + "dependencies": { + "micromark-extension-gfm-autolink-literal": "^2.0.0", + "micromark-extension-gfm-footnote": "^2.0.0", + "micromark-extension-gfm-strikethrough": "^2.0.0", + "micromark-extension-gfm-table": "^2.0.0", + "micromark-extension-gfm-tagfilter": "^2.0.0", + "micromark-extension-gfm-task-list-item": "^2.0.0", + "micromark-util-combine-extensions": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-autolink-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz", + "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==", + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-footnote": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz", + "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-core-commonmark": "^2.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-normalize-identifier": "^2.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-strikethrough": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz", + "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-classify-character": "^2.0.0", + "micromark-util-resolve-all": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-table": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.2.tgz", + "integrity": "sha512-pRzm4kDTu0MjlmBkxmS9yYhw60nncfcEwu9NNdPFSQEFXS95ZKyIIyTSHu/o3ReBUrLKYEq+7YaXCRn/bPB4MA==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-tagfilter": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz", + "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==", + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-extension-gfm-task-list-item": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz", + "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==", + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-factory-destination": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz", + "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-label": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz", + "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-space": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.1.0.tgz", + "integrity": "sha512-fS8hnLIjnjvdQIj39Geug8wWsR0HrYZ43KShKxNfwT7t2LOHo/LbWZEzEaSOjwtjdCsjoE6syHhonEzW0zv0+Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-title": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz", + "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-factory-whitespace": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz", + "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-factory-space": "^2.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-chunked": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz", + "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-classify-character": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz", + "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-combine-extensions": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz", + "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-chunked": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-numeric-character-reference": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz", + "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-decode-string": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz", + "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "decode-named-character-reference": "^1.0.0", + "micromark-util-character": "^2.0.0", + "micromark-util-decode-numeric-character-reference": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-edit-map": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/micromark-util-edit-map/-/micromark-util-edit-map-1.0.0.tgz", + "integrity": "sha512-Pa2ljlsEL6sVwFaYeyrOLSYbQt73JvGbPOYFq+9AElXiSnfI5Q4465RRZ1sHv7lDjDOnGRDDaqPXqClqWK/q1Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-html-tag-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz", + "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-normalize-identifier": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz", + "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-resolve-all": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz", + "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-subtokenize": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz", + "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "devlop": "^1.0.0", + "micromark-util-chunked": "^2.0.0", + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.3.tgz", + "integrity": "sha512-oxB2Ik03hI0gv+VNn9tnh1t1YEe9MDPptViAEgfdf3YQHsn0pzGTgCdlSCJXcwhqm8phaEuM7zeEu3QQzVBrPg==", + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/oniguruma-parser": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.2.tgz", + "integrity": "sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==", + "license": "MIT" + }, + "node_modules/oniguruma-to-es": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-4.3.6.tgz", + "integrity": "sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==", + "license": "MIT", + "dependencies": { + "oniguruma-parser": "^0.12.2", + "regex": "^6.1.0", + "regex-recursion": "^6.0.2" + } + }, + "node_modules/parse-entities": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz", + "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^2.0.0", + "character-entities-legacy": "^3.0.0", + "character-reference-invalid": "^2.0.0", + "decode-named-character-reference": "^1.0.0", + "is-alphanumerical": "^2.0.0", + "is-decimal": "^2.0.0", + "is-hexadecimal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/parse-entities/node_modules/@types/unist": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz", + "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==", + "license": "MIT" + }, + "node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", + "license": "MIT", + "dependencies": { + "entities": "^6.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkce-challenge": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz", + "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==", + "license": "MIT", + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/postcss": { + "version": "8.5.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz", + "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/property-information": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz", + "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/react": { + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", + "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz", + "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.28.0" + }, + "peerDependencies": { + "react": "^19.3.1" + } + }, + "node_modules/regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz", + "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==", + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-recursion": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz", + "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==", + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-utilities": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==", + "license": "MIT" + }, + "node_modules/rehype-harden": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/rehype-harden/-/rehype-harden-1.1.8.tgz", + "integrity": "sha512-Qn7vR1xrf6fZCrkm9TDWi/AB4ylrHy+jqsNm1EHOAmbARYA6gsnVJBq/sdBh6kmT4NEZxH5vgIjrscefJAOXcw==", + "license": "MIT", + "dependencies": { + "unist-util-visit": "^5.0.0" + } + }, + "node_modules/rehype-raw": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/rehype-raw/-/rehype-raw-7.0.0.tgz", + "integrity": "sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-raw": "^9.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/rehype-sanitize": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/rehype-sanitize/-/rehype-sanitize-6.0.0.tgz", + "integrity": "sha512-CsnhKNsyI8Tub6L4sm5ZFsme4puGfc6pYylvXo1AeqaGbjOYyzNv3qZPwvs0oMJ39eryyeOdmxwUIo94IpEhqg==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "hast-util-sanitize": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-gfm": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz", + "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-gfm": "^3.0.0", + "micromark-extension-gfm": "^3.0.0", + "remark-parse": "^11.0.0", + "remark-stringify": "^11.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-parse": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz", + "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-from-markdown": "^2.0.0", + "micromark-util-types": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-rehype": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz", + "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==", + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "mdast-util-to-hast": "^13.0.0", + "unified": "^11.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remark-stringify": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz", + "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==", + "license": "MIT", + "dependencies": { + "@types/mdast": "^4.0.0", + "mdast-util-to-markdown": "^2.0.0", + "unified": "^11.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/remend": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/remend/-/remend-1.4.0.tgz", + "integrity": "sha512-mHiYhhwphs1IgIZmkToKLwJn0U99IjPXuutkA2acrNcG0vlEq2G4TGnd2eT0saIHwh2KjaCpvleHcsd5SAz96A==", + "license": "Apache-2.0" + }, + "node_modules/rolldown": { + "version": "1.2.16", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.16.tgz", + "integrity": "sha512-bWvlMpFKiTfDKfnK7FC2MPgPeWCf/Kpwsq49ApdW+FQaBZb6O6dZ4MAPbPUjp7hYQrw/RobqCzn64BRrQecGHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.156.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.16", + "@rolldown/binding-android-arm64": "1.2.16", + "@rolldown/binding-darwin-arm64": "1.2.16", + "@rolldown/binding-darwin-x64": "1.2.16", + "@rolldown/binding-freebsd-x64": "1.2.16", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.16", + "@rolldown/binding-linux-arm64-gnu": "1.2.16", + "@rolldown/binding-linux-arm64-musl": "1.2.16", + "@rolldown/binding-linux-ppc64-gnu": "1.2.16", + "@rolldown/binding-linux-s390x-gnu": "1.2.16", + "@rolldown/binding-linux-x64-gnu": "1.2.16", + "@rolldown/binding-linux-x64-musl": "1.2.16", + "@rolldown/binding-openharmony-arm64": "1.2.16", + "@rolldown/binding-win32-arm64-msvc": "1.2.16", + "@rolldown/binding-win32-x64-msvc": "1.2.16" + } + }, + "node_modules/scheduler": { + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", + "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", + "license": "MIT" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/shiki": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-4.6.0.tgz", + "integrity": "sha512-imjLsVHgPuWhvpU3P+zOekvMYqnel7QmKsFC4Sn0fCuAvaaalBsxwKEsrU8Ko5BdFnZA6Go/8a0RzahS634UgA==", + "license": "MIT", + "dependencies": { + "@shikijs/core": "4.6.0", + "@shikijs/engine-javascript": "4.6.0", + "@shikijs/engine-oniguruma": "4.6.0", + "@shikijs/langs": "4.6.0", + "@shikijs/themes": "4.6.0", + "@shikijs/types": "4.6.0", + "@shikijs/vscode-textmate": "^10.1.0", + "@types/hast": "^3.0.5" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/streamdown": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/streamdown/-/streamdown-2.7.1.tgz", + "integrity": "sha512-pIz4XOB+e7iyqSJABXC9PoyHifBZVQx/7U0Qo/vdOIERqGXfgEhJxkXENsuWMO8TGXkaQ5ewV9jnliK7q47T8w==", + "license": "Apache-2.0", + "dependencies": { + "clsx": "^2.1.1", + "hast-util-to-jsx-runtime": "^2.3.6", + "html-url-attributes": "^3.0.1", + "marked": "^18.0.11", + "rehype-harden": "^1.1.8", + "rehype-raw": "^7.0.0", + "rehype-sanitize": "^6.0.0", + "remark-gfm": "^4.0.1", + "remark-parse": "^11.0.0", + "remark-rehype": "^11.1.2", + "remend": "1.4.0", + "tailwind-merge": "^3.6.0", + "unified": "^11.0.5", + "unist-util-visit": "^5.1.0", + "unist-util-visit-parents": "^6.0.2" + }, + "peerDependencies": { + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" + } + }, + "node_modules/stringify-entities": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "license": "MIT", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/style-to-object": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-2.0.2.tgz", + "integrity": "sha512-QmbXPUylqU80HAgTOJeEOdbA40W9KtxmjMhQy+tq+b8F2aoh3aQLuy82hh2jm2qsC9hR9eI0+eQidTMydKcqRA==", + "license": "MIT", + "dependencies": { + "inline-style-parser": "0.2.9" + } + }, + "node_modules/swr": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/swr/-/swr-2.5.1.tgz", + "integrity": "sha512-BRw55e8r0B7SpDN20CAzoQAHl7y1yP7/Zt7oqUjMv0vSt2u2Xnkm88Ws+VypbV9BXHQVuSuyVq7zMjO16wSExw==", + "license": "MIT", + "dependencies": { + "dequal": "^2.0.3", + "use-sync-external-store": "^1.6.0" + }, + "peerDependencies": { + "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/tailwind-merge": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.7.0.tgz", + "integrity": "sha512-XPPUyAc+cvspz3lHTcR/QgPfW2A0lv/xQNIjX3HGhLR+Nq2lHaLq5MtTesHn8GUr3W3DguT2KT5x3NVgRtYwmA==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/dcastil" + } + }, + "node_modules/tailwindcss": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.4.tgz", + "integrity": "sha512-PCJZTFFdG+sL3gvnP1Do9o6GbkvH2q0p04xSs3f7cSvmAeK+sttG+/7ncK1fdRwKFfC7n+wDDJaOMBSefkI9ow==", + "dev": true, + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/throttleit": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/throttleit/-/throttleit-2.1.0.tgz", + "integrity": "sha512-nt6AMGKW1p/70DF/hGBdJB57B8Tspmbp5gfJ8ilhLnt7kkr2ye7hzD6NVG8GGErk2HWF34igrL2CXmNIkzKqKw==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/trough": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz", + "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici": { + "version": "7.30.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.1.tgz", + "integrity": "sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==", + "license": "MIT", + "engines": { + "node": ">=20.18.1" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/unified": { + "version": "11.0.5", + "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz", + "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "bail": "^2.0.0", + "devlop": "^1.0.0", + "extend": "^3.0.0", + "is-plain-obj": "^4.0.0", + "trough": "^2.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.2.0.tgz", + "integrity": "sha512-fpsYs/VVoZxfGY9/j3FQpZmN8wdLJaV1Pt38AaJNZu9uKIHcFU3halCdBveEq1HGKO1OEfJY65w1zvoFV1b3qQ==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.1.0.tgz", + "integrity": "sha512-vKXxz6O38sKDj1mtx/k2cWvkkFBuYGx6uGrlzBkVeWCRF/F8sdI0j3Wbkz/5rVNRRuVc8UrgRdbCxNhmYXgP3w==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/use-sync-external-store": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.7.0.tgz", + "integrity": "sha512-6L+EeigHMQhdaIPNIFUKwfWJSwWFQ8gJbJ2DLOs5sDIegTwR9fRxvnM3uciHKjIZhFz+KAv2emhWMRvDmMcY8A==", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-location": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/vfile-location/-/vfile-location-5.0.3.tgz", + "integrity": "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz", + "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==", + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vite": { + "version": "8.3.5", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.5.tgz", + "integrity": "sha512-z1YpjieJ9g0ebTmQpLBv/oq9E3F9EIlOe+7LahW8SrE3LTiG3udBRUXQOlYXP9b+IC2q2phHeVxj9xGlw34OEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.30", + "rolldown": "~1.2.14", + "tinyglobby": "^0.2.17" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1 || ^0.8.0", + "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 + } + } + }, + "node_modules/web-namespaces": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", + "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/zod": { + "version": "4.6.7", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + } +} diff --git a/chat/package.json b/chat/package.json new file mode 100644 index 000000000..a5409f772 --- /dev/null +++ b/chat/package.json @@ -0,0 +1,32 @@ +{ + "name": "meilisearch-docs-chat", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "typecheck": "tsc --noEmit" + }, + "dependencies": { + "@ai-sdk/react": "^4.0.166", + "@ai-sdk/voyage": "^2.0.0", + "@openrouter/ai-sdk-provider": "^3.1.0", + "ai": "^7.0.162", + "meilisearch": "^0.60.0", + "react": "^19.0.0", + "react-dom": "^19.0.0", + "shiki": "^4.6.0", + "streamdown": "^2.7.1", + "zod": "^4.4.3" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.3.4", + "@types/node": "^20.0.0", + "@types/react": "^19.0.0", + "@types/react-dom": "^19.0.0", + "@vitejs/plugin-react": "^6.2.1", + "tailwindcss": "^4.3.4", + "typescript": "^5.0.0", + "vite": "^8.3.5" + } +} diff --git a/chat/scripts/bench-models.ts b/chat/scripts/bench-models.ts new file mode 100644 index 000000000..5c7833885 --- /dev/null +++ b/chat/scripts/bench-models.ts @@ -0,0 +1,643 @@ +import { createOpenRouter } from "@openrouter/ai-sdk-provider"; +import { streamText, tool } from "ai"; +import { z } from "zod"; + +const RUNS = 3; +const TARGET_CONTEXT_CHARS = 40_000; + +const HYBRID_QUESTION = "How do I set up hybrid search?"; +const QUESTIONS = [ + HYBRID_QUESTION, + "How do I add a Next.js ecommerce search with filters, sorting, and InstantSearch?", + "How do I add documents and update filterable attributes with the JavaScript SDK?", +] as const; + +const QUERY_MODELS = ["openai/gpt-6-luna", "openai/gpt-6.1-terra"] as const; +const QUERY_EFFORTS = ["none", "low"] as const; +const ANSWER_MODELS = ["openai/gpt-6-luna", "openai/gpt-6.1-terra", "openai/gpt-6.2-sol"] as const; + +type ReasoningEffort = (typeof QUERY_EFFORTS)[number]; +type OpenRouterClient = ReturnType; + +const QUERY_SYSTEM = `You search the Meilisearch documentation. Call the search tool before answering. Write 1 short, keyword-rich query of about 12 words at most. If the question has distinct parts, call search twice in the same turn, one query per part. Do not answer in prose.`; + +const ANSWER_SYSTEM = `You are the Meilisearch documentation assistant. Answer only from the documentation context in the user message. Be concise. Link sources as Markdown using only URLs that appear in the context. If the context does not contain the answer, say so. Write for readers who may not be native English speakers.`; + +const search = tool({ + description: "Search the Meilisearch documentation.", + inputSchema: z.object({ + q: z.string(), + }), +}); + +type DocChunk = { + title: string; + url: string; + body: string; +}; + +const DOC_CHUNKS: readonly DocChunk[] = [ + { + title: "Getting started with hybrid search", + url: "https://www.meilisearch.com/docs/capabilities/hybrid_search/getting_started", + body: `Hybrid search mixes keyword search and semantic search in one request. Keyword search matches words. Semantic search matches meaning, using vectors called embeddings. Meilisearch creates those embeddings with an embedder. + +Setup has three parts. First, choose an index, such as movies or products. Second, add an embedder to the index settings and wait until that task succeeds. Third, send a search request that includes both q and hybrid. + +A first OpenAI embedder looks like this: + +{ + "embedders": { + "movies-openai": { + "source": "openAi", + "model": "text-embedding-3-small", + "apiKey": "YOUR_OPENAI_API_KEY", + "documentTemplate": "A movie titled '{{doc.title}}'. {{doc.overview}}" + } + } +} + +Send that object with PATCH /indexes/movies/settings. The source must be openAi for OpenAI's built-in integration. The model text-embedding-3-small is a common, lower-cost choice. text-embedding-3-large is larger and more precise. The apiKey is your OpenAI key, not the Meilisearch key. The documentTemplate is a Liquid template. It tells Meilisearch which fields to embed. Keep it short. Include title, overview, or description. Skip prices, ids, and other fields that have no meaning for similarity. + +After the settings task succeeds, Meilisearch embeds the documents already in the index. New and updated documents are embedded automatically. Embeddings are cached, so unchanged documents are not sent to the provider again. + +The first hybrid search is a normal search plus a hybrid object: + +{ + "q": "film about a spirit world", + "hybrid": { + "embedder": "movies-openai", + "semanticRatio": 0.5 + } +} + +embedder must be the name you configured. semanticRatio 0.5 gives equal weight to keywords and meaning. You can also set rankingScoreThreshold, for example 0.5, to drop weak semantic hits. Use the same index you configured. Wait for embedding tasks before you judge result quality.`, + }, + { + title: "Configure an embedder", + url: "https://www.meilisearch.com/docs/capabilities/hybrid_search/configuring_embedders", + body: `An embedder is a named configuration on an index. The name is yours. movies-openai and products are both fine. One index can store several embedders, but each search picks one embedder name. + +OpenAI fields: + +- source: openAi +- model: text-embedding-3-small (1536 dimensions) or text-embedding-3-large (3072 dimensions) +- apiKey: the OpenAI API key +- documentTemplate: Liquid text built from document fields +- dimensions: optional. Lower it, for example to 512, to save space. Very small values can hurt quality. +- distribution: optional. It rescales semantic scores. mean is the score you treat as somewhat relevant. sigma is the typical gap between relevance tiers. Changing distribution does not re-embed documents. + +You can also use a user-provided embedder when your application computes vectors: + +{ + "embedders": { + "manual": { + "source": "userProvided", + "dimensions": 1536 + } + } +} + +Documents then include a _vectors field: + +{ + "id": 1, + "title": "Spirited Away", + "overview": "Chihiro enters a world of spirits.", + "_vectors": { + "manual": [0.012, -0.044, 0.381] + } +} + +The array length must equal dimensions. Queries are not embedded by Meilisearch for this source. Pass the query vector yourself, or use a provider source so Meilisearch embeds the query. + +Other built-in sources include huggingFace, mistral, google, cohere, voyage, ollama, and rest. Each source has its own required fields. The rest source calls an HTTP embedding endpoint you host. For a first setup, prefer openAi or userProvided. + +Update embedders with the settings route or with the embedders sub-route. Both replace the embedders object you send: + +PATCH /indexes/movies/settings/embedders + +JavaScript: + +const task = await index.updateEmbedders({ + "movies-openai": { + source: "openAi", + model: "text-embedding-3-small", + apiKey: process.env.OPENAI_API_KEY, + documentTemplate: "A movie titled '{{doc.title}}'. {{doc.overview}}", + }, +}); +await task.waitTask(); + +Store provider API keys on the server. Do not commit them. A free-tier OpenAI key can make indexing slow. Meilisearch retries rate limits, and a higher tier is safer for production. + +Changing source, model, dimensions, or documentTemplate embeds documents again. Plan for that task to take time on large indexes.`, + }, + { + title: "Choose semanticRatio", + url: "https://www.meilisearch.com/docs/capabilities/hybrid_search/semantic_ratio", + body: `semanticRatio is a number from 0.0 to 1.0 on the hybrid object. You set it on each search, not in the index settings. + +- 0.0 uses keyword results only. +- 0.5 blends keyword and semantic results equally. This is the default when you omit semanticRatio but still pass hybrid.embedder. +- 1.0 uses semantic results only. +- 0.7 favors meaning. 0.3 favors exact words. + +Start at 0.5. Collect queries that look wrong, then move in steps of 0.1. + +If a shopper searches for a brand or sku and the exact product is not first, the ratio is too high. Lower it toward 0.3 so keywords win. If a shopper describes a need, such as "something to mix cake batter", and only exact word matches appear, the ratio is too low. Raise it toward 0.7 so similar products can surface. + +Examples: + +Brand query, keyword leaning: + +{ + "q": "KitchenAid mixer", + "hybrid": { "semanticRatio": 0.3, "embedder": "products" } +} + +Descriptive query, semantic leaning: + +{ + "q": "something to mix cake batter", + "hybrid": { "semanticRatio": 0.7, "embedder": "products" } +} + +Balanced query: + +{ + "q": "stand mixer for baking", + "hybrid": { "semanticRatio": 0.5, "embedder": "products" } +} + +Different screens can use different ratios against the same embedder. A site search box can stay near 0.5. A "similar products" block can use a higher ratio. You do not reindex when you only change semanticRatio. + +If semantic hits all look somewhat relevant, adjust the embedder distribution so strong hits score near 1 and weak hits score near 0. Then set rankingScoreThreshold on the search request to hide hits under that score. Threshold 0 returns every hit. Threshold 1 keeps near-perfect matches. 0.5 is a practical start. distribution and rankingScoreThreshold do not replace semanticRatio. Ratio chooses the blend. The threshold drops low scores after ranking.`, + }, + { + title: "Index documents for hybrid search", + url: "https://www.meilisearch.com/docs/capabilities/hybrid_search/indexing", + body: `Hybrid search needs documents in the index and embeddings for those documents. Order the work so you do not search an index that is still embedding. + +1. Create the index if it does not exist. +2. Add the embedder and wait until the settings task is succeeded. +3. Add or update documents and wait until those tasks succeed. +4. Search with hybrid. + +If the index already has documents, saving the embedder is enough to start embedding them. You do not have to upload the documents again. If you add documents before the embedder exists, Meilisearch embeds them when you later save the embedder. + +JavaScript: + +const client = new Meilisearch({ + host: "http://127.0.0.1:7700", + apiKey: "MASTER_OR_ADMIN_KEY", +}); +const index = client.index("movies"); + +await index.addDocuments([ + { id: 1, title: "Spirited Away", overview: "Chihiro enters a world of spirits." }, + { id: 2, title: "The Grand Budapest Hotel", overview: "A concierge is framed for murder." }, +]).then((task) => task.waitTask()); + +Primary keys should be stable. Reusing an id updates that document and refreshes its embedding when the template text changes. + +Watch task status with GET /tasks or task.waitTask(). Search while status is enqueued or processing and semantic hits will be missing or stale. Keyword search can still return documents that are already indexed. + +The document template only sees fields present on each document. If overview is missing, that part of the template is empty and the vector is weaker. Prefer a few text fields that describe the record. Do not paste the whole document, binary data, or long HTML if a short description exists. + +Code and API reference pages in a docs index follow the same rule. Put the title and the passage in the template. Leave urls and anchors out of the embedding text if they are only identifiers, but keep them in the document so you can display them. + +User-provided vectors must be present at index time. A document without _vectors.manual is not semantically searchable for that embedder. Provider sources do not accept _vectors for the same embedder name. Do not mix a provider source and a hand-written vector under one embedder. + +Large batches are normal. Meilisearch chunks provider calls. Failed batches appear as failed tasks. Fix the key, the model name, or the template, then retry the task or update the documents again.`, + }, + { + title: "Send a hybrid search request", + url: "https://www.meilisearch.com/docs/capabilities/hybrid_search/search_request", + body: `The search route is the same route as keyword search. Hybrid mode is the hybrid field on that body. + +POST /indexes/movies/search +Content-Type: application/json +Authorization: Bearer MEILISEARCH_SEARCH_KEY + +{ + "q": "film about a spirit world", + "hybrid": { + "embedder": "movies-openai", + "semanticRatio": 0.5 + }, + "limit": 10, + "attributesToRetrieve": ["id", "title", "overview"], + "showRankingScore": true +} + +q is the user text. hybrid.embedder is required for hybrid search. If the name does not match an embedder on the index, the request fails. semanticRatio is optional and defaults to 0.5. + +JavaScript SDK: + +const results = await index.search("film about a spirit world", { + hybrid: { + embedder: "movies-openai", + semanticRatio: 0.5, + }, + limit: 10, + attributesToRetrieve: ["id", "title", "overview"], + showRankingScore: true, +}); + +results.hits are the merged list. A high _rankingScore is a better match when showRankingScore is true. Scores are comparable only after you understand that embedder's distribution. Do not treat 0.2 on one model as equal to 0.2 on another. + +You may combine hybrid with filter and sort when those settings exist. The filter still uses filterable attributes. The hybrid object does not turn a field into a filter. See the filterable attributes page for that setup. A search key is enough for this request. Updating embedders needs a key that can change settings. + +cURL shape: + +curl -X POST 'MEILISEARCH_URL/indexes/movies/search' \\ + -H 'Authorization: Bearer SEARCH_KEY' \\ + -H 'Content-Type: application/json' \\ + --data-binary '{ + "q": "film about a spirit world", + "hybrid": { "embedder": "movies-openai", "semanticRatio": 0.5 } + }' + +Empty q with a hybrid embedder still runs a semantic search only if you pass a vector for a user-provided embedder. For OpenAI, send a non-empty q so Meilisearch can embed the query. Very long queries cost more and rarely rank better than a short description of the need. + +Pagination uses limit and offset, as with keyword search. Facets, if configured, are independent of the embedder. Request only the attributes you render.`, + }, + { + title: "Filterable attributes", + url: "https://www.meilisearch.com/docs/learn/filtering_and_sorting/filterable_attributes", + body: `Filters are not hybrid search. A filter keeps or removes documents before ranking. You must list every field you filter on in filterableAttributes. Until that task succeeds, filters on that field return an error. + +PATCH /indexes/movies/settings + +{ + "filterableAttributes": ["genres", "releaseYear", "language"] +} + +JavaScript: + +await index.updateFilterableAttributes([ + "genres", + "releaseYear", + "language", +]).then((task) => task.waitTask()); + +A search can then send a filter expression: + +{ + "q": "drama", + "filter": "genres = drama AND releaseYear > 2000" +} + +Strings can be quoted. Numbers are compared with =, !=, >, >=, <, <=. Use AND, OR, and NOT to combine clauses. Array fields match if any element matches. Changing filterable attributes reindexes those fields. It does not create embeddings and it does not set semanticRatio. + +Sortable attributes are a separate list. Add releaseYear to sortableAttributes before you send sort: ["releaseYear:desc"]. Filterable does not imply sortable. + +Displayed attributes control which fields come back in hits. Searchable attributes control which fields keyword search scans. Neither setting configures an embedder. The document template is the only place that chooses fields for embeddings. + +If a product index needs color and price filters, declare those attributes, wait for the task, then add "filter" to the search body. You can do that on a keyword search or on a hybrid search. The filter syntax stays the same. Hybrid does not accept a filter inside the hybrid object. Put filter next to q.`, + }, + { + title: "API keys", + url: "https://www.meilisearch.com/docs/learn/security/api_keys", + body: `Meilisearch checks the Authorization bearer token on every route except health. The master key is the key you set when the server starts, often with MEILI_MASTER_KEY. It can create other keys and can do every action. Use it only on a trusted server. Do not ship it in a browser or a mobile app. + +Create a narrower key with POST /keys: + +{ + "name": "Docs search", + "description": "Search the public docs index", + "actions": ["search"], + "indexes": ["docs"], + "expiresAt": null +} + +actions limit what the key can call. search allows search and multi-search. documents.add allows indexing. settings.update allows embedder and filterable attribute changes. indexes limits which index uids the key can touch. ["*"] means every index. expiresAt is an ISO date or null. + +A public site needs a search-only key. Hybrid search from the browser uses that key. It still cannot PATCH settings or read your OpenAI key. The OpenAI key lives in the embedder settings on the server. + +An admin key used by a backend worker can update embedders and add documents. Give that key indexes: ["movies"] if it should not touch other indexes. Rotate a key by creating a new one and deleting the old uid. Deleting the master key is not how you rotate it. Change the server environment and restart. + +Requests without a token fail when a master key is set. Requests with a key that lacks settings.update cannot configure hybrid search. Requests with a search key can send hybrid at query time, because that is a search, as long as the embedder already exists. + +Keys do not select semanticRatio, document templates, or models. They only authorize the route.`, + }, +]; + +function renderChunk(chunk: DocChunk): string { + return `## ${chunk.title}\n${chunk.url}\n\n${chunk.body.trim()}\n`; +} + +function buildDocumentationContext(): string { + const bundle = DOC_CHUNKS.map(renderChunk).join("\n"); + if (bundle.length === 0) { + throw new Error("Documentation context is empty."); + } + + const parts: string[] = []; + let total = 0; + let copy = 1; + while (total < TARGET_CONTEXT_CHARS) { + const header = + copy === 1 + ? "" + : `\n## Documentation bundle copy ${copy}\nThe sections below repeat the same Meilisearch documentation excerpts.\n\n`; + const block = `${header}${bundle}`; + if (block.length === 0) { + throw new Error("Documentation context stopped growing."); + } + parts.push(block); + total += block.length; + copy += 1; + if (copy > 40) { + throw new Error("Documentation context did not reach 40000 characters."); + } + } + + let context = parts.join("\n"); + if (context.length > 42_000) { + const cut = context.lastIndexOf("\n", 40_800); + if (cut >= TARGET_CONTEXT_CHARS) { + context = `${context.slice(0, cut).trimEnd()}\n`; + } + } + return context; +} + +function answerUserMessage(context: string): string { + return `${HYBRID_QUESTION}\n\nDocumentation context:\n\n${context}`; +} + +function median(values: readonly number[]): number { + const sorted = [...values].sort((left, right) => left - right); + const middle = sorted[Math.floor(sorted.length / 2)]; + if (middle === undefined) { + throw new Error("Cannot take the median of an empty list of timings."); + } + return middle; +} + +function slowest(values: readonly number[]): number { + const first = values[0]; + if (first === undefined) { + throw new Error("A run produced no timings."); + } + return values.reduce((max, value) => (value > max ? value : max), first); +} + +function errorMessage(error: unknown): string { + if (error instanceof Error) return error.message; + return String(error); +} + +function modelSettings(effort: ReasoningEffort) { + return { + reasoning: { effort }, + provider: { sort: "latency" as const }, + // OpenRouter includes reasoning token counts in the stream when usage accounting is on. + usage: { include: true }, + }; +} + +function latencyProviderOptions() { + return { + openrouter: { + provider: { sort: "latency" }, + }, + }; +} + +type QueryTiming = { + question: string; + ms: number; + inputs: string[]; + text: string; + error: string | undefined; +}; + +async function timeQuery( + openrouter: OpenRouterClient, + modelId: string, + effort: ReasoningEffort, + question: string, +): Promise { + const started = performance.now(); + const elapsed = (): number => Math.round(performance.now() - started); + let toolCallMs: number | undefined; + const inputs: string[] = []; + let text = ""; + let error: string | undefined; + + try { + const result = streamText({ + model: openrouter.chat(modelId, modelSettings(effort)), + system: QUERY_SYSTEM, + prompt: question, + tools: { search }, + toolChoice: "required", + maxRetries: 0, + providerOptions: latencyProviderOptions(), + onError: ({ error: streamError }) => { + console.error(streamError); + if (error === undefined) error = errorMessage(streamError); + }, + }); + + for await (const part of result.fullStream) { + if (part.type === "text-delta") { + text += part.text; + } else if (part.type === "tool-call") { + if (toolCallMs === undefined) toolCallMs = elapsed(); + inputs.push(JSON.stringify(part.input)); + } else if (part.type === "error") { + console.error(part.error); + if (error === undefined) error = errorMessage(part.error); + } + } + } catch (caught) { + console.error(caught); + if (error === undefined) error = errorMessage(caught); + } + + return { + question, + ms: toolCallMs ?? elapsed(), + inputs, + text, + error, + }; +} + +function printQueryTiming(result: QueryTiming): void { + const labels: string[] = []; + if (result.error !== undefined) labels.push("ERROR"); + if (result.inputs.length === 0) labels.push("NO TOOL CALL"); + const prefix = labels.length === 0 ? "" : ` ${labels.join(" ")}`; + console.log(` ${result.ms} ms${prefix} ${result.question}`); + if (result.error !== undefined) console.log(` ${result.error}`); + for (const input of result.inputs) console.log(` ${input}`); + if (result.inputs.length === 0 && result.text.trim() !== "") { + console.log(` ${result.text}`); + } +} + +type AnswerTiming = { + ms: number; + answer: string; + reasoningTokens: number | undefined; + sawText: boolean; + error: string | undefined; +}; + +async function timeAnswer( + openrouter: OpenRouterClient, + modelId: string, + userMessage: string, +): Promise { + const started = performance.now(); + const elapsed = (): number => Math.round(performance.now() - started); + let firstTextMs: number | undefined; + let answer = ""; + let reasoningTokens: number | undefined; + let error: string | undefined; + + try { + const result = streamText({ + model: openrouter.chat(modelId, modelSettings("low")), + system: ANSWER_SYSTEM, + prompt: userMessage, + maxRetries: 0, + providerOptions: latencyProviderOptions(), + onError: ({ error: streamError }) => { + console.error(streamError); + if (error === undefined) error = errorMessage(streamError); + }, + }); + + for await (const part of result.fullStream) { + if (part.type === "text-delta") { + if (firstTextMs === undefined) firstTextMs = elapsed(); + answer += part.text; + } else if (part.type === "finish-step") { + const tokens = part.usage.outputTokenDetails.reasoningTokens; + if (tokens !== undefined) reasoningTokens = tokens; + } else if (part.type === "finish") { + const tokens = part.totalUsage.outputTokenDetails.reasoningTokens; + if (tokens !== undefined) reasoningTokens = tokens; + } else if (part.type === "error") { + console.error(part.error); + if (error === undefined) error = errorMessage(part.error); + } + } + + try { + const usage = await result.usage; + const tokens = usage.outputTokenDetails.reasoningTokens; + if (tokens !== undefined) reasoningTokens = tokens; + } catch (usageError) { + console.error(usageError); + } + } catch (caught) { + console.error(caught); + if (error === undefined) error = errorMessage(caught); + } + + return { + ms: firstTextMs ?? elapsed(), + answer, + reasoningTokens, + sawText: firstTextMs !== undefined, + error, + }; +} + +function printAnswerTiming(run: number, result: AnswerTiming): void { + const label = result.sawText ? "first text" : "no text"; + const errorLabel = result.error !== undefined ? " ERROR" : ""; + console.log(`Run ${run}`); + console.log(` ${result.ms} ms ${label}${errorLabel}`); + if (result.error !== undefined) console.log(` ${result.error}`); + const tokens = result.reasoningTokens === undefined ? "unavailable" : String(result.reasoningTokens); + console.log(` reasoning tokens: ${tokens}`); + console.log(" answer:"); + console.log(result.answer.trim() === "" ? "(empty)" : result.answer); + console.log(""); +} + +function printSummary(rows: readonly { setup: string; medianMs: number }[]): void { + const header = "setup"; + const width = Math.max(header.length, ...rows.map((row) => row.setup.length)); + console.log(""); + console.log("=== Summary ==="); + console.log(`${header.padEnd(width)} median ms`); + for (const row of rows) { + console.log(`${row.setup.padEnd(width)} ${String(row.medianMs).padStart(9)}`); + } +} + +async function main(): Promise { + const apiKey = process.env.OPENROUTER_API_KEY?.trim(); + if (apiKey === undefined || apiKey === "") { + console.error("OPENROUTER_API_KEY is missing. Set it in .env.local in the chat directory."); + process.exit(1); + } + + const context = buildDocumentationContext(); + const userMessage = answerUserMessage(context); + const openrouter = createOpenRouter({ apiKey }); + const summary: { setup: string; medianMs: number }[] = []; + + console.log("OpenRouter model benchmark"); + console.log('Provider routing on every call: { "provider": { "sort": "latency" } }'); + console.log(`Runs per setup: ${RUNS}`); + console.log("Query timing: first tool-call. A run is the slowest of the 3 questions."); + console.log("Answer timing: first text-delta. Median: middle of the 3 run times."); + + for (const modelId of QUERY_MODELS) { + for (const effort of QUERY_EFFORTS) { + const setup = `query | ${modelId} | reasoning ${effort}`; + console.log(""); + console.log(`=== ${setup} ===`); + const runTimes: number[] = []; + for (let run = 1; run <= RUNS; run += 1) { + console.log(`Run ${run}`); + const questionTimes: number[] = []; + for (const question of QUESTIONS) { + const timing = await timeQuery(openrouter, modelId, effort, question); + questionTimes.push(timing.ms); + printQueryTiming(timing); + } + const runMs = slowest(questionTimes); + runTimes.push(runMs); + console.log(` run ${runMs} ms`); + } + const medianMs = median(runTimes); + console.log(`median ${medianMs} ms`); + console.log(`runs ${runTimes.map((ms) => `${ms} ms`).join(", ")}`); + summary.push({ setup, medianMs }); + } + } + + console.log(""); + console.log(`Documentation context: ${context.length} characters`); + + for (const modelId of ANSWER_MODELS) { + const setup = `answer | ${modelId} | reasoning low`; + console.log(""); + console.log(`=== ${setup} ===`); + const runTimes: number[] = []; + for (let run = 1; run <= RUNS; run += 1) { + const timing = await timeAnswer(openrouter, modelId, userMessage); + runTimes.push(timing.ms); + printAnswerTiming(run, timing); + } + const medianMs = median(runTimes); + console.log(`median ${medianMs} ms`); + console.log(`runs ${runTimes.map((ms) => `${ms} ms`).join(", ")}`); + summary.push({ setup, medianMs }); + } + + printSummary(summary); +} + +await main(); diff --git a/chat/src/AskButton.tsx b/chat/src/AskButton.tsx new file mode 100644 index 000000000..c1148a295 --- /dev/null +++ b/chat/src/AskButton.tsx @@ -0,0 +1,35 @@ +import { TOGGLE_EVENT } from "./events"; +import { useDarkMode } from "./useDarkMode"; + +const isMac = /Mac|iPhone|iPad/.test(navigator.platform); + +export function AskButton() { + const dark = useDarkMode(); + + return ( +
+ +
+ ); +} diff --git a/chat/src/ChatPanel.tsx b/chat/src/ChatPanel.tsx new file mode 100644 index 000000000..6c45775ab --- /dev/null +++ b/chat/src/ChatPanel.tsx @@ -0,0 +1,486 @@ +import { useChat } from "@ai-sdk/react"; +import { DefaultChatTransport, type UIMessage } from "ai"; +import { + useCallback, + useEffect, + useMemo, + useRef, + useState, + type FormEvent, + type KeyboardEvent, + type PointerEvent as ReactPointerEvent, + type ReactNode, +} from "react"; +import { OPEN_EVENT, TOGGLE_EVENT } from "./events"; +import { Message } from "./Message"; +import { useDarkMode } from "./useDarkMode"; +import { readChatUser } from "./user"; + +const STORAGE_KEY = "meili-chat:messages"; +const WIDTH_KEY = "meili-chat:width"; +const MIN_WIDTH = 368; +const MAX_WIDTH = 576; +const DESKTOP_QUERY = "(min-width: 1024px)"; + +const iconButtonClass = + "cursor-pointer rounded-lg p-1.5 text-black/50 hover:bg-black/[0.06] hover:text-black/80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand dark:text-white/55 dark:hover:bg-white/10 dark:hover:text-white/90"; + +const SUGGESTIONS = [ + "How do I set up hybrid search?", + "How do I filter by multiple values?", + "What is the difference between an API key and a tenant token?", +]; + +function loadMessages(): UIMessage[] { + try { + const raw = sessionStorage.getItem(STORAGE_KEY); + return raw ? (JSON.parse(raw) as UIMessage[]) : []; + } catch { + return []; + } +} + +function saveMessages(messages: UIMessage[]) { + try { + sessionStorage.setItem(STORAGE_KEY, JSON.stringify(messages)); + } catch { + // Storage full or unavailable: the chat still works, it just won't persist. + } +} + +function clampWidth(value: number) { + return Math.min(MAX_WIDTH, Math.max(MIN_WIDTH, value)); +} + +function loadWidth(): number { + try { + const raw = localStorage.getItem(WIDTH_KEY); + const value = raw ? Number(raw) : MIN_WIDTH; + return Number.isFinite(value) ? clampWidth(value) : MIN_WIDTH; + } catch { + return MIN_WIDTH; + } +} + +function useDesktop() { + const [desktop, setDesktop] = useState(() => window.matchMedia(DESKTOP_QUERY).matches); + useEffect(() => { + const media = window.matchMedia(DESKTOP_QUERY); + const onChange = () => setDesktop(media.matches); + media.addEventListener("change", onChange); + return () => media.removeEventListener("change", onChange); + }, []); + return desktop; +} + +export function ChatPanel({ apiBase }: { apiBase: string }) { + const dark = useDarkMode(); + const desktop = useDesktop(); + const [open, setOpen] = useState(false); + const [input, setInput] = useState(""); + const [width, setWidth] = useState(loadWidth); + const [dragging, setDragging] = useState(false); + const inputRef = useRef(null); + const scrollRef = useRef(null); + const asideRef = useRef(null); + const stickToBottom = useRef(true); + const stopDrag = useRef<(() => void) | null>(null); + + const transport = useMemo( + () => + new DefaultChatTransport({ + api: `${apiBase}/api/chat`, + // Read on each send: the widget stays mounted while the reader switches code tabs. + body: () => ({ user: readChatUser() }), + }), + [apiBase], + ); + const { messages, sendMessage, status, stop, error, regenerate, setMessages } = useChat({ + messages: loadMessages(), + transport, + }); + const busy = status === "submitted" || status === "streaming"; + + // Persist only settled conversations so partial streams are not restored. + useEffect(() => { + if (status === "ready" || status === "error") saveMessages(messages); + }, [messages, status]); + + useEffect(() => { + const toggle = () => setOpen((value) => !value); + const show = () => setOpen(true); + window.addEventListener(TOGGLE_EVENT, toggle); + window.addEventListener(OPEN_EVENT, show); + return () => { + window.removeEventListener(TOGGLE_EVENT, toggle); + window.removeEventListener(OPEN_EVENT, show); + }; + }, []); + + useEffect(() => { + if (!open) return; + const onKeyDown = (event: globalThis.KeyboardEvent) => { + if (event.key === "Escape") setOpen(false); + }; + document.addEventListener("keydown", onKeyDown); + inputRef.current?.focus(); + return () => document.removeEventListener("keydown", onKeyDown); + }, [open]); + + // One variable drives the fixed panel and the docs column margin. + useEffect(() => { + const root = document.documentElement; + const push = open && desktop; + root.style.setProperty("--meili-chat-width", push ? `${width}px` : "0px"); + if (push) root.dataset.meiliChat = "open"; + else delete root.dataset.meiliChat; + if (dragging && push) root.dataset.meiliChatDragging = ""; + else delete root.dataset.meiliChatDragging; + }, [open, desktop, width, dragging]); + + useEffect(() => { + return () => { + const root = document.documentElement; + root.style.setProperty("--meili-chat-width", "0px"); + delete root.dataset.meiliChat; + delete root.dataset.meiliChatDragging; + stopDrag.current?.(); + }; + }, []); + + useEffect(() => { + if (dragging) return; + try { + localStorage.setItem(WIDTH_KEY, String(width)); + } catch { + // The panel still resizes for this visit. + } + }, [width, dragging]); + + // Follow the stream unless the reader scrolled up. + useEffect(() => { + const el = scrollRef.current; + if (el && stickToBottom.current) el.scrollTop = el.scrollHeight; + }, [messages, status, open]); + + const submit = useCallback( + (text: string) => { + const trimmed = text.trim(); + if (!trimmed || busy) return; + stickToBottom.current = true; + void sendMessage({ text: trimmed }); + setInput(""); + }, + [busy, sendMessage], + ); + + const onSubmit = (event: FormEvent) => { + event.preventDefault(); + submit(input); + }; + + const onKeyDown = (event: KeyboardEvent) => { + if (event.key === "Enter" && !event.shiftKey && !event.nativeEvent.isComposing) { + event.preventDefault(); + submit(input); + } + }; + + const clear = () => { + stop(); + setMessages([]); + saveMessages([]); + inputRef.current?.focus(); + }; + + const maximized = width >= MAX_WIDTH; + + const toggleSize = () => setWidth(maximized ? MIN_WIDTH : MAX_WIDTH); + + const onResizePointerDown = (event: ReactPointerEvent) => { + if (event.button !== 0) return; + event.preventDefault(); + event.stopPropagation(); + stopDrag.current?.(); + setDragging(true); + document.documentElement.dataset.meiliChatDragging = ""; + if (asideRef.current) asideRef.current.style.transition = "none"; + + const apply = (clientX: number) => { + const next = clampWidth(window.innerWidth - clientX); + document.documentElement.style.setProperty("--meili-chat-width", `${next}px`); + setWidth(next); + }; + const onMove = (ev: PointerEvent) => apply(ev.clientX); + const end = () => { + window.removeEventListener("pointermove", onMove); + window.removeEventListener("pointerup", end); + window.removeEventListener("pointercancel", end); + stopDrag.current = null; + delete document.documentElement.dataset.meiliChatDragging; + if (asideRef.current) asideRef.current.style.transition = ""; + setDragging(false); + }; + stopDrag.current = end; + window.addEventListener("pointermove", onMove); + window.addEventListener("pointerup", end); + window.addEventListener("pointercancel", end); + }; + + const onResizeKeyDown = (event: KeyboardEvent) => { + const step = event.shiftKey ? 48 : 16; + if (event.key === "ArrowLeft") setWidth((value) => clampWidth(value + step)); + else if (event.key === "ArrowRight") setWidth((value) => clampWidth(value - step)); + else if (event.key === "Home") setWidth(MAX_WIDTH); + else if (event.key === "End") setWidth(MIN_WIDTH); + else return; + event.preventDefault(); + }; + + const lastIndex = messages.length - 1; + const narrow = !desktop; + + return ( +
+ {narrow && ( +
setOpen(false)} + aria-hidden="true" + /> + )} +
+ + +
{ + const el = event.currentTarget; + stickToBottom.current = el.scrollHeight - el.scrollTop - el.clientHeight < 48; + }} + className="min-w-0 flex-1 space-y-5 overflow-y-auto px-4 py-4" + > + {messages.length === 0 ? ( +
+

Ask anything about Meilisearch

+

+ Answers come from the documentation, with links to the sources. +

+
+ {SUGGESTIONS.map((suggestion) => ( + + ))} +
+
+ ) : ( + messages.map((message, index) => ( + + )) + )} + + {status === "submitted" &&

Thinking…

} + + {error && ( +
+ Something went wrong.{" "} + +
+ )} +
+ +
+
+