@rabbi696/ezrouter 0.6.38 → 0.6.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +5 -5
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/convoy/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/error-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/ha/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/keys/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mcp-gateway/servers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +5 -5
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/models/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +7 -7
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/routing-health/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/wakeup/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli/providers/codex/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-native/readiness/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/convoy/rules/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/ha/resolve/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/ha/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/health/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/internal/codex-native/lease/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/instances/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/oauth/[id]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp-gateway/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/enabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/refresh/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models-dev/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/commandcode/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/opendesign/device/route.js +1 -1
- package/app/.next-cli-build/server/app/api/opendesign/device/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/refresh-profile/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/quota/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/quota/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/quota/custom/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/quota/custom/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js +1 -1
- package/app/.next-cli-build/server/app/api/routing-health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/provider-order/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/provider-order/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/token-saver/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tool-disclosure/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/error-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/alpha/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/memories/trace_summarize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/codex/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/wakeup/route.js +1 -1
- package/app/.next-cli-build/server/app/api/wakeup/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard/convoy.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/convoy.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard/ha/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard/ha.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/ha.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/ha.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/ha.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/ha.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/keys.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/keys.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/servers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway/servers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard/mcp-gateway.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/mcp-gateway.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard/models/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard/models.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/models.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/models.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/models.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/models.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard/routing-health.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/routing-health.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard/wakeup.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/wakeup.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +5 -5
- package/app/.next-cli-build/server/chunks/1253.js +1 -1
- package/app/.next-cli-build/server/chunks/1522.js +1 -1
- package/app/.next-cli-build/server/chunks/1596.js +244 -0
- package/app/.next-cli-build/server/chunks/1847.js +1 -1
- package/app/.next-cli-build/server/chunks/1923.js +1 -1
- package/app/.next-cli-build/server/chunks/2269.js +1 -1
- package/app/.next-cli-build/server/chunks/2807.js +1 -1
- package/app/.next-cli-build/server/chunks/2898.js +1 -1
- package/app/.next-cli-build/server/chunks/2937.js +1 -1
- package/app/.next-cli-build/server/chunks/2960.js +1 -0
- package/app/.next-cli-build/server/chunks/321.js +2 -2
- package/app/.next-cli-build/server/chunks/3547.js +1 -1
- package/app/.next-cli-build/server/chunks/369.js +31 -29
- package/app/.next-cli-build/server/chunks/412.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4212.js +1 -1
- package/app/.next-cli-build/server/chunks/4646.js +1 -1
- package/app/.next-cli-build/server/chunks/4878.js +1 -1
- package/app/.next-cli-build/server/chunks/5044.js +29 -29
- package/app/.next-cli-build/server/chunks/5095.js +1 -1
- package/app/.next-cli-build/server/chunks/5461.js +1 -1
- package/app/.next-cli-build/server/chunks/5781.js +1 -1
- package/app/.next-cli-build/server/chunks/5941.js +1 -1
- package/app/.next-cli-build/server/chunks/6038.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6172.js +1 -0
- package/app/.next-cli-build/server/chunks/6238.js +1 -0
- package/app/.next-cli-build/server/chunks/6247.js +1 -1
- package/app/.next-cli-build/server/chunks/6328.js +1 -1
- package/app/.next-cli-build/server/chunks/6405.js +1 -1
- package/app/.next-cli-build/server/chunks/6558.js +1 -0
- package/app/.next-cli-build/server/chunks/6643.js +9 -0
- package/app/.next-cli-build/server/chunks/7047.js +5 -0
- package/app/.next-cli-build/server/chunks/7099.js +1 -1
- package/app/.next-cli-build/server/chunks/7302.js +1 -1
- package/app/.next-cli-build/server/chunks/7390.js +1 -0
- package/app/.next-cli-build/server/chunks/7547.js +2 -2
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/7791.js +1 -1
- package/app/.next-cli-build/server/chunks/795.js +1 -1
- package/app/.next-cli-build/server/chunks/7972.js +2 -2
- package/app/.next-cli-build/server/chunks/8129.js +1 -1
- package/app/.next-cli-build/server/chunks/8254.js +1 -0
- package/app/.next-cli-build/server/chunks/8306.js +1 -1
- package/app/.next-cli-build/server/chunks/8595.js +1 -1
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/9013.js +1 -0
- package/app/.next-cli-build/server/chunks/9303.js +1 -1
- package/app/.next-cli-build/server/chunks/9485.js +1 -1
- package/app/.next-cli-build/server/chunks/9623.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +4 -4
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/1321-eeb375c502dbb3c5.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-1793b8b5349f48f8.js +17 -0
- package/app/.next-cli-build/static/chunks/801-000c65bead05e7c4.js +1 -0
- package/app/.next-cli-build/static/chunks/8105-20580523ec1fe595.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-7246616c24ede8fa.js → page-fc51d93ef1fa57e5.js} +12 -12
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-0d946c1eaac6bc33.js → page-61f0f1acf8b46ffe.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-e389e3a86bd28ebd.js +1 -0
- package/app/CHANGELOG.md +38 -0
- package/app/package.json +1 -1
- package/app/public/CHANGELOG.md +38 -0
- package/package.json +1 -1
- package/app/.next-cli-build/server/chunks/1390.js +0 -1
- package/app/.next-cli-build/server/chunks/169.js +0 -1
- package/app/.next-cli-build/server/chunks/3216.js +0 -1
- package/app/.next-cli-build/server/chunks/3378.js +0 -1
- package/app/.next-cli-build/server/chunks/4606.js +0 -1
- package/app/.next-cli-build/server/chunks/5187.js +0 -1
- package/app/.next-cli-build/server/chunks/656.js +0 -5
- package/app/.next-cli-build/server/chunks/7062.js +0 -5
- package/app/.next-cli-build/server/chunks/7225.js +0 -1
- package/app/.next-cli-build/server/chunks/7658.js +0 -248
- package/app/.next-cli-build/static/chunks/1321-ae4013f99085a326.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-4ff55888b5e62f87.js +0 -17
- package/app/.next-cli-build/static/chunks/801-410b498dd92d55c0.js +0 -1
- package/app/.next-cli-build/static/chunks/8105-ced4e60d11786bd4.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-8c02c108699720b2.js +0 -1
- /package/app/.next-cli-build/static/{Rz3JABLEgmSs9rp5DsM9q → fYFaStfzlBB-WDPpZtzdy}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{Rz3JABLEgmSs9rp5DsM9q → fYFaStfzlBB-WDPpZtzdy}/_ssgManifest.js +0 -0
package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-8c02c108699720b2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{14383:(e,t,a)=>{"use strict";a.d(t,{AN:()=>r.AN,FR:()=>r.FR,MS:()=>r.MS,Mp:()=>r.Mp,fp:()=>r.fp,uN:()=>r.uN});var r=a(44923)},14558:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var r=a(95155),n=a(12115),s=a(97677);function i({connectionId:e,disabled:t=!1,onComplete:a}){let[l,o]=(0,n.useState)(!1),[d,c]=(0,n.useState)(null);async function u(){if(!l){if(d)return void c(null);o(!0);try{let t=await fetch("/api/wakeup",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"ping",connectionId:e})}),r=await t.json();if(!t.ok)throw Error(r.error||"Ping failed.");c(r),a&&Promise.resolve(a()).catch(()=>{})}catch(e){c({status:"failed",message:e.message})}finally{o(!1)}}}let m=l?"Pinging…":d?`${d.message} Click to reset.`:"Ping now — sends a small request. Consumes quota; does not change Auto-Ping.",x=d?"succeeded"===d.status?"text-green-600 dark:text-green-400":"text-red-600 dark:text-red-400":"text-text-muted hover:text-primary";return(0,r.jsx)(s.default,{text:m,children:(0,r.jsx)("button",{type:"button",onClick:u,disabled:l||t&&!d,"aria-label":m,"aria-busy":l,className:`flex h-8 w-8 items-center justify-center rounded-lg ${x} hover:bg-surface-2 disabled:cursor-not-allowed disabled:opacity-50`,children:(0,r.jsx)("span",{"aria-hidden":"true",style:{fontSize:l?20:32},className:`material-symbols-outlined ${l?"animate-spin":""}`,children:l?"progress_activity":"play_arrow"})})})}},62022:(e,t,a)=>{Promise.resolve().then(a.bind(a,71850)),Promise.resolve().then(a.bind(a,25086))},71850:(e,t,a)=>{"use strict";a.d(t,{default:()=>ec});var r=a(95155),n=a(12115),s=a(73321),i=a(57250),l=a(14558),o=a(89523);let d="quotaCacheData",c="quotaAutoRefresh",u="quotaTrackerPreferences",m=[10,20,50,100],x=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],h=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function p(e){return e.name?.trim()||e.email?.trim()||e.displayName?.trim()||null}function g(e,t){let a=t[e.id]?.quotas?.[0];return a&&"number"==typeof a.remaining?a.remaining:1/0}function b(e){let t={};return e.forEach(e=>{t[e.id]=!0}),t}function f(e,t){let a=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>a.has(e)))}async function y(e,t){return await e(t)}function v(){try{let e=window.localStorage.getItem(d);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}function j(e,t){try{let a=v();a[e]={...t,cachedAt:new Date().toISOString()},window.localStorage.setItem(d,JSON.stringify(a))}catch(e){console.error("Error writing quota cache:",e)}}function w(e,t){return t&&0!==t?!e||e<0?100:e>=t?0:Math.round((t-e)/t*100):0}function k(e){return e&&"object"==typeof e?String(e.modelKey||e.name||"").trim():""}function N(e,t,a){let r=a?.[e]||{};return r.connections?.[t]||r}function C(e,t,a,r={},n=!0){let s=k(a);if(!e||!t||!s)return r;let i=r[e]||{},l=N(e,t,r),o=new Set(Array.isArray(l.hidden)?l.hidden.map(e=>String(e).trim()).filter(Boolean):[]);if(n?o.add(s):o.delete(s),"antigravity"===e)for(let e of o)("gemini"===s&&e.startsWith("gemini-")&&!e.includes("image")&&!e.includes("argon")&&!e.includes("hydrogen")&&!e.includes("carbon")||"gemini_argon"===s&&e.includes("argon")||"gemini_hydrogen"===s&&e.includes("hydrogen")||"gemini_carbon"===s&&e.includes("carbon")||"claude"===s&&e.startsWith("claude-"))&&o.delete(e);return{...r,[e]:{...i,connections:{...i.connections,[t]:{...i.connections?.[t],hidden:[...o]}}}}}function S(e,t,a=[],r){let n=N(e,r,t).hidden;return Array.isArray(n)&&0!==n.length?new Set((a.length>0?function(e=[],t=[]){if(!Array.isArray(e)||0===e.length)return[];let a=new Set(t.map(k).filter(Boolean));return[...new Set(e.map(e=>String(e).trim()).filter(e=>a.has(e)))]}(n,a):n).map(String)):new Set}let P={green:{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"},yellow:{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500",bgLight:"bg-yellow-500/10",emoji:"\uD83D\uDFE1"},red:{text:"text-red-600 dark:text-red-400",bg:"bg-red-500",bgLight:"bg-red-500/10",emoji:"\uD83D\uDD34"}};function A({quotas:e=[],compact:t=!1,sortMode:a="default",showSortLabel:s=!1,onHideQuota:i=null}){let[l,o]=(0,n.useState)(1),d=(0,n.useMemo)(()=>e.map((e,t)=>({...e,index:t,remaining:e?.remaining!==void 0?Math.max(0,Math.round(e.remaining)):e?.remainingPercentage!==void 0?Math.round(e.remainingPercentage):w(e?.used,e?.total)})),[e]),c=(0,n.useMemo)(()=>"remaining-asc"===a?[...d].sort((e,t)=>e.remaining-t.remaining||e.name.localeCompare(t.name)):"remaining-desc"===a?[...d].sort((e,t)=>t.remaining-e.remaining||e.name.localeCompare(t.name)):d,[d,a]),u=Math.max(1,Math.ceil(c.length/10));if((0,n.useEffect)(()=>{o(1)},[a,e]),(0,n.useEffect)(()=>{o(e=>Math.min(e,u))},[u]),!e||0===e.length)return null;let m=c.slice((l-1)*10,10*l),x=0===c.length?0:(l-1)*10+1,h=Math.min(10*l,c.length),p=t?"py-1 px-1.5":"py-2 px-3",g=t?"text-[11px]":"text-sm",b=t?"text-[11px]":"text-sm",f=t?"text-[10px] leading-tight":"text-xs",y="function"==typeof i;return(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("div",{className:"text-[10px] text-text-muted",children:[c.length," quota",c.length>1?"s":""]}),s&&(0,r.jsx)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1 text-[10px] text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"Sorted by account remaining"})]}),(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsx)("table",{className:"w-full table-fixed text-left",children:(0,r.jsx)("tbody",{children:m.map(e=>{var a;let n=!0===e.unlimited,s=!0===e.isCreditBalance,l=s?{text:"text-blue-600 dark:text-blue-400",bg:"bg-blue-500",bgLight:"bg-blue-500/10",emoji:"\uD83D\uDCB0"}:P[(a=e.remaining)>70?"green":a>=30?"yellow":"red"],o=e.neverExpires?"-":function(e){if(!e)return"-";try{let t="string"==typeof e?new Date(e):e,a=new Date,r=t-a;if(r<=0)return"-";let n=Math.ceil(r/6e4);if(n<60)return`${n}m`;let s=Math.floor(n/60),i=n%60;if(s<24)return`${s}h ${i}m`;let l=Math.floor(s/24);return`${l}d ${s%24}h ${i}m`}catch(e){return"-"}}(e.resetAt),d=!e.neverExpires&&!e.resetAt&&!!e.detailUrl,c=e.neverExpires?"Never expires":d?"See details":function(e){if(!e)return null;try{let t=new Date(e),a=new Date,r=new Date(a.getFullYear(),a.getMonth(),a.getDate()),n=new Date(r);n.setDate(n.getDate()+1);let s="";s=t>=r&&t<n?"Today":t>=n&&t<new Date(n.getTime()+864e5)?"Tomorrow":t.toLocaleDateString("en-US",{month:"short",day:"numeric"});let i=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${s}, ${i}`}catch{return null}}(e.resetAt),u=d&&e.detailUrl?e.detailUrl:c,m=!1!==e.recurring?`in ${o}`:`expires in ${o}`,x=t=>d?(0,r.jsxs)("a",{href:e.detailUrl,target:"_blank",rel:"noopener noreferrer",className:`${t} inline-flex items-center gap-0.5 hover:text-text-primary hover:underline`,title:`Open usage details: ${u}`,"aria-label":`Open usage details for ${e.name}`,children:[c,(0,r.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"open_in_new"})]}):c;return(0,r.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors",children:[(0,r.jsx)("td",{className:`${p} w-[30%]`,children:(0,r.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,r.jsx)("span",{className:"text-[10px] shrink-0",children:l.emoji}),(0,r.jsx)("span",{className:`${g} font-medium text-text-primary truncate`,children:e.name}),e.runtimeLimited&&(e.runtimeActionUrl?(0,r.jsx)("a",{href:e.runtimeActionUrl,target:"_blank",rel:"noreferrer",className:"shrink-0 rounded bg-amber-500/15 px-1 py-0.5 text-[9px] font-medium text-amber-600 underline decoration-dotted underline-offset-2 dark:text-amber-400",title:e.runtimeLimitReason||"Verify this Google account, then retry the model.",children:e.runtimeLimitLabel||"account blocked"}):(0,r.jsx)("span",{className:"shrink-0 rounded bg-amber-500/15 px-1 py-0.5 text-[9px] font-medium text-amber-600 dark:text-amber-400",title:e.runtimeLimitReason||"The provider runtime rejected this model even though the quota endpoint still reports capacity.",children:e.runtimeLimitLabel||"runtime limit"}))]})}),(0,r.jsx)("td",{className:`${p} w-[45%]`,children:(0,r.jsxs)("div",{className:t?"space-y-1":"space-y-1.5",children:[!n&&!s&&(0,r.jsx)("div",{className:`${t?"h-1":"h-1.5"} rounded-full overflow-hidden border ${l.bgLight} ${0===e.remaining?"border-black/10 dark:border-white/10":"border-transparent"}`,children:(0,r.jsx)("div",{className:`h-full transition-all duration-300 ${l.bg}`,style:{width:`${Math.min(e.remaining,100)}%`}})}),(0,r.jsxs)("div",{className:`flex items-center justify-between ${t?"text-[10px]":"text-xs"}`,children:[(0,r.jsx)("span",{className:"text-text-muted",children:n?`${e.used.toLocaleString()} used \xb7 Unlimited`:s?`Credit: ${e.total.toFixed(2)} ${e.name.split(" ")[2]||""}`:e.percentageOnly?(0,r.jsx)("span",{title:e.quotaNote||"The provider does not expose an absolute request count.",children:"count unavailable"}):(0,r.jsxs)(r.Fragment,{children:[e.used.toLocaleString()," / ",e.total>0?e.total.toLocaleString():"∞",e.unit?` ${e.unit}`:""]})}),(0,r.jsx)("span",{className:`font-medium ${n?"text-green-600 dark:text-green-400":s?"text-blue-600 dark:text-blue-400":l.text}`,children:n?"Unlimited":s?"":`${e.remaining}%`})]})]})}),(0,r.jsx)("td",{className:`${p} ${y?"w-[20%]":"w-[25%]"}`,children:"-"!==o||c?t?(0,r.jsx)("div",{className:`${b} text-text-primary font-medium truncate`,title:u||"",children:"-"!==o?m:x(b)}):(0,r.jsxs)("div",{className:"space-y-0.5",children:["-"!==o&&(0,r.jsx)("div",{className:`${b} text-text-primary font-medium`,children:m}),c&&(0,r.jsx)("div",{className:`${f} text-text-muted`,children:x(f)})]}):(0,r.jsx)("div",{className:`${b} text-text-muted italic`,children:"N/A"})}),y&&(0,r.jsx)("td",{className:`${p} w-[5%] text-right`,children:(0,r.jsx)("button",{type:"button",onClick:()=>i(e),className:"inline-flex h-6 w-6 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5",title:"Hide this quota row","aria-label":`Hide quota ${e.name}`,children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[15px]",children:"visibility_off"})})})]},`${e.name}-${e.index}`)})})})}),u>1&&(0,r.jsxs)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1.5 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[10px] text-text-muted",children:[(0,r.jsxs)("span",{children:["Showing ",x,"-",h," of ",c.length]}),(0,r.jsxs)("span",{children:["Page ",l," / ",u]})]}),(0,r.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,r.jsx)("button",{type:"button",onClick:()=>o(e=>Math.max(1,e-1)),disabled:1===l,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Prev"}),(0,r.jsx)("button",{type:"button",onClick:()=>o(e=>Math.min(u,e+1)),disabled:l===u,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Next"})]})]})]})}var _=a(11059);function q({connectionId:e,onDone:t,className:a=""}){let[s,i]=(0,n.useState)("idle"),[l,o]=(0,n.useState)(null),[d,c]=(0,n.useState)(null),[u,m]=(0,n.useState)(0),{copied:x,copy:h}=(0,_.C)(),p=(0,n.useRef)(null),g=(0,n.useRef)(0),b=(0,n.useRef)(!1),f=(0,n.useRef)(!0),y=(0,n.useRef)(null),v=(0,n.useCallback)(()=>{b.current=!0,p.current&&(clearTimeout(p.current),p.current=null),y.current&&(clearInterval(y.current),y.current=null)},[]);(0,n.useEffect)(()=>(f.current=!0,()=>{f.current=!1,b.current=!0,p.current&&clearTimeout(p.current),y.current&&clearInterval(y.current),p.current=null,y.current=null}),[]);let j=(0,n.useCallback)(e=>{v(),f.current&&(i("error"),c(e||"Kh\xf4ng lấy được Control Key"))},[v]),w=(0,n.useCallback)(async a=>{if(b.current)return;let r=null,n=0;try{let t=await fetch(`/api/opendesign/device/${encodeURIComponent(a.deviceId)}?connectionId=${encodeURIComponent(e)}`,{cache:"no-store"});n=t.status,r=await t.json().catch(()=>null)}catch(e){if(b.current||!f.current)return;if(Date.now()>=g.current)return void j("Hết thời gian chờ duyệt — bấm lấy lại Control Key");k(a);return}if(!b.current&&f.current){if(r?.status==="approved"&&r?.saved===!0){v(),i("approved"),c(null),t?.();return}if(n>=500||r?.status==="error")return void j(r?.error||`Kh\xf4ng kiểm tra được trạng th\xe1i duyệt (HTTP ${n})`);if(r?.status==="denied"||r?.status==="expired")return void j("denied"===r.status?"Y\xeau cầu đ\xe3 bị từ chối tr\xean tr\xecnh duyệt — bấm lấy lại Control Key":"M\xe3 x\xe1c nhận đ\xe3 hết hạn — bấm lấy lại Control Key");if(Date.now()>=g.current)return void j("Hết thời gian chờ duyệt — bấm lấy lại Control Key");k(a)}},[e,j,t,v]);function k(e){let t=Math.max(1e3,e.intervalMs||2500);p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{p.current=null,w(e)},t)}let N=(0,n.useCallback)(e=>{v(),b.current=!1;let t=Date.parse(e.expiresAt);g.current=Number.isFinite(t)?t:Date.now()+9e5+3e5,y.current&&clearInterval(y.current);let a=()=>{f.current&&m(Math.max(0,Math.ceil((g.current-Date.now())/1e3)))};a(),y.current=setInterval(a,1e3),k(e)},[v]),C=(0,n.useCallback)(async()=>{v(),b.current=!1,i("starting"),c(null),o(null),m(0);try{let t=await fetch("/api/opendesign/device",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({connectionId:e})}),a=await t.json().catch(()=>null);if(!t.ok||!a?.deviceId||!a?.userCode)throw Error(a?.error||`Kh\xf4ng tạo được m\xe3 x\xe1c nhận (HTTP ${t.status})`);if(!f.current)return;o(a),i("waiting"),N(a)}catch(e){j(e?.message||"Kh\xf4ng tạo được m\xe3 x\xe1c nhận")}},[e,j,N,v]),S=(0,n.useCallback)(()=>{v(),i("idle"),c(null),o(null),m(0)},[v]);return"idle"===s||"error"===s?(0,r.jsxs)("div",{className:`space-y-1.5 ${a}`,children:[(0,r.jsxs)("button",{type:"button",onClick:"error"===s?S:C,className:"inline-flex items-center gap-1.5 rounded-lg border border-primary/30 bg-primary/5 px-2.5 py-1.5 text-[11px] font-semibold text-primary transition-colors hover:bg-primary/10 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[15px]",children:"key"}),(0,r.jsx)("span",{children:"error"===s?"Thử lại":"Lấy Control Key"})]}),"error"===s&&(0,r.jsx)("p",{className:"px-1 text-[10px] leading-relaxed text-red-600 dark:text-red-400",children:d})]}):"starting"===s?(0,r.jsxs)("div",{className:`flex items-center gap-2 px-1 py-1 text-[11px] text-text-muted ${a}`,children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[15px] animate-spin",children:"progress_activity"}),(0,r.jsx)("span",{children:"Đang tạo m\xe3 x\xe1c nhận…"})]}):"approved"===s?(0,r.jsxs)("div",{className:`flex items-center gap-2 rounded-lg border border-green-500/20 bg-green-500/10 px-2.5 py-1.5 text-[11px] font-medium text-green-700 dark:text-green-400 ${a}`,children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[15px]",children:"check_circle"}),(0,r.jsx)("span",{children:"Đ\xe3 lưu Control Key"})]}):(0,r.jsxs)("div",{className:`space-y-2 rounded-lg border border-primary/20 bg-primary/5 p-2.5 ${a}`,children:[(0,r.jsx)("p",{className:"text-[11px] font-medium text-text-primary",children:"Nhập m\xe3 n\xe0y tr\xean trang duyệt của OpenDesign"}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("code",{className:"rounded-md border border-black/10 bg-white px-2.5 py-1 font-mono text-base font-bold tracking-[0.2em] text-text-primary dark:border-white/10 dark:bg-black/30",children:l?.userCode}),(0,r.jsxs)("button",{type:"button",onClick:()=>h(l?.userCode,"user-code"),className:"inline-flex items-center gap-1 rounded-md border border-black/10 px-1.5 py-0.5 text-[10px] text-text-muted transition-colors hover:text-primary dark:border-white/10",title:"Copy m\xe3",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"user-code"===x?"check":"content_copy"}),"Copy"]})]}),l?.activationUrl&&(0,r.jsxs)("a",{href:l.activationUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[11px] font-semibold text-primary underline-offset-2 hover:underline",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"open_in_new"}),"Mở trang duyệt (open-design.ai)"]}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-[10px] text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[13px] animate-spin",children:"progress_activity"}),(0,r.jsx)("span",{children:"Đang chờ bạn duyệt tr\xean tr\xecnh duyệt…"}),u>0&&(0,r.jsxs)("span",{className:"tabular-nums",children:["(c\xf2n ",u,"s)"]})]}),(0,r.jsx)("button",{type:"button",onClick:S,className:"text-[10px] text-text-muted underline-offset-2 hover:text-text-primary hover:underline",children:"Huỷ / lấy m\xe3 kh\xe1c"})]})}var $=a(98542),E=a(97677),T=a(84588),M=a(35497),D=a(14051),O=a.n(D),F=a(31474);let U={name:"Quota",namePath:"",usedPath:"used",totalPath:"total",remainingPath:"",percentUsedPath:"",percentRemainingPath:"",unit:"",unitPath:"",resetAtPath:"resetAt",resetAtUnit:"auto",unlimitedPath:"",creditBalancePath:"",currency:""},R=[{value:"auto",label:"Auto (ISO / epoch)"},{value:"unix",label:"Epoch seconds"},{value:"unix_ms",label:"Epoch milliseconds"},{value:"seconds_from_now",label:"Seconds from now"},{value:"minutes_from_now",label:"Minutes from now"}];function I(){return{plan:"Custom",itemsPath:"",request:{url:"",method:"GET",headers:[{name:"Authorization",value:"Bearer {{apiKey}}"}],body:""},quotas:[{...U}]}}function L(e){return{enabled:!0,plan:e.plan.trim()||"Custom",itemsPath:e.itemsPath.trim(),request:{url:e.request.url.trim(),method:e.request.method,headers:e.request.headers,body:"POST"===e.request.method?e.request.body:""},quotas:e.quotas.map(e=>{let t={name:e.name.trim()};for(let a of Object.keys(U)){if("name"===a)continue;let r="string"==typeof e[a]?e[a].trim():e[a];""!==r&&null!=r&&(t[a]=r)}return t})}}function z({isOpen:e,onClose:t,connection:a=null,onSaved:s}){let[i,l]=(0,n.useState)([]),[o,d]=(0,n.useState)(a?.id||""),[c,u]=(0,n.useState)(I),[m,x]=(0,n.useState)(!1),[h,p]=(0,n.useState)(!1),[g,b]=(0,n.useState)(!1),[f,y]=(0,n.useState)(null),[v,j]=(0,n.useState)(null),[w,k]=(0,n.useState)(!1);(0,n.useEffect)(()=>{if(!e)return;let t=!1;return fetch("/api/providers/client?includeUnsupported=1&pageSize=500&page=1&sort=priority",{cache:"no-store"}).then(e=>e.json()).then(e=>{t||l(e.connections||[])}).catch(()=>{t||l([])}),()=>{t=!0}},[e]),(0,n.useEffect)(()=>{if(!e||!o)return;let t=!1;return(async()=>{x(!0),j(null),y(null);try{var e;let a=await fetch(`/api/quota/custom?connectionId=${encodeURIComponent(o)}`,{cache:"no-store"}),r=await a.json();if(t)return;k(!!r.config),u((e=r.config)?{plan:e.plan||"Custom",itemsPath:e.itemsPath||"",request:{url:e.request?.url||"",method:e.request?.method||"GET",headers:e.request?.headers?.length?e.request.headers:I().request.headers,body:e.request?.body||""},quotas:(e.quotas||[]).map(e=>({...U,...e}))}:I())}catch{t||u(I())}finally{t||x(!1)}})(),()=>{t=!0}},[e,o]);let N=(0,n.useMemo)(()=>i.find(e=>e.id===o)||a,[i,o,a]),C=e=>u(t=>({...t,request:{...t.request,...e}})),S=(e,t)=>u(a=>({...a,quotas:a.quotas.map((a,r)=>r===e?{...a,...t}:a)})),P=async()=>{if(!o)return void j("Select a connection first.");p(!0),j(null),y(null);try{let e=await fetch("/api/quota/custom/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({connectionId:o,config:L(c)})}),t=await e.json();e.ok?y(t):j(t.error||"Test request failed.")}catch(e){j(e.message||"Test request failed.")}finally{p(!1)}},A=async()=>{if(!o)return void j("Select a connection first.");b(!0),j(null);try{let e=await fetch("/api/quota/custom",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({connectionId:o,config:L(c)})}),a=await e.json();if(!e.ok)return void j(a.error||"Could not save the quota source.");k(!0),s&&await s({connectionId:o,provider:N?.provider}),t()}catch(e){j(e.message||"Could not save the quota source.")}finally{b(!1)}},_=async()=>{if(o){b(!0),j(null);try{let e=await fetch(`/api/quota/custom?connectionId=${encodeURIComponent(o)}`,{method:"DELETE"});if(!e.ok){let t=await e.json().catch(()=>({}));j(t.error||"Could not remove the quota source.");return}k(!1),u(I()),s&&await s({connectionId:o,provider:N?.provider})}catch(e){j(e.message||"Could not remove the quota source.")}finally{b(!1)}}},q="w-full rounded-[8px] border border-black/10 bg-surface-2 px-2 py-1.5 text-xs text-text-main placeholder-text-muted/60 focus:outline-none focus:ring-2 focus:ring-brand-500/30 dark:border-white/10";return(0,r.jsx)(M.aF,{isOpen:e,onClose:t,title:"Custom quota source",size:"full",footer:(0,r.jsxs)(r.Fragment,{children:[w&&(0,r.jsx)(M.$n,{variant:"danger",onClick:_,disabled:g||h,children:"Remove"}),(0,r.jsx)(M.$n,{variant:"secondary",onClick:P,loading:h,disabled:g||!o,children:"Test"}),(0,r.jsx)(M.$n,{onClick:A,loading:g,disabled:h||!o,children:"Save"})]}),children:(0,r.jsxs)("div",{className:"flex max-h-[70vh] flex-col gap-4 overflow-y-auto pr-1",children:[(0,r.jsxs)("p",{className:"text-sm text-text-muted",children:["Map any provider usage response onto the quota tracker. Leave a path empty to skip that value. Paths use dots and brackets, e.g. ",(0,r.jsx)("code",{className:"font-mono text-xs",children:"data.limits[*].percentUsed"}),". Use ",(0,r.jsx)("code",{className:"font-mono text-xs",children:"{{apiKey}}"})," and ",(0,r.jsx)("code",{className:"font-mono text-xs",children:"{{baseUrl}}"})," in URLs and headers."]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-text-main",children:"Connection"}),(0,r.jsxs)("select",{value:o,onChange:e=>{d(e.target.value),e.target.value||(u(I()),k(!1))},className:"h-9 rounded-[10px] border border-black/10 bg-surface-2 px-2 text-sm text-text-main dark:border-white/10",children:[(0,r.jsx)("option",{value:"",children:"Select a connection"}),i.map(e=>(0,r.jsxs)("option",{value:e.id,children:[function(e=""){return e.replace(/^openai-compatible-?/,"")||e||"Provider"}(e.provider)," \xb7 ",e.name||e.displayName||e.email||e.id]},e.id))]})]}),(0,r.jsx)(M.pd,{label:"Plan label",value:c.plan,onChange:e=>u(t=>({...t,plan:e.target.value})),placeholder:"Custom",inputClassName:"h-9 text-sm"})]}),m?(0,r.jsx)("div",{className:"py-6 text-center text-sm text-text-muted",children:"Loading saved source…"}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-[2fr_1fr]",children:[(0,r.jsx)(M.pd,{label:"Request URL",value:c.request.url,onChange:e=>C({url:e.target.value}),placeholder:"https://api.provider.com/v1/usage",inputClassName:"h-9 font-mono text-sm"}),(0,r.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-text-main",children:"Method"}),(0,r.jsxs)("select",{value:c.request.method,onChange:e=>C({method:e.target.value}),className:"h-9 rounded-[10px] border border-black/10 bg-surface-2 px-2 text-sm text-text-main dark:border-white/10",children:[(0,r.jsx)("option",{value:"GET",children:"GET"}),(0,r.jsx)("option",{value:"POST",children:"POST"})]})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,r.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("span",{className:"text-sm font-medium text-text-main",children:"Headers (one per line)"}),(0,r.jsx)("textarea",{rows:3,value:function(e=[]){return(Array.isArray(e)?e:[]).map(e=>`${e?.name||""}: ${e?.value||""}`.trim()).join("\n")}(c.request.headers),onChange:e=>C({headers:String(e.target.value||"").split("\n").map(e=>e.trim()).filter(Boolean).map(e=>{let t=e.indexOf(":");return -1===t?null:{name:e.slice(0,t).trim(),value:e.slice(t+1).trim()}}).filter(e=>e&&e.name)}),placeholder:"Authorization: Bearer {{apiKey}}\nAccept: application/json",className:(0,F.cn)(q,"font-mono")})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,r.jsxs)("span",{className:"text-sm font-medium text-text-main",children:["Body ","POST"===c.request.method?"(JSON)":"(POST only)"]}),(0,r.jsx)("textarea",{rows:3,value:c.request.body,onChange:e=>C({body:e.target.value}),disabled:"POST"!==c.request.method,placeholder:'{"accountId": "{{connectionId}}"}',className:(0,F.cn)(q,"font-mono disabled:opacity-50")})]})]}),(0,r.jsx)(M.pd,{label:"Items path (optional, one row per array item)",value:c.itemsPath,onChange:e=>u(t=>({...t,itemsPath:e.target.value})),placeholder:"data.limits[*]",inputClassName:"h-9 font-mono text-sm"}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[c.quotas.map((e,t)=>(0,r.jsxs)("div",{className:"rounded-xl border border-black/10 p-3 dark:border-white/10",children:[(0,r.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-2",children:[(0,r.jsxs)("span",{className:"text-xs font-semibold uppercase tracking-wide text-text-muted",children:["Quota ",t+1]}),c.quotas.length>1&&(0,r.jsx)("button",{type:"button",onClick:()=>u(e=>({...e,quotas:e.quotas.filter((e,a)=>a!==t)})),className:"text-xs text-red-500 hover:underline",children:"Remove"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:[(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Name"}),(0,r.jsx)("input",{value:e.name,onChange:e=>S(t,{name:e.target.value}),className:q,placeholder:"Monthly tokens"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Name path"}),(0,r.jsx)("input",{value:e.namePath,onChange:e=>S(t,{namePath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"type"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Used path"}),(0,r.jsx)("input",{value:e.usedPath,onChange:e=>S(t,{usedPath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"used"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Total path"}),(0,r.jsx)("input",{value:e.totalPath,onChange:e=>S(t,{totalPath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"limit"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Remaining path"}),(0,r.jsx)("input",{value:e.remainingPath,onChange:e=>S(t,{remainingPath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"remaining"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"% used path"}),(0,r.jsx)("input",{value:e.percentUsedPath,onChange:e=>S(t,{percentUsedPath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"percentUsed"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"% remaining path"}),(0,r.jsx)("input",{value:e.percentRemainingPath,onChange:e=>S(t,{percentRemainingPath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"percentRemaining"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Unit"}),(0,r.jsx)("input",{value:e.unit,onChange:e=>S(t,{unit:e.target.value}),className:q,placeholder:"tokens"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Unit path"}),(0,r.jsx)("input",{value:e.unitPath,onChange:e=>S(t,{unitPath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"unit"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Reset at path"}),(0,r.jsx)("input",{value:e.resetAtPath,onChange:e=>S(t,{resetAtPath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"resetsAt"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Reset format"}),(0,r.jsx)("select",{value:e.resetAtUnit,onChange:e=>S(t,{resetAtUnit:e.target.value}),className:q,children:R.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Unlimited path"}),(0,r.jsx)("input",{value:e.unlimitedPath,onChange:e=>S(t,{unlimitedPath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"unlimited"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Credit balance path"}),(0,r.jsx)("input",{value:e.creditBalancePath,onChange:e=>S(t,{creditBalancePath:e.target.value}),className:(0,F.cn)(q,"font-mono"),placeholder:"balance"})]}),(0,r.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"text-[11px] text-text-muted",children:"Currency"}),(0,r.jsx)("input",{value:e.currency,onChange:e=>S(t,{currency:e.target.value}),className:q,placeholder:"USD"})]})]})]},t)),(0,r.jsx)("button",{type:"button",onClick:()=>u(e=>({...e,quotas:[...e.quotas,{...U,name:`Quota ${e.quotas.length+1}`}]})),className:"self-start rounded-lg border border-dashed border-black/20 px-3 py-1.5 text-xs text-text-muted hover:text-text-main dark:border-white/20",children:"+ Add quota row"})]}),v&&(0,r.jsx)("div",{className:"rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-600 dark:text-red-400",children:v}),f&&(0,r.jsxs)("div",{className:"rounded-xl border border-black/10 p-3 dark:border-white/10",children:[(0,r.jsx)("p",{className:"text-xs font-semibold uppercase tracking-wide text-text-muted",children:"Test result"}),f.message&&(0,r.jsx)("p",{className:"mt-1 text-sm text-amber-600 dark:text-amber-400",children:f.message}),f.quotas?.length>0&&(0,r.jsx)("ul",{className:"mt-2 space-y-1 text-sm text-text-main",children:f.quotas.map((e,t)=>(0,r.jsxs)("li",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"font-medium",children:e.name}),(0,r.jsxs)("span",{className:"text-text-muted",children:[e.used.toLocaleString()," / ",e.total>0?e.total.toLocaleString():"∞",e.unit?` ${e.unit}`:""," \xb7 ",Math.round(e.remaining),"% left",e.resetAt?` \xb7 resets ${new Date(e.resetAt).toLocaleString()}`:""]})]},`${e.name}-${t}`))}),f.raw&&(0,r.jsx)("pre",{className:"mt-2 max-h-40 overflow-auto rounded-lg bg-black/5 p-2 text-[11px] text-text-muted dark:bg-white/5",children:f.raw})]})]})]})})}z.propTypes={isOpen:O().bool.isRequired,onClose:O().func.isRequired,connection:O().object,onSaved:O().func};var K=a(97132),H=a(93195),B=a(88105),J=a(78177),G=a(14383),W=a(87256),Q=a(5020),V=a(39768);let Y=(0,n.createContext)(null);function Z({id:e,disabled:t=!1,className:a="",children:n}){let{attributes:s,listeners:i,setNodeRef:l,transform:o,isDragging:d}=(0,W.gl)({id:e,disabled:t}),c={transform:V.Ks.Transform.toString(o),opacity:d?.4:1,zIndex:d?999:void 0};return(0,r.jsx)(Y.Provider,{value:{attributes:s,listeners:i,isDragging:d,disabled:t},children:(0,r.jsx)("div",{ref:l,style:c,className:`min-w-0 ${d?"rounded-xl shadow-md ring-1 ring-primary/30":""} ${a}`,children:n})})}function X({title:e="Drag to move this provider"}){let t=(0,n.useContext)(Y);if(!t||t.disabled)return null;let{attributes:a,listeners:s}=t;return(0,r.jsx)("button",{...a,...s,type:"button",className:"shrink-0 cursor-grab touch-none rounded p-0.5 text-text-muted transition-colors hover:text-primary active:cursor-grabbing",title:e,"aria-label":e,children:(0,r.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"9",cy:"4",r:"2"}),(0,r.jsx)("circle",{cx:"15",cy:"4",r:"2"}),(0,r.jsx)("circle",{cx:"9",cy:"12",r:"2"}),(0,r.jsx)("circle",{cx:"15",cy:"12",r:"2"}),(0,r.jsx)("circle",{cx:"9",cy:"20",r:"2"}),(0,r.jsx)("circle",{cx:"15",cy:"20",r:"2"})]})})}function ee(e){if(!Array.isArray(e))return[];let t=new Set,a=[];for(let r of e){let e=r?.provider;"string"!=typeof e||!e||t.has(e)||(t.add(e),a.push(e))}return a}let et={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},ea={claude:"claudeAutoPing",codex:"codexAutoPing",antigravity:"antigravityAutoPing"};function er(e){return e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null}function en(e){let t=e.providerSpecificData?.region;if(t)return t;let a=e.providerSpecificData?.profileArn;return("string"==typeof a?a.split(":")[3]:"")||""}let es={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function ei(e){let t=[...new Set((e||[]).map(e=>es[e]).filter(Boolean))];return t.length?`${t.join(" + ")} limits`:"limits"}function el(e,t){return t?.providerSpecificData?.nodeName||B.Q2[e]?.name||e}function eo(e){if(!e)return"N/A";let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function ed(e){if(!e)return"N/A";let t=new Date(e).getTime()-Date.now();if(!Number.isFinite(t))return"N/A";if(t<=0)return"Expired";let a=Math.ceil(t/36e5),r=Math.floor(a/24),n=a%24;return r>0?`${r}d ${n}h`:`${n}h`}function ec(){let{copied:e,copy:t}=(0,_.C)(),a=(0,s.useSearchParams)(),N=(0,s.useRouter)(),P=(0,s.usePathname)(),[D,O]=(0,n.useState)([]),[F,U]=(0,n.useState)({}),[R,I]=(0,n.useState)({}),[L,V]=(0,n.useState)({}),[Y,es]=(0,n.useState)(!0),[ec,eu]=(0,n.useState)({claude:{},codex:{},antigravity:{}}),[em,ex]=(0,n.useState)(null),[eh,ep]=(0,n.useState)(null),[eg,eb]=(0,n.useState)(!1),[ef,ey]=(0,n.useState)(!1),[ev,ej]=(0,n.useState)(!1),[ew,ek]=(0,n.useState)(60),[eN,eC]=(0,n.useState)(!0),[eS,eP]=(0,n.useState)(null),[eA,e_]=(0,n.useState)(null),[eq,e$]=(0,n.useState)(null),[eE,eT]=(0,n.useState)(null),[eM,eD]=(0,n.useState)(null),[eO,eF]=(0,n.useState)(null),[eU,eR]=(0,n.useState)(!1),[eI,eL]=(0,n.useState)(!1),[ez,eK]=(0,n.useState)(null),[eH,eB]=(0,n.useState)(null),[eJ,eG]=(0,n.useState)([]),[eW,eQ]=(0,n.useState)(()=>a?.get("provider")||"all"),eV=(0,n.useCallback)(e=>{eQ(e);try{let t=new URLSearchParams(a?.toString()||"");"all"===e?t.delete("provider"):t.set("provider",e);let r=t.toString()?`${P}?${t.toString()}`:P;N.replace(r,{scroll:!1})}catch{}},[P,N,a]),[eY,eZ]=(0,n.useState)([]),[eX,e0]=(0,n.useState)("all"),[e1,e5]=(0,n.useState)("default"),[e2,e3]=(0,n.useState)({}),[e4,e8]=(0,n.useState)(!1),[e6,e9]=(0,n.useState)(!1),[e7,te]=(0,n.useState)(!1),[tt,ta]=(0,n.useState)(1),[tr,tn]=(0,n.useState)(20),[ts,ti]=(0,n.useState)(String(20)),[tl,to]=(0,n.useState)({page:1,pageSize:20,total:0,totalPages:1}),[td,tc]=(0,n.useState)({eligibleConnections:0,providerFilteredConnections:0}),tu=(0,n.useRef)(0),tm=(0,n.useCallback)(async(e=tt)=>{try{var t,a;let r=new URLSearchParams({page:String(e),pageSize:String(tr),accountStatus:eX,sort:"priority"});"all"!==eW&&r.set("provider",eW);let n=await fetch(`/api/providers/client?${r.toString()}`);if(!n.ok)throw Error("Failed to fetch connections");let s=await n.json(),i=s.connections||[],l=(t=s.pagination,t||{page:1,pageSize:tr,total:0,totalPages:1}),o=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(s.totals,i.length);return O(i),eZ(s.providerOptions||[]),to(l),tc(o),ta((a=s.pagination,a?.page||e)),i}catch(e){return console.error("Error fetching connections:",e),O([]),eZ([]),to({page:1,pageSize:tr,total:0,totalPages:1}),tc({eligibleConnections:0,providerFilteredConnections:0}),[]}},[eX,e4,tt,tr,eW]),tx=(0,n.useCallback)(async(e,t,{force:a=!1}={})=>{I(t=>({...t,[e]:!0})),V(t=>({...t,[e]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${t} (${e})`);let r=`/api/usage/${e}${a?"?force=1":""}`,n=await fetch(r);if(!n.ok){let a=(await n.json().catch(()=>({}))).error||n.statusText;if(404===n.status)return void console.warn(`[ProviderLimits] Connection not found for ${t}, skipping`);if(401===n.status){console.warn(`[ProviderLimits] Auth error for ${t}:`,a);let r={quotas:[],message:a};U(t=>({...t,[e]:r})),j(e,r);return}throw Error(`HTTP ${n.status}: ${a}`)}let s=await n.json();console.log(`[ProviderLimits] Got quota for ${t}:`,s);let i={quotas:function(e,t){if(!t||"object"!=typeof t)return[];let a=[];try{switch(e.toLowerCase()){case"github":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"antigravity":if(t.quotas){let e=Object.entries(t.quotas),r=new Set(["gemini_weekly","claude_gpt_weekly","gemini_argon_weekly","argon_weekly","gemini_hydrogen_weekly","hydrogen_weekly","gemini_carbon_weekly","carbon_weekly"]),n=new Set(["gemini_session","claude_gpt_session","gemini_argon_session","argon_session","gemini_hydrogen_session","hydrogen_session","gemini_carbon_session","carbon_session"]),s=new Set([...r,...n]),i=e.filter(([e])=>e.includes("argon")),l=e.filter(([e])=>e.includes("hydrogen")),o=e.filter(([e])=>e.includes("carbon")),d=e.filter(([e])=>e.startsWith("gemini-")&&!e.includes("image")&&!e.includes("argon")&&!e.includes("hydrogen")&&!e.includes("carbon")),c=e.filter(([e])=>e.startsWith("claude-")),u=e.filter(([e])=>e.includes("image")),m=e.filter(([e])=>s.has(e)),x=e.filter(([e])=>!e.startsWith("gemini-")&&!e.startsWith("claude-")&&!e.includes("image")&&!s.has(e)),h=!!t.quotas.gemini_weekly,p=!!t.quotas.gemini_session,g=!!(t.quotas.gemini_argon_weekly||t.quotas.argon_weekly),b=!!(t.quotas.gemini_argon_session||t.quotas.argon_session),f=!!(t.quotas.gemini_hydrogen_weekly||t.quotas.hydrogen_weekly),y=!!(t.quotas.gemini_hydrogen_session||t.quotas.hydrogen_session),v=!!(t.quotas.gemini_carbon_weekly||t.quotas.carbon_weekly),j=!!(t.quotas.gemini_carbon_session||t.quotas.carbon_session),w=!!t.quotas.claude_gpt_weekly,k=!!t.quotas.claude_gpt_session;if(p)m.filter(([e])=>"gemini_session"===e).forEach(([e,t])=>{a.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});else if(d.length>0){let e=d.reduce((e,t)=>(t[1].remainingPercentage??100)<(e[1].remainingPercentage??100)?t:e)[1],r=t.quotas.gemini_weekly?.resetAt;h&&e.resetAt===r&&(e.remainingPercentage??0)===0||a.push({name:"Gemini (Flash / Pro)",modelKey:"gemini",used:e.used||0,total:e.total||0,resetAt:e.resetAt||null,remainingPercentage:e.remainingPercentage})}if(h&&m.filter(([e])=>"gemini_weekly"===e).forEach(([e,t])=>{a.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})}),b)m.filter(([e])=>"gemini_argon_session"===e||"argon_session"===e).slice(0,1).forEach(([e,t])=>{a.push({name:t.displayName||"Gemini 4 Argon (5h)",modelKey:"gemini_argon_session",used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});else if(!g&&i.length>0){let e=i.reduce((e,t)=>(t[1].remainingPercentage??100)<(e[1].remainingPercentage??100)?t:e)[1],r=t.quotas.gemini_session?.resetAt,n=t.quotas.gemini_weekly?.resetAt;p&&e.resetAt===r&&e.remainingPercentage===t.quotas.gemini_session?.remainingPercentage||h&&e.resetAt===n&&e.remainingPercentage===t.quotas.gemini_weekly?.remainingPercentage||a.push({name:"Gemini 4 Argon",modelKey:"gemini_argon",used:e.used||0,total:e.total||0,resetAt:e.resetAt||null,remainingPercentage:e.remainingPercentage})}if(g&&m.filter(([e])=>"gemini_argon_weekly"===e||"argon_weekly"===e).slice(0,1).forEach(([e,t])=>{a.push({name:t.displayName||"Gemini 4 Argon (Weekly)",modelKey:"gemini_argon_weekly",used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})}),y)m.filter(([e])=>"gemini_hydrogen_session"===e||"hydrogen_session"===e).slice(0,1).forEach(([e,t])=>{a.push({name:t.displayName||"Gemini 4 Hydrogen (5h)",modelKey:"gemini_hydrogen_session",used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});else if(!f&&l.length>0){let e=l.reduce((e,t)=>(t[1].remainingPercentage??100)<(e[1].remainingPercentage??100)?t:e)[1];a.push({name:"Gemini 4 Hydrogen",modelKey:"gemini_hydrogen",used:e.used||0,total:e.total||0,resetAt:e.resetAt||null,remainingPercentage:e.remainingPercentage})}if(f&&m.filter(([e])=>"gemini_hydrogen_weekly"===e||"hydrogen_weekly"===e).slice(0,1).forEach(([e,t])=>{a.push({name:t.displayName||"Gemini 4 Hydrogen (Weekly)",modelKey:"gemini_hydrogen_weekly",used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})}),j)m.filter(([e])=>"gemini_carbon_session"===e||"carbon_session"===e).slice(0,1).forEach(([e,t])=>{a.push({name:t.displayName||"Gemini 4 Carbon (5h)",modelKey:"gemini_carbon_session",used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});else if(!v&&o.length>0){let e=o.reduce((e,t)=>(t[1].remainingPercentage??100)<(e[1].remainingPercentage??100)?t:e)[1];a.push({name:"Gemini 4 Carbon",modelKey:"gemini_carbon",used:e.used||0,total:e.total||0,resetAt:e.resetAt||null,remainingPercentage:e.remainingPercentage})}if(v&&m.filter(([e])=>"gemini_carbon_weekly"===e||"carbon_weekly"===e).slice(0,1).forEach(([e,t])=>{a.push({name:t.displayName||"Gemini 4 Carbon (Weekly)",modelKey:"gemini_carbon_weekly",used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})}),k)m.filter(([e])=>"claude_gpt_session"===e).forEach(([e,t])=>{a.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});else if(c.length>0){let e=c.reduce((e,t)=>(t[1].remainingPercentage??100)<(e[1].remainingPercentage??100)?t:e)[1],r=t.quotas.claude_gpt_weekly?.resetAt;w&&e.resetAt===r&&(e.remainingPercentage??0)===0||a.push({name:"Claude (Sonnet / Opus)",modelKey:"claude",used:e.used||0,total:e.total||0,resetAt:e.resetAt||null,remainingPercentage:e.remainingPercentage})}w&&m.filter(([e])=>"claude_gpt_weekly"===e).forEach(([e,t])=>{a.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})}),u.forEach(([e,t])=>{a.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})}),w||k||x.forEach(([e,t])=>{a.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})})}break;case"codex":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{let r=e;"spark_session"===e?r="Spark (5h)":"spark_weekly"===e?r="Spark (Weekly)":"session"===e?r="5h":"weekly"===e?r="Weekly":"review_session"===e?r="Review (5h)":"review_weekly"===e&&(r="Review (Weekly)"),a.push({name:r,quotaType:e,used:t.used||0,total:t.total||0,remaining:t.remaining,resetAt:t.resetAt||null})});break;case"kiro":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"qoder":case"qoder-cn":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{t&&0!==(Number(t.total)||0)&&a.push({name:"user"===e?"Personal":"organization"===e?"Organization":"addOn"===e?"Add-on":e,used:t.used||0,total:t.total||0,unit:t.unit,resetAt:t.resetAt||null,neverExpires:!0===t.neverExpires,detailUrl:t.detailUrl||null})});break;case"claude":t.message?a.push({name:"error",used:0,total:0,resetAt:null,message:t.message}):t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,remaining:void 0!==t.remaining?t.remaining:Math.max(0,(t.total||100)-(t.used||0)),remainingPercentage:void 0!==t.remainingPercentage?t.remainingPercentage:w(t.used,t.total),resetAt:t.resetAt||null})});break;case"vercel-ai-gateway":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codebuddy-cn":case"codebuddy-intl":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!1!==t.recurring})});break;case"grok-cli":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"kimi":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"cursor":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"deepseek":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"cloudflare-ai":for(let[e,r]of Object.entries(t.quotas||{}))a.push({...r,name:r.name||e});break;case"groq":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"clinepass":case"ollama":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage,isCreditBalance:t.isCreditBalance,currency:t.currency,unit:t.unit,unlimited:t.unlimited})});break;case"clinepass":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"zed":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage,unlimited:t.unlimited})});break;case"minimax-code":case"minimax-code-global":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:e,used:t.used||0,total:t.total||0,remaining:t.remaining,remainingPercentage:t.remainingPercentage,resetAt:t.resetAt||null,message:t.message,isCreditBalance:t.isCreditBalance,currency:t.currency})});break;default:t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{a.push({name:t.name||e,used:t.used||0,total:t.total||0,unit:t.unit,percentage:t.percentage,colorPercentage:t.colorPercentage,percentageIsUsed:!0===t.percentageIsUsed,remaining:t.remaining,remainingPercentage:t.remainingPercentage,resetAt:t.resetAt||null,emptyMessage:t.emptyMessage||null,unlimited:!0===t.unlimited,isCreditBalance:!0===t.isCreditBalance,currency:t.currency,recurring:t.recurring,neverExpires:!0===t.neverExpires,detailUrl:t.detailUrl})})}}catch(t){return console.error(`Error parsing quota data for ${e}:`,t),[]}if(e?.toLowerCase()==="claude"){let e={"session (5h)":0,"weekly (7d)":1,"weekly fable (7d)":2,"weekly opus (7d)":3,"weekly sonnet (7d)":4};return a.sort((t,a)=>(e[t.name]??99)-(e[a.name]??99)),a}let r=(0,o.KC)(e);if(r.length>0){let e=new Map(r.map((e,t)=>[e.id,t]));a.sort((t,a)=>{let r=t.modelKey||t.name,n=a.modelKey||a.name;return("gemini_hydrogen"===r||"gemini_hydrogen_session"===r)&&(r="gemini-4-hydrogen-high"),("gemini_carbon"===r||"gemini_carbon_session"===r)&&(r="gemini-4-carbon-high"),("gemini_argon"===r||"gemini_argon_session"===r)&&(r="gemini-4-argon-high"),("gemini"===r||"gemini_session"===r)&&(r="gemini-3.8-flash-high"),("claude"===r||"claude_gpt_session"===r)&&(r="claude-sonnet-4-6"),("gemini_hydrogen"===n||"gemini_hydrogen_session"===n)&&(n="gemini-4-hydrogen-high"),("gemini_carbon"===n||"gemini_carbon_session"===n)&&(n="gemini-4-carbon-high"),("gemini_argon"===n||"gemini_argon_session"===n)&&(n="gemini-4-argon-high"),("gemini"===n||"gemini_session"===n)&&(n="gemini-3.8-flash-high"),("claude"===n||"claude_gpt_session"===n)&&(n="claude-sonnet-4-6"),(e.get(r)??999)-(e.get(n)??999)})}return a}(t,s),plan:s.plan||null,message:s.message||null,raw:s};U(t=>({...t,[e]:i})),j(e,i)}catch(a){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,a),V(t=>({...t,[e]:a.message||"Failed to fetch quota"}))}finally{I(t=>({...t,[e]:!1}))}},[]),th=(0,n.useCallback)(async(e,t)=>{await tx(e,t,{force:!0}),ep(new Date)},[tx]),tp=(0,n.useCallback)(async(e,t)=>{if(("codex"===t||"claude"===t)&&!eE){eT(e),V(t=>({...t,[e]:null}));try{let a="claude"===t?await fetch(`/api/usage/${e}/claude-reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grantId:F[e]?.raw?.resetCredits?.nextGrantId})}):await fetch(`/api/usage/${e}/codex-reset-credits`,{method:"POST"}),r=await a.json().catch(()=>({}));if(!a.ok)throw Error(r.message||r.error||r.code||"Failed to reset limit");await tx(e,t,{force:!0}),ep(new Date)}catch(t){V(a=>({...a,[e]:t.message||"Failed to reset limit"}))}finally{eT(null)}}},[tx,eE,F]),tg=(0,n.useCallback)((e,t)=>{eF({connection:e,loading:!1,error:null,data:{kind:"claude",...t}})},[]),tb=(0,n.useCallback)(async e=>{eF({connection:e,loading:!0,error:null,data:null});try{let t=await fetch(`/api/usage/${e.id}/codex-reset-credits`,{cache:"no-store"}),a=await t.json().catch(()=>({}));if(!t.ok)throw Error(a.error||a.message||"Failed to load Codex reset credits");let r=Array.isArray(a.credits)?[...a.credits]:[];r.sort((e,t)=>{let a=e.expiresAt?new Date(e.expiresAt).getTime():1/0,r=t.expiresAt?new Date(t.expiresAt).getTime():1/0;return a-r}),eF({connection:e,loading:!1,error:null,data:{...a,credits:r}})}catch(t){eF({connection:e,loading:!1,error:t.message||"Failed to load Codex reset credits",data:null})}},[]),tf=(0,n.useCallback)(async e=>{if(confirm("Delete this connection?")){eP(e);try{if((await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok){U(t=>{let a={...t};return delete a[e],a}),I(t=>{let a={...t};return delete a[e],a}),V(t=>{let a={...t};return delete a[e],a});try{let t=v();t[e]&&(delete t[e],window.localStorage.setItem(d,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await y(tm,tt)}}catch(e){console.error("Error deleting connection:",e)}finally{eP(null)}}},[tm,tt]),ty=(0,n.useCallback)(async(e,t)=>{e_(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(U(e=>({...e})),await y(tm,tt))}catch(e){console.error("Error updating connection status:",e)}finally{e_(null)}},[tm,tt]),tv=(0,n.useCallback)(async(e,t)=>{if(!eq){e$(e.id);try{let a=await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerSpecificData:{fastMode:t,..."codex"===e.provider?{codexFastMode:t}:{}}})}),r=await a.json().catch(()=>({}));if(!a.ok)throw Error(r.error||"Failed to save fast mode");O(a=>a.map(a=>a.id===e.id?{...a,providerSpecificData:{...a.providerSpecificData,fastMode:t,..."codex"===e.provider?{codexFastMode:t}:{}}}:a))}catch(e){alert(e.message||"Failed to save fast mode")}finally{e$(null)}}},[eq]),tj=(0,n.useCallback)(async e=>{if(!eH?.id)return;let t=eH.id,a=eH.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await tm(),eR(!1),eB(null),B.wb.includes(a)&&await tx(t,a))}catch(e){console.error("Error saving connection:",e)}},[eH,tm,tx]),tw=(0,n.useCallback)(async(e,t,a)=>{let r=D.find(t=>t.id===e);if(!r)return;let n={...r.quotaPauseThresholds&&"object"==typeof r.quotaPauseThresholds?r.quotaPauseThresholds:{}},s=Number(a);Number.isFinite(s)&&s>0&&s<=100?n[t]=s:delete n[t];try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaPauseThresholds:n})})).ok&&O(t=>t.map(t=>t.id===e?{...t,quotaPauseThresholds:n}:t))}catch(e){console.error("Error updating quota threshold:",e)}},[D]);(0,n.useEffect)(()=>{let e=!1;return fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.json()).then(t=>{!e&&t?.proxyPools&&eG(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let tk=(0,n.useCallback)(async(e=!1)=>{if(ev)return;ej(!0),ek(60);let t=tu.current+=1;try{let a=await tm(tt),r=function(e,{force:t=!1,tick:a=0}={}){if(t)return e;let r=Math.round(10);return e.filter(e=>"claude"!==e.provider||a%r==0)}(a,{force:e,tick:t});I(b(r)),V(e=>f(e,a)),U(e=>f(e,a)),await Promise.all(r.map(e=>tx(e.id,e.provider))),ep(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{ej(!1)}},[ev,tm,tx,tt]);(0,n.useEffect)(()=>{(async()=>{eC(!0);let e=await tm(tt);eC(!1),I(b(e)),V(t=>f(t,e)),U(t=>f(t,e)),await Promise.all(e.map(e=>tx(e.id,e.provider))),ep(new Date)})()},[tm,tx,tt]),(0,n.useEffect)(()=>{let e=window.localStorage.getItem(c);es(null===e||"true"===e),eb(!0)},[]),(0,n.useEffect)(()=>{eg&&window.localStorage.setItem(c,String(Y))},[Y,eg]),(0,n.useEffect)(()=>{try{let e=window.localStorage.getItem(u);if(e){let t=JSON.parse(e);if(t?.accountFilter&&["all","active","inactive"].includes(t.accountFilter)&&e0(t.accountFilter),t?.pageSize){let e=Number(t.pageSize);Number.isFinite(e)&&e>0&&(tn(e),ti(String(e)))}}}catch{}ey(!0)},[]),(0,n.useEffect)(()=>{if(ef)try{window.localStorage.setItem(u,JSON.stringify({accountFilter:eX,pageSize:tr}))}catch{}},[eX,tr,ef]),(0,n.useEffect)(()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{}).then(e=>{eu({claude:e?.claudeAutoPing||{},codex:e?.codexAutoPing||{},antigravity:e?.antigravityAutoPing||{}}),e3(e?.quotaVisibility||{})}).catch(()=>{})},[]);let tN=(0,n.useCallback)(async(e,t,{reactive:a,schedule:r})=>{let n=ea[t];if(!n)return;let s=ec[t]||{},i={...s,connections:{...s.connections||{},[e]:a},schedules:{...s.schedules||{},[e]:r}};eu({...ec,[t]:i});try{let e=await fetch("/api/settings",{cache:"no-store"}),t={...(e.ok?await e.json():{})[n]||{},connections:i.connections,schedules:i.schedules};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[n]:t})})}catch{eu(ec)}},[ec]),tC=(0,n.useCallback)(async(e,t)=>{e3(e);try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:e})})).ok)throw Error("Failed to update quota visibility")}catch(e){console.error("Error updating quota visibility:",e),e3(t)}},[]),tS=(0,n.useCallback)((e,t,a)=>{tC(C(e,t,a,e2,!0),e2)},[e2,tC]),tP=(0,n.useCallback)((e,t,a)=>{tC(C(e,t,a,e2,!1),e2)},[e2,tC]),tA=(0,n.useRef)(tk);(0,n.useEffect)(()=>{tA.current=tk},[tk]);let t_=(0,n.useMemo)(()=>(function({onRefresh:e,onTick:t,refreshIntervalMs:a,tickMs:r=1e3}){let n=null,s=null,i=()=>{null!==n&&(clearInterval(n),n=null),null!==s&&(clearInterval(s),s=null)};return{start:()=>{i(),n=setInterval(()=>e(),a),s=setInterval(()=>t(),r)},stop:i,isRunning:()=>null!==n||null!==s}})({onRefresh:()=>tA.current(),onTick:()=>ek(e=>e<=1?60:e-1),refreshIntervalMs:6e4}),[]);(0,n.useEffect)(()=>!eg||!Y||"u">typeof document&&document.hidden?void t_.stop():(t_.start(),()=>t_.stop()),[Y,eg,t_]),(0,n.useEffect)(()=>{let e=()=>{document.hidden?t_.stop():Y&&eg&&t_.start()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e),t_.stop()}},[Y,eg,t_]);let tq=(0,n.useMemo)(()=>(function(e,t,a,r,n){if("codex"===r&&"default"!==n)return[...e].sort((e,a)=>{let r=g(e,t),s=g(a,t),i="remaining-asc"===n?r-s:s-r;return 0!==i?i:(p(e)||"").localeCompare(p(a)||"")});if(!a){let t=new Map;for(let a of e){let e=a.provider||"";t.has(e)||t.set(e,[]),t.get(e).push(a)}return Array.from(t.values()).flat()}let s=e=>{let a=(t[e.id]?.quotas||[]).map(e=>e.resetAt?new Date(e.resetAt).getTime():1/0).filter(e=>Number.isFinite(e));return a.length>0?Math.min(...a):1/0};return[...e].sort((e,t)=>{let a=s(e)-s(t);return 0!==a?a:(e.provider||"").localeCompare(t.provider||"")||(p(e)||"").localeCompare(p(t)||"")})})(D,F,e4,eW,e1),[D,F,e4,eW,e1]),[t$,tE]=(0,n.useState)(!1),tT=e4||t$,tM=(0,G.FR)((0,G.MS)(G.AN,{activationConstraint:{distance:5}}),(0,G.MS)(G.uN,{coordinateGetter:W.JR})),tD=(0,n.useMemo)(()=>tq.map(e=>e.id),[tq]),tO=(0,n.useCallback)(async e=>{let{active:t,over:a}=e;if(!a||t.id===a.id)return;let r=tq.find(e=>e.id===t.id),n=tq.find(e=>e.id===a.id);if(!r||!n||r.provider===n.provider)return;let s=function(e,t,a){if(!Array.isArray(e)||!t||!a||t===a)return e;let r=ee(e),n=r.indexOf(t),s=r.indexOf(a);if(-1===n||-1===s||n===s)return e;let i=function(e,t,a){let r=[...e];if(!Number.isInteger(t)||!Number.isInteger(a)||t<0||t>=r.length)return r;let n=Math.max(0,Math.min(r.length-1,a));if(t===n)return r;let[s]=r.splice(t,1);return r.splice(n,0,s),r}(r,n,s),l=new Map;for(let t of e){let e=t?.provider;l.has(e)||l.set(e,[]),l.get(e).push(t)}let o=[];for(let e of i){let t=l.get(e);t&&o.push(...t)}if(o.length!==e.length){let t=new Set(o);for(let a of e)t.has(a)||o.push(a)}return o}(tq,r.provider,n.provider);if(s!==tq){O(s),tE(!0);try{let e=await fetch("/api/settings/provider-order",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({order:ee(s)})});if(!e.ok)throw Error(`Provider order save failed (${e.status})`)}catch(e){console.error("Error saving provider order:",e),await tm()}finally{tE(!1)}}},[tq,tm]),tF=e=>{let t=F[e.id]?.quotas;return!!t?.length&&t.some(e=>!!e.total&&!(e.total<=0)&&5>=w(e.used,e.total))},tU=(0,n.useCallback)(async(e,t)=>{if(e.length&&!e7){te(!0);try{await Promise.all(e.map(e=>fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})}))),await y(tm,tt)}catch(e){console.error("Error bulk toggling connections:",e)}finally{te(!1)}}},[e7,tm,tt]),tR="all"===eW?"All providers":eW,tI=td.eligibleConnections>0,tL=tq.length>0,tz=td.eligibleConnections?td.providerFilteredConnections?{icon:"filter_alt_off",title:"No Accounts On This Page",description:"Try moving to another page or refreshing the current filters."}:{icon:"filter_alt_off",title:"No Accounts Match Current Filters",description:"all"===eW?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===eX?"turned off":"active"===eX?"active":"matching"} accounts found for ${eW}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},tK=function(e){var t;let{start:a,end:r}=(t=e).total?{start:(t.page-1)*t.pageSize+1,end:Math.min(t.page*t.pageSize,t.total)}:{start:0,end:0};return`Showing ${a}-${r} of ${e.total}`}(tl),tH=!m.includes(tr);return eN||tI?eN||tL?(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-end",children:(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>e9(e=>!e),className:"flex h-8 items-center justify-between gap-1 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-haspopup":"menu","aria-expanded":e6,title:"Filter quota providers",children:[(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===eW?(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,r.jsx)(i.A,{src:`/providers/${eW}.png`,alt:eW,size:18,className:"size-[18px] rounded object-contain",fallbackText:eW.slice(0,2).toUpperCase()}),(0,r.jsx)("span",{className:"truncate capitalize hidden lg:inline",children:tR})]}),(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),e6&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"fixed inset-0 z-30 bg-transparent","aria-label":"Close provider filter",onClick:()=>e9(!1)}),(0,r.jsxs)("div",{className:"absolute left-0 z-40 mt-2 w-64 overflow-hidden rounded-2xl border border-black/10 bg-surface/95 p-1.5 shadow-xl shadow-black/10 backdrop-blur dark:border-white/10 dark:bg-surface/95 sm:w-72",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>{"all"!==eW&&ta(1),eV("all"),e9(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${"all"===eW?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[22px]",children:"apps"}),(0,r.jsx)("span",{className:"font-medium",children:"All providers"}),"all"===eW&&(0,r.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]}),(0,r.jsx)("div",{className:"my-1 h-px bg-black/10 dark:bg-white/10"}),(0,r.jsx)("div",{className:"max-h-72 overflow-y-auto pr-1",children:eY.map(e=>(0,r.jsxs)("button",{type:"button",onClick:()=>{eW!==e&&ta(1),eV(e),e9(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${eW===e?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,r.jsx)(i.A,{src:`/providers/${e}.png`,alt:e,size:24,className:"size-6 rounded-md object-contain",fallbackText:e.slice(0,2).toUpperCase()}),(0,r.jsx)("span",{className:"font-medium capitalize",children:e}),eW===e&&(0,r.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]},e))})]})]})]}),(0,r.jsx)("select",{value:eX,onChange:e=>{let t=e.target.value;eX!==t&&ta(1),e0(t)},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Filter accounts by status",children:x.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))}),"codex"===eW&&(0,r.jsx)("select",{value:e1,onChange:e=>e5(e.target.value),className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Sort Codex quotas by remaining",children:h.map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,r.jsxs)("button",{type:"button",onClick:()=>e8(e=>!e),"aria-pressed":e4,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 text-xs transition-colors ${e4?"border-amber-500/40 bg-amber-500/10 text-amber-500":"border-black/10 text-text-primary hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5"}`,title:"Sort accounts by earliest quota reset time",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"hourglass_top"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Expiring first"})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{tU(tq.filter(e=>(e.isActive??!0)&&tF(e)).map(e=>e.id),!1)},disabled:e7,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-red-500/30 px-2 text-xs text-red-500 transition-colors hover:bg-red-500/10 disabled:opacity-50",title:"Disable connections with depleted quota on the current page",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"block"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Turn off Empty"})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{tU(tq.filter(e=>!(e.isActive??!0)&&!tF(e)).map(e=>e.id),!0)},disabled:e7,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-emerald-500/30 px-2 text-xs text-emerald-500 transition-colors hover:bg-emerald-500/10 disabled:opacity-50",title:"Enable connections that still have quota on the current page",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"check_circle"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Turn on Available"})]}),(0,r.jsxs)("button",{onClick:()=>es(e=>!e),className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5",title:Y?"Disable auto-refresh":"Enable auto-refresh",children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[14px] ${Y?"text-primary":"text-text-muted"}`,children:Y?"toggle_on":"toggle_off"}),(0,r.jsx)("span",{className:"hidden text-text-primary sm:inline",children:"Auto-refresh"}),Y&&(0,r.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",ew,"s)"]})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{eK(null),eL(!0)},className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5",title:"Map any provider usage API onto the quota tracker",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"tune"}),(0,r.jsx)("span",{className:"hidden sm:inline",children:"Custom quota"})]}),(0,r.jsx)("button",{type:"button",onClick:()=>tk(!0),disabled:ev,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5 disabled:opacity-50",title:"Refresh all",children:(0,r.jsx)("span",{className:`material-symbols-outlined text-[14px] ${ev?"animate-spin":""}`,children:"refresh"})})]})}),e4&&(0,r.jsx)("div",{className:"rounded-xl border border-amber-500/20 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:"Expiring-first currently reorders accounts inside the current page. Cross-page ordering still follows backend pagination."}),(0,r.jsx)(G.Mp,{sensors:tM,collisionDetection:G.fp,onDragEnd:tO,modifiers:[Q.gj],children:(0,r.jsx)(W.gB,{items:tD,strategy:W.kL,children:(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:tq.map(a=>{let n,s,o,d,c=F[a.id],u=R[a.id],m=L[a.id],x=!1===a.isActive,h="codex"===a.provider,g=h?(n=c?.plan?.trim())&&"unknown"!==n.toLowerCase()?n:a?.providerSpecificData?.chatgptPlanType?.trim()||null:null,b="claude"===a.provider?c?.raw?.resetCredits:null,f=h?"Codex reset credit":"Claude limit reset",y=Number.isFinite(o="number"==typeof(s=c?.raw?.resetCredits?.availableCount)?s:Number(s))?Math.max(0,o):0,v=eE===a.id,j=eq===a.id,w=eS===a.id||eA===a.id||v||j,N="opendesign-go"===a.provider&&!m&&"string"==typeof c?.message&&(c.message.includes("chưa cấu h\xecnh Control Key")||c.message.toLowerCase().includes("control key")),C=c?.quotas||[],P=function(e,t=[],a={},r){if(!Array.isArray(t)||0===t.length)return[];let n=S(e,a,t,r);return 0===n.size?t:t.filter(e=>!n.has(k(e)))}(a.provider,C,e2,a.id),_=function(e,t=[],a={},r){if(!Array.isArray(t)||0===t.length)return[];let n=S(e,a,t,r);return 0===n.size?[]:t.filter(e=>n.has(k(e)))}(a.provider,C,e2,a.id),D=(0,J.XD)(a);return(0,r.jsx)(Z,{id:a.id,disabled:tT,children:(0,r.jsxs)(T.default,{padding:"none",className:`min-w-0 ${x?"opacity-60":""}`,children:[(0,r.jsx)("div",{className:"px-3 py-2 border-b border-black/10 dark:border-white/10",children:(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,r.jsx)(X,{title:e4?"Provider order is disabled while “Expiring first” is on":`Drag to move ${el(a.provider,a)} up or down`}),(0,r.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,r.jsx)(i.A,{src:`/providers/${a.provider}.png`,alt:a.provider,size:32,className:"object-contain",fallbackText:a.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-text-primary truncate",children:el(a.provider,a)}),p(a)?(0,r.jsx)("p",{className:"text-xs text-text-muted truncate",children:p(a)}):null,er(a)?(0,r.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:er(a)}):null,g?(0,r.jsx)("span",{className:"mt-1 inline-flex rounded-full bg-brand-500/10 px-2 py-0.5 text-[10px] font-semibold text-brand-600 dark:text-brand-300",children:g}):null,D.enabled&&(0,r.jsx)("p",{className:"mt-0.5",children:(0,r.jsx)(M.Ex,{variant:D.paused?"warning":"default",size:"sm",children:D.paused?`Paused (quota${D.triggered?`: ${D.triggered.key}`:""})`:"Buffers set"})}),"kiro"===a.provider&&(0,r.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,r.jsx)("span",{className:"rounded-full bg-brand-500/10 px-2 py-0.5 text-[10px] font-semibold text-brand-600 dark:text-brand-300",children:(d=a.providerSpecificData?.authMethod)&&et[d]?et[d]:"api_key"===a.authType?"API Key":"OAuth"}),en(a)&&(0,r.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-semibold text-blue-600 dark:text-blue-400",children:en(a)}),(0,r.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${x?"bg-surface-2 text-text-muted":"active"===a.testStatus||"success"===a.testStatus?"bg-green-500/10 text-green-600 dark:text-green-400":"error"===a.testStatus||"expired"===a.testStatus||"unavailable"===a.testStatus?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:x?"disabled":a.testStatus||"unknown"}),a.providerSpecificData?.profileArn&&(0,r.jsxs)("button",{type:"button",onClick:()=>t(a.providerSpecificData.profileArn,a.id),title:a.providerSpecificData.profileArn,className:"inline-flex max-w-full items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-muted transition-colors hover:text-primary",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:e===a.id?"check":"content_copy"}),(0,r.jsx)("code",{className:"truncate font-mono",children:a.providerSpecificData.profileArn})]})]})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(h||b)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(E.default,{text:y>0?b?`Use your reset now (${y} left, use by ${eo(b.expiresAt)}) \xb7 refills ${ei(b.clears)}`:`Use one ${f}. Available: ${y}`:`No ${f}s available`,children:(0,r.jsxs)("button",{type:"button",onClick:()=>eD({connection:a,resetCreditCount:y}),disabled:y<=0||u||w,"aria-label":y>0?`Use one ${f}. ${y} available.`:`No ${f}s available`,className:`flex h-8 min-w-10 items-center justify-center gap-1 rounded-lg border px-2 text-[11px] font-medium tabular-nums transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60 disabled:cursor-not-allowed disabled:opacity-60 ${y>0?"border-primary/30 bg-primary/5 text-primary hover:bg-primary/10":"border-black/10 bg-black/[0.02] text-text-muted dark:border-white/10 dark:bg-white/[0.03]"}`,children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[15px] ${v?"animate-spin":""}`,children:v?"progress_activity":"restart_alt"}),(0,r.jsx)("span",{children:y})]})}),(0,r.jsx)(E.default,{text:h?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,r.jsx)("button",{type:"button",onClick:()=>h?tb(a):tg(a,b),disabled:u||w,"aria-label":h?"View Codex reset credit expiry":"View Claude Code reset expiry",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-muted transition-colors hover:bg-black/5 hover:text-primary disabled:cursor-not-allowed disabled:opacity-50 dark:border-white/10 dark:hover:bg-white/5",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})}),B.Q2[a.provider]?.fastMode&&(0,r.jsx)(E.default,{text:`Fast mode is ${a.providerSpecificData?.fastMode===!0?"on":"off"}. Uses the provider's faster processing mode at a higher token cost.`,children:(0,r.jsxs)("button",{type:"button",onClick:()=>tv(a,a.providerSpecificData?.fastMode!==!0),disabled:u||w,role:"switch","aria-label":"Toggle fast mode","aria-checked":a.providerSpecificData?.fastMode===!0,className:`flex h-8 min-w-14 items-center justify-center gap-1 rounded-lg border px-2 text-[11px] font-medium transition-colors disabled:cursor-not-allowed disabled:opacity-50 ${a.providerSpecificData?.fastMode===!0?"border-primary/30 bg-primary/10 text-primary":"border-black/10 text-text-muted hover:bg-black/5 hover:text-primary dark:border-white/10 dark:hover:bg-white/5"}`,children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[16px] ${j?"animate-spin":""}`,children:j?"progress_activity":"speed"}),(0,r.jsx)("span",{children:"Fast"})]})})]}),ea[a.provider]&&"oauth"===a.authType&&(()=>{let e=ec[a.provider]||{},t=e.connections?.[a.id]===!0,n=e.schedules?.[a.id],s=n?.enabled===!0,i=[];if(t&&i.push("On reset"),s){let e=(0,H.JW)(n).join(" / ");i.push(`Scheduled (${e||"active"})`)}let l=i.length>0?`Auto-ping active: ${i.join(" + ")}. Click to configure.`:"codex"===a.provider?"Auto-starts the next 5h Codex window after reset or on schedule. Click to configure.":"antigravity"===a.provider?"Auto-starts the next 5h Antigravity window after reset or on schedule. Click to configure.":"Auto-starts a new window on quota reset or fixed schedule. Click to configure.";return(0,r.jsx)(E.default,{text:l,children:(0,r.jsx)("button",{type:"button",onClick:()=>ex(a),"aria-label":"Configure auto-ping",className:`flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${t||s?"text-primary":"text-text-muted"}`,children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})})})(),h&&(0,r.jsx)(E.default,{text:a.providerSpecificData?.codexFastMode===!0||a.providerSpecificData?.fastMode===!0?"Fast mode ON — Codex requests on this account use the priority tier. Click to disable.":"Force fast mode — Codex requests on this account use the priority tier.",children:(0,r.jsx)("button",{type:"button",onClick:()=>{let e=a.providerSpecificData?.codexFastMode===!0||a.providerSpecificData?.fastMode===!0;tv(a,!e)},disabled:w,"aria-label":"Toggle fast mode",className:`flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${a.providerSpecificData?.codexFastMode===!0||a.providerSpecificData?.fastMode===!0?"text-primary":"text-text-muted"}`,children:(0,r.jsx)("span",{className:`material-symbols-outlined text-[18px] ${j?"animate-spin":""}`,children:j?"progress_activity":"speed"})})}),ea[a.provider]&&"oauth"===a.authType&&(0,r.jsx)(l.A,{connectionId:a.id,disabled:!1===a.isActive,onComplete:()=>th(a.id,a.provider)}),(0,r.jsx)(E.default,{text:"Refresh quota",children:(0,r.jsx)("button",{type:"button",onClick:()=>th(a.id,a.provider),disabled:u||w,"aria-label":"Refresh quota",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 transition-colors disabled:opacity-50",children:(0,r.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${u?"animate-spin":""}`,children:"refresh"})})}),(a.hasCustomQuota||!B.wb.includes(a.provider))&&(0,r.jsx)(E.default,{text:a.hasCustomQuota?"Custom quota source configured":"Configure custom quota source",children:(0,r.jsx)("button",{type:"button",onClick:()=>{eK(a),eL(!0)},"aria-label":"Configure custom quota source",className:`flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${a.hasCustomQuota?"text-primary":"text-text-muted"}`,children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"tune"})})}),(0,r.jsx)(E.default,{text:"Edit connection",children:(0,r.jsx)("button",{type:"button",onClick:()=>{eB(a),eR(!0)},disabled:w,"aria-label":"Edit connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary transition-colors disabled:opacity-50",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,r.jsx)(E.default,{text:"Delete connection",children:(0,r.jsx)("button",{type:"button",onClick:()=>tf(a.id),disabled:w,"aria-label":"Delete connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",children:(0,r.jsx)("span",{className:`material-symbols-outlined text-[18px] ${eS===a.id?"animate-pulse":""}`,children:"delete"})})}),(0,r.jsx)("div",{className:"inline-flex items-center pl-0.5",title:a.isActive??!0?"Disable connection":"Enable connection",children:(0,r.jsx)($.default,{size:"sm",checked:a.isActive??!0,disabled:w,onChange:e=>ty(a.id,e)})})]})]})}),(0,r.jsxs)("div",{className:"px-2 py-1.5",children:[u?(0,r.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):m?(0,r.jsxs)("div",{className:"text-center py-5",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,r.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:m})]}):c?.message?(0,r.jsxs)("div",{className:"text-center py-5",children:[(0,r.jsx)("p",{className:"text-xs text-text-muted",children:c.message}),N&&(0,r.jsx)(q,{connectionId:a.id,onDone:()=>th(a.id,a.provider),className:"mx-auto mt-2 max-w-sm text-left"})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A,{quotas:P,compact:!0,sortMode:"default",showSortLabel:"codex"===a.provider&&"default"!==e1,onHideQuota:e=>tS(a.provider,a.id,e)}),a.lastQuotaSnapshot?.windows?.length>0&&(0,r.jsxs)("div",{className:"mt-2 border-t border-black/5 pt-2 dark:border-white/5",children:[(0,r.jsx)("p",{className:"mb-1 text-[10px] text-text-muted",children:"Pause buffer — pause this account when a window's remaining % ≤"}),(0,r.jsx)("div",{className:"flex flex-col gap-1",children:a.lastQuotaSnapshot.windows.map(e=>{let t=Number(a.quotaPauseThresholds?.[e.key])||0;return(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"min-w-0 flex-1 truncate text-[11px] text-text-muted",title:e.key,children:e.key}),(0,r.jsx)("span",{className:"w-10 text-right text-[10px] tabular-nums text-text-muted",children:"number"==typeof e.remainingPercentage?`${e.remainingPercentage}%`:"—"}),(0,r.jsx)("span",{className:"text-[10px] text-text-muted",children:"≤"}),(0,r.jsx)("input",{type:"number",min:0,max:100,value:t,onChange:t=>tw(a.id,e.key,Number.parseInt(t.target.value,10)||0),className:"w-14 rounded border border-border bg-background px-1 py-0.5 text-[11px] focus:border-primary focus:outline-none","aria-label":`Pause buffer for ${e.key}`}),(0,r.jsx)("span",{className:"text-[10px] text-text-muted",children:"%"})]},e.key)})})]})]}),c?.message&&!m&&!u&&(0,r.jsx)("p",{className:"mt-2 px-1 text-[10px] leading-relaxed text-text-muted",children:c.message}),c?.raw?.speed&&(0,r.jsx)("div",{className:"mt-1 px-1 text-[10px] leading-relaxed text-text-muted tabular-nums",children:(c.raw.speed.byModel?.length?c.raw.speed.byModel:[{model:"Speed",...c.raw.speed}]).slice(0,3).map(e=>(0,r.jsxs)("p",{children:[e.model,": ",Math.round(e.avgTps).toLocaleString()," tok/s avg \xb7 last ",Math.round(e.lastTps).toLocaleString()," \xb7 TTFT ",(e.avgTtftMs/1e3).toFixed(1),"s (n=",e.samples,")"]},e.model))}),_.length>0&&(0,r.jsxs)("div",{className:"mt-2 flex min-w-0 items-center gap-1 border-t border-black/5 pt-2 text-[10px] text-text-muted dark:border-white/5",children:[(0,r.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[14px]",children:"visibility_off"}),(0,r.jsx)("span",{className:"shrink-0",children:"Hidden:"}),(0,r.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap pb-2",children:_.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>tP(a.provider,a.id,e),className:"shrink-0 rounded-md border border-black/10 px-1.5 py-0.5 transition-colors hover:bg-black/5 hover:text-text-primary dark:border-white/10 dark:hover:bg-white/5",title:"Show this quota row",children:e.name},k(e)))})]})]})]})},a.id)})})})}),(0,r.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 dark:border-white/10 dark:bg-white/[0.03]",children:(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,r.jsx)("span",{className:"text-xs text-text-muted",children:tK}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsxs)("select",{value:tH?"custom":String(tr),onChange:e=>{let t=e.target.value;if("custom"===t)return;let a=Number.parseInt(t,10);Number.isFinite(a)&&(ta(1),tn(a),ti(String(a)))},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Accounts per page",children:[m.map(e=>(0,r.jsxs)("option",{value:String(e),children:[e," / page"]},e)),(0,r.jsx)("option",{value:"custom",children:"Custom"})]}),(0,r.jsx)("input",{type:"number",min:"1",max:String(500),inputMode:"numeric",value:ts,onChange:e=>ti(e.target.value),onBlur:()=>{let e=Number.parseInt(ts,10);if(!Number.isFinite(e))return void ti(String(tr));let t=Math.min(500,Math.max(1,e));ta(1),tn(t),ti(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(ts,10);if(!Number.isFinite(t))return void ti(String(tr));let a=Math.min(500,Math.max(1,t));ta(1),tn(a),ti(String(a))},className:"h-8 w-20 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Custom accounts per page",placeholder:"Custom"}),(0,r.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",tl.page," / ",tl.totalPages]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,r.jsx)("button",{type:"button",onClick:()=>ta(1),disabled:tl.page<=1||eN||ev,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"First Page"}),(0,r.jsx)("button",{type:"button",onClick:()=>ta(e=>Math.max(1,e-1)),disabled:tl.page<=1||eN||ev,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Previous accounts page",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,r.jsx)("button",{type:"button",onClick:()=>ta(e=>Math.min(tl.totalPages,e+1)),disabled:tl.page>=tl.totalPages||eN||ev,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Next accounts page",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,r.jsx)("button",{type:"button",onClick:()=>ta(tl.totalPages),disabled:tl.page>=tl.totalPages||eN||ev,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Last Page"})]})]})}),(0,r.jsx)(M.uo,{isOpen:!!eM,onClose:()=>{eE||eD(null)},onConfirm:async()=>{let e=eM?.connection;e&&(await tp(e.id,e.provider),eD(null))},title:eM?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:eM?.connection?.provider==="claude"?`Refills your ${ei(F[eM.connection.id]?.raw?.resetCredits?.clears)} now for ${p(eM.connection)||"this account"} \xb7 your weekly reset day stays ${eo(F[eM.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${eM.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${p(eM?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${eM?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!eE}),eO&&(0,r.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,r.jsxs)("div",{className:"w-full max-w-2xl overflow-hidden rounded-2xl border border-black/15 bg-white shadow-2xl ring-1 ring-black/10 dark:border-white/15 dark:bg-neutral-950 dark:ring-white/10",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-black/10 bg-black/[0.03] px-4 py-3 dark:border-white/10 dark:bg-white/[0.04]",children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:eO.data?.kind==="claude"?"Claude Code Limit Resets":"Codex Reset Credit Expiry"}),(0,r.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:p(eO.connection)||(eO.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,r.jsx)("button",{type:"button",onClick:()=>eF(null),className:"flex h-8 w-8 items-center justify-center rounded-lg text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5","aria-label":"Close reset credit expiry modal",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,r.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:eO.loading?(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,r.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):eO.error?(0,r.jsx)("div",{className:"rounded-xl border border-red-500/20 bg-red-500/10 px-3 py-2 text-sm text-red-600 dark:text-red-300",children:eO.error}):eO.data?.kind==="claude"&&eO.data.grants?.length?(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,r.jsxs)("span",{children:[eO.data.availableCount??0," reset",1===eO.data.availableCount?"":"s"," left"]}),(0,r.jsxs)("span",{children:["Weekly reset day: ",eo(eO.data.weeklyResetsAt)]})]}),(0,r.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,r.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,r.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{className:"px-3 py-2 font-medium",children:"Reset"}),(0,r.jsx)("th",{className:"px-3 py-2 font-medium",children:"Left"}),(0,r.jsx)("th",{className:"px-3 py-2 font-medium",children:"Refills"}),(0,r.jsx)("th",{className:"px-3 py-2 font-medium",children:"Use By"}),(0,r.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,r.jsx)("tbody",{children:(eO.data.grants||[]).map(e=>(0,r.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,r.jsxs)("td",{className:"px-3 py-2",children:[(0,r.jsx)("div",{className:"text-text-primary",children:e.label||e.id}),(0,r.jsx)("span",{className:"mt-1 inline-block rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.resetsLeft<=0?"used":e.paused?"paused":e.endsAt&&new Date(e.endsAt).getTime()<=Date.now()?"expired":e.usableNow?"usable now":e.startsAt&&new Date(e.startsAt).getTime()>Date.now()?"not started":e.useRequiresLimit?"at limit only":"unavailable"})]}),(0,r.jsxs)("td",{className:"whitespace-nowrap px-3 py-2 font-medium tabular-nums text-text-primary",children:[e.resetsLeft," / ",e.resetsTotal]}),(0,r.jsx)("td",{className:"px-3 py-2 text-text-muted",children:ei(e.clears)}),(0,r.jsx)("td",{className:"px-3 py-2 text-text-primary",children:eo(e.endsAt)}),(0,r.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text-primary",children:ed(e.endsAt)})]},e.id))})]})})]}):eO.data?.credits?.length?(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,r.jsxs)("span",{children:[eO.data.credits.length," reset credit",1===eO.data.credits.length?"":"s"]}),(0,r.jsxs)("span",{children:[eO.data.availableCount??0," available"]})]}),(0,r.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,r.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,r.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,r.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,r.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,r.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,r.jsx)("tbody",{children:eO.data.credits.map((e,t)=>(0,r.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,r.jsx)("td",{className:"px-3 py-2",children:(0,r.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.status||"unknown"})}),(0,r.jsx)("td",{className:"px-3 py-2 text-text-muted",children:eo(e.grantedAt)}),(0,r.jsx)("td",{className:"px-3 py-2 text-text-primary",children:eo(e.expiresAt)}),(0,r.jsx)("td",{className:"px-3 py-2 font-medium text-text-primary",children:ed(e.expiresAt)})]},`${e.status}-${e.expiresAt||t}`))})]})})]}):(0,r.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-8 text-center text-sm text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:eO.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),eI&&(0,r.jsx)(z,{isOpen:!0,connection:ez,onClose:()=>{eL(!1),eK(null)},onSaved:async({connectionId:e,provider:t})=>{await tm(),e&&t&&await tx(e,t)}}),(0,r.jsx)(M.wI,{isOpen:eU,connection:eH,proxyPools:eJ,onSave:tj,onClose:()=>{eR(!1),eB(null)}}),em&&(0,r.jsx)(K.A,{isOpen:!!em,onClose:()=>ex(null),connection:em,reactive:ec[em.provider]?.connections?.[em.id]===!0,schedule:ec[em.provider]?.schedules?.[em.id]||null,onSave:e=>tN(em.id,em.provider,e)})]}):(0,r.jsx)(T.default,{padding:"lg",children:(0,r.jsxs)("div",{className:"text-center py-12",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:tz.icon}),(0,r.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:tz.title}),(0,r.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:tz.description})]})}):(0,r.jsx)(T.default,{padding:"lg",children:(0,r.jsxs)("div",{className:"text-center py-12",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,r.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:"No Providers Connected"}),(0,r.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:"Connect to providers with OAuth to track your API quota limits and usage."})]})})}},84680:(e,t,a)=>{"use strict";a.d(t,{PM:()=>r.PM,Sj:()=>r.Sj,Vy:()=>r.Vy,fF:()=>r.fF,sl:()=>r.sl,vL:()=>r.vL,y$:()=>r.y$,zM:()=>r.zM});var r=a(44923)},93195:(e,t,a)=>{"use strict";function r(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}a.d(t,{JW:()=>o,Vm:()=>r,fB:()=>s,gy:()=>n,nz:()=>i});let n={anchor:"09:30",timezone:r(),windowHours:5,slotsPerDay:3};function s(e){let t=/^(\d{1,2}):(\d{2})$/.exec(String(e||"").trim());if(!t)return null;let a=Number(t[1]),r=Number(t[2]);return a>23||r>59?null:{hour:a,minute:r}}function i(e){return Math.max(1,Math.floor(24/e))}function l(e,t,a,r){let n="number"==typeof e?e:Number(e);return Number.isFinite(n)?Math.min(r,Math.max(a,n)):t}function o(e){let t=function(e){if(!e||!0!==e.enabled)return null;let t=s(e.anchor)||s(n.anchor),a=`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}`,r=!function(e){if(!e||"string"!=typeof e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),!0}catch{return!1}}(e.timezone)?n.timezone:e.timezone,o=l(e.windowHours,n.windowHours,.5,24),d=Math.round(l(e.slotsPerDay,n.slotsPerDay,1,i(o)));return{enabled:!0,anchor:a,timezone:r,windowHours:o,slotsPerDay:d}}(e);if(!t)return[];let{hour:a,minute:r}=s(t.anchor),o=60*a+r;return Array.from({length:t.slotsPerDay},(e,a)=>{let r=Math.round(o+a*t.windowHours*60)%1440;return`${String(Math.floor(r/60)).padStart(2,"0")}:${String(r%60).padStart(2,"0")}`})}},97132:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var r=a(95155),n=a(12115),s=a(14051),i=a.n(s),l=a(35497),o=a(31474),d=a(93195);let c=[{value:"off",label:"Off",icon:"block"},{value:"reset",label:"On reset",icon:"bolt"},{value:"schedule",label:"Schedule",icon:"schedule"}];function u({isOpen:e,onClose:t,onSave:a,connection:s,reactive:i=!1,schedule:m=null}){let[x,h]=(0,n.useState)(()=>({mode:m?.enabled===!0?"schedule":!0===i?"reset":"off",anchor:m?.anchor||d.gy.anchor,timezone:(0,d.Vm)(),windowHours:String(m?.windowHours??d.gy.windowHours),slotsPerDay:String(m?.slotsPerDay??d.gy.slotsPerDay)})),p=Number(x.windowHours),g=Number(x.slotsPerDay),b=!!(0,d.fB)(x.anchor),f=Number.isFinite(p)&&p>=.5&&p<=24,y=f?(0,d.nz)(p):24,v=Number.isInteger(g)&&g>=1&&g<=y,j=b&&f&&v,w="schedule"!==x.mode||j,k=j?(0,d.JW)({enabled:!0,...x,windowHours:p,slotsPerDay:g}):[],N=k.length&&f?(()=>{let{hour:e,minute:t}=(0,d.fB)(x.anchor),a=Math.round(60*e+t+g*p*60)%1440;return`${String(Math.floor(a/60)).padStart(2,"0")}:${String(a%60).padStart(2,"0")}`})():"",C=e=>h(t=>({...t,...e}));return(0,r.jsx)(l.aF,{isOpen:e,onClose:t,title:"Auto-ping settings",size:"lg",footer:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.$n,{variant:"secondary",onClick:t,children:"Cancel"}),(0,r.jsx)(l.$n,{onClick:()=>{w&&(a({reactive:"reset"===x.mode,schedule:"schedule"===x.mode?{enabled:!0,anchor:x.anchor,timezone:x.timezone,windowHours:p,slotsPerDay:g}:{enabled:!1}}),t())},disabled:!w,children:"Save"})]}),children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("p",{className:"text-sm text-text-muted",children:["Configure automated quota pings",s?.name?` for ${s.name}`:""," — pick one mode."]}),(0,r.jsx)("div",{className:"grid grid-cols-3 gap-1 rounded-[10px] bg-surface-2 p-1",children:c.map(e=>{let t=x.mode===e.value;return(0,r.jsxs)("button",{type:"button",onClick:()=>C({mode:e.value}),className:(0,o.cn)("flex h-9 items-center justify-center gap-1.5 rounded-[8px] px-3 text-sm font-medium transition-all",t?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[15px] leading-none",children:e.icon}),(0,r.jsx)("span",{children:e.label})]},e.value)})}),"reset"===x.mode&&(0,r.jsx)("p",{className:"text-xs text-text-muted",children:"Pings right after the 5h quota window resets, so a new window starts immediately."}),"schedule"===x.mode&&(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("p",{className:"text-xs text-text-muted",children:"Pings at fixed local times so the 5h windows align with your workday."}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[(0,r.jsx)(l.pd,{label:"Anchor time",type:"time",value:x.anchor,onChange:e=>C({anchor:e.target.value}),error:b?"":"Use HH:MM",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,r.jsx)(l.pd,{label:"Window (hours)",type:"number",min:"0.5",max:"24",step:"0.5",value:x.windowHours,onChange:e=>C({windowHours:e.target.value}),error:f?"":"0.5 – 24",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,r.jsx)(l.pd,{label:"Pings per day",type:"number",min:"1",max:String(y),step:"1",value:x.slotsPerDay,onChange:e=>C({slotsPerDay:e.target.value}),error:v?"":`1 – ${y}`,hint:v?`Max ${y}`:"",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"})]}),k.length>0&&(0,r.jsxs)("div",{className:"rounded-[10px] bg-surface-2 px-3 py-2.5",children:[(0,r.jsxs)("p",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:["Daily slots (",x.timezone,")"]}),(0,r.jsx)("p",{className:"mt-1 text-sm font-medium text-text-main",children:k.join(" → ")}),(0,r.jsxs)("p",{className:"mt-1 text-xs text-text-muted",children:["Covers ",k[0]," – ",N,", then pauses until ",k[0]," next day."]})]})]})]})})}u.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onSave:i().func.isRequired,connection:i().object,reactive:i().bool,schedule:i().object}}},e=>{e.O(0,[763,5353,8105,801,1321,5497,8441,3794,7358],()=>e(e.s=62022)),_N_E=e.O()}]);
|
|
File without changes
|
/package/app/.next-cli-build/static/{Rz3JABLEgmSs9rp5DsM9q → fYFaStfzlBB-WDPpZtzdy}/_ssgManifest.js
RENAMED
|
File without changes
|