@techysy/10router 1.6.2 → 1.6.4-test.1
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 +40 -38
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +2 -2
- package/app/.next-cli-build/routes-manifest.json +12 -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 +4 -4
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/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 +2 -2
- 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 +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/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 +3 -3
- 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 +1 -1
- 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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/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 +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/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/external-quota/[source]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/external-quota/[source]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/gateway-probe/route.js +1 -1
- package/app/.next-cli-build/server/app/api/gateway-probe/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/claim-compensation/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/claim-compensation/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/loomy/sms-login/route.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/loomy/sms-login/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/loomy/sms-login/route_client-reference-manifest.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/loomy/sms-send/route.js +1 -0
- package/app/.next-cli-build/server/app/api/oauth/loomy/sms-send/route.js.nft.json +1 -0
- package/app/.next-cli-build/server/app/api/oauth/loomy/sms-send/route_client-reference-manifest.js +1 -0
- 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 +1 -1
- 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 +2 -2
- 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 -2
- 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 +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/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 +2 -2
- 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/rerank/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/rerank/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 -2
- 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 -2
- package/app/.next-cli-build/server/app/api/version/shell-update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/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 +40 -38
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/1622.js +1 -1
- package/app/.next-cli-build/server/chunks/1806.js +1 -1
- package/app/.next-cli-build/server/chunks/1884.js +1 -1
- package/app/.next-cli-build/server/chunks/2380.js +1 -1
- package/app/.next-cli-build/server/chunks/241.js +1 -1
- package/app/.next-cli-build/server/chunks/318.js +4 -4
- package/app/.next-cli-build/server/chunks/3389.js +1 -1
- package/app/.next-cli-build/server/chunks/3771.js +1 -0
- package/app/.next-cli-build/server/chunks/3792.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4689.js +1 -1
- package/app/.next-cli-build/server/chunks/4906.js +1 -1
- package/app/.next-cli-build/server/chunks/4927.js +1 -1
- package/app/.next-cli-build/server/chunks/5210.js +10 -10
- package/app/.next-cli-build/server/chunks/5225.js +1 -0
- package/app/.next-cli-build/server/chunks/532.js +56 -0
- package/app/.next-cli-build/server/chunks/539.js +1 -1
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- 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/6103.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/6763.js +1 -1
- package/app/.next-cli-build/server/chunks/6844.js +1 -1
- package/app/.next-cli-build/server/chunks/6922.js +1 -1
- package/app/.next-cli-build/server/chunks/6960.js +1 -1
- 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 +1 -1
- package/app/.next-cli-build/server/chunks/8145.js +1 -1
- package/app/.next-cli-build/server/chunks/8172.js +2 -2
- package/app/.next-cli-build/server/chunks/8370.js +7 -7
- package/app/.next-cli-build/server/chunks/8410.js +1 -1
- package/app/.next-cli-build/server/chunks/8595.js +1 -1
- package/app/.next-cli-build/server/chunks/8658.js +1 -1
- package/app/.next-cli-build/server/chunks/8775.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +11 -11
- package/app/.next-cli-build/server/chunks/8920.js +1 -1
- package/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/app/.next-cli-build/server/chunks/9628.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 +6 -6
- 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/chunks/1321-25956f9bfbc2e6da.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-100281ed6ce1f83b.js +7 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-6393f6dfae0de3e6.js → page-f88e03168e9e8695.js} +14 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-06a1bcff8b1400de.js +14 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-ae18cdfbbd2df1ec.js +1 -0
- package/app/.next-cli-build/static/chunks/app/_global-error/{page-fb1f157de1c4ca66.js → page-532e70b87e3cfbaa.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/login/{route-fb1f157de1c4ca66.js → route-532e70b87e3cfbaa.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-fb1f157de1c4ca66.js → route-532e70b87e3cfbaa.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-fb1f157de1c4ca66.js → route-532e70b87e3cfbaa.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/combos/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/external-quota/[source]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/gateway-probe/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/health/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/init/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/keys/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/locale/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/caps/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/claim-compensation/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/loomy/sms-login/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/loomy/sms-send/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/security/status/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/settings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tags/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/rerank/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shell-update/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/landing/page-ff4bd46662925378.js +1 -0
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/app/page-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-532e70b87e3cfbaa.js +1 -0
- package/app/.next-cli-build/static/css/63c4d9ca82aea954.css +1 -0
- package/app/.next-cli-build/static/ilH6FH_DABFzbJ122SgT6/_buildManifest.js +1 -0
- package/app/package.json +71 -71
- package/app/public/i18n/changelog/en.md +21 -0
- package/app/public/i18n/changelog/zh-CN.md +20 -0
- package/app/public/i18n/changelog/zh-TW.md +20 -0
- package/app/public/i18n/literals/zh-CN.json +10 -0
- package/app/public/i18n/literals/zh-TW.json +10 -0
- package/app/public/providers/doubao.svg +14 -0
- package/app/public/providers/loomy.png +0 -0
- package/app/public/providers/nace.png +0 -0
- package/app/src/shared/utils/apiKey.js +17 -1
- package/package.json +61 -61
- package/app/.next-cli-build/server/chunks/1351.js +0 -1
- package/app/.next-cli-build/server/chunks/3500.js +0 -56
- package/app/.next-cli-build/static/KyW2U59Ruq5vPQZjvyylc/_buildManifest.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-3d22643da5d0f152.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-ce4781ece1a27ac0.js +0 -7
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-9c29e4e5c17e55ea.js +0 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-1e4e3f6f20152da1.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/status/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/combos/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/external-quota/[source]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/gateway-probe/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/health/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/init/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/keys/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/locale/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/alias/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/availability/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/caps/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/custom/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/models/test/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/claim-compensation/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pricing/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/client/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/security/status/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/database/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/settings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/shutdown/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tags/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/load/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/save/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/send/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/history/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/models/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/rerank/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/search/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shell-update/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/api/version/update/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/landing/page-626d89125b768dcf.js +0 -1
- package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/app/page-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-fb1f157de1c4ca66.js +0 -1
- package/app/.next-cli-build/static/css/5922b1ff9e56869d.css +0 -1
- /package/app/.next-cli-build/static/{KyW2U59Ruq5vPQZjvyylc → ilH6FH_DABFzbJ122SgT6}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{13031:(e,t,i)=>{"use strict";i.d(t,{B:()=>l,M:()=>o});let l={PACK_ASSET:"pack_asset",ROLLING_SUBSCRIPTION:"subscription",PURE_BALANCE:"balance",GATEWAY_FREE:"gateway_free",GENERIC:"generic"},s=new Set(["codebuddy-cn","codebuddy-intl","qoder","qoder-cn"]),n=new Set(["antigravity","github","codex","commandcode","glm","glm-cn"]),a=new Set(["deepseek","stepfun","stepfun-cn","openai","anthropic","minimax","minimax-cn","minimax-code","minimax-code-global","siliconflow-cn","groq","openrouter","together","fireworks","nebius","hyperbolic","chutes","cohere","mistral","river","modelscope","oxion","baidu","kimi","azure","step_plan"]),r=new Set(["zcode-free","minimax-free","trae-free"]);function o(e){if(!e||"string"!=typeof e)return l.GENERIC;let t=e.toLowerCase().trim();return s.has(t)?l.PACK_ASSET:n.has(t)?l.ROLLING_SUBSCRIPTION:a.has(t)?l.PURE_BALANCE:r.has(t)?l.GATEWAY_FREE:l.GENERIC}},17414:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var l=i(95155),s=i(12115),n=i(14051),a=i.n(n),r=i(73006),o=i(35497);function d({isOpen:e,onClose:t,onAdded:i}){let[n,a]=(0,s.useState)(""),[c,u]=(0,s.useState)(""),[m,p]=(0,s.useState)(""),[x,h]=(0,s.useState)(0),[f,g]=(0,s.useState)(""),[y,b]=(0,s.useState)("");(0,s.useEffect)(()=>{if(x<=0)return;let e=setInterval(()=>h(e=>e-1),1e3);return()=>clearInterval(e)},[x]);let v=async()=>{b(""),g("send");try{let e=await fetch("/api/oauth/loomy/sms-send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:n})}),t=await e.json();if(!e.ok)throw Error(t?.error||"Send failed");p(t.msgid),h(60)}catch(e){b(e.message)}finally{g("")}},j=async()=>{b(""),g("login");try{let e=await fetch("/api/oauth/loomy/sms-login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:n,code:c,msgid:m})}),l=await e.json();if(!e.ok)throw Error(l?.error||"Login failed");i(l.connection),t()}catch(e){b(e.message),g("")}};return(0,l.jsx)(o.aF,{isOpen:e,title:(0,r.Tl)("Loomy SMS Login"),onClose:t,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("p",{className:"text-xs text-text-muted leading-relaxed",children:(0,r.Tl)("Log in with your iFlytek phone number — no Loomy client needed. The session lasts about 14 days and is added as a connection automatically.")}),(0,l.jsxs)("div",{className:"flex items-end gap-2",children:[(0,l.jsx)("div",{className:"flex-1",children:(0,l.jsx)(o.pd,{label:(0,r.Tl)("Phone Number"),value:n,onChange:e=>a(e.target.value),placeholder:"13800138000",maxLength:11})}),(0,l.jsx)(o.$n,{onClick:v,disabled:"send"===f||x>0||!/^1[3-9]\d{9}$/.test(n.trim()),className:"whitespace-nowrap",children:x>0?`${x}s`:"send"===f?(0,r.Tl)("Sending…"):(0,r.Tl)("Send Code")})]}),m&&(0,l.jsx)(o.pd,{label:(0,r.Tl)("SMS Code"),value:c,onChange:e=>u(e.target.value),placeholder:(0,r.Tl)("6-digit code"),maxLength:6}),y&&(0,l.jsx)("p",{className:"text-sm text-red-500",children:y}),m&&(0,l.jsx)(o.$n,{onClick:j,disabled:"login"===f||!c.trim(),fullWidth:!0,children:"login"===f?(0,r.Tl)("Logging in…"):(0,r.Tl)("Verify & Add Connection")})]})})}d.propTypes={isOpen:a().bool.isRequired,onClose:a().func.isRequired,onAdded:a().func.isRequired}},43073:(e,t,i)=>{"use strict";i.d(t,{O:()=>s,l:()=>a});let l=/https:\/\/accounts\.google\.com\/(?:v3\/)?signin\/continue[^\s"'<>)\]]+/;function s(e){if("string"!=typeof e)return null;let t=l.exec(e);return t?t[0]:null}let n=/https:\/\/[^\s"'<>)\]]*account\.stepfun\.com\/security[^\s"'<>)\]]*/;function a(e){if("string"!=typeof e)return null;let t=n.exec(e);return t?t[0]:null}},70217:(e,t,i)=>{"use strict";function l(e,t){return!1===e?"default":"active"===t||"success"===t?"success":"partial"===t?"warning":"error"===t||"expired"===t||"unavailable"===t||"needs-reauth"===t?"error":"default"}i.d(t,{g:()=>l})},83204:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>ed});var l=i(95155),s=i(12115),n=i(73321),a=i(98500),r=i.n(a),o=i(5772),d=i(8247),c=i(35497),u=i(88105),m=i(28777),p=i(73006);function x(e){if("string"!=typeof e)return null;let t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return null;let i=Number(t[1]),l=Number(t[2]);return i>23||l>59?null:60*i+l}function h(e,t=Date.now()){let i;if(!e||"object"!=typeof e)return null;let l=x(e.window_start),s=x(e.window_end);if(null===l||null===s||l===s)return null;let n=e.timezone||"Asia/Singapore",a=function(e,t=Date.now()){try{let i=new Intl.DateTimeFormat("en-GB",{timeZone:e,hourCycle:"h23",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(new Date(t)),l=e=>Number(i.find(t=>t.type===e)?.value),s=l("hour"),n=l("minute"),a=l("second");if([s,n,a].some(e=>!Number.isFinite(e)))return null;return{hour:s,minute:n,second:a,secondsOfDay:3600*s+60*n+a}}catch{return null}}(n,t);if(!a)return null;let r=a.minute+60*a.hour,o=l<=s?r>=l&&r<s:r>=l||r<s;return i=o?(60*s-a.secondsOfDay+86400)%86400:(60*l-a.secondsOfDay+86400)%86400,{active:o,secondsToBoundary:i,windowLabel:`${e.window_start}–${e.window_end}`,timezone:n}}function f(e,t){return e&&"object"==typeof e&&(t&&String(t).startsWith("zh")?e.zh||e.en:e.en||e.zh)||""}function g({promotion:e}){var t;let[i,n]=(0,s.useState)(()=>Date.now());(0,s.useEffect)(()=>{let e=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(e)},[]);let a=h(e,i);if(!a)return null;let r=f(e?.badge,(0,p.kk)()),o=f(e?.description,(0,p.kk)()),d=!Number.isFinite(t=a.secondsToBoundary)||t<0?"--:--:--":[Math.floor(t/3600),Math.floor(t%3600/60),Math.floor(t%60)].map(e=>String(e).padStart(2,"0")).join(":"),c=a.active?`${(0,p.Tl)("Off-peak discount active")} \xb7 ${d} ${(0,p.Tl)("until standard rate")}`:`${d} ${(0,p.Tl)("until off-peak discount")}`;return(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 rounded-[10px] bg-green-500/10 px-3 py-2 text-xs text-green-600 dark:text-green-400",title:o||void 0,children:[(0,l.jsx)("span",{className:"material-symbols-outlined",style:{fontSize:16},children:"eco"}),(0,l.jsx)("span",{className:"font-medium",children:c}),r&&(0,l.jsxs)("span",{className:"opacity-80",children:["\xb7 ",r]}),(0,l.jsxs)("span",{className:"ml-auto font-mono opacity-60",children:[a.windowLabel," ",a.timezone]})]})}var y=i(990),b=i(62630);i(67468);let v=["none","low","medium","high"],j=["none","thinking"],w=["none","low","medium","high","xhigh","max"],N={openai:["none","minimal","low","medium","high","xhigh"],"claude-adaptive":w,"claude-budget":w,"gemini-level":["minimal","low","medium","high"],"gemini-budget":v,zai:j,qwen:v,kimi:["none","low","medium","high","max"],deepseek:["none","high","max"],minimax:j,hunyuan:v,step:v},k=["none","minimal","low","medium","high","xhigh","max"],T=["none","low","medium","high","max"],C=[{pattern:"*gemini-4*",levels:["low","medium","high"]},{pattern:"*claude*4.6*",levels:T},{pattern:"*claude*4-6*",levels:T},{provider:"codex",pattern:"*gpt-6.1-sol*",levels:["low","medium","high","xhigh","max"]},{provider:"codex",pattern:"*gpt-6-sol*",levels:["low","medium","high","xhigh","max"]},{provider:"codex",pattern:"*gpt-6-luna*",levels:["low","medium","high","xhigh","max"]},{provider:"codex",pattern:"*gpt-6*",levels:k},{provider:"codex",pattern:"*gpt-5.6-sol*",levels:[...k,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-terra*",levels:[...k,"ultra"]},{provider:"codex",pattern:"*gpt-5.6-luna*",levels:k},{pattern:"*codex*",levels:["low","medium","high","xhigh"]},{pattern:"*mimo*preview*",levels:["none","low","medium","high","xhigh"]},{pattern:"*mimo*v2.5-pro*",levels:["none","low","medium","high","xhigh"]},{provider:"amd",pattern:"DeepSeek-V4-Flash*",levels:["none","minimal","low","medium","high","xhigh","max"]},{provider:"amd",pattern:"Qwen3.8-Flash-Next",levels:["none","low","medium","xhigh"]},{provider:"codebuddy-cn",pattern:"glm-5.3*",levels:["low","high","max"]},{provider:"codebuddy-cn",pattern:"glm-5.2",levels:["high","xhigh"]},{provider:"codebuddy-cn",pattern:"deepseek-v4*",levels:["low","high","xhigh"]},{provider:"codebuddy-cn",pattern:"hy3*",levels:["low","high"]},{provider:"codebuddy-cn",pattern:"hy4*",levels:["high"]}],S=/(?:^|\/)gpt-(?:5\.6|6)(?:[.-]|$)/i;function $(e,t){if("kiro"===e&&null===function(e){if("string"!=typeof e)return null;let t=e.toLowerCase().replace(/-/g,".");if(/(?:^|[/.])gpt[/.]5[/.]6(?:[/.]|$)/.test(t))return"reasoning";if(!t.includes("claude"))return null;let i=function(e){if("string"!=typeof e)return null;let t=e.toLowerCase().replace(/-/g,".").match(/(?:^|[/.])claude(?:[/.][a-z]+)*[/.](\d+)(?:[/.](\d+))?(?:[/.]|$)/);return t?{major:Number(t[1]),minor:void 0===t[2]?null:Number(t[2])}:null}(e);if(!i)return null;let{major:l,minor:s}=i;return l<4||4===l&&(null===s||s<=5||null!==s&&s>=1e3)?null:"output_config"}(t))return null;let i=(0,y.nl)(e,t);if(!i.reasoning)return null;let l=String(t||"").split("/").pop(),s=C.find(i=>(!i.provider||i.provider===e)&&(0,b.gH)(i.pattern,t)),n=s?.levels||(String(e||"").startsWith("openai-compatible-")&&S.test(l)?k:null)||N[i.thinkingFormat]||v;return!1===i.thinkingCanDisable&&(n=n.filter(e=>"none"!==e)),n}var A=i(11059),O=i(929),E=i(65921);let P=new Map;async function D(e){if(!e?.url||!e?.type)return[];let t=P.get(e.url);if(t&&Date.now()<t.expiresAt)return t.data;try{let t=new URLSearchParams({url:e.url,type:e.type}),i=await fetch(`/api/providers/suggested-models?${t}`);if(!i.ok)return[];let l=(await i.json()).data??[];return P.set(e.url,{data:l,expiresAt:Date.now()+6e5}),l}catch{return[]}}function R({customModels:e=[],modelAliases:t={},providerAlias:i,builtInModels:l=[],type:s="llm",includeLegacyAliases:n=!0}){let a=new Set(l.map(e=>e.id)),r=new Set,o=[];for(let t of e){if(!t?.id||t.providerAlias!==i)continue;let e=t?.kind||t?.type||"llm";if(s&&e!==s||a.has(t.id))continue;let l=`${i}/${t.id}`;r.has(l)||(r.add(l),o.push({id:t.id,name:t.name||t.id,fullModel:l,source:"custom",type:e,enabled:!1!==t.enabled,...void 0===t.vision?{}:{vision:t.vision},...void 0===t.reasoning?{}:{reasoning:t.reasoning},...void 0===t.contextWindow?{}:{contextWindow:t.contextWindow},...void 0===t.maxOutput?{}:{maxOutput:t.maxOutput}}))}if(!n)return o;let d=`${i}/`;for(let[e,i]of Object.entries(t||{})){if("string"!=typeof i||!i.startsWith(d))continue;let t=i.slice(d.length);!t||a.has(t)||r.has(i)||(r.add(i),o.push({id:t,alias:e,fullModel:i,source:"legacyAlias",type:s||"llm"}))}return o}var I=i(43073),M=i(90337),_=i(14051),q=i.n(_),z=i(47650);let F=e=>{let t=Number(String(e).trim());return Number.isFinite(t)&&t>0?Math.floor(t):null};function U({label:e,builtIn:t,value:i,onChange:s,invalid:n,autoFocus:a}){return(0,l.jsxs)("label",{className:"flex flex-col gap-1",children:[(0,l.jsxs)("span",{className:"flex items-baseline justify-between gap-2 text-text-muted",children:[(0,l.jsx)("span",{children:e}),t?(0,l.jsxs)("span",{className:"font-mono text-[10px] text-text-subtle",children:[(0,p.Tl)("Built-in")," ",t]}):null]}),(0,l.jsx)("input",{type:"number",min:"1",step:"1",value:i,autoFocus:a,onChange:e=>s(e.target.value),placeholder:t?String(t):(0,p.Tl)("Not set"),className:`rounded-md border bg-bg px-2 py-1.5 font-mono text-text focus:outline-none ${n?"border-red-500":"border-border focus:border-primary"}`})]})}function L({caps:e,baseCaps:t,pinned:i,label:n,onSave:a}){let[r,o]=(0,s.useState)(!1),[d,c]=(0,s.useState)(!1),[u,m]=(0,s.useState)(null),[x,h]=(0,s.useState)(""),[f,g]=(0,s.useState)(""),y=(0,s.useRef)(null),b=(0,s.useRef)(null),v=t?.contextWindow??null,j=t?.maxOutput??null,w=F(x),N=F(f),k=""!==x.trim()&&null===w,T=""!==f.trim()&&null===N,C=!d&&!k&&!T,S=(0,s.useCallback)(()=>{let e=y.current;if(!e)return;let t=e.getBoundingClientRect(),i=b.current?.offsetWidth||300,l=b.current?.offsetHeight||300,s=window.innerHeight-t.bottom-8,n=s<l&&t.top-8>s;m({left:Math.min(Math.max(8,t.right-i),Math.max(8,window.innerWidth-i-8)),top:n?void 0:t.bottom+6,bottom:n?window.innerHeight-t.top+6:void 0})},[]);(0,s.useEffect)(()=>{if(!r)return;let e=e=>{b.current?.contains(e.target)||y.current?.contains(e.target)||o(!1)},t=e=>{"Escape"===e.key&&o(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),window.addEventListener("resize",S),window.addEventListener("scroll",S,!0),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t),window.removeEventListener("resize",S),window.removeEventListener("scroll",S,!0)}},[r,S]),(0,s.useLayoutEffect)(()=>{r&&S()},[r,S]);let $=async e=>{c(!0);try{await a(e?{contextWindow:null,maxOutput:null}:{contextWindow:w,maxOutput:N}),o(!1)}finally{c(!1)}};return(0,l.jsxs)("div",{className:"relative shrink-0",children:[(0,l.jsx)("button",{ref:y,onClick:()=>{r?o(!1):(h(e?.contextWindow?String(e.contextWindow):""),g(e?.maxOutput?String(e.maxOutput):""),o(!0))},"aria-haspopup":"dialog","aria-expanded":r,className:`rounded p-0.5 transition-colors hover:bg-sidebar ${i?"text-primary":"text-text-muted hover:text-primary"}`,title:(0,p.Tl)("Model limits"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:"tune"})}),r&&"u">typeof document&&(0,z.createPortal)((0,l.jsxs)("div",{ref:b,role:"dialog","aria-label":(0,p.Tl)("Model limits"),onKeyDown:e=>{"Enter"===e.key&&C&&(e.preventDefault(),$(!1))},style:{position:"fixed",width:300,left:u?.left??0,top:u?.top,bottom:u?.bottom,visibility:u?"visible":"hidden"},className:"z-50 flex flex-col gap-2.5 rounded-xl border border-border bg-surface p-3 text-xs shadow-[var(--shadow-elev)]",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 border-b border-border-subtle pb-2",children:[(0,l.jsx)("span",{className:"min-w-0 truncate font-medium text-text",children:n||(0,p.Tl)("Model limits")}),i?(0,l.jsx)("span",{className:"shrink-0 rounded-full bg-primary/10 px-2 py-0.5 text-[10px] text-primary",children:(0,p.Tl)("Overridden")}):null]}),(0,l.jsx)(U,{label:(0,p.Tl)("Context window"),builtIn:v,value:x,onChange:h,invalid:k,autoFocus:!0}),(0,l.jsx)(U,{label:(0,p.Tl)("Max output"),builtIn:j,value:f,onChange:g,invalid:T}),(k||T)&&(0,l.jsx)("p",{className:"text-[10px] leading-snug text-red-500",children:(0,p.Tl)("Enter a whole number greater than 0")}),null!==w&&null!==N&&N>w&&(0,l.jsx)("p",{className:"text-[10px] leading-snug text-amber-600 dark:text-amber-400",children:(0,p.Tl)("Max output is larger than the context window")}),(0,l.jsx)("p",{className:"text-[10px] leading-snug text-text-muted/70",children:(0,p.Tl)("Overrides the built-in catalog values")}),(0,l.jsxs)("div",{className:"flex items-center justify-end gap-2 border-t border-border-subtle pt-2",children:[(0,l.jsx)("button",{className:"rounded px-2 py-1 text-text-muted hover:text-red-500 disabled:opacity-40",onClick:()=>$(!0),disabled:d||!i,children:(0,p.Tl)("Restore built-in")}),(0,l.jsx)("button",{className:"rounded bg-primary px-2.5 py-1 text-white disabled:opacity-50",onClick:()=>$(!1),disabled:!C,children:(0,p.Tl)("Save")})]})]}),document.body)]})}function K({model:e,fullModel:t,alias:i,copied:n,onCopy:a,testStatus:r,isCustom:o,isFree:d,onDeleteAlias:u,onTest:m,isTesting:x,onDisable:g,onEnable:y,caps:b,baseCaps:v,thinkingSuffix:j,onSaveCaps:w,capsPinned:N}){let k=function(){let[e,t]=(0,s.useState)(()=>new Date().getHours());return(0,s.useEffect)(()=>{let e=setInterval(()=>t(new Date().getHours()),6e4);return()=>clearInterval(e)},[]),e}(),T=j?`${t}(${j})`:t,C="number"==typeof e.rateMultiplier?e.rateMultiplier:null,S=function(e,t){if(!t||"number"!=typeof e||Number.isNaN(e))return!1;let{from:i,to:l}=t;return i<=l?e>=i&&e<l:e>=i||e<l}(k,e.nightFree),$=null!==C&&C>0&&function(e,t=Date.now()){let i=function(e){let t=e?.promoFreeUntil;if("string"!=typeof t||""===t.trim())return null;let i=Date.parse(t);return Number.isFinite(i)?i:null}(e);return null!==i&&t<i}(e),A=$?0:C,O=S||0===A,E=function(e){let[t,i]=(0,s.useState)(()=>Date.now()),l=e?`${e.window_start}|${e.window_end}|${e.timezone}`:null;return(0,s.useEffect)(()=>{if(!l)return;let e=setInterval(()=>i(Date.now()),3e4);return()=>clearInterval(e)},[l]),h(e,t)}(e.promotion),P="ok"===r?"#22c55e":"error"===r?"#ef4444":void 0;return(0,l.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===r?"border-green-500/40":"error"===r?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,l.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,l.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:P?{color:P}:void 0,children:"ok"===r?"check_circle":"error"===r?"cancel":"smart_toy"}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,l.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:T}),(0,l.jsxs)("span",{className:"flex min-w-0 items-center text-[9px] gap-1 pl-1",children:[e.name&&(0,l.jsx)("span",{className:"truncate text-[9px] italic text-text-muted/70",children:e.name}),(0,l.jsx)(c.nh,{caps:b,colorOverride:"text-text-muted/70",size:12}),e.paidTier&&(0,l.jsx)(c.m_,{text:(0,p.Tl)("Not available on every plan yet — needs a paid tier, or is still rolling out"),children:(0,l.jsx)(c.Ex,{size:"xs",variant:"warning",icon:"lock",className:"shrink-0 cursor-help leading-none",children:(0,p.Tl)("Paid tier")})}),e.subPriority&&(0,l.jsx)(c.m_,{text:(0,p.Tl)("Prioritized for subscribers"),children:(0,l.jsx)(c.Ex,{size:"xs",variant:"info",icon:"bolt",className:"shrink-0 cursor-help leading-none",children:(0,p.Tl)("Sub priority")})}),(null!==A||S)&&(0,l.jsx)(c.m_,{text:S?`${(0,p.Tl)("Night-free window")} (23:00–08:00) — ${(0,p.Tl)("rides the free quota")}`:$?(0,p.Tl)("Credit multiplier")+`: ${C}x — `+(0,p.Tl)("promo free until")+` ${function(e){let t=Date.parse(String(e||""));if(!Number.isFinite(t))return String(e||"");try{return new Date(t).toLocaleString(void 0,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}catch{return String(e||"")}}(e.promoFreeUntil)}`:0===A?(0,p.Tl)("Credit multiplier")+": 0x — "+(0,p.Tl)("rides the free quota"):(0,p.Tl)("Credit multiplier")+`: ${A}x`,children:(0,l.jsx)(c.Ex,{size:"sm",variant:O?"success":"default",className:`shrink-0 cursor-help leading-none${O?"":" font-mono"}`,children:O?"free":`${A.toFixed(2)}x`})}),E&&(0,l.jsx)(c.m_,{text:[f(e.promotion?.badge,(0,p.kk)())||(0,p.Tl)("Off-peak discount"),f(e.promotion?.description,(0,p.kk)()),`${E.windowLabel} ${E.timezone}${E.active?` — ${(0,p.Tl)("active now")}`:""}`].filter(Boolean).join(" \xb7 "),children:(0,l.jsx)(c.Ex,{size:"sm",variant:E.active?"success":"default",className:"shrink-0 cursor-help leading-none",children:(0,l.jsx)("span",{className:"material-symbols-outlined align-[-1px]",style:{fontSize:10},children:"eco"})})})]})]}),w&&(0,l.jsx)(L,{caps:b,baseCaps:v,pinned:N,label:e.name||t,onSave:w}),m&&(0,l.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,l.jsx)("button",{onClick:m,disabled:x,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${x?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",style:x?{animation:"spin 1s linear infinite"}:void 0,children:x?"progress_activity":"science"})}),(0,l.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:x?"Testing...":"Test"})]}),(0,l.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,l.jsx)("button",{onClick:()=>a(T,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:n===`model-${e.id}`?"check":"content_copy"})}),(0,l.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:n===`model-${e.id}`?"Copied!":"Copy"})]}),o?(0,l.jsx)("button",{onClick:u,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):y?(0,l.jsx)("button",{onClick:y,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-green-500/10 hover:text-green-500",title:(0,p.Tl)("Enable this model"),children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"})}):g?(0,l.jsx)("button",{onClick:g,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function B({modelId:e,fullModel:t,copied:i,onCopy:s,onDeleteAlias:n,onToggle:a,enabled:r=!0,onTest:o,testStatus:d,isTesting:c}){let u="ok"===d?"#22c55e":"error"===d?"#ef4444":void 0;return(0,l.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===d?"border-green-500/40":"error"===d?"border-red-500/40":"border-border"} hover:bg-sidebar/50 ${r?"":"opacity-60"}`,children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:u?{color:u}:void 0,children:"ok"===d?"check_circle":"error"===d?"cancel":"smart_toy"}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,l.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,l.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,l.jsxs)("div",{className:"relative group/btn",children:[(0,l.jsx)("button",{onClick:()=>s(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:i===`model-${e}`?"check":"content_copy"})}),(0,l.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i===`model-${e}`?"Copied!":"Copy"})]}),o&&(0,l.jsxs)("div",{className:"relative group/btn",children:[(0,l.jsx)("button",{onClick:o,disabled:c,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",style:c?{animation:"spin 1s linear infinite"}:void 0,children:c?"progress_activity":"science"})}),(0,l.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:c?"Testing...":"Test"})]})]})]}),a&&(0,l.jsx)("button",{onClick:a,className:`p-1 rounded ${r?"text-amber-500 hover:bg-amber-50 dark:hover:bg-amber-500/10":"text-green-600 hover:bg-green-50 dark:hover:bg-green-500/10"}`,title:r?"Disable model":"Activate model",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:r?"block":"restart_alt"})}),(0,l.jsx)("button",{onClick:n,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function J({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:i,customModels:n,copied:a,onCopy:r,onDeleteAlias:o,onAddCustomModel:d,onToggleCustomModel:u,onDeleteCustomModel:m,onBulkCustomModels:x,connections:h,isAnthropic:f}){let g=(0,E.i)(),[y,b]=(0,s.useState)(""),[v,j]=(0,s.useState)(!1),[w,N]=(0,s.useState)(!1),[k,T]=(0,s.useState)(null),[C,S]=(0,s.useState)({}),$=async t=>{if(!k){T(t);try{let i=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),l=await i.json();S(e=>({...e,[t]:l.ok?"ok":"error"}))}catch{S(e=>({...e,[t]:"error"}))}finally{T(null)}}},A=R({customModels:n,modelAliases:i,providerAlias:e,type:"llm"}),O=A.filter(e=>!1!==e.enabled),P=A.filter(e=>!1===e.enabled),D=async()=>{if(!y.trim()||v)return;let e=y.trim();if(A.some(t=>t.id===e))return void g.warning("Model already exists for this provider.");j(!0);try{await d(e),b("")}catch(e){console.log("Error adding model:",e)}finally{j(!1)}},I=async()=>{if(w)return;let e=h.find(e=>!1!==e.isActive);if(e){N(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),i=await t.json();if(!t.ok)return void g.error(i.error||"Failed to import models");let l=i.models||[];if(0===l.length)return void g.warning("No models returned from /models.");let s=0;for(let e of l){let t=e.id||e.name||e.model;t&&(A.some(e=>e.id===t)||(await d(t,!1),s+=1))}0===s&&g.warning("No new models were added.")}catch(e){console.log("Error importing models:",e)}finally{N(!1)}}},M=h.some(e=>!1!==e.isActive);return(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",f?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,l.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,l.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,l.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,l.jsx)("input",{id:"new-compatible-model-input",type:"text",value:y,onChange:e=>b(e.target.value),onKeyDown:e=>"Enter"===e.key&&D(),placeholder:f?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})]}),(0,l.jsx)(c.$n,{size:"sm",icon:"add",onClick:D,disabled:!y.trim()||v,children:v?"Adding...":"Add"}),(0,l.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"download",onClick:I,disabled:!M||w,children:w?"Importing...":"Import from /models"})]}),!M&&(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),A.length>0&&x&&(0,l.jsxs)("div",{className:"flex items-center gap-2 text-xs text-text-muted",children:[(0,l.jsxs)("span",{children:[A.length," custom model",A.length>1?"s":""]}),(0,l.jsx)("span",{children:"\xb7"}),(0,l.jsx)("button",{onClick:()=>x(!0),className:"text-primary hover:underline",children:(0,p.Tl)("Enable all")}),(0,l.jsx)("span",{children:"\xb7"}),(0,l.jsx)("button",{onClick:()=>x(!1),className:"text-text-muted hover:text-red-500 hover:underline",children:(0,p.Tl)("Disable all")}),(0,l.jsxs)("span",{children:["— ",(0,p.Tl)("bulk actions affect what clients see in /v1/models")]})]}),O.length>0&&(0,l.jsx)("div",{className:"flex flex-col gap-3",children:O.map(({id:i,alias:s,source:n})=>(0,l.jsx)(B,{modelId:i,fullModel:`${t}/${i}`,copied:a,onCopy:r,onDeleteAlias:()=>"custom"===n?m(i):o(s),onToggle:"custom"===n&&u?()=>u(i,!1):void 0,onTest:h.length>0?()=>$(i):void 0,testStatus:C[i],isTesting:k===i},`${n}-${e}/${i}`))}),P.length>0&&(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Disabled (activate to expose again):"}),P.map(({id:i,alias:s,source:n})=>(0,l.jsx)(B,{modelId:i,fullModel:`${t}/${i}`,copied:a,onCopy:r,enabled:!1,onDeleteAlias:()=>"custom"===n?m(i):o(s),onToggle:"custom"===n&&u?()=>u(i,!0):void 0,onTest:h.length>0?()=>$(i):void 0,testStatus:C[i],isTesting:k===i},`disabled-${n}-${e}/${i}`))]})]})}K.propTypes={model:q().shape({id:q().string.isRequired,rateMultiplier:q().number,paidTier:q().bool,subPriority:q().bool,promotion:q().object,nightFree:q().shape({from:q().number,to:q().number})}).isRequired,fullModel:q().string.isRequired,alias:q().string,copied:q().string,onCopy:q().func.isRequired,testStatus:q().oneOf(["ok","error"]),isCustom:q().bool,isFree:q().bool,onDeleteAlias:q().func,onTest:q().func,isTesting:q().bool,onDisable:q().func,onEnable:q().func,caps:q().object,baseCaps:q().object,thinkingSuffix:q().string,onSaveCaps:q().func,capsPinned:q().bool},q().string.isRequired,q().string.isRequired,q().string,q().func.isRequired,q().func.isRequired,q().func,q().oneOf(["ok","error"]),q().bool,q().string.isRequired,q().object.isRequired,q().arrayOf(q().object),q().string,q().func.isRequired,q().func.isRequired,q().func.isRequired,q().func.isRequired,J.propTypes={providerStorageAlias:q().string.isRequired,providerDisplayAlias:q().string.isRequired,modelAliases:q().object.isRequired,customModels:q().arrayOf(q().object),copied:q().string,onCopy:q().func.isRequired,onDeleteAlias:q().func.isRequired,onAddCustomModel:q().func.isRequired,onBulkCustomModels:q().func,onToggleCustomModel:q().func,onDeleteCustomModel:q().func.isRequired,connections:q().arrayOf(q().shape({id:q().string,isActive:q().bool})).isRequired,isAnthropic:q().bool};var W=i(70217),H=i(36109);function G({until:e,inline:t=!1}){let[i,n]=(0,s.useState)("");return((0,s.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void n("");let i=Math.floor(t/1e3);if(i<60)n(`${i}s`);else if(i<3600)n(`${Math.floor(i/60)}m ${i%60}s`);else{let e=Math.floor(i/3600),t=Math.floor(i%3600/60);n(`${e}h ${t}m`)}};t();let i=setInterval(t,1e3);return()=>clearInterval(i)},[e]),i)?t?(0,l.jsxs)("span",{className:"shrink-0 text-xs text-orange-500 font-mono",children:[(0,l.jsx)("span",{className:"text-[0.85em] leading-none",children:"⏱"})," ",i]}):(0,l.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:[(0,l.jsx)("span",{className:"text-[0.85em] leading-none",children:"⏱"})," ",i]}):null}function V({connection:e,proxyPools:t,isOAuth:i,isFirst:n,isLast:a,onMoveUp:r,onMoveDown:o,onToggleActive:d,onUpdateProxy:u,onEdit:m,onDelete:x,oneByOneStatus:h=null,autoPing:f=null}){let[g,y]=(0,s.useState)(!1),[b,v]=(0,s.useState)(!1),j=(0,s.useRef)(null),w=(0,s.useRef)(null),[N,k]=(0,s.useState)(null),T=new Map((t||[]).map(e=>[e.id,e])),C=e.providerSpecificData?.proxyPoolId||null,S=C?T.get(C):null,$=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,O=!!C||$,E=S?`Pool: ${S.name}`:C?`Pool: ${C} (inactive/missing)`:$?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",P=[];f?.reactiveOn&&P.push("on reset"),f?.scheduleOn&&P.push(`Scheduled (${f.scheduleSummary||"active"})`);let D=P.length>0?`Auto-ping active: ${P.join(" + ")}. Click to configure.`:f?.provider==="codex"?"Auto-starts the next 5h Codex window after reset or on schedule. Click to configure.":"Auto-starts a new window on quota reset or fixed schedule. Click to configure.",R="";if(S?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=S?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);R=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{R=t}}let _=S?.noProxy||e.providerSpecificData?.connectionNoProxy||"",q="default";S?.isActive===!0?q="success":(C||$)&&(q="error"),(0,s.useEffect)(()=>{if(!g)return;let e=e=>{j.current?.contains(e.target)||w.current?.contains(e.target)||y(!1)},t=()=>y(!1);return document.addEventListener("mousedown",e),window.addEventListener("resize",t),document.addEventListener("scroll",t,!0),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("resize",t),document.removeEventListener("scroll",t,!0)}},[g]);let F=async e=>{v(!0);try{await u("__none__"===e?null:e)}finally{v(!1),y(!1)}},U=e.authType||(i?"oauth":"apikey"),L="oauth"===U,K="cookie"===U,B=e.providerSpecificData?.authMethod,J="string"==typeof e.accessToken?e.accessToken:"",Q=e.hasDesktopSession??!!e.providerSpecificData?.mimoPassToken,Y=e.hasAccessToken??(J.length>0&&!J.startsWith("mimo-desktop-session")),Z="desktop-session"===B||Q&&!Y,X=Q&&Y,ee=!X&&!Z&&"oauth"===B,et=Z||X?(0,p.Tl)("Desktop Session"):ee?(0,p.Tl)("Browser sign-in"):L?"OAuth":K?"Cookie":"API Key",ei=X?(0,p.Tl)("Browser sign-in"):null,el=e.providerSpecificData?.mimoUserId||e.providerSpecificData?.uid||null,es=("xiaomi-mimo"===e.provider||"xiaomi-tokenplan"===e.provider)&&el?`MiMo ${el}`:null,en=e.name?.trim(),ea=e.email?.trim(),er=e.displayName?.trim(),eo=!!(en&&en!==ea&&(!er||en!==er)),ed=en||es||ea||er||(L?"OAuth Account":K?"Cookie Account":"API Key"),ec=eo?null:en&&ea&&en!==ea||es&&ea&&ea!==es?ea:en&&er&&en!==er?er:null,[eu,em]=(0,s.useState)(()=>(0,H._)(e));(0,s.useEffect)(()=>{let t=()=>{em(t=>{let i=(0,H._)(e);return(0,H.W)(t,i)?t:i})};t();let i=Object.keys(e).some(t=>t.startsWith("modelLock_")&&e[t])?setInterval(t,1e3):null;return()=>{i&&clearInterval(i)}},[e]);let{state:ep,earliestUntil:ex}=eu,eh="partial"===ep||"unavailable"===ep,ef="needs-reauth"===ep?(0,p.Tl)("Needs re-auth"):"partial"===ep?(0,p.Tl)("Partial"):ep,eg=!1!==e.isActive?(0,I.O)(e.lastError):null,ey=!1===e.isActive||eg?null:(0,I.l)(e.lastError),eb=eg||ey,{copied:ev,copy:ej}=(0,A.C)(),ew=()=>h?"queued"===h.state?(0,p.Tl)("queued"):"testing"===h.state?(0,p.Tl)("testing"):"success"===h.state?(0,p.Tl)("success"):"failed"===h.state?h.error?`${(0,p.Tl)("failed")}: ${h.error}`:(0,p.Tl)("failed"):null:null;return(0,l.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===e.isActive?"opacity-60":""}`,children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,l.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,l.jsx)("button",{onClick:r,disabled:n,className:`p-0.5 rounded ${n?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,l.jsx)("button",{onClick:o,disabled:a,className:`p-0.5 rounded ${a?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,l.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:Q?"computer":ee?"login":K?"cookie":L?"lock":"key"}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsx)("p",{className:"text-sm font-medium truncate",children:ed}),ec&&(0,l.jsx)("p",{className:"text-xs text-text-muted truncate",children:ec}),(0,l.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,l.jsx)(c.Ex,{variant:(0,W.g)(e.isActive,ep),size:"sm",dot:!0,children:!1===e.isActive?(0,p.Tl)("disabled"):ef||(0,p.Tl)("Unknown")}),(0,l.jsx)(c.Ex,{variant:"default",size:"sm",children:et}),ei&&(0,l.jsx)(c.Ex,{variant:"default",size:"sm",children:ei}),("qoder"===e.provider||"qoder-cn"===e.provider)&&(0,l.jsx)(c.Ex,{variant:e.providerSpecificData?.creditDaddyWebSession?"primary":"neutral",size:"sm",title:e.providerSpecificData?.creditDaddyWebSession?(0,p.Tl)("Synced via CreditDaddy web session (issue feedback goes to CreditDaddy)"):(0,p.Tl)("Native Qoder authorization"),children:e.providerSpecificData?.creditDaddyWebSession?"CD Sync":"Native"}),O&&(0,l.jsx)(c.Ex,{variant:q,size:"sm",children:"Proxy"}),e.earliestPackageExpiry&&(0,l.jsxs)(c.Ex,{variant:"outline",size:"sm",title:`${(0,p.Tl)("Earliest package")}: ${e.earliestPackageName||(0,p.Tl)("Quota package")} (${new Date(e.earliestPackageExpiry).toLocaleString()})`,children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px] mr-1",children:"schedule"}),function(e){if(!e)return"";let t=new Date(e).getTime()-Date.now();if(t<=0)return(0,p.Tl)("expired");let i=Math.floor(t/36e5);if(i<24)return`${i}h`;let l=Math.floor(i/24);return l<30?i%24?`${l}d ${i%24}h`:`${l}d`:new Date(e).toLocaleDateString()}(e.earliestPackageExpiry)]}),eh&&!1!==e.isActive&&!e.lastError&&(0,l.jsx)(G,{until:ex}),e.lastError&&!1!==e.isActive&&(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 max-w-full truncate text-xs text-red-500 sm:max-w-[380px]",title:(0,M.DY)(e.lastError),children:[eh&&(0,l.jsx)(G,{until:ex,inline:!0}),(0,M.DY)(e.lastError)]}),eb&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("a",{href:eb,target:"_blank",rel:"noopener noreferrer",title:(0,p.Tl)("Recommended: open in an incognito window and sign in with the affected account"),className:"shrink-0 text-xs text-blue-500 underline hover:text-blue-400",children:(0,p.Tl)(ey?"Complete verification":"Verify your account")}),(0,l.jsx)("button",{type:"button",onClick:()=>ej(eb,"verification"),title:(0,p.Tl)("Copy link"),className:"shrink-0 text-xs text-text-muted hover:text-primary",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-sm align-middle",children:"verification"===ev?"check":"content_copy"})})]}),(0,l.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),e.globalPriority&&(0,l.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]}),ew()&&(0,l.jsx)(c.Ex,{variant:h?"success"===h.state?"success":"failed"===h.state?"error":"testing"===h.state?"primary":"default":"default",size:"sm",children:ew()})]}),O&&(0,l.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,l.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:E,children:E}),R&&(0,l.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:R}),_&&(0,l.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:_,children:["no_proxy: ",_]})]})]})]}),(0,l.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,l.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(t||[]).length>0&&(0,l.jsxs)("div",{children:[(0,l.jsxs)("button",{ref:w,onClick:()=>{if(g)return void y(!1);let e=w.current?.getBoundingClientRect();if(!e)return void y(!0);let i=((t?.length||0)+1)*34+8,l=window.innerHeight-e.bottom,s=l<i&&e.top>l;k({position:"fixed",right:window.innerWidth-e.right,...s?{bottom:window.innerHeight-e.top+4,maxHeight:Math.max(e.top-8,120)}:{top:e.bottom+4,maxHeight:Math.max(l-8,120)}}),y(!0)},className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${O?"text-primary":"text-text-muted hover:text-primary"}`,disabled:b,children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:b?"progress_activity":"lan"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),g&&"u">typeof document&&(0,z.createPortal)((0,l.jsxs)("div",{ref:j,style:N,className:"z-50 max-w-[78vw] min-w-[160px] overflow-y-auto rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,l.jsx)("button",{onClick:()=>F("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!C?"text-primary font-medium":"text-text-main"}`,children:"None"}),(t||[]).map(e=>(0,l.jsx)("button",{onClick:()=>F(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${C===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]}),document.body)]}),f&&(0,l.jsx)(c.m_,{text:D,children:(0,l.jsxs)("button",{type:"button",onClick:()=>f.onConfigure?.(),"aria-label":"Configure auto-ping",className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${f.isActive?"text-primary":"text-text-muted hover:text-primary"}`,children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]})}),(0,l.jsxs)("button",{onClick:m,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,l.jsxs)("button",{onClick:x,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,l.jsx)(c.lM,{size:"sm",checked:e.isActive??!0,onChange:d,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}G.propTypes={until:q().string.isRequired,inline:q().bool},V.propTypes={connection:q().shape({id:q().string,name:q().string,email:q().string,displayName:q().string,modelLockUntil:q().string,testStatus:q().string,isActive:q().bool,lastError:q().string,priority:q().number,globalPriority:q().number}).isRequired,proxyPools:q().arrayOf(q().shape({id:q().string,name:q().string,proxyUrl:q().string,noProxy:q().string,isActive:q().bool})),isOAuth:q().bool.isRequired,isFirst:q().bool.isRequired,isLast:q().bool.isRequired,onMoveUp:q().func.isRequired,onMoveDown:q().func.isRequired,onToggleActive:q().func.isRequired,onUpdateProxy:q().func,onEdit:q().func.isRequired,onDelete:q().func.isRequired,oneByOneStatus:q().shape({state:q().string,error:q().string}),autoPing:q().shape({isActive:q().bool,reactiveOn:q().bool,scheduleOn:q().bool,scheduleSummary:q().string,provider:q().string,onConfigure:q().func})};let Q=`name1|sk-key1
|
|
2
|
+
name2|sk-key2
|
|
3
|
+
sk-key-only-auto-named`;function Y({isOpen:e,provider:t,providerName:i,isCompatible:n,isAnthropic:a,authType:r,authHint:o,website:d,proxyPools:m,error:x,existingNames:h,onSave:f,onBulkDone:g,onClose:y}){let b="__none__",v="ollama-local"===t,j="cookie"===r,w="xai"===t&&!j,N=j?"Cookie Value":"qoder"===t?"Personal Access Token (PAT)":"API Key",k="azure"===t,T="cloudflare-ai"===t,C=u.Q2?.[t]?.regions||null,S=u.Q2?.[t]?.defaultRegion||C?.[0]?.id||"",[$,A]=(0,s.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:b,ollamaHostUrl:""}),[O,E]=(0,s.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[P,D]=(0,s.useState)({accountId:""}),[R,I]=(0,s.useState)(S),[M,_]=(0,s.useState)(!1),[q,z]=(0,s.useState)(null),[F,U]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(e&&C&&!M){let e=!0;return fetch("/api/network/egress-region").then(e=>e.json()).then(i=>{if(!e)return;let l=i?.recommendedRegions?.[t];l&&C.some(e=>e.id===l)&&(I(l),z({country:i.country||i.countryCode,regionId:l}))}).catch(()=>{}),()=>{e=!1}}},[e,t,C,M]);let[L,K]=(0,s.useState)(null),[B,J]=(0,s.useState)(null),[W,H]=(0,s.useState)(!1),[G,V]=(0,s.useState)(!1),Z=T?`name1|sk-key1|acc123456
|
|
4
|
+
name2|sk-key2|def789012
|
|
5
|
+
sk-key-only-auto-named`:"qoder"===t?`name1|pt-xxxxx
|
|
6
|
+
name2|pt-yyyyy
|
|
7
|
+
pt-only-auto-named`:Q,[X,ee]=(0,s.useState)("single"),[et,ei]=(0,s.useState)(""),[el,es]=(0,s.useState)(null),en=()=>v&&$.ollamaHostUrl.trim()?{baseUrl:$.ollamaHostUrl.trim()}:k?{azureEndpoint:O.azureEndpoint,apiVersion:O.apiVersion,deployment:O.deployment,organization:O.organization}:T?{accountId:P.accountId}:C&&R?{region:R}:void 0,ea=async()=>{U(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:$.apiKey,providerSpecificData:en()})}),i=await e.json();K(i.valid?"success":"failed"),J(i.valid?null:i.error||null),H(!!i.maintenance)}catch{K("failed"),J(null),H(!1)}finally{U(!1)}},er=async()=>{if(t&&(v||$.apiKey)&&(v||$.name)&&(!n||$.defaultModel.trim())){V(!0);try{let e=!1;try{U(!0),K(null);let i=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:$.apiKey,providerSpecificData:en()})});e=!!(await i.json()).valid,K(e?"success":"failed")}catch{K("failed")}finally{U(!1)}await f({name:$.name||(v?"Ollama Local":""),apiKey:$.apiKey,defaultModel:n?$.defaultModel.trim():void 0,priority:$.priority,proxyPoolId:$.proxyPoolId===b?null:$.proxyPoolId,testStatus:e?"active":"unknown",providerSpecificData:en()})}finally{V(!1)}}},eo=async()=>{let e=et.split("\n");if(!e.length)return;let i=function(e,t,i={}){let{isCloudflareAi:l=!1}=i,s=new Set((Array.isArray(t)?t:[]).map(e=>"string"==typeof e?e.toLowerCase():"")),n=[];for(let t of e){let e,i="string"==typeof t?t.trim():"";if(!i)continue;let a=function(e,t={}){let{isCloudflareAi:i=!1}=t,l=e.split("|");if(i&&l.length>=3){let e=l[0].trim();return{baseName:e||"Key",apiKey:l.slice(1,-1).join("|").trim(),providerSpecificData:{accountId:l[l.length-1].trim()}}}return l.length>=2?{baseName:l[0].trim()||"Key",apiKey:l.slice(1).join("|").trim()}:{baseName:"Key",apiKey:l[0].trim()}}(i,{isCloudflareAi:l});if(!a||!a.apiKey)continue;let r=a.baseName,o=1;for(;e=`${r} ${o}`,s.has(e.toLowerCase());)o+=1;s.add(e.toLowerCase());let d={name:e,apiKey:a.apiKey,skipped:!1};a.providerSpecificData&&(d.providerSpecificData=a.providerSpecificData),n.push(d)}return n}(e,h,{isCloudflareAi:T});if(!i.length)return;V(!0),es(null);let l=0,s=0;for(let e of i)try{let i=!1;try{let l=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:e.apiKey})});i=!!(await l.json().catch(()=>({}))).valid}catch{i=!1}(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:e.apiKey,name:e.name,priority:1,testStatus:i?"active":"unknown",...e.providerSpecificData?{providerSpecificData:e.providerSpecificData}:{}})})).ok?l++:s++}catch{s++}V(!1),es({success:l,failed:s}),l>0&&g&&g()};return t?(0,l.jsx)(c.aF,{isOpen:e,title:`Add ${i||t} ${N}`,onClose:y,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.$n,{size:"sm",variant:"single"===X?"primary":"ghost",onClick:()=>{ee("single"),es(null)},children:"Single"}),(0,l.jsx)(c.$n,{size:"sm",variant:"bulk"===X?"primary":"ghost",onClick:()=>{ee("bulk"),es(null)},children:"Bulk Add"})]}),"bulk"===X&&(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("p",{className:"text-xs text-text-muted",children:T?(0,l.jsxs)(l.Fragment,{children:["One key per line. Format: ",(0,l.jsx)("code",{children:"name|apiKey|accountId"})," or just ",(0,l.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}):"qoder"===t?(0,l.jsxs)(l.Fragment,{children:["One PAT per line. Format: ",(0,l.jsx)("code",{children:"name|pt-..."})," or just ",(0,l.jsx)("code",{children:"pt-..."})," (auto-named by index)."]}):(0,l.jsxs)(l.Fragment,{children:["One key per line. Format: ",(0,l.jsx)("code",{children:"name|apiKey"})," or just ",(0,l.jsx)("code",{children:"apiKey"})," (auto-named by index)."]})}),(0,l.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:Z,value:et,onChange:e=>ei(e.target.value)}),el&&(0,l.jsxs)("div",{className:`text-sm font-medium ${el.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",el.success," added",el.failed>0?`, ✗ ${el.failed} failed`:""]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.$n,{onClick:eo,fullWidth:!0,disabled:G||!et.trim(),children:G?"Adding...":"Add All Keys"}),(0,l.jsx)(c.$n,{onClick:y,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===X&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.pd,{label:"Name",value:$.name,onChange:e=>A({...$,name:e.target.value}),placeholder:v?"Ollama Local":"Production Key"}),v&&(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.pd,{label:"Ollama Host URL",value:$.ollamaHostUrl,onChange:e=>A({...$,ollamaHostUrl:e.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,l.jsx)("div",{className:"pt-6",children:(0,l.jsx)(c.$n,{onClick:ea,disabled:F||G,variant:"secondary",children:F?"Checking...":"Check"})})]}),!v&&(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.pd,{label:N,type:j?"text":"password",value:$.apiKey,onChange:e=>A({...$,apiKey:e.target.value}),placeholder:j?"grok-web"===t?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":w?"xai-...":"qoder"===t?"pt-...":"",className:"flex-1"}),(0,l.jsx)("div",{className:"pt-6",children:(0,l.jsx)(c.$n,{onClick:ea,disabled:!$.apiKey||F||G,variant:"secondary",children:F?"Checking...":"Check"})})]}),w&&(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),j&&o&&(0,l.jsxs)("p",{className:"text-xs text-text-muted",children:[o,d&&(0,l.jsxs)(l.Fragment,{children:[" ",(0,l.jsxs)("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",d.replace(/^https?:\/\//,"")]})]})]}),C&&(0,l.jsxs)("div",{children:[(0,l.jsx)(c.l6,{label:"Region",value:R,onChange:e=>{I(e.target.value),_(!0)},options:C.map(e=>({value:e.id,label:e.label}))}),q&&!M&&(0,l.jsxs)("p",{className:"text-xs text-primary mt-1 flex items-center gap-1",children:[(0,l.jsx)("span",{children:"\uD83C\uDF10"}),(0,l.jsx)("span",{children:(0,p.Tl)("Auto-matched region based on network location ({country})").replace("{country}",q.country)})]})]}),n&&(0,l.jsx)(c.pd,{label:"Default Model",value:$.defaultModel,onChange:e=>A({...$,defaultModel:e.target.value}),placeholder:a?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),v&&(0,l.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,l.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,l.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),L&&(0,l.jsx)(c.Ex,{variant:"success"===L?"success":W?"warning":"error",children:"success"===L?(0,p.Tl)("Valid"):W?(0,p.Tl)("Check endpoint"):(0,p.Tl)("Invalid")}),W&&B&&(0,l.jsx)("p",{className:"text-xs text-amber-500 break-words",children:(0,p.Tl)(B)}),x&&(0,l.jsx)("p",{className:"text-xs text-red-500 break-words",children:x}),n&&(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),T&&(0,l.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,l.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,l.jsx)(c.pd,{label:"Account ID",value:P.accountId,onChange:e=>D({...P,accountId:e.target.value}),placeholder:"abc123def456..."}),(0,l.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,l.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),k&&(0,l.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,l.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)(c.pd,{label:"Azure Endpoint",value:O.azureEndpoint,onChange:e=>E({...O,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,l.jsx)(c.pd,{label:"Deployment Name",value:O.deployment,onChange:e=>E({...O,deployment:e.target.value}),placeholder:"gpt-4"}),(0,l.jsx)(c.pd,{label:"API Version",value:O.apiVersion,onChange:e=>E({...O,apiVersion:e.target.value}),placeholder:"2024-10-01-preview"}),(0,l.jsx)(c.pd,{label:"Organization",value:O.organization,onChange:e=>E({...O,organization:e.target.value}),placeholder:"Organization ID"})]})]}),(0,l.jsx)(c.pd,{label:"Priority",type:"number",value:$.priority,onChange:e=>A({...$,priority:Number.parseInt(e.target.value)||1})}),(0,l.jsx)(c.l6,{label:"Proxy Pool",value:$.proxyPoolId,onChange:e=>A({...$,proxyPoolId:e.target.value}),options:[{value:b,label:"None"},...(m||[]).map(e=>({value:e.id,label:e.name}))],placeholder:"None"}),0===(m||[]).length&&(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.$n,{onClick:er,fullWidth:!0,disabled:G||!v&&(!$.name||!$.apiKey)||n&&!$.defaultModel.trim()||k&&(!O.azureEndpoint||!O.deployment||!O.organization)||T&&!P.accountId,children:G?"Saving...":"Save"}),(0,l.jsx)(c.$n,{onClick:y,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}Y.propTypes={isOpen:q().bool.isRequired,provider:q().string,providerName:q().string,isCompatible:q().bool,isAnthropic:q().bool,authType:q().string,authHint:q().string,website:q().string,proxyPools:q().arrayOf(q().shape({id:q().string,name:q().string})),error:q().string,existingNames:q().arrayOf(q().string),onSave:q().func.isRequired,onBulkDone:q().func,onClose:q().func.isRequired};var Z=i(17414);function X({isOpen:e,node:t,onSave:i,onClose:n,isAnthropic:a}){let[r,o]=(0,s.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[d,u]=(0,s.useState)(!1),[m,p]=(0,s.useState)(""),[x,h]=(0,s.useState)(""),[f,g]=(0,s.useState)(!1),[y,b]=(0,s.useState)(null),[v,j]=(0,s.useState)(!1),[w,N]=(0,s.useState)(""),[k,T]=(0,s.useState)("{apiKey}"),C=()=>w.trim()?{models:{[w.trim()]:k.trim()||"{apiKey}"}}:null;(0,s.useEffect)(()=>{if(t){o({name:t.name||"",prefix:t.prefix||"",apiType:t.apiType||"chat",baseUrl:t.baseUrl||(a?"https://api.anthropic.com/v1":"https://api.openai.com/v1")});let e=t.authHeaders?.models;if(e&&"object"==typeof e){let t=Object.keys(e)[0]||"";N(t),T(e[t]||"{apiKey}"),j(!0)}else N(""),T("{apiKey}"),j(!1)}},[t,a]);let S=async()=>{if(r.name.trim()&&r.prefix.trim()&&r.baseUrl.trim()){u(!0);try{let e={name:r.name,prefix:r.prefix,baseUrl:r.baseUrl,authHeaders:C()};a||(e.apiType=r.apiType),await i(e)}finally{u(!1)}}},$=async()=>{g(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:r.baseUrl,apiKey:m,type:a?"anthropic-compatible":"openai-compatible",modelId:x.trim()||void 0,authHeaders:C()})}),t=await e.json();b(t.valid?"success":"failed")}catch{b("failed")}finally{g(!1)}};return t?(0,l.jsx)(c.aF,{isOpen:e,title:`Edit ${a?"Anthropic":"OpenAI"} Compatible`,onClose:n,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)(c.pd,{label:"Name",value:r.name,onChange:e=>o({...r,name:e.target.value}),placeholder:`${a?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,l.jsx)(c.pd,{label:"Prefix",value:r.prefix,onChange:e=>o({...r,prefix:e.target.value}),placeholder:a?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!a&&(0,l.jsx)(c.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:r.apiType,onChange:e=>o({...r,apiType:e.target.value})}),(0,l.jsx)(c.pd,{label:"Base URL",value:r.baseUrl,onChange:e=>o({...r,baseUrl:e.target.value}),placeholder:a?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${a?"Anthropic":"OpenAI"}-compatible API.`}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.pd,{label:"API Key (for Check)",type:"password",value:m,onChange:e=>p(e.target.value),className:"flex-1"}),(0,l.jsx)("div",{className:"pt-6",children:(0,l.jsx)(c.$n,{onClick:$,disabled:!m||f||!r.baseUrl.trim(),variant:"secondary",children:f?"Checking...":"Check"})})]}),(0,l.jsx)(c.pd,{label:"Model ID (optional)",value:x,onChange:e=>h(e.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),(0,l.jsxs)("div",{className:"rounded-lg border border-border/60 bg-surface-2/30 p-3",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>j(!v),className:"flex w-full items-center justify-between text-xs font-medium text-text-muted hover:text-text-main",children:[(0,l.jsx)("span",{children:"Advanced / Custom Headers"}),(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:v?"expand_less":"expand_more"})]}),v&&(0,l.jsxs)("div",{className:"mt-3 flex flex-col gap-2 pt-2 border-t border-border/40",children:[(0,l.jsx)("span",{className:"text-[11px] text-text-muted",children:"Custom Header for /models Discovery (e.g. iFlytek Loomy requires 'token: {apiKey}') "}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsx)(c.pd,{label:"Header Name",placeholder:"e.g. token",value:w,onChange:e=>N(e.target.value)}),(0,l.jsx)(c.pd,{label:"Header Value Template",placeholder:"{apiKey}",value:k,onChange:e=>T(e.target.value)})]})]})]}),y&&(0,l.jsx)(c.Ex,{variant:"success"===y?"success":"error",children:"success"===y?"Valid":"Invalid"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.$n,{onClick:S,fullWidth:!0,disabled:!r.name.trim()||!r.prefix.trim()||!r.baseUrl.trim()||d,children:d?"Saving...":"Save"}),(0,l.jsx)(c.$n,{onClick:n,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function ee({isOpen:e,providerAlias:t,providerDisplayAlias:i,onSave:n,onClose:a}){let[r,o]=(0,s.useState)(""),[d,u]=(0,s.useState)(null),[p,x]=(0,s.useState)(""),[h,f]=(0,s.useState)(!1),[g,y]=(0,s.useState)(""),[b,v]=(0,s.useState)(""),[j,w]=(0,s.useState)("llm"),[N,k]=(0,s.useState)("");(0,s.useEffect)(()=>{e&&(o(""),u(null),x(""),y(""),v(""),w("llm"),k(""))},[e]);let T=e=>{let i=`${t}/`;return e.startsWith(i)?e.slice(i.length):e},C=async()=>{let e=T(r.trim());if(e){u("testing"),x("");try{let i=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${t}/${e}`})}),l=await i.json();u(l.ok?"ok":"error"),x(l.error||"")}catch(e){u("error"),x(e.message)}}},S=async()=>{let e=T(r.trim());if(!e||h)return;f(!0);let t=e=>{let t=Number(String(e).trim());return Number.isFinite(t)&&t>0?Math.floor(t):void 0},i={contextWindow:t(g),maxOutput:t(b)};try{await n(e,i,j,"stt"===j?N:null)}finally{f(!1)}};return(0,l.jsx)(c.aF,{isOpen:e,onClose:a,title:"Add Custom Model",children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("input",{type:"text",value:r,onChange:e=>{o(e.target.value),u(null),x("")},onKeyDown:e=>{"Enter"===e.key&&C()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",autoFocus:!0}),(0,l.jsx)(c.$n,{variant:"secondary",icon:"science",loading:"testing"===d,onClick:C,disabled:!r.trim()||"testing"===d,children:"testing"===d?"Testing...":"Test"})]}),(0,l.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,l.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:T(r.trim())||"model-id"})]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model type"}),(0,l.jsxs)("select",{value:j,onChange:e=>{w(e.target.value),"stt"!==e.target.value&&k("")},className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary",children:[(0,l.jsx)("option",{value:"llm",children:"LLM (chat)"}),(0,l.jsx)("option",{value:"stt",children:"STT (speech to text)"})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"text-sm font-medium mb-1.5 block",children:["Transport ","stt"===j?"":"(STT only)"]}),(0,l.jsxs)("select",{value:N,onChange:e=>k(e.target.value),disabled:"stt"!==j,className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary disabled:opacity-50",children:[(0,l.jsx)("option",{value:"",children:"Provider default (REST)"}),m.vp.map(e=>(0,l.jsx)("option",{value:e,children:m.qw[e].label},e))]})]})]}),"ok"===d&&(0,l.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===d&&(0,l.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,l.jsx)("span",{children:p||"Model not reachable"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Context window"}),(0,l.jsx)("input",{type:"number",min:"1",step:"1",value:g,onChange:e=>y(e.target.value),placeholder:"e.g. 200000",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Max output"}),(0,l.jsx)("input",{type:"number",min:"1",step:"1",value:b,onChange:e=>v(e.target.value),placeholder:"e.g. 8192",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-surface focus:outline-none focus:border-primary"})]})]}),(0,l.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,l.jsx)(c.$n,{onClick:a,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,l.jsx)(c.$n,{onClick:S,fullWidth:!0,size:"sm",disabled:!r.trim()||h,children:h?"Adding...":"Add Model"})]})]})})}X.propTypes={isOpen:q().bool.isRequired,node:q().shape({id:q().string,name:q().string,prefix:q().string,apiType:q().string,baseUrl:q().string}),onSave:q().func.isRequired,onClose:q().func.isRequired,isAnthropic:q().bool},ee.propTypes={isOpen:q().bool.isRequired,providerAlias:q().string.isRequired,providerDisplayAlias:q().string.isRequired,onSave:q().func.isRequired,onClose:q().func.isRequired};let et=`[
|
|
8
|
+
{
|
|
9
|
+
"accessToken": "eyJhbGc...",
|
|
10
|
+
"refreshToken": "rt_...",
|
|
11
|
+
"idToken": "eyJhbGc...",
|
|
12
|
+
"email": "user@example.com"
|
|
13
|
+
}
|
|
14
|
+
]`;function ei({isOpen:e,onClose:t,onSuccess:i}){let[n,a]=(0,s.useState)(""),[r,o]=(0,s.useState)(!1),[d,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(null),h=()=>{r||(a(""),u(""),x(null),t())},f=async()=>{var e;let t;u(""),x(null);let l=n.trim();if(!l)return;try{t=JSON.parse(l)}catch(e){u(`${(0,p.Tl)("Invalid JSON")}: ${e.message}`);return}let s=Array.isArray(e=t)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!s||0===s.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:s})}),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,l.jsx)(c.aF,{isOpen:e,title:(0,p.Tl)("Bulk Add Codex Accounts"),onClose:h,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.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,l.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:n,onChange:e=>a(e.target.value),disabled:r}),d&&(0,l.jsx)("p",{className:"text-xs text-red-500 break-words",children:d}),m&&(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.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,l.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,l.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.$n,{onClick:f,fullWidth:!0,disabled:r||!n.trim(),children:r?(0,p.Tl)("Importing..."):(0,p.Tl)("Import All")}),(0,l.jsx)(c.$n,{onClick:h,variant:"ghost",fullWidth:!0,disabled:r,children:(0,p.Tl)("Close")})]})]})})}function el({isOpen:e,onClose:t,onSuccess:i,password:n=""}){let[a,r]=(0,s.useState)(""),[o,d]=(0,s.useState)(""),[u,m]=(0,s.useState)(!1),[x,h]=(0,s.useState)(""),[f,g]=(0,s.useState)(null),y=(0,s.useRef)(null),b=()=>{u||(r(""),d(""),h(""),g(null),y.current&&(y.current.value=""),t())},v=async()=>{let e;h(""),g(null);let t=a.trim();if(!t)return;try{e=JSON.parse(t)}catch(e){h(`${(0,p.Tl)("Invalid JSON")}: ${e.message}`);return}let l=Array.isArray(e)?e:e&&"object"==typeof e?Array.isArray(e.accounts)?e.accounts:[e]:null;if(!l||0===l.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",...n?{"x-10r-password":n}:{}},body:JSON.stringify({accounts:l})}),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,l.jsx)(c.aF,{isOpen:e,title:(0,p.Tl)("Import CodeBuddy CN Accounts"),onClose:b,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.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,l.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,l.jsxs)("div",{className:"relative",children:[(0,l.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,l.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:a,onChange:e=>r(e.target.value),disabled:u})]}),x&&(0,l.jsx)("p",{className:"text-xs text-red-500 break-words",children:x}),f&&(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.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,l.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,l.jsxs)("li",{className:"text-red-400",children:["[",e.index,"] ",e.error]},e.index))})]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.$n,{onClick:v,fullWidth:!0,disabled:u||!a.trim(),children:u?(0,p.Tl)("Importing..."):(0,p.Tl)("Import All")}),(0,l.jsx)(c.$n,{onClick:b,variant:"ghost",fullWidth:!0,disabled:u,children:(0,p.Tl)("Close")})]})]})})}function es({isOpen:e,mode:t,provider:i,providerName:n,dashboardPassword:a,onClose:r,onSuccess:o}){let[d,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(""),[h,f]=(0,s.useState)(!1),[g,y]=(0,s.useState)(""),[b,v]=(0,s.useState)(null),[j,w]=(0,s.useState)(""),[N,k]=(0,s.useState)(null),T=(0,s.useRef)(null),C=(0,s.useRef)(null),S=e=>{clearTimeout(C.current),C.current=setTimeout(()=>{C.current=null,$(),r()},e)};(0,s.useEffect)(()=>()=>clearTimeout(C.current),[]);let $=()=>{u(""),x(""),f(!1),y(""),v(null),w(""),k(null),T.current&&(T.current.value="")},A={"Content-Type":"application/json","x-10r-password":a||""},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 l=JSON.stringify(t.blob,null,2),s=URL.createObjectURL(new Blob([l],{type:"application/json"})),n=document.createElement("a");n.href=s,n.download=`oauth-${i}-transfer-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(n),n.click(),n.remove(),setTimeout(()=>URL.revokeObjectURL(s),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),!N)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:N})}),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?.webSessions?.failed||0)>0)&&(t?.imported||0)+(t?.updated||0)>0&&S(1800)}catch(e){y(e.message||(0,p.Tl)("Import failed"))}finally{f(!1)}};return(0,l.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,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("p",{className:"text-xs text-text-muted",children:[(0,p.Tl)("Provider"),": ",(0,l.jsx)("span",{className:"font-medium text-text-main",children:n||i})]}),"export"===t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)(c.pd,{type:"password",reveal:!0,label:(0,p.Tl)("Transfer passphrase"),value:d,onChange:e=>u(e.target.value),placeholder:"••••••••"}),(0,l.jsx)(c.pd,{type:"password",reveal:!0,label:(0,p.Tl)("Confirm passphrase"),value:m,onChange:e=>x(e.target.value),placeholder:"••••••••"})]}),(0,l.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,l.jsx)("p",{className:"text-xs text-red-500",children:g}),b&&(0,l.jsxs)("p",{className:"text-xs text-green-600",children:[(0,p.Tl)("Export complete")," — ",b.exported," ",(0,p.Tl)("accounts exported")]}),(0,l.jsx)(c.$n,{onClick:O,disabled:h,fullWidth:!0,children:(0,p.Tl)("Export encrypted file")})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.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,l.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)")),k(null);return}k(e)}catch(e){y(`${(0,p.Tl)("Invalid JSON")}: ${e.message}`),k(null)}},i.onerror=()=>y((0,p.Tl)("Failed to read file")),i.readAsText(t)}}),(0,l.jsx)(c.pd,{type:"password",reveal:!0,label:(0,p.Tl)("Transfer passphrase"),value:d,onChange:e=>u(e.target.value),placeholder:"••••••••"}),g&&(0,l.jsx)("p",{className:"text-xs text-red-500",children:g}),b&&(0,l.jsxs)("div",{className:"text-xs text-text-muted",children:[(0,l.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")}`:""]}),b.webSessions?.failed>0&&(0,l.jsxs)("p",{className:"mt-1 text-amber-600 dark:text-amber-400",children:[(0,p.Tl)("Web session check failed for"),": ",b.webSessions.failures.map(e=>e.name).join(", ")]}),b.webSessions?.checked>0&&0===b.webSessions.failed&&(0,l.jsxs)("p",{className:"mt-1 text-green-600",children:[(0,p.Tl)("Web sessions verified"),": ",b.webSessions.ok,"/",b.webSessions.checked]})]}),(0,l.jsx)(c.$n,{onClick:E,disabled:h,fullWidth:!0,children:(0,p.Tl)("Import connections")})]})]})})}ei.propTypes={isOpen:q().bool.isRequired,onClose:q().func.isRequired,onSuccess:q().func},el.propTypes={isOpen:q().bool.isRequired,onClose:q().func.isRequired,onSuccess:q().func,password:q().string},es.propTypes={isOpen:q().bool.isRequired,mode:q().oneOf(["export","import"]).isRequired,provider:q().string.isRequired,providerName:q().string,dashboardPassword:q().string,onClose:q().func.isRequired,onSuccess:q().func};var en=i(97132),ea=i(93195),er=i(13031);let eo={claude:"claudeAutoPing",codex:"codexAutoPing"};function ed(){let e,t,i,a,x,h,f,y,b=(0,n.useParams)(),v=(0,n.useRouter)(),j=b.id,{getCaps:w,getBaseCaps:N,overrides:k,refresh:T}=(0,O.yU)(),C=(0,E.i)(),[S,P]=(0,s.useState)([]),[_,q]=(0,s.useState)(!0),[z,F]=(0,s.useState)(null),[U,L]=(0,s.useState)([]),[B,W]=(0,s.useState)(!1),[H,G]=(0,s.useState)(!1),[Q,et]=(0,s.useState)(!1),[ed,ec]=(0,s.useState)(!1),[eu,em]=(0,s.useState)(!1),[ep,ex]=(0,s.useState)(""),[eh,ef]=(0,s.useState)(!1),[eg,ey]=(0,s.useState)(!1),[eb,ev]=(0,s.useState)(!1),[ej,ew]=(0,s.useState)(!1),[eN,ek]=(0,s.useState)(!1),[eT,eC]=(0,s.useState)(null),[eS,e$]=(0,s.useState)({}),[eA,eO]=(0,s.useState)([]),[eE,eP]=(0,s.useState)(!1),[eD,eR]=(0,s.useState)(!1),[eI,eM]=(0,s.useState)(!1),[e_,eq]=(0,s.useState)(!1),[ez,eF]=(0,s.useState)(!1),[eU,eL]=(0,s.useState)(!1),[eK,eB]=(0,s.useState)({open:!1,action:null,value:""}),[eJ,eW]=(0,s.useState)(!1),[eH,eG]=(0,s.useState)(""),[eV,eQ]=(0,s.useState)(""),[eY,eZ]=(0,s.useState)(!1),[eX,e0]=(0,s.useState)({}),[e1,e2]=(0,s.useState)(""),[e5,e3]=(0,s.useState)(()=>new Set),[e4,e6]=(0,s.useState)(!1),[e8,e7]=(0,s.useState)([]),[e9,te]=(0,s.useState)("__none__"),[tt,ti]=(0,s.useState)(!1),[tl,ts]=(0,s.useState)(null),[tn,ta]=(0,s.useState)(""),[tr,to]=(0,s.useState)(!1),[td,tc]=(0,s.useState)("priority"),[tu,tm]=(0,s.useState)("auto"),[tp,tx]=(0,s.useState)({enabled:!1,connections:{}}),[th,tf]=(0,s.useState)([]),[tg,ty]=(0,s.useState)(!1),[tb,tv]=(0,s.useState)([]),[tj,tw]=(0,s.useState)([]),[tN,tk]=(0,s.useState)([]),[tT,tC]=(0,s.useState)(null),[tS,t$]=(0,s.useState)(!1),[tA,tO]=(0,s.useState)(!1),[tE,tP]=(0,s.useState)(!1),tD="__provider_default__",[tR,tI]=(0,s.useState)(tD),[tM,t_]=(0,s.useState)(null),[tq,tz]=(0,s.useState)({}),[tF,tU]=(0,s.useState)(null),tL=(0,s.useRef)(!1),[tK,tB]=(0,s.useState)(!1),{copied:tJ,copy:tW}=(0,A.C)(),tH="ag_risk_confirmed",tG=()=>{"xiaomi-mimo"===j||"mimo-desktop"===j?G(!0):W(!0)},tV=()=>{"antigravity"===j&&"true"!==window.localStorage.getItem(tH)?t$(!0):il?tG():(ex(""),ec(!0))},tQ=()=>{ex(""),ec(!0)},tY=()=>{il?tV():tQ()},tZ=async()=>{if(!eJ){eW(!0),eG("");try{let e=await fetch("/api/auth/verify-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:eK.value})});if(!e.ok){let t=await e.json().catch(()=>({}));eG(t?.error||(0,p.Tl)("Invalid password"));return}let{action:t,value:i}=eK;eB({open:!1,action:null,value:""}),"export"===t&&(t3(i),t2(t),t0(!0))}catch(e){eG(e.message||(0,p.Tl)("Invalid password"))}finally{eW(!1)}}},[tX,t0]=(0,s.useState)(!1),[t1,t2]=(0,s.useState)("export"),[t5,t3]=(0,s.useState)(""),[t4,t6]=(0,s.useState)(null),t8=async()=>{eq(!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 l=i.filter(e=>"checked-in"===e.status).length,s=i.filter(e=>"already"===e.status).length,n=i.filter(e=>"failed"===e.status).length;0===n?C.success(`${(0,p.Tl)("Check-in complete")}: ${l} ${(0,p.Tl)("checked-in")}, ${s} ${(0,p.Tl)("already checked in")}`):C.error(`${(0,p.Tl)("Check-in complete with errors")}: ${n} ${(0,p.Tl)("failed")}`)}catch(e){C.error((0,p.Tl)("Check-in failed")+": "+e.message)}finally{eq(!1)}},t7=async()=>{eF(!0);try{let e=await fetch("/api/oauth/codebuddy-cn/claim-compensation",{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 found"));let l=i.filter(e=>"claimed"===e.status),s=i.filter(e=>"already"===e.status);i.filter(e=>"no-activity"===e.status);let n=i.filter(e=>"failed"===e.status),a=l.reduce((e,t)=>e+(t.claimedAmount||0),0);l.length>0?C.success(`${(0,p.Tl)("Claim successful")}: +${a} Credits (${l.length} ${(0,p.Tl)("accounts")})`):n.length>0?C.error(`${(0,p.Tl)("Claim failed")}: ${n.map(e=>e.error).join(", ")}`):s.length>0?C.info((0,p.Tl)("Compensation credits already claimed")):C.info((0,p.Tl)("No claimable activity available for this account"))}catch(e){C.error((0,p.Tl)("Claim failed")+": "+e.message)}finally{eF(!1)}},t9=async()=>{eL(!0);try{let e="qoder-cn"===j?"/api/oauth/qoder-cn/checkin":"qoder"===j?"/api/oauth/qoder/checkin":`/api/oauth/${j}/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 l=Array.isArray(i?.results)?i.results:[];if(0===l.length)return void C.warning((0,p.Tl)("No active Qoder connections found"));let s=l.filter(e=>"checked-in"===e.status),n=l.filter(e=>"already"===e.status),a=l.filter(e=>"no-activity"===e.status),r=l.filter(e=>"failed"===e.status),o=s.reduce((e,t)=>e+(t.claimedAmount||0),0);if(s.length>0)C.success(`${(0,p.Tl)("Claim successful")}: +${o} Credits (${s.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(a.length>0){let e=n.length>0?` / ${(0,p.Tl)("Daily credits already claimed for today")} (${n.length} ${(0,p.Tl)("accounts")})`:` (${a.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{eL(!1)}},ie=()=>(0,l.jsx)(c.$n,{size:"sm",icon:"redeem",variant:"secondary",onClick:t9,disabled:eU,className:"w-full sm:w-auto",title:(0,p.Tl)("Claim daily activity Credits"),children:eU?(0,p.Tl)("Claiming..."):(0,p.Tl)("Claim Credits")}),it=z?{id:z.id,name:z.name||("anthropic-compatible"===z.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===z.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===z.type?"AC":"OC",apiType:z.apiType,baseUrl:z.baseUrl,type:z.type}:u.zN[j]||u.fg[j]||u.IS[j]||u.nJ[j]||u.br[j],ii=it?.authModes||[],il=!!u.zN[j]||!!u.IS[j]||ii.includes("oauth"),is=!!u.fg[j]||ii.includes("apikey"),ia=!!u.IS[j]?.noAuth,ir="codebuddy-cn"===j,io=il&&it?.authModes?.includes("oauth")&&eE,id=ir&&(eD||eI),ic=["qoder","qoder-cn","minimax-code","minimax-code-global"].includes(j),iu=e=>io&&!id?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.$n,{size:"sm",icon:"file_download",variant:"secondary",onClick:()=>{eQ(""),eB({open:!0,action:"export",value:""})},className:e,children:(0,p.Tl)("Export")}),(0,l.jsx)(c.$n,{size:"sm",icon:"upload_file",variant:"secondary",onClick:()=>{t2("import"),t0(!0)},className:e,children:(0,p.Tl)("Import")})]}):null,im=(0,m.KC)(j),ip="qoder"===j||"qoder-cn"===j,ix="qoder"===j||"qoder-cn"===j||"xiaomi-mimo"===j,ih="cursor"===j&&tb.length>0?tb:ip?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);if(!t)return e;let l="string"==typeof e.promoFreeUntil&&""!==e.promoFreeUntil.trim(),s="number"==typeof t.rateMultiplier?t.rateMultiplier:null;return{...e,rateMultiplier:l?"number"==typeof e.rateMultiplier?e.rateMultiplier:s:s??e.rateMultiplier,promoFreeUntil:e.promoFreeUntil,promotion:t.promotion??e.promotion??null}})}(im,tb):im,ig=ip&&ih.find(e=>e.promotion)?.promotion||null,iy=(0,u.wG)(j),ib=(0,u.mq)(j),iv=(0,u.gb)(j),ij=ib||iv,iw=!ij&&il&&is,iN="xai"===j?"Grok Build OAuth":"grok-cli"===j?"Grok CLI Device Login":"kimi"===j?"Kimi Coding OAuth":"OAuth",ik="xai"===j?"xAI API Key":"kimi"===j?"Kimi API Key":"qoder"===j?"PAT":"API Key",iT=e=>{if(!tu||"auto"===tu)return null;let t=$(j,e);return t&&t.includes(tu)?tu:null},iC=ij?j:iy,iS=(()=>{let e=new Set,t=new Set,i=i=>{if(!i||t.has(i))return;t.add(i);let l=$(j,i);l&&l.forEach(t=>{"none"!==t&&e.add(t)})};for(let e of ih)i(e.id);for(let e of tj)i(e.id);for(let e of eA)e.providerAlias===iC&&"llm"===(e.kind||e.type||"llm")&&i(e.id);return e.size?["auto",...e]:null})(),i$=ij?z?.prefix||j:iy,iA=(0,s.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(iC)}`,{cache:"no-store"}),t=await e.json();e.ok&&tk(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[iC]),iO=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:iC,ids:[e]})})).ok&&await iA()}catch(e){console.log("Error disabling model:",e)}},iE=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(iC)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await iA()}catch(e){console.log("Error enabling model:",e)}},iP=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})})},iD=async(e,t=[])=>{let i=e.length+t.length;i&&tC({title:"Disable All Models",message:`Disable all ${i} model(s)?`,onConfirm:async()=>{tC(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 iA(),t))await iP(i,!1);t.length&&await iM()}catch(e){console.log("Error disabling all models:",e)}}})},iR=async(e=[])=>{try{for(let t of((await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(iC)}`,{method:"DELETE"})).ok&&await iA(),e))await iP(t,!0);e.length&&await iM()}catch(e){console.log("Error enabling all models:",e)}},iI=(0,s.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&e$(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]),iM=(0,s.useCallback)(async()=>{try{let e=await fetch("/api/models/custom",{cache:"no-store"}),t=await e.json();e.ok&&eO(t.models||[])}catch(e){console.log("Error fetching custom models:",e)}},[]);(0,s.useEffect)(()=>{"kilocode"===j&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&tw(e.models)}).catch(()=>{})},[j]);let i_=(0,s.useCallback)(async()=>{try{let[e,t,i,l]=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"})]),s=await e.json(),n=await t.json(),a=await i.json(),r=l.ok?await l.json():{};if(e.ok){let e=(s.connections||[]).filter(e=>e.provider===j);P(e)}i.ok&&L(a.proxyPools||[]);let o=(r.providerStrategies||{})[j]||{};ts(o.fallbackStrategy||null),ta(null!=o.stickyRoundRobinLimit?String(o.stickyRoundRobinLimit):"1"),to(!0===o.earliestExpiryFirst),eP(!0===r.codeBuddyOAuthImport);let d=(r.providerThinking||{})[j]||{};tm(d.mode||"auto");let c=eo[j],u=c&&r[c]||{};if(tx({enabled:!0===u.enabled,connections:u.connections||{},schedules:u.schedules||{}}),t.ok){let e=(n.nodes||[]).find(e=>e.id===j)||null;if(!e&&ij)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}F(e)}}catch(e){console.log("Error fetching connections:",e)}finally{q(!1)}},[j,ij]),iq=(0,s.useCallback)(async()=>{await i_(),await iA()},[i_,iA]),iz=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&&(F(i.node),await i_(),ew(!1))}catch(e){console.log("Error updating provider node:",e)}},iF=async(e,t,i=tr,l=td)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),n=(s.ok?await s.json():{}).providerStrategies||{},a={...n[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,l&&"priority"!==l?a.balanceStrategy=l:delete a.balanceStrategy;let r={...n};0===Object.keys(a).length?delete r[j]:r[j]=a,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:r})})}catch(e){console.log("Error saving provider strategy:",e)}},iU=e=>{ta(e),iF("round-robin",e,tr,td)},iL=e=>{"round-robin"===e?(to(!1),ts("round-robin"),tn||ta("1"),iF("round-robin",tn||"1",!1,td)):"earliest"===e?(to(!0),ts(null),iF(null,tn,!0,td)):(to(!1),ts(null),iF(null,tn,!1,td))},iK=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)}},iB=async e=>{let t=eo[j];if(t){tx(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,s.useEffect)(()=>{i_(),iI(),iM(),iA()},[i_,iI,iM,iA]),(0,s.useEffect)(()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.json()).then(e=>{eP(!0===e.codeBuddyOAuthImport),"boolean"==typeof e.codeBuddyCheckin&&eR(e.codeBuddyCheckin),"boolean"==typeof e.codeBuddyCompensation&&eM(e.codeBuddyCompensation);let t=(e.providerStrategies||{})[j]||{};ts(t.fallbackStrategy||null),ta(null!=t.stickyRoundRobinLimit?String(t.stickyRoundRobinLimit):"1"),to(!0===t.earliestExpiryFirst),tc(t.balanceStrategy||"priority")}).catch(e=>console.log("Error reading settings:",e))},[]),(0,s.useEffect)(()=>{if("cursor"!==j&&!ip)return void tv([]);let e=S.find(e=>!1!==e.isActive);if(!e?.id)return void tv([]);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&&tv(i.models)}).catch(()=>{}),()=>{t=!0}},[j,S]),(0,s.useEffect)(()=>{let e=(u.zN[j]||u.fg[j]||u.IS[j]||u.nJ[j])?.modelsFetcher;e&&D(e).then(tf)},[j]);let iJ=async(e,t,i=iy)=>{let l=`${i}/${e}`;try{let e=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:l,alias:t})});if(e.ok)await iI();else{let t=await e.json();C.error(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},iW=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await iI()}catch(e){console.log("Error deleting alias:",e)}},iH=async(e,t="llm",i=iC,l={},s,n)=>{try{let a={providerAlias:i,id:e,type:t};if(void 0!==s&&(a.enabled=s),n&&(a.transport=n),l&&"object"==typeof l)for(let e of["vision","reasoning","contextWindow","maxOutput","thinkingFormat"])void 0!==l[e]&&(a[e]=l[e]);let r=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(r.ok)await iM(),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)}},iG=e=>!!(k?.[iC]?.[e]||k?.[j]?.[e]),iV=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")}},iQ=async(e,t="llm",i=iC)=>{try{let l=new URLSearchParams({providerAlias:i,id:e,type:t});(await fetch(`/api/models/custom?${l}`,{method:"DELETE"})).ok&&(await iM(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error deleting custom model:",e)}},iY=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 iM(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error toggling custom model:",e)}},iZ=(e,t="llm")=>{tC({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()=>{tC(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 iM(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(e){console.log("Error bulk-updating custom models:",e)}}})},iX=async()=>{if(tK)return;let e=S.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"));tB(!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 l=i.models||[];if(0===l.length)return void C.warning((0,p.Tl)("No models returned"));let s=0,n=0;for(let e of l){let t=e.id||e.name;if(!t)continue;if("llm"!==(e.kind||"llm")){n+=1;continue}let i=t.replace(/^qoder(-cn)?\//,"");!l.some(e=>e.id===i)&&(eA.some(e=>e.providerAlias===iC&&e.id===i&&"llm"===(e.kind||e.type||"llm"))||Object.values(eS).includes(`${iC}/${i}`)||(await iH(i,"llm",iC,{},!1),s+=1))}0===s?C.warning((0,p.Tl)("All models already exist, no new models added")):C.success((0,p.Tl)("Successfully added")+` ${s} `+(0,p.Tl)("models")),n>0&&C.info((0,p.Tl)("Media models skipped (use Media Providers)")+` (${n})`)}catch(e){console.log("Error importing Qoder models:",e),C.error((0,p.Tl)("Error fetching models")+": "+e.message)}finally{tB(!1)}},i0="opencode-go"===j||"bai"===j||"cline"===j,i1=async()=>{if(tg)return;let e=S.find(e=>!1!==e.isActive);if(!e?.id)return void C.warning((0,p.Tl)("Add a connection to enable importing models."));ty(!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 l=(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);tf(l),C.success(`${(0,p.Tl)("Models refreshed")} (${l.length})`)}catch(e){C.error((0,p.Tl)("Failed to fetch models")+": "+e.message)}finally{ty(!1)}},i2=async()=>{if(tA||0===S.length)return;let e=Object.fromEntries(S.map(e=>[e.id,{state:"queued",error:null}]));tL.current=!1,tO(!0),tP(!1),t_(null),tz(e),tU({total:S.length,completed:0,passed:0,failed:0,stopped:!1});let t=0,i=0;try{for(let e=0;e<S.length;e+=1){if(tL.current){tU({total:S.length,completed:e,passed:t,failed:i,stopped:!0});break}let l=S[e];t_(l.id),tz(e=>({...e,[l.id]:{state:"testing",error:null}}));try{let e=ih.some(e=>e.id===tR)?tR:null,s=await fetch(`/api/providers/${l.id}/test`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e&&e!==tD?{model:e}:{})}),n=await s.json(),a=!!n.valid;a?t+=1:i+=1,tz(e=>({...e,[l.id]:{state:a?"success":"failed",error:a?null:n.error||null}}))}catch(e){i+=1,tz(t=>({...t,[l.id]:{state:"failed",error:e.message||"Test failed"}}))}tU({total:S.length,completed:e+1,passed:t,failed:i,stopped:!1}),e<S.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{t_(null),tO(!1),tP(!1),tL.current=!1,i_()}},i5=async e=>{tC({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{tC(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&P(t=>t.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},i3=()=>{e2(""),e0({}),tz({}),tU(null),i_(),W(!1)},i4=async e=>{ex("");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){e2(""),e0({}),await iq(),ec(!1);return}ex(i?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),ex("Failed to save connection")}},i6=async e=>{try{(await fetch(`/api/providers/${eT.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(e2(""),e0({}),tz({}),tU(null),await i_(),ev(!1))}catch(e){console.log("Error updating connection:",e)}},i8=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&P(i=>i.map(i=>i.id===e?{...i,isActive:t}:i))}catch(e){console.log("Error updating connection status:",e)}},i7=async(e,t)=>{let i=[...S];[i[e],i[t]]=[i[t],i[e]],P(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 i_()}},i9=S.filter(e=>e8.includes(e.id)),le=S.length>0&&e8.length===S.length;(0,s.useEffect)(()=>{e7(e=>e.filter(e=>S.some(t=>t.id===e)))},[S]),(()=>{if(0===i9.length)return;let e=new Set(i9.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return;let i=U.find(e=>e.id===t);return i?.name}})();let lt=()=>{tt||ek(!1)},li=async e=>{ti(!0);try{let t=0;for(let{connectionId:i,proxyPoolId:l}of e)try{(await fetch(`/api/providers/${i}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:l})})).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 i_(),ek(!1)}finally{ti(!1)}},ll=e=>li(S.map(t=>({connectionId:t.id,proxyPoolId:e}))),ls=(0,l.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:S.map((e,t)=>{let i;return(0,l.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,l.jsx)("div",{className:"flex shrink-0 items-center pl-1 sm:pl-2",children:(0,l.jsx)("input",{type:"checkbox",checked:(i=e.id,e8.includes(i)),onChange:()=>{var t;return t=e.id,void e7(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,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsx)(V,{connection:e,proxyPools:U,isOAuth:il,isFirst:0===t,isLast:t===S.length-1,onMoveUp:()=>i7(t,t-1),onMoveDown:()=>i7(t,t+1),onToggleActive:t=>i8(e.id,t),autoPing:eo[j]&&"oauth"===e.authType?{isActive:!0===tp.connections[e.id]||tp.schedules?.[e.id]?.enabled===!0,reactiveOn:!0===tp.connections[e.id],provider:j,scheduleOn:tp.schedules?.[e.id]?.enabled===!0,scheduleSummary:(0,ea.JW)(tp.schedules?.[e.id]).join(" / "),onConfigure:()=>t6(e)}: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&&P(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:()=>{eC(e),ev(!0)},onDelete:()=>i5(e.id),oneByOneStatus:tq[e.id]||null})})]},e.id)})}),ln=U.filter(e=>!0===e.isActive),la=(0,l.jsx)(c.aF,{isOpen:eN,onClose:lt,title:`Apply Proxy (${S.length} connections)`,children:(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("button",{onClick:()=>{let e=U.filter(e=>!0===e.isActive);return 0===e.length?void C.warning("No active proxy pools available."):li(S.map((t,i)=>({connectionId:t.id,proxyPoolId:e[i%e.length].id})))},disabled:tt||0===ln.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,l.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,l.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,l.jsxs)("button",{onClick:()=>ll(null),disabled:tt,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,l.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,l.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),U.map(e=>(0,l.jsxs)("button",{onClick:()=>ll(e.id),disabled:tt||!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,l.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,l.jsx)("span",{className:"truncate text-sm text-text-main",children:e.name}),!0!==e.isActive&&(0,l.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},e.id))]}),tt&&(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,l.jsx)(c.$n,{onClick:lt,variant:"ghost",fullWidth:!0,disabled:tt,children:"Cancel"})]})}),lr=async e=>{if(!e5.has(e)){e3(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();e0(t=>({...t,[e]:i.ok?"ok":"error"})),e2(i.ok?"":i.error||"Model not reachable")}catch{e0(t=>({...t,[e]:"error"})),e2("Network error")}finally{setTimeout(()=>{i_()},600),e3(t=>{let i=new Set(t);return i.delete(e),i})}}};if(_)return(0,l.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,l.jsx)(c.Qv,{}),(0,l.jsx)(c.Qv,{})]});if(!it)return(0,l.jsxs)("div",{className:"text-center py-20",children:[(0,l.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,l.jsx)(r(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]});let lo=()=>ib&&it.apiType?"responses"===it.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":iv?"/providers/anthropic-m.png":(0,d.HY)(it.id);return(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.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,l.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,l.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,l.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${it.color}15`},children:eY||!lo()?(0,l.jsx)("span",{className:"text-sm font-bold",style:{color:it.color},children:it.textIcon||it.id.slice(0,2).toUpperCase()}):(0,l.jsx)(o.default,{src:lo(),alt:it.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>{(0,d.Kw)(it.id),eZ(!0)},loading:"lazy",decoding:"async"})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,l.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:it.name}),(it.notice?.webUrl||it.notice?.apiKeyUrl||it.notice?.signupUrl||it.website)&&(0,l.jsxs)("a",{href:it.notice?.webUrl||it.notice?.apiKeyUrl||it.notice?.signupUrl||it.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),it.notice?.webUrl?"Web console":it.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]}),(0,l.jsx)(c.N5,{code:it.notice?.inviteCode})]}),!ia&&(0,l.jsx)("p",{className:"text-text-muted",children:1===S.length?(0,p.Tl)("1 connection"):(0,p.Tl)("{n} connections").replace("{n}",String(S.length))})]})]})]}),it.deprecated&&(0,l.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,l.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,l.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:it.deprecationNotice})]}),it.notice?.text&&!it.deprecated&&(0,l.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,l.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,l.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:(0,p.Tl)(it.notice.text)}),it.notice.apiKeyUrl&&(0,l.jsx)("a",{href:it.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 →")})]}),ij&&z&&(0,l.jsx)(c.Zp,{children:(0,l.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold",children:iv?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,l.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[iv?"Messages API":"responses"===z.apiType?"Responses API":"Chat Completions"," \xb7 ",(z.baseUrl||"").replace(/\/$/,""),"/",iv?"messages":"responses"===z.apiType?"responses":"chat/completions"]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,l.jsx)(c.$n,{size:"sm",icon:"add",onClick:()=>{ex(""),ec(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,l.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ew(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,l.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{tC({title:"Delete Compatible Node",message:`Delete this ${iv?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{tC(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"})]})]})}),ia?(0,l.jsx)(c.gw,{providerId:j}):(0,l.jsxs)(c.Zp,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold",children:(0,p.Tl)("Connections")}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[S.length>0&&U.length>0&&(0,l.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>ek(!0),children:(0,p.Tl)("Apply Proxy")}),S.length>0&&(0,l.jsxs)(l.Fragment,{children:[e8.length>0&&(0,l.jsxs)(c.$n,{size:"sm",variant:"danger",icon:"delete",onClick:()=>{let e=e8.length;0!==e&&tC({title:(0,p.Tl)("Delete {count} Connections",{count:e}),message:(0,p.Tl)("Delete {count} connections? This cannot be undone.",{count:e}),onConfirm:async()=>{tC(null);let e=0,t=[...e8];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}P(e=>e.filter(e=>!t.includes(e.id))),e7([]),e>0?C.warning((0,p.Tl)("Deleted {deleted} connection(s), {failed} failed.",{deleted:t.length-e,failed:e})):C.success((0,p.Tl)("Deleted successfully"))}})},children:[(0,p.Tl)("Delete Selected")," (",e8.length,")"]}),S.length>0&&ih.length>1&&(0,l.jsx)(c.l6,{value:tR,onChange:e=>tI(e.target.value),disabled:tA,options:[{value:tD,label:(0,p.Tl)("Provider default")},...ih.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,l.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:i2,disabled:tA,children:tA?(0,p.Tl)("Testing Connection One-by-One..."):(0,p.Tl)("Test Connection One-by-One")}),tA&&(0,l.jsx)(c.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{tA&&(tL.current=!0,tP(!0))},disabled:tE,children:tE?(0,p.Tl)("Stopping..."):(0,p.Tl)("Stop")})]}),(()=>{let e=(0,er.M)(j);if(e===er.B.PACK_ASSET){let e=tr?"earliest":"round-robin"===tl?"round-robin":"priority";return(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,p.Tl)("Scheduling Preference")}),(0,l.jsx)(c.l6,{value:e,onChange:e=>iL(e.target.value),options:[{value:"earliest",label:(0,p.Tl)("Earliest Pack Expiry")},{value:"round-robin",label:(0,p.Tl)("Round Robin (Balanced)")},{value:"priority",label:(0,p.Tl)("Manual Priority (#1 → #2)")}],selectClassName:"!py-1 !text-xs w-48"})]}),"round-robin"===e&&(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-xs text-text-muted",children:(0,p.Tl)("Sticky:")}),(0,l.jsx)("input",{type:"number",min:1,value:tn,onChange:e=>iU(e.target.value),placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-surface focus:outline-none focus:border-primary"})]})]})}if(e===er.B.ROLLING_SUBSCRIPTION){let e=tr?"earliest":"round-robin"===tl?"round-robin":"priority";return(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,p.Tl)("Scheduling Preference")}),(0,l.jsx)(c.l6,{value:e,onChange:e=>iL(e.target.value),options:[{value:"earliest",label:(0,p.Tl)("Subscription Relay")},{value:"round-robin",label:(0,p.Tl)("Round Robin (Balanced)")},{value:"priority",label:(0,p.Tl)("Manual Priority (#1 → #2)")}],selectClassName:"!py-1 !text-xs w-48"})]}),"round-robin"===e&&(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-xs text-text-muted",children:(0,p.Tl)("Sticky:")}),(0,l.jsx)("input",{type:"number",min:1,value:tn,onChange:e=>iU(e.target.value),placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-surface focus:outline-none focus:border-primary"})]})]})}if(e===er.B.PURE_BALANCE)return(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,p.Tl)("Scheduling Preference")}),(0,l.jsx)(c.l6,{value:td,onChange:e=>{var t;tc(t=e.target.value),"round-robin"===t?(ts("round-robin"),tn||ta("1"),iF("round-robin",tn||"1",!1,t)):(ts(null),iF(null,tn,!1,t))},options:[{value:"priority",label:(0,p.Tl)("Manual Priority (#1 → #2)")},{value:"lowest-first",label:(0,p.Tl)("Lowest Balance First")},{value:"highest-first",label:(0,p.Tl)("Highest Balance First")},{value:"round-robin",label:(0,p.Tl)("Round Robin (Balanced)")}],selectClassName:"!py-1 !text-xs w-48"})]}),"round-robin"===td&&(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-xs text-text-muted",children:(0,p.Tl)("Sticky:")}),(0,l.jsx)("input",{type:"number",min:1,value:tn,onChange:e=>iU(e.target.value),placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-surface focus:outline-none focus:border-primary"})]})]});if(e===er.B.GATEWAY_FREE)return(0,l.jsx)("span",{className:"text-xs text-text-muted bg-surface px-2.5 py-1 rounded-md border border-border",children:(0,p.Tl)("Gateway Managed Auto Routing")});let t=tr?"earliest":"round-robin"===tl?"round-robin":"priority";return(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"text-xs text-text-muted font-medium",children:(0,p.Tl)("Scheduling Preference")}),(0,l.jsx)(c.l6,{value:t,onChange:e=>iL(e.target.value),options:[{value:"earliest",label:(0,p.Tl)("Earliest Expiry First")},{value:"round-robin",label:(0,p.Tl)("Round Robin (Balanced)")},{value:"priority",label:(0,p.Tl)("Manual Priority (#1 → #2)")}],selectClassName:"!py-1 !text-xs w-48"})]}),"round-robin"===t&&(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("span",{className:"text-xs text-text-muted",children:(0,p.Tl)("Sticky:")}),(0,l.jsx)("input",{type:"number",min:1,value:tn,onChange:e=>iU(e.target.value),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===S.length?(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:il?"lock":"key"})}),(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),iw&&(0,l.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",iN," or ",ik,"."]})]})]}),(0,l.jsx)("div",{className:"flex gap-2",children:iw?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tV,children:iN}),(0,l.jsx)(c.$n,{size:"sm",icon:"key",onClick:tQ,children:ik}),iu()]}):(0,l.jsxs)(l.Fragment,{children:[!ij&&"iflow"===j&&(0,l.jsx)(c.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>et(!0),children:"Cookie"}),"codex"===j&&(0,l.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ef(!0),children:(0,p.Tl)("Bulk Add")}),(0,l.jsx)(c.$n,{size:"sm",icon:"add",onClick:tY,children:ij?"Add API Key":"iflow"===j?"OAuth":"mimo-desktop"===j?(0,l.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,p.Tl)("Connect with Desktop Session"),(0,l.jsx)(c.m_,{text:(0,p.Tl)("Requires sign-in to Xiaomi MiMo Desktop app first"),position:"top",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[14px] opacity-60",children:"info"})})]}):"Add Connection"}),"loomy"===j&&(0,l.jsx)(c.$n,{size:"sm",icon:"sms",onClick:()=>em(!0),children:(0,p.Tl)("SMS Login")}),iu()]})})]}):(0,l.jsxs)(l.Fragment,{children:[tF&&(0,l.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,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsxs)("span",{children:[(0,p.Tl)("Total:")," ",tF.total]}),(0,l.jsxs)("span",{children:[(0,p.Tl)("Completed:")," ",tF.completed]}),(0,l.jsxs)("span",{children:[(0,p.Tl)("Passed:")," ",tF.passed]}),(0,l.jsxs)("span",{children:[(0,p.Tl)("Failed:")," ",tF.failed]}),tF.stopped&&(0,l.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:(0,p.Tl)("Stopped")}),tA&&tM&&(0,l.jsxs)("span",{children:[(0,p.Tl)("Running:")," ",S.find(e=>e.id===tM)?.name||tM]})]})}),S.length>0&&(0,l.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,l.jsxs)("label",{className:"flex cursor-pointer items-center gap-1.5 text-xs text-text-muted hover:text-primary",children:[(0,l.jsx)("input",{type:"checkbox",checked:le,onChange:()=>{le?e7([]):e7(S.map(e=>e.id))},className:"h-3.5 w-3.5 rounded border-gray-300 text-primary focus:ring-primary"}),(0,p.Tl)("Select All")]})}),ls,!ij&&(0,l.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===j&&(0,l.jsx)(c.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>et(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codex"===j&&(0,l.jsx)(c.$n,{size:"sm",icon:"playlist_add",variant:"secondary",onClick:()=>ef(!0),title:(0,p.Tl)("Bulk import codex accounts from JSON"),className:"w-full sm:w-auto",children:(0,p.Tl)("Bulk Add")}),iw?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tV,className:"w-full sm:w-auto",children:iN}),(0,l.jsx)(c.$n,{size:"sm",icon:"key",onClick:tQ,className:"w-full sm:w-auto",children:ik}),iu("w-full sm:w-auto"),id&&(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,l.jsx)(c.$n,{size:"sm",icon:"calendar_today",onClick:t8,disabled:e_,className:"w-full sm:w-auto",title:(0,p.Tl)("CodeBuddy CN auto-checks in daily (retries all day until confirmed)"),children:e_?(0,p.Tl)("Checking in..."):(0,p.Tl)("Check in now")}),(0,l.jsx)(c.$n,{size:"sm",icon:"redeem",variant:"secondary",onClick:t7,disabled:ez,className:"w-full sm:w-auto",title:(0,p.Tl)("Claim extra compensation & gifts"),children:ez?(0,p.Tl)("Claiming..."):(0,p.Tl)("Claim Compensation")})]}),ic&&ie()]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.$n,{size:"sm",icon:"add",onClick:tY,className:"w-full sm:w-auto",children:"Add"}),"loomy"===j&&(0,l.jsx)(c.$n,{size:"sm",icon:"sms",onClick:()=>em(!0),children:(0,p.Tl)("SMS Login")}),iu("w-full sm:w-auto"),ic&&ie()]})]})]})]}),(0,l.jsxs)(c.Zp,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),iS&&(0,l.jsx)("select",{value:tu,onChange:e=>{var t;tm(t=e.target.value),iK(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:iS.map(e=>(0,l.jsx)("option",{value:e,children:`Thinking: ${e.charAt(0).toUpperCase()+e.slice(1)}`},e))})]}),!ij&&(e=[...ih,...tj.filter(e=>!ih.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}).map(e=>e.id).filter(e=>!tN.includes(e)),i=(t=eA.filter(e=>e?.providerAlias===iC&&"llm"===(e.kind||e.type||"llm"))).filter(e=>!1!==e.enabled).map(e=>e.id),a=t.filter(e=>!1===e.enabled).map(e=>e.id),x=tN.length>0||a.length>0,h=e.length>0||i.length>0,(0,l.jsxs)("div",{className:"flex gap-2",children:[x&&(0,l.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:()=>iR(a),children:"Active All"}),h&&(0,l.jsx)(c.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>iD(e,i),children:"Disable All"})]}))]}),!!e1&&(f=(0,I.O)(e1),y=function(e){if(!e)return"";let t=(0,M.DY)(e);if(t&&t!==e)return t;let i=(0,p.Tl)(e);if(i&&i!==e)return i;let l=String(e).match(/^HTTP\s+\d+:\s*(?:\[(?:\d+|[A-Z0-9_]+)\]:\s*)?(.*)$/i);if(l&&l[1]){let e=l[1].trim(),t=(0,p.Tl)(e);if(t&&t!==e)return t}return(0,p.Tl)(e)}(e1),(0,l.jsxs)("p",{className:"text-xs text-red-500 mb-3 break-words",children:[y," ",f&&(0,l.jsxs)(l.Fragment,{children:[(0,l.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,l.jsx)("button",{type:"button",onClick:()=>tW(f,"verification"),className:"text-text-muted underline hover:text-primary",children:"verification"===tJ?(0,p.Tl)("Copied"):(0,p.Tl)("Copy link")}),(0,l.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(ij)return(0,l.jsx)(J,{providerStorageAlias:iC,providerDisplayAlias:i$,modelAliases:eS,customModels:eA,copied:tJ,onCopy:tW,onSetAlias:iJ,onDeleteAlias:iW,onAddCustomModel:(e,t)=>iH(e,"llm",iC,{},t),onToggleCustomModel:iY,onDeleteCustomModel:e=>iQ(e,"llm",iC),onBulkCustomModels:iZ,connections:S,isAnthropic:iv});let s=[...ih,...tj.filter(e=>!ih.some(t=>t.id===e.id))].filter(e=>{let t=(0,m.CP)(e);return!t||"llm"===t}),n=new Set(tN),a=s.filter(e=>!n.has(e.id)),r=s.filter(e=>n.has(e.id)),o=R({customModels:eA,modelAliases:eS,providerAlias:iC,builtInModels:ih,type:"llm"}),d=o.filter(e=>!1!==e.enabled),c=o.filter(e=>!1===e.enabled);return(0,l.jsxs)("div",{className:"flex flex-wrap gap-3",children:[ig&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(g,{promotion:ig})}),d.length+c.length>0&&(0,l.jsxs)("div",{className:"w-full flex items-center gap-2 text-xs text-text-muted -mb-1",children:[(0,l.jsxs)("span",{children:[(0,p.Tl)("Custom models")," (",d.length+c.length,")"]}),(0,l.jsx)("span",{children:"\xb7"}),(0,l.jsx)("button",{onClick:()=>iZ(!0),className:"text-primary hover:underline",children:(0,p.Tl)("Enable all")}),(0,l.jsx)("span",{children:"\xb7"}),(0,l.jsx)("button",{onClick:()=>iZ(!1),className:"text-text-muted hover:text-red-500 hover:underline",children:(0,p.Tl)("Disable all")})]}),d.map(e=>(0,l.jsx)(K,{model:{id:e.id,name:e.name},fullModel:`${i$}/${e.id}`,alias:e.alias,copied:tJ,onCopy:tW,onSetAlias:()=>{},onDeleteAlias:()=>{"custom"===e.source?iQ(e.id,"llm",iC):iW(e.alias)},testStatus:eX[e.id],onTest:S.length>0||ia?()=>lr(e.id):void 0,isTesting:e5.has(e.id),isCustom:!0,isFree:!1,caps:w(`${j}/${e.id}`),baseCaps:N(`${j}/${e.id}`),onSaveCaps:t=>iV(e.id,t),capsPinned:iG(e.id),thinkingSuffix:iT(e.id)},`${e.source}-${e.fullModel}`)),a.map(e=>{let t=`${iC}/${e.id}`,i=`${j}/${e.id}`,s=Object.entries(eS).find(([,e])=>e===t||e===i)?.[0];return(0,l.jsx)(K,{model:e,fullModel:`${i$}/${e.id}`,alias:s,copied:tJ,onCopy:tW,onSetAlias:t=>iJ(e.id,t,iC),onDeleteAlias:()=>iW(s),testStatus:eX[e.id],onTest:S.length>0||ia?()=>lr(e.id):void 0,isTesting:e5.has(e.id),isFree:e.isFree,onDisable:()=>iO(e.id),caps:w(`${j}/${e.id}`),baseCaps:N(`${j}/${e.id}`),onSaveCaps:t=>iV(e.id,t),capsPinned:iG(e.id),thinkingSuffix:iT(e.id)},e.id)}),(0,l.jsxs)("button",{onClick:()=>e6(!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,l.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),"cline"===j&&S.some(e=>!1!==e.isActive)&&(0,l.jsxs)("button",{onClick:i1,disabled:tg,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,l.jsx)("span",{className:"material-symbols-outlined text-sm",style:tg?{animation:"spin 1s linear infinite"}:void 0,children:tg?"progress_activity":"download"}),tg?(0,p.Tl)("Importing..."):(0,p.Tl)("Import from /models")]}),ix&&S.some(e=>!1!==e.isActive)&&(0,l.jsxs)("button",{onClick:iX,disabled:tK,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,l.jsx)("span",{className:"material-symbols-outlined text-sm",style:tK?{animation:"spin 1s linear infinite"}:void 0,children:tK?"progress_activity":"download"}),tK?(0,p.Tl)("Fetching..."):(0,p.Tl)("xiaomi-mimo"===j?"Fetch MiMo Models":"Fetch Qoder Models")]}),i0&&"cline"!==j&&(0,l.jsxs)("button",{onClick:i1,disabled:tg||!S.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,l.jsx)("span",{className:"material-symbols-outlined text-sm",style:tg?{animation:"spin 1s linear infinite"}:void 0,children:tg?"progress_activity":"refresh"}),tg?(0,p.Tl)("Refreshing..."):(0,p.Tl)("Refresh Official Models")]}),th.length>0&&(e=new Set([...Object.values(eS),...o.map(e=>e.fullModel)]),t=new Set(ih.map(e=>e.id)),0===(i=th.filter(i=>!e.has(`${iC}/${i.id}`)&&!t.has(i.id))).length?null:(0,l.jsxs)("div",{className:"w-full mt-2",children:[(0,l.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,l.jsx)("div",{className:"flex flex-wrap gap-2",children:i.map(e=>(0,l.jsxs)("button",{onClick:async()=>{await iH(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,l.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id.split("/").pop()]},e.id))})]})),(r.length>0||c.length>0)&&(0,l.jsxs)("div",{className:"w-full mt-2",children:[(0,l.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",r.length+c.length,"):"]}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-3",children:[c.map(e=>(0,l.jsx)(K,{model:{id:e.id,name:e.name},fullModel:`${i$}/${e.id}`,copied:tJ,onCopy:tW,testStatus:eX[e.id],onTest:S.length>0||ia?()=>lr(e.id):void 0,isTesting:e5.has(e.id),onEnable:()=>iY(e.id,!0),isCustom:!1,isFree:!1,caps:w(`${j}/${e.id}`),baseCaps:N(`${j}/${e.id}`),onSaveCaps:t=>iV(e.id,t),capsPinned:iG(e.id)},`custom-${e.fullModel}`)),r.map(e=>(0,l.jsx)(K,{model:e,fullModel:`${i$}/${e.id}`,copied:tJ,onCopy:tW,testStatus:eX[e.id],onTest:S.length>0||ia?()=>lr(e.id):void 0,isTesting:e5.has(e.id),onEnable:()=>iE(e.id),isFree:e.isFree,caps:w(`${j}/${e.id}`),baseCaps:N(`${j}/${e.id}`),onSaveCaps:t=>iV(e.id,t),capsPinned:iG(e.id),thinkingSuffix:iT(e.id)},e.id))]})]})]})})()]}),la,"kiro"===j?(0,l.jsx)(c.Mh,{isOpen:B,providerInfo:it,onSuccess:i3,onClose:()=>W(!1)}):"cursor"===j?(0,l.jsx)(c.G9,{isOpen:B,onSuccess:i3,onClose:()=>W(!1)}):"zed"===j?(0,l.jsx)(c.TE,{isOpen:B,providerInfo:it,onSuccess:i3,onClose:()=>W(!1)}):"gitlab"===j?(0,l.jsx)(c.vj,{isOpen:B,providerInfo:it,onSuccess:i3,onClose:()=>W(!1)}):(0,l.jsx)(c.LF,{isOpen:B,provider:j,providerInfo:it,onSuccess:i3,onClose:()=>W(!1)}),("xiaomi-mimo"===j||"mimo-desktop"===j)&&(0,l.jsx)(c.LH,{provider:j,isOpen:H,onSuccess:i3,onClose:()=>G(!1)}),"iflow"===j&&(0,l.jsx)(c.vE,{isOpen:Q,onSuccess:()=>{i_(),et(!1)},onClose:()=>et(!1)}),(0,l.jsx)(Y,{isOpen:ed,provider:j,providerName:it.name,isCompatible:ij,isAnthropic:iv,authType:it?.authType,authHint:it?.authHint,website:it?.website,proxyPools:U,error:ep,existingNames:S.map(e=>e.name).filter(Boolean),onSave:i4,onBulkDone:iq,onClose:()=>{ex(""),ec(!1)}}),"loomy"===j&&eu&&(0,l.jsx)(Z.A,{isOpen:!0,onClose:()=>em(!1),onAdded:iq}),(0,l.jsx)(c.wI,{isOpen:eb,connection:eT,proxyPools:U,onSave:i6,onClose:()=>ev(!1)}),ij&&(0,l.jsx)(X,{isOpen:ej,node:z,onSave:iz,onClose:()=>ew(!1),isAnthropic:iv}),!ij&&(0,l.jsx)(ee,{isOpen:e4,providerAlias:iC,providerDisplayAlias:i$,onSave:async(e,t,i,l)=>{await iH(e,i||"llm",iC,t||{},void 0,l),e6(!1)},onClose:()=>e6(!1)}),"codex"===j&&(0,l.jsx)(ei,{isOpen:eh,onClose:()=>ef(!1),onSuccess:i_}),"codebuddy-cn"===j&&(0,l.jsx)(el,{isOpen:eg,password:eV,onClose:()=>ey(!1),onSuccess:i_}),(0,l.jsx)(es,{isOpen:tX,mode:t1,provider:j,providerName:it?.name,dashboardPassword:t5,onClose:()=>{t0(!1),t3("")},onSuccess:i_}),(0,l.jsxs)(c.aF,{isOpen:eK.open,onClose:()=>eB({open:!1,action:null,value:""}),title:(0,p.Tl)("Confirm Password"),size:"sm",footer:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.$n,{variant:"ghost",onClick:()=>eB({open:!1,action:null,value:""}),children:(0,p.Tl)("Cancel")}),(0,l.jsx)(c.$n,{variant:"primary",onClick:tZ,disabled:!eK.value||eJ,children:eJ?(0,p.Tl)("Verifying..."):(0,p.Tl)("Confirm")})]}),children:[(0,l.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,l.jsx)(c.pd,{type:"password",reveal:!0,autoFocus:!0,value:eK.value,onChange:e=>eB(t=>({...t,value:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&eK.value&&tZ()},placeholder:(0,p.Tl)("Password")}),eH&&(0,l.jsx)("p",{className:"text-xs text-red-500 mt-2",children:eH})]}),(0,l.jsx)(c.uo,{isOpen:tS,onClose:()=>t$(!1),onConfirm:()=>{(window.localStorage.setItem(tH,"true"),t$(!1),il)?tG():tQ()},title:"Risk Notice",message:it?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,l.jsx)(c.uo,{isOpen:!!tT,onClose:()=>tC(null),onConfirm:tT?.onConfirm,title:tT?.title||"Confirm",message:tT?.message,variant:"danger"}),t4&&(0,l.jsx)(en.A,{isOpen:!!t4,onClose:()=>t6(null),connection:t4,reactive:!0===tp.connections[t4.id],schedule:tp.schedules?.[t4.id]||null,onSave:e=>((e,{reactive:t,schedule:i})=>{iB({...tp,connections:{...tp.connections,[e]:t},schedules:{...tp.schedules||{},[e]:i}})})(t4.id,e)})]})}},90337:(e,t,i)=>{"use strict";i.d(t,{DY:()=>o});var l=i(73006),s=i(22862),n=i(43073);let a=/subscription_quota_exhausted|本周用量已满|本周额度已用完/i;function r(e,t){return(0,l.Tl)(e).replace("{n}",String(t))}function o(e){if(!e||"string"!=typeof e)return e??"";let t=(0,l.Tl)(e);if(t&&t!==e)return t;if(a.test(e))return(0,l.Tl)("Subscription quota used up. Please wait for the quota reset.");if(s.AZ.test(e)){let t=(0,n.l)(e),i=(0,l.Tl)("This account must complete real-name verification before StepFun will serve it. Complete it at {url}, then retry.");return i.replace("{url}",t||(0,l.Tl)("the provider's console"))}if(/Individual quota reached|QUOTA_EXHAUSTED|RESOURCE_EXHAUSTED/i.test(e)){let t,i,s,n,a,o,d,c,{delay:u,timestamp:m,model:p}=(t=String(e||""),i=null,s=null,n=/"quotaResetDelay"\s*:\s*"([^"]+)"/.exec(t),a=/\bResets in\s+([0-9hms.]+)/i.exec(t),(i=n&&n[1]||a&&a[1]||null)&&(i=i.replace(/\.+$/,"")),o=/"quotaResetTimeStamp"\s*:\s*"([^"]+)"/.exec(t),d=/"quotaResetTimeStamp"\s*:\s*(".*?"|\S+)/.exec(t),(s=o&&o[1]||d&&d[1]||null)&&(s=s.replace(/^"|"$/g,"")),{delay:i,timestamp:s,model:/"model"\s*:\s*"([^"]+)"/.exec(t)?.[1]||null}),x=function(e){if(!e)return"";let{h:t,m:i,s:l}=e;if(l>=60&&(i+=Math.floor(l/60),l%=60),i>=60&&(t+=Math.floor(i/60),i%=60),t>=24){let e=Math.floor(t/24),i=t%24;return i>0?`${r("{n}d",e)} ${r("{n}h",i)}`:r("{n}d",e)}let s=[];return t>0&&s.push(r("{n}h",t)),i>0&&s.push(r("{n}m",i)),(l>0||0===s.length)&&s.push(r("{n}s",l)),s.join(" ")}((c=/^(?:(\d+(?:\.\d+)?)h)?(?:(\d+(?:\.\d+)?)m)?(?:(\d+(?:\.\d+)?)s)?$/i.exec(String(u||"").trim()))&&(c[1]||c[2]||c[3])?{h:Math.floor(parseFloat(c[1]||0)),m:Math.floor(parseFloat(c[2]||0)),s:Math.round(parseFloat(c[3]||0))}:null),h=m?function(e){let t=new Date(e);if(Number.isNaN(t.getTime()))return e||"";try{return t.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return t.toISOString()}}(m):"",f=(0,l.Tl)(p?"Individual quota reached for model {model}. Resets at {time} (in {duration}).":"Individual quota reached. Resets at {time} (in {duration}).");return(f=(f=f.replace("{model}",p||"")).replace("{time}",h||(0,l.Tl)("shortly"))).replace("{duration}",x||(0,l.Tl)("a short while"))}return t}},93195:(e,t,i)=>{"use strict";function l(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}}i.d(t,{JW:()=>o,Vm:()=>l,fB:()=>n,gy:()=>s,nz:()=>a});let s={anchor:"09:30",timezone:l(),windowHours:5,slotsPerDay:3};function n(e){let t=/^(\d{1,2}):(\d{2})$/.exec(String(e||"").trim());if(!t)return null;let i=Number(t[1]),l=Number(t[2]);return i>23||l>59?null:{hour:i,minute:l}}function a(e){return Math.max(1,Math.floor(24/e))}function r(e,t,i,l){let s="number"==typeof e?e:Number(e);return Number.isFinite(s)?Math.min(l,Math.max(i,s)):t}function o(e){let t=function(e){if(!e||!0!==e.enabled)return null;let t=n(e.anchor)||n(s.anchor),i=`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}`,l=!function(e){if(!e||"string"!=typeof e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),!0}catch{return!1}}(e.timezone)?s.timezone:e.timezone,o=r(e.windowHours,s.windowHours,.5,24),d=Math.round(r(e.slotsPerDay,s.slotsPerDay,1,a(o)));return{enabled:!0,anchor:i,timezone:l,windowHours:o,slotsPerDay:d}}(e);if(!t)return[];let{hour:i,minute:l}=n(t.anchor),o=60*i+l;return Array.from({length:t.slotsPerDay},(e,i)=>{let l=Math.round(o+i*t.windowHours*60)%1440;return`${String(Math.floor(l/60)).padStart(2,"0")}:${String(l%60).padStart(2,"0")}`})}},93578:(e,t,i)=>{Promise.resolve().then(i.bind(i,83204))},97132:(e,t,i)=>{"use strict";i.d(t,{A:()=>u});var l=i(95155),s=i(12115),n=i(14051),a=i.n(n),r=i(35497),o=i(31474),d=i(93195);let c=[{value:"off",label:"Off",icon:"block"},{value:"reset",label:"On reset",icon:"bolt"},{value:"schedule",label:"Schedule",icon:"schedule"}];function u({isOpen:e,onClose:t,onSave:i,connection:n,reactive:a=!1,schedule:m=null}){let[p,x]=(0,s.useState)(()=>({mode:m?.enabled===!0?"schedule":!0===a?"reset":"off",anchor:m?.anchor||d.gy.anchor,timezone:(0,d.Vm)(),windowHours:String(m?.windowHours??d.gy.windowHours),slotsPerDay:String(m?.slotsPerDay??d.gy.slotsPerDay)})),h=Number(p.windowHours),f=Number(p.slotsPerDay),g=!!(0,d.fB)(p.anchor),y=Number.isFinite(h)&&h>=.5&&h<=24,b=y?(0,d.nz)(h):24,v=Number.isInteger(f)&&f>=1&&f<=b,j=g&&y&&v,w="schedule"!==p.mode||j,N=j?(0,d.JW)({enabled:!0,...p,windowHours:h,slotsPerDay:f}):[],k=N.length&&y?(()=>{let{hour:e,minute:t}=(0,d.fB)(p.anchor),i=Math.round(60*e+t+f*h*60)%1440;return`${String(Math.floor(i/60)).padStart(2,"0")}:${String(i%60).padStart(2,"0")}`})():"",T=e=>x(t=>({...t,...e}));return(0,l.jsx)(r.aF,{isOpen:e,onClose:t,title:"Auto-ping settings",size:"lg",footer:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.$n,{variant:"secondary",onClick:t,children:"Cancel"}),(0,l.jsx)(r.$n,{onClick:()=>{w&&(i({reactive:"reset"===p.mode,schedule:"schedule"===p.mode?{enabled:!0,anchor:p.anchor,timezone:p.timezone,windowHours:h,slotsPerDay:f}:{enabled:!1}}),t())},disabled:!w,children:"Save"})]}),children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("p",{className:"text-sm text-text-muted",children:["Configure automated quota pings",n?.name?` for ${n.name}`:""," — pick one mode."]}),(0,l.jsx)("div",{className:"grid grid-cols-3 gap-1 rounded-[10px] bg-surface-2 p-1",children:c.map(e=>{let t=p.mode===e.value;return(0,l.jsxs)("button",{type:"button",onClick:()=>T({mode:e.value}),className:(0,o.cn)("flex h-9 items-center justify-center gap-1.5 rounded-[8px] px-3 text-sm font-medium transition-all",t?"bg-surface text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[15px] leading-none",children:e.icon}),(0,l.jsx)("span",{children:e.label})]},e.value)})}),"reset"===p.mode&&(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Pings right after the 5h quota window resets, so a new window starts immediately."}),"schedule"===p.mode&&(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Pings at fixed local times so the 5h windows align with your workday."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[(0,l.jsx)(r.pd,{label:"Anchor time",type:"time",value:p.anchor,onChange:e=>T({anchor:e.target.value}),error:g?"":"Use HH:MM",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,l.jsx)(r.pd,{label:"Window (hours)",type:"number",min:"0.5",max:"24",step:"0.5",value:p.windowHours,onChange:e=>T({windowHours:e.target.value}),error:y?"":"0.5 – 24",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"}),(0,l.jsx)(r.pd,{label:"Pings per day",type:"number",min:"1",max:String(b),step:"1",value:p.slotsPerDay,onChange:e=>T({slotsPerDay:e.target.value}),error:v?"":`1 – ${b}`,hint:v?`Max ${b}`:"",inputClassName:"ring-1 ring-black/10 dark:ring-white/15"})]}),N.length>0&&(0,l.jsxs)("div",{className:"rounded-[10px] bg-surface-2 px-3 py-2.5",children:[(0,l.jsxs)("p",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:["Daily slots (",p.timezone,")"]}),(0,l.jsx)("p",{className:"mt-1 text-sm font-medium text-text-main",children:N.join(" → ")}),(0,l.jsxs)("p",{className:"mt-1 text-xs text-text-muted",children:["Covers ",N[0]," – ",k,", then pauses until ",N[0]," next day."]})]})]})]})})}u.propTypes={isOpen:a().bool.isRequired,onClose:a().func.isRequired,onSave:a().func.isRequired,connection:a().object,reactive:a().bool,schedule:a().object}}},e=>{e.O(0,[3170,305,5772,1321,5497,6109,8441,3794,7358],()=>e(e.s=93578)),_N_E=e.O()}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8460],{29508:(e,r,t)=>{"use strict";t.d(r,{Dr:()=>c,GU:()=>o,K_:()=>s,Lg:()=>n,pG:()=>i,pj:()=>d});var a=t(36109);let l=Number.MAX_SAFE_INTEGER;function s(e){return(0,a._)(e).state}function i(e,r,t=null){let a=(e||[]).filter(e=>e.provider===r&&(!t||t.includes(e.authType))),l=a.filter(e=>{if(!1===e.isActive)return!1;let r=s(e);return"active"===r||"success"===r||"partial"===r}).length,n=a.filter(e=>{let r=s(e);return"error"===r||"expired"===r||"unavailable"===r}).length,o=a.length,d=o>0&&a.every(e=>!1===e.isActive);return{connected:l,error:n,total:o,allDisabled:d}}function n(e,{noAuth:r=!1,noAuthEnabled:t=!0}={}){return(e?.connected??0)>0?0:r?+!t:(e?.total??0)===0?3:2}function o({cardOrder:e=[],statsOf:r,infoOf:t,noAuthEnabledOf:a}){let s=function(e=[]){let r=new Map;return(e||[]).forEach((e,t)=>{r.has(e)||r.set(e,t)}),e=>r.has(e)?r.get(e):l}(e),i=e=>!a||!1!==a(e);return(e,a)=>{let l=t(e)||{},o=t(a)||{},d=n(r(e),{noAuth:!!l.noAuth,noAuthEnabled:i(e)}),c=n(r(a),{noAuth:!!o.noAuth,noAuthEnabled:i(a)});if(d!==c)return d-c;let p=s(e),m=s(a);if(p!==m)return p-m;let u=l.priority??999,x=o.priority??999;return u!==x?u-x:String(l.name||e).localeCompare(String(o.name||a))}}function d(e,r,t,a){if(!t||!a||t===a)return e;let l=function(e,r){let t=[...e||[]];for(let e of r||[])t.includes(e)||t.push(e);return t}(e,r),s=l.indexOf(t),i=l.indexOf(a);return -1===s||-1===i?e:(l.splice(s,1),l.splice(i,0,t),l)}function c(e){return fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerCardOrder:e})})}},67455:(e,r,t)=>{Promise.resolve().then(t.bind(t,97678))},76995:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});var a=t(95155),l=t(14051),s=t.n(l);function i({cardId:e,isDragging:r,isOver:t,onDragStart:l,onDragOver:s,onDrop:n,onDragEnd:o,children:d}){return(0,a.jsx)("div",{draggable:!0,onDragStart:r=>{l?.(e),r.dataTransfer.effectAllowed="move";try{r.dataTransfer.setData("text/plain",e)}catch{}},onDragOver:r=>{r.preventDefault(),r.dataTransfer.dropEffect="move",s?.(e)},onDrop:r=>{r.preventDefault(),n?.(e)},onDragEnd:o,className:`min-w-0 transition-all rounded-xl cursor-grab active:cursor-grabbing ${r?"opacity-30 scale-[0.98]":t?"ring-2 ring-primary/60 scale-[1.01]":""}`,children:d})}i.propTypes={cardId:s().string.isRequired,isDragging:s().bool,isOver:s().bool,onDragStart:s().func,onDragOver:s().func,onDrop:s().func,onDragEnd:s().func,children:s().node}},97678:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>A});var a=t(95155),l=t(12115),s=t(14051),i=t.n(s),n=t(35497),o=t(67852),d=t(8247),c=t(90620),p=t(88105),m=t(98500),u=t.n(m),x=t(65921),h=t(38003),f=t(73006);let g={available:{icon:"check_circle",color:"#22c55e",label:"Available"},cooldown:{icon:"schedule",color:"#f59e0b",label:"Cooldown"},unavailable:{icon:"error",color:"#ef4444",label:"Unavailable"},unknown:{icon:"help",color:"#6b7280",label:"Unknown"}};function b(){let[e,r]=(0,l.useState)(null),[t,s]=(0,l.useState)(!0),[i,o]=(0,l.useState)(!1),[d,c]=(0,l.useState)(null),p=(0,l.useRef)(null),m=(0,x.i)(),u=(0,l.useCallback)(async()=>{try{let e=await fetch("/api/models/availability");if(e.ok){let t=await e.json();r(t)}}catch{}finally{s(!1)}},[]);(0,l.useEffect)(()=>{u();let e=setInterval(u,3e4);return()=>clearInterval(e)},[u]),(0,l.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&o(!1)};return i&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]);let h=async(e,r)=>{c(`${e}:${r}`);try{(await fetch("/api/models/availability",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"clearCooldown",provider:e,model:r})})).ok?(m.success(`Cooldown cleared for ${r}`),await u()):m.error("Failed to clear cooldown")}catch{m.error("Failed to clear cooldown")}finally{c(null)}};if(t)return null;let f=e?.models||[],b=0===(e?.unavailableCount||f.filter(e=>"available"!==e.status).length),y={};return f.forEach(e=>{if("available"===e.status)return;let r=e.provider||"unknown";y[r]||(y[r]=[]),y[r].push(e)}),(0,a.jsx)("div",{className:"relative",ref:p,children:i&&(0,a.jsxs)("div",{className:"absolute top-full right-0 mt-2 w-80 bg-surface border border-border rounded-xl shadow-2xl z-50 overflow-hidden",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border bg-bg",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",style:{color:b?"#22c55e":"#f59e0b"},children:b?"verified":"warning"}),(0,a.jsx)("span",{className:"text-sm font-semibold text-text-main",children:"Model Status"})]}),(0,a.jsx)("button",{onClick:u,className:"p-1 rounded-lg hover:bg-surface text-text-muted hover:text-text-main transition-colors",title:"Refresh",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"})})]}),(0,a.jsx)("div",{className:"px-4 py-3 max-h-60 overflow-y-auto",children:b?(0,a.jsx)("p",{className:"text-sm text-text-muted text-center py-2",children:"All models are responding normally."}):(0,a.jsx)("div",{className:"flex flex-col gap-2.5",children:Object.entries(y).map(([e,r])=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-text-main mb-1.5 capitalize",children:e}),(0,a.jsx)("div",{className:"flex flex-col gap-1",children:r.map(e=>{let r=g[e.status]||g.unknown,t=d===`${e.provider}:${e.model}`;return(0,a.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5 rounded-lg bg-surface/30",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] shrink-0",style:{color:r.color},children:r.icon}),(0,a.jsx)("span",{className:"font-mono text-xs text-text-main truncate",children:e.model})]}),"cooldown"===e.status&&(0,a.jsx)(n.$n,{size:"sm",variant:"ghost",onClick:()=>h(e.provider,e.model),disabled:t,className:"text-[10px] px-1.5! py-0.5! ml-2",children:t?"...":"Clear"})]},`${e.provider}-${e.model}`)})})]},e))})})]})})}let y={openai:{title:"Add OpenAI Compatible",type:"openai-compatible",defaultBaseUrl:"https://api.openai.com/v1",namePlaceholder:"OpenAI Compatible (Prod)",prefixPlaceholder:"oc-prod",baseUrlHint:"Use the base URL (ending in /v1) for your OpenAI-compatible API.",modelIdPlaceholder:"e.g. gpt-4, claude-3-opus",errorLabel:"OpenAI Compatible",hasApiType:!0},anthropic:{title:"Add Anthropic Compatible",type:"anthropic-compatible",defaultBaseUrl:"https://api.anthropic.com/v1",namePlaceholder:"Anthropic Compatible (Prod)",prefixPlaceholder:"ac-prod",baseUrlHint:"Use the base URL (ending in /v1) for your Anthropic-compatible API. The system will append /messages.",modelIdPlaceholder:"e.g. claude-3-opus",errorLabel:"Anthropic Compatible",hasApiType:!1}},v=[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}];function j({variant:e,isOpen:r,onClose:t,onCreated:s}){let i=y[e],o=()=>({name:"",prefix:"",...i.hasApiType?{apiType:"chat"}:{},baseUrl:i.defaultBaseUrl}),[d,c]=(0,l.useState)(o),[p,m]=(0,l.useState)(!1),[u,x]=(0,l.useState)(""),[h,f]=(0,l.useState)(""),[g,b]=(0,l.useState)(""),[N,T]=(0,l.useState)(!1),[w,k]=(0,l.useState)(null),[C,A]=(0,l.useState)(!1),[E,S]=(0,l.useState)(""),[D,I]=(0,l.useState)("{apiKey}"),O=()=>{if(E.trim())return{models:{[E.trim()]:D.trim()||"{apiKey}"}}};(0,l.useEffect)(()=>{i.hasApiType?c(e=>({...e,baseUrl:i.defaultBaseUrl})):r&&(k(null),f(""),b(""),x(""),A(!1),S(""),I("{apiKey}"))},[i.hasApiType?d.apiType:r]);let $=async()=>{if(d.name.trim()&&d.prefix.trim()&&d.baseUrl.trim()){m(!0),x("");try{let e=await fetch("/api/provider-nodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:d.name,prefix:d.prefix,...i.hasApiType?{apiType:d.apiType}:{},baseUrl:d.baseUrl,type:i.type,authHeaders:O()})}),r=await e.json();e.ok?(s(r.node),c(o()),f(""),k(null),x(""),A(!1),S(""),I("{apiKey}")):x(r?.error||"Failed to create provider")}catch(e){console.log(`Error creating ${i.errorLabel} node:`,e),x("Network error creating provider")}finally{m(!1)}}},_=async()=>{T(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:d.baseUrl,apiKey:h,type:i.type,modelId:g.trim()||void 0,authHeaders:O()})}),r=await e.json();k(r)}catch{k({valid:!1,error:"Network error"})}finally{T(!1)}};return(0,a.jsx)(n.aF,{isOpen:r,title:i.title,onClose:t,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(n.pd,{label:"Name",value:d.name,onChange:e=>c({...d,name:e.target.value}),placeholder:i.namePlaceholder,hint:"Required. A friendly label for this node."}),(0,a.jsx)(n.pd,{label:"Prefix",value:d.prefix,onChange:e=>c({...d,prefix:e.target.value}),placeholder:i.prefixPlaceholder,hint:"Required. Used as the provider prefix for model IDs."}),i.hasApiType&&(0,a.jsx)(n.l6,{label:"API Type",options:v,value:d.apiType,onChange:e=>c({...d,apiType:e.target.value})}),(0,a.jsx)(n.pd,{label:"Base URL",value:d.baseUrl,onChange:e=>c({...d,baseUrl:e.target.value}),placeholder:i.defaultBaseUrl,hint:i.baseUrlHint}),(0,a.jsx)(n.pd,{label:"API Key (for Check)",type:"password",value:h,onChange:e=>f(e.target.value)}),(0,a.jsx)(n.pd,{label:"Model ID (optional)",value:g,onChange:e=>b(e.target.value),placeholder:i.modelIdPlaceholder,hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),(0,a.jsxs)("div",{className:"rounded-lg border border-border/60 bg-surface-2/30 p-3",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>A(!C),className:"flex w-full items-center justify-between text-xs font-medium text-text-muted hover:text-text-main",children:[(0,a.jsx)("span",{children:"Advanced / Custom Headers"}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:C?"expand_less":"expand_more"})]}),C&&(0,a.jsxs)("div",{className:"mt-3 flex flex-col gap-2 pt-2 border-t border-border/40",children:[(0,a.jsx)("span",{className:"text-[11px] text-text-muted",children:"Custom Header for /models Discovery (e.g. iFlytek Loomy requires 'token: {apiKey}') "}),(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,a.jsx)(n.pd,{label:"Header Name",placeholder:"e.g. token",value:E,onChange:e=>S(e.target.value)}),(0,a.jsx)(n.pd,{label:"Header Value Template",placeholder:"{apiKey}",value:D,onChange:e=>I(e.target.value)})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,a.jsx)(n.$n,{onClick:_,disabled:!h||N||!d.baseUrl.trim(),variant:"secondary",className:"w-full sm:w-auto",children:N?"Checking...":"Check"}),(()=>{if(!w)return null;let{valid:e,error:r,method:t}=w;return e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Ex,{variant:"success",children:"Valid"}),"chat"===t&&(0,a.jsx)("span",{className:"text-sm text-text-muted",children:"(via inference test)"})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(n.Ex,{variant:"error",children:"Invalid"}),r&&(0,a.jsx)("span",{className:"text-sm text-red-500",children:r})]})})()]}),u&&(0,a.jsx)("div",{className:"rounded border border-red-500/40 bg-red-500/10 px-3 py-2 text-sm text-red-500",children:u}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,a.jsx)(n.$n,{onClick:$,fullWidth:!0,disabled:!d.name.trim()||!d.prefix.trim()||!d.baseUrl.trim()||p,children:p?"Creating...":"Create"}),(0,a.jsx)(n.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}j.propTypes={variant:i().oneOf(["openai","anthropic"]).isRequired,isOpen:i().bool.isRequired,onClose:i().func.isRequired,onCreated:i().func.isRequired};var N=t(76995),T=t(29508);let w=N.A;function k(e,r,t){let l=[];if(e>0&&l.push((0,a.jsxs)(n.Ex,{variant:"success",size:"sm",dot:!0,children:[e," Connected"]},"connected")),r>0){let e=t?`${r} Error (${t})`:`${r} Error`;l.push((0,a.jsx)(n.Ex,{variant:"error",size:"sm",dot:!0,children:e},"error"))}return 0===l.length?(0,a.jsx)("span",{className:"text-text-muted",children:"No connections"}):l}let C=[{value:"all",label:"All",icon:"apps"},{value:"active",label:"Active",icon:"check_circle"},{value:"error",label:"Error",icon:"error"},{value:"disabled",label:"Inactive",icon:"block"},{value:"none",label:"No connections",icon:"link_off"}];function A(){let[e,r]=(0,l.useState)([]),[t,s]=(0,l.useState)([]),[i,o]=(0,l.useState)(!0),[d,m]=(0,l.useState)(!1),[u,g]=(0,l.useState)(!0),[y,v]=(0,l.useState)(!1),[N,k]=(0,l.useState)(!1),[A,I]=(0,l.useState)(null),[O,$]=(0,l.useState)(null),[_,P]=(0,l.useState)({}),[R,U]=(0,l.useState)([]),[z,F]=(0,l.useState)(null),[q,H]=(0,l.useState)(null),[M,K]=(0,l.useState)("all"),[L,J]=(0,l.useState)(!1),B=(0,x.i)(),G=(0,h.C)(e=>e.query),V=(0,h.C)(e=>e.register),W=(0,h.C)(e=>e.unregister);(0,l.useEffect)(()=>(V("Search providers..."),()=>W()),[V,W]);let X=e=>!G.trim()||!!e&&e.toLowerCase().includes(G.trim().toLowerCase()),Q=(e,r,t)=>{let a;return(0,T.Lg)(e,{noAuth:!!r?.noAuth,noAuthEnabled:!1!==(a=_?.[t])&&(!0===a||!r.topologyHiddenByDefault)})},Z=e=>{let r=R.indexOf(e);return -1===r?Number.MAX_SAFE_INTEGER:r};(0,l.useEffect)(()=>{(async()=>{try{let[e,t,a]=await Promise.all([fetch("/api/providers"),fetch("/api/provider-nodes"),fetch("/api/settings",{cache:"no-store"})]),l=await e.json(),i=await t.json();if(e.ok&&r(l.connections||[]),t.ok&&s(i.nodes||[]),a.ok){let e=await a.json();P(e.topologyVisibility||{}),g(!1!==e.showCommunityProviders),Array.isArray(e.providerCardOrder)&&U(e.providerCardOrder)}}catch(e){console.log("Error fetching data:",e)}finally{o(!1)}})()},[]);let Y=(0,l.useCallback)(async(e,r)=>{let t={..._,[e]:r};P(t);try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({topologyVisibility:t})})).ok)throw Error("Failed to update topology visibility")}catch(e){console.error("Error updating topology visibility:",e),P(_)}},[_]),ee=(r,t)=>{let a=Array.isArray(t)?t:[t],l=(0,T.pG)(e,r,a),s=e.filter(e=>e.provider===r&&a.includes(e.authType)).filter(e=>{let r=(0,T.K_)(e);return"error"===r||"expired"===r||"unavailable"===r}).sort((e,r)=>new Date(r.lastErrorAt||0)-new Date(e.lastErrorAt||0))[0];return{...l,errorCode:s?function(e){if(!e)return null;let r=e.lastErrorType;if("runtime_error"===r)return"RUNTIME";if("upstream_auth_error"===r||"auth_missing"===r||"token_refresh_failed"===r||"token_expired"===r)return"AUTH";if("upstream_rate_limited"===r)return"429";if("upstream_unavailable"===r)return"5XX";if("network_error"===r)return"NET";let t=Number(e.errorCode);if(Number.isFinite(t)&&t>=400)return String(t);let a=function(e){if(!e)return null;let r=e.match(/\b([45]\d{2})\b/);return r?r[1]:"ERR"}(e.lastError);if("401"===a||"403"===a)return"AUTH";if(a&&"ERR"!==a)return a;let l=(e.lastError||"").toLowerCase();return l.includes("runtime")||l.includes("not runnable")||l.includes("not installed")?"RUNTIME":l.includes("invalid api key")||l.includes("token invalid")||l.includes("revoked")||l.includes("unauthorized")?"AUTH":"ERR"}(s):null,errorTime:s?.lastErrorAt?function(e){if(!e)return"";let r=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(r<1)return"just now";if(r<60)return`${r}m ago`;let t=Math.floor(r/60);if(t<24)return`${t}h ago`;let a=Math.floor(t/24);return`${a}d ago`}(s.lastErrorAt):null}},er=(e,r,t)=>"all"===M||(e?"active"===M?e.connected>0||!!r?.noAuth&&0===Q(e,r,t):r?.noAuth?"disabled"===M?1===Q(e,r,t):"none"===M:"disabled"===M?!0===e.allDisabled:"error"===M?0===e.connected&&e.error>0&&!e.allDisabled:"none"!==M||0===e.total:"none"===M),et=async(t,a,l)=>{let s=Array.isArray(a)?a:[a],i=e=>e.provider===t&&s.includes(e.authType),n=e.filter(i);r(e=>e.map(e=>i(e)?{...e,isActive:l}:e)),await Promise.allSettled(n.map(e=>fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:l})})))},ea=async(e,r=null)=>{if(!A){I("provider"===e?r:e),$(null);try{let t=await fetch("/api/providers/test-batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e,providerId:r})}),a=await t.json();if($(a),a.summary){let{passed:e,failed:r,total:t}=a.summary;0===r?B.success(`${(0,f.Tl)("All")} ${t} ${(0,f.Tl)("tests passed")}`):B.warning(`${e}/${t} ${(0,f.Tl)("passed")}, ${r} ${(0,f.Tl)("failed")}`)}}catch(e){$({error:(0,f.Tl)("Test request failed")}),B.error((0,f.Tl)("Provider test failed"))}finally{I(null)}}},el=t.filter(e=>"openai-compatible"===e.type).map(e=>({id:e.id,name:e.name||"OpenAI Compatible",color:"#10A37F",textIcon:"OC",apiType:e.apiType})).filter(e=>X(e.name)),es=t.filter(e=>"anthropic-compatible"===e.type).map(e=>({id:e.id,name:e.name||"Anthropic Compatible",color:"#D97757",textIcon:"AC"})).filter(e=>X(e.name)),ei=(e,r)=>{if("kiro"===r||"mimo-desktop"===r)return["oauth","apikey","api_key"];let t=e?.authModes;return Array.isArray(t)?t.includes("apikey")?["oauth","apikey","api_key"]:"oauth":r in p.nJ||r in c.fg?["oauth","apikey","api_key"]:"oauth"},en=[...Object.entries(c.zN).filter(([,e])=>!e.hidden&&X(e.name))].sort(([e,r],[t,a])=>{let l=ee(e,ei(r,e)),s=ee(t,ei(a,t)),i=Q(l,r,e),n=Q(s,a,t);if(i!==n)return i-n;let o=Z(e),d=Z(t);if(o!==d)return o-d;let c=r.priority??999,p=a.priority??999;return c!==p?c-p:(r.name||"").localeCompare(a.name||"")}).filter(([e,r])=>er(ee(e,ei(r,e)),r,e)),eo=[...Object.entries(p.IS).filter(([,e])=>!e.hidden&&!(e.community&&!u)&&X(e.name)).map(([e,r])=>({key:e,info:r,stats:ee(e,ei(r,e)),isFreeTier:!1})),...Object.entries(p.nJ).filter(([,e])=>!e.hidden&&!(e.community&&!u)&&X(e.name)&&(e.serviceKinds??["llm"]).includes("llm")).map(([e,r])=>({key:e,info:r,stats:ee(e,ei(r,e)),isFreeTier:!0}))].filter(e=>er(e.stats,e.info,e.key)).sort((e,r)=>{let t=Q(e.stats,e.info,e.key),a=Q(r.stats,r.info,r.key);if(t!==a)return t-a;let l=!!r.info.noAuth-!!e.info.noAuth;if(0!==l)return l;let s=+!!e.info.community,i=+!!r.info.community;if(s!==i)return s-i;let n=Z(e.key),o=Z(r.key);if(n!==o)return n-o;let d=e.info.priority??999,c=r.info.priority??999;return d!==c?d-c:(e.info.name||"").localeCompare(r.info.name||"")}),ed=Object.entries(c.fg).filter(([,e])=>!e.hidden&&(e.serviceKinds??["llm"]).includes("llm")&&X(e.name)).sort(([e,r],[t,a])=>{let l=ee(e,"apikey"),s=ee(t,"apikey"),i=Q(l,r,e),n=Q(s,a,t);if(i!==n)return i-n;let o=Z(e),d=Z(t);if(o!==d)return o-d;let c=r.priority??999,p=a.priority??999;return c!==p?c-p:(r.name||"").localeCompare(a.name||"")}).filter(([e,r])=>er(ee(e,"apikey"),r,e)),ec=[...el,...es].filter(e=>er(ee(e.id,"apikey"),null,e.id)).sort((e,r)=>{let t=Z(e.id),a=Z(r.id);return t!==a?t-a:(e.name||"").localeCompare(r.name||"")}),ep=(0,l.useCallback)(()=>{let e=[];for(let r of[...el,...es])e.includes(r.id)||e.push(r.id);for(let[r]of en)e.includes(r)||e.push(r);for(let r of eo)e.includes(r.key)||e.push(r.key);for(let[r]of ed)e.includes(r)||e.push(r);return e},[el,es,en,eo,ed]),em=(0,l.useCallback)(e=>{F(null),H(null),z&&e&&z!==e&&U(r=>{let t=(0,T.pj)(r,ep(),z,e);return t===r?r:((0,T.Dr)(t).catch(e=>console.log("Failed to save provider card order:",e)),t)})},[z,ep]),eu=!!G.trim(),ex=eu||d?ed:ed.slice(0,20),eh=ed.length-20;if(i)return(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(n.Qv,{}),(0,a.jsx)(n.Qv,{})]});let ef=en.length>0||eo.length>0||ed.length>0||ec.length>0,eg=C.find(e=>e.value===M)||C[0];return(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[(0,a.jsx)("div",{className:"flex items-center justify-end gap-2",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>J(e=>!e),"aria-haspopup":"menu","aria-expanded":L,title:(0,f.Tl)("Filter providers by connection status"),"aria-label":(0,f.Tl)("Filter providers by connection status"),className:`flex h-8 items-center gap-1.5 rounded-lg border px-2.5 text-xs transition-colors ${"all"===M?"border-black/10 bg-surface text-text-muted hover:bg-black/[0.04] dark:border-white/10 dark:hover:bg-white/[0.06]":"border-primary/30 bg-primary/10 text-primary"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] leading-none",children:eg.icon}),(0,a.jsx)("span",{children:(0,f.Tl)(eg.label)}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] leading-none text-text-muted",children:"expand_more"})]}),(0,a.jsx)(n.AM,{open:L,onClose:()=>J(!1),align:"right",className:"w-48",children:C.map(e=>(0,a.jsx)(n.Dr,{selected:M===e.value,icon:(0,a.jsx)("span",{className:"material-symbols-outlined mt-px text-[16px] leading-none text-text-muted",children:e.icon}),onClick:()=>{K(e.value),J(!1)},children:(0,f.Tl)(e.label)},e.value))})]})}),!ef&&(0,a.jsxs)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[32px] text-text-muted mb-2",children:"search_off"}),(0,a.jsx)("p",{className:"text-text-muted text-sm",children:"all"===M||G.trim()?(0,f.Tl)("No providers match your search"):(0,f.Tl)("No providers match this filter")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["Custom Providers (OpenAI/Anthropic Compatible)"," "]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:w-auto",children:[(0,a.jsx)(n.$n,{size:"sm",icon:"add",onClick:()=>k(!0),className:"w-full sm:w-auto",children:"Add Anthropic Compatible"}),(0,a.jsx)(n.$n,{size:"sm",variant:"secondary",icon:"add",onClick:()=>v(!0),className:"w-full !bg-white !text-black hover:!bg-gray-100 sm:w-auto",children:"Add OpenAI Compatible"})]})]}),0===ec.length?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2 border border-dashed border-border rounded-xl text-text-muted text-sm",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"extension"}),(0,a.jsx)("span",{children:"all"!==M?(0,f.Tl)("No custom providers match this filter"):"No custom providers — use buttons above to add OpenAI/Anthropic compatible endpoints"})]}):(0,a.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:ec.map(e=>(0,a.jsx)(w,{cardId:e.id,isDragging:z===e.id,isOver:q===e.id,onDragStart:F,onDragOver:H,onDrop:em,onDragEnd:()=>{F(null),H(null)},children:(0,a.jsx)(S,{providerId:e.id,provider:e,stats:ee(e.id,"apikey"),authType:"compatible",onToggle:r=>et(e.id,"apikey",r)})},e.id))})]}),en.length>0&&(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"OAuth Providers"}),(0,a.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,a.jsx)(b,{}),(0,a.jsxs)("button",{onClick:()=>ea("oauth"),disabled:!!A,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"oauth"===A?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:(0,f.Tl)("Test all OAuth connections"),"aria-label":(0,f.Tl)("Test all OAuth connections"),children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px]${"oauth"===A?" animate-spin":""}`,children:"play_arrow"}),"oauth"===A?(0,f.Tl)("Testing..."):(0,f.Tl)("Test All")]})]})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:en.map(([e,r])=>{let t=ei(r,e);return(0,a.jsx)(w,{cardId:e,isDragging:z===e,isOver:q===e,onDragStart:F,onDragOver:H,onDrop:em,onDragEnd:()=>{F(null),H(null)},children:(0,a.jsx)(E,{providerId:e,provider:r,stats:ee(e,t),authType:"oauth",onToggle:r=>et(e,t,r)})},e)})})]}),eo.length>0&&(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"Free Tier Providers"}),(0,a.jsxs)("button",{onClick:()=>ea("free"),disabled:!!A,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"free"===A?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:(0,f.Tl)("Test all Free connections"),"aria-label":(0,f.Tl)("Test all Free provider connections"),children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px]${"free"===A?" animate-spin":""}`,children:"play_arrow"}),"free"===A?(0,f.Tl)("Testing..."):(0,f.Tl)("Test All")]})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:eo.map(({key:e,info:r,isFreeTier:t})=>{let l=ei(r,e),s=_?.[e],i=!1!==s&&(!0===s||!r.topologyHiddenByDefault);return(0,a.jsx)(w,{cardId:e,isDragging:z===e,isOver:q===e,onDragStart:F,onDragOver:H,onDrop:em,onDragEnd:()=>{F(null),H(null)},children:t?(0,a.jsx)(S,{providerId:e,provider:r,stats:ee(e,l),authType:Array.isArray(l)?l[0]??"apikey":l,onToggle:r=>et(e,l,r)}):(0,a.jsx)(E,{providerId:e,provider:r,stats:ee(e,l),authType:"free",onToggle:r=>et(e,l,r),topologyVisible:i,onToggleTopology:r.noAuth?r=>Y(e,r):void 0})},e)})})]}),ed.length>0&&(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["API Key Providers"," "]}),(0,a.jsxs)("button",{onClick:()=>ea("apikey"),disabled:!!A,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"apikey"===A?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:(0,f.Tl)("Test all API Key connections"),"aria-label":(0,f.Tl)("Test all API Key connections"),children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px]${"apikey"===A?" animate-spin":""}`,children:"play_arrow"}),"apikey"===A?(0,f.Tl)("Testing..."):(0,f.Tl)("Test All")]})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:ex.map(([e,r])=>(0,a.jsx)(w,{cardId:e,isDragging:z===e,isOver:q===e,onDragStart:F,onDragOver:H,onDrop:em,onDragEnd:()=>{F(null),H(null)},children:(0,a.jsx)(S,{providerId:e,provider:r,stats:ee(e,"apikey"),authType:"apikey",onToggle:r=>et(e,"apikey",r)})},e))}),!eu&&!d&&eh>0&&(0,a.jsxs)("button",{onClick:()=>m(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2.5 text-sm font-medium text-primary transition-colors hover:border-primary hover:bg-primary/5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"expand_more"}),"Show all ",ed.length," providers"]})]}),(0,a.jsx)(j,{variant:"openai",isOpen:y,onClose:()=>v(!1),onCreated:e=>{s(r=>[...r,e]),v(!1)}}),(0,a.jsx)(j,{variant:"anthropic",isOpen:N,onClose:()=>k(!1),onCreated:e=>{s(r=>[...r,e]),k(!1)}}),O&&(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center px-3 pt-[6vh] sm:pt-[10vh]",onClick:()=>$(null),children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),(0,a.jsxs)("div",{className:"relative bg-surface border border-border rounded-xl w-full max-w-[600px] max-h-[86vh] sm:max-h-[80vh] overflow-y-auto shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,a.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between px-5 py-3 border-b border-border bg-surface/95 backdrop-blur-sm rounded-t-xl",children:[(0,a.jsx)("h3",{className:"font-semibold",children:(0,f.Tl)("Test Results")}),(0,a.jsx)("button",{onClick:()=>$(null),className:"p-1 rounded-lg hover:bg-bg text-text-muted hover:text-text-main transition-colors","aria-label":(0,f.Tl)("Close"),children:(0,a.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]}),(0,a.jsx)("div",{className:"p-5",children:(0,a.jsx)(D,{results:O})})]})]})]})}function E({providerId:e,provider:r,stats:t,authType:l,onToggle:s,topologyVisible:i,onToggleTopology:d}){let{connected:c,error:p,errorCode:m,errorTime:x,allDisabled:h}=t,g=!!r.noAuth,b=t.total>0,y=g&&"function"==typeof d,v=!1!==i;return(0,a.jsx)(u(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,a.jsx)(n.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${h||y&&!v?"opacity-50":""}`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,a.jsx)("div",{className:"size-8 shrink-0 rounded-lg flex items-center justify-center",style:{backgroundColor:`${r.color?.length>7?r.color:r.color+"15"}`},children:(0,a.jsx)(o.A,{src:`/providers/${r.id}.png`,providerId:r.id,alt:r.name,size:30,className:"object-contain rounded-lg max-w-[32px] max-h-[32px]",fallbackText:r.textIcon||r.id.slice(0,2).toUpperCase(),fallbackColor:r.color})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("h3",{className:"truncate font-semibold flex items-center gap-1.5",children:[r.name,r.community&&(0,a.jsx)(n.Ex,{variant:"warning",size:"sm",className:"shrink-0",children:(0,f.Tl)("Trial")})]}),(0,a.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:h?(0,a.jsx)(n.Ex,{variant:"default",size:"sm",children:(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),(0,f.Tl)("Disabled")]})}):g?v?(0,a.jsx)(n.Ex,{variant:"success",size:"sm",dot:!0,children:(0,f.Tl)("Ready")}):(0,a.jsx)(n.Ex,{variant:"default",size:"sm",children:(0,f.Tl)("Topology off")}):(0,a.jsxs)(a.Fragment,{children:[k(c,p,m),x&&(0,a.jsx)("span",{className:"text-text-muted",children:x})]})})]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[b&&(0,a.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),s(!!h)},children:(0,a.jsx)(n.lM,{size:"sm",checked:!h,onChange:()=>{},title:h?(0,f.Tl)("Enable provider"):(0,f.Tl)("Disable provider")})}),y&&(0,a.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),d(!v)},children:(0,a.jsx)(n.lM,{size:"sm",checked:v,onChange:()=>{},title:v?"Hide from usage topology":"Show on usage topology"})})]})]})})})}function S({providerId:e,provider:r,stats:t,authType:l,onToggle:s}){let{connected:i,error:c,errorCode:m,errorTime:x,allDisabled:h}=t,g=e.startsWith(p.JH),b=e.startsWith(p.DI);return(0,a.jsx)(u(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,a.jsx)(n.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${h?"opacity-50":""}`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,a.jsx)("div",{className:"size-8 shrink-0 rounded-lg flex items-center justify-center",style:{backgroundColor:`${r.color?.length>7?r.color:r.color+"15"}`},children:(0,a.jsx)(o.A,{src:g&&r.apiType?"responses"===r.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":b?"/providers/anthropic-m.png":(0,d.HY)(r.id),providerId:r.id,alt:r.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:r.textIcon||r.id.slice(0,2).toUpperCase(),fallbackColor:r.color})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("h3",{className:"truncate font-semibold flex items-center gap-1.5",children:[r.name,r.community&&(0,a.jsx)(n.Ex,{variant:"warning",size:"sm",className:"shrink-0",children:(0,f.Tl)("Trial")})]}),(0,a.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:h?(0,a.jsx)(n.Ex,{variant:"default",size:"sm",children:(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),(0,f.Tl)("Disabled")]})}):(0,a.jsxs)(a.Fragment,{children:[k(i,c,m),g&&(0,a.jsx)(n.Ex,{variant:"default",size:"sm",children:"responses"===r.apiType?"Responses":"Chat"}),b&&(0,a.jsx)(n.Ex,{variant:"default",size:"sm",children:"Messages"}),x&&(0,a.jsx)("span",{className:"text-text-muted",children:x})]})})]})]}),(0,a.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:t.total>0&&(0,a.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),s(!!h)},children:(0,a.jsx)(n.lM,{size:"sm",checked:!h,onChange:()=>{},title:h?(0,f.Tl)("Enable provider"):(0,f.Tl)("Disable provider")})})})]})})})}function D({results:e}){if(e.error&&!e.results)return(0,a.jsxs)("div",{className:"text-center py-6",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-red-500 text-[32px] mb-2 block",children:"error"}),(0,a.jsx)("p",{className:"text-sm text-red-400",children:e.error})]});let{summary:r,mode:t}=e,l=e.results||[],s={oauth:"OAuth",free:(0,f.Tl)("Free"),apikey:(0,f.Tl)("API Key"),provider:(0,f.Tl)("Provider"),all:(0,f.Tl)("All")}[t]||t;return(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[r&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs mb-1 sm:gap-3",children:[(0,a.jsxs)("span",{className:"text-text-muted",children:[s," ",(0,f.Tl)("Test")]}),(0,a.jsxs)("span",{className:"px-2 py-0.5 rounded bg-emerald-500/15 text-emerald-400 font-medium",children:[r.passed," ",(0,f.Tl)("passed")]}),r.failed>0&&(0,a.jsxs)("span",{className:"px-2 py-0.5 rounded bg-red-500/15 text-red-400 font-medium",children:[r.failed," ",(0,f.Tl)("failed")]}),(0,a.jsxs)("span",{className:"text-text-muted sm:ml-auto",children:[r.total," ",(0,f.Tl)("tested")]})]}),l.map((e,r)=>(0,a.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2 rounded-lg bg-black/[0.03] px-3 py-2 text-xs dark:bg-white/[0.03] sm:flex-nowrap",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[16px] ${e.valid?"text-emerald-500":"text-red-500"}`,children:e.valid?"check_circle":"error"}),(0,a.jsxs)("div",{className:"min-w-0 flex-[1_1_160px]",children:[(0,a.jsx)("span",{className:"block truncate font-medium sm:inline",children:e.connectionName}),(0,a.jsxs)("span",{className:"block truncate text-text-muted sm:ml-1.5 sm:inline",children:["(",e.provider,")"]})]}),void 0!==e.latencyMs&&(0,a.jsxs)("span",{className:"shrink-0 text-text-muted font-mono tabular-nums",children:[e.latencyMs,"ms"]}),(0,a.jsx)("span",{className:`shrink-0 text-[10px] uppercase font-bold px-1.5 py-0.5 rounded ${e.valid?"bg-emerald-500/15 text-emerald-400":"bg-red-500/15 text-red-400"}`,children:e.valid?(0,f.Tl)("OK"):e.diagnosis?.type||(0,f.Tl)("ERROR")})]},e.connectionId||r)),0===l.length&&(0,a.jsx)("div",{className:"text-center py-4 text-text-muted text-sm",children:(0,f.Tl)("No active connections found for this group.")})]})}E.propTypes={providerId:i().string.isRequired,provider:i().shape({id:i().string.isRequired,name:i().string.isRequired,color:i().string,textIcon:i().string}).isRequired,stats:i().shape({connected:i().number,error:i().number,errorCode:i().string,errorTime:i().string}).isRequired,authType:i().string,onToggle:i().func},S.propTypes={providerId:i().string.isRequired,provider:i().shape({id:i().string.isRequired,name:i().string.isRequired,color:i().string,textIcon:i().string,apiType:i().string}).isRequired,stats:i().shape({connected:i().number,error:i().number,errorCode:i().string,errorTime:i().string}).isRequired,authType:i().string,onToggle:i().func},D.propTypes={results:i().shape({mode:i().string,results:i().array,summary:i().shape({total:i().number,passed:i().number,failed:i().number}),error:i().string}).isRequired}}},e=>{e.O(0,[3170,305,1321,5497,6109,8441,3794,7358],()=>e(e.s=67455)),_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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,7545,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,7545,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,7545,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,7545,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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-532e70b87e3cfbaa.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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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-532e70b87e3cfbaa.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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,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/verify-password/route-532e70b87e3cfbaa.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,1129,1200,1288,1337,1382,1451,1512,1566,1666,1672,1674,1697,1704,1860,1898,1907,1910,1937,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,4230,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,6292,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,7545,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,9271,9321,9427,9461,9606,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
|