@techysy/10router 1.3.1 → 1.3.4
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 +12 -11
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +1 -1
- package/app/.next-cli-build/routes-manifest.json +6 -0
- 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/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/experimental/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/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 +2 -2
- 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/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 +3 -3
- 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 +1 -1
- 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/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/_global-error/page.js +2 -2
- 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/_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 +2 -2
- package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/verify-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
- 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-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- 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 +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/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 +2 -2
- 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 +2 -2
- 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/deepseek-tui-settings/route.js +2 -2
- 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 +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 +2 -2
- 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/grok-build-settings/route.js +2 -2
- 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-settings/route.js +2 -2
- 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 +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 +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/openclaw-settings/route.js +2 -2
- 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/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/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/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 +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/init/route.js +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/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/rotate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/rotate/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 +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/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/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/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/network/egress-region/route.js +1 -1
- package/app/.next-cli-build/server/app/api/network/egress-region/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/codebuddy-cn/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/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/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/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/qoder/checkin/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/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 +2 -2
- 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/desktop-kill/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
- 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/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]/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 +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 +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 +2 -2
- 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 +2 -2
- 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/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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +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 +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/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/proxy-test/route.js +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 +2 -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 +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 +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/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 +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 +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 +2 -2
- 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/dashboard/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/dashboard/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/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/quotas/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/quotas/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/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/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 +1 -1
- 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 +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/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/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 +2 -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/shell-update/route.js +2 -0
- package/app/.next-cli-build/server/app/api/version/shell-update/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/version/shell-update/route_client-reference-manifest.js +1 -0
- 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/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 +2 -2
- package/app/.next-cli-build/server/app/callback.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +2 -2
- package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js +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 +6 -6
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/landing.rsc +7 -7
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +7 -7
- 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 +2 -2
- package/app/.next-cli-build/server/app/login.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
- 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 +12 -11
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/2112.js +1 -1
- package/app/.next-cli-build/server/chunks/2120.js +1 -1
- package/app/.next-cli-build/server/chunks/2132.js +1 -1
- package/app/.next-cli-build/server/chunks/3433.js +2 -2
- package/app/.next-cli-build/server/chunks/3500.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +2 -1
- package/app/.next-cli-build/server/chunks/4282.js +1 -1
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/4803.js +1 -1
- package/app/.next-cli-build/server/chunks/4927.js +3 -3
- package/app/.next-cli-build/server/chunks/5210.js +12 -12
- package/app/.next-cli-build/server/chunks/5330.js +2 -2
- package/app/.next-cli-build/server/chunks/5781.js +1 -1
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6306.js +1 -1
- package/app/.next-cli-build/server/chunks/6326.js +1 -1
- package/app/.next-cli-build/server/chunks/6756.js +1 -1
- package/app/.next-cli-build/server/chunks/682.js +1 -0
- package/app/.next-cli-build/server/chunks/6960.js +2 -2
- package/app/.next-cli-build/server/chunks/7122.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7274.js +3 -3
- package/app/.next-cli-build/server/chunks/7322.js +1 -1
- package/app/.next-cli-build/server/chunks/7774.js +2 -2
- package/app/.next-cli-build/server/chunks/7965.js +1 -1
- package/app/.next-cli-build/server/chunks/8172.js +2 -2
- package/app/.next-cli-build/server/chunks/8370.js +1 -1
- package/app/.next-cli-build/server/chunks/8410.js +1 -1
- package/app/.next-cli-build/server/chunks/8499.js +1 -1
- package/app/.next-cli-build/server/chunks/8520.js +1 -1
- package/app/.next-cli-build/server/chunks/8595.js +1 -1
- package/app/.next-cli-build/server/chunks/8672.js +1 -1
- package/app/.next-cli-build/server/chunks/939.js +1 -1
- package/app/.next-cli-build/server/chunks/9489.js +2 -2
- package/app/.next-cli-build/server/chunks/9628.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +5 -5
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +2 -2
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/TWKzsrjlsswyo8nggSyiE/_buildManifest.js +1 -0
- package/app/.next-cli-build/static/chunks/1321-555b548232df2f80.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-a498f93dd709dccb.js +7 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-7c9d46f8c09d480e.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-39a4fadcce4f3019.js → page-0ee5ba586a2d3dfa.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/_global-error/{page-2b9ff155b9d0f304.js → page-1058a44b968ee535.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/{route-2b9ff155b9d0f304.js → route-1058a44b968ee535.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-2b9ff155b9d0f304.js → route-1058a44b968ee535.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-2b9ff155b9d0f304.js → route-1058a44b968ee535.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/caps/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/security/status/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shell-update/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/landing/page-241f3474d89f3b8c.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-1058a44b968ee535.js +1 -0
- package/app/.next-cli-build/static/css/b28513ee0ebc26ad.css +1 -0
- package/app/package.json +71 -71
- package/app/public/i18n/changelog/en.md +394 -354
- package/app/public/i18n/changelog/zh-CN.md +392 -352
- package/app/public/i18n/changelog/zh-TW.md +394 -354
- package/app/public/i18n/literals/zh-CN.json +41 -6
- package/app/public/i18n/literals/zh-TW.json +42 -6
- package/app/public/providers/apinex.png +0 -0
- package/app/public/providers/atria.png +0 -0
- package/app/public/providers/minimax-free.png +0 -0
- package/app/public/providers/opencode-zen.png +0 -0
- package/app/public/providers/tokenharbor.png +0 -0
- package/package.json +61 -61
- package/app/.next-cli-build/server/chunks/890.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-8478f2be717a38f6.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-7d66b43a3bbcf07d.js +0 -7
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-912bf60e8bad7f94.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/caps/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/security/status/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/landing/page-38924391f8649361.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-2b9ff155b9d0f304.js +0 -1
- package/app/.next-cli-build/static/css/bdf1d87cd5f4db94.css +0 -1
- package/app/.next-cli-build/static/hWZt96TEErc6dGwTZrX7O/_buildManifest.js +0 -1
- /package/app/.next-cli-build/static/{hWZt96TEErc6dGwTZrX7O → TWKzsrjlsswyo8nggSyiE}/_ssgManifest.js +0 -0
package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-7c9d46f8c09d480e.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{13966:(e,t,s)=>{Promise.resolve().then(s.bind(s,64561))},43185:(e,t,s)=>{"use strict";function a(){if("u"<typeof localStorage)return!0;let e=localStorage.getItem("compactUnits");return null===e||"0"!==e}function r(e,t="en",s=!1){let l=e||0;return s||a()?String(t).startsWith("zh")?l>=1e8?`${(l/1e8).toFixed(1)}亿`:l>=1e4?`${(l/1e4).toFixed(1)}万`:l.toLocaleString():l>=1e9?`${(l/1e9).toFixed(1)}B`:l>=1e6?`${(l/1e6).toFixed(1)}M`:l>=1e3?`${(l/1e3).toFixed(1)}K`:l.toLocaleString():l.toLocaleString()}s.d(t,{k:()=>a,y:()=>r})},64561:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>y});var a=s(95155),r=s(12115),l=s(35497),i=s(81127),n=s(32486),o=s(21931),d=s(1620),c=s(31474),m=s(90620),x=s(93308),p=s(38202),u=s(45496),h=s(43185),g=s(65635),b=s(73006);function f(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${x.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,x.QC)(t)}function y(){let{theme:e,setTheme:t,isDark:s}=(0,d.D)(),[x,y]=(0,r.useState)(()=>f()),[j,w]=(0,r.useState)(!0),[N,v]=(0,r.useState)(!0),[S,C]=(0,r.useState)(!1),[k,L]=(0,r.useState)(!1),[T,A]=(0,r.useState)(!1),[I,P]=(0,r.useState)(!1),[O,M]=(0,r.useState)({open:!1,value:"",confirm:"",error:"",loading:!1}),[E,R]=(0,r.useState)({loading:!1,message:"",type:""}),[$,D]=(0,r.useState)(null),[U,F]=(0,r.useState)({loading:!1,message:"",type:""}),[q,J]=(0,r.useState)(!1),[_,z]=(0,r.useState)({fallbackStrategy:"fill-first"}),[H,B]=(0,r.useState)(!0),[X,K]=(0,r.useState)({current:"",new:"",confirm:""}),[W,V]=(0,r.useState)({type:"",message:""}),[Z,Q]=(0,r.useState)(!1),[Y,G]=(0,r.useState)(!1),[ee,et]=(0,r.useState)({type:"",message:""}),[es,ea]=(0,r.useState)({open:!1,mode:"",password:""}),er=(0,r.useRef)(null),[el,ei]=(0,r.useState)({authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC"}),[en,eo]=(0,r.useState)(""),[ed,ec]=(0,r.useState)({type:"",message:""}),[em,ex]=(0,r.useState)(!1),[ep,eu]=(0,r.useState)(!1),[eh,eg]=(0,r.useState)({type:"",message:""}),[eb,ef]=(0,r.useState)(!1),ey=window.location.origin,ej=ey?`${ey}/api/auth/oidc/callback`:"/api/auth/oidc/callback",ew=ey?`${ey}/api/auth/saml/acs`:"/api/auth/saml/acs",eN=ey?`${ey}/api/auth/saml/metadata`:"/api/auth/saml/metadata",[ev,eS]=(0,r.useState)("saml"),[eC,ek]=(0,r.useState)({samlEntryPoint:"",samlIssuer:"urn:10router:sp",samlCert:"",samlLoginLabel:"Sign in with SAML SSO",samlAttributeEmail:"email",samlAttributeName:"name"}),[eL,eT]=(0,r.useState)({type:"",message:""}),[eA,eI]=(0,r.useState)(!1),[eP,eO]=(0,r.useState)(!1),[eM,eE]=(0,r.useState)({type:"",message:""}),[eR,e$]=(0,r.useState)(!1),eD=(0,r.useRef)(null),eU=(0,r.useRef)(null),eF=(0,r.useRef)(null),eq=(0,r.useRef)(null),eJ=(0,r.useRef)(null),[e_,ez]=(0,r.useState)({type:"",message:""}),[eH,eB]=(0,r.useState)(!1),[eX,eK]=(0,r.useState)({outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:""}),[eW,eV]=(0,r.useState)({type:"",message:""}),[eZ,eQ]=(0,r.useState)(!1),[eY,eG]=(0,r.useState)(!1),[e0,e1]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e1(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]),(0,r.useEffect)(()=>{y(f()),w((0,u.i)()),v((0,h.k)())},[S]);let e5=async()=>{let e=!1===_.showCommunityProviders;try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({showCommunityProviders:e})}),s=await t.json();t.ok&&z(e=>({...e,...s}))}catch(e){console.log("Error toggling show-community-providers:",e)}};(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{z(e),ei({authMode:e?.authMode||"password",oidcIssuerUrl:e?.oidcIssuerUrl||"",oidcClientId:e?.oidcClientId||"",oidcScopes:e?.oidcScopes||"openid profile email",oidcLoginLabel:e?.oidcLoginLabel||"Sign in with OIDC"}),eo(""),eS(e?.ssoType||"saml"),ek({samlEntryPoint:e?.samlEntryPoint||"",samlIssuer:e?.samlIssuer||"urn:10router:sp",samlCert:e?.samlCert||"",samlLoginLabel:e?.samlLoginLabel||"Sign in with SAML SSO",samlAttributeEmail:e?.samlAttributeEmail||"email",samlAttributeName:e?.samlAttributeName||"name"}),(e?.authMode==="sso"||e?.authMode==="saml"||e?.authMode==="oidc"||e?.authMode==="both")&&ef(!0),eK({outboundProxyEnabled:e?.outboundProxyEnabled===!0,outboundProxyUrl:e?.outboundProxyUrl||"",outboundNoProxy:e?.outboundNoProxy||""}),B(!1)}).catch(e=>{console.error("Failed to fetch settings:",e),B(!1)})},[]);let e2=async e=>{if(e.preventDefault(),!0===_.outboundProxyEnabled){eQ(!0),eV({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyUrl:eX.outboundProxyUrl,outboundNoProxy:eX.outboundNoProxy})}),t=await e.json();e.ok?(z(e=>({...e,...t})),eV({type:"success",message:"Proxy settings applied"})):eV({type:"error",message:t.error||"Failed to update proxy settings"})}catch(e){eV({type:"error",message:"An error occurred"})}finally{eQ(!1)}}},e3=async()=>{if(!0!==_.outboundProxyEnabled)return;let e=(eX.outboundProxyUrl||"").trim();if(!e)return void eV({type:"error",message:"Please enter a Proxy URL to test"});eG(!0),eV({type:"",message:""});try{let t=await fetch("/api/settings/proxy-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyUrl:e})}),s=await t.json();t.ok&&s?.ok?eV({type:"success",message:`Proxy test OK (${s.status}) in ${s.elapsedMs}ms`}):eV({type:"error",message:s?.error||"Proxy test failed"})}catch(e){eV({type:"error",message:"An error occurred"})}finally{eG(!1)}},e4=async e=>{eQ(!0),eV({type:"",message:""});try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyEnabled:e})}),s=await t.json();t.ok?(z(e=>({...e,...s})),eK(e=>({...e,outboundProxyEnabled:s?.outboundProxyEnabled===!0})),eV({type:"success",message:e?"Proxy enabled":"Proxy disabled"})):eV({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){eV({type:"error",message:"An error occurred"})}finally{eQ(!1)}},e6=async e=>{if(e.preventDefault(),!X.new.trim())return void V({type:"error",message:(0,b.Tl)("Password cannot be empty")});if(X.new!==X.confirm)return void V({type:"error",message:"Passwords do not match"});Q(!0),V({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:X.current,newPassword:X.new})}),t=await e.json();e.ok?(V({type:"success",message:"Password updated successfully"}),K({current:"",new:"",confirm:""})):V({type:"error",message:t.error||"Failed to update password"})}catch(e){V({type:"error",message:"An error occurred"})}finally{Q(!1)}},e9=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fallbackStrategy:e})})).ok&&z(t=>({...t,fallbackStrategy:e}))}catch(e){console.error("Failed to update settings:",e)}},e8=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategy:e})})).ok&&z(t=>({...t,comboStrategy:e}))}catch(e){console.error("Failed to update combo strategy:",e)}},e7=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stickyRoundRobinLimit:t})})).ok&&z(e=>({...e,stickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update sticky limit:",e)}},te=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStickyRoundRobinLimit:t})})).ok&&z(e=>({...e,comboStickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update combo sticky limit:",e)}},tt=async e=>{try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireLogin:e})});if(!t.ok){let e=await t.json().catch(()=>({}));e?.code==="PASSWORD_REQUIRED"&&M({open:!0,value:"",confirm:"",error:"",loading:!1});return}t.ok&&(z(t=>({...t,requireLogin:e,...e?{hideLoginOffBanner:!1}:{}})),window.dispatchEvent(new Event(n.f)))}catch(e){console.error("Failed to update require login:",e)}},ts=async()=>{let{value:e,confirm:t}=O;if(!e.trim())return void M(e=>({...e,error:(0,b.Tl)("Password cannot be empty")}));if(e!==t)return void M(e=>({...e,error:(0,b.Tl)("Passwords do not match")}));M(e=>({...e,loading:!0,error:""}));try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({newPassword:e,requireLogin:!0})}),s=await t.json().catch(()=>({}));if(!t.ok)return void M(e=>({...e,loading:!1,error:s?.error||(0,b.Tl)("Failed to update password")}));z(e=>({...e,requireLogin:!0,hasPassword:!0,hideLoginOffBanner:!1})),M({open:!1,value:"",confirm:"",error:"",loading:!1}),window.dispatchEvent(new Event(n.f))}catch{M(e=>({...e,loading:!1,error:(0,b.Tl)("An error occurred")}))}},ta=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({autoUpdateCheck:e})})).ok&&(z(t=>({...t,autoUpdateCheck:e})),R({loading:!1,message:"",type:""}))}catch(e){console.error("Failed to update automatic update check:",e)}},tr=async()=>{R({loading:!0,message:"",type:""}),D(null),F({loading:!1,message:"",type:""});try{let e=await fetch("/api/version?check=1",{cache:"no-store"}),t=e.ok?await e.json():null;t?.latestVersion?t.hasUpdate?(R({loading:!1,type:"info",message:(0,b.Tl)("New version available: v${latest} (installed v${current})").replace("${latest}",t.latestVersion).replace("${current}",t.currentVersion)}),D({latestVersion:t.latestVersion,installChannel:t.installChannel||""})):R({loading:!1,type:"ok",message:(0,b.Tl)("You are on the latest version (v${current}).").replace("${current}",t.currentVersion)}):R({loading:!1,type:"error",message:(0,b.Tl)("Could not reach the update server. Try again later.")})}catch{R({loading:!1,type:"error",message:(0,b.Tl)("Could not reach the update server. Try again later.")})}},tl=async()=>{F({loading:!0,message:"",type:""});let e=(0,b.Tl)("Could not notify the desktop shell. Use the Releases page instead.");try{let t=await fetch("/api/version/shell-update",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({version:$?.latestVersion||""})});F(t.ok?{loading:!1,type:"ok",message:(0,b.Tl)("Desktop shell notified — confirm the download in its update window (system tray).")}:{loading:!1,type:"error",message:e})}catch{F({loading:!1,type:"error",message:e})}},ti=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({hideLoginOffBanner:e})})).ok&&(z(t=>({...t,hideLoginOffBanner:e})),window.dispatchEvent(new Event(n.f)))}catch(e){console.error("Failed to update login-off banner:",e)}},tn=(e,t)=>{ei(s=>({...s,[e]:t}))},to=async(e=el.authMode||"password")=>{let t=el.oidcIssuerUrl.trim(),s=el.oidcClientId.trim(),a=el.oidcScopes.trim(),r=el.oidcLoginLabel.trim(),l=en.trim();if("password"!==e&&(!t||!s||!l)&&!_.oidcConfigured)return void ec({type:"error",message:"Issuer URL, client ID, and client secret are required to enable OIDC."});ex(!0),ec({type:"",message:""}),eg({type:"",message:""});try{let i={authMode:e,ssoType:"oidc",oidcIssuerUrl:t,oidcClientId:s,oidcScopes:a||"openid profile email",oidcLoginLabel:r||"Sign in with OIDC"};l&&(i.oidcClientSecret=l);let n=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),o=await n.json();n.ok?(z(e=>({...e,...o})),ei({authMode:o?.authMode||e,oidcIssuerUrl:o?.oidcIssuerUrl||t,oidcClientId:o?.oidcClientId||s,oidcScopes:o?.oidcScopes||a||"openid profile email",oidcLoginLabel:o?.oidcLoginLabel||r||"Sign in with OIDC"}),eo(""),ec({type:"success",message:"oidc"===e?"OIDC login enabled":"both"===e?"Password and OIDC login enabled":"OIDC settings saved"})):ec({type:"error",message:o.error||"Failed to save OIDC settings"})}catch(e){ec({type:"error",message:"An error occurred"})}finally{ex(!1)}},td=async()=>{let e=el.oidcIssuerUrl.trim(),t=el.oidcClientId.trim(),s=el.oidcScopes.trim(),a=en.trim();if(!e||!t)return void eg({type:"error",message:"Issuer URL and client ID are required to test the connection."});eu(!0),ec({type:"",message:""}),eg({type:"",message:""});try{let r=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({authMode:el.authMode||_.authMode||"password",oidcIssuerUrl:e,oidcClientId:t,oidcScopes:s||"openid profile email",oidcLoginLabel:el.oidcLoginLabel.trim()||"Sign in with OIDC",...a?{oidcClientSecret:a}:{}})}),l=await r.json().catch(()=>({}));if(!r.ok)return void eg({type:"error",message:l.error||"Failed to save OIDC settings before testing"});let i=await fetch("/api/auth/oidc/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({issuerUrl:l.oidcIssuerUrl||e,clientId:l.oidcClientId||t,scopes:l.oidcScopes||s||"openid profile email"})}),n=await i.json().catch(()=>({}));if(i.ok&&n?.ok){let e=n.clientSecretTested?!0===n.clientSecretValid?`Connection OK. Discovery loaded from ${n.issuerUrl}. Client secret validated too.`:`Connection OK. Discovery loaded from ${n.issuerUrl}. Client secret was not checked.`:`Connection OK. Discovery loaded from ${n.issuerUrl}.`;eg({type:"success",message:e})}else eg({type:"error",message:n.error||"OIDC connection test failed"})}catch(e){eg({type:"error",message:"An error occurred"})}finally{eu(!1)}},tc=(e,t)=>{ek(s=>({...s,[e]:t}))},tm=async(e=el.authMode||"password")=>{eI(!0),eT({type:"",message:""}),eE({type:"",message:""});try{let t={authMode:e,ssoType:"saml",samlEntryPoint:eC.samlEntryPoint.trim(),samlIssuer:eC.samlIssuer.trim()||"urn:10router:sp",samlCert:eC.samlCert.trim(),samlLoginLabel:eC.samlLoginLabel.trim()||"Sign in with SAML SSO",samlAttributeEmail:eC.samlAttributeEmail.trim()||"email",samlAttributeName:eC.samlAttributeName.trim()||"name"},s=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await s.json();s.ok?(z(e=>({...e,...a})),ek({samlEntryPoint:a?.samlEntryPoint||t.samlEntryPoint,samlIssuer:a?.samlIssuer||t.samlIssuer,samlCert:a?.samlCert||t.samlCert,samlLoginLabel:a?.samlLoginLabel||t.samlLoginLabel,samlAttributeEmail:a?.samlAttributeEmail||t.samlAttributeEmail,samlAttributeName:a?.samlAttributeName||t.samlAttributeName}),eT({type:"success",message:"sso"===e||"saml"===e?"SAML SSO login enabled":"both"===e?"Password and SAML SSO login enabled":"SAML 2.0 settings saved"})):eT({type:"error",message:a.error||"Failed to save SAML settings"})}catch{eT({type:"error",message:"An error occurred while saving SAML settings"})}finally{eI(!1)}},tx=async()=>{eO(!0),eT({type:"",message:""}),eE({type:"",message:""});try{let e=await fetch("/api/auth/saml/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({samlEntryPoint:eC.samlEntryPoint.trim(),samlIssuer:eC.samlIssuer.trim(),samlCert:eC.samlCert.trim()})}),t=await e.json();e.ok&&t.ok?eE({type:"success",message:t.message||"SAML configuration verified!"}):eE({type:"error",message:t.error||"SAML configuration test failed"})}catch{eE({type:"error",message:"An error occurred while testing SAML configuration"})}finally{eO(!1)}},tp=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enableObservability:e})})).ok&&z(t=>({...t,enableObservability:e}))}catch(e){console.error("Failed to update enableObservability:",e)}},tu=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)return;let t=await e.json();z(t)}catch(e){console.error("Failed to reload settings:",e)}},th=async e=>{G(!0),et({type:"",message:""});try{let t=await fetch("/api/settings/database",{headers:{"x-10r-password":e}});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||"Failed to export database")}let s=await t.json(),a=JSON.stringify(s,null,2),r=new Blob([a],{type:"application/json"}),l=URL.createObjectURL(r),i=document.createElement("a"),n=new Date().toISOString().replace(/[.:]/g,"-");i.href=l,i.download=`10router-backup-${n}.json`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(l);let o=Array.isArray(s?.credentialErrors)?s.credentialErrors:[];o.length>0?et({type:"error",message:(0,b.Tl)("Backup downloaded, but {count} connection(s) could not be decrypted — their credentials are stored as ciphertext and can only be restored with the original key.").replace("{count}",String(o.length))}):et({type:"success",message:"Database backup downloaded"})}catch(e){et({type:"error",message:e.message||"Failed to export database"})}finally{G(!1)}},tg=e=>/\\.(sqlite|sqlite3|db)$/i.test(e.name)||"application/x-sqlite3"===e.type||"application/vnd.sqlite3"===e.type||"application/octet-stream"===e.type,tb=e=>/\\.(json)$/i.test(e.name)||"application/json"===e.type,tf=async(e,t=null)=>{eB(!0),ez({type:"",message:""});try{let s,a=tb(e)&&!tg(e),r={};if(t&&(r["x-10r-password"]=t),a){let t;try{let s=await e.text();t=JSON.parse(s)}catch{eB(!1),ez({type:"error",message:(0,b.Tl)("Invalid JSON usage file")});return}s=JSON.stringify(Array.isArray(t)?{usageHistory:t}:t),r["Content-Type"]="application/json"}else{let t=new FormData;t.append("file",e),s=t}let l=await fetch("/api/settings/database/import-usage",{method:"POST",body:s,headers:r}),i=await l.json();if(!l.ok){if(401===l.status&&!t){eJ.current=e,ea({open:!0,mode:"usage-import",password:""});return}throw Error(i.error||"Failed to import usage")}ez({type:"success",message:`${(0,b.Tl)("Imported")} ${i.imported} ${(0,b.Tl)("usage records")} (${(0,b.Tl)("skipped")} ${i.skipped}, ${(0,b.Tl)("total")} ${i.total})`})}catch(e){ez({type:"error",message:e.message||"Failed to import usage"})}finally{eB(!1)}},ty=async e=>{let t=er.current;if(t){G(!0);try{let s=await t.text(),a=JSON.parse(s),r=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,password:e})}),l=await r.json().catch(()=>({}));if(!r.ok)throw Error(l.error||"Failed to import database");await tu(),et({type:"success",message:"Database imported successfully"})}catch(e){et({type:"error",message:e.message||"Invalid backup file"})}finally{er.current=null,G(!1)}}},tj=async()=>{let{mode:e,password:t}=es;if(ea({open:!1,mode:"",password:""}),"export"===e)await th(t);else if("import"===e)await ty(t);else if("usage-import"===e){let e=eJ.current;eJ.current=null,e&&await tf(e,t)}},tw=!0===_.enableObservability,tN=async()=>{J(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}J(!1),L(!1)},tv=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&window.location.assign("/login")}catch(e){console.error("Failed to logout:",e)}};return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto px-4 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"size-10 sm:size-12 rounded-lg bg-green-500/10 text-green-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl sm:text-2xl",children:"computer"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold",children:"Local Mode"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Running on your machine"})]})]}),(0,a.jsx)("div",{className:"inline-flex p-1 rounded-lg bg-black/5 dark:bg-white/5 w-full sm:w-auto",children:["light","dark","system"].map(s=>(0,a.jsxs)("button",{type:"button",onClick:()=>t(s),className:(0,c.cn)("flex items-center justify-center gap-1 sm:gap-1.5 px-2 sm:px-3 py-1.5 rounded-md font-medium transition-all flex-1 sm:flex-initial",e===s?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"light"===s?"light_mode":"dark"===s?"dark_mode":"contrast"}),(0,a.jsx)("span",{className:"capitalize text-xs sm:text-sm",children:s})]},s))})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 rounded-lg bg-bg border border-border gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Database Location"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted font-mono break-all",children:"~/.10router/db/data.sqlite"})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(l.$n,{variant:"secondary",icon:"download",onClick:()=>ea({open:!0,mode:"export",password:""}),loading:Y,className:"w-full sm:w-auto",children:"Download Backup"}),(0,a.jsx)(l.$n,{variant:"outline",icon:"upload",onClick:()=>eF.current?.click(),disabled:Y,className:"w-full sm:w-auto",children:"Import Backup"}),(0,a.jsx)(l.$n,{variant:"outline",icon:"history",onClick:()=>eq.current?.click(),loading:eH,className:"w-full sm:w-auto",children:(0,b.Tl)("Import Usage")}),(0,a.jsx)("input",{ref:eF,type:"file",accept:"application/json,.json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];eF.current&&(eF.current.value=""),t&&(er.current=t,et({type:"",message:""}),ea({open:!0,mode:"import",password:""}))}}),(0,a.jsx)("input",{ref:eq,type:"file",accept:".sqlite,.db,.sqlite3,.json,application/json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eq.current&&(eq.current.value=""),t){if(!tg(t)&&!tb(t))return void ez({type:"error",message:(0,b.Tl)("Only SQLite (.sqlite/.db) or JSON (.json) usage files can be imported")});tf(t)}}})]}),(0,a.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-400",children:(0,b.Tl)("The backup file contains provider credentials in readable form — store it like a password.")}),ee.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===ee.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:ee.message}),e_.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===e_.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:e_.message})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg bg-blue-500/10 text-blue-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Language")})]}),(0,a.jsxs)("button",{onClick:()=>C(!0),className:"flex items-center justify-between w-full p-3 rounded-lg bg-bg border border-border hover:border-primary/50 transition-colors","data-i18n-skip":"true",children:[(0,a.jsx)("span",{className:"text-sm text-text-muted",children:(0,b.Tl)("Display language")}),(0,a.jsx)("span",{className:"text-2xl",children:p.h[x]||"\uD83C\uDF10"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 mt-3 p-3 rounded-lg bg-bg border border-border",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:(0,b.Tl)("Regional currency")}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Show costs in local currency (\xa5/NT$/₩/₫); off → $"})]}),(0,a.jsx)(l.lM,{checked:j,onChange:()=>{let e=!(0,u.i)();"u">typeof localStorage&&localStorage.setItem("useRegionalCurrency",e?"1":"0"),w(e)}})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 mt-3 p-3 rounded-lg bg-bg border border-border",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:(0,b.Tl)("Unit abbreviation")}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Large numbers as 亿/万 (zh) or M/B (en); off → full numbers"})]}),(0,a.jsx)(l.lM,{checked:N,onChange:()=>{let e=!(0,h.k)();"u">typeof localStorage&&localStorage.setItem("compactUnits",e?"1":"0"),v(e)}})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"shield"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Security")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:(0,b.Tl)("Require login")}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("When ON, dashboard requires password. When OFF, access without login.")})]}),(0,a.jsx)(l.lM,{checked:!1!==_.requireLogin,onChange:()=>{!1===_.requireLogin?tt(!0):A(!0)},disabled:H})]}),!1===_.requireLogin&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pl-3 border-l-2 border-red-500/40",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:(0,b.Tl)("Show the log-in-off warning banner")}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("The red banner at the top of every page while the log-in check is off. Turning log-in back on shows it again next time.")})]}),(0,a.jsx)(l.lM,{checked:!0!==_.hideLoginOffBanner,onChange:()=>{!0===_.hideLoginOffBanner?ti(!1):P(!0)},disabled:H})]}),!1!==_.requireLogin&&(0,a.jsxs)("form",{onSubmit:e6,className:"flex flex-col gap-4 pt-4 border-t border-border/50",children:[_.hasPassword&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Current Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Enter current password",value:X.current,onChange:e=>K({...X,current:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"New Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Enter new password",value:X.new,onChange:e=>K({...X,new:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Confirm New Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Confirm new password",value:X.confirm,onChange:e=>K({...X,confirm:e.target.value}),required:!0})]})]}),W.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===W.type?"text-red-500":"text-green-500"}`,children:W.message}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(l.$n,{type:"submit",variant:"primary",loading:Z,className:"w-full sm:w-auto",children:_.hasPassword?"Update Password":"Set Password"})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:(0,b.Tl)("Check for updates automatically")}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("When OFF, 10Router no longer contacts the update server on its own or shows new-version notices — including security fixes. You can still check by hand.")})]}),(0,a.jsx)(l.lM,{checked:!1!==_.autoUpdateCheck,onChange:()=>ta(!1===_.autoUpdateCheck),disabled:H})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsx)(l.$n,{type:"button",variant:"secondary",size:"sm",onClick:tr,loading:E.loading,children:(0,b.Tl)("Check now")}),$&&"desktop"===$.installChannel&&(0,a.jsx)(l.$n,{type:"button",variant:"secondary",size:"sm",onClick:tl,loading:U.loading,children:(0,b.Tl)("Update via desktop shell")}),E.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===E.type?"text-red-500":"info"===E.type?"text-primary":"text-green-500"}`,children:E.message}),U.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===U.type?"text-red-500":"text-green-500"}`,children:U.message})]})]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>ef(e=>!e),className:"w-full flex items-center gap-3 text-left",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-indigo-500/10 text-indigo-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Single Sign-On (SSO)")}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"sso"===_.authMode||"oidc"===_.authMode||"saml"===_.authMode?`${"saml"===_.ssoType?"SAML 2.0":"OIDC"} SSO active`:"both"===_.authMode?`Password + ${"saml"===_.ssoType?"SAML 2.0":"OIDC"} active`:"Optional SSO via Okta, Entra ID, Keycloak, or OIDC"})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted shrink-0",children:eb?"expand_less":"expand_more"})]}),eb&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 mt-4",children:[(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("Configure enterprise Single Sign-On (SSO) for dashboard access using SAML 2.0 or OIDC.")}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SSO Protocol"}),(0,a.jsxs)("div",{className:"flex p-1 rounded-lg bg-black/5 dark:bg-white/5 border border-border",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eS("saml"),className:(0,c.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","saml"===ev?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"SAML 2.0"}),(0,a.jsx)("button",{type:"button",onClick:()=>eS("oidc"),className:(0,c.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","oidc"===ev?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"OIDC"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Auth Mode"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{value:"password",title:"Password only",desc:"Keep legacy password login."},{value:"sso",title:`${"saml"===ev?"SAML":"OIDC"} only`,desc:"Require SSO for dashboard access."},{value:"both",title:"Both",desc:"Allow password or SSO login."}].map(e=>{let t=el.authMode,s="password"===e.value?"password"===t:"sso"===e.value?"sso"===t||"saml"===t||"oidc"===t:"both"===t;return(0,a.jsxs)("button",{type:"button",onClick:()=>tn("authMode",e.value),className:(0,c.cn)("text-left rounded-lg border p-3 transition-colors",s?"border-primary bg-primary/5":"border-border bg-bg hover:bg-black/5 dark:hover:bg-white/5"),disabled:H||em||eA,children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:e.title}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted mt-1",children:e.desc})]},e.value)})})]}),"saml"===ev?(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg/80 overflow-hidden",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>e$(e=>!e),className:"w-full p-3 flex items-center justify-between gap-2 text-left hover:bg-surface/50 transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-lg",children:"menu_book"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-semibold text-xs sm:text-sm text-text-main",children:"IdP Setup Guidelines & Provider Configuration Instructions"}),(0,a.jsx)("p",{className:"text-[11px] text-text-muted",children:"Click to view setup steps for AWS IAM Identity Center, Okta, Entra ID, Keycloak, & Authentik"})]})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted transition-transform text-lg",style:{transform:eR?"rotate(180deg)":"none"},children:"expand_more"})]}),eR&&(0,a.jsxs)("div",{className:"p-4 border-t border-border bg-surface/30 text-xs text-text-main flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"p-2.5 rounded border border-primary/20 bg-primary/5 text-primary text-xs",children:[(0,a.jsx)("p",{className:"font-semibold mb-1",children:"\uD83D\uDD11 Required Service Provider (SP) Values for your IdP Setup:"}),(0,a.jsxs)("ul",{className:"list-disc pl-4 space-y-1 font-mono text-[11px]",children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Assertion Consumer Service (ACS) URL:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:ew})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"SP Entity ID / Audience URI:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:eC.samlIssuer||"urn:10router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"NameID Format:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"EmailAddress"})," or ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"Unspecified"})]})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 pt-1",children:[(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"☁️"})," AWS IAM Identity Center"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Add application"})," → Select ",(0,a.jsx)("b",{children:"Add custom SAML 2.0 application"}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application ACS URL"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ew}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application SAML audience"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:eC.samlIssuer||"urn:10router:sp"}),"."]}),(0,a.jsxs)("li",{children:["Under ",(0,a.jsx)("i",{children:"Attribute mappings"}),", map ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"Subject"})," or ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"email"})," to ",(0,a.jsxs)("code",{className:"text-text-main font-mono",children:["$","{user:email}"]}),"."]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"IAM Identity Center SAML metadata XML"})," file and use 1-Click Import below!"]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDD37"})," Microsoft Entra ID (Azure AD)"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Enterprise Applications → ",(0,a.jsx)("b",{children:"New application"})," → ",(0,a.jsx)("b",{children:"Create your own application"}),"."]}),(0,a.jsxs)("li",{children:["Select ",(0,a.jsx)("b",{children:"Single sign-on"})," → ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Identifier (Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:eC.samlIssuer||"urn:10router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Reply URL (ACS):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ew})]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"Federation Metadata XML"})," and import or copy X.509 Certificate."]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDFE2"})," Okta / Auth0"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Create App Integration"})," → Select ",(0,a.jsx)("b",{children:"SAML 2.0"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Single Sign-On URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ew})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Audience URI (SP Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:eC.samlIssuer||"urn:10router:sp"})]}),(0,a.jsxs)("li",{children:["Name ID format: ",(0,a.jsx)("i",{children:"EmailAddress"}),"."]}),(0,a.jsx)("li",{children:"Download Identity Provider metadata XML or copy the X.509 cert."})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDEE1️"})," Keycloak / Authentik"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Clients → ",(0,a.jsx)("b",{children:"Create client"})," → Select ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Client ID:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:eC.samlIssuer||"urn:10router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Master SAML Processing URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ew})]}),(0,a.jsx)("li",{children:"Export SAML Descriptor XML or copy IDP Certificate PEM."})]})]})]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg border border-dashed border-primary/40 bg-primary/5 flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm text-text-main",children:"1-Click IdP Metadata XML Import"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Auto-fill SSO URL, Issuer & Cert from XML metadata"})]}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"upload_file",onClick:()=>eD.current?.click(),children:"Upload Metadata XML"}),(0,a.jsx)("input",{ref:eD,type:"file",accept:".xml,application/xml,text/xml",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eD.current&&(eD.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{try{let t=e.target?.result||"",s=new DOMParser().parseFromString(t,"text/xml");if(s.querySelector("parsererror"))return void eT({type:"error",message:"Unable to parse valid SAML IdP metadata from XML file"});let a=s.documentElement.getAttribute("entityID")||"",r=Array.from(s.querySelectorAll("SingleSignOnService, *|SingleSignOnService")),l="";for(let e of r){let t=e.getAttribute("Binding")||"",s=e.getAttribute("Location")||"";if(s&&(l=s,t.includes("HTTP-Redirect")))break}let i=Array.from(s.querySelectorAll("X509Certificate, *|X509Certificate")),n="";i.length>0&&(n=i[0].textContent.trim()),ek(e=>({...e,samlEntryPoint:l||e.samlEntryPoint,samlIssuer:e.samlIssuer||"urn:10router:sp",samlCert:n||e.samlCert})),eT({type:"success",message:`IdP Metadata imported! (SSO URL: ${l?"found":"not found"}, EntityID: ${a?"found":"not found"}, Cert: ${n?"found":"not found"})`})}catch(e){eT({type:"error",message:"Error reading IdP Metadata XML file"})}},s.readAsText(t)}})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Single Sign-On Service URL (samlEntryPoint)"}),(0,a.jsx)(l.pd,{placeholder:"https://idp.example.com/app/saml/sso/...",value:eC.samlEntryPoint,onChange:e=>tc("samlEntryPoint",e.target.value),disabled:H||eA})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SP Entity ID / Audience (samlIssuer)"}),(0,a.jsx)(l.pd,{placeholder:"urn:10router:sp",value:eC.samlIssuer,onChange:e=>tc("samlIssuer",e.target.value),disabled:H||eA})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"IdP X.509 Certificate (samlCert)"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"file_upload",onClick:()=>eU.current?.click(),children:"Upload Certificate"}),(0,a.jsx)("input",{ref:eU,type:"file",accept:".crt,.pem,.cer,text/plain",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eU.current&&(eU.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{let t=e.target?.result||"";ek(e=>({...e,samlCert:t.trim()})),eT({type:"success",message:"Certificate file loaded into configuration."})},s.readAsText(t)}})]}),(0,a.jsx)("textarea",{rows:4,placeholder:"-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----",value:eC.samlCert,onChange:e=>tc("samlCert",e.target.value),className:"w-full p-2.5 rounded-lg border border-border bg-bg text-xs font-mono text-text-main focus:outline-none focus:border-primary",disabled:H||eA}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Paste raw Base64 certificate or PEM block."})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(l.pd,{placeholder:"Sign in with SAML SSO",value:eC.samlLoginLabel,onChange:e=>tc("samlLoginLabel",e.target.value),disabled:H||eA})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Email Claim Attribute"}),(0,a.jsx)(l.pd,{placeholder:"email",value:eC.samlAttributeEmail,onChange:e=>tc("samlAttributeEmail",e.target.value),disabled:H||eA})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Display Name Claim"}),(0,a.jsx)(l.pd,{placeholder:"name",value:eC.samlAttributeName,onChange:e=>tc("samlAttributeName",e.target.value),disabled:H||eA})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 p-3 rounded-lg border border-border bg-bg text-xs sm:text-sm text-text-muted",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"ACS Callback URL"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:ew})]}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"content_copy",onClick:async()=>{await (0,g.e)(ew),eT({type:"success",message:"ACS URL copied to clipboard!"})},children:"Copy"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"SP XML Metadata"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:eN})]}),(0,a.jsxs)("a",{href:eN,target:"_blank",rel:"noopener noreferrer",download:"10router-sp-metadata.xml",className:"inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"download"}),"Download XML"]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(l.$n,{type:"button",variant:"primary",loading:eA,onClick:()=>tm(el.authMode),className:"w-full sm:w-auto",children:"Save SAML settings"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",loading:eP,onClick:tx,className:"w-full sm:w-auto",children:"Test SAML settings"})]}),eM.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===eM.type?"text-red-500":"text-green-500"}`,children:eM.message}),eL.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===eL.type?"text-red-500":"text-green-500"}`,children:eL.message})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Issuer URL"}),(0,a.jsx)(l.pd,{placeholder:"https://auth.example.com/application/o/10router/",value:el.oidcIssuerUrl,onChange:e=>tn("oidcIssuerUrl",e.target.value),disabled:H||em})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client ID"}),(0,a.jsx)(l.pd,{placeholder:"10router-dashboard",value:el.oidcClientId,onChange:e=>tn("oidcClientId",e.target.value),disabled:H||em})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client Secret"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Leave blank to keep existing secret",value:en,onChange:e=>eo(e.target.value),disabled:H||em}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"This value is write-only after saving."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Scopes"}),(0,a.jsx)(l.pd,{placeholder:"openid profile email",value:el.oidcScopes,onChange:e=>tn("oidcScopes",e.target.value),disabled:H||em})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(l.pd,{placeholder:"Sign in with OIDC",value:el.oidcLoginLabel,onChange:e=>tn("oidcLoginLabel",e.target.value),disabled:H||em})]})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg p-3 text-xs sm:text-sm text-text-muted",children:[(0,a.jsx)("p",{className:"font-medium text-text-main mb-1",children:"Redirect URI"}),(0,a.jsx)("code",{className:"block break-all font-mono",children:ej})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(l.$n,{type:"button",variant:"primary",loading:em,onClick:()=>to(),className:"w-full sm:w-auto",children:"Save OIDC settings"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",loading:ep,onClick:td,className:"w-full sm:w-auto",children:"Test connection"})]}),eh.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===eh.type?"text-red-500":"text-green-500"}`,children:eh.message}),ed.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===ed.type?"text-red-500":"text-green-500"}`,children:ed.message})]}),"oidc"===_.authMode||"saml"===_.authMode||"sso"===_.authMode?(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["SSO login (","saml"===_.ssoType?"SAML 2.0":"OIDC",") is currently active. Password login is disabled until you switch back."]}):null,"both"===_.authMode&&(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["Password and SSO login (","saml"===_.ssoType?"SAML 2.0":"OIDC",") are both active."]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-blue-500/10 text-blue-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"route"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Routing Strategy"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through accounts to distribute load"})]}),(0,a.jsx)(l.lM,{checked:"round-robin"===_.fallbackStrategy,onChange:()=>e9("round-robin"===_.fallbackStrategy?"fill-first":"round-robin"),disabled:H})]}),"round-robin"===_.fallbackStrategy&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Sticky Limit"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Calls per account before switching"})]}),(0,a.jsx)(l.pd,{type:"number",min:"1",max:"10",value:_.stickyRoundRobinLimit||3,onChange:e=>e7(e.target.value),disabled:H,className:"w-16 sm:w-20 text-center shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Combo Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through providers in combos instead of always starting with first"})]}),(0,a.jsx)(l.lM,{checked:"round-robin"===_.comboStrategy,onChange:()=>e8("round-robin"===_.comboStrategy?"fallback":"round-robin"),disabled:H})]}),"round-robin"===_.comboStrategy&&(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Combo Sticky Limit"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Calls per combo model before switching"})]}),(0,a.jsx)(l.pd,{type:"number",min:"1",max:"100",value:_.comboStickyRoundRobinLimit||1,onChange:e=>te(e.target.value),disabled:H,className:"w-20 text-center"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted italic pt-2 border-t border-border/50",children:["round-robin"===_.fallbackStrategy?`Currently distributing requests across all available accounts with ${_.stickyRoundRobinLimit||3} calls per account.`:"Currently using accounts in priority order (Fill First).","round-robin"===_.comboStrategy?` Combos rotate after ${_.comboStickyRoundRobinLimit||1} call${1===(_.comboStickyRoundRobinLimit||1)?"":"s"} per model.`:" Combos always start with their first model."]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-cyan-500/10 text-cyan-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"device_hub"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Providers")})]}),(0,a.jsx)("div",{className:"flex flex-col gap-4",children:(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:(0,b.Tl)("Show trial providers")}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("Show public unauthenticated trial channels (e.g. OpenCode Free)")})]}),(0,a.jsx)(l.lM,{checked:!1!==_.showCommunityProviders,onChange:e5})]})})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-purple-500/10 text-purple-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"wifi"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Network")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Outbound Proxy"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Enable proxy for OAuth + provider outbound requests."})]}),(0,a.jsx)(l.lM,{checked:!0===_.outboundProxyEnabled,onChange:()=>e4(!0!==_.outboundProxyEnabled),disabled:H||eZ})]}),!0===_.outboundProxyEnabled&&(0,a.jsxs)("form",{onSubmit:e2,className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy URL"}),(0,a.jsx)(l.pd,{placeholder:"http://127.0.0.1:7897",value:eX.outboundProxyUrl,onChange:e=>eK(t=>({...t,outboundProxyUrl:e.target.value})),disabled:H||eZ}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Leave empty to inherit existing env proxy (if any)."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"No Proxy"}),(0,a.jsx)(l.pd,{placeholder:"localhost,127.0.0.1",value:eX.outboundNoProxy,onChange:e=>eK(t=>({...t,outboundNoProxy:e.target.value})),disabled:H||eZ}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Comma-separated hostnames/domains to bypass the proxy."})]}),(0,a.jsxs)("div",{className:"pt-2 border-t border-border/50 flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,a.jsx)(l.$n,{type:"button",variant:"secondary",loading:eY,disabled:H||eZ,onClick:e3,className:"w-full sm:w-auto",children:"Test proxy URL"}),(0,a.jsx)(l.$n,{type:"submit",variant:"primary",loading:eZ,className:"w-full sm:w-auto",children:"Apply"})]})]}),eW.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===eW.type?"text-red-500":"text-green-500"} pt-2 border-t border-border/50`,children:eW.message})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"monitoring"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Observability")})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Enable Observability"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Record request details for inspection in the logs view"})]}),(0,a.jsx)(l.lM,{checked:tw,onChange:tp,disabled:H})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(l.$n,{variant:"outline",fullWidth:!0,icon:"power_settings_new",onClick:()=>L(!0),className:"text-red-500 border-red-200 hover:bg-red-50 hover:border-red-300",children:"Shutdown"}),(0,a.jsx)(l.$n,{variant:"outline",fullWidth:!0,icon:"logout",onClick:tv,children:"Logout"})]}),(0,a.jsxs)("div",{className:"text-center text-xs sm:text-sm text-text-muted py-4",children:[(0,a.jsxs)("p",{children:[m.vQ.name," v",m.vQ.version]}),(0,a.jsx)("p",{className:"mt-1",children:e0?"Remote Mode":"Local Mode - All data stored on your machine"})]})]}),(0,a.jsx)(o.default,{hideTrigger:!0,isOpen:S,onClose:e=>{C(!1),y(e)}}),(0,a.jsx)(i.ConfirmModal,{isOpen:T,onClose:()=>A(!1),onConfirm:()=>{A(!1),tt(!1)},title:(0,b.Tl)("Turn off the log-in check?"),message:(0,b.Tl)("Anyone who can reach this port will be able to manage every provider, key and credential without a password. The dashboard keeps a warning banner while it is off."),confirmText:(0,b.Tl)("Turn it off"),cancelText:(0,b.Tl)("Cancel"),variant:"danger"}),(0,a.jsx)(i.ConfirmModal,{isOpen:I,onClose:()=>P(!1),onConfirm:()=>{P(!1),ti(!0)},title:(0,b.Tl)("Hide the log-in-off warning?"),message:(0,b.Tl)("The dashboard stays open to anyone who can reach this port — hiding the banner only removes the reminder, not the risk. It comes back automatically if you turn the log-in check on and off again."),confirmText:(0,b.Tl)("Hide it"),cancelText:(0,b.Tl)("Cancel"),variant:"danger"}),(0,a.jsx)(i.ConfirmModal,{isOpen:k,onClose:()=>L(!1),onConfirm:tN,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:q}),(0,a.jsxs)(i.default,{isOpen:O.open,onClose:()=>M({open:!1,value:"",confirm:"",error:"",loading:!1}),title:(0,b.Tl)("Set a password to turn on the log-in check"),size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.$n,{variant:"ghost",onClick:()=>M({open:!1,value:"",confirm:"",error:"",loading:!1}),disabled:O.loading,children:(0,b.Tl)("Cancel")}),(0,a.jsx)(l.$n,{variant:"primary",onClick:ts,loading:O.loading,children:(0,b.Tl)("Set password and turn on")})]}),children:[(0,a.jsx)("p",{className:"text-text-muted mb-3 text-sm",children:(0,b.Tl)("You have not set a dashboard password of your own yet. Choose one now — you will need it to sign in from then on.")}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(l.pd,{type:"password",value:O.value,onChange:e=>M(t=>({...t,value:e.target.value,error:""})),placeholder:(0,b.Tl)("New password"),autoFocus:!0}),(0,a.jsx)(l.pd,{type:"password",value:O.confirm,onChange:e=>M(t=>({...t,confirm:e.target.value,error:""})),onKeyDown:e=>{"Enter"===e.key&&ts()},placeholder:(0,b.Tl)("Confirm new password")}),O.error&&(0,a.jsx)("p",{className:"text-xs text-red-500",children:O.error})]})]}),(0,a.jsxs)(i.default,{isOpen:es.open,onClose:()=>ea({open:!1,mode:"",password:""}),title:"Confirm Password",size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.$n,{variant:"ghost",onClick:()=>ea({open:!1,mode:"",password:""}),disabled:Y,children:"Cancel"}),(0,a.jsx)(l.$n,{variant:"primary",onClick:tj,loading:Y,disabled:!es.password,children:"Confirm"})]}),children:[(0,a.jsxs)("p",{className:"text-text-muted mb-3 text-sm",children:["Enter your current password to ","export"===es.mode?"export":"import"," the database."]}),(0,a.jsx)(l.pd,{type:"password",value:es.password,onChange:e=>ea(t=>({...t,password:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&es.password&&tj()},placeholder:"Current password",autoFocus:!0})]})]})}}},e=>{e.O(0,[3170,305,1321,5497,8441,3794,7358],()=>e(e.s=13966)),_N_E=e.O()}]);
|
|
@@ -11,4 +11,4 @@ pt-only-auto-named`:Z,[Y,ee]=(0,l.useState)("single"),[et,ei]=(0,l.useState)("")
|
|
|
11
11
|
"idToken": "eyJhbGc...",
|
|
12
12
|
"email": "user@example.com"
|
|
13
13
|
}
|
|
14
|
-
]`;function ei({isOpen:e,onClose:t,onSuccess:i}){let[a,n]=(0,l.useState)(""),[r,o]=(0,l.useState)(!1),[d,u]=(0,l.useState)(""),[m,x]=(0,l.useState)(null),h=()=>{r||(n(""),u(""),x(null),t())},f=async()=>{var e;let t;u(""),x(null);let s=a.trim();if(!s)return;try{t=JSON.parse(s)}catch(e){u(`${(0,p.Tl)("Invalid JSON")}: ${e.message}`);return}let l=Array.isArray(e=t)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!l||0===l.length)return void u((0,p.Tl)("No accounts found in input"));o(!0);try{let e=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:l})}),t=await e.json();if(!e.ok)return void u(t?.error||`Request failed: ${e.status}`);x(t),t.success>0&&"function"==typeof i&&i()}catch(e){u(e.message||(0,p.Tl)("Request failed"))}finally{o(!1)}},g=m?.results?.filter(e=>!e.ok)||[];return(0,s.jsx)(c.aF,{isOpen:e,title:(0,p.Tl)("Bulk Add Codex Accounts"),onClose:h,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted",children:(0,p.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,s.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:et,value:a,onChange:e=>n(e.target.value),disabled:r}),d&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:d}),m&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:`text-sm font-medium ${m.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",m.success," ",(0,p.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,p.Tl)("failed")}`:""]}),g.length>0&&(0,s.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:g.map(e=>(0,s.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(c.$n,{onClick:f,fullWidth:!0,disabled:r||!a.trim(),children:r?(0,p.Tl)("Importing..."):(0,p.Tl)("Import All")}),(0,s.jsx)(c.$n,{onClick:h,variant:"ghost",fullWidth:!0,disabled:r,children:(0,p.Tl)("Close")})]})]})})}function es({isOpen:e,onClose:t,onSuccess:i,password:a=""}){let[n,r]=(0,l.useState)(""),[o,d]=(0,l.useState)(""),[u,m]=(0,l.useState)(!1),[x,h]=(0,l.useState)(""),[f,g]=(0,l.useState)(null),y=(0,l.useRef)(null),b=()=>{u||(r(""),d(""),h(""),g(null),y.current&&(y.current.value=""),t())},v=async()=>{let e;h(""),g(null);let t=n.trim();if(!t)return;try{e=JSON.parse(t)}catch(e){h(`${(0,p.Tl)("Invalid JSON")}: ${e.message}`);return}let s=Array.isArray(e)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!s||0===s.length)return void h((0,p.Tl)("No accounts found in input"));m(!0);try{let e=await fetch("/api/oauth/codebuddy-cn/bulk-import",{method:"POST",headers:{"Content-Type":"application/json",...a?{"x-10r-password":a}:{}},body:JSON.stringify({accounts:s})}),t=await e.json();if(!e.ok)return void h(401===e.status?(0,p.Tl)("Invalid password"):t?.error||`Request failed: ${e.status}`);g(t),(t.imported>0||t.updated>0)&&"function"==typeof i&&i()}catch(e){h(e.message||(0,p.Tl)("Request failed"))}finally{m(!1)}},j=f?.results?.filter(e=>!e.ok)||[],w=f?.skipped??0;return(0,s.jsx)(c.aF,{isOpen:e,title:(0,p.Tl)("Import CodeBuddy CN Accounts"),onClose:b,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(c.$n,{variant:"secondary",fullWidth:!0,icon:"upload_file",onClick:()=>y.current?.click(),disabled:u,children:o||(0,p.Tl)("Choose JSON file...")}),(0,s.jsx)("input",{ref:y,type:"file",accept:".json,application/json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(!t)return;d(t.name),h(""),g(null);let i=new FileReader;i.onload=()=>r(String(i.result||"")),i.onerror=()=>h((0,p.Tl)("Failed to read file")),i.readAsText(t)}})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute -top-2 left-2 bg-sidebar px-1 text-[10px] text-text-muted",children:(0,p.Tl)("Or paste JSON")}),(0,s.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 pt-4 text-sm font-mono resize-y min-h-[160px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:'[{ "access_token": "eyJ...", "refresh_token": "eyJ...", "nickname": "<nickname>" }]',value:n,onChange:e=>r(e.target.value),disabled:u})]}),x&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:x}),f&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:`text-sm font-medium ${f.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",f.imported," ",(0,p.Tl)("added"),", ",f.updated," ",(0,p.Tl)("updated"),w>0?`, ${w} ${(0,p.Tl)("skipped")}`:"",f.failed>0?`, ✗ ${f.failed} ${(0,p.Tl)("failed")}`:""]}),j.length>0&&(0,s.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:j.map(e=>(0,s.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(c.$n,{onClick:v,fullWidth:!0,disabled:u||!n.trim(),children:u?(0,p.Tl)("Importing..."):(0,p.Tl)("Import All")}),(0,s.jsx)(c.$n,{onClick:b,variant:"ghost",fullWidth:!0,disabled:u,children:(0,p.Tl)("Close")})]})]})})}function el({isOpen:e,mode:t,provider:i,providerName:a,dashboardPassword:n,onClose:r,onSuccess:o}){let[d,u]=(0,l.useState)(""),[m,x]=(0,l.useState)(""),[h,f]=(0,l.useState)(!1),[g,y]=(0,l.useState)(""),[b,v]=(0,l.useState)(null),[j,w]=(0,l.useState)(""),[k,N]=(0,l.useState)(null),T=(0,l.useRef)(null),C=(0,l.useRef)(null),S=e=>{clearTimeout(C.current),C.current=setTimeout(()=>{C.current=null,$(),r()},e)};(0,l.useEffect)(()=>()=>clearTimeout(C.current),[]);let $=()=>{u(""),x(""),f(!1),y(""),v(null),w(""),N(null),T.current&&(T.current.value="")},A={"Content-Type":"application/json","x-10r-password":n||""},O=async()=>{if(y(""),v(null),clearTimeout(C.current),d.length<4)return void y((0,p.Tl)("Passphrase must be at least 4 characters"));if(d!==m)return void y((0,p.Tl)("Passphrases do not match"));f(!0);try{let e=await fetch("/api/oauth/transfer/export",{method:"POST",headers:A,body:JSON.stringify({provider:i,passphrase:d})}),t=await e.json();if(!e.ok)throw Error((0,p.Tl)(t?.error)||`Request failed: ${e.status}`);let s=JSON.stringify(t.blob,null,2),l=URL.createObjectURL(new Blob([s],{type:"application/json"})),a=document.createElement("a");a.href=l,a.download=`oauth-${i}-transfer-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(l),1e3),v({exported:t.count}),S(1200)}catch(e){y(e.message||(0,p.Tl)("Export failed"))}finally{f(!1)}},E=async()=>{if(y(""),v(null),clearTimeout(C.current),!k)return void y((0,p.Tl)("Pick a transfer file first"));if(!d)return void y((0,p.Tl)("Transfer passphrase required"));f(!0);try{let e=await fetch("/api/oauth/transfer/import",{method:"POST",headers:A,body:JSON.stringify({provider:i,passphrase:d,blob:k})}),t=await e.json();if(!e.ok){if(401===e.status&&/passphrase/i.test(t?.error||""))throw Error((0,p.Tl)("Wrong passphrase"));throw Error((0,p.Tl)(t?.error)||`Request failed: ${e.status}`)}v(t),"function"==typeof o&&o(),(t?.imported||0)+(t?.updated||0)>0&&S(1800)}catch(e){y(e.message||(0,p.Tl)("Import failed"))}finally{f(!1)}};return(0,s.jsx)(c.aF,{isOpen:e,title:"export"===t?(0,p.Tl)("Export OAuth accounts"):(0,p.Tl)("Import OAuth accounts"),onClose:()=>{h||(clearTimeout(C.current),C.current=null,$(),r())},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[(0,p.Tl)("Provider"),": ",(0,s.jsx)("span",{className:"font-medium text-text-main",children:a||i})]}),"export"===t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(c.pd,{type:"password",reveal:!0,label:(0,p.Tl)("Transfer passphrase"),value:d,onChange:e=>u(e.target.value),placeholder:"••••••••"}),(0,s.jsx)(c.pd,{type:"password",reveal:!0,label:(0,p.Tl)("Confirm passphrase"),value:m,onChange:e=>x(e.target.value),placeholder:"••••••••"})]}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:(0,p.Tl)("The file is encrypted with this passphrase — it is required again at import, and cannot be recovered.")}),g&&(0,s.jsx)("p",{className:"text-xs text-red-500",children:g}),b&&(0,s.jsxs)("p",{className:"text-xs text-green-600",children:[(0,p.Tl)("Export complete")," — ",b.exported," ",(0,p.Tl)("accounts exported")]}),(0,s.jsx)(c.$n,{onClick:O,disabled:h,fullWidth:!0,children:(0,p.Tl)("Export encrypted file")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.pd,{label:(0,p.Tl)("Transfer file"),value:j,readOnly:!0,placeholder:(0,p.Tl)("Pick a transfer file first"),className:"cursor-pointer",onClick:()=>T.current?.click()}),(0,s.jsx)("input",{ref:T,type:"file",accept:".json,application/json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(!t)return;w(t.name),y(""),v(null);let i=new FileReader;i.onload=()=>{try{let e=JSON.parse(String(i.result||""));if(e?.format!=="10router-oauth-secure-v1"){y((0,p.Tl)("Unrecognized transfer file (expected an encrypted OAuth transfer)")),N(null);return}N(e)}catch(e){y(`${(0,p.Tl)("Invalid JSON")}: ${e.message}`),N(null)}},i.onerror=()=>y((0,p.Tl)("Failed to read file")),i.readAsText(t)}}),(0,s.jsx)(c.pd,{type:"password",reveal:!0,label:(0,p.Tl)("Transfer passphrase"),value:d,onChange:e=>u(e.target.value),placeholder:"••••••••"}),g&&(0,s.jsx)("p",{className:"text-xs text-red-500",children:g}),b&&(0,s.jsx)("div",{className:"text-xs text-text-muted",children:(0,s.jsxs)("p",{children:[(0,p.Tl)("Import complete"),": ",b.imported||0," ",(0,p.Tl)("imported"),", ",b.updated||0," ",(0,p.Tl)("updated"),(b.failed||0)>0?`, ${b.failed} ${(0,p.Tl)("failed")}`:""]})}),(0,s.jsx)(c.$n,{onClick:E,disabled:h,fullWidth:!0,children:(0,p.Tl)("Import connections")})]})]})})}ei.propTypes={isOpen:z().bool.isRequired,onClose:z().func.isRequired,onSuccess:z().func},es.propTypes={isOpen:z().bool.isRequired,onClose:z().func.isRequired,onSuccess:z().func,password:z().string},el.propTypes={isOpen:z().bool.isRequired,mode:z().oneOf(["export","import"]).isRequired,provider:z().string.isRequired,providerName:z().string,dashboardPassword:z().string,onClose:z().func.isRequired,onSuccess:z().func};let ea={claude:"claudeAutoPing",codex:"codexAutoPing"};function en(){let e,t,i,n,x,h,f,y,b=(0,a.useParams)(),v=(0,a.useRouter)(),j=b.id,{getCaps:w,getBaseCaps:k,overrides:N,refresh:T}=(0,A.yU)(),C=(0,O.i)(),[E,I]=(0,l.useState)([]),[M,q]=(0,l.useState)(!0),[U,z]=(0,l.useState)(null),[F,L]=(0,l.useState)([]),[K,J]=(0,l.useState)(!1),[B,V]=(0,l.useState)(!1),[G,Z]=(0,l.useState)(!1),[et,en]=(0,l.useState)(!1),[er,eo]=(0,l.useState)(""),[ed,ec]=(0,l.useState)(!1),[eu,em]=(0,l.useState)(!1),[ep,ex]=(0,l.useState)(!1),[eh,ef]=(0,l.useState)(!1),[eg,ey]=(0,l.useState)(!1),[eb,ev]=(0,l.useState)(null),[ej,ew]=(0,l.useState)({}),[ek,eN]=(0,l.useState)([]),[eT,eC]=(0,l.useState)(!1),[eS,e$]=(0,l.useState)(!1),[eA,eO]=(0,l.useState)(!1),[eE,eP]=(0,l.useState)(!1),[eD,eI]=(0,l.useState)({open:!1,action:null,value:""}),[eR,eM]=(0,l.useState)(!1),[eq,e_]=(0,l.useState)(""),[eU,ez]=(0,l.useState)(""),[eF,eL]=(0,l.useState)(!1),[eK,eJ]=(0,l.useState)({}),[eW,eB]=(0,l.useState)(""),[eH,eV]=(0,l.useState)(()=>new Set),[eG,eQ]=(0,l.useState)(!1),[eZ,eX]=(0,l.useState)([]),[eY,e0]=(0,l.useState)("__none__"),[e1,e2]=(0,l.useState)(!1),[e5,e4]=(0,l.useState)(null),[e3,e6]=(0,l.useState)(""),[e8,e7]=(0,l.useState)(!1),[e9,te]=(0,l.useState)("auto"),[tt,ti]=(0,l.useState)({enabled:!1,connections:{}}),[ts,tl]=(0,l.useState)([]),[ta,tn]=(0,l.useState)(!1),[tr,to]=(0,l.useState)([]),[td,tc]=(0,l.useState)([]),[tu,tm]=(0,l.useState)([]),[tp,tx]=(0,l.useState)(null),[th,tf]=(0,l.useState)(!1),[tg,ty]=(0,l.useState)(!1),[tb,tv]=(0,l.useState)(!1),tj="__provider_default__",[tw,tk]=(0,l.useState)(tj),[tN,tT]=(0,l.useState)(null),[tC,tS]=(0,l.useState)({}),[t$,tA]=(0,l.useState)(null),tO=(0,l.useRef)(!1),[tE,tP]=(0,l.useState)(!1),{copied:tD,copy:tI}=(0,$.C)(),tR="ag_risk_confirmed",tM=()=>{"xiaomi-mimo"===j||"mimo-desktop"===j?V(!0):J(!0)},tq=()=>{"antigravity"===j&&"true"!==window.localStorage.getItem(tR)?tf(!0):tY?tM():(eo(""),en(!0))},t_=()=>{eo(""),en(!0)},tU=()=>{tY?tq():t_()},tz=async()=>{if(!eR){eM(!0),e_("");try{let e=await fetch("/api/auth/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:eD.value})});if(!e.ok){let t=await e.json().catch(()=>({}));e_(t?.error||(0,p.Tl)("Invalid password"));return}let{action:t,value:i}=eD;eI({open:!1,action:null,value:""}),"export"===t&&(tB(i),tJ(t),tL(!0))}catch(e){e_(e.message||(0,p.Tl)("Invalid password"))}finally{eM(!1)}}},[tF,tL]=(0,l.useState)(!1),[tK,tJ]=(0,l.useState)("export"),[tW,tB]=(0,l.useState)(""),tH=async()=>{eO(!0);try{let e=await fetch("/api/oauth/codebuddy-cn/checkin",{method:"POST",cache:"no-store"}),t=await e.json();if(!e.ok)throw Error(t?.error||`Request failed: ${e.status}`);let i=Array.isArray(t?.results)?t.results:[];if(0===i.length)return void C.warning((0,p.Tl)("No CodeBuddy CN connections to check in"));let s=i.filter(e=>"checked-in"===e.status).length,l=i.filter(e=>"already"===e.status).length,a=i.filter(e=>"failed"===e.status).length;0===a?C.success(`${(0,p.Tl)("Check-in complete")}: ${s} ${(0,p.Tl)("checked-in")}, ${l} ${(0,p.Tl)("already checked in")}`):C.error(`${(0,p.Tl)("Check-in complete with errors")}: ${a} ${(0,p.Tl)("failed")}`)}catch(e){C.error((0,p.Tl)("Check-in failed")+": "+e.message)}finally{eO(!1)}},tV=()=>(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:(0,s.jsx)(c.$n,{size:"sm",icon:"calendar_today",onClick:tH,disabled:eA,className:"w-full sm:w-auto",title:(0,p.Tl)("CodeBuddy CN auto-checks in daily (retries all day until confirmed)"),children:eA?(0,p.Tl)("Checking in..."):(0,p.Tl)("Check in now")})}),tG=async()=>{eP(!0);try{let e="qoder-cn"===j?"/api/oauth/qoder-cn/checkin":"/api/oauth/qoder/checkin",t=await fetch(e,{method:"POST",cache:"no-store"}),i=await t.json();if(!t.ok)throw Error(i?.error||`Request failed: ${t.status}`);let s=Array.isArray(i?.results)?i.results:[];if(0===s.length)return void C.warning((0,p.Tl)("No active Qoder connections found"));let l=s.filter(e=>"checked-in"===e.status),a=s.filter(e=>"already"===e.status),n=s.filter(e=>"no-activity"===e.status),r=s.filter(e=>"failed"===e.status),o=l.reduce((e,t)=>e+(t.claimedAmount||0),0);if(l.length>0)C.success(`${(0,p.Tl)("Claim successful")}: +${o} Credits (${l.length} ${(0,p.Tl)("accounts")})`);else if(r.length>0)C.error(`${(0,p.Tl)("Claim failed")}: ${r.map(e=>e.error).join(", ")}`);else if(n.length>0){let e=a.length>0?` / ${(0,p.Tl)("Daily credits already claimed for today")} (${a.length} ${(0,p.Tl)("accounts")})`:` (${n.length} ${(0,p.Tl)("accounts")})`;C.info((0,p.Tl)("No claimable activity available for this account")+e)}else C.info((0,p.Tl)("Daily credits already claimed for today"))}catch(e){C.error((0,p.Tl)("Claim failed")+": "+e.message)}finally{eP(!1)}},tQ=()=>(0,s.jsx)(c.$n,{size:"sm",icon:"redeem",variant:"secondary",onClick:tG,disabled:eE,className:"w-full sm:w-auto",title:(0,p.Tl)("Claim daily activity Credits"),children:eE?(0,p.Tl)("Claiming..."):(0,p.Tl)("Claim Credits")}),tZ=U?{id:U.id,name:U.name||("anthropic-compatible"===U.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===U.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===U.type?"AC":"OC",apiType:U.apiType,baseUrl:U.baseUrl,type:U.type}:u.zN[j]||u.fg[j]||u.IS[j]||u.nJ[j]||u.br[j],tX=tZ?.authModes||[],tY=!!u.zN[j]||!!u.IS[j]||tX.includes("oauth"),t0=!!u.fg[j]||tX.includes("apikey"),t1=!!u.IS[j]?.noAuth,t2="codebuddy-cn"===j,t5=tY&&tZ?.authModes?.includes("oauth")&&eT,t4=t2&&eS,t3=e=>t5&&!t4?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{size:"sm",icon:"file_download",variant:"secondary",onClick:()=>{ez(""),eI({open:!0,action:"export",value:""})},className:e,children:(0,p.Tl)("Export")}),(0,s.jsx)(c.$n,{size:"sm",icon:"upload_file",variant:"secondary",onClick:()=>{tJ("import"),tL(!0)},className:e,children:(0,p.Tl)("Import")})]}):null,t6=(0,m.KC)(j),t8="qoder"===j||"qoder-cn"===j,t7="qoder"===j||"qoder-cn"===j||"xiaomi-mimo"===j,t9="cursor"===j&&tr.length>0?tr:t8?function(e,t){if(!Array.isArray(e)||!Array.isArray(t)||0===t.length)return e;let i=new Map(t.map(e=>[String(e.id).split("/").pop(),e]));return e.map(e=>{let t=i.get(e.id);return t?{...e,rateMultiplier:"number"==typeof t.rateMultiplier?t.rateMultiplier:e.rateMultiplier,promotion:t.promotion??e.promotion??null}:e})}(t6,tr):t6,ie=t8&&t9.find(e=>e.promotion)?.promotion||null,it=(0,u.wG)(j),ii=(0,u.mq)(j),is=(0,u.gb)(j),il=ii||is,ia=!il&&tY&&t0,ir="xai"===j?"Grok Build OAuth":"grok-cli"===j?"Grok CLI Device Login":"kimi"===j?"Kimi Coding OAuth":"OAuth",io="xai"===j?"xAI API Key":"kimi"===j?"Kimi API Key":"qoder"===j?"PAT":"API Key",id=e=>{if(!e9||"auto"===e9)return null;let t=S(j,e);return t&&t.includes(e9)?e9:null},ic=il?j:it,iu=(()=>{let e=new Set,t=new Set,i=i=>{if(!i||t.has(i))return;t.add(i);let s=S(j,i);s&&s.forEach(t=>{"none"!==t&&e.add(t)})};for(let e of t9)i(e.id);for(let e of td)i(e.id);for(let e of ek)e.providerAlias===ic&&"llm"===(e.kind||e.type||"llm")&&i(e.id);return e.size?["auto",...e]:null})(),im=il?U?.prefix||j:it,ip=(0,l.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(ic)}`,{cache:"no-store"}),t=await e.json();e.ok&&tm(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[ic]),ix=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,ids:[e]})})).ok&&await ip()}catch(e){console.log("Error disabling model:",e)}},ih=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(ic)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await ip()}catch(e){console.log("Error enabling model:",e)}},ig=async(e,t)=>{await fetch("/api/models/custom",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,id:e,type:"llm",enabled:t})})},iy=async(e,t=[])=>{let i=e.length+t.length;i&&tx({title:"Disable All Models",message:`Disable all ${i} model(s)?`,onConfirm:async()=>{tx(null);try{for(let i of(e.length&&(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,ids:e})})).ok&&await ip(),t))await ig(i,!1);t.length&&await ij()}catch(e){console.log("Error disabling all models:",e)}}})},ib=async(e=[])=>{try{for(let t of((await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(ic)}`,{method:"DELETE"})).ok&&await ip(),e))await ig(t,!0);e.length&&await ij()}catch(e){console.log("Error enabling all models:",e)}},iv=(0,l.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&ew(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]),ij=(0,l.useCallback)(async()=>{try{let e=await fetch("/api/models/custom",{cache:"no-store"}),t=await e.json();e.ok&&eN(t.models||[])}catch(e){console.log("Error fetching custom models:",e)}},[]);(0,l.useEffect)(()=>{"kilocode"===j&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&tc(e.models)}).catch(()=>{})},[j]);let iw=(0,l.useCallback)(async()=>{try{let[e,t,i,s]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),l=await e.json(),a=await t.json(),n=await i.json(),r=s.ok?await s.json():{};if(e.ok){let e=(l.connections||[]).filter(e=>e.provider===j);I(e)}i.ok&&L(n.proxyPools||[]);let o=(r.providerStrategies||{})[j]||{};e4(o.fallbackStrategy||null),e6(null!=o.stickyRoundRobinLimit?String(o.stickyRoundRobinLimit):"1"),e7(!0===o.earliestExpiryFirst),eC(!0===r.codeBuddyOAuthImport);let d=(r.providerThinking||{})[j]||{};te(d.mode||"auto");let c=ea[j],u=c&&r[c]||{};if(ti({enabled:!0===u.enabled,connections:u.connections||{}}),t.ok){let e=(a.nodes||[]).find(e=>e.id===j)||null;if(!e&&il)for(let t=0;t<3;t+=1){await new Promise(e=>setTimeout(e,150));let t=await fetch("/api/provider-nodes",{cache:"no-store"});if(t.ok&&(e=((await t.json()).nodes||[]).find(e=>e.id===j)||null))break}z(e)}}catch(e){console.log("Error fetching connections:",e)}finally{q(!1)}},[j,il]),ik=(0,l.useCallback)(async()=>{await iw(),await ip()},[iw,ip]),iN=async e=>{try{let t=await fetch(`/api/provider-nodes/${j}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),i=await t.json();t.ok&&(z(i.node),await iw(),ef(!1))}catch(e){console.log("Error updating provider node:",e)}},iT=async(e,t,i=e8)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),l=(s.ok?await s.json():{}).providerStrategies||{},a={...l[j]||{}};e?a.fallbackStrategy=e:delete a.fallbackStrategy,"round-robin"===e&&""!==t?a.stickyRoundRobinLimit=Number(t)||3:delete a.stickyRoundRobinLimit,i?a.earliestExpiryFirst=!0:delete a.earliestExpiryFirst;let n={...l};0===Object.keys(a).length?delete n[j]:n[j]=a,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:n})})}catch(e){console.log("Error saving provider strategy:",e)}},iC=async e=>{try{let t=await fetch("/api/settings",{cache:"no-store"}),i={...(t.ok?await t.json():{}).providerThinking||{}};e&&"auto"!==e?i[j]={mode:e}:delete i[j],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:i})})}catch(e){console.log("Error saving thinking config:",e)}},iS=async e=>{let t=ea[j];if(t){ti(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[t]:e})})}catch(e){console.log("Error saving auto-ping config:",e)}}};(0,l.useEffect)(()=>{iw(),iv(),ij(),ip()},[iw,iv,ij,ip]),(0,l.useEffect)(()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.json()).then(e=>{eC(!0===e.codeBuddyOAuthImport),"boolean"==typeof e.codeBuddyCheckin&&e$(e.codeBuddyCheckin)}).catch(e=>console.log("Error reading settings:",e))},[]),(0,l.useEffect)(()=>{if("cursor"!==j&&!t8)return void to([]);let e=E.find(e=>!1!==e.isActive);if(!e?.id)return void to([]);let t=!1;return fetch(`/api/providers/${e.id}/models`,{cache:"no-store"}).then(async e=>({ok:e.ok,data:await e.json()})).then(({ok:e,data:i})=>{!t&&e&&Array.isArray(i.models)&&i.models.length>0&&to(i.models)}).catch(()=>{}),()=>{t=!0}},[j,E]),(0,l.useEffect)(()=>{let e=(u.zN[j]||u.fg[j]||u.IS[j]||u.nJ[j])?.modelsFetcher;e&&P(e).then(tl)},[j]);let i$=async(e,t,i=it)=>{let s=`${i}/${e}`;try{let e=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:s,alias:t})});if(e.ok)await iv();else{let t=await e.json();C.error(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},iA=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await iv()}catch(e){console.log("Error deleting alias:",e)}},iO=async(e,t="llm",i=ic,s={},l,a)=>{try{let n={providerAlias:i,id:e,type:t};if(void 0!==l&&(n.enabled=l),a&&(n.transport=a),s&&"object"==typeof s)for(let e of["vision","reasoning","contextWindow","maxOutput","thinkingFormat"])void 0!==s[e]&&(n[e]=s[e]);let r=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(r.ok)await ij(),window.dispatchEvent(new CustomEvent("customModelChanged"));else{let e=await r.json();C.error(e.error||"Failed to add custom model")}}catch(e){console.log("Error adding custom model:",e)}},iE=e=>!!(N?.[ic]?.[e]||N?.[j]?.[e]),iP=async(e,t)=>{try{let i=await fetch("/api/models/caps",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:ic||j,modelId:e,...t||{}})});if(!i.ok){let e=await i.json().catch(()=>({}));C.error(e?.error||"Failed to save model settings");return}T()}catch(e){console.log("Error saving model caps:",e),C.error("Failed to save model settings")}},iD=async(e,t="llm",i=ic)=>{try{let s=new URLSearchParams({providerAlias:i,id:e,type:t});(await fetch(`/api/models/custom?${s}`,{method:"DELETE"})).ok&&(await ij(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error deleting custom model:",e)}},iI=async(e,t,i="llm")=>{try{(await fetch("/api/models/custom",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,id:e,type:i,enabled:t})})).ok&&(await ij(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error toggling custom model:",e)}},iR=(e,t="llm")=>{tx({title:e?(0,p.Tl)("Enable all custom models?"):(0,p.Tl)("Disable all custom models?"),message:e?(0,p.Tl)("All custom models of this provider will be listed in /v1/models and exposed to clients."):(0,p.Tl)("All custom models of this provider will disappear from /v1/models until re-enabled. Clients will no longer see them."),onConfirm:async()=>{tx(null);try{(await fetch("/api/models/custom/bulk",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,type:t,enabled:e})})).ok&&(await ij(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error bulk-updating custom models:",e)}}})},iM=async()=>{if(tE)return;let e=E.find(e=>!1!==e.isActive);if(!e)return void C.warning("xiaomi-mimo"===j?(0,p.Tl)("Please add an active MiMo connection first"):(0,p.Tl)("Please add an active Qoder connection first"));tP(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),i=await t.json();if(!t.ok)return void C.error(i.error||(0,p.Tl)("Failed to fetch models"));let s=i.models||[];if(0===s.length)return void C.warning((0,p.Tl)("No models returned"));let l=0,a=0;for(let e of s){let t=e.id||e.name;if(!t)continue;if("llm"!==(e.kind||"llm")){a+=1;continue}let i=t.replace(/^qoder(-cn)?\//,"");!s.some(e=>e.id===i)&&(ek.some(e=>e.providerAlias===ic&&e.id===i&&"llm"===(e.kind||e.type||"llm"))||Object.values(ej).includes(`${ic}/${i}`)||(await iO(i,"llm",ic,{},!1),l+=1))}0===l?C.warning((0,p.Tl)("All models already exist, no new models added")):C.success((0,p.Tl)("Successfully added")+` ${l} `+(0,p.Tl)("models")),a>0&&C.info((0,p.Tl)("Media models skipped (use Media Providers)")+` (${a})`)}catch(e){console.log("Error importing Qoder models:",e),C.error((0,p.Tl)("Error fetching models")+": "+e.message)}finally{tP(!1)}},iq="opencode-go"===j||"bai"===j||"cline"===j,i_=async()=>{if(ta)return;let e=E.find(e=>!1!==e.isActive);if(!e?.id)return void C.warning((0,p.Tl)("Add a connection to enable importing models."));tn(!0);try{let t=await fetch(`/api/providers/${e.id}/models`,{cache:"no-store"}),i=await t.json();if(!t.ok)throw Error(i?.error||`Request failed: ${t.status}`);let s=(Array.isArray(i.models)?i.models:[]).map(e=>{let t=e?.id||e?.name||e?.model;return t?{...e,id:String(t),name:e.name||String(t)}:null}).filter(Boolean);tl(s),C.success(`${(0,p.Tl)("Models refreshed")} (${s.length})`)}catch(e){C.error((0,p.Tl)("Failed to fetch models")+": "+e.message)}finally{tn(!1)}},iU=async()=>{if(tg||0===E.length)return;let e=Object.fromEntries(E.map(e=>[e.id,{state:"queued",error:null}]));tO.current=!1,ty(!0),tv(!1),tT(null),tS(e),tA({total:E.length,completed:0,passed:0,failed:0,stopped:!1});let t=0,i=0;try{for(let e=0;e<E.length;e+=1){if(tO.current){tA({total:E.length,completed:e,passed:t,failed:i,stopped:!0});break}let s=E[e];tT(s.id),tS(e=>({...e,[s.id]:{state:"testing",error:null}}));try{let e=t9.some(e=>e.id===tw)?tw:null,l=await fetch(`/api/providers/${s.id}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e&&e!==tj?{model:e}:{})}),a=await l.json(),n=!!a.valid;n?t+=1:i+=1,tS(e=>({...e,[s.id]:{state:n?"success":"failed",error:n?null:a.error||null}}))}catch(e){i+=1,tS(t=>({...t,[s.id]:{state:"failed",error:e.message||"Test failed"}}))}tA({total:E.length,completed:e+1,passed:t,failed:i,stopped:!1}),e<E.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{tT(null),ty(!1),tv(!1),tO.current=!1,iw()}},iz=async e=>{tx({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{tx(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&I(t=>t.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},iF=()=>{eB(""),eJ({}),tS({}),tA(null),iw(),J(!1)},iL=async e=>{eo("");try{let t=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:j,...e})}),i=null;try{i=await t.json()}catch{i=null}if(t.ok){eB(""),eJ({}),await ik(),en(!1);return}eo(i?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),eo("Failed to save connection")}},iK=async e=>{try{(await fetch(`/api/providers/${eb.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(eB(""),eJ({}),tS({}),tA(null),await iw(),ex(!1))}catch(e){console.log("Error updating connection:",e)}},iJ=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&I(i=>i.map(i=>i.id===e?{...i,isActive:t}:i))}catch(e){console.log("Error updating connection status:",e)}},iW=async(e,t)=>{let i=[...E];[i[e],i[t]]=[i[t],i[e]],I(i);try{await Promise.all([fetch(`/api/providers/${i[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${i[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch(e){console.log("Error swapping priority:",e),await iw()}},iB=E.filter(e=>eZ.includes(e.id)),iH=E.length>0&&eZ.length===E.length;(0,l.useEffect)(()=>{eX(e=>e.filter(e=>E.some(t=>t.id===e)))},[E]),(()=>{if(0===iB.length)return;let e=new Set(iB.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return;let i=F.find(e=>e.id===t);return i?.name}})();let iV=()=>{e1||ey(!1)},iG=async e=>{e2(!0);try{let t=0;for(let{connectionId:i,proxyPoolId:s}of e)try{(await fetch(`/api/providers/${i}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:s})})).ok||(t+=1)}catch(e){console.log("Error applying proxy for",i,e),t+=1}t>0&&alert(`Updated with ${t} failed request(s).`),await iw(),ey(!1)}finally{e2(!1)}},iQ=e=>iG(E.map(t=>({connectionId:t.id,proxyPoolId:e}))),iZ=(0,s.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:E.map((e,t)=>{let i;return(0,s.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,s.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,s.jsx)("input",{type:"checkbox",checked:(i=e.id,eZ.includes(i)),onChange:()=>{var t;return t=e.id,void eX(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,s.jsx)("div",{className:"flex-1 min-w-0",children:(0,s.jsx)(Q,{connection:e,proxyPools:F,isOAuth:tY,isFirst:0===t,isLast:t===E.length-1,onMoveUp:()=>iW(t,t-1),onMoveDown:()=>iW(t,t+1),onToggleActive:t=>iJ(e.id,t),autoPing:ea[j]&&"oauth"===e.authType?{on:!0===tt.connections[e.id],onToggle:t=>{var i;return i=e.id,void iS({...tt,connections:{...tt.connections,[i]:t}})},provider:j}:null,onUpdateProxy:async t=>{try{(await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&I(i=>i.map(i=>i.id===e.id?{...i,providerSpecificData:{...i.providerSpecificData,proxyPoolId:t||null}}:i))}catch(e){console.log("Error updating proxy:",e)}},onEdit:()=>{ev(e),ex(!0)},onDelete:()=>iz(e.id),oneByOneStatus:tC[e.id]||null})})]},e.id)})}),iX=F.filter(e=>!0===e.isActive),iY=(0,s.jsx)(c.aF,{isOpen:eg,onClose:iV,title:`Apply Proxy (${E.length} connections)`,children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("button",{onClick:()=>{let e=F.filter(e=>!0===e.isActive);return 0===e.length?void C.warning("No active proxy pools available."):iG(E.map((t,i)=>({connectionId:t.id,proxyPoolId:e[i%e.length].id})))},disabled:e1||0===iX.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,s.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,s.jsxs)("button",{onClick:()=>iQ(null),disabled:e1,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,s.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),F.map(e=>(0,s.jsxs)("button",{onClick:()=>iQ(e.id),disabled:e1||!0!==e.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,s.jsx)("span",{className:"truncate text-sm text-text-main",children:e.name}),!0!==e.isActive&&(0,s.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},e.id))]}),e1&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,s.jsx)(c.$n,{onClick:iV,variant:"ghost",fullWidth:!0,disabled:e1,children:"Cancel"})]})}),i0=async e=>{if(!eH.has(e)){eV(t=>new Set(t).add(e));try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${ic}/${e}`})}),i=await t.json();eJ(t=>({...t,[e]:i.ok?"ok":"error"})),eB(i.ok?"":i.error||"Model not reachable")}catch{eJ(t=>({...t,[e]:"error"})),eB("Network error")}finally{setTimeout(()=>{iw()},600),eV(t=>{let i=new Set(t);return i.delete(e),i})}}};if(M)return(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(c.Qv,{}),(0,s.jsx)(c.Qv,{})]});if(!tZ)return(0,s.jsxs)("div",{className:"text-center py-20",children:[(0,s.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,s.jsx)(r(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let i1=()=>ii&&tZ.apiType?"responses"===tZ.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":is?"/providers/anthropic-m.png":(0,d.HY)(tZ.id);return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)(r(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,s.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${tZ.color}15`},children:eF||!i1()?(0,s.jsx)("span",{className:"text-sm font-bold",style:{color:tZ.color},children:tZ.textIcon||tZ.id.slice(0,2).toUpperCase()}):(0,s.jsx)(o.default,{src:i1(),alt:tZ.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,d.Kw)(tZ.id),eL(!0)},loading:"lazy",decoding:"async"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,s.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:tZ.name}),(tZ.notice?.webUrl||tZ.notice?.apiKeyUrl||tZ.notice?.signupUrl||tZ.website)&&(0,s.jsxs)("a",{href:tZ.notice?.webUrl||tZ.notice?.apiKeyUrl||tZ.notice?.signupUrl||tZ.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),tZ.notice?.webUrl?"Web console":tZ.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]}),(0,s.jsx)(c.N5,{code:tZ.notice?.inviteCode})]}),!t1&&(0,s.jsxs)("p",{className:"text-text-muted",children:[E.length," connection",1===E.length?"":"s"]})]})]})]}),tZ.deprecated&&(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,s.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:tZ.deprecationNotice})]}),tZ.notice?.text&&!tZ.deprecated&&(0,s.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,s.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:(0,p.Tl)(tZ.notice.text)}),tZ.notice.apiKeyUrl&&(0,s.jsx)("a",{href:tZ.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:(0,p.Tl)("Get API Key →")}),(0,s.jsx)(c.N5,{code:tZ.notice?.inviteCode})]}),il&&U&&(0,s.jsx)(c.Zp,{children:(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:is?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,s.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[is?"Messages API":"responses"===U.apiType?"Responses API":"Chat Completions"," \xb7 ",(U.baseUrl||"").replace(/\/$/,""),"/",is?"messages":"responses"===U.apiType?"responses":"chat/completions"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,s.jsx)(c.$n,{size:"sm",icon:"add",onClick:()=>{eo(""),en(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ef(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{tx({title:"Delete Compatible Node",message:`Delete this ${is?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{tx(null);try{(await fetch(`/api/provider-nodes/${j}`,{method:"DELETE"})).ok&&v.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),t1?(0,s.jsx)(c.gw,{providerId:j}):(0,s.jsxs)(c.Zp,{children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[E.length>0&&F.length>0&&(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ey(!0),children:"Apply Proxy"}),E.length>0&&(0,s.jsxs)(s.Fragment,{children:[eZ.length>0&&(0,s.jsxs)(c.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let e=eZ.length;0!==e&&tx({title:`Delete ${e} Connection${e>1?"s":""}`,message:`Delete ${e} connection${e>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{tx(null);let e=0,t=[...eZ];for(let i of t)try{(await fetch(`/api/providers/${i}`,{method:"DELETE"})).ok||(e+=1)}catch(t){console.log("Error deleting connection:",t),e+=1}I(e=>e.filter(e=>!t.includes(e.id))),eX([]),e>0&&alert(`Deleted ${t.length-e} connection(s), ${e} failed.`)}})},children:["Delete Selected (",eZ.length,")"]}),E.length>0&&t9.length>1&&(0,s.jsx)(c.l6,{value:tw,onChange:e=>tk(e.target.value),disabled:tg,options:[{value:tj,label:(0,p.Tl)("Provider default")},...t9.filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}).map(e=>({value:e.id,label:e.name||e.id}))],selectClassName:"!py-2 !text-xs w-44"}),(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:iU,disabled:tg,children:tg?(0,p.Tl)("Testing Connection One-by-One..."):(0,p.Tl)("Test Connection One-by-One")}),tg&&(0,s.jsx)(c.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{tg&&(tO.current=!0,tv(!0))},disabled:tb,children:tb?(0,p.Tl)("Stopping..."):(0,p.Tl)("Stop")})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted font-medium",title:(0,p.Tl)("Prioritize accounts with quota packages that expire soonest"),children:(0,p.Tl)("Earliest Expiry First")}),(0,s.jsx)(c.lM,{checked:e8,onChange:e=>{e7(e),iT(e5,e3,e)}})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,p.Tl)("Round Robin")}),(0,s.jsx)(c.lM,{checked:"round-robin"===e5,onChange:e=>{let t=e?"round-robin":null,i=e?e3||"1":e3;e&&!e3&&e6("1"),e4(t),iT(t,i,e8)}}),"round-robin"===e5&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted",children:(0,p.Tl)("Sticky:")}),(0,s.jsx)("input",{type:"number",min:1,value:e3,onChange:e=>{var t;e6(t=e.target.value),iT("round-robin",t,e8)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-surface focus:outline-none focus:border-primary"})]})]})]})]}),0===E.length?(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:tY?"lock":"key"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),ia&&(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",ir," or ",io,"."]})]})]}),(0,s.jsx)("div",{className:"flex gap-2",children:ia?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tq,children:ir}),(0,s.jsx)(c.$n,{size:"sm",icon:"key",onClick:t_,children:io}),t3(),t4&&tV()]}):(0,s.jsxs)(s.Fragment,{children:[!il&&"iflow"===j&&(0,s.jsx)(c.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>Z(!0),children:"Cookie"}),("qoder"===j||"qoder-cn"===j)&&tQ(),"codex"===j&&(0,s.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ec(!0),children:(0,p.Tl)("Bulk Add")}),(0,s.jsx)(c.$n,{size:"sm",icon:"add",onClick:tU,children:il?"Add API Key":"iflow"===j?"OAuth":"mimo-desktop"===j?(0,s.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,p.Tl)("Connect with Desktop Session"),(0,s.jsx)(c.m_,{text:(0,p.Tl)("Requires sign-in to Xiaomi MiMo Desktop app first"),position:"top",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] opacity-60",children:"info"})})]}):"Add Connection"}),t3()]})})]}):(0,s.jsxs)(s.Fragment,{children:[t$&&(0,s.jsx)("div",{className:"mb-4 rounded-lg 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,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,s.jsxs)("span",{children:[(0,p.Tl)("Total:")," ",t$.total]}),(0,s.jsxs)("span",{children:[(0,p.Tl)("Completed:")," ",t$.completed]}),(0,s.jsxs)("span",{children:[(0,p.Tl)("Passed:")," ",t$.passed]}),(0,s.jsxs)("span",{children:[(0,p.Tl)("Failed:")," ",t$.failed]}),t$.stopped&&(0,s.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:(0,p.Tl)("Stopped")}),tg&&tN&&(0,s.jsxs)("span",{children:[(0,p.Tl)("Running:")," ",E.find(e=>e.id===tN)?.name||tN]})]})}),E.length>0&&(0,s.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,s.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,s.jsx)("input",{type:"checkbox",checked:iH,onChange:()=>{iH?eX([]):eX(E.map(e=>e.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),iZ,!il&&(0,s.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===j&&(0,s.jsx)(c.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>Z(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===j&&(0,s.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ec(!0),title:(0,p.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,p.Tl)("Bulk Add")}),ia?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tq,className:"w-full sm:w-auto",children:ir}),(0,s.jsx)(c.$n,{size:"sm",icon:"key",onClick:t_,className:"w-full sm:w-auto",children:io}),t3("w-full sm:w-auto"),t4&&tV(),("qoder"===j||"qoder-cn"===j)&&tQ()]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{size:"sm",icon:"add",onClick:tU,className:"w-full sm:w-auto",children:"Add"}),t3("w-full sm:w-auto")]})]})]})]}),(0,s.jsxs)(c.Zp,{children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),iu&&(0,s.jsx)("select",{value:e9,onChange:e=>{var t;te(t=e.target.value),iC(t)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-surface px-2 py-1 text-xs focus:border-primary focus:outline-none",children:iu.map(e=>(0,s.jsx)("option",{value:e,children:`Thinking: ${e.charAt(0).toUpperCase()+e.slice(1)}`},e))})]}),!il&&(e=[...t9,...td.filter(e=>!t9.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}).map(e=>e.id).filter(e=>!tu.includes(e)),i=(t=ek.filter(e=>e?.providerAlias===ic&&"llm"===(e.kind||e.type||"llm"))).filter(e=>!1!==e.enabled).map(e=>e.id),n=t.filter(e=>!1===e.enabled).map(e=>e.id),x=tu.length>0||n.length>0,h=e.length>0||i.length>0,(0,s.jsxs)("div",{className:"flex gap-2",children:[x&&(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:()=>ib(n),children:"Active All"}),h&&(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>iy(e,i),children:"Disable All"})]}))]}),!!eW&&(f=R(eW),y=function(e){if(!e)return"";let t=_(e);if(t&&t!==e)return t;let i=(0,p.Tl)(e);if(i&&i!==e)return i;let s=String(e).match(/^HTTP\s+\d+:\s*(?:\[(?:\d+|[A-Z0-9_]+)\]:\s*)?(.*)$/i);if(s&&s[1]){let e=s[1].trim(),t=(0,p.Tl)(e);if(t&&t!==e)return t}return(0,p.Tl)(e)}(eW),(0,s.jsxs)("p",{className:"text-xs text-red-500 mb-3 break-words",children:[y," ",f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("a",{href:f,target:"_blank",rel:"noopener noreferrer",title:(0,p.Tl)("Recommended: open in an incognito window and sign in with the affected account"),className:"text-blue-500 underline hover:text-blue-400",children:(0,p.Tl)("Verify your account")})," ",(0,s.jsx)("button",{type:"button",onClick:()=>tI(f,"verification"),className:"text-text-muted underline hover:text-primary",children:"verification"===tD?(0,p.Tl)("Copied"):(0,p.Tl)("Copy link")}),(0,s.jsxs)("span",{className:"text-text-muted",children:[" ","(",(0,p.Tl)("Recommended: open in an incognito window and sign in with the affected account"),")"]})]})]})),(()=>{let e,t,i;if(il)return(0,s.jsx)(H,{providerStorageAlias:ic,providerDisplayAlias:im,modelAliases:ej,customModels:ek,copied:tD,onCopy:tI,onSetAlias:i$,onDeleteAlias:iA,onAddCustomModel:(e,t)=>iO(e,"llm",ic,{},t),onToggleCustomModel:iI,onDeleteCustomModel:e=>iD(e,"llm",ic),onBulkCustomModels:iR,connections:E,isAnthropic:is});let l=[...t9,...td.filter(e=>!t9.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}),a=new Set(tu),n=l.filter(e=>!a.has(e.id)),r=l.filter(e=>a.has(e.id)),o=D({customModels:ek,modelAliases:ej,providerAlias:ic,builtInModels:t9,type:"llm"}),d=o.filter(e=>!1!==e.enabled),c=o.filter(e=>!1===e.enabled);return(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[ie&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(g,{promotion:ie})}),d.length+c.length>0&&(0,s.jsxs)("div",{className:"w-full flex items-center gap-2 text-xs text-text-muted -mb-1",children:[(0,s.jsxs)("span",{children:[(0,p.Tl)("Custom models")," (",d.length+c.length,")"]}),(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsx)("button",{onClick:()=>iR(!0),className:"text-primary hover:underline",children:(0,p.Tl)("Enable all")}),(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsx)("button",{onClick:()=>iR(!1),className:"text-text-muted hover:text-red-500 hover:underline",children:(0,p.Tl)("Disable all")})]}),d.map(e=>(0,s.jsx)(W,{model:{id:e.id,name:e.name},fullModel:`${im}/${e.id}`,alias:e.alias,copied:tD,onCopy:tI,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===e.source?iD(e.id,"llm",ic):iA(e.alias)},testStatus:eK[e.id],onTest:E.length>0||t1?()=>i0(e.id):void 0,isTesting:eH.has(e.id),isCustom:!0,isFree:!1,caps:w(`${j}/${e.id}`),baseCaps:k(`${j}/${e.id}`),onSaveCaps:t=>iP(e.id,t),capsPinned:iE(e.id),thinkingSuffix:id(e.id)},`${e.source}-${e.fullModel}`)),n.map(e=>{let t=`${ic}/${e.id}`,i=`${j}/${e.id}`,l=Object.entries(ej).find(([,e])=>e===t||e===i)?.[0];return(0,s.jsx)(W,{model:e,fullModel:`${im}/${e.id}`,alias:l,copied:tD,onCopy:tI,onSetAlias:t=>i$(e.id,t,ic),onDeleteAlias:()=>iA(l),testStatus:eK[e.id],onTest:E.length>0||t1?()=>i0(e.id):void 0,isTesting:eH.has(e.id),isFree:e.isFree,onDisable:()=>ix(e.id),caps:w(`${j}/${e.id}`),baseCaps:k(`${j}/${e.id}`),onSaveCaps:t=>iP(e.id,t),capsPinned:iE(e.id),thinkingSuffix:id(e.id)},e.id)}),(0,s.jsxs)("button",{onClick:()=>eQ(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"cline"===j&&E.some(e=>!1!==e.isActive)&&(0,s.jsxs)("button",{onClick:i_,disabled:ta,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:ta?{animation:"spin 1s linear infinite"}:void 0,children:ta?"progress_activity":"download"}),ta?(0,p.Tl)("Importing..."):(0,p.Tl)("Import from /models")]}),t7&&E.some(e=>!1!==e.isActive)&&(0,s.jsxs)("button",{onClick:iM,disabled:tE,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:tE?{animation:"spin 1s linear infinite"}:void 0,children:tE?"progress_activity":"download"}),tE?(0,p.Tl)("Fetching..."):(0,p.Tl)("xiaomi-mimo"===j?"Fetch MiMo Models":"Fetch Qoder Models")]}),iq&&"cline"!==j&&(0,s.jsxs)("button",{onClick:i_,disabled:ta||!E.some(e=>!1!==e.isActive),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:ta?{animation:"spin 1s linear infinite"}:void 0,children:ta?"progress_activity":"refresh"}),ta?(0,p.Tl)("Refreshing..."):(0,p.Tl)("Refresh Official Models")]}),ts.length>0&&(e=new Set([...Object.values(ej),...o.map(e=>e.fullModel)]),t=new Set(t9.map(e=>e.id)),0===(i=ts.filter(i=>!e.has(`${ic}/${i.id}`)&&!t.has(i.id))).length?null:(0,s.jsxs)("div",{className:"w-full mt-2",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(e=>(0,s.jsxs)("button",{onClick:async()=>{await iO(e.id,"llm",ic)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${e.name} \xb7 ${(e.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id.split("/").pop()]},e.id))})]})),(r.length>0||c.length>0)&&(0,s.jsxs)("div",{className:"w-full mt-2",children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",r.length+c.length,"):"]}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[c.map(e=>(0,s.jsx)(W,{model:{id:e.id,name:e.name},fullModel:`${im}/${e.id}`,copied:tD,onCopy:tI,testStatus:eK[e.id],onTest:E.length>0||t1?()=>i0(e.id):void 0,isTesting:eH.has(e.id),onEnable:()=>iI(e.id,!0),isCustom:!1,isFree:!1,caps:w(`${j}/${e.id}`),baseCaps:k(`${j}/${e.id}`),onSaveCaps:t=>iP(e.id,t),capsPinned:iE(e.id)},`custom-${e.fullModel}`)),r.map(e=>(0,s.jsx)(W,{model:e,fullModel:`${im}/${e.id}`,copied:tD,onCopy:tI,testStatus:eK[e.id],onTest:E.length>0||t1?()=>i0(e.id):void 0,isTesting:eH.has(e.id),onEnable:()=>ih(e.id),isFree:e.isFree,caps:w(`${j}/${e.id}`),baseCaps:k(`${j}/${e.id}`),onSaveCaps:t=>iP(e.id,t),capsPinned:iE(e.id),thinkingSuffix:id(e.id)},e.id))]})]})]})})()]}),iY,"kiro"===j?(0,s.jsx)(c.Mh,{isOpen:K,providerInfo:tZ,onSuccess:iF,onClose:()=>J(!1)}):"cursor"===j?(0,s.jsx)(c.G9,{isOpen:K,onSuccess:iF,onClose:()=>J(!1)}):"zed"===j?(0,s.jsx)(c.TE,{isOpen:K,providerInfo:tZ,onSuccess:iF,onClose:()=>J(!1)}):"gitlab"===j?(0,s.jsx)(c.vj,{isOpen:K,providerInfo:tZ,onSuccess:iF,onClose:()=>J(!1)}):(0,s.jsx)(c.LF,{isOpen:K,provider:j,providerInfo:tZ,onSuccess:iF,onClose:()=>J(!1)}),("xiaomi-mimo"===j||"mimo-desktop"===j)&&(0,s.jsx)(c.LH,{provider:j,isOpen:B,onSuccess:iF,onClose:()=>V(!1)}),"iflow"===j&&(0,s.jsx)(c.vE,{isOpen:G,onSuccess:()=>{iw(),Z(!1)},onClose:()=>Z(!1)}),(0,s.jsx)(X,{isOpen:et,provider:j,providerName:tZ.name,isCompatible:il,isAnthropic:is,authType:tZ?.authType,authHint:tZ?.authHint,website:tZ?.website,proxyPools:F,error:er,existingNames:E.map(e=>e.name).filter(Boolean),onSave:iL,onBulkDone:ik,onClose:()=>{eo(""),en(!1)}}),(0,s.jsx)(c.wI,{isOpen:ep,connection:eb,proxyPools:F,onSave:iK,onClose:()=>ex(!1)}),il&&(0,s.jsx)(Y,{isOpen:eh,node:U,onSave:iN,onClose:()=>ef(!1),isAnthropic:is}),!il&&(0,s.jsx)(ee,{isOpen:eG,providerAlias:ic,providerDisplayAlias:im,onSave:async(e,t,i,s)=>{await iO(e,i||"llm",ic,t||{},void 0,s),eQ(!1)},onClose:()=>eQ(!1)}),"codex"===j&&(0,s.jsx)(ei,{isOpen:ed,onClose:()=>ec(!1),onSuccess:iw}),"codebuddy-cn"===j&&(0,s.jsx)(es,{isOpen:eu,password:eU,onClose:()=>em(!1),onSuccess:iw}),(0,s.jsx)(el,{isOpen:tF,mode:tK,provider:j,providerName:tZ?.name,dashboardPassword:tW,onClose:()=>{tL(!1),tB("")},onSuccess:iw}),(0,s.jsxs)(c.aF,{isOpen:eD.open,onClose:()=>eI({open:!1,action:null,value:""}),title:(0,p.Tl)("Confirm Password"),size:"sm",footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{variant:"ghost",onClick:()=>eI({open:!1,action:null,value:""}),children:(0,p.Tl)("Cancel")}),(0,s.jsx)(c.$n,{variant:"primary",onClick:tz,disabled:!eD.value||eR,children:eR?(0,p.Tl)("Verifying..."):(0,p.Tl)("Confirm")})]}),children:[(0,s.jsx)("p",{className:"text-text-muted mb-3 text-sm",children:(0,p.Tl)("Enter your dashboard password to export OAuth accounts (the file will be encrypted with the transfer passphrase you pick next).")}),(0,s.jsx)(c.pd,{type:"password",reveal:!0,autoFocus:!0,value:eD.value,onChange:e=>eI(t=>({...t,value:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&eD.value&&tz()},placeholder:(0,p.Tl)("Password")}),eq&&(0,s.jsx)("p",{className:"text-xs text-red-500 mt-2",children:eq})]}),(0,s.jsx)(c.uo,{isOpen:th,onClose:()=>tf(!1),onConfirm:()=>{(window.localStorage.setItem(tR,"true"),tf(!1),tY)?tM():t_()},title:"Risk Notice",message:tZ?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,s.jsx)(c.uo,{isOpen:!!tp,onClose:()=>tx(null),onConfirm:tp?.onConfirm,title:tp?.title||"Confirm",message:tp?.message,variant:"danger"})]})}},70217:(e,t,i)=>{"use strict";function s(e,t){return!1===e?"default":"active"===t||"success"===t?"success":"error"===t||"expired"===t||"unavailable"===t?"error":"default"}i.d(t,{g:()=>s})},93578:(e,t,i)=>{Promise.resolve().then(i.bind(i,43941))}},e=>{e.O(0,[3170,305,5772,1321,5497,8441,3794,7358],()=>e(e.s=93578)),_N_E=e.O()}]);
|
|
14
|
+
]`;function ei({isOpen:e,onClose:t,onSuccess:i}){let[a,n]=(0,l.useState)(""),[r,o]=(0,l.useState)(!1),[d,u]=(0,l.useState)(""),[m,x]=(0,l.useState)(null),h=()=>{r||(n(""),u(""),x(null),t())},f=async()=>{var e;let t;u(""),x(null);let s=a.trim();if(!s)return;try{t=JSON.parse(s)}catch(e){u(`${(0,p.Tl)("Invalid JSON")}: ${e.message}`);return}let l=Array.isArray(e=t)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!l||0===l.length)return void u((0,p.Tl)("No accounts found in input"));o(!0);try{let e=await fetch("/api/oauth/codex/bulk-import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({accounts:l})}),t=await e.json();if(!e.ok)return void u(t?.error||`Request failed: ${e.status}`);x(t),t.success>0&&"function"==typeof i&&i()}catch(e){u(e.message||(0,p.Tl)("Request failed"))}finally{o(!1)}},g=m?.results?.filter(e=>!e.ok)||[];return(0,s.jsx)(c.aF,{isOpen:e,title:(0,p.Tl)("Bulk Add Codex Accounts"),onClose:h,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted",children:(0,p.Tl)("Paste an array of codex account JSON objects. Each must include accessToken (and ideally refreshToken, idToken).")}),(0,s.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[240px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:et,value:a,onChange:e=>n(e.target.value),disabled:r}),d&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:d}),m&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:`text-sm font-medium ${m.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",m.success," ",(0,p.Tl)("added"),m.failed>0?`, ✗ ${m.failed} ${(0,p.Tl)("failed")}`:""]}),g.length>0&&(0,s.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:g.map(e=>(0,s.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(c.$n,{onClick:f,fullWidth:!0,disabled:r||!a.trim(),children:r?(0,p.Tl)("Importing..."):(0,p.Tl)("Import All")}),(0,s.jsx)(c.$n,{onClick:h,variant:"ghost",fullWidth:!0,disabled:r,children:(0,p.Tl)("Close")})]})]})})}function es({isOpen:e,onClose:t,onSuccess:i,password:a=""}){let[n,r]=(0,l.useState)(""),[o,d]=(0,l.useState)(""),[u,m]=(0,l.useState)(!1),[x,h]=(0,l.useState)(""),[f,g]=(0,l.useState)(null),y=(0,l.useRef)(null),b=()=>{u||(r(""),d(""),h(""),g(null),y.current&&(y.current.value=""),t())},v=async()=>{let e;h(""),g(null);let t=n.trim();if(!t)return;try{e=JSON.parse(t)}catch(e){h(`${(0,p.Tl)("Invalid JSON")}: ${e.message}`);return}let s=Array.isArray(e)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!s||0===s.length)return void h((0,p.Tl)("No accounts found in input"));m(!0);try{let e=await fetch("/api/oauth/codebuddy-cn/bulk-import",{method:"POST",headers:{"Content-Type":"application/json",...a?{"x-10r-password":a}:{}},body:JSON.stringify({accounts:s})}),t=await e.json();if(!e.ok)return void h(401===e.status?(0,p.Tl)("Invalid password"):t?.error||`Request failed: ${e.status}`);g(t),(t.imported>0||t.updated>0)&&"function"==typeof i&&i()}catch(e){h(e.message||(0,p.Tl)("Request failed"))}finally{m(!1)}},j=f?.results?.filter(e=>!e.ok)||[],w=f?.skipped??0;return(0,s.jsx)(c.aF,{isOpen:e,title:(0,p.Tl)("Import CodeBuddy CN Accounts"),onClose:b,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(c.$n,{variant:"secondary",fullWidth:!0,icon:"upload_file",onClick:()=>y.current?.click(),disabled:u,children:o||(0,p.Tl)("Choose JSON file...")}),(0,s.jsx)("input",{ref:y,type:"file",accept:".json,application/json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(!t)return;d(t.name),h(""),g(null);let i=new FileReader;i.onload=()=>r(String(i.result||"")),i.onerror=()=>h((0,p.Tl)("Failed to read file")),i.readAsText(t)}})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute -top-2 left-2 bg-sidebar px-1 text-[10px] text-text-muted",children:(0,p.Tl)("Or paste JSON")}),(0,s.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 pt-4 text-sm font-mono resize-y min-h-[160px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:'[{ "access_token": "eyJ...", "refresh_token": "eyJ...", "nickname": "<nickname>" }]',value:n,onChange:e=>r(e.target.value),disabled:u})]}),x&&(0,s.jsx)("p",{className:"text-xs text-red-500 break-words",children:x}),f&&(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsxs)("div",{className:`text-sm font-medium ${f.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",f.imported," ",(0,p.Tl)("added"),", ",f.updated," ",(0,p.Tl)("updated"),w>0?`, ${w} ${(0,p.Tl)("skipped")}`:"",f.failed>0?`, ✗ ${f.failed} ${(0,p.Tl)("failed")}`:""]}),j.length>0&&(0,s.jsx)("ul",{className:"rounded border border-accent/20 bg-sidebar/50 p-2 text-xs font-mono max-h-40 overflow-y-auto",children:j.map(e=>(0,s.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(c.$n,{onClick:v,fullWidth:!0,disabled:u||!n.trim(),children:u?(0,p.Tl)("Importing..."):(0,p.Tl)("Import All")}),(0,s.jsx)(c.$n,{onClick:b,variant:"ghost",fullWidth:!0,disabled:u,children:(0,p.Tl)("Close")})]})]})})}function el({isOpen:e,mode:t,provider:i,providerName:a,dashboardPassword:n,onClose:r,onSuccess:o}){let[d,u]=(0,l.useState)(""),[m,x]=(0,l.useState)(""),[h,f]=(0,l.useState)(!1),[g,y]=(0,l.useState)(""),[b,v]=(0,l.useState)(null),[j,w]=(0,l.useState)(""),[k,N]=(0,l.useState)(null),T=(0,l.useRef)(null),C=(0,l.useRef)(null),S=e=>{clearTimeout(C.current),C.current=setTimeout(()=>{C.current=null,$(),r()},e)};(0,l.useEffect)(()=>()=>clearTimeout(C.current),[]);let $=()=>{u(""),x(""),f(!1),y(""),v(null),w(""),N(null),T.current&&(T.current.value="")},A={"Content-Type":"application/json","x-10r-password":n||""},O=async()=>{if(y(""),v(null),clearTimeout(C.current),d.length<4)return void y((0,p.Tl)("Passphrase must be at least 4 characters"));if(d!==m)return void y((0,p.Tl)("Passphrases do not match"));f(!0);try{let e=await fetch("/api/oauth/transfer/export",{method:"POST",headers:A,body:JSON.stringify({provider:i,passphrase:d})}),t=await e.json();if(!e.ok)throw Error((0,p.Tl)(t?.error)||`Request failed: ${e.status}`);let s=JSON.stringify(t.blob,null,2),l=URL.createObjectURL(new Blob([s],{type:"application/json"})),a=document.createElement("a");a.href=l,a.download=`oauth-${i}-transfer-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=>URL.revokeObjectURL(l),1e3),v({exported:t.count}),S(1200)}catch(e){y(e.message||(0,p.Tl)("Export failed"))}finally{f(!1)}},E=async()=>{if(y(""),v(null),clearTimeout(C.current),!k)return void y((0,p.Tl)("Pick a transfer file first"));if(!d)return void y((0,p.Tl)("Transfer passphrase required"));f(!0);try{let e=await fetch("/api/oauth/transfer/import",{method:"POST",headers:A,body:JSON.stringify({provider:i,passphrase:d,blob:k})}),t=await e.json();if(!e.ok){if(401===e.status&&/passphrase/i.test(t?.error||""))throw Error((0,p.Tl)("Wrong passphrase"));throw Error((0,p.Tl)(t?.error)||`Request failed: ${e.status}`)}v(t),"function"==typeof o&&o(),(t?.imported||0)+(t?.updated||0)>0&&S(1800)}catch(e){y(e.message||(0,p.Tl)("Import failed"))}finally{f(!1)}};return(0,s.jsx)(c.aF,{isOpen:e,title:"export"===t?(0,p.Tl)("Export OAuth accounts"):(0,p.Tl)("Import OAuth accounts"),onClose:()=>{h||(clearTimeout(C.current),C.current=null,$(),r())},children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:[(0,p.Tl)("Provider"),": ",(0,s.jsx)("span",{className:"font-medium text-text-main",children:a||i})]}),"export"===t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(c.pd,{type:"password",reveal:!0,label:(0,p.Tl)("Transfer passphrase"),value:d,onChange:e=>u(e.target.value),placeholder:"••••••••"}),(0,s.jsx)(c.pd,{type:"password",reveal:!0,label:(0,p.Tl)("Confirm passphrase"),value:m,onChange:e=>x(e.target.value),placeholder:"••••••••"})]}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:(0,p.Tl)("The file is encrypted with this passphrase — it is required again at import, and cannot be recovered.")}),g&&(0,s.jsx)("p",{className:"text-xs text-red-500",children:g}),b&&(0,s.jsxs)("p",{className:"text-xs text-green-600",children:[(0,p.Tl)("Export complete")," — ",b.exported," ",(0,p.Tl)("accounts exported")]}),(0,s.jsx)(c.$n,{onClick:O,disabled:h,fullWidth:!0,children:(0,p.Tl)("Export encrypted file")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.pd,{label:(0,p.Tl)("Transfer file"),value:j,readOnly:!0,placeholder:(0,p.Tl)("Pick a transfer file first"),className:"cursor-pointer",onClick:()=>T.current?.click()}),(0,s.jsx)("input",{ref:T,type:"file",accept:".json,application/json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(!t)return;w(t.name),y(""),v(null);let i=new FileReader;i.onload=()=>{try{let e=JSON.parse(String(i.result||""));if(e?.format!=="10router-oauth-secure-v1"){y((0,p.Tl)("Unrecognized transfer file (expected an encrypted OAuth transfer)")),N(null);return}N(e)}catch(e){y(`${(0,p.Tl)("Invalid JSON")}: ${e.message}`),N(null)}},i.onerror=()=>y((0,p.Tl)("Failed to read file")),i.readAsText(t)}}),(0,s.jsx)(c.pd,{type:"password",reveal:!0,label:(0,p.Tl)("Transfer passphrase"),value:d,onChange:e=>u(e.target.value),placeholder:"••••••••"}),g&&(0,s.jsx)("p",{className:"text-xs text-red-500",children:g}),b&&(0,s.jsx)("div",{className:"text-xs text-text-muted",children:(0,s.jsxs)("p",{children:[(0,p.Tl)("Import complete"),": ",b.imported||0," ",(0,p.Tl)("imported"),", ",b.updated||0," ",(0,p.Tl)("updated"),(b.failed||0)>0?`, ${b.failed} ${(0,p.Tl)("failed")}`:""]})}),(0,s.jsx)(c.$n,{onClick:E,disabled:h,fullWidth:!0,children:(0,p.Tl)("Import connections")})]})]})})}ei.propTypes={isOpen:z().bool.isRequired,onClose:z().func.isRequired,onSuccess:z().func},es.propTypes={isOpen:z().bool.isRequired,onClose:z().func.isRequired,onSuccess:z().func,password:z().string},el.propTypes={isOpen:z().bool.isRequired,mode:z().oneOf(["export","import"]).isRequired,provider:z().string.isRequired,providerName:z().string,dashboardPassword:z().string,onClose:z().func.isRequired,onSuccess:z().func};let ea={claude:"claudeAutoPing",codex:"codexAutoPing"};function en(){let e,t,i,n,x,h,f,y,b=(0,a.useParams)(),v=(0,a.useRouter)(),j=b.id,{getCaps:w,getBaseCaps:k,overrides:N,refresh:T}=(0,A.yU)(),C=(0,O.i)(),[E,I]=(0,l.useState)([]),[M,q]=(0,l.useState)(!0),[U,z]=(0,l.useState)(null),[F,L]=(0,l.useState)([]),[K,J]=(0,l.useState)(!1),[B,V]=(0,l.useState)(!1),[G,Z]=(0,l.useState)(!1),[et,en]=(0,l.useState)(!1),[er,eo]=(0,l.useState)(""),[ed,ec]=(0,l.useState)(!1),[eu,em]=(0,l.useState)(!1),[ep,ex]=(0,l.useState)(!1),[eh,ef]=(0,l.useState)(!1),[eg,ey]=(0,l.useState)(!1),[eb,ev]=(0,l.useState)(null),[ej,ew]=(0,l.useState)({}),[ek,eN]=(0,l.useState)([]),[eT,eC]=(0,l.useState)(!1),[eS,e$]=(0,l.useState)(!1),[eA,eO]=(0,l.useState)(!1),[eE,eP]=(0,l.useState)(!1),[eD,eI]=(0,l.useState)({open:!1,action:null,value:""}),[eR,eM]=(0,l.useState)(!1),[eq,e_]=(0,l.useState)(""),[eU,ez]=(0,l.useState)(""),[eF,eL]=(0,l.useState)(!1),[eK,eJ]=(0,l.useState)({}),[eW,eB]=(0,l.useState)(""),[eH,eV]=(0,l.useState)(()=>new Set),[eG,eQ]=(0,l.useState)(!1),[eZ,eX]=(0,l.useState)([]),[eY,e0]=(0,l.useState)("__none__"),[e1,e2]=(0,l.useState)(!1),[e5,e4]=(0,l.useState)(null),[e3,e6]=(0,l.useState)(""),[e8,e7]=(0,l.useState)(!1),[e9,te]=(0,l.useState)("auto"),[tt,ti]=(0,l.useState)({enabled:!1,connections:{}}),[ts,tl]=(0,l.useState)([]),[ta,tn]=(0,l.useState)(!1),[tr,to]=(0,l.useState)([]),[td,tc]=(0,l.useState)([]),[tu,tm]=(0,l.useState)([]),[tp,tx]=(0,l.useState)(null),[th,tf]=(0,l.useState)(!1),[tg,ty]=(0,l.useState)(!1),[tb,tv]=(0,l.useState)(!1),tj="__provider_default__",[tw,tk]=(0,l.useState)(tj),[tN,tT]=(0,l.useState)(null),[tC,tS]=(0,l.useState)({}),[t$,tA]=(0,l.useState)(null),tO=(0,l.useRef)(!1),[tE,tP]=(0,l.useState)(!1),{copied:tD,copy:tI}=(0,$.C)(),tR="ag_risk_confirmed",tM=()=>{"xiaomi-mimo"===j||"mimo-desktop"===j?V(!0):J(!0)},tq=()=>{"antigravity"===j&&"true"!==window.localStorage.getItem(tR)?tf(!0):tY?tM():(eo(""),en(!0))},t_=()=>{eo(""),en(!0)},tU=()=>{tY?tq():t_()},tz=async()=>{if(!eR){eM(!0),e_("");try{let e=await fetch("/api/auth/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:eD.value})});if(!e.ok){let t=await e.json().catch(()=>({}));e_(t?.error||(0,p.Tl)("Invalid password"));return}let{action:t,value:i}=eD;eI({open:!1,action:null,value:""}),"export"===t&&(tB(i),tJ(t),tL(!0))}catch(e){e_(e.message||(0,p.Tl)("Invalid password"))}finally{eM(!1)}}},[tF,tL]=(0,l.useState)(!1),[tK,tJ]=(0,l.useState)("export"),[tW,tB]=(0,l.useState)(""),tH=async()=>{eO(!0);try{let e=await fetch("/api/oauth/codebuddy-cn/checkin",{method:"POST",cache:"no-store"}),t=await e.json();if(!e.ok)throw Error(t?.error||`Request failed: ${e.status}`);let i=Array.isArray(t?.results)?t.results:[];if(0===i.length)return void C.warning((0,p.Tl)("No CodeBuddy CN connections to check in"));let s=i.filter(e=>"checked-in"===e.status).length,l=i.filter(e=>"already"===e.status).length,a=i.filter(e=>"failed"===e.status).length;0===a?C.success(`${(0,p.Tl)("Check-in complete")}: ${s} ${(0,p.Tl)("checked-in")}, ${l} ${(0,p.Tl)("already checked in")}`):C.error(`${(0,p.Tl)("Check-in complete with errors")}: ${a} ${(0,p.Tl)("failed")}`)}catch(e){C.error((0,p.Tl)("Check-in failed")+": "+e.message)}finally{eO(!1)}},tV=()=>(0,s.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:(0,s.jsx)(c.$n,{size:"sm",icon:"calendar_today",onClick:tH,disabled:eA,className:"w-full sm:w-auto",title:(0,p.Tl)("CodeBuddy CN auto-checks in daily (retries all day until confirmed)"),children:eA?(0,p.Tl)("Checking in..."):(0,p.Tl)("Check in now")})}),tG=async()=>{eP(!0);try{let e="qoder-cn"===j?"/api/oauth/qoder-cn/checkin":"/api/oauth/qoder/checkin",t=await fetch(e,{method:"POST",cache:"no-store"}),i=await t.json();if(!t.ok)throw Error(i?.error||`Request failed: ${t.status}`);let s=Array.isArray(i?.results)?i.results:[];if(0===s.length)return void C.warning((0,p.Tl)("No active Qoder connections found"));let l=s.filter(e=>"checked-in"===e.status),a=s.filter(e=>"already"===e.status),n=s.filter(e=>"no-activity"===e.status),r=s.filter(e=>"failed"===e.status),o=l.reduce((e,t)=>e+(t.claimedAmount||0),0);if(l.length>0)C.success(`${(0,p.Tl)("Claim successful")}: +${o} Credits (${l.length} ${(0,p.Tl)("accounts")})`);else if(r.length>0)C.error(`${(0,p.Tl)("Claim failed")}: ${r.map(e=>e.error).join(", ")}`);else if(n.length>0){let e=a.length>0?` / ${(0,p.Tl)("Daily credits already claimed for today")} (${a.length} ${(0,p.Tl)("accounts")})`:` (${n.length} ${(0,p.Tl)("accounts")})`;C.info((0,p.Tl)("No claimable activity available for this account")+e)}else C.info((0,p.Tl)("Daily credits already claimed for today"))}catch(e){C.error((0,p.Tl)("Claim failed")+": "+e.message)}finally{eP(!1)}},tQ=()=>(0,s.jsx)(c.$n,{size:"sm",icon:"redeem",variant:"secondary",onClick:tG,disabled:eE,className:"w-full sm:w-auto",title:(0,p.Tl)("Claim daily activity Credits"),children:eE?(0,p.Tl)("Claiming..."):(0,p.Tl)("Claim Credits")}),tZ=U?{id:U.id,name:U.name||("anthropic-compatible"===U.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===U.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===U.type?"AC":"OC",apiType:U.apiType,baseUrl:U.baseUrl,type:U.type}:u.zN[j]||u.fg[j]||u.IS[j]||u.nJ[j]||u.br[j],tX=tZ?.authModes||[],tY=!!u.zN[j]||!!u.IS[j]||tX.includes("oauth"),t0=!!u.fg[j]||tX.includes("apikey"),t1=!!u.IS[j]?.noAuth,t2="codebuddy-cn"===j,t5=tY&&tZ?.authModes?.includes("oauth")&&eT,t4=t2&&eS,t3=e=>t5&&!t4?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{size:"sm",icon:"file_download",variant:"secondary",onClick:()=>{ez(""),eI({open:!0,action:"export",value:""})},className:e,children:(0,p.Tl)("Export")}),(0,s.jsx)(c.$n,{size:"sm",icon:"upload_file",variant:"secondary",onClick:()=>{tJ("import"),tL(!0)},className:e,children:(0,p.Tl)("Import")})]}):null,t6=(0,m.KC)(j),t8="qoder"===j||"qoder-cn"===j,t7="qoder"===j||"qoder-cn"===j||"xiaomi-mimo"===j,t9="cursor"===j&&tr.length>0?tr:t8?function(e,t){if(!Array.isArray(e)||!Array.isArray(t)||0===t.length)return e;let i=new Map(t.map(e=>[String(e.id).split("/").pop(),e]));return e.map(e=>{let t=i.get(e.id);return t?{...e,rateMultiplier:"number"==typeof t.rateMultiplier?t.rateMultiplier:e.rateMultiplier,promotion:t.promotion??e.promotion??null}:e})}(t6,tr):t6,ie=t8&&t9.find(e=>e.promotion)?.promotion||null,it=(0,u.wG)(j),ii=(0,u.mq)(j),is=(0,u.gb)(j),il=ii||is,ia=!il&&tY&&t0,ir="xai"===j?"Grok Build OAuth":"grok-cli"===j?"Grok CLI Device Login":"kimi"===j?"Kimi Coding OAuth":"OAuth",io="xai"===j?"xAI API Key":"kimi"===j?"Kimi API Key":"qoder"===j?"PAT":"API Key",id=e=>{if(!e9||"auto"===e9)return null;let t=S(j,e);return t&&t.includes(e9)?e9:null},ic=il?j:it,iu=(()=>{let e=new Set,t=new Set,i=i=>{if(!i||t.has(i))return;t.add(i);let s=S(j,i);s&&s.forEach(t=>{"none"!==t&&e.add(t)})};for(let e of t9)i(e.id);for(let e of td)i(e.id);for(let e of ek)e.providerAlias===ic&&"llm"===(e.kind||e.type||"llm")&&i(e.id);return e.size?["auto",...e]:null})(),im=il?U?.prefix||j:it,ip=(0,l.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(ic)}`,{cache:"no-store"}),t=await e.json();e.ok&&tm(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[ic]),ix=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,ids:[e]})})).ok&&await ip()}catch(e){console.log("Error disabling model:",e)}},ih=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(ic)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await ip()}catch(e){console.log("Error enabling model:",e)}},ig=async(e,t)=>{await fetch("/api/models/custom",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,id:e,type:"llm",enabled:t})})},iy=async(e,t=[])=>{let i=e.length+t.length;i&&tx({title:"Disable All Models",message:`Disable all ${i} model(s)?`,onConfirm:async()=>{tx(null);try{for(let i of(e.length&&(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,ids:e})})).ok&&await ip(),t))await ig(i,!1);t.length&&await ij()}catch(e){console.log("Error disabling all models:",e)}}})},ib=async(e=[])=>{try{for(let t of((await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(ic)}`,{method:"DELETE"})).ok&&await ip(),e))await ig(t,!0);e.length&&await ij()}catch(e){console.log("Error enabling all models:",e)}},iv=(0,l.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&ew(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]),ij=(0,l.useCallback)(async()=>{try{let e=await fetch("/api/models/custom",{cache:"no-store"}),t=await e.json();e.ok&&eN(t.models||[])}catch(e){console.log("Error fetching custom models:",e)}},[]);(0,l.useEffect)(()=>{"kilocode"===j&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&tc(e.models)}).catch(()=>{})},[j]);let iw=(0,l.useCallback)(async()=>{try{let[e,t,i,s]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),l=await e.json(),a=await t.json(),n=await i.json(),r=s.ok?await s.json():{};if(e.ok){let e=(l.connections||[]).filter(e=>e.provider===j);I(e)}i.ok&&L(n.proxyPools||[]);let o=(r.providerStrategies||{})[j]||{};e4(o.fallbackStrategy||null),e6(null!=o.stickyRoundRobinLimit?String(o.stickyRoundRobinLimit):"1"),e7(!0===o.earliestExpiryFirst),eC(!0===r.codeBuddyOAuthImport);let d=(r.providerThinking||{})[j]||{};te(d.mode||"auto");let c=ea[j],u=c&&r[c]||{};if(ti({enabled:!0===u.enabled,connections:u.connections||{}}),t.ok){let e=(a.nodes||[]).find(e=>e.id===j)||null;if(!e&&il)for(let t=0;t<3;t+=1){await new Promise(e=>setTimeout(e,150));let t=await fetch("/api/provider-nodes",{cache:"no-store"});if(t.ok&&(e=((await t.json()).nodes||[]).find(e=>e.id===j)||null))break}z(e)}}catch(e){console.log("Error fetching connections:",e)}finally{q(!1)}},[j,il]),ik=(0,l.useCallback)(async()=>{await iw(),await ip()},[iw,ip]),iN=async e=>{try{let t=await fetch(`/api/provider-nodes/${j}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),i=await t.json();t.ok&&(z(i.node),await iw(),ef(!1))}catch(e){console.log("Error updating provider node:",e)}},iT=async(e,t,i=e8)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),l=(s.ok?await s.json():{}).providerStrategies||{},a={...l[j]||{}};e?a.fallbackStrategy=e:delete a.fallbackStrategy,"round-robin"===e&&""!==t?a.stickyRoundRobinLimit=Number(t)||3:delete a.stickyRoundRobinLimit,i?a.earliestExpiryFirst=!0:delete a.earliestExpiryFirst;let n={...l};0===Object.keys(a).length?delete n[j]:n[j]=a,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:n})})}catch(e){console.log("Error saving provider strategy:",e)}},iC=async e=>{try{let t=await fetch("/api/settings",{cache:"no-store"}),i={...(t.ok?await t.json():{}).providerThinking||{}};e&&"auto"!==e?i[j]={mode:e}:delete i[j],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:i})})}catch(e){console.log("Error saving thinking config:",e)}},iS=async e=>{let t=ea[j];if(t){ti(e);try{await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[t]:e})})}catch(e){console.log("Error saving auto-ping config:",e)}}};(0,l.useEffect)(()=>{iw(),iv(),ij(),ip()},[iw,iv,ij,ip]),(0,l.useEffect)(()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.json()).then(e=>{eC(!0===e.codeBuddyOAuthImport),"boolean"==typeof e.codeBuddyCheckin&&e$(e.codeBuddyCheckin)}).catch(e=>console.log("Error reading settings:",e))},[]),(0,l.useEffect)(()=>{if("cursor"!==j&&!t8)return void to([]);let e=E.find(e=>!1!==e.isActive);if(!e?.id)return void to([]);let t=!1;return fetch(`/api/providers/${e.id}/models`,{cache:"no-store"}).then(async e=>({ok:e.ok,data:await e.json()})).then(({ok:e,data:i})=>{!t&&e&&Array.isArray(i.models)&&i.models.length>0&&to(i.models)}).catch(()=>{}),()=>{t=!0}},[j,E]),(0,l.useEffect)(()=>{let e=(u.zN[j]||u.fg[j]||u.IS[j]||u.nJ[j])?.modelsFetcher;e&&P(e).then(tl)},[j]);let i$=async(e,t,i=it)=>{let s=`${i}/${e}`;try{let e=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:s,alias:t})});if(e.ok)await iv();else{let t=await e.json();C.error(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},iA=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await iv()}catch(e){console.log("Error deleting alias:",e)}},iO=async(e,t="llm",i=ic,s={},l,a)=>{try{let n={providerAlias:i,id:e,type:t};if(void 0!==l&&(n.enabled=l),a&&(n.transport=a),s&&"object"==typeof s)for(let e of["vision","reasoning","contextWindow","maxOutput","thinkingFormat"])void 0!==s[e]&&(n[e]=s[e]);let r=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(r.ok)await ij(),window.dispatchEvent(new CustomEvent("customModelChanged"));else{let e=await r.json();C.error(e.error||"Failed to add custom model")}}catch(e){console.log("Error adding custom model:",e)}},iE=e=>!!(N?.[ic]?.[e]||N?.[j]?.[e]),iP=async(e,t)=>{try{let i=await fetch("/api/models/caps",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:ic||j,modelId:e,...t||{}})});if(!i.ok){let e=await i.json().catch(()=>({}));C.error(e?.error||"Failed to save model settings");return}T()}catch(e){console.log("Error saving model caps:",e),C.error("Failed to save model settings")}},iD=async(e,t="llm",i=ic)=>{try{let s=new URLSearchParams({providerAlias:i,id:e,type:t});(await fetch(`/api/models/custom?${s}`,{method:"DELETE"})).ok&&(await ij(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error deleting custom model:",e)}},iI=async(e,t,i="llm")=>{try{(await fetch("/api/models/custom",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,id:e,type:i,enabled:t})})).ok&&(await ij(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error toggling custom model:",e)}},iR=(e,t="llm")=>{tx({title:e?(0,p.Tl)("Enable all custom models?"):(0,p.Tl)("Disable all custom models?"),message:e?(0,p.Tl)("All custom models of this provider will be listed in /v1/models and exposed to clients."):(0,p.Tl)("All custom models of this provider will disappear from /v1/models until re-enabled. Clients will no longer see them."),onConfirm:async()=>{tx(null);try{(await fetch("/api/models/custom/bulk",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:ic,type:t,enabled:e})})).ok&&(await ij(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error bulk-updating custom models:",e)}}})},iM=async()=>{if(tE)return;let e=E.find(e=>!1!==e.isActive);if(!e)return void C.warning("xiaomi-mimo"===j?(0,p.Tl)("Please add an active MiMo connection first"):(0,p.Tl)("Please add an active Qoder connection first"));tP(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),i=await t.json();if(!t.ok)return void C.error(i.error||(0,p.Tl)("Failed to fetch models"));let s=i.models||[];if(0===s.length)return void C.warning((0,p.Tl)("No models returned"));let l=0,a=0;for(let e of s){let t=e.id||e.name;if(!t)continue;if("llm"!==(e.kind||"llm")){a+=1;continue}let i=t.replace(/^qoder(-cn)?\//,"");!s.some(e=>e.id===i)&&(ek.some(e=>e.providerAlias===ic&&e.id===i&&"llm"===(e.kind||e.type||"llm"))||Object.values(ej).includes(`${ic}/${i}`)||(await iO(i,"llm",ic,{},!1),l+=1))}0===l?C.warning((0,p.Tl)("All models already exist, no new models added")):C.success((0,p.Tl)("Successfully added")+` ${l} `+(0,p.Tl)("models")),a>0&&C.info((0,p.Tl)("Media models skipped (use Media Providers)")+` (${a})`)}catch(e){console.log("Error importing Qoder models:",e),C.error((0,p.Tl)("Error fetching models")+": "+e.message)}finally{tP(!1)}},iq="opencode-go"===j||"bai"===j||"cline"===j,i_=async()=>{if(ta)return;let e=E.find(e=>!1!==e.isActive);if(!e?.id)return void C.warning((0,p.Tl)("Add a connection to enable importing models."));tn(!0);try{let t=await fetch(`/api/providers/${e.id}/models`,{cache:"no-store"}),i=await t.json();if(!t.ok)throw Error(i?.error||`Request failed: ${t.status}`);let s=(Array.isArray(i.models)?i.models:[]).map(e=>{let t=e?.id||e?.name||e?.model;return t?{...e,id:String(t),name:e.name||String(t)}:null}).filter(Boolean);tl(s),C.success(`${(0,p.Tl)("Models refreshed")} (${s.length})`)}catch(e){C.error((0,p.Tl)("Failed to fetch models")+": "+e.message)}finally{tn(!1)}},iU=async()=>{if(tg||0===E.length)return;let e=Object.fromEntries(E.map(e=>[e.id,{state:"queued",error:null}]));tO.current=!1,ty(!0),tv(!1),tT(null),tS(e),tA({total:E.length,completed:0,passed:0,failed:0,stopped:!1});let t=0,i=0;try{for(let e=0;e<E.length;e+=1){if(tO.current){tA({total:E.length,completed:e,passed:t,failed:i,stopped:!0});break}let s=E[e];tT(s.id),tS(e=>({...e,[s.id]:{state:"testing",error:null}}));try{let e=t9.some(e=>e.id===tw)?tw:null,l=await fetch(`/api/providers/${s.id}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e&&e!==tj?{model:e}:{})}),a=await l.json(),n=!!a.valid;n?t+=1:i+=1,tS(e=>({...e,[s.id]:{state:n?"success":"failed",error:n?null:a.error||null}}))}catch(e){i+=1,tS(t=>({...t,[s.id]:{state:"failed",error:e.message||"Test failed"}}))}tA({total:E.length,completed:e+1,passed:t,failed:i,stopped:!1}),e<E.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{tT(null),ty(!1),tv(!1),tO.current=!1,iw()}},iz=async e=>{tx({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{tx(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&I(t=>t.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},iF=()=>{eB(""),eJ({}),tS({}),tA(null),iw(),J(!1)},iL=async e=>{eo("");try{let t=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:j,...e})}),i=null;try{i=await t.json()}catch{i=null}if(t.ok){eB(""),eJ({}),await ik(),en(!1);return}eo(i?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),eo("Failed to save connection")}},iK=async e=>{try{(await fetch(`/api/providers/${eb.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(eB(""),eJ({}),tS({}),tA(null),await iw(),ex(!1))}catch(e){console.log("Error updating connection:",e)}},iJ=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&I(i=>i.map(i=>i.id===e?{...i,isActive:t}:i))}catch(e){console.log("Error updating connection status:",e)}},iW=async(e,t)=>{let i=[...E];[i[e],i[t]]=[i[t],i[e]],I(i);try{await Promise.all([fetch(`/api/providers/${i[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${i[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch(e){console.log("Error swapping priority:",e),await iw()}},iB=E.filter(e=>eZ.includes(e.id)),iH=E.length>0&&eZ.length===E.length;(0,l.useEffect)(()=>{eX(e=>e.filter(e=>E.some(t=>t.id===e)))},[E]),(()=>{if(0===iB.length)return;let e=new Set(iB.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return;let i=F.find(e=>e.id===t);return i?.name}})();let iV=()=>{e1||ey(!1)},iG=async e=>{e2(!0);try{let t=0;for(let{connectionId:i,proxyPoolId:s}of e)try{(await fetch(`/api/providers/${i}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:s})})).ok||(t+=1)}catch(e){console.log("Error applying proxy for",i,e),t+=1}t>0&&alert(`Updated with ${t} failed request(s).`),await iw(),ey(!1)}finally{e2(!1)}},iQ=e=>iG(E.map(t=>({connectionId:t.id,proxyPoolId:e}))),iZ=(0,s.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:E.map((e,t)=>{let i;return(0,s.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,s.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,s.jsx)("input",{type:"checkbox",checked:(i=e.id,eZ.includes(i)),onChange:()=>{var t;return t=e.id,void eX(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"h-4 w-4 rounded border-gray-300 text-primary focus:ring-primary"})}),(0,s.jsx)("div",{className:"flex-1 min-w-0",children:(0,s.jsx)(Q,{connection:e,proxyPools:F,isOAuth:tY,isFirst:0===t,isLast:t===E.length-1,onMoveUp:()=>iW(t,t-1),onMoveDown:()=>iW(t,t+1),onToggleActive:t=>iJ(e.id,t),autoPing:ea[j]&&"oauth"===e.authType?{on:!0===tt.connections[e.id],onToggle:t=>{var i;return i=e.id,void iS({...tt,connections:{...tt.connections,[i]:t}})},provider:j}:null,onUpdateProxy:async t=>{try{(await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&I(i=>i.map(i=>i.id===e.id?{...i,providerSpecificData:{...i.providerSpecificData,proxyPoolId:t||null}}:i))}catch(e){console.log("Error updating proxy:",e)}},onEdit:()=>{ev(e),ex(!0)},onDelete:()=>iz(e.id),oneByOneStatus:tC[e.id]||null})})]},e.id)})}),iX=F.filter(e=>!0===e.isActive),iY=(0,s.jsx)(c.aF,{isOpen:eg,onClose:iV,title:`Apply Proxy (${E.length} connections)`,children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsxs)("button",{onClick:()=>{let e=F.filter(e=>!0===e.isActive);return 0===e.length?void C.warning("No active proxy pools available."):iG(E.map((t,i)=>({connectionId:t.id,proxyPoolId:e[i%e.length].id})))},disabled:e1||0===iX.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,s.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,s.jsxs)("button",{onClick:()=>iQ(null),disabled:e1,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,s.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),F.map(e=>(0,s.jsxs)("button",{onClick:()=>iQ(e.id),disabled:e1||!0!==e.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,s.jsx)("span",{className:"truncate text-sm text-text-main",children:e.name}),!0!==e.isActive&&(0,s.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},e.id))]}),e1&&(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,s.jsx)(c.$n,{onClick:iV,variant:"ghost",fullWidth:!0,disabled:e1,children:"Cancel"})]})}),i0=async e=>{if(!eH.has(e)){eV(t=>new Set(t).add(e));try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${ic}/${e}`})}),i=await t.json();eJ(t=>({...t,[e]:i.ok?"ok":"error"})),eB(i.ok?"":i.error||"Model not reachable")}catch{eJ(t=>({...t,[e]:"error"})),eB("Network error")}finally{setTimeout(()=>{iw()},600),eV(t=>{let i=new Set(t);return i.delete(e),i})}}};if(M)return(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(c.Qv,{}),(0,s.jsx)(c.Qv,{})]});if(!tZ)return(0,s.jsxs)("div",{className:"text-center py-20",children:[(0,s.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,s.jsx)(r(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let i1=()=>ii&&tZ.apiType?"responses"===tZ.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":is?"/providers/anthropic-m.png":(0,d.HY)(tZ.id);return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)(r(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,s.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${tZ.color}15`},children:eF||!i1()?(0,s.jsx)("span",{className:"text-sm font-bold",style:{color:tZ.color},children:tZ.textIcon||tZ.id.slice(0,2).toUpperCase()}):(0,s.jsx)(o.default,{src:i1(),alt:tZ.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,d.Kw)(tZ.id),eL(!0)},loading:"lazy",decoding:"async"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,s.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:tZ.name}),(tZ.notice?.webUrl||tZ.notice?.apiKeyUrl||tZ.notice?.signupUrl||tZ.website)&&(0,s.jsxs)("a",{href:tZ.notice?.webUrl||tZ.notice?.apiKeyUrl||tZ.notice?.signupUrl||tZ.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),tZ.notice?.webUrl?"Web console":tZ.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]}),(0,s.jsx)(c.N5,{code:tZ.notice?.inviteCode})]}),!t1&&(0,s.jsx)("p",{className:"text-text-muted",children:1===E.length?(0,p.Tl)("1 connection"):(0,p.Tl)("{n} connections").replace("{n}",String(E.length))})]})]})]}),tZ.deprecated&&(0,s.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,s.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:tZ.deprecationNotice})]}),tZ.notice?.text&&!tZ.deprecated&&(0,s.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,s.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:(0,p.Tl)(tZ.notice.text)}),tZ.notice.apiKeyUrl&&(0,s.jsx)("a",{href:tZ.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:(0,p.Tl)("Get API Key →")})]}),il&&U&&(0,s.jsx)(c.Zp,{children:(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:is?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,s.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[is?"Messages API":"responses"===U.apiType?"Responses API":"Chat Completions"," \xb7 ",(U.baseUrl||"").replace(/\/$/,""),"/",is?"messages":"responses"===U.apiType?"responses":"chat/completions"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,s.jsx)(c.$n,{size:"sm",icon:"add",onClick:()=>{eo(""),en(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ef(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{tx({title:"Delete Compatible Node",message:`Delete this ${is?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{tx(null);try{(await fetch(`/api/provider-nodes/${j}`,{method:"DELETE"})).ok&&v.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),t1?(0,s.jsx)(c.gw,{providerId:j}):(0,s.jsxs)(c.Zp,{children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[E.length>0&&F.length>0&&(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ey(!0),children:"Apply Proxy"}),E.length>0&&(0,s.jsxs)(s.Fragment,{children:[eZ.length>0&&(0,s.jsxs)(c.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let e=eZ.length;0!==e&&tx({title:`Delete ${e} Connection${e>1?"s":""}`,message:`Delete ${e} connection${e>1?"s":""}? This cannot be undone.`,onConfirm:async()=>{tx(null);let e=0,t=[...eZ];for(let i of t)try{(await fetch(`/api/providers/${i}`,{method:"DELETE"})).ok||(e+=1)}catch(t){console.log("Error deleting connection:",t),e+=1}I(e=>e.filter(e=>!t.includes(e.id))),eX([]),e>0&&alert(`Deleted ${t.length-e} connection(s), ${e} failed.`)}})},children:["Delete Selected (",eZ.length,")"]}),E.length>0&&t9.length>1&&(0,s.jsx)(c.l6,{value:tw,onChange:e=>tk(e.target.value),disabled:tg,options:[{value:tj,label:(0,p.Tl)("Provider default")},...t9.filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}).map(e=>({value:e.id,label:e.name||e.id}))],selectClassName:"!py-2 !text-xs w-44"}),(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:iU,disabled:tg,children:tg?(0,p.Tl)("Testing Connection One-by-One..."):(0,p.Tl)("Test Connection One-by-One")}),tg&&(0,s.jsx)(c.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{tg&&(tO.current=!0,tv(!0))},disabled:tb,children:tb?(0,p.Tl)("Stopping..."):(0,p.Tl)("Stop")})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted font-medium",title:(0,p.Tl)("Prioritize accounts with quota packages that expire soonest"),children:(0,p.Tl)("Earliest Expiry First")}),(0,s.jsx)(c.lM,{checked:e8,onChange:e=>{e7(e),iT(e5,e3,e)}})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,p.Tl)("Round Robin")}),(0,s.jsx)(c.lM,{checked:"round-robin"===e5,onChange:e=>{let t=e?"round-robin":null,i=e?e3||"1":e3;e&&!e3&&e6("1"),e4(t),iT(t,i,e8)}}),"round-robin"===e5&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("span",{className:"text-xs text-text-muted",children:(0,p.Tl)("Sticky:")}),(0,s.jsx)("input",{type:"number",min:1,value:e3,onChange:e=>{var t;e6(t=e.target.value),iT("round-robin",t,e8)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-surface focus:outline-none focus:border-primary"})]})]})]})]}),0===E.length?(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:tY?"lock":"key"})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),ia&&(0,s.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",ir," or ",io,"."]})]})]}),(0,s.jsx)("div",{className:"flex gap-2",children:ia?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tq,children:ir}),(0,s.jsx)(c.$n,{size:"sm",icon:"key",onClick:t_,children:io}),t3(),t4&&tV()]}):(0,s.jsxs)(s.Fragment,{children:[!il&&"iflow"===j&&(0,s.jsx)(c.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>Z(!0),children:"Cookie"}),("qoder"===j||"qoder-cn"===j)&&tQ(),"codex"===j&&(0,s.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ec(!0),children:(0,p.Tl)("Bulk Add")}),(0,s.jsx)(c.$n,{size:"sm",icon:"add",onClick:tU,children:il?"Add API Key":"iflow"===j?"OAuth":"mimo-desktop"===j?(0,s.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,p.Tl)("Connect with Desktop Session"),(0,s.jsx)(c.m_,{text:(0,p.Tl)("Requires sign-in to Xiaomi MiMo Desktop app first"),position:"top",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] opacity-60",children:"info"})})]}):"Add Connection"}),t3()]})})]}):(0,s.jsxs)(s.Fragment,{children:[t$&&(0,s.jsx)("div",{className:"mb-4 rounded-lg 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,s.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,s.jsxs)("span",{children:[(0,p.Tl)("Total:")," ",t$.total]}),(0,s.jsxs)("span",{children:[(0,p.Tl)("Completed:")," ",t$.completed]}),(0,s.jsxs)("span",{children:[(0,p.Tl)("Passed:")," ",t$.passed]}),(0,s.jsxs)("span",{children:[(0,p.Tl)("Failed:")," ",t$.failed]}),t$.stopped&&(0,s.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:(0,p.Tl)("Stopped")}),tg&&tN&&(0,s.jsxs)("span",{children:[(0,p.Tl)("Running:")," ",E.find(e=>e.id===tN)?.name||tN]})]})}),E.length>0&&(0,s.jsx)("div",{className:"mb-3 flex items-center gap-2 border-b border-black/[0.03] pb-2 dark:border-white/[0.03]",children:(0,s.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,s.jsx)("input",{type:"checkbox",checked:iH,onChange:()=>{iH?eX([]):eX(E.map(e=>e.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),"Select All"]})}),iZ,!il&&(0,s.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===j&&(0,s.jsx)(c.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>Z(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===j&&(0,s.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ec(!0),title:(0,p.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,p.Tl)("Bulk Add")}),ia?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tq,className:"w-full sm:w-auto",children:ir}),(0,s.jsx)(c.$n,{size:"sm",icon:"key",onClick:t_,className:"w-full sm:w-auto",children:io}),t3("w-full sm:w-auto"),t4&&tV(),("qoder"===j||"qoder-cn"===j)&&tQ()]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{size:"sm",icon:"add",onClick:tU,className:"w-full sm:w-auto",children:"Add"}),t3("w-full sm:w-auto")]})]})]})]}),(0,s.jsxs)(c.Zp,{children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),iu&&(0,s.jsx)("select",{value:e9,onChange:e=>{var t;te(t=e.target.value),iC(t)},title:"Appends (level) suffix to copied model names",className:"rounded-md border border-border bg-surface px-2 py-1 text-xs focus:border-primary focus:outline-none",children:iu.map(e=>(0,s.jsx)("option",{value:e,children:`Thinking: ${e.charAt(0).toUpperCase()+e.slice(1)}`},e))})]}),!il&&(e=[...t9,...td.filter(e=>!t9.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}).map(e=>e.id).filter(e=>!tu.includes(e)),i=(t=ek.filter(e=>e?.providerAlias===ic&&"llm"===(e.kind||e.type||"llm"))).filter(e=>!1!==e.enabled).map(e=>e.id),n=t.filter(e=>!1===e.enabled).map(e=>e.id),x=tu.length>0||n.length>0,h=e.length>0||i.length>0,(0,s.jsxs)("div",{className:"flex gap-2",children:[x&&(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:()=>ib(n),children:"Active All"}),h&&(0,s.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>iy(e,i),children:"Disable All"})]}))]}),!!eW&&(f=R(eW),y=function(e){if(!e)return"";let t=_(e);if(t&&t!==e)return t;let i=(0,p.Tl)(e);if(i&&i!==e)return i;let s=String(e).match(/^HTTP\s+\d+:\s*(?:\[(?:\d+|[A-Z0-9_]+)\]:\s*)?(.*)$/i);if(s&&s[1]){let e=s[1].trim(),t=(0,p.Tl)(e);if(t&&t!==e)return t}return(0,p.Tl)(e)}(eW),(0,s.jsxs)("p",{className:"text-xs text-red-500 mb-3 break-words",children:[y," ",f&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("a",{href:f,target:"_blank",rel:"noopener noreferrer",title:(0,p.Tl)("Recommended: open in an incognito window and sign in with the affected account"),className:"text-blue-500 underline hover:text-blue-400",children:(0,p.Tl)("Verify your account")})," ",(0,s.jsx)("button",{type:"button",onClick:()=>tI(f,"verification"),className:"text-text-muted underline hover:text-primary",children:"verification"===tD?(0,p.Tl)("Copied"):(0,p.Tl)("Copy link")}),(0,s.jsxs)("span",{className:"text-text-muted",children:[" ","(",(0,p.Tl)("Recommended: open in an incognito window and sign in with the affected account"),")"]})]})]})),(()=>{let e,t,i;if(il)return(0,s.jsx)(H,{providerStorageAlias:ic,providerDisplayAlias:im,modelAliases:ej,customModels:ek,copied:tD,onCopy:tI,onSetAlias:i$,onDeleteAlias:iA,onAddCustomModel:(e,t)=>iO(e,"llm",ic,{},t),onToggleCustomModel:iI,onDeleteCustomModel:e=>iD(e,"llm",ic),onBulkCustomModels:iR,connections:E,isAnthropic:is});let l=[...t9,...td.filter(e=>!t9.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}),a=new Set(tu),n=l.filter(e=>!a.has(e.id)),r=l.filter(e=>a.has(e.id)),o=D({customModels:ek,modelAliases:ej,providerAlias:ic,builtInModels:t9,type:"llm"}),d=o.filter(e=>!1!==e.enabled),c=o.filter(e=>!1===e.enabled);return(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[ie&&(0,s.jsx)("div",{className:"w-full",children:(0,s.jsx)(g,{promotion:ie})}),d.length+c.length>0&&(0,s.jsxs)("div",{className:"w-full flex items-center gap-2 text-xs text-text-muted -mb-1",children:[(0,s.jsxs)("span",{children:[(0,p.Tl)("Custom models")," (",d.length+c.length,")"]}),(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsx)("button",{onClick:()=>iR(!0),className:"text-primary hover:underline",children:(0,p.Tl)("Enable all")}),(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsx)("button",{onClick:()=>iR(!1),className:"text-text-muted hover:text-red-500 hover:underline",children:(0,p.Tl)("Disable all")})]}),d.map(e=>(0,s.jsx)(W,{model:{id:e.id,name:e.name},fullModel:`${im}/${e.id}`,alias:e.alias,copied:tD,onCopy:tI,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===e.source?iD(e.id,"llm",ic):iA(e.alias)},testStatus:eK[e.id],onTest:E.length>0||t1?()=>i0(e.id):void 0,isTesting:eH.has(e.id),isCustom:!0,isFree:!1,caps:w(`${j}/${e.id}`),baseCaps:k(`${j}/${e.id}`),onSaveCaps:t=>iP(e.id,t),capsPinned:iE(e.id),thinkingSuffix:id(e.id)},`${e.source}-${e.fullModel}`)),n.map(e=>{let t=`${ic}/${e.id}`,i=`${j}/${e.id}`,l=Object.entries(ej).find(([,e])=>e===t||e===i)?.[0];return(0,s.jsx)(W,{model:e,fullModel:`${im}/${e.id}`,alias:l,copied:tD,onCopy:tI,onSetAlias:t=>i$(e.id,t,ic),onDeleteAlias:()=>iA(l),testStatus:eK[e.id],onTest:E.length>0||t1?()=>i0(e.id):void 0,isTesting:eH.has(e.id),isFree:e.isFree,onDisable:()=>ix(e.id),caps:w(`${j}/${e.id}`),baseCaps:k(`${j}/${e.id}`),onSaveCaps:t=>iP(e.id,t),capsPinned:iE(e.id),thinkingSuffix:id(e.id)},e.id)}),(0,s.jsxs)("button",{onClick:()=>eQ(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"cline"===j&&E.some(e=>!1!==e.isActive)&&(0,s.jsxs)("button",{onClick:i_,disabled:ta,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:ta?{animation:"spin 1s linear infinite"}:void 0,children:ta?"progress_activity":"download"}),ta?(0,p.Tl)("Importing..."):(0,p.Tl)("Import from /models")]}),t7&&E.some(e=>!1!==e.isActive)&&(0,s.jsxs)("button",{onClick:iM,disabled:tE,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:tE?{animation:"spin 1s linear infinite"}:void 0,children:tE?"progress_activity":"download"}),tE?(0,p.Tl)("Fetching..."):(0,p.Tl)("xiaomi-mimo"===j?"Fetch MiMo Models":"Fetch Qoder Models")]}),iq&&"cline"!==j&&(0,s.jsxs)("button",{onClick:i_,disabled:ta||!E.some(e=>!1!==e.isActive),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-sm",style:ta?{animation:"spin 1s linear infinite"}:void 0,children:ta?"progress_activity":"refresh"}),ta?(0,p.Tl)("Refreshing..."):(0,p.Tl)("Refresh Official Models")]}),ts.length>0&&(e=new Set([...Object.values(ej),...o.map(e=>e.fullModel)]),t=new Set(t9.map(e=>e.id)),0===(i=ts.filter(i=>!e.has(`${ic}/${i.id}`)&&!t.has(i.id))).length?null:(0,s.jsxs)("div",{className:"w-full mt-2",children:[(0,s.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(e=>(0,s.jsxs)("button",{onClick:async()=>{await iO(e.id,"llm",ic)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${e.name} \xb7 ${(e.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id.split("/").pop()]},e.id))})]})),(r.length>0||c.length>0)&&(0,s.jsxs)("div",{className:"w-full mt-2",children:[(0,s.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",r.length+c.length,"):"]}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[c.map(e=>(0,s.jsx)(W,{model:{id:e.id,name:e.name},fullModel:`${im}/${e.id}`,copied:tD,onCopy:tI,testStatus:eK[e.id],onTest:E.length>0||t1?()=>i0(e.id):void 0,isTesting:eH.has(e.id),onEnable:()=>iI(e.id,!0),isCustom:!1,isFree:!1,caps:w(`${j}/${e.id}`),baseCaps:k(`${j}/${e.id}`),onSaveCaps:t=>iP(e.id,t),capsPinned:iE(e.id)},`custom-${e.fullModel}`)),r.map(e=>(0,s.jsx)(W,{model:e,fullModel:`${im}/${e.id}`,copied:tD,onCopy:tI,testStatus:eK[e.id],onTest:E.length>0||t1?()=>i0(e.id):void 0,isTesting:eH.has(e.id),onEnable:()=>ih(e.id),isFree:e.isFree,caps:w(`${j}/${e.id}`),baseCaps:k(`${j}/${e.id}`),onSaveCaps:t=>iP(e.id,t),capsPinned:iE(e.id),thinkingSuffix:id(e.id)},e.id))]})]})]})})()]}),iY,"kiro"===j?(0,s.jsx)(c.Mh,{isOpen:K,providerInfo:tZ,onSuccess:iF,onClose:()=>J(!1)}):"cursor"===j?(0,s.jsx)(c.G9,{isOpen:K,onSuccess:iF,onClose:()=>J(!1)}):"zed"===j?(0,s.jsx)(c.TE,{isOpen:K,providerInfo:tZ,onSuccess:iF,onClose:()=>J(!1)}):"gitlab"===j?(0,s.jsx)(c.vj,{isOpen:K,providerInfo:tZ,onSuccess:iF,onClose:()=>J(!1)}):(0,s.jsx)(c.LF,{isOpen:K,provider:j,providerInfo:tZ,onSuccess:iF,onClose:()=>J(!1)}),("xiaomi-mimo"===j||"mimo-desktop"===j)&&(0,s.jsx)(c.LH,{provider:j,isOpen:B,onSuccess:iF,onClose:()=>V(!1)}),"iflow"===j&&(0,s.jsx)(c.vE,{isOpen:G,onSuccess:()=>{iw(),Z(!1)},onClose:()=>Z(!1)}),(0,s.jsx)(X,{isOpen:et,provider:j,providerName:tZ.name,isCompatible:il,isAnthropic:is,authType:tZ?.authType,authHint:tZ?.authHint,website:tZ?.website,proxyPools:F,error:er,existingNames:E.map(e=>e.name).filter(Boolean),onSave:iL,onBulkDone:ik,onClose:()=>{eo(""),en(!1)}}),(0,s.jsx)(c.wI,{isOpen:ep,connection:eb,proxyPools:F,onSave:iK,onClose:()=>ex(!1)}),il&&(0,s.jsx)(Y,{isOpen:eh,node:U,onSave:iN,onClose:()=>ef(!1),isAnthropic:is}),!il&&(0,s.jsx)(ee,{isOpen:eG,providerAlias:ic,providerDisplayAlias:im,onSave:async(e,t,i,s)=>{await iO(e,i||"llm",ic,t||{},void 0,s),eQ(!1)},onClose:()=>eQ(!1)}),"codex"===j&&(0,s.jsx)(ei,{isOpen:ed,onClose:()=>ec(!1),onSuccess:iw}),"codebuddy-cn"===j&&(0,s.jsx)(es,{isOpen:eu,password:eU,onClose:()=>em(!1),onSuccess:iw}),(0,s.jsx)(el,{isOpen:tF,mode:tK,provider:j,providerName:tZ?.name,dashboardPassword:tW,onClose:()=>{tL(!1),tB("")},onSuccess:iw}),(0,s.jsxs)(c.aF,{isOpen:eD.open,onClose:()=>eI({open:!1,action:null,value:""}),title:(0,p.Tl)("Confirm Password"),size:"sm",footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.$n,{variant:"ghost",onClick:()=>eI({open:!1,action:null,value:""}),children:(0,p.Tl)("Cancel")}),(0,s.jsx)(c.$n,{variant:"primary",onClick:tz,disabled:!eD.value||eR,children:eR?(0,p.Tl)("Verifying..."):(0,p.Tl)("Confirm")})]}),children:[(0,s.jsx)("p",{className:"text-text-muted mb-3 text-sm",children:(0,p.Tl)("Enter your dashboard password to export OAuth accounts (the file will be encrypted with the transfer passphrase you pick next).")}),(0,s.jsx)(c.pd,{type:"password",reveal:!0,autoFocus:!0,value:eD.value,onChange:e=>eI(t=>({...t,value:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&eD.value&&tz()},placeholder:(0,p.Tl)("Password")}),eq&&(0,s.jsx)("p",{className:"text-xs text-red-500 mt-2",children:eq})]}),(0,s.jsx)(c.uo,{isOpen:th,onClose:()=>tf(!1),onConfirm:()=>{(window.localStorage.setItem(tR,"true"),tf(!1),tY)?tM():t_()},title:"Risk Notice",message:tZ?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,s.jsx)(c.uo,{isOpen:!!tp,onClose:()=>tx(null),onConfirm:tp?.onConfirm,title:tp?.title||"Confirm",message:tp?.message,variant:"danger"})]})}},70217:(e,t,i)=>{"use strict";function s(e,t){return!1===e?"default":"active"===t||"success"===t?"success":"error"===t||"expired"===t||"unavailable"===t?"error":"default"}i.d(t,{g:()=>s})},93578:(e,t,i)=>{Promise.resolve().then(i.bind(i,43941))}},e=>{e.O(0,[3170,305,5772,1321,5497,8441,3794,7358],()=>e(e.s=93578)),_N_E=e.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-1058a44b968ee535.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-1058a44b968ee535.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,293,335,342,371,383,387,501,516,543,552,591,639,649,675,710,747,748,907,931,948,992,997,999,1020,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1946,1949,2121,2185,2198,2284,2296,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3397,3472,3486,3549,3562,3568,3648,3690,3739,3832,3883,3888,3889,3997,4010,4061,4093,4245,4286,4310,4422,4444,4527,4612,4648,4656,4664,4666,4674,4736,4761,4765,4896,4993,5018,5107,5156,5177,5211,5226,5247,5293,5466,5637,5685,5693,5745,5826,5922,6091,6102,6107,6121,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6811,6819,6869,6919,6988,6996,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,8026,8141,8167,8207,8246,8264,8453,8489,8573,8648,8736,8791,8814,8822,8832,8835,8870,8879,8948,8974,8975,9027,9033,9036,9056,9069,9088,9120,9141,9199,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|