n9router 0.3.88 → 0.3.90
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/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +11 -11
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/translator/send/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/usage/history/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/callback/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/callback.html +1 -1
- package/.next/standalone/.next/server/app/callback.rsc +13 -13
- package/.next/standalone/.next/server/app/callback.segments/_full.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/callback.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/callback.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/callback.segments/callback.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/basic-chat.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/basic-chat.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/cli-tools.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/cli-tools.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/combos.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/combos.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/combos.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/combos.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/combos.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/endpoint.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/endpoint.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/mitm.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/mitm.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/profile.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/profile.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/profile.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/profile.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/profile.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/providers/new.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/providers/new.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/providers.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/providers.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/providers.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/providers.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/providers.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/quota.html +2 -2
- package/.next/standalone/.next/server/app/dashboard/quota.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/quota.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/quota.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/quota.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.rsc +13 -13
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/translator.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/translator.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/translator.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/translator.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/translator.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard/usage.html +1 -1
- package/.next/standalone/.next/server/app/dashboard/usage.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/usage.segments/_full.segment.rsc +15 -15
- package/.next/standalone/.next/server/app/dashboard/usage.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard/usage.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/dashboard.html +1 -1
- package/.next/standalone/.next/server/app/dashboard.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard.segments/_full.segment.rsc +14 -14
- package/.next/standalone/.next/server/app/dashboard.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/dashboard.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +11 -11
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +11 -11
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/landing/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/landing.html +1 -1
- package/.next/standalone/.next/server/app/landing.rsc +13 -13
- package/.next/standalone/.next/server/app/landing.segments/_full.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/landing.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/landing.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/landing.segments/landing.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/login.html +1 -1
- package/.next/standalone/.next/server/app/login.rsc +13 -13
- package/.next/standalone/.next/server/app/login.segments/_full.segment.rsc +13 -13
- package/.next/standalone/.next/server/app/login.segments/_head.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/login.segments/_index.segment.rsc +6 -6
- package/.next/standalone/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/login.segments/login.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0.yvcis._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0148t9m._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0b802lh._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0kpc-o6._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0lc~.sk._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0lp_pm5._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0pwrfp1._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0uw3x8s._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0y.reft._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0y5ae.7._.js +1 -1
- package/.next/standalone/.next/server/chunks/[root-of-the-server]__0z-kiuj._.js +1 -1
- package/.next/standalone/.next/server/chunks/_0amvca6._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__0415gym._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_00c58qj._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_049j5t_._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0ss815q._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/_0tlv512._.js +3 -0
- package/.next/standalone/.next/server/chunks/ssr/src_0_xhepz._.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_app_(dashboard)_dashboard_providers_[id]_page_0-3xvzc.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/src_shared_constants_cliTools_09iru_o.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/static/chunks/026p3rpdycbyo.css +1 -0
- package/.next/standalone/.next/static/chunks/{08kho~qudyqxf.js → 06l6ck_q1o~m9.js} +3 -3
- package/.next/standalone/.next/static/chunks/0b285gqd-hcvu.js +1 -0
- package/.next/standalone/.next/static/chunks/{00~ibgir0ac-0.js → 0pwbnjvdm7lt_.js} +2 -2
- package/.next/{static/chunks/0epj7i9.s2-m2.js → standalone/.next/static/chunks/0~p0472sbmye6.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0a84s1t0dt8-h.js → 148_2lu2ra629.js} +1 -1
- package/.next/standalone/.next/static/chunks/{0f56a6ti-axtc.js → 17~_6lx17xr8z.js} +3 -3
- package/.next/standalone/mitm/server.js +8 -8
- package/.next/standalone/mitm/tokenPool.js +79 -17
- package/.next/standalone/package-lock.json +2 -2
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/src/app/(dashboard)/dashboard/cli-tools/components/TokenSwapPoolCard.js +331 -50
- package/.next/standalone/src/app/(dashboard)/dashboard/mitm/MitmPageClient.js +11 -4
- package/.next/standalone/src/app/(dashboard)/dashboard/providers/[id]/page.js +2 -1
- package/.next/standalone/src/app/api/providers/[id]/route.js +4 -0
- package/.next/standalone/src/lib/localDb.js +3 -1
- package/.next/standalone/src/mitm/server.js +8 -8
- package/.next/standalone/src/mitm/tokenPool.js +79 -17
- package/.next/standalone/tests/unit/tokenPool.test.js +55 -14
- package/.next/static/chunks/026p3rpdycbyo.css +1 -0
- package/.next/static/chunks/{08kho~qudyqxf.js → 06l6ck_q1o~m9.js} +3 -3
- package/.next/static/chunks/0b285gqd-hcvu.js +1 -0
- package/.next/static/chunks/{00~ibgir0ac-0.js → 0pwbnjvdm7lt_.js} +2 -2
- package/.next/{standalone/.next/static/chunks/0epj7i9.s2-m2.js → static/chunks/0~p0472sbmye6.js} +1 -1
- package/.next/static/chunks/{0a84s1t0dt8-h.js → 148_2lu2ra629.js} +1 -1
- package/.next/static/chunks/{0f56a6ti-axtc.js → 17~_6lx17xr8z.js} +3 -3
- package/package.json +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0wr~fjn._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_0z7gqwv._.js +0 -3
- package/.next/standalone/.next/server/chunks/ssr/_12us7s0._.js +0 -3
- package/.next/standalone/.next/static/chunks/09g0cm09ynuao.js +0 -1
- package/.next/standalone/.next/static/chunks/0lkbvidbb15ld.css +0 -1
- package/.next/static/chunks/09g0cm09ynuao.js +0 -1
- package/.next/static/chunks/0lkbvidbb15ld.css +0 -1
- /package/.next/standalone/.next/static/{Fr7ipSei0ydO_aZHViw9O → eALv8q_pKhx9-bE-9KiDB}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{Fr7ipSei0ydO_aZHViw9O → eALv8q_pKhx9-bE-9KiDB}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{Fr7ipSei0ydO_aZHViw9O → eALv8q_pKhx9-bE-9KiDB}/_ssgManifest.js +0 -0
- /package/.next/static/{Fr7ipSei0ydO_aZHViw9O → eALv8q_pKhx9-bE-9KiDB}/_buildManifest.js +0 -0
- /package/.next/static/{Fr7ipSei0ydO_aZHViw9O → eALv8q_pKhx9-bE-9KiDB}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{Fr7ipSei0ydO_aZHViw9O → eALv8q_pKhx9-bE-9KiDB}/_ssgManifest.js +0 -0
|
@@ -12,6 +12,6 @@ model_provider = "9router"
|
|
|
12
12
|
name = "9Router"
|
|
13
13
|
base_url = "${S()}"
|
|
14
14
|
wire_api = "responses"
|
|
15
|
-
`},{filename:"~/.codex/auth.json",content:JSON.stringify({OPENAI_API_KEY:r},null,2)}])})]})}],22321);var h=h;let l="https://9router.com";a.s(["default",0,function({tool:a,isExpanded:b,onToggle:i,baseUrl:k,hasActiveProviders:m,apiKeys:n,activeProviders:o,cloudEnabled:p,initialStatus:q}){let r,s,t,u,[v,w]=(0,d.useState)(q||null),[x,y]=(0,d.useState)(!1),[z,A]=(0,d.useState)(!1),[B,C]=(0,d.useState)(!1),[D,E]=(0,d.useState)(null),[F,G]=(0,d.useState)(""),[H,I]=(0,d.useState)(""),[J,K]=(0,d.useState)(!1),[L,M]=(0,d.useState)({}),[N,O]=(0,d.useState)(!1),[P,Q]=(0,d.useState)(""),R=(0,d.useRef)(!1),S=(()=>{if(!v?.installed)return null;let a=v.settings?.customModels?.find(a=>"custom:9Router-0"===a.id);if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1"),c=p&&l&&a.baseUrl?.startsWith(l),d=k&&a.baseUrl?.startsWith(k);return b||c||d?"configured":"other"})();(0,d.useEffect)(()=>{n?.length>0&&!F&&G(n[0].key)},[n,F]),(0,d.useEffect)(()=>{q&&w(q)},[q]),(0,d.useEffect)(()=>{b&&!v&&(U(),T()),b&&T()},[b]);let T=async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&M(b.aliases||{})}catch(a){console.log("Error fetching model aliases:",a)}};(0,d.useEffect)(()=>{if(v?.installed&&!R.current){R.current=!0;let a=v.settings?.customModels?.find(a=>"custom:9Router-0"===a.id);a&&(a.model&&I(a.model),a.apiKey&&n?.some(b=>b.key===a.apiKey)&&G(a.apiKey))}},[v,n]);let U=async()=>{y(!0);try{let a=await fetch("/api/cli-tools/droid-settings"),b=await a.json();w(b)}catch(a){w({installed:!1,error:a.message})}finally{y(!1)}},V=()=>{let a=P||k;return a.endsWith("/v1")?a:`${a}/v1`},W=async()=>{A(!0),E(null);try{let a=F?.trim()||(n?.length>0?n[0].key:null)||(p?null:"sk_9router"),b=await fetch("/api/cli-tools/droid-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:V(),apiKey:a,model:H})}),c=await b.json();b.ok?(E({type:"success",text:"Settings applied successfully!"}),U()):E({type:"error",text:c.error||"Failed to apply settings"})}catch(a){E({type:"error",text:a.message})}finally{A(!1)}},X=async()=>{C(!0),E(null);try{let a=await fetch("/api/cli-tools/droid-settings",{method:"DELETE"}),b=await a.json();a.ok?(E({type:"success",text:"Settings reset successfully!"}),I(""),G(""),U()):E({type:"error",text:b.error||"Failed to reset settings"})}catch(a){E({type:"error",text:a.message})}finally{C(!1)}};return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:i,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,c.jsx)(j.default,{src:"/providers/droid.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===S&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===S&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===S&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,c.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[x&&(0,c.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,c.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,c.jsx)("span",{children:"Checking Factory Droid CLI..."})]}),!x&&v&&!v.installed&&(0,c.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,c.jsxs)("div",{className:"flex-1",children:[(0,c.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"Factory Droid CLI not installed"}),(0,c.jsx)("p",{className:"text-sm text-text-muted",children:"Please install Factory Droid CLI to use this feature."})]})]}),!x&&v?.installed&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex flex-col gap-2",children:[v?.settings?.customModels?.find(a=>"custom:9Router-0"===a.id)?.baseUrl&&(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:v.settings.customModels.find(a=>"custom:9Router-0"===a.id).baseUrl})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:(r=P||k).endsWith("/v1")?r:`${r}/v1`,onChange:a=>Q(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),P&&P!==k&&(0,c.jsx)("button",{onClick:()=>Q(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),n.length>0?(0,c.jsx)("select",{value:F,onChange:a=>G(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:n.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,c.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:p?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:H,onChange:a=>I(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,c.jsx)("button",{onClick:()=>K(!0),disabled:!m,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${m?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),H&&(0,c.jsx)("button",{onClick:()=>I(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),D&&(0,c.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===D.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===D.type?"check_circle":"error"}),(0,c.jsx)("span",{children:D.text})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsxs)(f.Button,{variant:"primary",size:"sm",onClick:W,disabled:!H,loading:z,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,c.jsxs)(f.Button,{variant:"outline",size:"sm",onClick:X,disabled:!v?.has9Router,loading:B,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,c.jsxs)(f.Button,{variant:"ghost",size:"sm",onClick:()=>O(!0),children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,c.jsx)(g.ModelSelectModal,{isOpen:J,onClose:()=>K(!1),onSelect:a=>{I(a.value),K(!1)},selectedModel:H,activeProviders:o,modelAliases:L,title:"Select Model for Factory Droid"}),(0,c.jsx)(h.default,{isOpen:N,onClose:()=>O(!1),title:"Factory Droid - Manual Configuration",configs:(s=F&&F.trim()?F:p?"<API_KEY_FROM_DASHBOARD>":"sk_9router",t={customModels:[{model:H||"provider/model-id",id:"custom:9Router-0",index:0,baseUrl:V(),apiKey:s,displayName:H||"provider/model-id",maxOutputTokens:131072,noImageSupport:!1,provider:"openai"}]},u="u">typeof navigator&&navigator.platform,[{filename:u?.toLowerCase().includes("win")?"%USERPROFILE%\\.factory\\settings.json":"~/.factory/settings.json",content:JSON.stringify(t,null,2)}])})]})}],75806);var h=h;a.s(["default",0,function({tool:a,isExpanded:b,onToggle:i,baseUrl:k,hasActiveProviders:l,apiKeys:m,activeProviders:n,cloudEnabled:o,initialStatus:p}){let q,r,[s,t]=(0,d.useState)(p||null),[u,v]=(0,d.useState)(!1),[w,x]=(0,d.useState)(!1),[y,z]=(0,d.useState)(!1),[A,B]=(0,d.useState)(null),[C,D]=(0,d.useState)(""),[E,F]=(0,d.useState)(""),[G,H]=(0,d.useState)(!1),[I,J]=(0,d.useState)({}),[K,L]=(0,d.useState)(!1),[M,N]=(0,d.useState)(""),O=(0,d.useRef)(!1),P=(()=>{if(!s?.installed)return null;let a=s.settings?.models?.providers?.["9router"];if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1")||a.baseUrl?.includes("0.0.0.0"),c=k&&a.baseUrl?.startsWith(k);return b||c?"configured":"other"})();(0,d.useEffect)(()=>{m?.length>0&&!C&&D(m[0].key)},[m,C]),(0,d.useEffect)(()=>{p&&t(p)},[p]),(0,d.useEffect)(()=>{b&&!s&&(R(),Q()),b&&Q()},[b]);let Q=async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&J(b.aliases||{})}catch(a){console.log("Error fetching model aliases:",a)}};(0,d.useEffect)(()=>{if(s?.installed&&!O.current){O.current=!0;let a=s.settings?.models?.providers?.["9router"];if(a){let b=s.settings?.agents?.defaults?.model?.primary;b&&F(b.replace("9router/","")),a.apiKey&&m?.some(b=>b.key===a.apiKey)&&D(a.apiKey)}}},[s,m]);let R=async()=>{v(!0);try{let a=await fetch("/api/cli-tools/openclaw-settings"),b=await a.json();t(b)}catch(a){t({installed:!1,error:a.message})}finally{v(!1)}},S=()=>{let a=M||"http://127.0.0.1:20128";return a.endsWith("/v1")?a:`${a}/v1`},T=async()=>{x(!0),B(null);try{let a=C?.trim()||(m?.length>0?m[0].key:null)||(o?null:"sk_9router"),b=await fetch("/api/cli-tools/openclaw-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:S(),apiKey:a,model:E})}),c=await b.json();b.ok?(B({type:"success",text:"Settings applied successfully!"}),R()):B({type:"error",text:c.error||"Failed to apply settings"})}catch(a){B({type:"error",text:a.message})}finally{x(!1)}},U=async()=>{z(!0),B(null);try{let a=await fetch("/api/cli-tools/openclaw-settings",{method:"DELETE"}),b=await a.json();a.ok?(B({type:"success",text:"Settings reset successfully!"}),F(""),D(""),R()):B({type:"error",text:b.error||"Failed to reset settings"})}catch(a){B({type:"error",text:a.message})}finally{z(!1)}};return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:i,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,c.jsx)(j.default,{src:"/providers/openclaw.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,c.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[u&&(0,c.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,c.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,c.jsx)("span",{children:"Checking Open Claw CLI..."})]}),!u&&s&&!s.installed&&(0,c.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,c.jsxs)("div",{className:"flex-1",children:[(0,c.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"Open Claw CLI not installed"}),(0,c.jsx)("p",{className:"text-sm text-text-muted",children:"Please install Open Claw CLI to use this feature."})]})]}),!u&&s?.installed&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex flex-col gap-2",children:[s?.settings?.models?.providers?.["9router"]?.baseUrl&&(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:s.settings.models.providers["9router"].baseUrl})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:(q=M||"http://127.0.0.1:20128").endsWith("/v1")?q:`${q}/v1`,onChange:a=>N(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),M&&M!==k&&(0,c.jsx)("button",{onClick:()=>N(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),m.length>0?(0,c.jsx)("select",{value:C,onChange:a=>D(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:m.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,c.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:o?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:E,onChange:a=>F(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,c.jsx)("button",{onClick:()=>H(!0),disabled:!l,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${l?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),E&&(0,c.jsx)("button",{onClick:()=>F(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),A&&(0,c.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===A.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===A.type?"check_circle":"error"}),(0,c.jsx)("span",{children:A.text})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsxs)(f.Button,{variant:"primary",size:"sm",onClick:T,disabled:!E,loading:w,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,c.jsxs)(f.Button,{variant:"outline",size:"sm",onClick:U,disabled:!s?.has9Router,loading:y,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,c.jsxs)(f.Button,{variant:"ghost",size:"sm",onClick:()=>L(!0),children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,c.jsx)(g.ModelSelectModal,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{F(a.value),H(!1)},selectedModel:E,activeProviders:n,modelAliases:I,title:"Select Model for Open Claw"}),(0,c.jsx)(h.default,{isOpen:K,onClose:()=>L(!1),title:"Open Claw - Manual Configuration",configs:(r=C&&C.trim()?C:o?"<API_KEY_FROM_DASHBOARD>":"sk_9router",[{filename:"~/.openclaw/openclaw.json",content:JSON.stringify({agents:{defaults:{model:{primary:`9router/${E||"provider/model-id"}`}}},models:{providers:{"9router":{baseUrl:S(),apiKey:r,api:"openai-completions",models:[{id:E||"provider/model-id",name:(E||"provider/model-id").split("/").pop()}]}}}},null,2)}])})]})}],36416),a.s(["default",0,function({toolId:a,tool:b,isExpanded:f,onToggle:h,baseUrl:i,apiKeys:k,activeProviders:l=[],cloudEnabled:m=!1,tunnelEnabled:n=!1}){let[o,p]=(0,d.useState)(null),[q,r]=(0,d.useState)(!1),[s,t]=(0,d.useState)(""),[u,v]=(0,d.useState)(()=>k?.length>0?k[0].key:""),w=a=>{let b=u&&u.trim()?u:m?"your-api-key":"sk_9router",c=i||"http://localhost:20128",d=c.endsWith("/v1")?c:`${c}/v1`;return a.replace(/\{\{baseUrl\}\}/g,d).replace(/\{\{apiKey\}\}/g,b).replace(/\{\{model\}\}/g,s||"provider/model-id")},x=async(a,b)=>{await navigator.clipboard.writeText(w(a)),p(b),setTimeout(()=>p(null),2e3)},y=l.length>0,z=()=>(!b.requiresExternalUrl||!!m||!!n)&&(!b.requiresCloud||!!m);return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:h,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:b.image?(0,c.jsx)(j.default,{src:b.image,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}}):b.icon?(0,c.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:b.color},children:b.icon}):(0,c.jsx)(j.default,{src:`/providers/${a}.png`,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:b.name}),(0,c.jsx)("p",{className:"text-xs text-text-muted truncate",children:b.description})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${f?"rotate-180":""}`,children:"expand_more"})]}),f&&(0,c.jsx)("div",{className:"mt-6 pt-6 border-t border-border",children:b.guideSteps?(0,c.jsxs)("div",{className:"flex flex-col gap-4",children:[b.notes&&0!==b.notes.length?(0,c.jsx)("div",{className:"flex flex-col gap-2 mb-4",children:b.notes.map((a,b)=>{if("cloudCheck"===a.type&&(m||n))return null;let d="warning"===a.type,e="cloudCheck"===a.type&&!m&&!n,f="bg-blue-500/10 border-blue-500/30",g="text-blue-600 dark:text-blue-400",h="text-blue-500",i="info";return d?(f="bg-yellow-500/10 border-yellow-500/30",g="text-yellow-600 dark:text-yellow-400",h="text-yellow-500",i="warning"):e&&(f="bg-red-500/10 border-red-500/30",g="text-red-600 dark:text-red-400",h="text-red-500",i="error"),(0,c.jsxs)("div",{className:`flex items-start gap-3 p-3 rounded-lg border ${f}`,children:[(0,c.jsx)("span",{className:`material-symbols-outlined text-lg ${h}`,children:i}),(0,c.jsx)("p",{className:`text-sm ${g}`,children:a.text})]},b)})}):null,z()&&b.guideSteps.map(a=>(0,c.jsxs)("div",{className:"flex items-start gap-4",children:[(0,c.jsx)("div",{className:"size-8 rounded-full flex items-center justify-center shrink-0 text-sm font-semibold text-white",style:{backgroundColor:b.color},children:a.step}),(0,c.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,c.jsx)("p",{className:"font-medium text-text",children:a.title}),a.desc&&(0,c.jsx)("p",{className:"text-sm text-text-muted mt-0.5",children:a.desc}),"apiKeySelector"===a.type&&(0,c.jsx)("div",{className:"mt-2 flex items-center gap-2",children:k&&k.length>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("select",{value:u,onChange:a=>v(a.target.value),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:k.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}),(0,c.jsx)("button",{onClick:()=>x(u,"apiKey"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-lg",children:"apiKey"===o?"check":"content_copy"})})]}):(0,c.jsx)("span",{className:"text-sm text-text-muted",children:m?"No API keys - Create one in Keys page":"sk_9router"})}),"modelSelector"===a.type&&(0,c.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,c.jsx)("input",{type:"text",value:s,onChange:a=>t(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,c.jsx)("button",{onClick:()=>r(!0),disabled:!y,className:`shrink-0 px-3 py-2 rounded-lg border text-sm transition-colors ${y?"bg-bg-secondary border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),s&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("button",{onClick:()=>x(s,"model"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-lg",children:"model"===o?"check":"content_copy"})}),(0,c.jsx)("button",{onClick:()=>t(""),className:"p-2 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]})]}),a.value&&(0,c.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,c.jsx)("code",{className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm font-mono border border-border truncate",children:w(a.value)}),a.copyable&&(0,c.jsx)("button",{onClick:()=>x(a.value,`${a.step}-${a.title}`),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-lg",children:o===`${a.step}-${a.title}`?"check":"content_copy"})})]})]})]},a.step)),z()&&b.codeBlock&&(0,c.jsxs)("div",{className:"mt-2",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,c.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wide",children:b.codeBlock.language}),(0,c.jsxs)("button",{onClick:()=>x(b.codeBlock.code,"codeblock"),className:"flex items-center gap-1 px-2 py-1 text-xs bg-bg-secondary hover:bg-bg-tertiary rounded border border-border transition-colors",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-sm",children:"codeblock"===o?"check":"content_copy"}),"codeblock"===o?"Copied!":"Copy"]})]}),(0,c.jsx)("pre",{className:"p-4 bg-bg-secondary rounded-lg border border-border overflow-x-auto",children:(0,c.jsx)("code",{className:"text-sm font-mono whitespace-pre",children:w(b.codeBlock.code)})})]})]}):(0,c.jsx)("p",{className:"text-text-muted text-sm",children:"Coming soon..."})}),(0,c.jsx)(g.ModelSelectModal,{isOpen:q,onClose:()=>r(!1),onSelect:a=>{t(a.value)},selectedModel:s,activeProviders:l,title:"Select Model"})]})}],12407);var m=a.i(56882);a.i(78236);var n=a.i(40695),h=h;a.s(["default",0,function({tool:a,isExpanded:b,onToggle:i,baseUrl:k,apiKeys:l,activeProviders:m,cloudEnabled:n,initialStatus:o}){let p,[q,r]=(0,d.useState)(o||null),[s,t]=(0,d.useState)(!1),[u,v]=(0,d.useState)(!1),[w,x]=(0,d.useState)(!1),[y,z]=(0,d.useState)(null),[A,B]=(0,d.useState)(!1),[C,D]=(0,d.useState)(""),[E,F]=(0,d.useState)(""),[G,H]=(0,d.useState)(!1),[I,J]=(0,d.useState)({}),[K,L]=(0,d.useState)(!1),[M,N]=(0,d.useState)("");(0,d.useEffect)(()=>{l?.length>0&&!C&&D(l[0].key)},[l,C]),(0,d.useEffect)(()=>{o&&r(o)},[o]),(0,d.useEffect)(()=>{b&&!q&&(R(),O()),b&&O()},[b]),(0,d.useEffect)(()=>{q?.config?.model?.startsWith("9router/")&&F(q.config.model.replace("9router/",""))},[q]);let O=async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&J(b.aliases||{})}catch(a){console.log("Error fetching model aliases:",a)}},P=(()=>{if(!q?.installed)return null;if(!q.config)return"not_configured";let a=q.config?.provider?.["9router"]?.options?.baseURL||"",b=a.includes("localhost")||a.includes("127.0.0.1");return q.has9Router&&(b||a.includes(k))?"configured":q.has9Router?"other":"not_configured"})(),Q=()=>{let a=M||k;return a.endsWith("/v1")?a:`${a}/v1`},R=async()=>{t(!0);try{let a=await fetch("/api/cli-tools/opencode-settings"),b=await a.json();r(b)}catch(a){r({installed:!1,error:a.message})}finally{t(!1)}},S=async()=>{v(!0),z(null);try{let a=C&&C.trim()||n?C:"sk_9router",b=await fetch("/api/cli-tools/opencode-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:Q(),apiKey:a,model:E})}),c=await b.json();b.ok?(z({type:"success",text:"Settings applied successfully!"}),R()):z({type:"error",text:c.error||"Failed to apply settings"})}catch(a){z({type:"error",text:a.message})}finally{v(!1)}},T=async()=>{x(!0),z(null);try{let a=await fetch("/api/cli-tools/opencode-settings",{method:"DELETE"}),b=await a.json();a.ok?(z({type:"success",text:"Settings reset successfully!"}),F(""),R()):z({type:"error",text:b.error||"Failed to reset settings"})}catch(a){z({type:"error",text:a.message})}finally{x(!1)}};return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:i,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,c.jsx)(j.default,{src:"/providers/opencode.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,c.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[s&&(0,c.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,c.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,c.jsx)("span",{children:"Checking OpenCode CLI..."})]}),!s&&q&&!q.installed&&(0,c.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,c.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,c.jsxs)("div",{className:"flex-1",children:[(0,c.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"OpenCode CLI not installed"}),(0,c.jsx)("p",{className:"text-sm text-text-muted",children:"Please install OpenCode CLI to use auto-apply feature."})]}),(0,c.jsxs)(f.Button,{variant:"outline",size:"sm",onClick:()=>B(!A),children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[18px] mr-1",children:A?"expand_less":"help"}),A?"Hide":"How to Install"]})]}),A&&(0,c.jsxs)("div",{className:"p-4 bg-surface border border-border rounded-lg",children:[(0,c.jsx)("h4",{className:"font-medium mb-3",children:"Installation Guide"}),(0,c.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-text-muted mb-1",children:"macOS / Linux:"}),(0,c.jsx)("code",{className:"block px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs",children:"npm install -g opencode-ai"})]}),(0,c.jsxs)("p",{className:"text-text-muted",children:["After installation, run ",(0,c.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"opencode"})," to verify."]})]})]})]}),!s&&q?.installed&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex flex-col gap-2",children:[q?.config?.provider?.["9router"]?.options?.baseURL&&(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:q.config.provider["9router"].options.baseURL})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:M||`${k}/v1`,onChange:a=>N(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),M&&M!==`${k}/v1`&&(0,c.jsx)("button",{onClick:()=>N(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),l.length>0?(0,c.jsx)("select",{value:C,onChange:a=>D(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,c.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:n?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:E,onChange:a=>F(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,c.jsx)("button",{onClick:()=>H(!0),disabled:!m?.length,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${m?.length?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),E&&(0,c.jsx)("button",{onClick:()=>F(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),y&&(0,c.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===y.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===y.type?"check_circle":"error"}),(0,c.jsx)("span",{children:y.text})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsxs)(f.Button,{variant:"primary",size:"sm",onClick:S,disabled:!E,loading:u,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,c.jsxs)(f.Button,{variant:"outline",size:"sm",onClick:T,disabled:!q.has9Router,loading:w,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,c.jsxs)(f.Button,{variant:"ghost",size:"sm",onClick:()=>L(!0),children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,c.jsx)(g.ModelSelectModal,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{F(a.value),H(!1)},selectedModel:E,activeProviders:m,modelAliases:I,title:"Select Model for OpenCode"}),(0,c.jsx)(h.default,{isOpen:K,onClose:()=>L(!1),title:"OpenCode - Manual Configuration",configs:(p=C&&C.trim()?C:n?"<API_KEY_FROM_DASHBOARD>":"sk_9router",[{filename:"~/.config/opencode/opencode.json",content:JSON.stringify({provider:{"9router":{npm:"@ai-sdk/openai-compatible",options:{baseURL:Q(),apiKey:p},models:{[E||"provider/model-id"]:{name:E||"provider/model-id"}}}},model:`9router/${E||"provider/model-id"}`},null,2)}])})]})}],16596);var h=h;function o(){let[a,b]=(0,d.useState)(null),[e,f]=(0,d.useState)(!1),[g,h]=(0,d.useState)(null),i=(0,d.useCallback)(async()=>{try{let a=await fetch("/api/antigravity-ide");a.ok&&b(await a.json())}catch{}},[]);(0,d.useEffect)(()=>{let a=!0;return(async()=>{try{let c=await fetch("/api/antigravity-ide");c.ok&&a&&b(await c.json())}catch{}})(),()=>{a=!1}},[]);let j=async()=>{f(!0),h(null);try{let a=await fetch("/api/antigravity-ide",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"close"})}),b=await a.json();h(b),setTimeout(i,1e3)}catch(a){h({success:!1,error:a.message})}f(!1)};return(0,c.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,c.jsxs)("button",{onClick:j,disabled:e||!a?.running,className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg text-xs font-medium border border-red-500/30 text-red-500 bg-red-500/5 hover:bg-red-500/15 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:a?.running?"Close all Antigravity IDE processes":"Antigravity IDE is not running",children:[(0,c.jsx)("span",{className:`material-symbols-outlined text-[14px] ${e?"animate-spin":""}`,children:e?"progress_activity":"close"}),e?"Closing…":"Close IDE"]}),a&&(0,c.jsxs)("span",{className:"flex items-center gap-1 text-[10px] text-text-muted",children:[(0,c.jsx)("span",{className:`inline-block w-1.5 h-1.5 rounded-full ${!a.installed?"bg-gray-400":a.running?"bg-green-500":"bg-red-400"}`}),a.installed?a.running?"Running":"Stopped":"Not installed"]}),g&&!e&&(0,c.jsxs)("span",{className:`text-[10px] ${g.success?"text-green-500":"text-red-400"}`,children:[g.success?"✓":"✗"," ",g.message||g.error]})]})}a.s(["default",0,function({apiKeys:a,cloudEnabled:b,onStatusChange:g}){let[h,i]=(0,d.useState)(null),[j,k]=(0,d.useState)(!1),[l,o]=(0,d.useState)(!1),[p,q]=(0,d.useState)(""),[r,s]=(0,d.useState)(""),[t,u]=(0,d.useState)(null),[v,w]=(0,d.useState)(null),[x,y]=(0,d.useState)(null),z="u">typeof navigator&&navigator.userAgent?.includes("Windows"),A=h?.isAdmin!==!1;(0,d.useEffect)(()=>{a?.length>0&&!r&&s(a[0].key)},[a,r]),(0,d.useEffect)(()=>{B()},[]);let B=async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm");if(a.ok){let b=await a.json();i(b),g?.(b)}}catch{i({running:!1,certExists:!1,dnsStatus:{}})}},C=a=>{z||h?.hasCachedPassword?D(a,""):(u(a),o(!0),w(null))},D=async(c,d)=>{k(!0),y(null);try{let e;if("trust-cert"===c)e=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"trust-cert",sudoPassword:d})});else if("start"===c){let c=r?.trim()||(a?.length>0?a[0].key:null)||(b?null:"sk_9router");e=await fetch("/api/cli-tools/antigravity-mitm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:c,sudoPassword:d})})}else e=await fetch("/api/cli-tools/antigravity-mitm",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:d})});let f=await e.json().catch(()=>({}));if(!e.ok)throw Error(f.error||"MITM action failed");o(!1),q(""),w(null),await B()}catch(b){let a=b?.message||"MITM action failed";y(a),l&&w(a)}finally{k(!1),u(null)}},E=()=>{p?D(t,p):w("Sudo password is required")},F=h?.running;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e.Card,{padding:"sm",className:"border-primary/20 bg-primary/5",children:(0,c.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"security"}),(0,c.jsx)("span",{className:"font-semibold text-sm text-text-main",children:"MITM Server"}),F?(0,c.jsx)(m.Badge,{variant:"success",size:"sm",children:"Running"}):(0,c.jsx)(m.Badge,{variant:"default",size:"sm",children:"Stopped"})]}),(0,c.jsx)("div",{className:"flex items-center gap-1 text-xs text-text-muted","data-i18n-skip":"true",children:[{label:"Cert",ok:h?.certExists},{label:"Trusted",ok:h?.certTrusted},{label:"Server",ok:F}].map(({label:a,ok:b})=>(0,c.jsxs)("span",{className:`flex items-center gap-0.5 px-1.5 py-0.5 rounded ${b?"text-green-600":"text-text-muted"}`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:b?"check_circle":"cancel"}),a]},a))})]}),(0,c.jsxs)("div",{className:"px-2 py-2 rounded-lg bg-surface/50 border border-border/50 flex flex-col gap-2",children:[(0,c.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,c.jsx)("span",{className:"font-medium text-text-main",children:"Purpose:"})," Use Antigravity IDE & GitHub Copilot → with ANY provider/model from 9Router"]}),(0,c.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,c.jsx)("span",{className:"font-medium text-text-main",children:"How it works:"})," Antigravity/Copilot IDE request → DNS redirect to localhost:443 → MITM proxy intercepts → 9Router → response to Antigravity/Copilot"]})]}),!F&&(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"text-xs text-text-muted shrink-0",children:"API Key"}),a?.length>0?(0,c.jsx)("select",{value:r,onChange:a=>s(a.target.value),className:"flex-1 px-2 py-1 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:a.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,c.jsx)("span",{className:"text-xs text-text-muted",children:b?"No API keys — create one in Keys page":"sk_9router (default)"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2 flex-wrap","data-i18n-skip":"true",children:[h?.certExists&&!h?.certTrusted&&(0,c.jsxs)("button",{onClick:()=>C("trust-cert"),disabled:j,className:"px-4 py-1.5 rounded-lg bg-yellow-500/10 border border-yellow-500/30 text-yellow-600 font-medium text-xs flex items-center gap-1.5 hover:bg-yellow-500/20 transition-colors disabled:opacity-50",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"verified_user"}),"Trust Cert"]}),F?(0,c.jsxs)("button",{onClick:()=>C("stop"),disabled:j,className:"px-4 py-1.5 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-xs flex items-center gap-1.5 hover:bg-red-500/20 transition-colors disabled:opacity-50",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop Server"]}):(0,c.jsxs)("button",{onClick:()=>C("start"),disabled:j||z&&!A,className:"px-4 py-1.5 rounded-lg bg-primary/10 border border-primary/30 text-primary font-medium text-xs flex items-center gap-1.5 hover:bg-primary/20 transition-colors disabled:opacity-50",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start Server"]}),F&&(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Enable DNS per tool below to activate interception"})]}),x&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,c.jsx)("span",{children:x})]}),z&&!A&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"shield_lock"}),(0,c.jsx)("span",{children:"Administrator required — restart 9Router as Administrator to use MITM"})]})]})}),l&&(0,c.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,c.jsxs)("div",{className:"bg-surface border border-border rounded-xl p-6 w-full max-w-sm flex flex-col gap-4 shadow-xl",children:[(0,c.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,c.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Required for SSL certificate and server startup"})]}),(0,c.jsx)(n.Input,{type:"password",placeholder:"Enter sudo password",value:p,onChange:a=>q(a.target.value),onKeyDown:a=>{"Enter"!==a.key||j||E()}}),v&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,c.jsx)("span",{children:v})]}),(0,c.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,c.jsx)(f.Button,{variant:"ghost",size:"sm",onClick:()=>{o(!1),q(""),w(null)},disabled:j,children:"Cancel"}),(0,c.jsx)(f.Button,{variant:"primary",size:"sm",onClick:E,loading:j,children:"Confirm"})]})]})})]})}],80550),a.s(["default",0,function({tool:a,isExpanded:b,onToggle:h,serverRunning:i,dnsActive:k,hasCachedPassword:l,apiKeys:p,activeProviders:q,hasActiveProviders:r,modelAliases:s={},cloudEnabled:t,onDnsChange:u,tokenSwapActive:v=!1}){let[w,x]=(0,d.useState)(!1),[y,z]=(0,d.useState)(null),[A,B]=(0,d.useState)(!1),[C,D]=(0,d.useState)(""),[E,F]=(0,d.useState)(null),[G,H]=(0,d.useState)(null),[I,J]=(0,d.useState)({}),[K,L]=(0,d.useState)(!1),[M,N]=(0,d.useState)(null),O="u">typeof navigator&&navigator.userAgent?.includes("Windows");(0,d.useEffect)(()=>{b&&P()},[b]);let P=async()=>{try{let b=await fetch(`/api/cli-tools/antigravity-mitm/alias?tool=${a.id}`);if(b.ok){let a=await b.json();Object.keys(a.aliases||{}).length>0&&J(a.aliases)}}catch{}},Q=(0,d.useCallback)(async b=>{try{await fetch("/api/cli-tools/antigravity-mitm/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,mappings:b})})}catch{}},[a.id]),R=(a,b)=>{J(c=>({...c,[a]:b}))},S=()=>{if(!i)return;let a=k?"disable":"enable";O||l?T(a,""):(F(a),B(!0),H(null))},T=async(b,c)=>{x(!0),z(null);try{let d=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,action:b,sudoPassword:c})}),e=await d.json();if(!d.ok)throw Error(e.error||"Failed to toggle DNS");"enable"===b&&z(`Restart ${a.name} to apply changes`),B(!1),D(""),u?.(e)}catch{}finally{x(!1),F(null)}},U=()=>{C?T(E,C):H("Sudo password is required")};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:h,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,c.jsx)(j.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:a.name}),a.supportsTokenSwap&&(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wider text-text-muted bg-surface border border-border px-1.5 py-0.5 rounded font-semibold",children:"Mode A"}),i?v?(0,c.jsx)(m.Badge,{variant:"default",size:"sm",children:"Bypassed"}):k?(0,c.jsx)(m.Badge,{variant:"success",size:"sm",children:"Active"}):(0,c.jsx)(m.Badge,{variant:"warning",size:"sm",children:"DNS off"}):(0,c.jsx)(m.Badge,{variant:"default",size:"sm",children:"Server off"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Model routing — remap model IDs in intercepted requests"})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,c.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[v&&(0,c.jsxs)("div",{className:"flex items-start gap-2 px-2 py-2 rounded-lg bg-violet-500/5 border border-violet-500/15",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] text-violet-400 mt-0.5 shrink-0",children:"info"}),(0,c.jsx)("p",{className:"text-[11px] text-violet-400",children:"Token Rotation (Mode B) is active — model routing is currently bypassed. Disable Token Rotation to use model routing."})]}),"antigravity"===a.id&&(0,c.jsx)(o,{}),(0,c.jsxs)("div",{className:"flex flex-col gap-0.5 text-[11px] text-text-muted px-1",children:[(0,c.jsxs)("p",{children:["Toggle DNS to redirect ",a.name," traffic through 9Router via MITM."]}),!k&&(0,c.jsx)("p",{className:"text-amber-600 text-[10px] mt-1",children:"⚠️ Enable DNS to edit model mappings"})]}),a.defaultModels?.length>0&&(0,c.jsx)("div",{className:"flex flex-col gap-2",children:a.defaultModels.map(a=>(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-36 shrink-0 text-xs font-semibold text-text-main text-right",children:a.name}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:I[a.alias]||"",onChange:b=>R(a.alias,b.target.value),onBlur:b=>{var c,d;return c=a.alias,d=b.target.value,void Q({...I,[c]:d})},placeholder:"provider/model-id",disabled:!k,className:`flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50 ${!k?"opacity-50 cursor-not-allowed":""}`}),(0,c.jsx)("button",{onClick:()=>{N(a.alias),L(!0)},disabled:!r||!k,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 ${r&&k?"bg-surface border-border hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select"}),I[a.alias]&&(0,c.jsx)("button",{onClick:()=>{R(a.alias,""),Q({...I,[a.alias]:""})},className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},a.alias))}),a.defaultModels?.length===0&&(0,c.jsx)("p",{className:"text-xs text-text-muted px-1",children:"Model mappings will be available soon."}),(0,c.jsxs)("div",{className:"flex flex-col gap-2 items-start",children:[k?(0,c.jsxs)("button",{onClick:S,disabled:!i||w,className:"px-4 py-1.5 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-xs flex items-center gap-1.5 hover:bg-red-500/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop DNS"]}):(0,c.jsxs)("button",{onClick:S,disabled:!i||w,className:"px-4 py-1.5 rounded-lg bg-primary/10 border border-primary/30 text-primary font-medium text-xs flex items-center gap-1.5 hover:bg-primary/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start DNS"]}),y&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs text-amber-500",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,c.jsx)("span",{children:y})]})]})]})]}),A&&(0,c.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,c.jsxs)("div",{className:"bg-surface border border-border rounded-xl p-6 w-full max-w-sm flex flex-col gap-4 shadow-xl",children:[(0,c.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,c.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Required to modify /etc/hosts and flush DNS cache"})]}),(0,c.jsx)(n.Input,{type:"password",placeholder:"Enter sudo password",value:C,onChange:a=>D(a.target.value),onKeyDown:a=>{"Enter"!==a.key||w||U()}}),G&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,c.jsx)("span",{children:G})]}),(0,c.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,c.jsx)(f.Button,{variant:"ghost",size:"sm",onClick:()=>{B(!1),D(""),H(null)},disabled:w,children:"Cancel"}),(0,c.jsx)(f.Button,{variant:"primary",size:"sm",onClick:U,loading:w,children:"Confirm"})]})]})}),(0,c.jsx)(g.ModelSelectModal,{isOpen:K,onClose:()=>L(!1),onSelect:a=>{if(!M||a.isPlaceholder)return;let b={...I,[M]:a.value};J(b),Q(b)},selectedModel:M?I[M]:null,activeProviders:q,modelAliases:s,title:`Select model for ${M}`})]})}],53014);var p=a.i(38246),q=a.i(84);a.s(["default",0,function({tool:a,connections:b=[],serverRunning:f,dnsActive:g,onToggle:h}){let[i,j]=(0,d.useState)(!1),[k,l]=(0,d.useState)(!1),[n,o]=(0,d.useState)("round-robin"),[r,s]=(0,d.useState)(!1),[t,u]=(0,d.useState)({}),v=(0,d.useRef)({}),w=(0,d.useCallback)(async()=>{try{let a=await fetch("/api/settings");if(a.ok){let b=await a.json();j(!!b.tokenSwapEnabled),o(b.tokenSwapStrategy||"round-robin")}}catch{}},[]);(0,d.useEffect)(()=>{w()},[w]);let x=(0,d.useCallback)(async(b,c=!1)=>{if(!b||0===b.length)return;let d=Date.now(),e=[],f={};if(b.forEach(a=>{let b=v.current[a.id];!c&&b&&d-b.ts<12e4?f[a.id]={quotas:b.data,error:b.error,loading:!1}:e.push(a)}),Object.keys(f).length>0&&u(a=>({...a,...f})),0===e.length)return;let g={};e.forEach(a=>{g[a.id]={quotas:[],error:null,loading:!0}}),u(a=>({...a,...g})),await Promise.all(e.map(async b=>{try{let c=await fetch(`/api/usage/${b.id}`);if(!c.ok){let a=(await c.json().catch(()=>({}))).error||`HTTP ${c.status}`;v.current[b.id]={data:[],error:a,ts:Date.now()},u(c=>({...c,[b.id]:{quotas:[],error:a,loading:!1}}));return}let d=await c.json(),e=(0,q.parseQuotaData)(a.tokenSwapProvider||"antigravity",d);v.current[b.id]={data:e,error:null,ts:Date.now()},u(a=>({...a,[b.id]:{quotas:e,error:null,loading:!1}}))}catch(c){let a=c.message||"Failed";v.current[b.id]={data:[],error:a,ts:Date.now()},u(c=>({...c,[b.id]:{quotas:[],error:a,loading:!1}}))}}))},[a.tokenSwapProvider]);if(!a?.supportsTokenSwap)return null;let y=async()=>{l(!0);let a=!i;try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokenSwapEnabled:a})})).ok&&(j(a),h?.(a))}catch{}l(!1)},z=async a=>{if(a!==n&&!r){s(!0);try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokenSwapStrategy:a})})).ok&&o(a)}catch{}s(!1)}},A=b.filter(b=>b.provider===a.tokenSwapProvider&&!1!==b.isActive),B=A.length;(0,d.useEffect)(()=>{i&&B>0&&x(A)},[i,B]);let C=f&&g,D=i&&C&&B>0;return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0 rounded-lg bg-violet-500/10",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-violet-400 text-[18px]",children:"swap_horiz"})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:"Token Rotation"}),(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wider text-text-muted bg-surface border border-border px-1.5 py-0.5 rounded font-semibold",children:"Mode B"}),D?(0,c.jsx)(m.Badge,{variant:"success",size:"sm",children:"Active"}):i?(0,c.jsx)(m.Badge,{variant:"warning",size:"sm",children:"Enabled"}):(0,c.jsx)(m.Badge,{variant:"default",size:"sm",children:"Off"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Rotate auth tokens across pool accounts to bypass per-account quota"})]})]}),(0,c.jsx)("button",{onClick:y,disabled:k,className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors shrink-0 ${i?"bg-violet-500":"bg-surface-alt border border-border"} ${k?"opacity-50":"cursor-pointer"}`,title:i?"Disable Token Rotation":"Enable Token Rotation",children:(0,c.jsx)("span",{className:`inline-block h-3.5 w-3.5 transform rounded-full bg-white transition-transform shadow-sm ${i?"translate-x-4":"translate-x-0.5"}`})})]}),i&&(0,c.jsxs)("div",{className:"mt-3 pt-3 border-t border-border/50 flex flex-col gap-3",children:[(0,c.jsxs)("div",{className:"flex items-start gap-2 px-2 py-2 rounded-lg bg-violet-500/5 border border-violet-500/15",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] text-violet-400 mt-0.5 shrink-0",children:"info"}),(0,c.jsxs)("div",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,c.jsx)("p",{children:"Intercepts Antigravity requests → swaps IDE's auth token with a pool account → auto-retries on 429 quota error with next account in pool."}),(0,c.jsx)("p",{className:"mt-1 text-violet-400/80 font-medium",children:"⚠ When active, Model Routing (Mode A) is bypassed."})]})]}),(0,c.jsxs)("div",{className:"flex flex-col gap-1.5 px-1",children:[(0,c.jsx)("p",{className:"text-[10px] uppercase tracking-wider text-text-muted font-semibold",children:"Rotation Strategy"}),(0,c.jsxs)("div",{className:"flex gap-1.5",children:[(0,c.jsxs)("button",{onClick:()=>z("round-robin"),disabled:r,className:`flex-1 flex flex-col items-center gap-0.5 px-2 py-2 rounded-lg border text-[11px] font-medium transition-colors ${"round-robin"===n?"border-violet-500/50 bg-violet-500/10 text-violet-400":"border-border bg-surface text-text-muted hover:border-border-alt"} disabled:opacity-50`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"autorenew"}),"Round Robin"]}),(0,c.jsxs)("button",{onClick:()=>z("sticky"),disabled:r,className:`flex-1 flex flex-col items-center gap-0.5 px-2 py-2 rounded-lg border text-[11px] font-medium transition-colors ${"sticky"===n?"border-violet-500/50 bg-violet-500/10 text-violet-400":"border-border bg-surface text-text-muted hover:border-border-alt"} disabled:opacity-50`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"push_pin"}),"Sticky"]})]}),(0,c.jsx)("p",{className:"text-[10px] text-text-muted px-0.5",children:"sticky"===n?"Stays on the same account until its quota is exhausted for the requested model, then switches. Optimizes session-level token cache.":"Rotates accounts after each session (sticky round-robin). Distributes load evenly across the pool."})]}),(0,c.jsxs)("div",{className:"flex flex-col gap-1 px-1",children:[(0,c.jsx)("p",{className:"text-[10px] uppercase tracking-wider text-text-muted font-semibold mb-0.5",children:"Prerequisites"}),(0,c.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,c.jsx)("span",{className:`material-symbols-outlined text-[14px] ${f?"text-green-500":"text-red-400"}`,children:f?"check_circle":"cancel"}),(0,c.jsx)("span",{className:f?"text-text-main":"text-text-muted",children:"MITM Server"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,c.jsx)("span",{className:`material-symbols-outlined text-[14px] ${g?"text-green-500":"text-red-400"}`,children:g?"check_circle":"cancel"}),(0,c.jsxs)("span",{className:g?"text-text-main":"text-text-muted",children:["DNS redirect",!g&&(0,c.jsx)("span",{className:"text-[10px] text-text-muted ml-1",children:"— enable via Antigravity card above"})]})]})]}),(0,c.jsxs)("div",{className:"flex flex-col gap-1 px-1",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between mb-0.5",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("p",{className:"text-[10px] uppercase tracking-wider text-text-muted font-semibold",children:"Pool Accounts"}),(0,c.jsx)("span",{className:"text-[10px] text-text-muted",children:B>0?`${B} active`:"none"}),B>1&&(0,c.jsx)("span",{className:"text-[9px] text-text-muted bg-surface border border-border px-1 py-0.5 rounded",children:"round-robin"})]}),B>0&&(0,c.jsx)("button",{onClick:()=>x(A,!0),className:"text-[10px] text-text-muted hover:text-primary flex items-center gap-0.5 transition-colors",title:"Refresh quotas",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"refresh"})})]}),B>0?(0,c.jsxs)(c.Fragment,{children:[A.map(a=>(0,c.jsxs)("div",{className:"flex items-center gap-2 px-1 py-1 rounded hover:bg-surface-alt/50 transition-colors",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] shrink-0 text-green-500",children:"check_circle"}),(0,c.jsx)("span",{className:"flex-1 text-xs text-text-main truncate min-w-0",children:a.email||a.name||a.id.slice(0,16)}),(a=>{let b=t[a];if(!b)return null;if(b.loading)return(0,c.jsx)("span",{className:"text-[10px] text-text-muted animate-pulse shrink-0",children:"loading…"});if(b.error)return(0,c.jsx)("span",{className:"text-[10px] text-red-400 shrink-0",title:b.error,children:"⛔ bad account"});if(!b.quotas||0===b.quotas.length)return(0,c.jsx)("span",{className:"text-[10px] text-text-muted shrink-0",children:"no quota data"});let d=b.quotas.find(a=>a.modelKey?.includes("claude-sonnet-4-6")||a.name?.toLowerCase().includes("opus"))||b.quotas[0];if(!d)return null;let e=void 0!==d.remainingPercentage?Math.round(d.remainingPercentage):d.total>0?Math.round((d.total-d.used)/d.total*100):null;return null===e?null:(0,c.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,c.jsx)("span",{className:"text-[10px] text-text-muted truncate max-w-[80px]",children:d.name}),(0,c.jsx)("div",{className:"w-12 h-1.5 rounded-full bg-surface-alt overflow-hidden shrink-0",children:(0,c.jsx)("div",{className:`h-full rounded-full ${e>70?"bg-green-500":e>=30?"bg-yellow-500":"bg-red-500"}`,style:{width:`${Math.min(e,100)}%`}})}),(0,c.jsxs)("span",{className:`text-[10px] font-medium shrink-0 ${e>70?"text-green-500":e>=30?"text-yellow-500":"text-red-500"}`,children:[e,"%"]})]})})(a.id)]},a.id)),(0,c.jsxs)(p.default,{href:"/dashboard/providers",className:"text-[11px] text-primary hover:underline flex items-center gap-1 px-1 mt-1",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"open_in_new"}),"Manage accounts"]})]}):(0,c.jsx)("div",{className:"px-1",children:(0,c.jsxs)("p",{className:"text-xs text-text-muted",children:["No active ",a.name," accounts in pool."," ",(0,c.jsx)(p.default,{href:"/dashboard/providers",className:"text-primary hover:underline",children:"Add account →"})]})})]}),!C&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-amber-500/10 text-amber-600 border border-amber-500/20",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,c.jsx)("span",{children:"Start MITM server and enable DNS to activate token rotation"})]})]})]})}],93831),a.s([],36513)}];
|
|
15
|
+
`},{filename:"~/.codex/auth.json",content:JSON.stringify({OPENAI_API_KEY:r},null,2)}])})]})}],22321);var h=h;let l="https://9router.com";a.s(["default",0,function({tool:a,isExpanded:b,onToggle:i,baseUrl:k,hasActiveProviders:m,apiKeys:n,activeProviders:o,cloudEnabled:p,initialStatus:q}){let r,s,t,u,[v,w]=(0,d.useState)(q||null),[x,y]=(0,d.useState)(!1),[z,A]=(0,d.useState)(!1),[B,C]=(0,d.useState)(!1),[D,E]=(0,d.useState)(null),[F,G]=(0,d.useState)(""),[H,I]=(0,d.useState)(""),[J,K]=(0,d.useState)(!1),[L,M]=(0,d.useState)({}),[N,O]=(0,d.useState)(!1),[P,Q]=(0,d.useState)(""),R=(0,d.useRef)(!1),S=(()=>{if(!v?.installed)return null;let a=v.settings?.customModels?.find(a=>"custom:9Router-0"===a.id);if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1"),c=p&&l&&a.baseUrl?.startsWith(l),d=k&&a.baseUrl?.startsWith(k);return b||c||d?"configured":"other"})();(0,d.useEffect)(()=>{n?.length>0&&!F&&G(n[0].key)},[n,F]),(0,d.useEffect)(()=>{q&&w(q)},[q]),(0,d.useEffect)(()=>{b&&!v&&(U(),T()),b&&T()},[b]);let T=async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&M(b.aliases||{})}catch(a){console.log("Error fetching model aliases:",a)}};(0,d.useEffect)(()=>{if(v?.installed&&!R.current){R.current=!0;let a=v.settings?.customModels?.find(a=>"custom:9Router-0"===a.id);a&&(a.model&&I(a.model),a.apiKey&&n?.some(b=>b.key===a.apiKey)&&G(a.apiKey))}},[v,n]);let U=async()=>{y(!0);try{let a=await fetch("/api/cli-tools/droid-settings"),b=await a.json();w(b)}catch(a){w({installed:!1,error:a.message})}finally{y(!1)}},V=()=>{let a=P||k;return a.endsWith("/v1")?a:`${a}/v1`},W=async()=>{A(!0),E(null);try{let a=F?.trim()||(n?.length>0?n[0].key:null)||(p?null:"sk_9router"),b=await fetch("/api/cli-tools/droid-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:V(),apiKey:a,model:H})}),c=await b.json();b.ok?(E({type:"success",text:"Settings applied successfully!"}),U()):E({type:"error",text:c.error||"Failed to apply settings"})}catch(a){E({type:"error",text:a.message})}finally{A(!1)}},X=async()=>{C(!0),E(null);try{let a=await fetch("/api/cli-tools/droid-settings",{method:"DELETE"}),b=await a.json();a.ok?(E({type:"success",text:"Settings reset successfully!"}),I(""),G(""),U()):E({type:"error",text:b.error||"Failed to reset settings"})}catch(a){E({type:"error",text:a.message})}finally{C(!1)}};return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:i,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,c.jsx)(j.default,{src:"/providers/droid.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===S&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===S&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===S&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,c.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[x&&(0,c.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,c.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,c.jsx)("span",{children:"Checking Factory Droid CLI..."})]}),!x&&v&&!v.installed&&(0,c.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,c.jsxs)("div",{className:"flex-1",children:[(0,c.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"Factory Droid CLI not installed"}),(0,c.jsx)("p",{className:"text-sm text-text-muted",children:"Please install Factory Droid CLI to use this feature."})]})]}),!x&&v?.installed&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex flex-col gap-2",children:[v?.settings?.customModels?.find(a=>"custom:9Router-0"===a.id)?.baseUrl&&(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:v.settings.customModels.find(a=>"custom:9Router-0"===a.id).baseUrl})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:(r=P||k).endsWith("/v1")?r:`${r}/v1`,onChange:a=>Q(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),P&&P!==k&&(0,c.jsx)("button",{onClick:()=>Q(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),n.length>0?(0,c.jsx)("select",{value:F,onChange:a=>G(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:n.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,c.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:p?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:H,onChange:a=>I(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,c.jsx)("button",{onClick:()=>K(!0),disabled:!m,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${m?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),H&&(0,c.jsx)("button",{onClick:()=>I(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),D&&(0,c.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===D.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===D.type?"check_circle":"error"}),(0,c.jsx)("span",{children:D.text})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsxs)(f.Button,{variant:"primary",size:"sm",onClick:W,disabled:!H,loading:z,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,c.jsxs)(f.Button,{variant:"outline",size:"sm",onClick:X,disabled:!v?.has9Router,loading:B,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,c.jsxs)(f.Button,{variant:"ghost",size:"sm",onClick:()=>O(!0),children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,c.jsx)(g.ModelSelectModal,{isOpen:J,onClose:()=>K(!1),onSelect:a=>{I(a.value),K(!1)},selectedModel:H,activeProviders:o,modelAliases:L,title:"Select Model for Factory Droid"}),(0,c.jsx)(h.default,{isOpen:N,onClose:()=>O(!1),title:"Factory Droid - Manual Configuration",configs:(s=F&&F.trim()?F:p?"<API_KEY_FROM_DASHBOARD>":"sk_9router",t={customModels:[{model:H||"provider/model-id",id:"custom:9Router-0",index:0,baseUrl:V(),apiKey:s,displayName:H||"provider/model-id",maxOutputTokens:131072,noImageSupport:!1,provider:"openai"}]},u="u">typeof navigator&&navigator.platform,[{filename:u?.toLowerCase().includes("win")?"%USERPROFILE%\\.factory\\settings.json":"~/.factory/settings.json",content:JSON.stringify(t,null,2)}])})]})}],75806);var h=h;a.s(["default",0,function({tool:a,isExpanded:b,onToggle:i,baseUrl:k,hasActiveProviders:l,apiKeys:m,activeProviders:n,cloudEnabled:o,initialStatus:p}){let q,r,[s,t]=(0,d.useState)(p||null),[u,v]=(0,d.useState)(!1),[w,x]=(0,d.useState)(!1),[y,z]=(0,d.useState)(!1),[A,B]=(0,d.useState)(null),[C,D]=(0,d.useState)(""),[E,F]=(0,d.useState)(""),[G,H]=(0,d.useState)(!1),[I,J]=(0,d.useState)({}),[K,L]=(0,d.useState)(!1),[M,N]=(0,d.useState)(""),O=(0,d.useRef)(!1),P=(()=>{if(!s?.installed)return null;let a=s.settings?.models?.providers?.["9router"];if(!a)return"not_configured";let b=a.baseUrl?.includes("localhost")||a.baseUrl?.includes("127.0.0.1")||a.baseUrl?.includes("0.0.0.0"),c=k&&a.baseUrl?.startsWith(k);return b||c?"configured":"other"})();(0,d.useEffect)(()=>{m?.length>0&&!C&&D(m[0].key)},[m,C]),(0,d.useEffect)(()=>{p&&t(p)},[p]),(0,d.useEffect)(()=>{b&&!s&&(R(),Q()),b&&Q()},[b]);let Q=async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&J(b.aliases||{})}catch(a){console.log("Error fetching model aliases:",a)}};(0,d.useEffect)(()=>{if(s?.installed&&!O.current){O.current=!0;let a=s.settings?.models?.providers?.["9router"];if(a){let b=s.settings?.agents?.defaults?.model?.primary;b&&F(b.replace("9router/","")),a.apiKey&&m?.some(b=>b.key===a.apiKey)&&D(a.apiKey)}}},[s,m]);let R=async()=>{v(!0);try{let a=await fetch("/api/cli-tools/openclaw-settings"),b=await a.json();t(b)}catch(a){t({installed:!1,error:a.message})}finally{v(!1)}},S=()=>{let a=M||"http://127.0.0.1:20128";return a.endsWith("/v1")?a:`${a}/v1`},T=async()=>{x(!0),B(null);try{let a=C?.trim()||(m?.length>0?m[0].key:null)||(o?null:"sk_9router"),b=await fetch("/api/cli-tools/openclaw-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:S(),apiKey:a,model:E})}),c=await b.json();b.ok?(B({type:"success",text:"Settings applied successfully!"}),R()):B({type:"error",text:c.error||"Failed to apply settings"})}catch(a){B({type:"error",text:a.message})}finally{x(!1)}},U=async()=>{z(!0),B(null);try{let a=await fetch("/api/cli-tools/openclaw-settings",{method:"DELETE"}),b=await a.json();a.ok?(B({type:"success",text:"Settings reset successfully!"}),F(""),D(""),R()):B({type:"error",text:b.error||"Failed to reset settings"})}catch(a){B({type:"error",text:a.message})}finally{z(!1)}};return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:i,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,c.jsx)(j.default,{src:"/providers/openclaw.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,c.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[u&&(0,c.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,c.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,c.jsx)("span",{children:"Checking Open Claw CLI..."})]}),!u&&s&&!s.installed&&(0,c.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,c.jsxs)("div",{className:"flex-1",children:[(0,c.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"Open Claw CLI not installed"}),(0,c.jsx)("p",{className:"text-sm text-text-muted",children:"Please install Open Claw CLI to use this feature."})]})]}),!u&&s?.installed&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex flex-col gap-2",children:[s?.settings?.models?.providers?.["9router"]?.baseUrl&&(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:s.settings.models.providers["9router"].baseUrl})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:(q=M||"http://127.0.0.1:20128").endsWith("/v1")?q:`${q}/v1`,onChange:a=>N(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),M&&M!==k&&(0,c.jsx)("button",{onClick:()=>N(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),m.length>0?(0,c.jsx)("select",{value:C,onChange:a=>D(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:m.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,c.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:o?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:E,onChange:a=>F(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,c.jsx)("button",{onClick:()=>H(!0),disabled:!l,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${l?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),E&&(0,c.jsx)("button",{onClick:()=>F(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),A&&(0,c.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===A.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===A.type?"check_circle":"error"}),(0,c.jsx)("span",{children:A.text})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsxs)(f.Button,{variant:"primary",size:"sm",onClick:T,disabled:!E,loading:w,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,c.jsxs)(f.Button,{variant:"outline",size:"sm",onClick:U,disabled:!s?.has9Router,loading:y,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,c.jsxs)(f.Button,{variant:"ghost",size:"sm",onClick:()=>L(!0),children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,c.jsx)(g.ModelSelectModal,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{F(a.value),H(!1)},selectedModel:E,activeProviders:n,modelAliases:I,title:"Select Model for Open Claw"}),(0,c.jsx)(h.default,{isOpen:K,onClose:()=>L(!1),title:"Open Claw - Manual Configuration",configs:(r=C&&C.trim()?C:o?"<API_KEY_FROM_DASHBOARD>":"sk_9router",[{filename:"~/.openclaw/openclaw.json",content:JSON.stringify({agents:{defaults:{model:{primary:`9router/${E||"provider/model-id"}`}}},models:{providers:{"9router":{baseUrl:S(),apiKey:r,api:"openai-completions",models:[{id:E||"provider/model-id",name:(E||"provider/model-id").split("/").pop()}]}}}},null,2)}])})]})}],36416),a.s(["default",0,function({toolId:a,tool:b,isExpanded:f,onToggle:h,baseUrl:i,apiKeys:k,activeProviders:l=[],cloudEnabled:m=!1,tunnelEnabled:n=!1}){let[o,p]=(0,d.useState)(null),[q,r]=(0,d.useState)(!1),[s,t]=(0,d.useState)(""),[u,v]=(0,d.useState)(()=>k?.length>0?k[0].key:""),w=a=>{let b=u&&u.trim()?u:m?"your-api-key":"sk_9router",c=i||"http://localhost:20128",d=c.endsWith("/v1")?c:`${c}/v1`;return a.replace(/\{\{baseUrl\}\}/g,d).replace(/\{\{apiKey\}\}/g,b).replace(/\{\{model\}\}/g,s||"provider/model-id")},x=async(a,b)=>{await navigator.clipboard.writeText(w(a)),p(b),setTimeout(()=>p(null),2e3)},y=l.length>0,z=()=>(!b.requiresExternalUrl||!!m||!!n)&&(!b.requiresCloud||!!m);return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:h,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",children:b.image?(0,c.jsx)(j.default,{src:b.image,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}}):b.icon?(0,c.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:b.color},children:b.icon}):(0,c.jsx)(j.default,{src:`/providers/${a}.png`,alt:b.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:b.name}),(0,c.jsx)("p",{className:"text-xs text-text-muted truncate",children:b.description})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${f?"rotate-180":""}`,children:"expand_more"})]}),f&&(0,c.jsx)("div",{className:"mt-6 pt-6 border-t border-border",children:b.guideSteps?(0,c.jsxs)("div",{className:"flex flex-col gap-4",children:[b.notes&&0!==b.notes.length?(0,c.jsx)("div",{className:"flex flex-col gap-2 mb-4",children:b.notes.map((a,b)=>{if("cloudCheck"===a.type&&(m||n))return null;let d="warning"===a.type,e="cloudCheck"===a.type&&!m&&!n,f="bg-blue-500/10 border-blue-500/30",g="text-blue-600 dark:text-blue-400",h="text-blue-500",i="info";return d?(f="bg-yellow-500/10 border-yellow-500/30",g="text-yellow-600 dark:text-yellow-400",h="text-yellow-500",i="warning"):e&&(f="bg-red-500/10 border-red-500/30",g="text-red-600 dark:text-red-400",h="text-red-500",i="error"),(0,c.jsxs)("div",{className:`flex items-start gap-3 p-3 rounded-lg border ${f}`,children:[(0,c.jsx)("span",{className:`material-symbols-outlined text-lg ${h}`,children:i}),(0,c.jsx)("p",{className:`text-sm ${g}`,children:a.text})]},b)})}):null,z()&&b.guideSteps.map(a=>(0,c.jsxs)("div",{className:"flex items-start gap-4",children:[(0,c.jsx)("div",{className:"size-8 rounded-full flex items-center justify-center shrink-0 text-sm font-semibold text-white",style:{backgroundColor:b.color},children:a.step}),(0,c.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,c.jsx)("p",{className:"font-medium text-text",children:a.title}),a.desc&&(0,c.jsx)("p",{className:"text-sm text-text-muted mt-0.5",children:a.desc}),"apiKeySelector"===a.type&&(0,c.jsx)("div",{className:"mt-2 flex items-center gap-2",children:k&&k.length>0?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("select",{value:u,onChange:a=>v(a.target.value),className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:k.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}),(0,c.jsx)("button",{onClick:()=>x(u,"apiKey"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-lg",children:"apiKey"===o?"check":"content_copy"})})]}):(0,c.jsx)("span",{className:"text-sm text-text-muted",children:m?"No API keys - Create one in Keys page":"sk_9router"})}),"modelSelector"===a.type&&(0,c.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,c.jsx)("input",{type:"text",value:s,onChange:a=>t(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,c.jsx)("button",{onClick:()=>r(!0),disabled:!y,className:`shrink-0 px-3 py-2 rounded-lg border text-sm transition-colors ${y?"bg-bg-secondary border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),s&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("button",{onClick:()=>x(s,"model"),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-lg",children:"model"===o?"check":"content_copy"})}),(0,c.jsx)("button",{onClick:()=>t(""),className:"p-2 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]})]}),a.value&&(0,c.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,c.jsx)("code",{className:"flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm font-mono border border-border truncate",children:w(a.value)}),a.copyable&&(0,c.jsx)("button",{onClick:()=>x(a.value,`${a.step}-${a.title}`),className:"shrink-0 px-3 py-2 bg-bg-secondary hover:bg-bg-tertiary rounded-lg border border-border transition-colors",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-lg",children:o===`${a.step}-${a.title}`?"check":"content_copy"})})]})]})]},a.step)),z()&&b.codeBlock&&(0,c.jsxs)("div",{className:"mt-2",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,c.jsx)("span",{className:"text-xs text-text-muted uppercase tracking-wide",children:b.codeBlock.language}),(0,c.jsxs)("button",{onClick:()=>x(b.codeBlock.code,"codeblock"),className:"flex items-center gap-1 px-2 py-1 text-xs bg-bg-secondary hover:bg-bg-tertiary rounded border border-border transition-colors",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-sm",children:"codeblock"===o?"check":"content_copy"}),"codeblock"===o?"Copied!":"Copy"]})]}),(0,c.jsx)("pre",{className:"p-4 bg-bg-secondary rounded-lg border border-border overflow-x-auto",children:(0,c.jsx)("code",{className:"text-sm font-mono whitespace-pre",children:w(b.codeBlock.code)})})]})]}):(0,c.jsx)("p",{className:"text-text-muted text-sm",children:"Coming soon..."})}),(0,c.jsx)(g.ModelSelectModal,{isOpen:q,onClose:()=>r(!1),onSelect:a=>{t(a.value)},selectedModel:s,activeProviders:l,title:"Select Model"})]})}],12407);var m=a.i(56882);a.i(78236);var n=a.i(40695),h=h;a.s(["default",0,function({tool:a,isExpanded:b,onToggle:i,baseUrl:k,apiKeys:l,activeProviders:m,cloudEnabled:n,initialStatus:o}){let p,[q,r]=(0,d.useState)(o||null),[s,t]=(0,d.useState)(!1),[u,v]=(0,d.useState)(!1),[w,x]=(0,d.useState)(!1),[y,z]=(0,d.useState)(null),[A,B]=(0,d.useState)(!1),[C,D]=(0,d.useState)(""),[E,F]=(0,d.useState)(""),[G,H]=(0,d.useState)(!1),[I,J]=(0,d.useState)({}),[K,L]=(0,d.useState)(!1),[M,N]=(0,d.useState)("");(0,d.useEffect)(()=>{l?.length>0&&!C&&D(l[0].key)},[l,C]),(0,d.useEffect)(()=>{o&&r(o)},[o]),(0,d.useEffect)(()=>{b&&!q&&(R(),O()),b&&O()},[b]),(0,d.useEffect)(()=>{q?.config?.model?.startsWith("9router/")&&F(q.config.model.replace("9router/",""))},[q]);let O=async()=>{try{let a=await fetch("/api/models/alias"),b=await a.json();a.ok&&J(b.aliases||{})}catch(a){console.log("Error fetching model aliases:",a)}},P=(()=>{if(!q?.installed)return null;if(!q.config)return"not_configured";let a=q.config?.provider?.["9router"]?.options?.baseURL||"",b=a.includes("localhost")||a.includes("127.0.0.1");return q.has9Router&&(b||a.includes(k))?"configured":q.has9Router?"other":"not_configured"})(),Q=()=>{let a=M||k;return a.endsWith("/v1")?a:`${a}/v1`},R=async()=>{t(!0);try{let a=await fetch("/api/cli-tools/opencode-settings"),b=await a.json();r(b)}catch(a){r({installed:!1,error:a.message})}finally{t(!1)}},S=async()=>{v(!0),z(null);try{let a=C&&C.trim()||n?C:"sk_9router",b=await fetch("/api/cli-tools/opencode-settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:Q(),apiKey:a,model:E})}),c=await b.json();b.ok?(z({type:"success",text:"Settings applied successfully!"}),R()):z({type:"error",text:c.error||"Failed to apply settings"})}catch(a){z({type:"error",text:a.message})}finally{v(!1)}},T=async()=>{x(!0),z(null);try{let a=await fetch("/api/cli-tools/opencode-settings",{method:"DELETE"}),b=await a.json();a.ok?(z({type:"success",text:"Settings reset successfully!"}),F(""),R()):z({type:"error",text:b.error||"Failed to reset settings"})}catch(a){z({type:"error",text:a.message})}finally{x(!1)}};return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:i,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,c.jsx)(j.default,{src:"/providers/opencode.png",alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:a.name}),"configured"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-green-500/10 text-green-600 dark:text-green-400 rounded-full",children:"Connected"}),"not_configured"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-yellow-500/10 text-yellow-600 dark:text-yellow-400 rounded-full",children:"Not configured"}),"other"===P&&(0,c.jsx)("span",{className:"px-1.5 py-0.5 text-[10px] font-medium bg-blue-500/10 text-blue-600 dark:text-blue-400 rounded-full",children:"Other"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted truncate",children:a.description})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,c.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[s&&(0,c.jsxs)("div",{className:"flex items-center gap-2 text-text-muted",children:[(0,c.jsx)("span",{className:"material-symbols-outlined animate-spin",children:"progress_activity"}),(0,c.jsx)("span",{children:"Checking OpenCode CLI..."})]}),!s&&q&&!q.installed&&(0,c.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,c.jsxs)("div",{className:"flex items-center gap-3 p-4 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500",children:"warning"}),(0,c.jsxs)("div",{className:"flex-1",children:[(0,c.jsx)("p",{className:"font-medium text-yellow-600 dark:text-yellow-400",children:"OpenCode CLI not installed"}),(0,c.jsx)("p",{className:"text-sm text-text-muted",children:"Please install OpenCode CLI to use auto-apply feature."})]}),(0,c.jsxs)(f.Button,{variant:"outline",size:"sm",onClick:()=>B(!A),children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[18px] mr-1",children:A?"expand_less":"help"}),A?"Hide":"How to Install"]})]}),A&&(0,c.jsxs)("div",{className:"p-4 bg-surface border border-border rounded-lg",children:[(0,c.jsx)("h4",{className:"font-medium mb-3",children:"Installation Guide"}),(0,c.jsxs)("div",{className:"space-y-3 text-sm",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{className:"text-text-muted mb-1",children:"macOS / Linux:"}),(0,c.jsx)("code",{className:"block px-3 py-2 bg-black/5 dark:bg-white/5 rounded font-mono text-xs",children:"npm install -g opencode-ai"})]}),(0,c.jsxs)("p",{className:"text-text-muted",children:["After installation, run ",(0,c.jsx)("code",{className:"px-1 bg-black/5 dark:bg-white/5 rounded",children:"opencode"})," to verify."]})]})]})]}),!s&&q?.installed&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex flex-col gap-2",children:[q?.config?.provider?.["9router"]?.options?.baseURL&&(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Current"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("span",{className:"flex-1 px-2 py-1.5 text-xs text-text-muted truncate",children:q.config.provider["9router"].options.baseURL})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Base URL"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:M||`${k}/v1`,onChange:a=>N(a.target.value),placeholder:"https://.../v1",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),M&&M!==`${k}/v1`&&(0,c.jsx)("button",{onClick:()=>N(""),className:"p-1 text-text-muted hover:text-primary rounded transition-colors",title:"Reset to default",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"restart_alt"})})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"API Key"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),l.length>0?(0,c.jsx)("select",{value:C,onChange:a=>D(a.target.value),className:"flex-1 px-2 py-1.5 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:l.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,c.jsx)("span",{className:"flex-1 text-xs text-text-muted px-2 py-1.5",children:n?"No API keys - Create one in Keys page":"sk_9router (default)"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-32 shrink-0 text-sm font-semibold text-text-main text-right",children:"Model"}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:E,onChange:a=>F(a.target.value),placeholder:"provider/model-id",className:"flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,c.jsx)("button",{onClick:()=>H(!0),disabled:!m?.length,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 whitespace-nowrap ${m?.length?"bg-surface border-border text-text-main hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select Model"}),E&&(0,c.jsx)("button",{onClick:()=>F(""),className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})]}),y&&(0,c.jsxs)("div",{className:`flex items-center gap-2 px-2 py-1.5 rounded text-xs ${"success"===y.type?"bg-green-500/10 text-green-600":"bg-red-500/10 text-red-600"}`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"success"===y.type?"check_circle":"error"}),(0,c.jsx)("span",{children:y.text})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsxs)(f.Button,{variant:"primary",size:"sm",onClick:S,disabled:!E,loading:u,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"save"}),"Apply"]}),(0,c.jsxs)(f.Button,{variant:"outline",size:"sm",onClick:T,disabled:!q.has9Router,loading:w,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"restore"}),"Reset"]}),(0,c.jsxs)(f.Button,{variant:"ghost",size:"sm",onClick:()=>L(!0),children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] mr-1",children:"content_copy"}),"Manual Config"]})]})]})]}),(0,c.jsx)(g.ModelSelectModal,{isOpen:G,onClose:()=>H(!1),onSelect:a=>{F(a.value),H(!1)},selectedModel:E,activeProviders:m,modelAliases:I,title:"Select Model for OpenCode"}),(0,c.jsx)(h.default,{isOpen:K,onClose:()=>L(!1),title:"OpenCode - Manual Configuration",configs:(p=C&&C.trim()?C:n?"<API_KEY_FROM_DASHBOARD>":"sk_9router",[{filename:"~/.config/opencode/opencode.json",content:JSON.stringify({provider:{"9router":{npm:"@ai-sdk/openai-compatible",options:{baseURL:Q(),apiKey:p},models:{[E||"provider/model-id"]:{name:E||"provider/model-id"}}}},model:`9router/${E||"provider/model-id"}`},null,2)}])})]})}],16596);var h=h;function o(){let[a,b]=(0,d.useState)(null),[e,f]=(0,d.useState)(!1),[g,h]=(0,d.useState)(null),i=(0,d.useCallback)(async()=>{try{let a=await fetch("/api/antigravity-ide");a.ok&&b(await a.json())}catch{}},[]);(0,d.useEffect)(()=>{let a=!0;return(async()=>{try{let c=await fetch("/api/antigravity-ide");c.ok&&a&&b(await c.json())}catch{}})(),()=>{a=!1}},[]);let j=async()=>{f(!0),h(null);try{let a=await fetch("/api/antigravity-ide",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"close"})}),b=await a.json();h(b),setTimeout(i,1e3)}catch(a){h({success:!1,error:a.message})}f(!1)};return(0,c.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,c.jsxs)("button",{onClick:j,disabled:e||!a?.running,className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg text-xs font-medium border border-red-500/30 text-red-500 bg-red-500/5 hover:bg-red-500/15 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:a?.running?"Close all Antigravity IDE processes":"Antigravity IDE is not running",children:[(0,c.jsx)("span",{className:`material-symbols-outlined text-[14px] ${e?"animate-spin":""}`,children:e?"progress_activity":"close"}),e?"Closing…":"Close IDE"]}),a&&(0,c.jsxs)("span",{className:"flex items-center gap-1 text-[10px] text-text-muted",children:[(0,c.jsx)("span",{className:`inline-block w-1.5 h-1.5 rounded-full ${!a.installed?"bg-gray-400":a.running?"bg-green-500":"bg-red-400"}`}),a.installed?a.running?"Running":"Stopped":"Not installed"]}),g&&!e&&(0,c.jsxs)("span",{className:`text-[10px] ${g.success?"text-green-500":"text-red-400"}`,children:[g.success?"✓":"✗"," ",g.message||g.error]})]})}a.s(["default",0,function({apiKeys:a,cloudEnabled:b,onStatusChange:g}){let[h,i]=(0,d.useState)(null),[j,k]=(0,d.useState)(!1),[l,o]=(0,d.useState)(!1),[p,q]=(0,d.useState)(""),[r,s]=(0,d.useState)(""),[t,u]=(0,d.useState)(null),[v,w]=(0,d.useState)(null),[x,y]=(0,d.useState)(null),z="u">typeof navigator&&navigator.userAgent?.includes("Windows"),A=h?.isAdmin!==!1;(0,d.useEffect)(()=>{a?.length>0&&!r&&s(a[0].key)},[a,r]),(0,d.useEffect)(()=>{B()},[]);let B=async()=>{try{let a=await fetch("/api/cli-tools/antigravity-mitm");if(a.ok){let b=await a.json();i(b),g?.(b)}}catch{i({running:!1,certExists:!1,dnsStatus:{}})}},C=a=>{z||h?.hasCachedPassword?D(a,""):(u(a),o(!0),w(null))},D=async(c,d)=>{k(!0),y(null);try{let e;if("trust-cert"===c)e=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"trust-cert",sudoPassword:d})});else if("start"===c){let c=r?.trim()||(a?.length>0?a[0].key:null)||(b?null:"sk_9router");e=await fetch("/api/cli-tools/antigravity-mitm",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:c,sudoPassword:d})})}else e=await fetch("/api/cli-tools/antigravity-mitm",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({sudoPassword:d})});let f=await e.json().catch(()=>({}));if(!e.ok)throw Error(f.error||"MITM action failed");o(!1),q(""),w(null),await B()}catch(b){let a=b?.message||"MITM action failed";y(a),l&&w(a)}finally{k(!1),u(null)}},E=()=>{p?D(t,p):w("Sudo password is required")},F=h?.running;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(e.Card,{padding:"sm",className:"border-primary/20 bg-primary/5",children:(0,c.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-primary text-[20px]",children:"security"}),(0,c.jsx)("span",{className:"font-semibold text-sm text-text-main",children:"MITM Server"}),F?(0,c.jsx)(m.Badge,{variant:"success",size:"sm",children:"Running"}):(0,c.jsx)(m.Badge,{variant:"default",size:"sm",children:"Stopped"})]}),(0,c.jsx)("div",{className:"flex items-center gap-1 text-xs text-text-muted","data-i18n-skip":"true",children:[{label:"Cert",ok:h?.certExists},{label:"Trusted",ok:h?.certTrusted},{label:"Server",ok:F}].map(({label:a,ok:b})=>(0,c.jsxs)("span",{className:`flex items-center gap-0.5 px-1.5 py-0.5 rounded ${b?"text-green-600":"text-text-muted"}`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:b?"check_circle":"cancel"}),a]},a))})]}),(0,c.jsxs)("div",{className:"px-2 py-2 rounded-lg bg-surface/50 border border-border/50 flex flex-col gap-2",children:[(0,c.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,c.jsx)("span",{className:"font-medium text-text-main",children:"Purpose:"})," Use Antigravity IDE & GitHub Copilot → with ANY provider/model from 9Router"]}),(0,c.jsxs)("p",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,c.jsx)("span",{className:"font-medium text-text-main",children:"How it works:"})," Antigravity/Copilot IDE request → DNS redirect to localhost:443 → MITM proxy intercepts → 9Router → response to Antigravity/Copilot"]})]}),!F&&(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"text-xs text-text-muted shrink-0",children:"API Key"}),a?.length>0?(0,c.jsx)("select",{value:r,onChange:a=>s(a.target.value),className:"flex-1 px-2 py-1 bg-surface rounded text-xs border border-border focus:outline-none focus:ring-1 focus:ring-primary/50",children:a.map(a=>(0,c.jsx)("option",{value:a.key,children:a.key},a.id))}):(0,c.jsx)("span",{className:"text-xs text-text-muted",children:b?"No API keys — create one in Keys page":"sk_9router (default)"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2 flex-wrap","data-i18n-skip":"true",children:[h?.certExists&&!h?.certTrusted&&(0,c.jsxs)("button",{onClick:()=>C("trust-cert"),disabled:j,className:"px-4 py-1.5 rounded-lg bg-yellow-500/10 border border-yellow-500/30 text-yellow-600 font-medium text-xs flex items-center gap-1.5 hover:bg-yellow-500/20 transition-colors disabled:opacity-50",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"verified_user"}),"Trust Cert"]}),F?(0,c.jsxs)("button",{onClick:()=>C("stop"),disabled:j,className:"px-4 py-1.5 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-xs flex items-center gap-1.5 hover:bg-red-500/20 transition-colors disabled:opacity-50",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop Server"]}):(0,c.jsxs)("button",{onClick:()=>C("start"),disabled:j||z&&!A,className:"px-4 py-1.5 rounded-lg bg-primary/10 border border-primary/30 text-primary font-medium text-xs flex items-center gap-1.5 hover:bg-primary/20 transition-colors disabled:opacity-50",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start Server"]}),F&&(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Enable DNS per tool below to activate interception"})]}),x&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,c.jsx)("span",{children:x})]}),z&&!A&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600 border border-red-500/20",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"shield_lock"}),(0,c.jsx)("span",{children:"Administrator required — restart 9Router as Administrator to use MITM"})]})]})}),l&&(0,c.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,c.jsxs)("div",{className:"bg-surface border border-border rounded-xl p-6 w-full max-w-sm flex flex-col gap-4 shadow-xl",children:[(0,c.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,c.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Required for SSL certificate and server startup"})]}),(0,c.jsx)(n.Input,{type:"password",placeholder:"Enter sudo password",value:p,onChange:a=>q(a.target.value),onKeyDown:a=>{"Enter"!==a.key||j||E()}}),v&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,c.jsx)("span",{children:v})]}),(0,c.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,c.jsx)(f.Button,{variant:"ghost",size:"sm",onClick:()=>{o(!1),q(""),w(null)},disabled:j,children:"Cancel"}),(0,c.jsx)(f.Button,{variant:"primary",size:"sm",onClick:E,loading:j,children:"Confirm"})]})]})})]})}],80550),a.s(["default",0,function({tool:a,isExpanded:b,onToggle:h,serverRunning:i,dnsActive:k,hasCachedPassword:l,apiKeys:p,activeProviders:q,hasActiveProviders:r,modelAliases:s={},cloudEnabled:t,onDnsChange:u,tokenSwapActive:v=!1}){let[w,x]=(0,d.useState)(!1),[y,z]=(0,d.useState)(null),[A,B]=(0,d.useState)(!1),[C,D]=(0,d.useState)(""),[E,F]=(0,d.useState)(null),[G,H]=(0,d.useState)(null),[I,J]=(0,d.useState)({}),[K,L]=(0,d.useState)(!1),[M,N]=(0,d.useState)(null),O="u">typeof navigator&&navigator.userAgent?.includes("Windows");(0,d.useEffect)(()=>{b&&P()},[b]);let P=async()=>{try{let b=await fetch(`/api/cli-tools/antigravity-mitm/alias?tool=${a.id}`);if(b.ok){let a=await b.json();Object.keys(a.aliases||{}).length>0&&J(a.aliases)}}catch{}},Q=(0,d.useCallback)(async b=>{try{await fetch("/api/cli-tools/antigravity-mitm/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,mappings:b})})}catch{}},[a.id]),R=(a,b)=>{J(c=>({...c,[a]:b}))},S=()=>{if(!i)return;let a=k?"disable":"enable";O||l?T(a,""):(F(a),B(!0),H(null))},T=async(b,c)=>{x(!0),z(null);try{let d=await fetch("/api/cli-tools/antigravity-mitm",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tool:a.id,action:b,sudoPassword:c})}),e=await d.json();if(!d.ok)throw Error(e.error||"Failed to toggle DNS");"enable"===b&&z(`Restart ${a.name} to apply changes`),B(!1),D(""),u?.(e)}catch{}finally{x(!1),F(null)}},U=()=>{C?T(E,C):H("Sudo password is required")};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between hover:cursor-pointer",onClick:h,children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:(0,c.jsx)(j.default,{src:a.image,alt:a.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:a=>{a.target.style.display="none"}})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:a.name}),a.supportsTokenSwap&&(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wider text-text-muted bg-surface border border-border px-1.5 py-0.5 rounded font-semibold",children:"Mode A"}),i?v?(0,c.jsx)(m.Badge,{variant:"default",size:"sm",children:"Bypassed"}):k?(0,c.jsx)(m.Badge,{variant:"success",size:"sm",children:"Active"}):(0,c.jsx)(m.Badge,{variant:"warning",size:"sm",children:"DNS off"}):(0,c.jsx)(m.Badge,{variant:"default",size:"sm",children:"Server off"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Model routing — remap model IDs in intercepted requests"})]})]}),(0,c.jsx)("span",{className:`material-symbols-outlined text-text-muted text-[20px] transition-transform ${b?"rotate-180":""}`,children:"expand_more"})]}),b&&(0,c.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex flex-col gap-4",children:[v&&(0,c.jsxs)("div",{className:"flex items-start gap-2 px-2 py-2 rounded-lg bg-violet-500/5 border border-violet-500/15",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] text-violet-400 mt-0.5 shrink-0",children:"info"}),(0,c.jsx)("p",{className:"text-[11px] text-violet-400",children:"Token Rotation (Mode B) is active — model routing is currently bypassed. Disable Token Rotation to use model routing."})]}),"antigravity"===a.id&&(0,c.jsx)(o,{}),(0,c.jsxs)("div",{className:"flex flex-col gap-0.5 text-[11px] text-text-muted px-1",children:[(0,c.jsxs)("p",{children:["Toggle DNS to redirect ",a.name," traffic through 9Router via MITM."]}),!k&&(0,c.jsx)("p",{className:"text-amber-600 text-[10px] mt-1",children:"⚠️ Enable DNS to edit model mappings"})]}),a.defaultModels?.length>0&&(0,c.jsx)("div",{className:"flex flex-col gap-2",children:a.defaultModels.map(a=>(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("span",{className:"w-36 shrink-0 text-xs font-semibold text-text-main text-right",children:a.name}),(0,c.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,c.jsx)("input",{type:"text",value:I[a.alias]||"",onChange:b=>R(a.alias,b.target.value),onBlur:b=>{var c,d;return c=a.alias,d=b.target.value,void Q({...I,[c]:d})},placeholder:"provider/model-id",disabled:!k,className:`flex-1 px-2 py-1.5 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50 ${!k?"opacity-50 cursor-not-allowed":""}`}),(0,c.jsx)("button",{onClick:()=>{N(a.alias),L(!0)},disabled:!r||!k,className:`px-2 py-1.5 rounded border text-xs transition-colors shrink-0 ${r&&k?"bg-surface border-border hover:border-primary cursor-pointer":"opacity-50 cursor-not-allowed border-border"}`,children:"Select"}),I[a.alias]&&(0,c.jsx)("button",{onClick:()=>{R(a.alias,""),Q({...I,[a.alias]:""})},className:"p-1 text-text-muted hover:text-red-500 rounded transition-colors",title:"Clear",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]},a.alias))}),a.defaultModels?.length===0&&(0,c.jsx)("p",{className:"text-xs text-text-muted px-1",children:"Model mappings will be available soon."}),(0,c.jsxs)("div",{className:"flex flex-col gap-2 items-start",children:[k?(0,c.jsxs)("button",{onClick:S,disabled:!i||w,className:"px-4 py-1.5 rounded-lg bg-red-500/10 border border-red-500/30 text-red-500 font-medium text-xs flex items-center gap-1.5 hover:bg-red-500/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"stop_circle"}),"Stop DNS"]}):(0,c.jsxs)("button",{onClick:S,disabled:!i||w,className:"px-4 py-1.5 rounded-lg bg-primary/10 border border-primary/30 text-primary font-medium text-xs flex items-center gap-1.5 hover:bg-primary/20 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"play_circle"}),"Start DNS"]}),y&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs text-amber-500",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,c.jsx)("span",{children:y})]})]})]})]}),A&&(0,c.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,c.jsxs)("div",{className:"bg-surface border border-border rounded-xl p-6 w-full max-w-sm flex flex-col gap-4 shadow-xl",children:[(0,c.jsx)("h3",{className:"font-semibold text-text-main",children:"Sudo Password Required"}),(0,c.jsxs)("div",{className:"flex items-start gap-3 p-3 bg-yellow-500/10 border border-yellow-500/30 rounded-lg",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-yellow-500 text-[20px]",children:"warning"}),(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Required to modify /etc/hosts and flush DNS cache"})]}),(0,c.jsx)(n.Input,{type:"password",placeholder:"Enter sudo password",value:C,onChange:a=>D(a.target.value),onKeyDown:a=>{"Enter"!==a.key||w||U()}}),G&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-red-500/10 text-red-600",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"error"}),(0,c.jsx)("span",{children:G})]}),(0,c.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,c.jsx)(f.Button,{variant:"ghost",size:"sm",onClick:()=>{B(!1),D(""),H(null)},disabled:w,children:"Cancel"}),(0,c.jsx)(f.Button,{variant:"primary",size:"sm",onClick:U,loading:w,children:"Confirm"})]})]})}),(0,c.jsx)(g.ModelSelectModal,{isOpen:K,onClose:()=>L(!1),onSelect:a=>{if(!M||a.isPlaceholder)return;let b={...I,[M]:a.value};J(b),Q(b)},selectedModel:M?I[M]:null,activeProviders:q,modelAliases:s,title:`Select model for ${M}`})]})}],53014);var p=a.i(2231),q=a.i(38246),r=a.i(84);function s(a){if(!a||"string"!=typeof a)return a;let b=a.indexOf("@");if(b<=0||b===a.length-1)return a;let c=a.slice(0,b),d=a.slice(b+1);return 1===c.length?`${c[0]}**@${d}`:2===c.length?`${c[0]}**${c[1]}@${d}`:`${c[0]}**${c[c.length-1]}@${d}`}a.s(["default",0,function({tool:a,connections:b=[],serverRunning:f,dnsActive:g,onToggle:h,onRefreshConnections:i}){let[j,k]=(0,d.useState)(!1),[l,n]=(0,d.useState)(!1),[o,t]=(0,d.useState)("round-robin"),[u,v]=(0,d.useState)(!1),[w,x]=(0,d.useState)(!1),[y,z]=(0,d.useState)(!1),[A,B]=(0,d.useState)(null),[C,D]=(0,d.useState)(null),[E,F]=(0,d.useState)(!1),[G,H]=(0,d.useState)({}),I=(0,d.useRef)({}),J=(0,d.useCallback)(async()=>{try{let a=await fetch("/api/settings");if(a.ok){let b=await a.json();k(!!b.tokenSwapEnabled),t(b.tokenSwapStrategy||"round-robin"),x(!!b.tokenSwapMaskEmails)}}catch{}},[]);(0,d.useEffect)(()=>{J()},[J]);let K=(0,d.useCallback)(async(b,c=!1)=>{if(!b||0===b.length)return;let d=Date.now(),e=[],f={};if(b.forEach(a=>{let b=I.current[a.id];!c&&b&&d-b.ts<12e4?f[a.id]={quotas:b.data,error:b.error,loading:!1}:e.push(a)}),Object.keys(f).length>0&&H(a=>({...a,...f})),0===e.length)return;let g={};e.forEach(a=>{g[a.id]={quotas:[],error:null,loading:!0}}),H(a=>({...a,...g})),await Promise.all(e.map(async b=>{try{let c=await fetch(`/api/usage/${b.id}`);if(!c.ok){let a=(await c.json().catch(()=>({}))).error||`HTTP ${c.status}`;I.current[b.id]={data:[],error:a,ts:Date.now()},H(c=>({...c,[b.id]:{quotas:[],error:a,loading:!1}}));return}let d=await c.json(),e=(0,r.parseQuotaData)(a.tokenSwapProvider||"antigravity",d);I.current[b.id]={data:e,error:null,ts:Date.now()},H(a=>({...a,[b.id]:{quotas:e,error:null,loading:!1}}))}catch(c){let a=c.message||"Failed";I.current[b.id]={data:[],error:a,ts:Date.now()},H(c=>({...c,[b.id]:{quotas:[],error:a,loading:!1}}))}}))},[a.tokenSwapProvider]);if(!a?.supportsTokenSwap)return null;let L=async()=>{n(!0);let a=!j;try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokenSwapEnabled:a})})).ok&&(k(a),h?.(a))}catch{}n(!1)},M=async a=>{if(a!==o&&!u){v(!0);try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokenSwapStrategy:a})})).ok&&t(a)}catch{}v(!1)}},N=async()=>{if(y)return;z(!0);let a=!w;try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tokenSwapMaskEmails:a})})).ok&&x(a)}catch{}z(!1)},O=b.filter(b=>b.provider===a.tokenSwapProvider),P=O.filter(a=>!1!==a.isActive),Q=P.length,R=P.map(a=>a.id).join("|"),S=a?.stickyRoundRobinLimit||3,T=function(a,b,c){if(!a||0===a.length)return null;if(1===a.length)return a[0].id;let d=[...a].sort((a,b)=>a.lastUsedAt||b.lastUsedAt?a.lastUsedAt?b.lastUsedAt?new Date(b.lastUsedAt)-new Date(a.lastUsedAt):-1:1:(a.priority||999)-(b.priority||999));if("sticky"===b)return d[0]?.id||null;let e=d[0],f=e?.consecutiveUseCount||0;if(e?.lastUsedAt&&f<c)return e.id;let g=[...a].sort((a,b)=>a.lastUsedAt||b.lastUsedAt?a.lastUsedAt?b.lastUsedAt?new Date(a.lastUsedAt)-new Date(b.lastUsedAt):1:-1:(a.priority||999)-(b.priority||999));return g[0]?.id||null}(P,o,S);(0,d.useEffect)(()=>{j&&Q>0&&K(P)},[j,Q,R,K]);let U=f&&g,V=j&&U&&Q>0,W=async(a,b)=>{if(a&&!A&&!E&&!C){B(a);try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&await i?.()}catch{}B(null)}},X=async a=>{if(a&&!C&&!E&&!A){D(a);try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({lastUsedAt:null,consecutiveUseCount:0})})).ok&&await i?.()}catch{}D(null)}},Y=async()=>{if(!E&&!C&&!A&&0!==O.length){F(!0);try{await Promise.all(O.map(a=>fetch(`/api/providers/${a.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({lastUsedAt:null,consecutiveUseCount:0})}))),await i?.()}catch{}F(!1)}};return(0,c.jsxs)(e.Card,{padding:"xs",className:"overflow-hidden",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between",children:[(0,c.jsxs)("div",{className:"flex items-center gap-3",children:[(0,c.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0 rounded-lg bg-violet-500/10",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-violet-400 text-[18px]",children:"swap_horiz"})}),(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("h3",{className:"font-medium text-sm",children:"Token Rotation"}),(0,c.jsx)("span",{className:"text-[9px] uppercase tracking-wider text-text-muted bg-surface border border-border px-1.5 py-0.5 rounded font-semibold",children:"Mode B"}),V?(0,c.jsx)(m.Badge,{variant:"success",size:"sm",children:"Active"}):j?(0,c.jsx)(m.Badge,{variant:"warning",size:"sm",children:"Enabled"}):(0,c.jsx)(m.Badge,{variant:"default",size:"sm",children:"Off"})]}),(0,c.jsx)("p",{className:"text-xs text-text-muted",children:"Rotate auth tokens across pool accounts to bypass per-account quota"})]})]}),(0,c.jsx)("button",{onClick:L,disabled:l,className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors shrink-0 ${j?"bg-violet-500":"bg-surface-alt border border-border"} ${l?"opacity-50":"cursor-pointer"}`,title:j?"Disable Token Rotation":"Enable Token Rotation",children:(0,c.jsx)("span",{className:`inline-block h-3.5 w-3.5 transform rounded-full bg-white transition-transform shadow-sm ${j?"translate-x-4":"translate-x-0.5"}`})})]}),j&&(0,c.jsxs)("div",{className:"mt-3 pt-3 border-t border-border/50 flex flex-col gap-3",children:[(0,c.jsxs)("div",{className:"flex items-start gap-2 px-2 py-2 rounded-lg bg-violet-500/5 border border-violet-500/15",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px] text-violet-400 mt-0.5 shrink-0",children:"info"}),(0,c.jsxs)("div",{className:"text-[11px] text-text-muted leading-relaxed",children:[(0,c.jsx)("p",{children:"Intercepts Antigravity requests → swaps IDE's auth token with a pool account → auto-retries on 429 quota error with next account in pool."}),(0,c.jsx)("p",{className:"mt-1 text-violet-400/80 font-medium",children:"⚠ When active, Model Routing (Mode A) is bypassed."})]})]}),(0,c.jsxs)("div",{className:"flex flex-col gap-1.5 px-1",children:[(0,c.jsx)("p",{className:"text-[10px] uppercase tracking-wider text-text-muted font-semibold",children:"Rotation Strategy"}),(0,c.jsxs)("div",{className:"flex gap-1.5",children:[(0,c.jsxs)("button",{onClick:()=>M("round-robin"),disabled:u,className:`flex-1 flex flex-col items-center gap-0.5 px-2 py-2 rounded-lg border text-[11px] font-medium transition-colors ${"round-robin"===o?"border-violet-500/50 bg-violet-500/10 text-violet-400":"border-border bg-surface text-text-muted hover:border-border-alt"} disabled:opacity-50`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"autorenew"}),"Round Robin"]}),(0,c.jsxs)("button",{onClick:()=>M("sticky"),disabled:u,className:`flex-1 flex flex-col items-center gap-0.5 px-2 py-2 rounded-lg border text-[11px] font-medium transition-colors ${"sticky"===o?"border-violet-500/50 bg-violet-500/10 text-violet-400":"border-border bg-surface text-text-muted hover:border-border-alt"} disabled:opacity-50`,children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"push_pin"}),"Sticky"]})]}),(0,c.jsx)("p",{className:"text-[10px] text-text-muted px-0.5",children:"sticky"===o?"Stays on the same account until its quota is exhausted for the requested model, then switches. Optimizes session-level token cache.":"Rotates accounts after each session (sticky round-robin). Distributes load evenly across the pool."})]}),(0,c.jsxs)("div",{className:"flex flex-col gap-1 px-1",children:[(0,c.jsx)("p",{className:"text-[10px] uppercase tracking-wider text-text-muted font-semibold mb-0.5",children:"Prerequisites"}),(0,c.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,c.jsx)("span",{className:`material-symbols-outlined text-[14px] ${f?"text-green-500":"text-red-400"}`,children:f?"check_circle":"cancel"}),(0,c.jsx)("span",{className:f?"text-text-main":"text-text-muted",children:"MITM Server"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,c.jsx)("span",{className:`material-symbols-outlined text-[14px] ${g?"text-green-500":"text-red-400"}`,children:g?"check_circle":"cancel"}),(0,c.jsxs)("span",{className:g?"text-text-main":"text-text-muted",children:["DNS redirect",!g&&(0,c.jsx)("span",{className:"text-[10px] text-text-muted ml-1",children:"— enable via Antigravity card above"})]})]})]}),(0,c.jsxs)("div",{className:"flex flex-col gap-1 px-1",children:[(0,c.jsxs)("div",{className:"flex items-center justify-between mb-0.5",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[(0,c.jsx)("p",{className:"text-[10px] uppercase tracking-wider text-text-muted font-semibold",children:"Pool Accounts"}),(0,c.jsx)("span",{className:"text-[10px] text-text-muted",children:O.length>0?`${Q}/${O.length} active`:"none"}),Q>1&&(0,c.jsx)("span",{className:"text-[9px] text-text-muted bg-surface border border-border px-1 py-0.5 rounded",children:"round-robin"})]}),(0,c.jsxs)("div",{className:"flex items-center gap-2",children:[Q>0&&(0,c.jsx)("button",{onClick:()=>K(P,!0),className:"text-[10px] text-text-muted hover:text-primary flex items-center gap-0.5 transition-colors",title:"Refresh quotas",children:(0,c.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"refresh"})}),O.length>0&&(0,c.jsxs)("button",{onClick:Y,disabled:E||!!C,className:"text-[10px] text-text-muted hover:text-primary disabled:opacity-50 flex items-center gap-0.5 transition-colors",title:"Reset all streak counts",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"restart_alt"}),"Reset all"]})]})]}),(0,c.jsxs)("p",{className:"text-[10px] text-text-muted px-0.5",children:["Sticky round robin keeps the current account until its streak reaches ",S,", then rotates to the least recently used account."]}),(0,c.jsxs)("div",{className:"flex items-center justify-between gap-3 px-2 py-2 rounded-lg border border-border bg-surface-alt/40",children:[(0,c.jsxs)("div",{className:"min-w-0",children:[(0,c.jsx)("p",{className:"text-[11px] font-medium text-text-main",children:"Mask account emails"}),(0,c.jsxs)("p",{className:"text-[10px] text-text-muted",children:["Hide pool account emails in token swap logs and this panel. Example: ",s("email@gmail.com")]})]}),(0,c.jsx)("button",{onClick:N,disabled:y,className:`relative inline-flex h-5 w-9 items-center rounded-full transition-colors shrink-0 ${w?"bg-violet-500":"bg-surface border border-border"} ${y?"opacity-50":"cursor-pointer"}`,title:w?"Disable email masking":"Enable email masking",children:(0,c.jsx)("span",{className:`inline-block h-3.5 w-3.5 transform rounded-full bg-white transition-transform shadow-sm ${w?"translate-x-4":"translate-x-0.5"}`})})]}),O.length>0?(0,c.jsxs)(c.Fragment,{children:[O.map(a=>(0,c.jsxs)("div",{className:`rounded-xl border border-border bg-surface-alt/30 px-3 py-2.5 transition-colors ${!1===a.isActive?"opacity-65":"hover:bg-surface-alt/50"}`,children:[(0,c.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,c.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,c.jsx)("span",{className:`material-symbols-outlined text-[14px] shrink-0 ${!1===a.isActive?"text-text-muted":"text-green-500"}`,children:!1===a.isActive?"pause_circle":"check_circle"}),(0,c.jsx)("span",{className:"text-xs font-medium text-text-main truncate",children:a.email?w?s(a.email):a.email:a.name||a.id.slice(0,16)}),T===a.id&&!1!==a.isActive&&(0,c.jsx)("span",{className:"text-[9px] text-violet-300 bg-violet-500/10 border border-violet-500/20 px-1 py-0.5 rounded shrink-0",children:"next"}),(0,c.jsx)(m.Badge,{variant:!1===a.isActive?"default":"success",size:"sm",children:!1===a.isActive?"disabled":"active"})]}),(0,c.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap text-[10px] text-text-muted",children:[(0,c.jsxs)("span",{children:["Priority #",a.priority??"-"]}),(0,c.jsxs)("span",{children:["Streak ",a.consecutiveUseCount||0,"/",S]}),a.lastUsedAt&&(0,c.jsxs)("span",{children:["Last used ",new Date(a.lastUsedAt).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})]})]})]}),(0,c.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[(0,c.jsx)("button",{onClick:()=>X(a.id),disabled:E||A===a.id||C===a.id,className:"text-[10px] text-text-muted hover:text-primary disabled:opacity-50 transition-colors",title:"Reset this account streak",children:C===a.id?"...":"Reset Streak"}),(0,c.jsx)(p.Toggle,{size:"sm",checked:!1!==a.isActive,disabled:E||C===a.id||A===a.id,onChange:b=>W(a.id,b)})]})]}),(0,c.jsx)("div",{className:"mt-2 pl-6",children:!1===a.isActive?(0,c.jsx)("div",{className:"text-[10px] text-text-muted",children:"Enable this account to include it in token rotation and load quota reset info."}):(a=>{let b=(a=>{let b=G[a];if(!b)return{state:"empty"};if(b.loading)return{state:"loading"};if(b.error)return{state:"error",error:b.error};if(!b.quotas||0===b.quotas.length)return{state:"no-data"};let c=b.quotas.find(a=>a.modelKey?.includes("claude-sonnet-4-6")||a.name?.toLowerCase().includes("opus"))||b.quotas[0];if(!c)return{state:"no-data"};let d=void 0!==c.remainingPercentage?Math.round(c.remainingPercentage):c.total>0?Math.round((c.total-c.used)/c.total*100):null,e=[...b.quotas].map(a=>a.resetAt).filter(Boolean).filter(a=>new Date(a).getTime()>Date.now()).sort((a,b)=>new Date(a).getTime()-new Date(b).getTime())[0]||c.resetAt||null;return{state:null===d?"no-data":"ready",highlight:c,pct:d,nextResetAt:e,resetCountdown:(0,r.formatResetTime)(e),resetDisplay:function(a){if(!a)return null;try{let b=new Date(a),c=new Date,d=b.toDateString()===c.toDateString(),e=b.toDateString()===new Date(c.getTime()+864e5).toDateString(),f=b.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",hour12:!0});if(d)return`Today, ${f}`;if(e)return`Tomorrow, ${f}`;return b.toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0})}catch{return null}}(e)}})(a);if(!b||"empty"===b.state)return(0,c.jsx)("span",{className:"text-[10px] text-text-muted",children:"Enable to load quota data"});if("loading"===b.state)return(0,c.jsx)("span",{className:"text-[10px] text-text-muted animate-pulse",children:"Loading quota…"});if("error"===b.state)return(0,c.jsx)("span",{className:"text-[10px] text-red-400",title:b.error,children:"Quota unavailable"});if("no-data"===b.state)return(0,c.jsx)("span",{className:"text-[10px] text-text-muted",children:"No quota data"});let{highlight:d,pct:e,resetCountdown:f,resetDisplay:g}=b;return(0,c.jsxs)("div",{className:"flex flex-col gap-1.5 min-w-0",children:[(0,c.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,c.jsx)("span",{className:"text-[10px] text-text-muted truncate",children:d.name}),(0,c.jsx)("div",{className:"flex-1 h-1.5 rounded-full bg-surface-alt overflow-hidden min-w-[56px]",children:(0,c.jsx)("div",{className:`h-full rounded-full ${e>70?"bg-green-500":e>=30?"bg-yellow-500":"bg-red-500"}`,style:{width:`${Math.min(e,100)}%`}})}),(0,c.jsxs)("span",{className:`text-[10px] font-medium shrink-0 ${e>70?"text-green-500":e>=30?"text-yellow-500":"text-red-500"}`,children:[e,"%"]})]}),"-"!==f&&g?(0,c.jsxs)("div",{className:"text-[10px] text-text-muted",children:["Reset in ",(0,c.jsx)("span",{className:"text-text-main",children:f}),(0,c.jsxs)("span",{className:"text-text-muted/70",children:[" • ",g]})]}):(0,c.jsx)("div",{className:"text-[10px] text-text-muted",children:"Reset time unavailable"})]})})(a.id)})]},a.id)),(0,c.jsxs)(q.default,{href:"/dashboard/providers",className:"text-[11px] text-primary hover:underline flex items-center gap-1 px-1 mt-1",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"open_in_new"}),"Manage accounts"]})]}):(0,c.jsx)("div",{className:"px-1",children:(0,c.jsxs)("p",{className:"text-xs text-text-muted",children:["No active ",a.name," accounts in pool."," ",(0,c.jsx)(q.default,{href:"/dashboard/providers",className:"text-primary hover:underline",children:"Add account →"})]})})]}),!U&&(0,c.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1.5 rounded text-xs bg-amber-500/10 text-amber-600 border border-amber-500/20",children:[(0,c.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"warning"}),(0,c.jsx)("span",{children:"Start MITM server and enable DNS to activate token rotation"})]})]})]})}],93831),a.s([],36513)}];
|
|
16
16
|
|
|
17
17
|
//# sourceMappingURL=src_shared_constants_cliTools_09iru_o.js.map
|
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/03~yq9q893hmn.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/eALv8q_pKhx9-bE-9KiDB/_buildManifest.js",
|
|
11
|
+
"static/eALv8q_pKhx9-bE-9KiDB/_ssgManifest.js",
|
|
12
|
+
"static/eALv8q_pKhx9-bE-9KiDB/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/0vn3aevizo-in.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/12e1_bkd541fo.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/0lkbvidbb15ld.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0vn3aevizo-in.js"/><script src="/_next/static/chunks/02i7dfk78~t~2.js" async=""></script><script src="/_next/static/chunks/0jrv3q-9uyzn-.js" async=""></script><script src="/_next/static/chunks/0r7m44~cm1a3r.js" async=""></script><script src="/_next/static/chunks/turbopack-0ia95-4m7lcfa.js" async=""></script><script src="/_next/static/chunks/14tsmm25gab1..js" async=""></script><script src="/_next/static/chunks/0n4z.7yu76je-.js" async=""></script><script src="/_next/static/chunks/0epj7i9.s2-m2.js" async=""></script><link rel="preload" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap" as="style"/><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><title>404: This page could not be found.</title><meta name="theme-color" content="#0a0a0a"/><title>9Router - AI Infrastructure Management</title><meta name="description" content="One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly."/><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><link rel="icon" href="/favicon.svg"/><link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap" rel="stylesheet"/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body class="inter_bace89c4-module__09p2wq__variable font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0vn3aevizo-in.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[35745,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0epj7i9.s2-m2.js\"],\"ThemeProvider\"]\n3:I[69013,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0epj7i9.s2-m2.js\"],\"RuntimeI18nProvider\"]\n4:I[39756,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0epj7i9.s2-m2.js\"],\"default\"]\n5:I[37457,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0epj7i9.s2-m2.js\"],\"default\"]\n6:I[97367,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0epj7i9.s2-m2.js\"],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\na:I[97367,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0epj7i9.s2-m2.js\"],\"ViewportBoundary\"]\nc:I[97367,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0epj7i9.s2-m2.js\"],\"MetadataBoundary\"]\ne:I[68027,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0epj7i9.s2-m2.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/12e1_bkd541fo.css\",\"style\"]\n:HL[\"/_next/static/chunks/0lkbvidbb15ld.css\",\"style\"]\n:HL[\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200\u0026display=swap\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/12e1_bkd541fo.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0lkbvidbb15ld.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/14tsmm25gab1..js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0n4z.7yu76je-.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/0epj7i9.s2-m2.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.googleapis.com\"}],[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.gstatic.com\",\"crossOrigin\":\"anonymous\"}],[\"$\",\"link\",null,{\"href\":\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200\u0026display=swap\",\"rel\":\"stylesheet\"}]]}],[\"$\",\"body\",null,{\"className\":\"inter_bace89c4-module__09p2wq__variable font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,null]},null,false,\"$@9\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$La\",null,{\"children\":\"$Lb\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Ld\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/12e1_bkd541fo.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0lkbvidbb15ld.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"Fr7ipSei0ydO_aZHViw9O\"}\n"])</script><script>self.__next_f.push([1,"f:[]\n9:\"$Wf\"\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#0a0a0a\"}]]\n"])</script><script>self.__next_f.push([1,"10:I[27201,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0epj7i9.s2-m2.js\"],\"IconMark\"]\n8:null\nd:[[\"$\",\"title\",\"0\",{\"children\":\"9Router - AI Infrastructure Management\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.svg\"}],[\"$\",\"$L10\",\"5\",{}]]\n"])</script></body></html>
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/12e1_bkd541fo.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/chunks/026p3rpdycbyo.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0vn3aevizo-in.js"/><script src="/_next/static/chunks/02i7dfk78~t~2.js" async=""></script><script src="/_next/static/chunks/0jrv3q-9uyzn-.js" async=""></script><script src="/_next/static/chunks/0r7m44~cm1a3r.js" async=""></script><script src="/_next/static/chunks/turbopack-0ia95-4m7lcfa.js" async=""></script><script src="/_next/static/chunks/14tsmm25gab1..js" async=""></script><script src="/_next/static/chunks/0n4z.7yu76je-.js" async=""></script><script src="/_next/static/chunks/0~p0472sbmye6.js" async=""></script><link rel="preload" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap" as="style"/><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><title>404: This page could not be found.</title><meta name="theme-color" content="#0a0a0a"/><title>9Router - AI Infrastructure Management</title><meta name="description" content="One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly."/><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><link rel="icon" href="/favicon.svg"/><link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap" rel="stylesheet"/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body class="inter_bace89c4-module__09p2wq__variable font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0vn3aevizo-in.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[35745,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0~p0472sbmye6.js\"],\"ThemeProvider\"]\n3:I[69013,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0~p0472sbmye6.js\"],\"RuntimeI18nProvider\"]\n4:I[39756,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0~p0472sbmye6.js\"],\"default\"]\n5:I[37457,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0~p0472sbmye6.js\"],\"default\"]\n6:I[97367,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0~p0472sbmye6.js\"],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\na:I[97367,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0~p0472sbmye6.js\"],\"ViewportBoundary\"]\nc:I[97367,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0~p0472sbmye6.js\"],\"MetadataBoundary\"]\ne:I[68027,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0~p0472sbmye6.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/12e1_bkd541fo.css\",\"style\"]\n:HL[\"/_next/static/chunks/026p3rpdycbyo.css\",\"style\"]\n:HL[\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200\u0026display=swap\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/12e1_bkd541fo.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/026p3rpdycbyo.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/14tsmm25gab1..js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0n4z.7yu76je-.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/0~p0472sbmye6.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.googleapis.com\"}],[\"$\",\"link\",null,{\"rel\":\"preconnect\",\"href\":\"https://fonts.gstatic.com\",\"crossOrigin\":\"anonymous\"}],[\"$\",\"link\",null,{\"href\":\"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200\u0026display=swap\",\"rel\":\"stylesheet\"}]]}],[\"$\",\"body\",null,{\"className\":\"inter_bace89c4-module__09p2wq__variable font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"children\":[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L4\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,null]},null,false,\"$@9\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$La\",null,{\"children\":\"$Lb\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Ld\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/12e1_bkd541fo.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/026p3rpdycbyo.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"eALv8q_pKhx9-bE-9KiDB\"}\n"])</script><script>self.__next_f.push([1,"f:[]\n9:\"$Wf\"\n"])</script><script>self.__next_f.push([1,"b:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#0a0a0a\"}]]\n"])</script><script>self.__next_f.push([1,"10:I[27201,[\"/_next/static/chunks/14tsmm25gab1..js\",\"/_next/static/chunks/0n4z.7yu76je-.js\",\"/_next/static/chunks/0~p0472sbmye6.js\"],\"IconMark\"]\n8:null\nd:[[\"$\",\"title\",\"0\",{\"children\":\"9Router - AI Infrastructure Management\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"One endpoint for all your AI providers. Manage keys, monitor usage, and scale effortlessly.\"}],[\"$\",\"link\",\"2\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"4\",{\"rel\":\"icon\",\"href\":\"/favicon.svg\"}],[\"$\",\"$L10\",\"5\",{}]]\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0vn3aevizo-in.js"/><script src="/_next/static/chunks/02i7dfk78~t~2.js" async=""></script><script src="/_next/static/chunks/0jrv3q-9uyzn-.js" async=""></script><script src="/_next/static/chunks/0r7m44~cm1a3r.js" async=""></script><script src="/_next/static/chunks/turbopack-0ia95-4m7lcfa.js" async=""></script><script src="/_next/static/chunks/01xlw8hd842-c.js" async=""></script><script src="/_next/static/chunks/0n4z.7yu76je-.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0vn3aevizo-in.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0vn3aevizo-in.js"/><script src="/_next/static/chunks/02i7dfk78~t~2.js" async=""></script><script src="/_next/static/chunks/0jrv3q-9uyzn-.js" async=""></script><script src="/_next/static/chunks/0r7m44~cm1a3r.js" async=""></script><script src="/_next/static/chunks/turbopack-0ia95-4m7lcfa.js" async=""></script><script src="/_next/static/chunks/01xlw8hd842-c.js" async=""></script><script src="/_next/static/chunks/0n4z.7yu76je-.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0vn3aevizo-in.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[39756,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"eALv8q_pKhx9-bE-9KiDB\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[27201,[\"/_next/static/chunks/01xlw8hd842-c.js\",\"/_next/static/chunks/0n4z.7yu76je-.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"2\",{}]]\n"])</script></body></html>
|