Prompt as Code | GPT Image 2 / 2.5 提示词与案例库,530+ 个案例、20+ 套工业级模板与可复用 Skills,新增 2.5 同提示词对比专区,附完整提示词与生成记录,持续更新。
JavaScript agentsai-image-generationchatgptdsh-plugingpt-image-2image-promptsprompt-as-codeprompt-engineeringskillsworkflow-automation
Add GA4 admin metrics and credit pricing
freestylefly80530f13bdf4
diff --git a/.env.example b/.env.exampleindex 695d4ce..63a96f6 100644--- a/.env.example+++ b/.env.example@@ -9,3 +9,16 @@ [email protected],[email protected]APP_URL=https://gpt-image2.canghe.aiSTRIPE_SECRET_KEY=STRIPE_WEBHOOK_SECRET=++VITE_GA_MEASUREMENT_ID=+GA4_PROPERTY_ID=+GOOGLE_ANALYTICS_CLIENT_ID=+GOOGLE_ANALYTICS_CLIENT_SECRET=+GOOGLE_ANALYTICS_REFRESH_TOKEN=++# Optional fallback when service account access is available.+GOOGLE_ANALYTICS_CLIENT_EMAIL=+GOOGLE_ANALYTICS_PRIVATE_KEY=++# Local helper only. Add this redirect URI to the Google OAuth client.+GOOGLE_ANALYTICS_REDIRECT_URI=http://localhost:8080/oauth2callbackdiff --git a/README.md b/README.mdindex 68e8966..e87deef 100644--- a/README.md+++ b/README.md@@ -287,6 +287,11 @@ CIYUAN_BASE_URL=https://ciyuan.todayAPP_URL=https://gpt-image2.canghe.aiSTRIPE_SECRET_KEY=STRIPE_WEBHOOK_SECRET=+VITE_GA_MEASUREMENT_ID=+GA4_PROPERTY_ID=+GOOGLE_ANALYTICS_CLIENT_ID=+GOOGLE_ANALYTICS_CLIENT_SECRET=+GOOGLE_ANALYTICS_REFRESH_TOKEN=```Setup checklist:@@ -294,6 +299,7 @@ Setup checklist:- Apply [`supabase/migrations/202605090001_user_credits.sql`](supabase/migrations/202605090001_user_credits.sql) to the Supabase project.- Apply [`supabase/migrations/20260509090000_membership_billing.sql`](supabase/migrations/20260509090000_membership_billing.sql) to add membership plans, credit packs, Stripe order records, and credit adjustment RPCs.- Apply [`supabase/migrations/20260512090000_google_account_center.sql`](supabase/migrations/20260512090000_google_account_center.sql) to add account usage summaries and forced credit charging for super admins.+- Apply [`supabase/migrations/20260512143000_pricing_admin_metrics.sql`](supabase/migrations/20260512143000_pricing_admin_metrics.sql) to update the `$5 / 300 credits` catalog and add admin dashboard metrics.- Add `https://gpt-image2.canghe.ai` and local dev URLs such as `http://127.0.0.1:5173` to Supabase Auth redirect URLs.- Enable the Google Provider after adding Google OAuth credentials in the Supabase Dashboard.- To force Google-only sign-in, disable the Email Provider in Supabase Auth settings.@@ -301,6 +307,9 @@ Setup checklist:- Configure Stripe Checkout with the webhook URL `https://gpt-image2.canghe.ai/api/billing/webhook`.- Subscribe the Stripe webhook to `checkout.session.completed`, `invoice.payment_succeeded`, `customer.subscription.updated`, and `customer.subscription.deleted`.- Keep `STRIPE_SECRET_KEY` and `STRIPE_WEBHOOK_SECRET` only in server-side Vercel Environment Variables.+- Create a GA4 property for `gpt-image2.canghe.ai`, add the measurement ID to `VITE_GA_MEASUREMENT_ID`, and copy the numeric property ID to `GA4_PROPERTY_ID`.+- Create a Google OAuth Web Client with `http://localhost:8080/oauth2callback` as an authorized redirect URI, then add `GOOGLE_ANALYTICS_CLIENT_ID` and `GOOGLE_ANALYTICS_CLIENT_SECRET` to local `.env.local`.+- Run `npm run ga4:oauth`, open the generated URL, approve the `analytics.readonly` permission, paste the callback URL into the terminal, then add the returned `GOOGLE_ANALYTICS_REFRESH_TOKEN` to Vercel as a Sensitive environment variable.<a name="section-gallery"></a>diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 20d7168..acbe618 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -279,18 +279,35 @@ Vercel 需要配置这些环境变量:VITE_SUPABASE_URL=VITE_SUPABASE_ANON_KEY=SUPABASE_SERVICE_ROLE_KEY=CIYUAN_API_KEY=CIYUAN_BASE_URL=https://ciyuan.today+APP_URL=https://gpt-image2.canghe.ai+STRIPE_SECRET_KEY=+STRIPE_WEBHOOK_SECRET=+VITE_GA_MEASUREMENT_ID=+GA4_PROPERTY_ID=+GOOGLE_ANALYTICS_CLIENT_ID=+GOOGLE_ANALYTICS_CLIENT_SECRET=+GOOGLE_ANALYTICS_REFRESH_TOKEN=```配置清单:- 将 [`supabase/migrations/202605090001_user_credits.sql`](supabase/migrations/202605090001_user_credits.sql) 应用到 Supabase 项目。+- 将 [`supabase/migrations/20260509090000_membership_billing.sql`](supabase/migrations/20260509090000_membership_billing.sql) 应用到 Supabase 项目,添加会员套餐、积分包、Stripe 订单记录和积分调整 RPC。+- 将 [`supabase/migrations/20260512090000_google_account_center.sql`](supabase/migrations/20260512090000_google_account_center.sql) 应用到 Supabase 项目,添加账户用量统计和超级管理员强制扣积分逻辑。+- 将 [`supabase/migrations/20260512143000_pricing_admin_metrics.sql`](supabase/migrations/20260512143000_pricing_admin_metrics.sql) 应用到 Supabase 项目,更新 `$5 / 300 credits` 价格体系,并添加管理员数据看板指标。- 在 Supabase Auth Redirect URLs 里加入 `https://gpt-image2.canghe.ai`,以及 `http://127.0.0.1:5173` 等本地开发地址。-- 在 Supabase Auth 里开启邮箱 OTP 或魔法链接。-- Google Provider 的代码入口已接好,后续在 Supabase Dashboard 填入 Google OAuth 凭据后即可使用。+- 在 Supabase Dashboard 填入 Google OAuth 凭据并启用 Google Provider。+- 如需强制只允许 Google 登录,可以在 Supabase Auth settings 里关闭 Email Provider。- `SUPABASE_SERVICE_ROLE_KEY` 只放在 Vercel Environment Variables 这类服务端环境里。+- 配置 Stripe Checkout Webhook:`https://gpt-image2.canghe.ai/api/billing/webhook`。+- Stripe Webhook 订阅 `checkout.session.completed`、`invoice.payment_succeeded`、`customer.subscription.updated`、`customer.subscription.deleted`。+- `STRIPE_SECRET_KEY` 和 `STRIPE_WEBHOOK_SECRET` 只放在 Vercel Environment Variables 这类服务端环境里。+- 为 `gpt-image2.canghe.ai` 创建 GA4 property,把 measurement ID 填到 `VITE_GA_MEASUREMENT_ID`,把数字版 property ID 填到 `GA4_PROPERTY_ID`。+- 创建 Google OAuth Web Client,Authorized redirect URI 填 `http://localhost:8080/oauth2callback`,然后把 `GOOGLE_ANALYTICS_CLIENT_ID` 和 `GOOGLE_ANALYTICS_CLIENT_SECRET` 写入本地 `.env.local`。+- 运行 `npm run ga4:oauth`,打开脚本生成的授权链接,同意 `analytics.readonly` 权限,把回跳 URL 粘贴回终端,再把得到的 `GOOGLE_ANALYTICS_REFRESH_TOKEN` 作为 Sensitive 环境变量加到 Vercel。<a name="section-gallery"></a>diff --git a/api/_lib/ga4.js b/api/_lib/ga4.jsnew file mode 100644index 0000000..db851e9--- /dev/null+++ b/api/_lib/ga4.js@@ -0,0 +1,226 @@+import { BetaAnalyticsDataClient } from '@google-analytics/data';+import { OAuth2Client } from 'google-auth-library';++let analyticsClient;+let oauthClient;++function privateKey() {+ return process.env.GOOGLE_ANALYTICS_PRIVATE_KEY?.replace(/\\n/g, '\n');+}++function hasOAuthConfig() {+ return Boolean(+ process.env.GA4_PROPERTY_ID+ && process.env.GOOGLE_ANALYTICS_CLIENT_ID+ && process.env.GOOGLE_ANALYTICS_CLIENT_SECRET+ && process.env.GOOGLE_ANALYTICS_REFRESH_TOKEN+ );+}++function hasServiceAccountConfig() {+ return Boolean(+ process.env.GA4_PROPERTY_ID+ && process.env.GOOGLE_ANALYTICS_CLIENT_EMAIL+ && privateKey()+ );+}++export function isGa4Configured() {+ return hasOAuthConfig() || hasServiceAccountConfig();+}++function getServiceAccountClient() {+ if (!hasServiceAccountConfig()) return null;+ if (!analyticsClient) {+ analyticsClient = new BetaAnalyticsDataClient({+ credentials: {+ client_email: process.env.GOOGLE_ANALYTICS_CLIENT_EMAIL,+ private_key: privateKey()+ }+ });+ }+ return analyticsClient;+}++function getOAuthClient() {+ if (!hasOAuthConfig()) return null;+ if (!oauthClient) {+ oauthClient = new OAuth2Client(+ process.env.GOOGLE_ANALYTICS_CLIENT_ID,+ process.env.GOOGLE_ANALYTICS_CLIENT_SECRET+ );+ oauthClient.setCredentials({+ refresh_token: process.env.GOOGLE_ANALYTICS_REFRESH_TOKEN+ });+ }+ return oauthClient;+}++function rowMetric(row, name) {+ const index = row.metricHeaders?.findIndex((metric) => metric.name === name);+ if (index == null || index < 0) return 0;+ return Number(row.metricValues?.[index]?.value || 0);+}++function rowDimension(row, name) {+ const index = row.dimensionHeaders?.findIndex((dimension) => dimension.name === name);+ if (index == null || index < 0) return '';+ return row.dimensionValues?.[index]?.value || '';+}++function normalizeRows(response) {+ const headers = {+ metricHeaders: response.metricHeaders || [],+ dimensionHeaders: response.dimensionHeaders || []+ };+ return (response.rows || []).map((row) => ({ ...row, ...headers }));+}++async function runReport(request) {+ const oauth = getOAuthClient();+ if (oauth) {+ const accessToken = await oauth.getAccessToken();+ const token = typeof accessToken === 'string' ? accessToken : accessToken?.token;+ if (!token) throw new Error('GA4_OAUTH_TOKEN_FAILED');++ const response = await fetch(+ `https://analyticsdata.googleapis.com/v1beta/properties/${process.env.GA4_PROPERTY_ID}:runReport`,+ {+ method: 'POST',+ headers: {+ Authorization: `Bearer ${token}`,+ 'Content-Type': 'application/json',+ Accept: 'application/json'+ },+ body: JSON.stringify(request)+ }+ );+ const payload = await response.json().catch(() => ({}));+ if (!response.ok) {+ const message = payload?.error?.message || `GA4 report failed with status ${response.status}`;+ const error = new Error(message);+ error.status = response.status;+ error.code = payload?.error?.code;+ throw error;+ }+ return payload;+ }++ const client = getServiceAccountClient();+ if (!client) return null;+ const [response] = await client.runReport({+ property: `properties/${process.env.GA4_PROPERTY_ID}`,+ ...request+ });+ return response;+}++export async function getGa4Traffic(rangeDays) {+ if (!isGa4Configured()) {+ return {+ configured: false,+ totals: null,+ daily: [],+ topPages: [],+ channels: [],+ countries: []+ };+ }++ const dateRange = {+ startDate: `${rangeDays}daysAgo`,+ endDate: 'today'+ };++ const [totalsReport, dailyReport, pageReport, channelReport, countryReport] = await Promise.all([+ runReport({+ dateRanges: [dateRange],+ metrics: [+ { name: 'activeUsers' },+ { name: 'screenPageViews' },+ { name: 'sessions' },+ { name: 'newUsers' }+ ]+ }),+ runReport({+ dateRanges: [dateRange],+ dimensions: [{ name: 'date' }],+ metrics: [+ { name: 'activeUsers' },+ { name: 'screenPageViews' },+ { name: 'sessions' },+ { name: 'newUsers' }+ ],+ orderBys: [{ dimension: { dimensionName: 'date' } }]+ }),+ runReport({+ dateRanges: [dateRange],+ dimensions: [{ name: 'pagePathPlusQueryString' }],+ metrics: [+ { name: 'screenPageViews' },+ { name: 'activeUsers' }+ ],+ orderBys: [{ metric: { metricName: 'screenPageViews' }, desc: true }],+ limit: 8+ }),+ runReport({+ dateRanges: [dateRange],+ dimensions: [{ name: 'sessionDefaultChannelGroup' }],+ metrics: [+ { name: 'sessions' },+ { name: 'activeUsers' }+ ],+ orderBys: [{ metric: { metricName: 'sessions' }, desc: true }],+ limit: 8+ }),+ runReport({+ dateRanges: [dateRange],+ dimensions: [{ name: 'country' }],+ metrics: [+ { name: 'activeUsers' },+ { name: 'screenPageViews' }+ ],+ orderBys: [{ metric: { metricName: 'activeUsers' }, desc: true }],+ limit: 8+ })+ ]);++ const daily = normalizeRows(dailyReport).map((row) => ({+ date: rowDimension(row, 'date'),+ activeUsers: rowMetric(row, 'activeUsers'),+ pageViews: rowMetric(row, 'screenPageViews'),+ sessions: rowMetric(row, 'sessions'),+ newUsers: rowMetric(row, 'newUsers')+ }));++ const totalsRow = normalizeRows(totalsReport)[0];+ const totals = totalsRow+ ? {+ activeUsers: rowMetric(totalsRow, 'activeUsers'),+ pageViews: rowMetric(totalsRow, 'screenPageViews'),+ sessions: rowMetric(totalsRow, 'sessions'),+ newUsers: rowMetric(totalsRow, 'newUsers')+ }+ : { activeUsers: 0, pageViews: 0, sessions: 0, newUsers: 0 };++ return {+ configured: true,+ totals,+ daily,+ topPages: normalizeRows(pageReport).map((row) => ({+ page: rowDimension(row, 'pagePathPlusQueryString') || '/',+ pageViews: rowMetric(row, 'screenPageViews'),+ activeUsers: rowMetric(row, 'activeUsers')+ })),+ channels: normalizeRows(channelReport).map((row) => ({+ channel: rowDimension(row, 'sessionDefaultChannelGroup') || 'Unassigned',+ sessions: rowMetric(row, 'sessions'),+ activeUsers: rowMetric(row, 'activeUsers')+ })),+ countries: normalizeRows(countryReport).map((row) => ({+ country: rowDimension(row, 'country') || 'Unknown',+ activeUsers: rowMetric(row, 'activeUsers'),+ pageViews: rowMetric(row, 'screenPageViews')+ }))+ };+}diff --git a/api/admin/metrics.js b/api/admin/metrics.jsnew file mode 100644index 0000000..9cd5ab6--- /dev/null+++ b/api/admin/metrics.js@@ -0,0 +1,97 @@+import { getAuthContext } from '../_lib/supabase.js';+import { getGa4Traffic, isGa4Configured } from '../_lib/ga4.js';++function json(res, status, payload) {+ res.status(status).json(payload);+}++function parseRange(req) {+ const raw = String(req.query?.range || '7d').toLowerCase();+ if (raw === '30d') return { label: '30d', days: 30 };+ return { label: '7d', days: 7 };+}++function startDateForDays(days) {+ const date = new Date();+ date.setUTCHours(0, 0, 0, 0);+ date.setUTCDate(date.getUTCDate() - Math.max(0, days - 1));+ return date.toISOString();+}++function normalizeBusinessMetrics(row) {+ return {+ totalUsers: Number(row?.total_users || 0),+ rangeUsers: Number(row?.range_users || 0),+ superAdmins: Number(row?.super_admins || 0),+ activeMemberships: Number(row?.active_memberships || 0),+ totalCreditBalance: Number(row?.total_credit_balance || 0),+ totalGenerations: Number(row?.total_generations || 0),+ rangeGenerations: Number(row?.range_generations || 0),+ succeededGenerations: Number(row?.succeeded_generations || 0),+ failedGenerations: Number(row?.failed_generations || 0),+ pendingGenerations: Number(row?.pending_generations || 0),+ rangeSucceededGenerations: Number(row?.range_succeeded_generations || 0),+ totalGenerationCredits: Number(row?.total_generation_credits || 0),+ rangeGenerationCredits: Number(row?.range_generation_credits || 0),+ purchasedCredits: Number(row?.purchased_credits || 0),+ membershipCredits: Number(row?.membership_credits || 0)+ };+}++export default async function handler(req, res) {+ if (req.method !== 'GET') {+ res.setHeader('Allow', 'GET');+ return json(res, 405, { ok: false, error: 'METHOD_NOT_ALLOWED' });+ }++ const auth = await getAuthContext(req);+ if (auth.error) {+ return json(res, auth.status || 401, { ok: false, error: auth.error });+ }++ if (!auth.profile?.isSuperAdmin) {+ return json(res, 403, { ok: false, error: 'FORBIDDEN' });+ }++ const range = parseRange(req);+ const startAt = startDateForDays(range.days);++ try {+ const [businessResult, trafficResult] = await Promise.allSettled([+ auth.client.rpc('get_admin_dashboard_metrics', { p_start_at: startAt }),+ getGa4Traffic(range.days)+ ]);++ if (businessResult.status === 'rejected' || businessResult.value?.error) {+ throw businessResult.reason || businessResult.value?.error;+ }++ const businessRow = Array.isArray(businessResult.value.data)+ ? businessResult.value.data[0]+ : businessResult.value.data;++ const traffic = trafficResult.status === 'fulfilled'+ ? trafficResult.value+ : {+ configured: isGa4Configured(),+ error: 'GA4_REPORT_FAILED',+ totals: null,+ daily: [],+ topPages: [],+ channels: [],+ countries: []+ };++ return json(res, 200, {+ ok: true,+ range: range.label,+ business: normalizeBusinessMetrics(businessRow),+ traffic+ });+ } catch (error) {+ console.warn('Failed to load admin metrics', {+ message: String(error?.message || 'unknown').slice(0, 240)+ });+ return json(res, 500, { ok: false, error: 'SERVER_NOT_CONFIGURED' });+ }+}diff --git a/api/admin/users.js b/api/admin/users.jsindex e478cdb..0cc156a 100644--- a/api/admin/users.js+++ b/api/admin/users.js@@ -15,6 +15,14 @@ function formatAdminUser(row) {freeGenerationsUsed: Number(row.free_generations_used || 0),freeUsed: Number(row.free_generations_used || 0) >= 1,membership: row.membership || null,+ usage: {+ totalGenerations: Number(row.total_generations || 0),+ totalGenerationCredits: Number(row.total_generation_credits || 0),+ purchasedCredits: Number(row.purchased_credits || 0),+ membershipCredits: Number(row.membership_credits || 0),+ lastGenerationAt: row.last_generation_at || '',+ lastGenerationCaseId: Number(row.last_generation_case_id || 0) || null+ },createdAt: row.created_at || ''};}@@ -34,11 +42,9 @@ export default async function handler(req, res) {return json(res, 403, { ok: false, error: 'FORBIDDEN' });}- const { data, error } = await auth.client- .from('profiles')- .select('id,email,full_name,avatar_url,role,credit_balance,free_generations_used,created_at')- .order('created_at', { ascending: false })- .limit(100);+ const { data, error } = await auth.client.rpc('get_admin_user_summaries', {+ p_limit: 100+ });if (error) {console.warn('Failed to list admin users', {@@ -47,31 +53,20 @@ export default async function handler(req, res) {return json(res, 500, { ok: false, error: 'SERVER_NOT_CONFIGURED' });}- const userIds = (data || []).map((user) => user.id);- const membershipsByUserId = new Map();- if (userIds.length) {- const { data: memberships, error: membershipError } = await auth.client- .from('user_memberships')- .select('user_id,plan_id,status,current_period_end,cancel_at_period_end')- .in('user_id', userIds);-- if (!membershipError) {- for (const membership of memberships || []) {- membershipsByUserId.set(membership.user_id, {- planId: membership.plan_id || '',- status: membership.status || 'inactive',- currentPeriodEnd: membership.current_period_end || '',- cancelAtPeriodEnd: Boolean(membership.cancel_at_period_end)- });- }- }- }-return json(res, 200, {ok: true,users: (data || []).map((user) => formatAdminUser({...user,- membership: membershipsByUserId.get(user.id) || null+ membership: user.membership_id+ ? {+ id: user.membership_id,+ planId: user.membership_plan_id || '',+ status: user.membership_status || 'inactive',+ isActive: ['trialing', 'active'].includes(user.membership_status),+ currentPeriodEnd: user.membership_current_period_end || '',+ cancelAtPeriodEnd: Boolean(user.membership_cancel_at_period_end)+ }+ : null}))});}diff --git a/package-lock.json b/package-lock.jsonindex de7cb03..635e4be 100644--- a/package-lock.json+++ b/package-lock.json@@ -8,8 +8,10 @@"name": "awesome-gpt-image-2-site","version": "1.0.0","dependencies": {+ "@google-analytics/data": "^5.2.2","@supabase/supabase-js": "^2.105.4","@vitejs/plugin-react": "^5.1.1",+ "google-auth-library": "^10.6.2","lucide-react": "^0.561.0","react": "^19.2.1","react-dom": "^19.2.1",@@ -696,6 +698,66 @@"node": ">=18"}},+ "node_modules/@google-analytics/data": {+ "version": "5.2.2",+ "resolved": "https://registry.npmjs.org/@google-analytics/data/-/data-5.2.2.tgz",+ "integrity": "sha512-W6p4Z8IG5Uol2x9NNYA1IfCGbAClyt/dGHv+d1KO8ML658hBq/RUPg4iXc3whdgiJIu6QkVGgcXUO65lkEiLnA==",+ "license": "Apache-2.0",+ "dependencies": {+ "google-gax": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@grpc/grpc-js": {+ "version": "1.14.3",+ "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.3.tgz",+ "integrity": "sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@grpc/proto-loader": "^0.8.0",+ "@js-sdsl/ordered-map": "^4.4.2"+ },+ "engines": {+ "node": ">=12.10.0"+ }+ },+ "node_modules/@grpc/proto-loader": {+ "version": "0.8.1",+ "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.1.tgz",+ "integrity": "sha512-wtF6h+DY6M3YaDBPAmvuuA6jV8Sif9MjtOI5euKFWRgCDl5PeDpPsHR9u2l6St5ceY8AZgoNDww5+HvEsXFsGg==",+ "license": "Apache-2.0",+ "dependencies": {+ "lodash.camelcase": "^4.3.0",+ "long": "^5.0.0",+ "protobufjs": "^7.5.5",+ "yargs": "^17.7.2"+ },+ "bin": {+ "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/@isaacs/cliui": {+ "version": "8.0.2",+ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",+ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",+ "license": "ISC",+ "dependencies": {+ "string-width": "^5.1.2",+ "string-width-cjs": "npm:string-width@^4.2.0",+ "strip-ansi": "^7.0.1",+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",+ "wrap-ansi": "^8.1.0",+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },"node_modules/@jridgewell/gen-mapping": {"version": "0.3.13","resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",@@ -741,6 +803,90 @@"@jridgewell/sourcemap-codec": "^1.4.14"}},+ "node_modules/@js-sdsl/ordered-map": {+ "version": "4.4.2",+ "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz",+ "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/js-sdsl"+ }+ },+ "node_modules/@pkgjs/parseargs": {+ "version": "0.11.0",+ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",+ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",+ "license": "MIT",+ "optional": true,+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@protobufjs/aspromise": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",+ "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/base64": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",+ "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/codegen": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz",+ "integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/eventemitter": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",+ "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/fetch": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",+ "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "@protobufjs/aspromise": "^1.1.1",+ "@protobufjs/inquire": "^1.1.0"+ }+ },+ "node_modules/@protobufjs/float": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",+ "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/inquire": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.1.tgz",+ "integrity": "sha512-mnzgDV26ueAvk7rsbt9L7bE0SuAoqyuys/sMMrmVcN5x9VsxpcG3rqAUSgDyLp0UZlmNfIbQ4fHfCtreVBk8Ew==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/path": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",+ "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/pool": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",+ "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/utf8": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.1.tgz",+ "integrity": "sha512-oOAWABowe8EAbMyWKM0tYDKi8Yaox52D+HWZhAIJqQXbqe0xI/GV7FhLWqlEKreMkfDjshR5FKgi3mnle0h6Eg==",+ "license": "BSD-3-Clause"+ },"node_modules/@rolldown/pluginutils": {"version": "1.0.0-rc.3","resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz",@@ -1242,6 +1388,15 @@"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==","license": "MIT"},+ "node_modules/@types/node": {+ "version": "25.7.0",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-25.7.0.tgz",+ "integrity": "sha512-z+pdZyxE+RTQE9AcboAZCb4otwcrvgHD+GlBpPgn0emDVt0ohrTMhAwlr2Wd9nZ+nihhYFxO2pThz3C5qSu2Eg==",+ "license": "MIT",+ "dependencies": {+ "undici-types": "~7.21.0"+ }+ },"node_modules/@vitejs/plugin-react": {"version": "5.2.0","resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.2.0.tgz",@@ -1262,6 +1417,65 @@"vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"}},+ "node_modules/agent-base": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/ansi-regex": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",+ "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/ansi-styles": {+ "version": "6.2.3",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",+ "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "license": "MIT"+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },"node_modules/baseline-browser-mapping": {"version": "2.10.27","resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.27.tgz",@@ -1274,6 +1488,24 @@"node": ">=6.0.0"}},+ "node_modules/bignumber.js": {+ "version": "9.3.1",+ "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz",+ "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==",+ "license": "MIT",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/brace-expansion": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.0.tgz",+ "integrity": "sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w==",+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0"+ }+ },"node_modules/browserslist": {"version": "4.28.2","resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz",@@ -1307,6 +1539,12 @@"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"}},+ "node_modules/buffer-equal-constant-time": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",+ "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",+ "license": "BSD-3-Clause"+ },"node_modules/caniuse-lite": {"version": "1.0.30001791","resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001791.tgz",@@ -1327,12 +1565,140 @@],"license": "CC-BY-4.0"},+ "node_modules/cliui": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",+ "license": "ISC",+ "dependencies": {+ "string-width": "^4.2.0",+ "strip-ansi": "^6.0.1",+ "wrap-ansi": "^7.0.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/cliui/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/cliui/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/cliui/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/cliui/node_modules/wrap-ansi": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/color-convert": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "license": "MIT",+ "dependencies": {+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"+ }+ },+ "node_modules/color-name": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",+ "license": "MIT"+ },"node_modules/convert-source-map": {"version": "2.0.0","resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz","integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==","license": "MIT"},+ "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/data-uri-to-buffer": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",+ "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",+ "license": "MIT",+ "engines": {+ "node": ">= 12"+ }+ },"node_modules/debug": {"version": "4.4.3","resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",@@ -1350,12 +1716,54 @@}}},+ "node_modules/duplexify": {+ "version": "4.1.3",+ "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.3.tgz",+ "integrity": "sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==",+ "license": "MIT",+ "dependencies": {+ "end-of-stream": "^1.4.1",+ "inherits": "^2.0.3",+ "readable-stream": "^3.1.1",+ "stream-shift": "^1.0.2"+ }+ },+ "node_modules/eastasianwidth": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",+ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",+ "license": "MIT"+ },+ "node_modules/ecdsa-sig-formatter": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",+ "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "safe-buffer": "^5.0.1"+ }+ },"node_modules/electron-to-chromium": {"version": "1.5.349","resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.349.tgz","integrity": "sha512-QsWVGyRuY07Aqb234QytTfwd5d9AJlfNIQ5wIOl1L+PZDzI9d9+Fn0FRale/QYlFxt/bUnB0/nLd1jFPGxGK1A==","license": "ISC"},+ "node_modules/emoji-regex": {+ "version": "9.2.2",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",+ "license": "MIT"+ },+ "node_modules/end-of-stream": {+ "version": "1.4.5",+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",+ "license": "MIT",+ "dependencies": {+ "once": "^1.4.0"+ }+ },"node_modules/esbuild": {"version": "0.27.7","resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz",@@ -1406,6 +1814,12 @@"node": ">=6"}},+ "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",@@ -1423,6 +1837,57 @@}}},+ "node_modules/fetch-blob": {+ "version": "3.2.0",+ "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",+ "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/jimmywarting"+ },+ {+ "type": "paypal",+ "url": "https://paypal.me/jimmywarting"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "node-domexception": "^1.0.0",+ "web-streams-polyfill": "^3.0.3"+ },+ "engines": {+ "node": "^12.20 || >= 14.13"+ }+ },+ "node_modules/foreground-child": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",+ "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",+ "license": "ISC",+ "dependencies": {+ "cross-spawn": "^7.0.6",+ "signal-exit": "^4.0.1"+ },+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/formdata-polyfill": {+ "version": "4.0.10",+ "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",+ "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",+ "license": "MIT",+ "dependencies": {+ "fetch-blob": "^3.1.2"+ },+ "engines": {+ "node": ">=12.20.0"+ }+ },"node_modules/fsevents": {"version": "2.3.3","resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",@@ -1437,6 +1902,34 @@"node": "^8.16.0 || ^10.6.0 || >=11.0.0"}},+ "node_modules/gaxios": {+ "version": "7.1.4",+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.4.tgz",+ "integrity": "sha512-bTIgTsM2bWn3XklZISBTQX7ZSddGW+IO3bMdGaemHZ3tbqExMENHLx6kKZ/KlejgrMtj8q7wBItt51yegqalrA==",+ "license": "Apache-2.0",+ "dependencies": {+ "extend": "^3.0.2",+ "https-proxy-agent": "^7.0.1",+ "node-fetch": "^3.3.2"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/gcp-metadata": {+ "version": "8.1.2",+ "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.2.tgz",+ "integrity": "sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==",+ "license": "Apache-2.0",+ "dependencies": {+ "gaxios": "^7.0.0",+ "google-logging-utils": "^1.0.0",+ "json-bigint": "^1.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },"node_modules/gensync": {"version": "1.0.0-beta.2","resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",@@ -1446,55 +1939,237 @@"node": ">=6.9.0"}},- "node_modules/iceberg-js": {- "version": "0.8.1",- "resolved": "https://registry.npmjs.org/iceberg-js/-/iceberg-js-0.8.1.tgz",- "integrity": "sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==",- "license": "MIT",+ "node_modules/get-caller-file": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",+ "license": "ISC","engines": {- "node": ">=20.0.0"+ "node": "6.* || 8.* || >= 10.*"}},- "node_modules/js-tokens": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",- "license": "MIT"- },- "node_modules/jsesc": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",- "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",- "license": "MIT",+ "node_modules/glob": {+ "version": "10.5.0",+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",+ "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",+ "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",+ "license": "ISC",+ "dependencies": {+ "foreground-child": "^3.1.0",+ "jackspeak": "^3.1.2",+ "minimatch": "^9.0.4",+ "minipass": "^7.1.2",+ "package-json-from-dist": "^1.0.0",+ "path-scurry": "^1.11.1"+ },"bin": {- "jsesc": "bin/jsesc"+ "glob": "dist/esm/bin.mjs"},- "engines": {- "node": ">=6"+ "funding": {+ "url": "https://github.com/sponsors/isaacs"}},- "node_modules/json5": {- "version": "2.2.3",- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",- "license": "MIT",- "bin": {- "json5": "lib/cli.js"+ "node_modules/google-auth-library": {+ "version": "10.6.2",+ "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.6.2.tgz",+ "integrity": "sha512-e27Z6EThmVNNvtYASwQxose/G57rkRuaRbQyxM2bvYLLX/GqWZ5chWq2EBoUchJbCc57eC9ArzO5wMsEmWftCw==",+ "license": "Apache-2.0",+ "dependencies": {+ "base64-js": "^1.3.0",+ "ecdsa-sig-formatter": "^1.0.11",+ "gaxios": "^7.1.4",+ "gcp-metadata": "8.1.2",+ "google-logging-utils": "1.1.3",+ "jws": "^4.0.0"},"engines": {- "node": ">=6"+ "node": ">=18"}},- "node_modules/lru-cache": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",- "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",- "license": "ISC",+ "node_modules/google-gax": {+ "version": "5.0.6",+ "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-5.0.6.tgz",+ "integrity": "sha512-1kGbqVQBZPAAu4+/R1XxPQKP0ydbNYoLAr4l0ZO2bMV0kLyLW4I1gAk++qBLWt7DPORTzmWRMsCZe86gDjShJA==",+ "license": "Apache-2.0","dependencies": {- "yallist": "^3.0.2"+ "@grpc/grpc-js": "^1.12.6",+ "@grpc/proto-loader": "^0.8.0",+ "duplexify": "^4.1.3",+ "google-auth-library": "^10.1.0",+ "google-logging-utils": "^1.1.1",+ "node-fetch": "^3.3.2",+ "object-hash": "^3.0.0",+ "proto3-json-serializer": "^3.0.0",+ "protobufjs": "^7.5.3",+ "retry-request": "^8.0.0",+ "rimraf": "^5.0.1"+ },+ "engines": {+ "node": ">=18"}},- "node_modules/lucide-react": {+ "node_modules/google-logging-utils": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz",+ "integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/http-proxy-agent": {+ "version": "7.0.2",+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.0",+ "debug": "^4.3.4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/https-proxy-agent": {+ "version": "7.0.6",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",+ "license": "MIT",+ "dependencies": {+ "agent-base": "^7.1.2",+ "debug": "4"+ },+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/iceberg-js": {+ "version": "0.8.1",+ "resolved": "https://registry.npmjs.org/iceberg-js/-/iceberg-js-0.8.1.tgz",+ "integrity": "sha512-1dhVQZXhcHje7798IVM+xoo/1ZdVfzOMIc8/rgVSijRK38EDqOJoGula9N/8ZI5RD8QTxNQtK/Gozpr+qUqRRA==",+ "license": "MIT",+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"+ },+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "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/jackspeak": {+ "version": "3.4.3",+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",+ "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "@isaacs/cliui": "^8.0.2"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ },+ "optionalDependencies": {+ "@pkgjs/parseargs": "^0.11.0"+ }+ },+ "node_modules/js-tokens": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",+ "license": "MIT"+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/json-bigint": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz",+ "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==",+ "license": "MIT",+ "dependencies": {+ "bignumber.js": "^9.0.0"+ }+ },+ "node_modules/json5": {+ "version": "2.2.3",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",+ "license": "MIT",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/jwa": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz",+ "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==",+ "license": "MIT",+ "dependencies": {+ "buffer-equal-constant-time": "^1.0.1",+ "ecdsa-sig-formatter": "1.0.11",+ "safe-buffer": "^5.0.1"+ }+ },+ "node_modules/jws": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz",+ "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==",+ "license": "MIT",+ "dependencies": {+ "jwa": "^2.0.1",+ "safe-buffer": "^5.0.1"+ }+ },+ "node_modules/lodash.camelcase": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",+ "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==",+ "license": "MIT"+ },+ "node_modules/long": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",+ "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",+ "license": "Apache-2.0"+ },+ "node_modules/lru-cache": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",+ "license": "ISC",+ "dependencies": {+ "yallist": "^3.0.2"+ }+ },+ "node_modules/lucide-react": {"version": "0.561.0","resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.561.0.tgz","integrity": "sha512-Y59gMY38tl4/i0qewcqohPdEbieBy7SovpBL9IFebhc2mDd8x4PZSOsiFRkpPcOq6bj1r/mjH/Rk73gSlIJP2A==",@@ -1503,6 +2178,30 @@"react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0"}},+ "node_modules/minimatch": {+ "version": "9.0.9",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz",+ "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==",+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^2.0.2"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/minipass": {+ "version": "7.1.3",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },"node_modules/ms": {"version": "2.1.3","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",@@ -1527,12 +2226,105 @@"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"}},+ "node_modules/node-domexception": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",+ "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",+ "deprecated": "Use your platform's native DOMException instead",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/jimmywarting"+ },+ {+ "type": "github",+ "url": "https://paypal.me/jimmywarting"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=10.5.0"+ }+ },+ "node_modules/node-fetch": {+ "version": "3.3.2",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",+ "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",+ "license": "MIT",+ "dependencies": {+ "data-uri-to-buffer": "^4.0.0",+ "fetch-blob": "^3.1.4",+ "formdata-polyfill": "^4.0.10"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/node-fetch"+ }+ },"node_modules/node-releases": {"version": "2.0.38","resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.38.tgz","integrity": "sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw==","license": "MIT"},+ "node_modules/object-hash": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/package-json-from-dist": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",+ "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",+ "license": "BlueOak-1.0.0"+ },+ "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/path-scurry": {+ "version": "1.11.1",+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",+ "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "lru-cache": "^10.2.0",+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"+ },+ "engines": {+ "node": ">=16 || 14 >=14.18"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/path-scurry/node_modules/lru-cache": {+ "version": "10.4.3",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",+ "license": "ISC"+ },"node_modules/picocolors": {"version": "1.1.1","resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",@@ -1579,6 +2371,42 @@"node": "^10 || ^12 || >=14"}},+ "node_modules/proto3-json-serializer": {+ "version": "3.0.4",+ "resolved": "https://registry.npmjs.org/proto3-json-serializer/-/proto3-json-serializer-3.0.4.tgz",+ "integrity": "sha512-E1sbAYg3aEbXrq0n1ojJkRHQJGE1kaE/O6GLA94y8rnJBfgvOPTOd1b9hOceQK1FFZI9qMh1vBERCyO2ifubcw==",+ "license": "Apache-2.0",+ "dependencies": {+ "protobufjs": "^7.4.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/protobufjs": {+ "version": "7.5.7",+ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.7.tgz",+ "integrity": "sha512-NGnrxS/nLKUo5nkbVQxlC71sB4hdfImdYIbFeSCidxtwATx0AHRPcANSLd0q5Bb2BkoSWo2iisQhGg5/r+ihbA==",+ "hasInstallScript": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "@protobufjs/aspromise": "^1.1.2",+ "@protobufjs/base64": "^1.1.2",+ "@protobufjs/codegen": "^2.0.5",+ "@protobufjs/eventemitter": "^1.1.0",+ "@protobufjs/fetch": "^1.1.0",+ "@protobufjs/float": "^1.0.2",+ "@protobufjs/inquire": "^1.1.1",+ "@protobufjs/path": "^1.1.2",+ "@protobufjs/pool": "^1.1.0",+ "@protobufjs/utf8": "^1.1.1",+ "@types/node": ">=13.7.0",+ "long": "^5.0.0"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },"node_modules/react": {"version": "19.2.5","resolved": "https://registry.npmjs.org/react/-/react-19.2.5.tgz",@@ -1609,6 +2437,57 @@"node": ">=0.10.0"}},+ "node_modules/readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "license": "MIT",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/require-directory": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/retry-request": {+ "version": "8.0.2",+ "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-8.0.2.tgz",+ "integrity": "sha512-JzFPAfklk1kjR1w76f0QOIhoDkNkSqW8wYKT08n9yysTmZfB+RQ2QoXoTAeOi1HD9ZipTyTAZg3c4pM/jeqgSw==",+ "license": "MIT",+ "dependencies": {+ "extend": "^3.0.2",+ "teeny-request": "^10.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/rimraf": {+ "version": "5.0.10",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz",+ "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==",+ "license": "ISC",+ "dependencies": {+ "glob": "^10.3.7"+ },+ "bin": {+ "rimraf": "dist/esm/bin.mjs"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/rollup": {"version": "4.60.2","resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.2.tgz",@@ -1653,6 +2532,26 @@"fsevents": "~2.3.2"}},+ "node_modules/safe-buffer": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },"node_modules/scheduler": {"version": "0.27.0","resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",@@ -1668,6 +2567,39 @@"semver": "bin/semver.js"}},+ "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/signal-exit": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "license": "ISC",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/source-map-js": {"version": "1.2.1","resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",@@ -1677,6 +2609,126 @@"node": ">=0.10.0"}},+ "node_modules/stream-events": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/stream-events/-/stream-events-1.0.5.tgz",+ "integrity": "sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==",+ "license": "MIT",+ "dependencies": {+ "stubs": "^3.0.0"+ }+ },+ "node_modules/stream-shift": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz",+ "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==",+ "license": "MIT"+ },+ "node_modules/string_decoder": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",+ "license": "MIT",+ "dependencies": {+ "safe-buffer": "~5.2.0"+ }+ },+ "node_modules/string-width": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",+ "license": "MIT",+ "dependencies": {+ "eastasianwidth": "^0.2.0",+ "emoji-regex": "^9.2.2",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/string-width-cjs": {+ "name": "string-width",+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/string-width-cjs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi": {+ "version": "7.2.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",+ "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^6.2.2"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },+ "node_modules/strip-ansi-cjs": {+ "name": "strip-ansi",+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/stripe": {"version": "22.1.1","resolved": "https://registry.npmjs.org/stripe/-/stripe-22.1.1.tgz",@@ -1694,6 +2746,27 @@}}},+ "node_modules/stubs": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz",+ "integrity": "sha512-PdHt7hHUJKxvTCgbKX9C1V/ftOcjJQgz8BZwNfV5c4B6dcGqlpelTbJ999jBGZ2jYiPAwcX5dP6oBwVlBlUbxw==",+ "license": "MIT"+ },+ "node_modules/teeny-request": {+ "version": "10.1.2",+ "resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-10.1.2.tgz",+ "integrity": "sha512-Xj0ZAQ0CeuQn6UxCDPLbFRlgcSTUEyO3+wiepr2grjIjyL/lMMs1Z4OwXn8kLvn/V1OuaEP0UY7Na6UDNNsYrQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "http-proxy-agent": "^7.0.0",+ "https-proxy-agent": "^7.0.1",+ "node-fetch": "^3.3.2",+ "stream-events": "^1.0.5"+ },+ "engines": {+ "node": ">=18"+ }+ },"node_modules/tinyglobby": {"version": "0.2.16","resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz",@@ -1716,6 +2789,12 @@"integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==","license": "0BSD"},+ "node_modules/undici-types": {+ "version": "7.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.21.0.tgz",+ "integrity": "sha512-w9IMgQrz4O0YN1LtB7K5P63vhlIOvC7opSmouCJ+ZywlPAlO9gIkJ+otk6LvGpAs2wg4econaCz3TvQ9xPoyuQ==",+ "license": "MIT"+ },"node_modules/update-browserslist-db": {"version": "1.2.3","resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",@@ -1746,6 +2825,12 @@"browserslist": ">= 4.21.0"}},+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "license": "MIT"+ },"node_modules/vite": {"version": "7.3.2","resolved": "https://registry.npmjs.org/vite/-/vite-7.3.2.tgz",@@ -1820,11 +2905,209 @@}}},+ "node_modules/web-streams-polyfill": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",+ "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",+ "license": "MIT",+ "engines": {+ "node": ">= 8"+ }+ },+ "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/wrap-ansi": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^6.1.0",+ "string-width": "^5.0.1",+ "strip-ansi": "^7.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs": {+ "name": "wrap-ansi",+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",+ "license": "MIT",+ "dependencies": {+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "license": "MIT",+ "dependencies": {+ "color-convert": "^2.0.1"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/wrap-ansi-cjs/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC"+ },+ "node_modules/y18n": {+ "version": "5.0.8",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",+ "license": "ISC",+ "engines": {+ "node": ">=10"+ }+ },"node_modules/yallist": {"version": "3.1.1","resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz","integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==","license": "ISC"+ },+ "node_modules/yargs": {+ "version": "17.7.2",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",+ "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",+ "license": "MIT",+ "dependencies": {+ "cliui": "^8.0.1",+ "escalade": "^3.1.1",+ "get-caller-file": "^2.0.5",+ "require-directory": "^2.1.1",+ "string-width": "^4.2.3",+ "y18n": "^5.0.5",+ "yargs-parser": "^21.1.1"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs-parser": {+ "version": "21.1.1",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",+ "license": "ISC",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yargs/node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",+ "license": "MIT"+ },+ "node_modules/yargs/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "license": "MIT",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/strip-ansi": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "license": "MIT",+ "dependencies": {+ "ansi-regex": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }}}}diff --git a/package.json b/package.jsonindex b12e3f7..d24f098 100644--- a/package.json+++ b/package.json@@ -6,6 +6,7 @@"scripts": {"generate:site-data": "node scripts/generate-site-data.mjs","generate:style-skill": "node scripts/generate-style-skill.mjs",+ "ga4:oauth": "node scripts/google-analytics-oauth.mjs","install:skill": "node scripts/install-style-skill.mjs","pack:skill": "npm pack ./agents/skills/gpt-image-2-style-library --dry-run","publish:skill:npm": "npm publish ./agents/skills/gpt-image-2-style-library --access public",@@ -16,8 +17,10 @@"preview": "vite preview"},"dependencies": {+ "@google-analytics/data": "^5.2.2","@supabase/supabase-js": "^2.105.4","@vitejs/plugin-react": "^5.1.1",+ "google-auth-library": "^10.6.2","lucide-react": "^0.561.0","react": "^19.2.1","react-dom": "^19.2.1",diff --git a/scripts/google-analytics-oauth.mjs b/scripts/google-analytics-oauth.mjsnew file mode 100644index 0000000..d06c71e--- /dev/null+++ b/scripts/google-analytics-oauth.mjs@@ -0,0 +1,86 @@+import { readFileSync } from 'node:fs';+import { createInterface } from 'node:readline/promises';+import { stdin as input, stdout as output } from 'node:process';+import { OAuth2Client } from 'google-auth-library';++const SCOPE = 'https://www.googleapis.com/auth/analytics.readonly';+const DEFAULT_REDIRECT_URI = 'http://localhost:8080/oauth2callback';++function parseEnvValue(value) {+ const trimmed = String(value || '').trim();+ if (+ (trimmed.startsWith('"') && trimmed.endsWith('"'))+ || (trimmed.startsWith("'") && trimmed.endsWith("'"))+ ) {+ return trimmed.slice(1, -1);+ }+ return trimmed;+}++function loadEnvFile(path) {+ try {+ const content = readFileSync(path, 'utf8');+ for (const line of content.split(/\r?\n/)) {+ const trimmed = line.trim();+ if (!trimmed || trimmed.startsWith('#') || !trimmed.includes('=')) continue;+ const [key, ...rest] = trimmed.split('=');+ if (!process.env[key]) {+ process.env[key] = parseEnvValue(rest.join('='));+ }+ }+ } catch {+ // Optional helper: env vars can also be passed directly from the shell.+ }+}++function codeFromInput(value) {+ const text = String(value || '').trim();+ if (!text) return '';+ try {+ const url = new URL(text);+ return url.searchParams.get('code') || text;+ } catch {+ return text;+ }+}++loadEnvFile('.env.local');+loadEnvFile('.env');++const clientId = process.env.GOOGLE_ANALYTICS_CLIENT_ID;+const clientSecret = process.env.GOOGLE_ANALYTICS_CLIENT_SECRET;+const redirectUri = process.env.GOOGLE_ANALYTICS_REDIRECT_URI || DEFAULT_REDIRECT_URI;++if (!clientId || !clientSecret) {+ console.error('Missing GOOGLE_ANALYTICS_CLIENT_ID or GOOGLE_ANALYTICS_CLIENT_SECRET.');+ process.exit(1);+}++const oauth = new OAuth2Client(clientId, clientSecret, redirectUri);+const authUrl = oauth.generateAuthUrl({+ access_type: 'offline',+ prompt: 'consent',+ scope: [SCOPE]+});++console.log('\nOpen this URL with the Google account that can read your GA4 property:\n');+console.log(authUrl);+console.log('\nAfter Google redirects to localhost, copy the full callback URL or just the code parameter.\n');++const cliCodeIndex = process.argv.indexOf('--code');+let code = cliCodeIndex >= 0 ? process.argv[cliCodeIndex + 1] : '';++if (!code) {+ const rl = createInterface({ input, output });+ code = await rl.question('Paste callback URL or code: ');+ rl.close();+}++const { tokens } = await oauth.getToken(codeFromInput(code));+if (!tokens.refresh_token) {+ console.error('\nNo refresh token was returned. Re-run after revoking the app permission, or keep prompt=consent and access_type=offline.');+ process.exit(1);+}++console.log('\nAdd this to Vercel Environment Variables as a Sensitive value:\n');+console.log(`GOOGLE_ANALYTICS_REFRESH_TOKEN=${tokens.refresh_token}`);diff --git a/src/main.jsx b/src/main.jsxindex b415b69..9db78f7 100644--- a/src/main.jsx+++ b/src/main.jsx@@ -2,6 +2,7 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';import { createRoot } from 'react-dom/client';import {ArrowUpRight,+ BarChart3,Bot,ChevronDown,Check,@@ -23,7 +24,9 @@ import {ShieldCheck,Sparkles,Terminal,+ TrendingUp,UserCircle,+ UserPlus,Users,WandSparkles,X@@ -33,6 +36,7 @@ import { isSupabaseConfigured, supabase } from './supabaseClient';import skillExampleImage from '../agents/skills/gpt-image-2-style-library/assets/city-life-system-map.png';const fallbackRepoUrl = 'https://github.com/freestylefly/awesome-gpt-image-2';+const gaMeasurementId = import.meta.env.VITE_GA_MEASUREMENT_ID;const copy = {en: {@@ -163,12 +167,44 @@ const copy = {signInToGenerate: 'Sign in to generate',creditsAvailable: (count) => `${count} credit${count === 1 ? '' : 's'} available`,adminTitle: 'User admin',- adminSubtitle: 'Read-only user, role, credit, and free-generation overview.',+ adminSubtitle: 'Traffic, users, memberships, credits, and generation activity in one dashboard.',+ adminMetrics: 'Dashboard',+ trafficMetrics: 'Traffic',+ businessMetrics: 'Business',+ analyticsNotConfigured: 'GA4 is not configured yet. Business metrics are still available.',+ analyticsLoadFailed: 'GA4 data could not be loaded. Business metrics are still available.',+ range7d: '7 days',+ range30d: '30 days',+ pv: 'PV',+ uv: 'UV',+ sessions: 'Sessions',+ newUsers: 'New users',+ registeredUsers: 'Registered users',+ newRegistrations: 'New registrations',+ activeMemberships: 'Active members',+ totalGenerationsMetric: 'Total generations',+ rangeGenerations: 'Range generations',+ succeeded: 'Succeeded',+ failed: 'Failed',+ pending: 'Pending',+ creditsConsumed: 'Credits consumed',+ creditsInCirculation: 'Credits in balances',+ purchasedCredits: 'Purchased credits',+ membershipCredits: 'Membership credits',+ dailyTraffic: 'Daily traffic',+ topPages: 'Top pages',+ channels: 'Channels',+ countries: 'Countries',+ pageViews: 'Views',+ noAnalyticsRows: 'No analytics rows yet.',refresh: 'Refresh',users: 'Users',role: 'Role',creditBalance: 'Credits',freeGeneration: 'Free test',+ spentCredits: 'Spent',+ purchased: 'Purchased',+ lastGeneration: 'Last generation',createdAt: 'Created',loadingUsers: 'Loading users...',noUsers: 'No users yet.',@@ -311,12 +347,44 @@ const copy = {signInToGenerate: '登录后生成',creditsAvailable: (count) => `可用积分 ${count}`,adminTitle: '用户管理',- adminSubtitle: '只读查看用户、角色、积分余额和免费生成状态。',+ adminSubtitle: '统一查看流量、用户、会员、积分和生图活跃情况。',+ adminMetrics: '数据看板',+ trafficMetrics: '流量数据',+ businessMetrics: '业务数据',+ analyticsNotConfigured: 'GA4 还没有配置,当前先展示业务数据。',+ analyticsLoadFailed: 'GA4 数据暂时读取失败,当前先展示业务数据。',+ range7d: '近 7 天',+ range30d: '近 30 天',+ pv: 'PV',+ uv: 'UV',+ sessions: 'Sessions',+ newUsers: '新访客',+ registeredUsers: '注册用户',+ newRegistrations: '新增注册',+ activeMemberships: '活跃会员',+ totalGenerationsMetric: '总生图量',+ rangeGenerations: '区间生图量',+ succeeded: '成功',+ failed: '失败',+ pending: '进行中',+ creditsConsumed: '已消耗积分',+ creditsInCirculation: '账户积分余额',+ purchasedCredits: '购买积分',+ membershipCredits: '会员发放积分',+ dailyTraffic: '每日流量',+ topPages: '热门页面',+ channels: '来源渠道',+ countries: '国家/地区',+ pageViews: '浏览量',+ noAnalyticsRows: '暂无统计数据。',refresh: '刷新',users: '用户',role: '角色',creditBalance: '积分',freeGeneration: '免费测试',+ spentCredits: '消耗',+ purchased: '购买',+ lastGeneration: '最近生图',createdAt: '创建时间',loadingUsers: '正在加载用户...',noUsers: '暂无用户。',@@ -402,6 +470,69 @@ const MAX_SAVED_GENERATIONS = 12;const HERO_CASE_COUNT = 5;const HOT_STRIP_CASE_COUNT = 8;+function pagePathWithHash() {+ return `${window.location.pathname}${window.location.search}${window.location.hash}`;+}++function sendGaPageView() {+ if (!gaMeasurementId || typeof window.gtag !== 'function') return;+ window.gtag('event', 'page_view', {+ page_title: document.title,+ page_location: window.location.href,+ page_path: pagePathWithHash()+ });+}++function useGaPageViews() {+ useEffect(() => {+ if (!gaMeasurementId) return undefined;++ window.dataLayer = window.dataLayer || [];+ window.gtag = window.gtag || function gtag() {+ window.dataLayer.push(arguments);+ };+ window.gtag('js', new Date());+ window.gtag('config', gaMeasurementId, { send_page_view: false });++ const existingScript = document.querySelector(`script[data-ga4="${gaMeasurementId}"]`);+ if (!existingScript) {+ const script = document.createElement('script');+ script.async = true;+ script.src = `https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(gaMeasurementId)}`;+ script.dataset.ga4 = gaMeasurementId;+ document.head.appendChild(script);+ }++ sendGaPageView();+ window.addEventListener('hashchange', sendGaPageView);+ window.addEventListener('popstate', sendGaPageView);+ return () => {+ window.removeEventListener('hashchange', sendGaPageView);+ window.removeEventListener('popstate', sendGaPageView);+ };+ }, []);+}++function formatNumber(value) {+ return new Intl.NumberFormat('en-US').format(Number(value || 0));+}++function formatShortDate(value, language) {+ if (!value) return '-';+ const normalized = /^\d{8}$/.test(String(value))+ ? `${String(value).slice(0, 4)}-${String(value).slice(4, 6)}-${String(value).slice(6, 8)}T00:00:00Z`+ : value;+ return new Date(normalized).toLocaleDateString(language === 'zh' ? 'zh-CN' : 'en-US', {+ month: 'short',+ day: 'numeric'+ });+}++function percentOf(value, max) {+ if (!max) return 0;+ return Math.max(4, Math.round((Number(value || 0) / max) * 100));+}+function readSavedGenerations() {try {return JSON.parse(localStorage.getItem(GENERATED_TESTS_STORAGE_KEY) || '{}');@@ -1189,15 +1320,75 @@ function AccountPanel({);}-function AdminPanel({ open, language, session, onClose }) {+function AdminMetricCard({ icon, label, value, hint }) {+ return (+ <div className="adminMetricCard">+ <span className="adminMetricIcon">{icon}</span>+ <div>+ <span>{label}</span>+ <strong>{formatNumber(value)}</strong>+ {hint ? <em>{hint}</em> : null}+ </div>+ </div>+ );+}++function AdminMiniBars({ rows, language }) {+ const maxViews = Math.max(...rows.map((row) => Number(row.pageViews || 0)), 0);+ const maxUsers = Math.max(...rows.map((row) => Number(row.activeUsers || 0)), 0);++ return (+ <div className="adminMiniBars">+ {rows.map((row) => (+ <div className="adminMiniBar" key={row.date}>+ <span>{formatShortDate(row.date, language)}</span>+ <div>+ <i style={{ width: `${percentOf(row.pageViews, maxViews)}%` }} />+ <b style={{ width: `${percentOf(row.activeUsers, maxUsers)}%` }} />+ </div>+ <strong>{formatNumber(row.pageViews)}</strong>+ </div>+ ))}+ </div>+ );+}++function AdminRankList({ rows, type, language }) {+ const t = copy[language];+ if (!rows?.length) return <p className="emptyTransactions">{t.noAnalyticsRows}</p>;++ return (+ <div className="adminRankList">+ {rows.map((row, index) => {+ const title = row.page || row.channel || row.country || '-';+ const mainValue = row.pageViews ?? row.sessions ?? row.activeUsers ?? 0;+ const subValue = row.activeUsers ?? row.pageViews ?? 0;+ return (+ <div className="adminRankItem" key={`${type}-${title}-${index}`}>+ <span>{index + 1}</span>+ <div>+ <strong title={title}>{title}</strong>+ <em>{type === 'channels' ? t.sessions : t.uv}: {formatNumber(subValue)}</em>+ </div>+ <b>{formatNumber(mainValue)}</b>+ </div>+ );+ })}+ </div>+ );+}++function AdminPanel({ open, language, session, casesById, onClose, onOpenCase }) {const t = copy[language];const [users, setUsers] = useState([]);+ const [metrics, setMetrics] = useState(null);+ const [range, setRange] = useState('7d');const [status, setStatus] = useState('idle');const [message, setMessage] = useState('');const [adjustment, setAdjustment] = useState(null);const [adjustStatus, setAdjustStatus] = useState('idle');- async function loadUsers() {+ async function loadAdminData(nextRange = range) {if (!session?.access_token) {setStatus('error');setMessage(t.adminOnly);@@ -1207,14 +1398,21 @@ function AdminPanel({ open, language, session, onClose }) {setStatus('loading');setMessage('');try {- const response = await fetch('/api/admin/users', {- headers: getAuthHeaders(session)- });- const payload = await response.json().catch(() => ({}));- if (!response.ok || !payload.ok) {- throw new Error(payload.error || 'SERVER_NOT_CONFIGURED');+ const headers = getAuthHeaders(session);+ const [usersResponse, metricsResponse] = await Promise.all([+ fetch('/api/admin/users', { headers }),+ fetch(`/api/admin/metrics?range=${encodeURIComponent(nextRange)}`, { headers })+ ]);+ const usersPayload = await usersResponse.json().catch(() => ({}));+ const metricsPayload = await metricsResponse.json().catch(() => ({}));+ if (!usersResponse.ok || !usersPayload.ok) {+ throw new Error(usersPayload.error || 'SERVER_NOT_CONFIGURED');+ }+ if (!metricsResponse.ok || !metricsPayload.ok) {+ throw new Error(metricsPayload.error || 'SERVER_NOT_CONFIGURED');}- setUsers(payload.users || []);+ setUsers(usersPayload.users || []);+ setMetrics(metricsPayload);setStatus('ready');} catch (error) {setStatus('error');@@ -1245,11 +1443,9 @@ function AdminPanel({ open, language, session, onClose }) {if (!response.ok || !payload.ok) {throw new Error(payload.error || 'CREDIT_ADJUSTMENT_FAILED');}- setUsers((current) => current.map((user) => (- user.id === payload.user.id ? { ...user, ...payload.user } : user- )));setAdjustment(null);setAdjustStatus('idle');+ await loadAdminData();} catch (error) {setAdjustStatus('error');setMessage(generationErrorMessage(error.message, language));@@ -1257,10 +1453,18 @@ function AdminPanel({ open, language, session, onClose }) {}useEffect(() => {- if (open) loadUsers();- }, [open, session?.access_token]);+ if (open) loadAdminData(range);+ }, [open, session?.access_token, range]);if (!open) return null;+ const traffic = metrics?.traffic || {};+ const business = metrics?.business || {};+ const trafficTotals = traffic.totals || {};+ const analyticsMessage = !traffic.configured+ ? t.analyticsNotConfigured+ : traffic.error+ ? t.analyticsLoadFailed+ : '';return (<div@@ -1283,7 +1487,93 @@ function AdminPanel({ open, language, session, onClose }) {<h2 id="admin-title">{t.adminTitle}</h2><p>{t.adminSubtitle}</p></div>- <button type="button" onClick={loadUsers} disabled={status === 'loading'}>+ <div className="adminHeaderActions">+ <div className="adminRangeToggle" role="group" aria-label={t.adminMetrics}>+ {[+ ['7d', t.range7d],+ ['30d', t.range30d]+ ].map(([value, label]) => (+ <button+ className={cx(range === value && 'active')}+ type="button"+ onClick={() => setRange(value)}+ key={value}+ >+ {label}+ </button>+ ))}+ </div>+ <button type="button" onClick={() => loadAdminData()} disabled={status === 'loading'}>+ {status === 'loading' ? <LoaderCircle className="spinIcon" size={17} /> : <RefreshCw size={17} />}+ {t.refresh}+ </button>+ </div>+ </div>++ {metrics ? (+ <div className="adminDashboard">+ <section className="adminBlock">+ <h3>+ <TrendingUp size={18} />+ {t.trafficMetrics}+ </h3>+ {analyticsMessage ? <p className="adminNotice">{analyticsMessage}</p> : null}+ <div className="adminMetricGrid">+ <AdminMetricCard icon={<BarChart3 size={18} />} label={t.pv} value={trafficTotals.pageViews} />+ <AdminMetricCard icon={<Users size={18} />} label={t.uv} value={trafficTotals.activeUsers} />+ <AdminMetricCard icon={<ReceiptText size={18} />} label={t.sessions} value={trafficTotals.sessions} />+ <AdminMetricCard icon={<UserPlus size={18} />} label={t.newUsers} value={trafficTotals.newUsers} />+ </div>+ <div className="adminTrafficGrid">+ <div className="adminPanelCard wide">+ <h4>{t.dailyTraffic}</h4>+ {traffic.daily?.length ? (+ <AdminMiniBars rows={traffic.daily} language={language} />+ ) : (+ <p className="emptyTransactions">{t.noAnalyticsRows}</p>+ )}+ </div>+ <div className="adminPanelCard">+ <h4>{t.topPages}</h4>+ <AdminRankList rows={traffic.topPages || []} type="pages" language={language} />+ </div>+ <div className="adminPanelCard">+ <h4>{t.channels}</h4>+ <AdminRankList rows={traffic.channels || []} type="channels" language={language} />+ </div>+ <div className="adminPanelCard">+ <h4>{t.countries}</h4>+ <AdminRankList rows={traffic.countries || []} type="countries" language={language} />+ </div>+ </div>+ </section>++ <section className="adminBlock">+ <h3>+ <ShieldCheck size={18} />+ {t.businessMetrics}+ </h3>+ <div className="adminMetricGrid">+ <AdminMetricCard icon={<Users size={18} />} label={t.registeredUsers} value={business.totalUsers} hint={`${t.newRegistrations}: ${formatNumber(business.rangeUsers)}`} />+ <AdminMetricCard icon={<Crown size={18} />} label={t.activeMemberships} value={business.activeMemberships} />+ <AdminMetricCard icon={<ImageIcon size={18} />} label={t.totalGenerationsMetric} value={business.totalGenerations} hint={`${t.rangeGenerations}: ${formatNumber(business.rangeGenerations)}`} />+ <AdminMetricCard icon={<Coins size={18} />} label={t.creditsConsumed} value={business.totalGenerationCredits} hint={`${t.rangeGenerations}: ${formatNumber(business.rangeGenerationCredits)}`} />+ <AdminMetricCard icon={<PackageCheck size={18} />} label={t.succeeded} value={business.succeededGenerations} />+ <AdminMetricCard icon={<X size={18} />} label={t.failed} value={business.failedGenerations} />+ <AdminMetricCard icon={<LoaderCircle size={18} />} label={t.pending} value={business.pendingGenerations} />+ <AdminMetricCard icon={<Coins size={18} />} label={t.creditsInCirculation} value={business.totalCreditBalance} />+ <AdminMetricCard icon={<CreditCard size={18} />} label={t.purchasedCredits} value={business.purchasedCredits} />+ <AdminMetricCard icon={<Crown size={18} />} label={t.membershipCredits} value={business.membershipCredits} />+ </div>+ </section>+ </div>+ ) : null}++ <div className="adminHeader compact">+ <div>+ <h3>{t.users}</h3>+ </div>+ <button type="button" onClick={() => loadAdminData()} disabled={status === 'loading'}>{status === 'loading' ? <LoaderCircle className="spinIcon" size={17} /> : <RefreshCw size={17} />}{t.refresh}</button>@@ -1337,6 +1627,10 @@ function AdminPanel({ open, language, session, onClose }) {<th>{t.creditBalance}</th><th>{t.currentPlan}</th><th>{t.freeGeneration}</th>+ <th>{t.totalGenerations}</th>+ <th>{t.spentCredits}</th>+ <th>{t.purchased}</th>+ <th>{t.lastGeneration}</th><th>{t.createdAt}</th><th>{t.adminAdjust}</th></tr>@@ -1357,6 +1651,25 @@ function AdminPanel({ open, language, session, onClose }) {<td>{user.creditBalance}</td><td>{formatMembershipStatus(user.membership, language)}</td><td>{user.freeUsed ? t.freeUsedShort : t.freeReady}</td>+ <td>{formatNumber(user.usage?.totalGenerations)}</td>+ <td>{formatNumber(user.usage?.totalGenerationCredits)}</td>+ <td>{formatNumber(user.usage?.purchasedCredits)}</td>+ <td>+ {user.usage?.lastGenerationCaseId ? (+ <button+ className="tableAction compactAction"+ type="button"+ onClick={() => {+ const caseItem = casesById?.get(user.usage.lastGenerationCaseId);+ if (caseItem) onOpenCase?.(caseItem);+ }}+ disabled={!casesById?.has(user.usage.lastGenerationCaseId)}+ >+ <ImageIcon size={14} />+ #{user.usage.lastGenerationCaseId}+ </button>+ ) : '-'}+ </td><td>{user.createdAt ? new Date(user.createdAt).toLocaleDateString(language === 'zh' ? 'zh-CN' : 'en-US') : '-'}</td><td><button@@ -2162,6 +2475,7 @@ function PreviewDialog({}function App() {+ useGaPageViews();const [siteData, setSiteData] = useState(null);const [styleLibrary, setStyleLibrary] = useState(null);const [language, setLanguage] = useState(() => localStorage.getItem('language') || 'en');@@ -2342,6 +2656,11 @@ function App() {setPreview({ type: 'case', item: caseItem });}+ function handleOpenCaseFromAdmin(caseItem) {+ setAdminOpen(false);+ setPreview({ type: 'case', item: caseItem });+ }+if (!siteData || !styleLibrary) {return (<main>@@ -2541,7 +2860,9 @@ function App() {open={adminOpen}language={language}session={session}+ casesById={casesById}onClose={() => setAdminOpen(false)}+ onOpenCase={handleOpenCaseFromAdmin}/><BillingPanelopen={billingOpen}diff --git a/src/styles.css b/src/styles.cssindex 505bdb6..8536848 100644--- a/src/styles.css+++ b/src/styles.css@@ -1829,7 +1829,7 @@ button {}.adminDialog {- width: min(980px, 100%);+ width: min(1180px, 100%);padding: 24px;}@@ -1877,10 +1877,271 @@ button {margin-bottom: 18px;}+.adminHeader.compact {+ align-items: center;+ margin: 18px 0 12px;+}++.adminHeader.compact h3 {+ margin: 0;+ color: #eaf3ff;+ font-size: 18px;+}+.adminHeader h2 {margin-top: 14px;}+.adminHeaderActions {+ display: flex;+ align-items: center;+ gap: 10px;+ flex-wrap: wrap;+ justify-content: flex-end;+}++.adminRangeToggle {+ display: inline-flex;+ gap: 4px;+ border: 1px solid rgba(255, 255, 255, 0.11);+ border-radius: 8px;+ padding: 4px;+ background: rgba(255, 255, 255, 0.055);+}++.adminRangeToggle button {+ min-height: 34px;+ border: 0;+ border-radius: 7px;+ padding: 0 10px;+ background: transparent;+ color: #aebcd0;+ box-shadow: none;+}++.adminRangeToggle button.active,+.adminRangeToggle button:hover {+ background: rgba(103, 232, 249, 0.14);+ color: #ffffff;+}++.adminDashboard,+.adminBlock {+ display: grid;+ gap: 14px;+}++.adminDashboard {+ margin-bottom: 18px;+}++.adminBlock {+ border: 1px solid rgba(255, 255, 255, 0.11);+ border-radius: 8px;+ padding: 14px;+ background: rgba(255, 255, 255, 0.045);+}++.adminBlock h3,+.adminPanelCard h4 {+ display: flex;+ align-items: center;+ gap: 8px;+ margin: 0;+ color: #eaf3ff;+ letter-spacing: 0;+}++.adminBlock h3 {+ font-size: 16px;+}++.adminPanelCard h4 {+ font-size: 14px;+}++.adminNotice {+ margin: 0;+ border: 1px solid rgba(255, 198, 102, 0.22);+ border-radius: 8px;+ padding: 10px 12px;+ background: rgba(255, 198, 102, 0.08);+ color: #ffe1a8;+ font-size: 13px;+ font-weight: 800;+}++.adminMetricGrid {+ display: grid;+ grid-template-columns: repeat(5, minmax(0, 1fr));+ gap: 10px;+}++.adminMetricCard {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr);+ gap: 10px;+ min-height: 94px;+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: 8px;+ padding: 12px;+ background: rgba(3, 7, 15, 0.45);+}++.adminMetricIcon {+ display: grid;+ width: 34px;+ height: 34px;+ border-radius: 8px;+ background: rgba(103, 232, 249, 0.11);+ color: #9eeeff;+ place-items: center;+}++.adminMetricCard div {+ display: grid;+ gap: 4px;+ min-width: 0;+}++.adminMetricCard span:not(.adminMetricIcon) {+ color: #8eeeff;+ font-size: 11px;+ font-weight: 900;+ text-transform: uppercase;+}++.adminMetricCard strong {+ color: #ffffff;+ font-size: 24px;+ line-height: 1;+}++.adminMetricCard em {+ color: #93a4bc;+ font-size: 12px;+ font-style: normal;+}++.adminTrafficGrid {+ display: grid;+ grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));+ gap: 10px;+}++.adminPanelCard {+ display: grid;+ gap: 12px;+ min-height: 210px;+ border: 1px solid rgba(255, 255, 255, 0.1);+ border-radius: 8px;+ padding: 12px;+ background: rgba(3, 7, 15, 0.45);+}++.adminMiniBars {+ display: grid;+ gap: 9px;+}++.adminMiniBar {+ display: grid;+ grid-template-columns: 64px minmax(0, 1fr) 52px;+ gap: 9px;+ align-items: center;+}++.adminMiniBar span,+.adminMiniBar strong {+ color: #aebcd0;+ font-size: 12px;+ font-weight: 900;+}++.adminMiniBar strong {+ color: #ffffff;+ text-align: right;+}++.adminMiniBar div {+ position: relative;+ height: 18px;+ overflow: hidden;+ border-radius: 999px;+ background: rgba(255, 255, 255, 0.07);+}++.adminMiniBar i,+.adminMiniBar b {+ position: absolute;+ left: 0;+ height: 8px;+ border-radius: 999px;+}++.adminMiniBar i {+ top: 2px;+ background: linear-gradient(90deg, rgba(66, 230, 255, 0.9), rgba(120, 255, 185, 0.9));+}++.adminMiniBar b {+ bottom: 2px;+ background: rgba(199, 255, 101, 0.72);+}++.adminRankList {+ display: grid;+ gap: 8px;+}++.adminRankItem {+ display: grid;+ grid-template-columns: 24px minmax(0, 1fr) auto;+ gap: 8px;+ align-items: center;+ min-height: 40px;+ border-radius: 7px;+ padding: 7px;+ background: rgba(255, 255, 255, 0.045);+}++.adminRankItem > span {+ display: grid;+ width: 22px;+ height: 22px;+ border-radius: 999px;+ background: rgba(103, 232, 249, 0.12);+ color: #9eeeff;+ font-size: 11px;+ font-weight: 900;+ place-items: center;+}++.adminRankItem div {+ display: grid;+ gap: 3px;+ min-width: 0;+}++.adminRankItem strong {+ overflow: hidden;+ color: #eaf3ff;+ font-size: 12px;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.adminRankItem em {+ color: #93a4bc;+ font-size: 11px;+ font-style: normal;+}++.adminRankItem b {+ color: #ffffff;+ font-size: 12px;+}+.adminTableWrap {overflow: auto;border: 1px solid rgba(255, 255, 255, 0.12);@@ -2022,6 +2283,11 @@ button {color: #eaf3ff;}+.compactAction {+ min-height: 30px;+ padding: 0 9px;+}+.billingHero h2 {margin: 18px 48px 10px 0;color: #ffffff;@@ -2457,6 +2723,14 @@ button {grid-template-columns: 1fr;}+ .adminMetricGrid {+ grid-template-columns: repeat(2, minmax(0, 1fr));+ }++ .adminTrafficGrid {+ grid-template-columns: 1fr;+ }+.comparisonFigure img {height: min(48vh, 520px);}@@ -2651,6 +2925,24 @@ button {flex-direction: column;}+ .adminHeaderActions {+ justify-content: stretch;+ width: 100%;+ }++ .adminRangeToggle {+ flex: 1 1 auto;+ }++ .adminRangeToggle button {+ flex: 1;+ }++ .adminMetricGrid,+ .adminTrafficGrid {+ grid-template-columns: 1fr;+ }+.accountHeader {grid-template-columns: 1fr;}diff --git a/supabase/migrations/20260512143000_pricing_admin_metrics.sql b/supabase/migrations/20260512143000_pricing_admin_metrics.sqlnew file mode 100644index 0000000..01da314--- /dev/null+++ b/supabase/migrations/20260512143000_pricing_admin_metrics.sql@@ -0,0 +1,182 @@+update public.membership_plans+ set monthly_credits = case id+ when 'starter' then 700+ when 'creator' then 1800+ when 'studio' then 5200+ else monthly_credits+ end,+ description_en = case id+ when 'starter' then '700 credits per month for light prompt testing and daily image experiments.'+ when 'creator' then '1,800 credits per month for frequent remixing, content production, and prompt testing.'+ when 'studio' then '5,200 credits per month for high-volume GPT-Image2 workflows and small teams.'+ else description_en+ end,+ description_zh = case id+ when 'starter' then '每月 700 积分,适合轻量测试提示词和日常生图实验。'+ when 'creator' then '每月 1,800 积分,适合高频复用案例、内容生产和提示词测试。'+ when 'studio' then '每月 5,200 积分,适合高频 GPT-Image2 工作流和小团队使用。'+ else description_zh+ end,+ active = true+ where id in ('starter', 'creator', 'studio');++update public.credit_packs+ set active = false+ where id in ('pack_30', 'pack_120', 'pack_360');++insert into public.credit_packs (+ id,+ name_en,+ name_zh,+ description_en,+ description_zh,+ credits,+ amount_cents,+ sort_order,+ active+)+values+ ('pack_300', '300 Credits', '300 积分包', 'Entry pack for testing more GPT-Image2 cases.', '入门测试包,适合继续尝试更多 GPT-Image2 案例。', 300, 500, 10, true),+ ('pack_1000', '1,000 Credits', '1,000 积分包', 'Creator pack for regular prompt testing and visual iterations.', '常用创作包,适合稳定进行提示词测试和视觉迭代。', 1000, 1500, 20, true),+ ('pack_3000', '3,000 Credits', '3,000 积分包', 'High-volume pack for content batches and small teams.', '高频创作包,适合批量内容生产和小团队使用。', 3000, 3900, 30, true)+on conflict (id) do update+ set name_en = excluded.name_en,+ name_zh = excluded.name_zh,+ description_en = excluded.description_en,+ description_zh = excluded.description_zh,+ credits = excluded.credits,+ amount_cents = excluded.amount_cents,+ sort_order = excluded.sort_order,+ active = excluded.active;++create or replace function public.get_admin_dashboard_metrics(+ p_start_at timestamptz+)+returns table (+ total_users integer,+ range_users integer,+ super_admins integer,+ active_memberships integer,+ total_credit_balance integer,+ total_generations integer,+ range_generations integer,+ succeeded_generations integer,+ failed_generations integer,+ pending_generations integer,+ range_succeeded_generations integer,+ total_generation_credits integer,+ range_generation_credits integer,+ purchased_credits integer,+ membership_credits integer+)+language plpgsql+security definer+set search_path = public+as $$+begin+ return query+ select+ (select count(*)::integer from public.profiles),+ (select count(*)::integer from public.profiles where created_at >= p_start_at),+ (select count(*)::integer from public.profiles where role = 'super_admin'),+ (select count(*)::integer from public.user_memberships where status in ('trialing', 'active')),+ (select coalesce(sum(credit_balance), 0)::integer from public.profiles),+ (select count(*)::integer from public.generation_reservations),+ (select count(*)::integer from public.generation_reservations where created_at >= p_start_at),+ (select count(*)::integer from public.generation_reservations where status = 'succeeded'),+ (select count(*)::integer from public.generation_reservations where status = 'failed'),+ (select count(*)::integer from public.generation_reservations where status = 'pending'),+ (select count(*)::integer from public.generation_reservations where status = 'succeeded' and created_at >= p_start_at),+ (select coalesce(sum(credit_amount), 0)::integer from public.generation_reservations where status = 'succeeded'),+ (select coalesce(sum(credit_amount), 0)::integer from public.generation_reservations where status = 'succeeded' and created_at >= p_start_at),+ (select coalesce(sum(amount), 0)::integer from public.credit_transactions where type = 'purchase' and amount > 0),+ (select coalesce(sum(amount), 0)::integer from public.credit_transactions where type = 'membership_grant' and amount > 0);+end;+$$;++create or replace function public.get_admin_user_summaries(+ p_limit integer default 100+)+returns table (+ id uuid,+ email text,+ full_name text,+ avatar_url text,+ role text,+ credit_balance integer,+ free_generations_used integer,+ created_at timestamptz,+ membership_id uuid,+ membership_plan_id text,+ membership_status text,+ membership_current_period_end timestamptz,+ membership_cancel_at_period_end boolean,+ total_generations integer,+ total_generation_credits integer,+ purchased_credits integer,+ membership_credits integer,+ last_generation_at timestamptz,+ last_generation_case_id integer+)+language sql+security definer+set search_path = public+as $$+ with latest_generation as (+ select distinct on (r.user_id)+ r.user_id,+ r.created_at,+ r.case_id+ from public.generation_reservations as r+ order by r.user_id, r.created_at desc+ ),+ generation_totals as (+ select+ r.user_id,+ count(*) filter (where r.status = 'succeeded')::integer as total_generations,+ coalesce(sum(r.credit_amount) filter (where r.status = 'succeeded'), 0)::integer as total_generation_credits+ from public.generation_reservations as r+ group by r.user_id+ ),+ credit_totals as (+ select+ t.user_id,+ coalesce(sum(t.amount) filter (where t.type = 'purchase' and t.amount > 0), 0)::integer as purchased_credits,+ coalesce(sum(t.amount) filter (where t.type = 'membership_grant' and t.amount > 0), 0)::integer as membership_credits+ from public.credit_transactions as t+ group by t.user_id+ )+ select+ p.id,+ p.email,+ p.full_name,+ p.avatar_url,+ p.role,+ p.credit_balance,+ p.free_generations_used,+ p.created_at,+ m.id as membership_id,+ m.plan_id as membership_plan_id,+ m.status as membership_status,+ m.current_period_end as membership_current_period_end,+ coalesce(m.cancel_at_period_end, false) as membership_cancel_at_period_end,+ coalesce(g.total_generations, 0) as total_generations,+ coalesce(g.total_generation_credits, 0) as total_generation_credits,+ coalesce(c.purchased_credits, 0) as purchased_credits,+ coalesce(c.membership_credits, 0) as membership_credits,+ l.created_at as last_generation_at,+ l.case_id as last_generation_case_id+ from public.profiles as p+ left join public.user_memberships as m on m.user_id = p.id+ left join generation_totals as g on g.user_id = p.id+ left join credit_totals as c on c.user_id = p.id+ left join latest_generation as l on l.user_id = p.id+ order by p.created_at desc+ limit greatest(1, least(coalesce(p_limit, 100), 500));+$$;++revoke execute on function public.get_admin_dashboard_metrics(timestamptz) from public, anon, authenticated;+revoke execute on function public.get_admin_user_summaries(integer) from public, anon, authenticated;++grant execute on function public.get_admin_dashboard_metrics(timestamptz) to service_role;+grant execute on function public.get_admin_user_summaries(integer) to service_role;