@yina-npm/openrouterx 0.4.55 → 0.4.71

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.
Files changed (805) hide show
  1. package/README.md +1 -1
  2. package/app/.next/BUILD_ID +1 -1
  3. package/app/.next/app-path-routes-manifest.json +5 -11
  4. package/app/.next/build-manifest.json +2 -2
  5. package/app/.next/prerender-manifest.json +3 -3
  6. package/app/.next/required-server-files.json +1 -1
  7. package/app/.next/routes-manifest.json +15 -51
  8. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js +2 -2
  9. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page.js.nft.json +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/admin/keys/page_client-reference-manifest.js +1 -1
  11. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js +2 -2
  12. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page.js.nft.json +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/admin/users/page_client-reference-manifest.js +1 -1
  14. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  15. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  17. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  18. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  20. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  21. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  23. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  24. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  26. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  27. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  29. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  30. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  32. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
  33. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  35. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  36. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  37. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  38. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  39. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  41. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  42. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  43. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  44. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  45. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  47. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  48. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  49. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  50. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  51. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  52. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  53. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  54. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  55. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  56. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  57. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  58. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  59. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  60. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  61. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  62. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +4 -4
  63. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  64. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  65. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +3 -2
  66. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  67. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  68. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  69. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  70. package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  71. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  72. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  73. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  74. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  75. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  76. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  77. package/app/.next/server/app/(dashboard)/dashboard/user/page.js +3 -3
  78. package/app/.next/server/app/(dashboard)/dashboard/user/page.js.nft.json +1 -1
  79. package/app/.next/server/app/(dashboard)/dashboard/user/page_client-reference-manifest.js +1 -1
  80. package/app/.next/server/app/_global-error/page.js +2 -2
  81. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  82. package/app/.next/server/app/_global-error.html +1 -1
  83. package/app/.next/server/app/_global-error.rsc +1 -1
  84. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  85. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  86. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  87. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  88. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  89. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  90. package/app/.next/server/app/_not-found/page.js +2 -2
  91. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  92. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  93. package/app/.next/server/app/_not-found.html +1 -1
  94. package/app/.next/server/app/_not-found.rsc +4 -4
  95. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  96. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  97. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  98. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  99. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  100. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  101. package/app/.next/server/app/api/auth/login/route.js +1 -1
  102. package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  103. package/app/.next/server/app/api/auth/logout/route.js +1 -1
  104. package/app/.next/server/app/api/auth/me/route.js +1 -1
  105. package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
  106. package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
  107. package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
  108. package/app/.next/server/app/api/auth/status/route.js +1 -1
  109. package/app/.next/server/app/api/cli-tools/all-statuses/route.js +4 -4
  110. package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  111. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  112. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  113. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  114. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  115. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  116. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +1 -1
  117. package/app/.next/server/app/api/cli-tools/codex-settings/activate-account/route.js +2 -2
  118. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  119. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  120. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  121. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  122. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  123. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  124. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  125. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +1 -1
  126. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +3 -3
  127. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  128. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  129. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  130. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  131. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  132. package/app/.next/server/app/api/combos/route.js +1 -1
  133. package/app/.next/server/app/api/health/route.js +1 -1
  134. package/app/.next/server/app/api/init/route.js +1 -1
  135. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  136. package/app/.next/server/app/api/keys/route.js +1 -1
  137. package/app/.next/server/app/api/locale/route.js +1 -1
  138. package/app/.next/server/app/api/mcp/[plugin]/message/route.js +1 -1
  139. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +1 -4
  140. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  141. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  142. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  143. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  144. package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  145. package/app/.next/server/app/api/models/alias/route.js +1 -1
  146. package/app/.next/server/app/api/models/availability/route.js +1 -1
  147. package/app/.next/server/app/api/models/custom/route.js +1 -1
  148. package/app/.next/server/app/api/models/disabled/route.js +1 -1
  149. package/app/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
  150. package/app/.next/server/app/api/models/route.js +1 -1
  151. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  152. package/app/.next/server/app/api/models/test/route.js +1 -1
  153. package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
  154. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -6
  155. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  156. package/app/.next/server/app/api/oauth/codex/import-token/route.js +1 -0
  157. package/app/.next/server/app/api/{cli-tools/antigravity-mitm/test → oauth/codex/import-token}/route.js.nft.json +1 -1
  158. package/app/.next/server/app/api/oauth/codex/import-token/route_client-reference-manifest.js +1 -0
  159. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  160. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  161. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  162. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  163. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  164. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  165. package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  166. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  167. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  168. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  169. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  170. package/app/.next/server/app/api/pricing/route.js +1 -1
  171. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  172. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  173. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  174. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  175. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  176. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  177. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  178. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  179. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  180. package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  181. package/app/.next/server/app/api/providers/client/route.js +1 -1
  182. package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  183. package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  184. package/app/.next/server/app/api/providers/route.js +1 -1
  185. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  186. package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
  187. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  188. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  189. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  190. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  191. package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  192. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  193. package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route.js +43 -0
  194. package/app/.next/server/app/api/{tunnel/tailscale-login → proxy-pools/cloudflare-deploy}/route.js.nft.json +1 -1
  195. package/app/.next/server/app/api/proxy-pools/cloudflare-deploy/route_client-reference-manifest.js +1 -0
  196. package/app/.next/server/app/api/proxy-pools/deno-deploy/route.js +40 -0
  197. package/app/.next/server/app/api/{tunnel/tailscale-start-daemon → proxy-pools/deno-deploy}/route.js.nft.json +1 -1
  198. package/app/.next/server/app/api/proxy-pools/deno-deploy/route_client-reference-manifest.js +1 -0
  199. package/app/.next/server/app/api/proxy-pools/route.js +1 -1
  200. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  201. package/app/.next/server/app/api/settings/database/route.js +1 -1
  202. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
  203. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  204. package/app/.next/server/app/api/settings/route.js +1 -1
  205. package/app/.next/server/app/api/shutdown/route.js +1 -1
  206. package/app/.next/server/app/api/tags/route.js +1 -1
  207. package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
  208. package/app/.next/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  209. package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
  210. package/app/.next/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  211. package/app/.next/server/app/api/translator/load/route.js +1 -1
  212. package/app/.next/server/app/api/translator/save/route.js +1 -1
  213. package/app/.next/server/app/api/translator/send/route.js +1 -1
  214. package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  215. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  216. package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  217. package/app/.next/server/app/api/tunnel/disable/route.js +1 -1
  218. package/app/.next/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  219. package/app/.next/server/app/api/tunnel/enable/route.js +1 -1
  220. package/app/.next/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  221. package/app/.next/server/app/api/tunnel/status/route.js +1 -1
  222. package/app/.next/server/app/api/tunnel/status/route.js.nft.json +1 -1
  223. package/app/.next/server/app/api/tunnel/tailscale-check/route.js +1 -1
  224. package/app/.next/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  225. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  226. package/app/.next/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  227. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  228. package/app/.next/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  229. package/app/.next/server/app/api/tunnel/tailscale-install/route.js +3 -3
  230. package/app/.next/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  231. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  232. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  233. package/app/.next/server/app/api/usage/api-keys/route.js +1 -1
  234. package/app/.next/server/app/api/usage/chart/route.js +1 -1
  235. package/app/.next/server/app/api/usage/history/route.js +1 -1
  236. package/app/.next/server/app/api/usage/logs/route.js +1 -1
  237. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  238. package/app/.next/server/app/api/usage/request-details/route.js +1 -1
  239. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  240. package/app/.next/server/app/api/usage/stats/route.js +1 -1
  241. package/app/.next/server/app/api/usage/stream/route.js +2 -2
  242. package/app/.next/server/app/api/users/[id]/route.js +1 -1
  243. package/app/.next/server/app/api/users/route.js +1 -1
  244. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  245. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  246. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  247. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  248. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  249. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  250. package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
  251. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  252. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  253. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  254. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  255. package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
  256. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  257. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  258. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  259. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  260. package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
  261. package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  262. package/app/.next/server/app/api/v1/models/info/route.js +1 -1
  263. package/app/.next/server/app/api/v1/models/info/route.js.nft.json +1 -1
  264. package/app/.next/server/app/api/v1/models/route.js +1 -1
  265. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  266. package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
  267. package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  268. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  269. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  270. package/app/.next/server/app/api/v1/route.js +1 -1
  271. package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
  272. package/app/.next/server/app/api/v1/search/route.js +1 -1
  273. package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
  274. package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
  275. package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  276. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  277. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  278. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  279. package/app/.next/server/app/api/v1beta/models/route.js.nft.json +1 -1
  280. package/app/.next/server/app/api/version/route.js +1 -1
  281. package/app/.next/server/app/api/version/shutdown/route.js +1 -1
  282. package/app/.next/server/app/api/version/shutdown/route.js.nft.json +1 -1
  283. package/app/.next/server/app/api/version/update/route.js +1 -1
  284. package/app/.next/server/app/api/version/update/route.js.nft.json +1 -1
  285. package/app/.next/server/app/callback/page.js +2 -2
  286. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  287. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  288. package/app/.next/server/app/callback.html +1 -1
  289. package/app/.next/server/app/callback.rsc +4 -4
  290. package/app/.next/server/app/callback.segments/_full.segment.rsc +4 -4
  291. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  292. package/app/.next/server/app/callback.segments/_index.segment.rsc +4 -4
  293. package/app/.next/server/app/callback.segments/_tree.segment.rsc +2 -2
  294. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  295. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  296. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  297. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  298. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  299. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  300. package/app/.next/server/app/dashboard/settings/pricing.rsc +4 -4
  301. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  302. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  303. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  304. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  305. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  306. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  307. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  308. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  309. package/app/.next/server/app/favicon.ico/route.js +1 -1
  310. package/app/.next/server/app/index.html +1 -1
  311. package/app/.next/server/app/index.rsc +4 -4
  312. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  313. package/app/.next/server/app/index.segments/_full.segment.rsc +4 -4
  314. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  315. package/app/.next/server/app/index.segments/_index.segment.rsc +4 -4
  316. package/app/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  317. package/app/.next/server/app/landing/page.js +2 -2
  318. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  319. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  320. package/app/.next/server/app/landing.html +1 -1
  321. package/app/.next/server/app/landing.rsc +4 -4
  322. package/app/.next/server/app/landing.segments/_full.segment.rsc +4 -4
  323. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  324. package/app/.next/server/app/landing.segments/_index.segment.rsc +4 -4
  325. package/app/.next/server/app/landing.segments/_tree.segment.rsc +2 -2
  326. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  327. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  328. package/app/.next/server/app/login/page.js +2 -2
  329. package/app/.next/server/app/login/page.js.nft.json +1 -1
  330. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  331. package/app/.next/server/app/login.html +1 -1
  332. package/app/.next/server/app/login.rsc +5 -5
  333. package/app/.next/server/app/login.segments/_full.segment.rsc +5 -5
  334. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  335. package/app/.next/server/app/login.segments/_index.segment.rsc +4 -4
  336. package/app/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  337. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  338. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  339. package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
  340. package/app/.next/server/app/page.js +2 -2
  341. package/app/.next/server/app/page.js.nft.json +1 -1
  342. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  343. package/app/.next/server/app-paths-manifest.json +5 -11
  344. package/app/.next/server/chunks/1172.js +1 -0
  345. package/app/.next/server/chunks/1350.js +2 -2
  346. package/app/.next/server/chunks/1476.js +1 -1
  347. package/app/.next/server/chunks/1531.js +1 -0
  348. package/app/.next/server/chunks/1900.js +1 -0
  349. package/app/.next/server/chunks/1998.js +1 -0
  350. package/app/.next/server/chunks/2409.js +1 -0
  351. package/app/.next/server/chunks/2574.js +1 -1
  352. package/app/.next/server/chunks/2722.js +2 -7
  353. package/app/.next/server/chunks/3104.js +43 -0
  354. package/app/.next/server/chunks/3110.js +10 -8
  355. package/app/.next/server/chunks/3205.js +1 -0
  356. package/app/.next/server/chunks/365.js +1 -0
  357. package/app/.next/server/chunks/3913.js +2 -2
  358. package/app/.next/server/chunks/412.js +2 -2
  359. package/app/.next/server/chunks/4177.js +1 -0
  360. package/app/.next/server/chunks/4404.js +1 -0
  361. package/app/.next/server/chunks/4922.js +9 -0
  362. package/app/.next/server/chunks/4989.js +1 -1
  363. package/app/.next/server/chunks/5217.js +1 -1
  364. package/app/.next/server/chunks/5681.js +1 -1
  365. package/app/.next/server/chunks/6001.js +1 -1
  366. package/app/.next/server/chunks/6096.js +1 -0
  367. package/app/.next/server/chunks/6108.js +1 -1
  368. package/app/.next/server/chunks/6457.js +4 -0
  369. package/app/.next/server/chunks/7341.js +1 -1
  370. package/app/.next/server/chunks/7879.js +10 -0
  371. package/app/.next/server/chunks/7937.js +186 -0
  372. package/app/.next/server/chunks/8220.js +1 -0
  373. package/app/.next/server/chunks/8279.js +1 -0
  374. package/app/.next/server/chunks/8473.js +8 -0
  375. package/app/.next/server/chunks/8750.js +1 -1
  376. package/app/.next/server/chunks/8895.js +8 -6
  377. package/app/.next/server/chunks/9203.js +1 -0
  378. package/app/.next/server/chunks/9259.js +3 -0
  379. package/app/.next/server/chunks/9460.js +1 -0
  380. package/app/.next/server/chunks/9489.js +1 -1
  381. package/app/.next/server/chunks/9501.js +63 -0
  382. package/app/.next/server/chunks/{9095.js → 9713.js} +1 -1
  383. package/app/.next/server/chunks/9718.js +1 -1
  384. package/app/.next/server/chunks/9856.js +1 -1
  385. package/app/.next/server/functions-config-manifest.json +0 -1
  386. package/app/.next/server/middleware-build-manifest.js +1 -1
  387. package/app/.next/server/middleware.js +1 -1
  388. package/app/.next/server/pages/404.html +1 -1
  389. package/app/.next/server/pages/500.html +1 -1
  390. package/app/.next/server/server-reference-manifest.js +1 -1
  391. package/app/.next/server/server-reference-manifest.json +1 -1
  392. package/app/.next/static/chunks/1321-9d7d6181b08dfcf4.js +1 -0
  393. package/app/.next/static/chunks/4072-e3cbc885320b3535.js +3 -0
  394. package/app/.next/static/chunks/5497-41bb54893ac4e384.js +7 -0
  395. package/app/.next/static/chunks/{6069-7c51e16aef293430.js → 6069-27d1adb0dbf83385.js} +9 -14
  396. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-ba3be29df191769b.js +1 -0
  397. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-a0eaec978d93b101.js +1 -0
  398. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/page-57065ce85ec52703.js +1 -0
  399. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-e0f570e37fcc4d53.js → page-b52d2279e8eff62d.js} +1 -1
  400. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-011af574663dfa07.js +1 -0
  401. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-7cd7e81cc32bcf4d.js +3 -0
  402. package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-77e1358581cbeecd.js +4 -0
  403. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-5f1623351681fa43.js +2 -0
  404. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-739dde37665780bc.js +1 -0
  405. package/app/.next/static/chunks/app/(dashboard)/layout-2b26025389c75878.js +1 -0
  406. package/app/.next/static/chunks/app/_global-error/page-739dde37665780bc.js +1 -0
  407. package/app/.next/static/chunks/app/api/auth/login/route-739dde37665780bc.js +1 -0
  408. package/app/.next/static/chunks/app/api/auth/logout/route-739dde37665780bc.js +1 -0
  409. package/app/.next/static/chunks/app/api/auth/me/route-739dde37665780bc.js +1 -0
  410. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-739dde37665780bc.js +1 -0
  411. package/app/.next/static/chunks/app/api/auth/oidc/start/route-739dde37665780bc.js +1 -0
  412. package/app/.next/static/chunks/app/api/auth/oidc/test/route-739dde37665780bc.js +1 -0
  413. package/app/.next/static/chunks/app/api/auth/status/route-739dde37665780bc.js +1 -0
  414. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-739dde37665780bc.js +1 -0
  415. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-739dde37665780bc.js +1 -0
  416. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-739dde37665780bc.js +1 -0
  417. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-739dde37665780bc.js +1 -0
  418. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-739dde37665780bc.js +1 -0
  419. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/activate-account/route-739dde37665780bc.js +1 -0
  420. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-739dde37665780bc.js +1 -0
  421. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-739dde37665780bc.js +1 -0
  422. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-739dde37665780bc.js +1 -0
  423. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-739dde37665780bc.js +1 -0
  424. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-739dde37665780bc.js +1 -0
  425. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-739dde37665780bc.js +1 -0
  426. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-739dde37665780bc.js +1 -0
  427. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-739dde37665780bc.js +1 -0
  428. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-739dde37665780bc.js +1 -0
  429. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-739dde37665780bc.js +1 -0
  430. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-739dde37665780bc.js +1 -0
  431. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-739dde37665780bc.js +1 -0
  432. package/app/.next/static/chunks/app/api/combos/[id]/route-739dde37665780bc.js +1 -0
  433. package/app/.next/static/chunks/app/api/combos/route-739dde37665780bc.js +1 -0
  434. package/app/.next/static/chunks/app/api/health/route-739dde37665780bc.js +1 -0
  435. package/app/.next/static/chunks/app/api/init/route-739dde37665780bc.js +1 -0
  436. package/app/.next/static/chunks/app/api/keys/[id]/route-739dde37665780bc.js +1 -0
  437. package/app/.next/static/chunks/app/api/keys/route-739dde37665780bc.js +1 -0
  438. package/app/.next/static/chunks/app/api/locale/route-739dde37665780bc.js +1 -0
  439. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-739dde37665780bc.js +1 -0
  440. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-739dde37665780bc.js +1 -0
  441. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-739dde37665780bc.js +1 -0
  442. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-739dde37665780bc.js +1 -0
  443. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-739dde37665780bc.js +1 -0
  444. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-739dde37665780bc.js +1 -0
  445. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-739dde37665780bc.js +1 -0
  446. package/app/.next/static/chunks/app/api/models/alias/route-739dde37665780bc.js +1 -0
  447. package/app/.next/static/chunks/app/api/models/availability/route-739dde37665780bc.js +1 -0
  448. package/app/.next/static/chunks/app/api/models/custom/route-739dde37665780bc.js +1 -0
  449. package/app/.next/static/chunks/app/api/models/disabled/route-739dde37665780bc.js +1 -0
  450. package/app/.next/static/chunks/app/api/models/route-739dde37665780bc.js +1 -0
  451. package/app/.next/static/chunks/app/api/models/test/route-739dde37665780bc.js +1 -0
  452. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-739dde37665780bc.js +1 -0
  453. package/app/.next/static/chunks/app/api/oauth/codex/import-token/route-739dde37665780bc.js +1 -0
  454. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-739dde37665780bc.js +1 -0
  455. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-739dde37665780bc.js +1 -0
  456. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-739dde37665780bc.js +1 -0
  457. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-739dde37665780bc.js +1 -0
  458. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-739dde37665780bc.js +1 -0
  459. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-739dde37665780bc.js +1 -0
  460. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-739dde37665780bc.js +1 -0
  461. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-739dde37665780bc.js +1 -0
  462. package/app/.next/static/chunks/app/api/pricing/route-739dde37665780bc.js +1 -0
  463. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-739dde37665780bc.js +1 -0
  464. package/app/.next/static/chunks/app/api/provider-nodes/route-739dde37665780bc.js +1 -0
  465. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-739dde37665780bc.js +1 -0
  466. package/app/.next/static/chunks/app/api/providers/[id]/models/route-739dde37665780bc.js +1 -0
  467. package/app/.next/static/chunks/app/api/providers/[id]/route-739dde37665780bc.js +1 -0
  468. package/app/.next/static/chunks/app/api/providers/[id]/test/route-739dde37665780bc.js +1 -0
  469. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-739dde37665780bc.js +1 -0
  470. package/app/.next/static/chunks/app/api/providers/client/route-739dde37665780bc.js +1 -0
  471. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-739dde37665780bc.js +1 -0
  472. package/app/.next/static/chunks/app/api/providers/route-739dde37665780bc.js +1 -0
  473. package/app/.next/static/chunks/app/api/providers/suggested-models/route-739dde37665780bc.js +1 -0
  474. package/app/.next/static/chunks/app/api/providers/test-batch/route-739dde37665780bc.js +1 -0
  475. package/app/.next/static/chunks/app/api/providers/validate/route-739dde37665780bc.js +1 -0
  476. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-739dde37665780bc.js +1 -0
  477. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-739dde37665780bc.js +1 -0
  478. package/app/.next/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-739dde37665780bc.js +1 -0
  479. package/app/.next/static/chunks/app/api/proxy-pools/deno-deploy/route-739dde37665780bc.js +1 -0
  480. package/app/.next/static/chunks/app/api/proxy-pools/route-739dde37665780bc.js +1 -0
  481. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-739dde37665780bc.js +1 -0
  482. package/app/.next/static/chunks/app/api/settings/database/route-739dde37665780bc.js +1 -0
  483. package/app/.next/static/chunks/app/api/settings/proxy-test/route-739dde37665780bc.js +1 -0
  484. package/app/.next/static/chunks/app/api/settings/require-login/route-739dde37665780bc.js +1 -0
  485. package/app/.next/static/chunks/app/api/settings/route-739dde37665780bc.js +1 -0
  486. package/app/.next/static/chunks/app/api/shutdown/route-739dde37665780bc.js +1 -0
  487. package/app/.next/static/chunks/app/api/tags/route-739dde37665780bc.js +1 -0
  488. package/app/.next/static/chunks/app/api/translator/console-logs/route-739dde37665780bc.js +1 -0
  489. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-739dde37665780bc.js +1 -0
  490. package/app/.next/static/chunks/app/api/translator/load/route-739dde37665780bc.js +1 -0
  491. package/app/.next/static/chunks/app/api/translator/save/route-739dde37665780bc.js +1 -0
  492. package/app/.next/static/chunks/app/api/translator/send/route-739dde37665780bc.js +1 -0
  493. package/app/.next/static/chunks/app/api/translator/translate/route-739dde37665780bc.js +1 -0
  494. package/app/.next/static/chunks/app/api/tunnel/disable/route-739dde37665780bc.js +1 -0
  495. package/app/.next/static/chunks/app/api/tunnel/enable/route-739dde37665780bc.js +1 -0
  496. package/app/.next/static/chunks/app/api/tunnel/status/route-739dde37665780bc.js +1 -0
  497. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-739dde37665780bc.js +1 -0
  498. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-739dde37665780bc.js +1 -0
  499. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-739dde37665780bc.js +1 -0
  500. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-739dde37665780bc.js +1 -0
  501. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-739dde37665780bc.js +1 -0
  502. package/app/.next/static/chunks/app/api/usage/api-keys/route-739dde37665780bc.js +1 -0
  503. package/app/.next/static/chunks/app/api/usage/chart/route-739dde37665780bc.js +1 -0
  504. package/app/.next/static/chunks/app/api/usage/history/route-739dde37665780bc.js +1 -0
  505. package/app/.next/static/chunks/app/api/usage/logs/route-739dde37665780bc.js +1 -0
  506. package/app/.next/static/chunks/app/api/usage/providers/route-739dde37665780bc.js +1 -0
  507. package/app/.next/static/chunks/app/api/usage/request-details/route-739dde37665780bc.js +1 -0
  508. package/app/.next/static/chunks/app/api/usage/request-logs/route-739dde37665780bc.js +1 -0
  509. package/app/.next/static/chunks/app/api/usage/stats/route-739dde37665780bc.js +1 -0
  510. package/app/.next/static/chunks/app/api/usage/stream/route-739dde37665780bc.js +1 -0
  511. package/app/.next/static/chunks/app/api/users/[id]/route-739dde37665780bc.js +1 -0
  512. package/app/.next/static/chunks/app/api/users/route-739dde37665780bc.js +1 -0
  513. package/app/.next/static/chunks/app/api/v1/api/chat/route-739dde37665780bc.js +1 -0
  514. package/app/.next/static/chunks/app/api/v1/audio/speech/route-739dde37665780bc.js +1 -0
  515. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-739dde37665780bc.js +1 -0
  516. package/app/.next/static/chunks/app/api/v1/audio/voices/route-739dde37665780bc.js +1 -0
  517. package/app/.next/static/chunks/app/api/v1/chat/completions/route-739dde37665780bc.js +1 -0
  518. package/app/.next/static/chunks/app/api/v1/embeddings/route-739dde37665780bc.js +1 -0
  519. package/app/.next/static/chunks/app/api/v1/images/generations/route-739dde37665780bc.js +1 -0
  520. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-739dde37665780bc.js +1 -0
  521. package/app/.next/static/chunks/app/api/v1/messages/route-739dde37665780bc.js +1 -0
  522. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-739dde37665780bc.js +1 -0
  523. package/app/.next/static/chunks/app/api/v1/models/info/route-739dde37665780bc.js +1 -0
  524. package/app/.next/static/chunks/app/api/v1/models/route-739dde37665780bc.js +1 -0
  525. package/app/.next/static/chunks/app/api/v1/responses/compact/route-739dde37665780bc.js +1 -0
  526. package/app/.next/static/chunks/app/api/v1/responses/route-739dde37665780bc.js +1 -0
  527. package/app/.next/static/chunks/app/api/v1/route-739dde37665780bc.js +1 -0
  528. package/app/.next/static/chunks/app/api/v1/search/route-739dde37665780bc.js +1 -0
  529. package/app/.next/static/chunks/app/api/v1/web/fetch/route-739dde37665780bc.js +1 -0
  530. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-739dde37665780bc.js +1 -0
  531. package/app/.next/static/chunks/app/api/v1beta/models/route-739dde37665780bc.js +1 -0
  532. package/app/.next/static/chunks/app/api/version/route-739dde37665780bc.js +1 -0
  533. package/app/.next/static/chunks/app/api/version/shutdown/route-739dde37665780bc.js +1 -0
  534. package/app/.next/static/chunks/app/api/version/update/route-739dde37665780bc.js +1 -0
  535. package/app/.next/static/chunks/app/login/page-bf4ffdfcf4ec19bf.js +1 -0
  536. package/app/.next/static/chunks/app/manifest.webmanifest/route-739dde37665780bc.js +1 -0
  537. package/app/.next/static/chunks/app/page-739dde37665780bc.js +1 -0
  538. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-739dde37665780bc.js +1 -0
  539. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-739dde37665780bc.js +1 -0
  540. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-739dde37665780bc.js +1 -0
  541. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-739dde37665780bc.js +1 -0
  542. package/app/.next/static/css/16b3fb40c238dedb.css +1 -0
  543. package/app/.next/static/jssxgK5Jb3snQyFlT_oQ6/_buildManifest.js +1 -0
  544. package/app/package.json +2 -2
  545. package/app/public/i18n/literals/ar.json +1 -27
  546. package/app/public/i18n/literals/bn.json +1 -27
  547. package/app/public/i18n/literals/cs.json +1 -27
  548. package/app/public/i18n/literals/da.json +1 -27
  549. package/app/public/i18n/literals/de.json +1 -27
  550. package/app/public/i18n/literals/el.json +1 -27
  551. package/app/public/i18n/literals/es.json +1 -27
  552. package/app/public/i18n/literals/fi.json +1 -27
  553. package/app/public/i18n/literals/fr.json +1 -27
  554. package/app/public/i18n/literals/he.json +1 -27
  555. package/app/public/i18n/literals/hi.json +1 -27
  556. package/app/public/i18n/literals/hu.json +1 -27
  557. package/app/public/i18n/literals/id.json +1 -27
  558. package/app/public/i18n/literals/it.json +1 -27
  559. package/app/public/i18n/literals/ja.json +1 -27
  560. package/app/public/i18n/literals/ko.json +1 -27
  561. package/app/public/i18n/literals/nl.json +1 -27
  562. package/app/public/i18n/literals/no.json +1 -27
  563. package/app/public/i18n/literals/pl.json +1 -27
  564. package/app/public/i18n/literals/pt-BR.json +1 -27
  565. package/app/public/i18n/literals/pt-PT.json +1 -27
  566. package/app/public/i18n/literals/ro.json +1 -27
  567. package/app/public/i18n/literals/ru.json +1 -27
  568. package/app/public/i18n/literals/sv.json +1 -27
  569. package/app/public/i18n/literals/th.json +1 -27
  570. package/app/public/i18n/literals/tl.json +1 -27
  571. package/app/public/i18n/literals/tr.json +1 -27
  572. package/app/public/i18n/literals/uk.json +1 -27
  573. package/app/public/i18n/literals/ur.json +1 -27
  574. package/app/public/i18n/literals/vi.json +1 -27
  575. package/app/public/i18n/literals/zh-CN.json +4 -28
  576. package/app/public/i18n/literals/zh-TW.json +1 -27
  577. package/app/public/providers/qoder.png +0 -0
  578. package/app/server.js +1 -1
  579. package/app/src/lib/oauth/services/qoder.js +216 -0
  580. package/app/src/lib/oauth/services/xai.js +238 -0
  581. package/app/src/lib/updater/updater.js +3 -4
  582. package/app/src/mitm/antigravityIdeVersion.js +50 -0
  583. package/app/src/mitm/cert/install.js +45 -21
  584. package/app/src/mitm/cert/rootCA.js +5 -20
  585. package/app/src/mitm/config.js +38 -39
  586. package/app/src/mitm/dns/dnsConfig.js +10 -162
  587. package/app/src/mitm/handlers/antigravity.js +2 -29
  588. package/app/src/mitm/handlers/base.js +164 -17
  589. package/app/src/mitm/handlers/copilot.js +2 -2
  590. package/app/src/mitm/handlers/kiro.js +242 -117
  591. package/app/src/mitm/logger.js +2 -15
  592. package/app/src/mitm/manager.js +78 -91
  593. package/app/src/mitm/paths.js +19 -8
  594. package/app/src/mitm/server.js +199 -292
  595. package/app/src/shared/constants/mitmToolHosts.js +1 -6
  596. package/hooks/postinstall.js +0 -92
  597. package/package.json +3 -3
  598. package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page.js +0 -2
  599. package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page.js.nft.json +0 -1
  600. package/app/.next/server/app/(dashboard)/dashboard/focus-ui/page_client-reference-manifest.js +0 -1
  601. package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page.js +0 -2
  602. package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page.js.nft.json +0 -1
  603. package/app/.next/server/app/(dashboard)/dashboard/network-analysis/page_client-reference-manifest.js +0 -1
  604. package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route.js +0 -1
  605. package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route.js.nft.json +0 -1
  606. package/app/.next/server/app/api/cli-tools/antigravity-mitm/inject-auth/route_client-reference-manifest.js +0 -1
  607. package/app/.next/server/app/api/cli-tools/antigravity-mitm/restart/route.js +0 -1
  608. package/app/.next/server/app/api/cli-tools/antigravity-mitm/restart/route.js.nft.json +0 -1
  609. package/app/.next/server/app/api/cli-tools/antigravity-mitm/restart/route_client-reference-manifest.js +0 -1
  610. package/app/.next/server/app/api/cli-tools/antigravity-mitm/test/route.js +0 -1
  611. package/app/.next/server/app/api/cli-tools/antigravity-mitm/test/route_client-reference-manifest.js +0 -1
  612. package/app/.next/server/app/api/network-analysis/route.js +0 -2
  613. package/app/.next/server/app/api/network-analysis/route.js.nft.json +0 -1
  614. package/app/.next/server/app/api/network-analysis/route_client-reference-manifest.js +0 -1
  615. package/app/.next/server/app/api/startup-notices/route.js +0 -2
  616. package/app/.next/server/app/api/startup-notices/route.js.nft.json +0 -1
  617. package/app/.next/server/app/api/startup-notices/route_client-reference-manifest.js +0 -1
  618. package/app/.next/server/app/api/tunnel/tailscale-login/route.js +0 -1
  619. package/app/.next/server/app/api/tunnel/tailscale-login/route_client-reference-manifest.js +0 -1
  620. package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route.js +0 -2
  621. package/app/.next/server/app/api/tunnel/tailscale-start-daemon/route_client-reference-manifest.js +0 -1
  622. package/app/.next/server/chunks/2415.js +0 -17
  623. package/app/.next/server/chunks/2506.js +0 -4
  624. package/app/.next/server/chunks/2560.js +0 -1
  625. package/app/.next/server/chunks/3245.js +0 -1
  626. package/app/.next/server/chunks/3493.js +0 -2
  627. package/app/.next/server/chunks/4394.js +0 -1
  628. package/app/.next/server/chunks/4664.js +0 -1
  629. package/app/.next/server/chunks/5330.js +0 -162
  630. package/app/.next/server/chunks/6182.js +0 -50
  631. package/app/.next/server/chunks/6393.js +0 -1
  632. package/app/.next/server/chunks/7177.js +0 -1
  633. package/app/.next/server/chunks/7568.js +0 -1
  634. package/app/.next/server/chunks/7595.js +0 -1
  635. package/app/.next/server/chunks/7828.js +0 -1
  636. package/app/.next/server/chunks/7930.js +0 -6
  637. package/app/.next/server/chunks/8574.js +0 -1
  638. package/app/.next/server/chunks/8590.js +0 -1
  639. package/app/.next/server/chunks/8651.js +0 -9
  640. package/app/.next/server/chunks/8760.js +0 -1
  641. package/app/.next/server/chunks/9609.js +0 -1
  642. package/app/.next/static/chunks/1321-f7d4f75925b79060.js +0 -1
  643. package/app/.next/static/chunks/4072-fdb34c3bf82582e6.js +0 -6
  644. package/app/.next/static/chunks/5095-47fe70cd930f3c59.js +0 -2
  645. package/app/.next/static/chunks/5497-b59396fb56e7b9b1.js +0 -7
  646. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-efbd0b93d35d25cc.js +0 -1
  647. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-acbac7a67319955a.js +0 -1
  648. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/page-55598932923e41ce.js +0 -1
  649. package/app/.next/static/chunks/app/(dashboard)/dashboard/focus-ui/page-329b3a170ddd28c6.js +0 -1
  650. package/app/.next/static/chunks/app/(dashboard)/dashboard/network-analysis/page-0ad4db60f9d14f60.js +0 -1
  651. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-f005d7a30159ce4f.js +0 -1
  652. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-c3234f9c82b1a78e.js +0 -3
  653. package/app/.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-5040868a50d977bf.js +0 -4
  654. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-e089ffa4138753d7.js +0 -1
  655. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-814b95c8fc310a6a.js +0 -1
  656. package/app/.next/static/chunks/app/(dashboard)/layout-00b66bc0e6b38a14.js +0 -1
  657. package/app/.next/static/chunks/app/_global-error/page-814b95c8fc310a6a.js +0 -1
  658. package/app/.next/static/chunks/app/api/auth/login/route-814b95c8fc310a6a.js +0 -1
  659. package/app/.next/static/chunks/app/api/auth/logout/route-814b95c8fc310a6a.js +0 -1
  660. package/app/.next/static/chunks/app/api/auth/me/route-814b95c8fc310a6a.js +0 -1
  661. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-814b95c8fc310a6a.js +0 -1
  662. package/app/.next/static/chunks/app/api/auth/oidc/start/route-814b95c8fc310a6a.js +0 -1
  663. package/app/.next/static/chunks/app/api/auth/oidc/test/route-814b95c8fc310a6a.js +0 -1
  664. package/app/.next/static/chunks/app/api/auth/status/route-814b95c8fc310a6a.js +0 -1
  665. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-814b95c8fc310a6a.js +0 -1
  666. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-814b95c8fc310a6a.js +0 -1
  667. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/inject-auth/route-814b95c8fc310a6a.js +0 -1
  668. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/restart/route-814b95c8fc310a6a.js +0 -1
  669. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-814b95c8fc310a6a.js +0 -1
  670. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/test/route-814b95c8fc310a6a.js +0 -1
  671. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-814b95c8fc310a6a.js +0 -1
  672. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-814b95c8fc310a6a.js +0 -1
  673. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/activate-account/route-814b95c8fc310a6a.js +0 -1
  674. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-814b95c8fc310a6a.js +0 -1
  675. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-814b95c8fc310a6a.js +0 -1
  676. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-814b95c8fc310a6a.js +0 -1
  677. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-814b95c8fc310a6a.js +0 -1
  678. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-814b95c8fc310a6a.js +0 -1
  679. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-814b95c8fc310a6a.js +0 -1
  680. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-814b95c8fc310a6a.js +0 -1
  681. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-814b95c8fc310a6a.js +0 -1
  682. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-814b95c8fc310a6a.js +0 -1
  683. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-814b95c8fc310a6a.js +0 -1
  684. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-814b95c8fc310a6a.js +0 -1
  685. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-814b95c8fc310a6a.js +0 -1
  686. package/app/.next/static/chunks/app/api/combos/[id]/route-814b95c8fc310a6a.js +0 -1
  687. package/app/.next/static/chunks/app/api/combos/route-814b95c8fc310a6a.js +0 -1
  688. package/app/.next/static/chunks/app/api/health/route-814b95c8fc310a6a.js +0 -1
  689. package/app/.next/static/chunks/app/api/init/route-814b95c8fc310a6a.js +0 -1
  690. package/app/.next/static/chunks/app/api/keys/[id]/route-814b95c8fc310a6a.js +0 -1
  691. package/app/.next/static/chunks/app/api/keys/route-814b95c8fc310a6a.js +0 -1
  692. package/app/.next/static/chunks/app/api/locale/route-814b95c8fc310a6a.js +0 -1
  693. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-814b95c8fc310a6a.js +0 -1
  694. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-814b95c8fc310a6a.js +0 -1
  695. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-814b95c8fc310a6a.js +0 -1
  696. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-814b95c8fc310a6a.js +0 -1
  697. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-814b95c8fc310a6a.js +0 -1
  698. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-814b95c8fc310a6a.js +0 -1
  699. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-814b95c8fc310a6a.js +0 -1
  700. package/app/.next/static/chunks/app/api/models/alias/route-814b95c8fc310a6a.js +0 -1
  701. package/app/.next/static/chunks/app/api/models/availability/route-814b95c8fc310a6a.js +0 -1
  702. package/app/.next/static/chunks/app/api/models/custom/route-814b95c8fc310a6a.js +0 -1
  703. package/app/.next/static/chunks/app/api/models/disabled/route-814b95c8fc310a6a.js +0 -1
  704. package/app/.next/static/chunks/app/api/models/route-814b95c8fc310a6a.js +0 -1
  705. package/app/.next/static/chunks/app/api/models/test/route-814b95c8fc310a6a.js +0 -1
  706. package/app/.next/static/chunks/app/api/network-analysis/route-814b95c8fc310a6a.js +0 -1
  707. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-814b95c8fc310a6a.js +0 -1
  708. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-814b95c8fc310a6a.js +0 -1
  709. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-814b95c8fc310a6a.js +0 -1
  710. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-814b95c8fc310a6a.js +0 -1
  711. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-814b95c8fc310a6a.js +0 -1
  712. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-814b95c8fc310a6a.js +0 -1
  713. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-814b95c8fc310a6a.js +0 -1
  714. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-814b95c8fc310a6a.js +0 -1
  715. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-814b95c8fc310a6a.js +0 -1
  716. package/app/.next/static/chunks/app/api/pricing/route-814b95c8fc310a6a.js +0 -1
  717. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-814b95c8fc310a6a.js +0 -1
  718. package/app/.next/static/chunks/app/api/provider-nodes/route-814b95c8fc310a6a.js +0 -1
  719. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-814b95c8fc310a6a.js +0 -1
  720. package/app/.next/static/chunks/app/api/providers/[id]/models/route-814b95c8fc310a6a.js +0 -1
  721. package/app/.next/static/chunks/app/api/providers/[id]/route-814b95c8fc310a6a.js +0 -1
  722. package/app/.next/static/chunks/app/api/providers/[id]/test/route-814b95c8fc310a6a.js +0 -1
  723. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-814b95c8fc310a6a.js +0 -1
  724. package/app/.next/static/chunks/app/api/providers/client/route-814b95c8fc310a6a.js +0 -1
  725. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-814b95c8fc310a6a.js +0 -1
  726. package/app/.next/static/chunks/app/api/providers/route-814b95c8fc310a6a.js +0 -1
  727. package/app/.next/static/chunks/app/api/providers/suggested-models/route-814b95c8fc310a6a.js +0 -1
  728. package/app/.next/static/chunks/app/api/providers/test-batch/route-814b95c8fc310a6a.js +0 -1
  729. package/app/.next/static/chunks/app/api/providers/validate/route-814b95c8fc310a6a.js +0 -1
  730. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-814b95c8fc310a6a.js +0 -1
  731. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-814b95c8fc310a6a.js +0 -1
  732. package/app/.next/static/chunks/app/api/proxy-pools/route-814b95c8fc310a6a.js +0 -1
  733. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-814b95c8fc310a6a.js +0 -1
  734. package/app/.next/static/chunks/app/api/settings/database/route-814b95c8fc310a6a.js +0 -1
  735. package/app/.next/static/chunks/app/api/settings/proxy-test/route-814b95c8fc310a6a.js +0 -1
  736. package/app/.next/static/chunks/app/api/settings/require-login/route-814b95c8fc310a6a.js +0 -1
  737. package/app/.next/static/chunks/app/api/settings/route-814b95c8fc310a6a.js +0 -1
  738. package/app/.next/static/chunks/app/api/shutdown/route-814b95c8fc310a6a.js +0 -1
  739. package/app/.next/static/chunks/app/api/startup-notices/route-814b95c8fc310a6a.js +0 -1
  740. package/app/.next/static/chunks/app/api/tags/route-814b95c8fc310a6a.js +0 -1
  741. package/app/.next/static/chunks/app/api/translator/console-logs/route-814b95c8fc310a6a.js +0 -1
  742. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-814b95c8fc310a6a.js +0 -1
  743. package/app/.next/static/chunks/app/api/translator/load/route-814b95c8fc310a6a.js +0 -1
  744. package/app/.next/static/chunks/app/api/translator/save/route-814b95c8fc310a6a.js +0 -1
  745. package/app/.next/static/chunks/app/api/translator/send/route-814b95c8fc310a6a.js +0 -1
  746. package/app/.next/static/chunks/app/api/translator/translate/route-814b95c8fc310a6a.js +0 -1
  747. package/app/.next/static/chunks/app/api/tunnel/disable/route-814b95c8fc310a6a.js +0 -1
  748. package/app/.next/static/chunks/app/api/tunnel/enable/route-814b95c8fc310a6a.js +0 -1
  749. package/app/.next/static/chunks/app/api/tunnel/status/route-814b95c8fc310a6a.js +0 -1
  750. package/app/.next/static/chunks/app/api/tunnel/tailscale-check/route-814b95c8fc310a6a.js +0 -1
  751. package/app/.next/static/chunks/app/api/tunnel/tailscale-disable/route-814b95c8fc310a6a.js +0 -1
  752. package/app/.next/static/chunks/app/api/tunnel/tailscale-enable/route-814b95c8fc310a6a.js +0 -1
  753. package/app/.next/static/chunks/app/api/tunnel/tailscale-install/route-814b95c8fc310a6a.js +0 -1
  754. package/app/.next/static/chunks/app/api/tunnel/tailscale-login/route-814b95c8fc310a6a.js +0 -1
  755. package/app/.next/static/chunks/app/api/tunnel/tailscale-start-daemon/route-814b95c8fc310a6a.js +0 -1
  756. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-814b95c8fc310a6a.js +0 -1
  757. package/app/.next/static/chunks/app/api/usage/api-keys/route-814b95c8fc310a6a.js +0 -1
  758. package/app/.next/static/chunks/app/api/usage/chart/route-814b95c8fc310a6a.js +0 -1
  759. package/app/.next/static/chunks/app/api/usage/history/route-814b95c8fc310a6a.js +0 -1
  760. package/app/.next/static/chunks/app/api/usage/logs/route-814b95c8fc310a6a.js +0 -1
  761. package/app/.next/static/chunks/app/api/usage/providers/route-814b95c8fc310a6a.js +0 -1
  762. package/app/.next/static/chunks/app/api/usage/request-details/route-814b95c8fc310a6a.js +0 -1
  763. package/app/.next/static/chunks/app/api/usage/request-logs/route-814b95c8fc310a6a.js +0 -1
  764. package/app/.next/static/chunks/app/api/usage/stats/route-814b95c8fc310a6a.js +0 -1
  765. package/app/.next/static/chunks/app/api/usage/stream/route-814b95c8fc310a6a.js +0 -1
  766. package/app/.next/static/chunks/app/api/users/[id]/route-814b95c8fc310a6a.js +0 -1
  767. package/app/.next/static/chunks/app/api/users/route-814b95c8fc310a6a.js +0 -1
  768. package/app/.next/static/chunks/app/api/v1/api/chat/route-814b95c8fc310a6a.js +0 -1
  769. package/app/.next/static/chunks/app/api/v1/audio/speech/route-814b95c8fc310a6a.js +0 -1
  770. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-814b95c8fc310a6a.js +0 -1
  771. package/app/.next/static/chunks/app/api/v1/audio/voices/route-814b95c8fc310a6a.js +0 -1
  772. package/app/.next/static/chunks/app/api/v1/chat/completions/route-814b95c8fc310a6a.js +0 -1
  773. package/app/.next/static/chunks/app/api/v1/embeddings/route-814b95c8fc310a6a.js +0 -1
  774. package/app/.next/static/chunks/app/api/v1/images/generations/route-814b95c8fc310a6a.js +0 -1
  775. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-814b95c8fc310a6a.js +0 -1
  776. package/app/.next/static/chunks/app/api/v1/messages/route-814b95c8fc310a6a.js +0 -1
  777. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-814b95c8fc310a6a.js +0 -1
  778. package/app/.next/static/chunks/app/api/v1/models/info/route-814b95c8fc310a6a.js +0 -1
  779. package/app/.next/static/chunks/app/api/v1/models/route-814b95c8fc310a6a.js +0 -1
  780. package/app/.next/static/chunks/app/api/v1/responses/compact/route-814b95c8fc310a6a.js +0 -1
  781. package/app/.next/static/chunks/app/api/v1/responses/route-814b95c8fc310a6a.js +0 -1
  782. package/app/.next/static/chunks/app/api/v1/route-814b95c8fc310a6a.js +0 -1
  783. package/app/.next/static/chunks/app/api/v1/search/route-814b95c8fc310a6a.js +0 -1
  784. package/app/.next/static/chunks/app/api/v1/web/fetch/route-814b95c8fc310a6a.js +0 -1
  785. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-814b95c8fc310a6a.js +0 -1
  786. package/app/.next/static/chunks/app/api/v1beta/models/route-814b95c8fc310a6a.js +0 -1
  787. package/app/.next/static/chunks/app/api/version/route-814b95c8fc310a6a.js +0 -1
  788. package/app/.next/static/chunks/app/api/version/shutdown/route-814b95c8fc310a6a.js +0 -1
  789. package/app/.next/static/chunks/app/api/version/update/route-814b95c8fc310a6a.js +0 -1
  790. package/app/.next/static/chunks/app/login/page-ef8d8c379c2ef99b.js +0 -1
  791. package/app/.next/static/chunks/app/manifest.webmanifest/route-814b95c8fc310a6a.js +0 -1
  792. package/app/.next/static/chunks/app/page-814b95c8fc310a6a.js +0 -1
  793. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-814b95c8fc310a6a.js +0 -1
  794. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-814b95c8fc310a6a.js +0 -1
  795. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-814b95c8fc310a6a.js +0 -1
  796. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-814b95c8fc310a6a.js +0 -1
  797. package/app/.next/static/css/9b92fc8235e99d1e.css +0 -1
  798. package/app/.next/static/f8CJGNglm2tzojtq8hcMG/_buildManifest.js +0 -1
  799. package/app/src/mitm/antigravityAvailableModels.fixture.json +0 -632
  800. package/app/src/mitm/antigravityBootstrap.js +0 -53
  801. package/app/src/mitm/antigravityModels.js +0 -265
  802. package/app/src/mitm/handlers/openrouter.js +0 -201
  803. package/app/src/mitm/models.json +0 -244
  804. package/app/src/mitm/upstreamResolver.js +0 -123
  805. /package/app/.next/static/{f8CJGNglm2tzojtq8hcMG → jssxgK5Jb3snQyFlT_oQ6}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1119],{14712:(e,t,s)=>{"use strict";s.d(t,{A:()=>o});var a=s(95155),l=s(12115),n=s(35497),r=s(90620);let i={LOG:"text-green-400",INFO:"text-blue-400",WARN:"text-yellow-400",ERROR:"text-red-400",DEBUG:"text-purple-400"};function o({active:e=!0,heightClassName:t="h-[calc(100vh-220px)]",compact:s=!1,showToolbar:c=!0}){let[d,u]=(0,l.useState)([]),[x,m]=(0,l.useState)(!1),p=(0,l.useRef)(null),h=async()=>{try{await fetch("/api/translator/console-logs",{method:"DELETE"})}catch(e){console.error("Failed to clear console logs:",e)}};(0,l.useEffect)(()=>{if(!e)return void m(!1);let t=new EventSource("/api/translator/console-logs/stream");return t.onopen=()=>m(!0),t.onmessage=e=>{let t=JSON.parse(e.data);"init"===t.type?u(t.logs.slice(-r.UY.maxLines)):"line"===t.type?u(e=>{let s=[...e,t.line];return s.length>r.UY.maxLines?s.slice(-r.UY.maxLines):s}):"clear"===t.type&&u([])},t.onerror=()=>m(!1),()=>t.close()},[e]),(0,l.useEffect)(()=>{p.current&&(p.current.scrollTop=p.current.scrollHeight)},[d]);let f=(0,a.jsxs)(a.Fragment,{children:[c&&(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 pt-3 pb-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-[11px] text-text-muted",children:[(0,a.jsx)("span",{className:`size-2 rounded-full ${x?"bg-green-500":"bg-text-muted/40"}`}),(0,a.jsx)("span",{children:x?"Live":"Disconnected"})]}),(0,a.jsx)(n.$n,{size:"sm",variant:"outline",icon:"delete",onClick:h,children:"Clear"})]}),(0,a.jsx)("div",{ref:p,className:`overflow-y-auto bg-black p-4 font-mono text-xs ${t} ${s?"rounded-lg":"rounded-b-lg"}`,children:0===d.length?(0,a.jsx)("span",{className:"text-text-muted",children:"No console logs yet."}):(0,a.jsx)("div",{className:"space-y-0.5","data-i18n-skip":"true",children:d.map((e,t)=>{let s,l;return(0,a.jsx)("div",{children:(l=i[(s=e.match(/\[(\w+)\]/g))?s[1]?.replace(/\[|\]/g,""):null]||"text-green-400",(0,a.jsx)("span",{className:l,children:e}))},`${t}-${e.slice(0,32)}`)})})})]});return s?f:(0,a.jsx)(n.Zp,{children:f})}},27091:(e,t,s)=>{Promise.resolve().then(s.bind(s,89455))},89455:(e,t,s)=>{"use strict";s.d(t,{default:()=>f});var a=s(95155),l=s(12115),n=s(3534),r=s(28777),i=s(52679),o=s(43666),c=s(14712),d=s(75095);let u=["antigravity"],x=Object.entries(n.wn),m=x.map(([e])=>e),p="focus-ui-mitm-tool-visibility",h=Object.fromEntries(m.map(e=>[e,u.includes(e)]));function f(){let[e,t]=(0,l.useState)([]),[s,n]=(0,l.useState)([]),[u,f]=(0,l.useState)({}),[v,j]=(0,l.useState)(!1),[y,N]=(0,l.useState)(null),[w,S]=(0,l.useState)(!0),[k,C]=(0,l.useState)(!0),[E,T]=(0,l.useState)(!0),[O,P]=(0,l.useState)(!0),[M,$]=(0,l.useState)(h),[A,_]=(0,l.useState)(!1),[I,L]=(0,l.useState)({running:!1,certExists:!1,dnsStatus:{},hasCachedPassword:!1});(0,l.useEffect)(()=>{fetch("/api/auth/me").then(e=>e.json()).then(e=>{"sub_user"===e.role&&(window.location.href="/dashboard/usage")}).catch(()=>{}),R(),D(),F(),U()},[]),(0,l.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem(p)||"null");e&&$(Object.fromEntries(m.map(t=>[t,e?.[t]===!0])))}catch{}_(!0)},[]),(0,l.useEffect)(()=>{if(A)try{localStorage.setItem(p,JSON.stringify(M))}catch{}},[A,M]);let R=async()=>{try{let e=await fetch("/api/providers");if(e.ok){let s=await e.json();t(s.connections||[])}}catch{}},D=async()=>{try{let e=await fetch("/api/keys");if(e.ok){let t=await e.json();n(t.keys||[])}}catch{}},F=async()=>{try{let e=await fetch("/api/models/alias");if(e.ok){let t=await e.json();f(t.aliases||{})}}catch{}},U=async()=>{try{let e=await fetch("/api/settings");if(e.ok){let t=await e.json();j(t.cloudEnabled||!1)}}catch{}},J=()=>e.filter(e=>!1!==e.isActive),K=x.filter(([e])=>M[e]);return(0,a.jsxs)("div",{className:"flex h-full min-h-0 w-full flex-col gap-6 overflow-hidden",children:[(0,a.jsx)(b,{title:"MITM Server",subtitle:"MITM server status and controls",expanded:w,onToggle:()=>S(e=>!e),bodyClassName:"p-0",className:"shrink-0",children:(0,a.jsx)(o.tA,{apiKeys:s,cloudEnabled:v,onStatusChange:L})}),(0,a.jsx)(b,{title:"Providers",subtitle:"MITM tool interception status",expanded:k,onToggle:()=>C(e=>!e),className:"shrink-0",headerControls:(0,a.jsx)(g,{tools:x,visibleTools:M,onToggleTool:e=>$(t=>({...t,[e]:!t[e]}))}),children:(0,a.jsx)("div",{className:"grid gap-3 sm:gap-4",children:K.map(([e,t])=>(0,a.jsx)(o.kn,{tool:t,isExpanded:y===e,onToggle:()=>N(y===e?null:e),serverRunning:I.running,dnsActive:I.dnsStatus?.[e]||!1,hasCachedPassword:I.hasCachedPassword||!1,needsSudoPassword:!1!==I.needsSudoPassword,isWin:!0===I.isWin,apiKeys:s,activeProviders:J(),hasActiveProviders:J().some(e=>(0,r.KC)(e.provider).length>0||(0,i.mq)(e.provider)||(0,i.gb)(e.provider)),modelAliases:u,cloudEnabled:v,onDnsChange:e=>L(t=>({...t,dnsStatus:e.dnsStatus??t.dnsStatus}))},e))})}),(0,a.jsx)(b,{title:"Quota Management",subtitle:"Provider account quota overview",expanded:E,onToggle:()=>T(e=>!e),bodyClassName:"p-4",className:"shrink-0",children:(0,a.jsx)(d.A,{embedded:!0,title:"Quota Management",gridClassName:"grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",activeFirst:!0,maxRows:1,maxColumns:4})}),(0,a.jsx)(b,{title:"Console Logs",subtitle:"MITM / OpenrouterX realtime output",expanded:O,onToggle:()=>P(e=>!e),bodyClassName:"flex min-h-0 flex-1 flex-col p-3",className:O?"flex min-h-0 flex-1 flex-col":"shrink-0",children:(0,a.jsx)(c.A,{active:O,compact:!0,showToolbar:!0,heightClassName:"min-h-0 flex-1"})})]})}function g({tools:e,visibleTools:t,onToggleTool:s}){return(0,a.jsx)("div",{className:"flex flex-wrap items-center justify-end gap-2",onClick:e=>e.stopPropagation(),children:e.map(([e,l])=>(0,a.jsxs)("label",{className:`inline-flex min-h-8 cursor-pointer select-none items-center gap-2 rounded-lg border px-2.5 py-1 text-xs font-medium transition-colors ${t[e]?"border-primary/40 bg-primary/10 text-primary":"border-border bg-surface text-text-muted hover:border-primary/30 hover:text-text-main"}`,children:[(0,a.jsx)("input",{type:"checkbox",checked:!0===t[e],onChange:()=>s(e),className:"h-3.5 w-3.5 accent-primary"}),(0,a.jsx)("span",{children:l.name})]},e))})}function b({title:e,subtitle:t,expanded:s,onToggle:l,children:n,className:r="",bodyClassName:i="p-0",headerControls:o=null}){return(0,a.jsxs)("div",{className:`overflow-hidden rounded-xl border border-border bg-surface shadow-sm ${r}`,children:[(0,a.jsxs)("div",{className:"flex w-full flex-col gap-3 px-4 py-3 transition-colors hover:bg-surface-2/60 lg:flex-row lg:items-center",children:[(0,a.jsxs)("button",{type:"button",onClick:l,className:"flex min-w-0 flex-1 items-center gap-3 text-left","aria-expanded":s,children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted transition-transform ${s?"rotate-90":""}`,children:"chevron_right"}),(0,a.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,a.jsx)("span",{className:"truncate text-sm font-semibold text-text-main",children:e}),t&&(0,a.jsx)("span",{className:"truncate text-xs text-text-muted",children:t})]})]}),o&&(0,a.jsx)("div",{className:"min-w-0 flex-1 lg:px-3",children:o}),(0,a.jsx)("button",{type:"button",onClick:l,className:"self-start text-[10px] font-medium uppercase tracking-wide text-text-muted transition-colors hover:text-text-main lg:self-center","aria-expanded":s,children:s?"Collapse":"Expand"})]}),s&&(0,a.jsx)("div",{className:`border-t border-border ${i}`,children:n})]})}}},e=>{e.O(0,[2574,3862,1051,5772,1321,5497,6069,5095,8441,3794,7358],()=>e(e.s=27091)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7537],{12657:(e,t,s)=>{Promise.resolve().then(s.bind(s,45699))},45699:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>d});var a=s(95155),r=s(12115),l=s(35497);function n(e){return Array.isArray(e)?e.length:0}function i({label:e,value:t,skipValue:s=!1}){return(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase text-text-muted/70",children:e}),(0,a.jsx)("p",{className:"mt-1 break-words text-sm text-text-main","data-i18n-skip":s?"true":void 0,children:t||"None"})]})}function o({icon:e,label:t,value:s,tone:r="default"}){let l={default:"text-text-main",warning:"text-yellow-600 dark:text-yellow-400",error:"text-red-600 dark:text-red-400",success:"text-green-600 dark:text-green-400"}[r];return(0,a.jsxs)("div",{className:"flex min-h-20 items-center gap-3 rounded-lg border border-border-subtle bg-bg px-4 py-3",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[22px] ${l}`,children:e}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted",children:t}),(0,a.jsx)("p",{className:`mt-1 text-lg font-semibold ${l}`,children:s})]})]})}function d(){let[e,t]=(0,r.useState)(null),[s,d]=(0,r.useState)(!0),[c,x]=(0,r.useState)(""),m=(0,r.useCallback)(async({setBusy:e=!0}={})=>{e&&d(!0),e&&x("");try{let e=await fetch("/api/network-analysis",{cache:"no-store"}),s=await e.json();if(!e.ok)throw Error(s.error||"Failed to load diagnostics");t(s)}catch(e){x(e.message||"Failed to load diagnostics")}finally{d(!1)}},[]);(0,r.useEffect)(()=>{fetch("/api/auth/me").then(e=>e.json()).then(e=>{"sub_user"===e.role&&(window.location.href="/dashboard/usage")}).catch(()=>{});let e=setTimeout(()=>{m({setBusy:!1})},0);return()=>clearTimeout(e)},[m]);let u=(0,r.useMemo)(()=>{var t;return"healthy"===(t=e?.verdict)?{label:"Healthy",variant:"success",title:"No transport errors in sampled logs",detail:"The current app log window does not show route loss, DNS failures, proxy timeout, or socket reset patterns."}:"upstream_or_socket_instability"===t?{label:"Socket resets",variant:"warning",title:"Upstream sockets were interrupted",detail:"Requests were reset while in flight. This can come from upstream, Wi-Fi churn, or an intermediate proxy."}:{label:"External route instability",variant:"warning",title:"Network path instability is affecting OpenrouterX",detail:"The log pattern points to local route loss, transient TLS disconnects, or the configured upstream proxy timing out before API calls complete."}},[e?.verdict]),p=e?.logs?.errorCounts||{},b=e?.project||{},h=b.outboundProxy||{},g=b.mitm||{};return(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)(l.Ex,{variant:u.variant,dot:!0,children:u.label}),e?.generatedAt&&(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:[(0,a.jsx)("span",{children:"Updated"})," ",(0,a.jsx)("span",{"data-i18n-skip":"true",children:function(e){if(!e)return"Unknown";let t=new Date(e);return Number.isNaN(t.getTime())?"Unknown":t.toLocaleString()}(e.generatedAt)})]})]}),(0,a.jsx)("h2",{className:"mt-2 text-xl font-semibold text-text-main",children:u.title}),(0,a.jsx)("p",{className:"mt-1 max-w-3xl text-sm text-text-muted",children:u.detail})]}),(0,a.jsx)(l.$n,{icon:"refresh",variant:"outline",loading:s,onClick:m,children:"Refresh"})]}),c&&(0,a.jsx)("div",{className:"rounded-lg border border-red-500/20 bg-red-500/10 p-4 text-sm text-red-600 dark:text-red-400",children:c}),(0,a.jsxs)("div",{className:"grid gap-3 md:grid-cols-2 xl:grid-cols-4",children:[(0,a.jsx)(o,{icon:"route",label:"Route loss",value:p.EADDRNOTAVAIL||0,tone:(p.EADDRNOTAVAIL||0)>0?"warning":"success"}),(0,a.jsx)(o,{icon:"sync_problem",label:"Socket resets",value:(p.ECONNRESET||0)+(p.TLS_DISCONNECTED||0),tone:p.ECONNRESET||p.TLS_DISCONNECTED?"warning":"success"}),(0,a.jsx)(o,{icon:"vpn_lock",label:"Proxy failures",value:p.PROXY_FAILED||0,tone:(p.PROXY_FAILED||0)>0?"warning":"success"}),(0,a.jsx)(o,{icon:"dns",label:"DNS errors",value:(p.ENOTFOUND||0)+(p.EAI_AGAIN||0),tone:p.ENOTFOUND||p.EAI_AGAIN?"error":"success"})]}),(0,a.jsxs)("div",{className:"grid gap-5 xl:grid-cols-[1fr_1.1fr]",children:[(0,a.jsx)(l.Zp,{title:"Project Network Scope",icon:"hub",padding:"md",children:(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(i,{label:"System proxy",value:b.systemProxyEnabled?"Enabled outside OpenrouterX":"No macOS system proxy detected"}),(0,a.jsx)(i,{label:"Risk level",value:b.riskLevel||"Unknown"}),(0,a.jsx)(i,{label:"Outbound proxy",value:h.enabled?h.url:"Disabled",skipValue:h.enabled}),(0,a.jsx)(i,{label:"Outbound scope",value:"targeted"===h.scope?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"Targeted"}),": ",(0,a.jsx)("span",{"data-i18n-skip":"true",children:(h.targets||[]).join(", ")})]}):h.scope}),(0,a.jsx)(i,{label:"MITM",value:g.enabled?"Enabled":"Disabled"}),(0,a.jsx)(i,{label:"MITM DNS tools",value:n(g.enabledTools)?g.enabledTools.join(", "):"None",skipValue:n(g.enabledTools)>0}),(0,a.jsx)(i,{label:"Cloudflare tunnel",value:b.tunnels?.cloudflareEnabled?"Enabled":"Disabled"}),(0,a.jsx)(i,{label:"Tailscale",value:b.tunnels?.tailscaleEnabled?"Enabled":"Disabled"})]})}),(0,a.jsxs)(l.Zp,{title:"Current Machine State",icon:"monitor_heart",padding:"md",children:[(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(i,{label:"Platform",value:e?.system?.platform,skipValue:!0}),(0,a.jsx)(i,{label:"Hostname",value:e?.system?.hostname,skipValue:!0}),(0,a.jsx)(i,{label:"Default route",value:(e?.system?.route?.output||"").match(/interface:\s*(\S+)/)?.[1]||"Unknown",skipValue:!0}),(0,a.jsx)(i,{label:"Wi-Fi status",value:(e?.system?.ifconfig?.output||"").match(/status:\s*(\S+)/)?.[1]||"Unknown"})]}),(0,a.jsxs)("details",{className:"mt-4 rounded-lg border border-border-subtle bg-bg p-3",children:[(0,a.jsx)("summary",{className:"cursor-pointer text-sm font-semibold text-text-main",children:"Raw DNS and proxy snapshot"}),(0,a.jsx)("pre",{className:"mt-3 max-h-64 overflow-auto whitespace-pre-wrap break-words text-xs text-text-muted",children:["--- scutil --proxy ---",e?.system?.proxy?.output||"Unavailable","--- scutil --dns ---",e?.system?.dns?.output||"Unavailable"].join("\n")})]})]})]}),(0,a.jsx)(l.Zp,{title:"Findings",icon:"fact_check",padding:"md",children:(0,a.jsx)("div",{className:"space-y-3",children:(e?.logs?.findings||[]).map((e,t)=>(0,a.jsxs)("div",{className:"rounded-lg border border-border-subtle bg-bg p-4",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)(l.Ex,{variant:"warning"===e.severity?"warning":"success"===e.severity?"success":"info",children:e.severity}),(0,a.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:e.title})]}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted",children:e.detail})]},`${e.title}-${t}`))})}),(0,a.jsx)(l.Zp,{title:"Network Error Timeline",icon:"timeline",padding:"md",children:0===(e?.logs?.timeline||[]).length?(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"No network transport errors in the sampled logs."}):(0,a.jsx)("div",{className:"max-h-[520px] overflow-auto rounded-lg border border-border-subtle",children:(e?.logs?.timeline||[]).slice().reverse().map((e,t)=>(0,a.jsxs)("div",{className:"border-b border-border-subtle bg-bg p-3 last:border-b-0",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"font-mono text-xs text-text-muted","data-i18n-skip":"true",children:e.time||"unknown"}),(0,a.jsx)(l.Ex,{size:"sm",variant:"mitm"===e.source?"primary":"default",children:e.source}),e.categories.map(e=>(0,a.jsx)(l.Ex,{size:"sm",variant:"EADDRNOTAVAIL"===e?"warning":"default",className:"uppercase","data-i18n-skip":"true",children:e},e))]}),(0,a.jsx)("p",{className:"mt-2 break-words font-mono text-xs text-text-muted","data-i18n-skip":"true",children:e.message})]},`${e.time}-${t}`))})})]})}}},e=>{e.O(0,[2574,3862,1051,1321,5497,8441,3794,7358],()=>e(e.s=12657)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{64561:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>b});var a=s(95155),r=s(12115),o=s(35497),i=s(1620),l=s(31474),n=s(90620);let d=[{id:"openai",label:"OpenAI / Codex",targets:["api.openai.com","chatgpt.com"]},{id:"anthropic",label:"Anthropic",targets:["api.anthropic.com"]},{id:"google",label:"Google / Gemini",targets:["generativelanguage.googleapis.com","aiplatform.googleapis.com"]},{id:"antigravity",label:"Antigravity",targets:["cloudcode-pa.googleapis.com","daily-cloudcode-pa.googleapis.com","daily-cloudcode-pa.sandbox.googleapis.com"]},{id:"copilot",label:"GitHub Copilot",targets:["api.individual.githubcopilot.com"]},{id:"openrouter",label:"OpenRouter",targets:["openrouter.ai","api.openrouter.ai"]},{id:"cursor",label:"Cursor",targets:["api2.cursor.sh"]},{id:"kiro",label:"Kiro / AWS",targets:["q.us-east-1.amazonaws.com","codewhisperer.us-east-1.amazonaws.com"]}],c=new Set(d.flatMap(e=>e.targets));function m(e){return Array.from(new Set(e.map(e=>String(e||"").trim()).filter(Boolean)))}function x(e,t,s){let a=String(e||"").trim();if(!a||!t&&!s)return a;try{let e=/^[a-z][a-z0-9+.-]*:\/\//i.test(a),r=new URL(e?a:`http://${a}`);return r.username=t||"",r.password=s||"",r.toString()}catch{return a}}function u(e){try{return decodeURIComponent(e||"")}catch{return e||""}}function p(e){let t=String(e||"").trim();if(!t)return{proxyUrl:"",username:"",password:""};try{let e=/^[a-z][a-z0-9+.-]*:\/\//i.test(t),s=new URL(e?t:`http://${t}`),a=u(s.username),r=u(s.password);s.username="",s.password="";let o=e?s.toString():s.toString().replace(/^http:\/\//i,"");return"/"!==s.pathname||s.search||s.hash||(o=o.replace(/\/$/,"")),{proxyUrl:o,username:a,password:r}}catch{return{proxyUrl:t,username:"",password:""}}}function b(){let{theme:e,setTheme:t,isDark:s}=(0,i.D)(),[u,b]=(0,r.useState)({fallbackStrategy:"fill-first"}),[h,g]=(0,r.useState)(!0),[y,f]=(0,r.useState)({current:"",new:"",confirm:""}),[j,w]=(0,r.useState)({type:"",message:""}),[N,v]=(0,r.useState)(!1),[P,C]=(0,r.useState)(!1),[S,k]=(0,r.useState)({type:"",message:""}),[O,I]=(0,r.useState)({authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC"}),[U,L]=(0,r.useState)(""),[T,R]=(0,r.useState)({type:"",message:""}),[A,D]=(0,r.useState)(!1),[M,$]=(0,r.useState)(!1),[E,F]=(0,r.useState)({type:"",message:""}),[q,J]=(0,r.useState)("/api/auth/oidc/callback"),[H,_]=(0,r.useState)(!1),z=(0,r.useRef)(null),[K,B]=(0,r.useState)({outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:"",outboundProxyTargets:[],outboundProxyCustomTargets:"",outboundProxyUsername:"",outboundProxyPassword:"",outboundProxySavedUsername:"",outboundProxySavedPassword:""}),[Z,G]=(0,r.useState)({type:"",message:""}),[W,Q]=(0,r.useState)(!1),[V,Y]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch("/api/auth/me").then(e=>e.json()).then(e=>{"sub_user"===e.role&&(window.location.href="/dashboard/usage")}).catch(()=>{})},[]),(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{let t=p(e?.outboundProxyUrl);b(e),I({authMode:e?.authMode||"password",oidcIssuerUrl:e?.oidcIssuerUrl||"",oidcClientId:e?.oidcClientId||"",oidcScopes:e?.oidcScopes||"openid profile email",oidcLoginLabel:e?.oidcLoginLabel||"Sign in with OIDC"}),L(""),(e?.authMode==="oidc"||e?.authMode==="both")&&_(!0),B({outboundProxyEnabled:e?.outboundProxyEnabled===!0,outboundProxyUrl:t.proxyUrl,outboundNoProxy:e?.outboundNoProxy||"",outboundProxyTargets:Array.isArray(e?.outboundProxyTargets)?e.outboundProxyTargets:[],outboundProxyCustomTargets:Array.isArray(e?.outboundProxyTargets)?e.outboundProxyTargets.filter(e=>!c.has(e)).join(","):"",outboundProxyUsername:t.username,outboundProxyPassword:"",outboundProxySavedUsername:t.username,outboundProxySavedPassword:t.password}),g(!1)}).catch(e=>{console.error("Failed to fetch settings:",e),g(!1)})},[]),(0,r.useEffect)(()=>{J(`${window.location.origin}/api/auth/oidc/callback`)},[]);let X=async e=>{if(e.preventDefault(),!0!==u.outboundProxyEnabled)return;Q(!0),G({type:"",message:""});let t=es(),s=K.outboundProxyPassword||(K.outboundProxyUsername===K.outboundProxySavedUsername?K.outboundProxySavedPassword:""),a=x(K.outboundProxyUrl,K.outboundProxyUsername,s);try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyUrl:a,outboundProxyTargets:t})}),s=await e.json();if(e.ok){let e=p(s?.outboundProxyUrl||a);b(e=>({...e,...s})),B(a=>({...a,outboundProxyUrl:e.proxyUrl,outboundProxyTargets:Array.isArray(s?.outboundProxyTargets)?s.outboundProxyTargets:t,outboundProxyUsername:e.username,outboundProxyPassword:"",outboundProxySavedUsername:e.username,outboundProxySavedPassword:e.password})),G({type:"success",message:"Proxy settings applied"})}else G({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){G({type:"error",message:"An error occurred"})}finally{Q(!1)}},ee=async()=>{if(!0!==u.outboundProxyEnabled)return;let e=K.outboundProxyPassword||(K.outboundProxyUsername===K.outboundProxySavedUsername?K.outboundProxySavedPassword:""),t=x(K.outboundProxyUrl,K.outboundProxyUsername,e);if(!t)return void G({type:"error",message:"Please enter a Proxy URL to test"});Y(!0),G({type:"",message:""});try{let e=await fetch("/api/settings/proxy-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyUrl:t})}),s=await e.json();e.ok&&s?.ok?G({type:"success",message:`Proxy test OK (${s.status}) in ${s.elapsedMs}ms`}):G({type:"error",message:s?.error||"Proxy test failed"})}catch(e){G({type:"error",message:"An error occurred"})}finally{Y(!1)}},et=async e=>{Q(!0),G({type:"",message:""});try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyEnabled:e})}),s=await t.json();t.ok?(b(e=>({...e,...s})),B(e=>({...e,outboundProxyEnabled:s?.outboundProxyEnabled===!0})),G({type:"success",message:e?"Proxy enabled":"Proxy disabled"})):G({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){G({type:"error",message:"An error occurred"})}finally{Q(!1)}},es=()=>m([...Array.isArray(K.outboundProxyTargets)?K.outboundProxyTargets:[],...m(String(K.outboundProxyCustomTargets||"").split(","))]),ea=async e=>{if(e.preventDefault(),y.new!==y.confirm)return void w({type:"error",message:"Passwords do not match"});v(!0),w({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:y.current,newPassword:y.new})}),t=await e.json();e.ok?(w({type:"success",message:"Password updated successfully"}),f({current:"",new:"",confirm:""})):w({type:"error",message:t.error||"Failed to update password"})}catch(e){w({type:"error",message:"An error occurred"})}finally{v(!1)}},er=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fallbackStrategy:e})})).ok&&b(t=>({...t,fallbackStrategy:e}))}catch(e){console.error("Failed to update settings:",e)}},eo=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategy:e})})).ok&&b(t=>({...t,comboStrategy:e}))}catch(e){console.error("Failed to update combo strategy:",e)}},ei=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stickyRoundRobinLimit:t})})).ok&&b(e=>({...e,stickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update sticky limit:",e)}},el=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStickyRoundRobinLimit:t})})).ok&&b(e=>({...e,comboStickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update combo sticky limit:",e)}},en=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireLogin:e})})).ok&&b(t=>({...t,requireLogin:e}))}catch(e){console.error("Failed to update require login:",e)}},ed=(e,t)=>{I(s=>({...s,[e]:t}))},ec=async(e=O.authMode||"password")=>{let t=O.oidcIssuerUrl.trim(),s=O.oidcClientId.trim(),a=O.oidcScopes.trim(),r=O.oidcLoginLabel.trim(),o=U.trim();if("password"!==e&&(!t||!s||!o)&&!u.oidcConfigured)return void R({type:"error",message:"Issuer URL, client ID, and client secret are required to enable OIDC."});D(!0),R({type:"",message:""}),F({type:"",message:""});try{let i={authMode:e,oidcIssuerUrl:t,oidcClientId:s,oidcScopes:a||"openid profile email",oidcLoginLabel:r||"Sign in with OIDC"};o&&(i.oidcClientSecret=o);let l=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),n=await l.json();l.ok?(b(e=>({...e,...n})),I({authMode:n?.authMode||e,oidcIssuerUrl:n?.oidcIssuerUrl||t,oidcClientId:n?.oidcClientId||s,oidcScopes:n?.oidcScopes||a||"openid profile email",oidcLoginLabel:n?.oidcLoginLabel||r||"Sign in with OIDC"}),L(""),R({type:"success",message:"oidc"===e?"OIDC login enabled":"both"===e?"Password and OIDC login enabled":"OIDC settings saved"})):R({type:"error",message:n.error||"Failed to save OIDC settings"})}catch(e){R({type:"error",message:"An error occurred"})}finally{D(!1)}},em=async()=>{let e=O.oidcIssuerUrl.trim(),t=O.oidcClientId.trim(),s=O.oidcScopes.trim(),a=U.trim();if(!e||!t)return void F({type:"error",message:"Issuer URL and client ID are required to test the connection."});$(!0),R({type:"",message:""}),F({type:"",message:""});try{let r=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({authMode:O.authMode||u.authMode||"password",oidcIssuerUrl:e,oidcClientId:t,oidcScopes:s||"openid profile email",oidcLoginLabel:O.oidcLoginLabel.trim()||"Sign in with OIDC",...a?{oidcClientSecret:a}:{}})}),o=await r.json().catch(()=>({}));if(!r.ok)return void F({type:"error",message:o.error||"Failed to save OIDC settings before testing"});let i=await fetch("/api/auth/oidc/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({issuerUrl:o.oidcIssuerUrl||e,clientId:o.oidcClientId||t,scopes:o.oidcScopes||s||"openid profile email"})}),l=await i.json().catch(()=>({}));if(i.ok&&l?.ok){let e=l.clientSecretTested?!0===l.clientSecretValid?`Connection OK. Discovery loaded from ${l.issuerUrl}. Client secret validated too.`:`Connection OK. Discovery loaded from ${l.issuerUrl}. Client secret was not checked.`:`Connection OK. Discovery loaded from ${l.issuerUrl}.`;F({type:"success",message:e})}else F({type:"error",message:l.error||"OIDC connection test failed"})}catch(e){F({type:"error",message:"An error occurred"})}finally{$(!1)}},ex=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enableObservability:e})})).ok&&b(t=>({...t,enableObservability:e}))}catch(e){console.error("Failed to update enableObservability:",e)}},eu=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)return;let t=await e.json();b(t)}catch(e){console.error("Failed to reload settings:",e)}},ep=async()=>{C(!0),k({type:"",message:""});try{let e=await fetch("/api/settings/database");if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(t.error||"Failed to export database")}let t=await e.json(),s=JSON.stringify(t,null,2),a=new Blob([s],{type:"application/json"}),r=URL.createObjectURL(a),o=document.createElement("a"),i=new Date().toISOString().replace(/[.:]/g,"-");o.href=r,o.download=`openrouterx-backup-${i}.json`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r),k({type:"success",message:"Database backup downloaded"})}catch(e){k({type:"error",message:e.message||"Failed to export database"})}finally{C(!1)}},eb=async e=>{let t=e.target.files?.[0];if(t){C(!0),k({type:"",message:""});try{let e=await t.text(),s=JSON.parse(e),a=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),r=await a.json().catch(()=>({}));if(!a.ok)throw Error(r.error||"Failed to import database");await eu(),k({type:"success",message:"Database imported successfully"})}catch(e){k({type:"error",message:e.message||"Invalid backup file"})}finally{z.current&&(z.current.value=""),C(!1)}}},eh=!0===u.enableObservability;return(0,a.jsx)("div",{className:"max-w-2xl mx-auto px-4 sm:px-0",children:(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"size-10 sm:size-12 rounded-lg bg-green-500/10 text-green-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl sm:text-2xl",children:"computer"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold",children:"Local Mode"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Running on your machine"})]})]}),(0,a.jsx)("div",{className:"inline-flex p-1 rounded-lg bg-black/5 dark:bg-white/5 w-full sm:w-auto",children:["light","dark","system"].map(s=>(0,a.jsxs)("button",{type:"button",onClick:()=>t(s),className:(0,l.cn)("flex items-center justify-center gap-1 sm:gap-1.5 px-2 sm:px-3 py-1.5 rounded-md font-medium transition-all flex-1 sm:flex-initial",e===s?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"light"===s?"light_mode":"dark"===s?"dark_mode":"contrast"}),(0,a.jsx)("span",{className:"capitalize text-xs sm:text-sm",children:s})]},s))})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 rounded-lg bg-bg border border-border gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Database Location"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted font-mono break-all",children:u.databasePath||"~/.openrouterx/db.json"})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(o.$n,{variant:"secondary",icon:"download",onClick:ep,loading:P,className:"w-full sm:w-auto",children:"Download Backup"}),(0,a.jsx)(o.$n,{variant:"outline",icon:"upload",onClick:()=>z.current?.click(),disabled:P,className:"w-full sm:w-auto",children:"Import Backup"}),(0,a.jsx)("input",{ref:z,type:"file",accept:"application/json,.json",className:"hidden",onChange:eb})]}),S.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===S.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:S.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"shield"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Security"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Require login"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"When ON, dashboard requires password. When OFF, access without login."})]}),(0,a.jsx)(o.lM,{checked:!0===u.requireLogin,onChange:()=>en(!u.requireLogin),disabled:h})]}),!0===u.requireLogin&&(0,a.jsxs)("form",{onSubmit:ea,className:"flex flex-col gap-4 pt-4 border-t border-border/50",children:[u.hasPassword&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Current Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Enter current password",value:y.current,onChange:e=>f({...y,current:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"New Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Enter new password",value:y.new,onChange:e=>f({...y,new:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Confirm New Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Confirm new password",value:y.confirm,onChange:e=>f({...y,confirm:e.target.value}),required:!0})]})]}),j.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===j.type?"text-red-500":"text-green-500"}`,children:j.message}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(o.$n,{type:"submit",variant:"primary",loading:N,className:"w-full sm:w-auto",children:u.hasPassword?"Update Password":"Set Password"})})]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>_(e=>!e),className:"w-full flex items-center gap-3 text-left",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-indigo-500/10 text-indigo-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"OIDC Dashboard Login"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"oidc"===u.authMode?"OIDC active":"both"===u.authMode?"Password + OIDC active":"Optional SSO via Authentik/Keycloak/Google"})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted shrink-0",children:H?"expand_less":"expand_more"})]}),H&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 mt-4",children:[(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Use Authentik or any OIDC provider to sign in to the dashboard. You can enable password-only, OIDC-only, or both for the dashboard; model API access still uses API keys."}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Auth Mode"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{value:"password",title:"Password only",desc:"Keep the legacy password login."},{value:"oidc",title:"OIDC only",desc:"Require OIDC for dashboard access."},{value:"both",title:"Both",desc:"Allow either password or OIDC."}].map(e=>{let t=O.authMode===e.value;return(0,a.jsxs)("button",{type:"button",onClick:()=>ed("authMode",e.value),className:(0,l.cn)("text-left rounded-lg border p-3 transition-colors",t?"border-primary bg-primary/5":"border-border bg-bg hover:bg-black/5 dark:hover:bg-white/5"),disabled:h||A,children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:e.title}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted mt-1",children:e.desc})]},e.value)})})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Issuer URL"}),(0,a.jsx)(o.pd,{placeholder:"https://auth.example.com/application/o/9router/",value:O.oidcIssuerUrl,onChange:e=>ed("oidcIssuerUrl",e.target.value),disabled:h||A})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client ID"}),(0,a.jsx)(o.pd,{placeholder:"9router-dashboard",value:O.oidcClientId,onChange:e=>ed("oidcClientId",e.target.value),disabled:h||A})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client Secret"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Leave blank to keep existing secret",value:U,onChange:e=>L(e.target.value),disabled:h||A}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"This value is write-only after saving."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Scopes"}),(0,a.jsx)(o.pd,{placeholder:"openid profile email",value:O.oidcScopes,onChange:e=>ed("oidcScopes",e.target.value),disabled:h||A})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(o.pd,{placeholder:"Sign in with OIDC",value:O.oidcLoginLabel,onChange:e=>ed("oidcLoginLabel",e.target.value),disabled:h||A})]})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg p-3 text-xs sm:text-sm text-text-muted",children:[(0,a.jsx)("p",{className:"font-medium text-text-main mb-1",children:"Redirect URI"}),(0,a.jsx)("code",{className:"block break-all font-mono",children:q})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(o.$n,{type:"button",variant:"primary",loading:A,onClick:()=>ec(),className:"w-full sm:w-auto",children:"Save auth mode"}),(0,a.jsx)(o.$n,{type:"button",variant:"outline",loading:M,onClick:em,className:"w-full sm:w-auto",children:"Test connection"})]}),E.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===E.type?"text-red-500":"text-green-500"}`,children:E.message}),T.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===T.type?"text-red-500":"text-green-500"}`,children:T.message}),"oidc"===u.authMode&&(0,a.jsx)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:"OIDC login is currently active. Password login is disabled until you switch back."}),"both"===u.authMode&&(0,a.jsx)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:"Password and OIDC login are both active."})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-blue-500/10 text-blue-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"route"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Routing Strategy"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through accounts to distribute load"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===u.fallbackStrategy,onChange:()=>er("round-robin"===u.fallbackStrategy?"fill-first":"round-robin"),disabled:h})]}),"round-robin"===u.fallbackStrategy&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Sticky Limit"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Calls per account before switching"})]}),(0,a.jsx)(o.pd,{type:"number",min:"1",max:"10",value:u.stickyRoundRobinLimit||3,onChange:e=>ei(e.target.value),disabled:h,className:"w-16 sm:w-20 text-center shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Combo Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through providers in combos instead of always starting with first"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===u.comboStrategy,onChange:()=>eo("round-robin"===u.comboStrategy?"fallback":"round-robin"),disabled:h})]}),"round-robin"===u.comboStrategy&&(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Combo Sticky Limit"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Calls per combo model before switching"})]}),(0,a.jsx)(o.pd,{type:"number",min:"1",max:"100",value:u.comboStickyRoundRobinLimit||1,onChange:e=>el(e.target.value),disabled:h,className:"w-20 text-center"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted italic pt-2 border-t border-border/50",children:["round-robin"===u.fallbackStrategy?`Currently distributing requests across all available accounts with ${u.stickyRoundRobinLimit||3} calls per account.`:"Currently using accounts in priority order (Fill First).","round-robin"===u.comboStrategy?` Combos rotate after ${u.comboStickyRoundRobinLimit||1} call${1===(u.comboStickyRoundRobinLimit||1)?"":"s"} per model.`:" Combos always start with their first model."]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/10 text-purple-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"wifi"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Network"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Outbound Proxy"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Enable proxy for OAuth + provider outbound requests."})]}),(0,a.jsx)(o.lM,{checked:!0===u.outboundProxyEnabled,onChange:()=>et(!0!==u.outboundProxyEnabled),disabled:h||W})]}),!0===u.outboundProxyEnabled&&(0,a.jsxs)("form",{onSubmit:X,className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy URL"}),(0,a.jsx)(o.pd,{placeholder:"socks5://127.0.0.1:1080",value:K.outboundProxyUrl,onChange:e=>B(t=>({...t,outboundProxyUrl:e.target.value})),disabled:h||W}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Supports http, https, socks4, socks4a, socks5, and socks5h."})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy Username"}),(0,a.jsx)(o.pd,{placeholder:"optional",value:K.outboundProxyUsername,onChange:e=>B(t=>({...t,outboundProxyUsername:e.target.value})),disabled:h||W})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:K.outboundProxySavedPassword?"saved (hidden)":"optional",value:K.outboundProxyPassword,onChange:e=>B(t=>({...t,outboundProxyPassword:e.target.value})),disabled:h||W})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Use Proxy For"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Default is direct. Checked targets use the proxy."})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2",children:d.map(e=>{let t=new Set(K.outboundProxyTargets||[]),s=e.targets.every(e=>t.has(e));return(0,a.jsxs)("label",{className:(0,l.cn)("flex items-center gap-2 rounded-lg border px-3 py-2 text-sm cursor-pointer transition-colors",s?"border-primary bg-primary/5 text-text-main":"border-border bg-surface text-text-muted hover:border-primary/50"),children:[(0,a.jsx)("input",{type:"checkbox",checked:s,onChange:()=>{B(t=>{let s=new Set(t.outboundProxyTargets||[]),a=e.targets.every(e=>s.has(e));for(let t of e.targets)a?s.delete(t):s.add(t);return{...t,outboundProxyTargets:Array.from(s)}})},disabled:h||W,className:"h-4 w-4 accent-primary"}),(0,a.jsx)("span",{className:"truncate",children:e.label})]},e.id)})}),(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Custom Proxy Hosts"}),(0,a.jsx)(o.pd,{placeholder:"api.example.com,.example.org",value:K.outboundProxyCustomTargets,onChange:e=>B(t=>({...t,outboundProxyCustomTargets:e.target.value})),disabled:h||W})]}),(0,a.jsxs)("div",{className:"pt-2 border-t border-border/50 flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,a.jsx)(o.$n,{type:"button",variant:"secondary",loading:V,disabled:h||W,onClick:ee,className:"w-full sm:w-auto",children:"Test proxy URL"}),(0,a.jsx)(o.$n,{type:"submit",variant:"primary",loading:W,className:"w-full sm:w-auto",children:"Apply"})]})]}),Z.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===Z.type?"text-red-500":"text-green-500"} pt-2 border-t border-border/50`,children:Z.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"monitoring"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Observability"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Enable Observability"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Record request details for inspection in the logs view"})]}),(0,a.jsx)(o.lM,{checked:eh,onChange:ex,disabled:h})]})]}),(0,a.jsxs)("div",{className:"text-center text-xs sm:text-sm text-text-muted py-4",children:[(0,a.jsxs)("p",{children:[n.vQ.name," v",n.vQ.version]}),(0,a.jsx)("p",{className:"mt-1",children:"Local Mode - All data stored on your machine"})]})]})})}},95747:(e,t,s)=>{Promise.resolve().then(s.bind(s,64561))}},e=>{e.O(0,[2574,3862,1051,1321,5497,8441,3794,7358],()=>e(e.s=95747)),_N_E=e.O()}]);
@@ -1,3 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{7570:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>$});var a=s(95155),i=s(12115),r=s(73321),l=s(98500),o=s.n(l),n=s(5772),d=s(35497),c=s(52679),p=s(28777),m=s(11059);let x=new Map;async function u(e){if(!e?.url||!e?.type)return[];let t=x.get(e.url);if(t&&Date.now()<t.expiresAt)return t.data;try{let t=new URLSearchParams({url:e.url,type:e.type}),s=await fetch(`/api/providers/suggested-models?${t}`);if(!s.ok)return[];let a=(await s.json()).data??[];return x.set(e.url,{data:a,expiresAt:Date.now()+6e5}),a}catch{return[]}}var h=s(14051),f=s.n(h);function g({model:e,fullModel:t,displayModel:s,alias:i,copied:r,onCopy:l,testStatus:o,isCustom:n,isFree:d,onDeleteAlias:c,onTest:p,isTesting:m,onDisable:x}){let u="ok"===o?"#22c55e":"error"===o?"#ef4444":void 0;return(0,a.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===o?"border-green-500/40":"error"===o?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:u?{color:u}:void 0,children:"ok"===o?"check_circle":"error"===o?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,a.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:s||t}),e.name&&(0,a.jsx)("span",{className:"truncate pl-1 text-[9px] italic text-text-muted/70",children:e.name})]}),p&&(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:p,disabled:m,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${m?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:m?"Testing...":"Test"})]}),(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:()=>l(t,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:r===`model-${e.id}`?"check":"content_copy"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:r===`model-${e.id}`?"Copied!":"Copy"})]}),n?(0,a.jsx)("button",{onClick:c,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):x?(0,a.jsx)("button",{onClick:x,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function y({modelId:e,fullModel:t,copied:s,onCopy:i,onDeleteAlias:r,onTest:l,testStatus:o,isTesting:n}){let d="ok"===o?"#22c55e":"error"===o?"#ef4444":void 0;return(0,a.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===o?"border-green-500/40":"error"===o?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:d?{color:d}:void 0,children:"ok"===o?"check_circle":"error"===o?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,a.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:()=>i(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:s===`model-${e}`?"check":"content_copy"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:s===`model-${e}`?"Copied!":"Copy"})]}),l&&(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:l,disabled:n,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:n?{animation:"spin 1s linear infinite"}:void 0,children:n?"progress_activity":"science"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:n?"Testing...":"Test"})]})]})]}),(0,a.jsx)("button",{onClick:r,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function b({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:s,copied:r,onCopy:l,onSetAlias:o,onDeleteAlias:n,connections:c,isAnthropic:p}){let[m,x]=(0,i.useState)(""),[u,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),[v,j]=(0,i.useState)(null),[N,w]=(0,i.useState)({}),k=async t=>{if(!v){j(t);try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),a=await s.json();w(e=>({...e,[t]:a.ok?"ok":"error"}))}catch{w(e=>({...e,[t]:"error"}))}finally{j(null)}}},C=Object.entries(s).filter(([,t])=>t.startsWith(`${e}/`)).map(([t,s])=>({modelId:s.replace(`${e}/`,""),fullModel:s,alias:t})),S=a=>{let i,r=`${e}/${a}`;if(Object.values(s).includes(r))return null;let l=(i=a.split("/"))[i.length-1];if(!s[l])return l;let o=`${t}-${l}`;return s[o]?null:o},$=async()=>{if(!m.trim()||u)return;let t=m.trim(),s=S(t);if(!s)return void alert("All suggested aliases already exist. Please choose a different model or remove conflicting aliases.");h(!0);try{await o(t,s,e),x("")}catch(e){console.log("Error adding model:",e)}finally{h(!1)}},A=async()=>{if(f)return;let t=c.find(e=>!1!==e.isActive);if(t){g(!0);try{let s=await fetch(`/api/providers/${t.id}/models`),a=await s.json();if(!s.ok)return void alert(a.error||"Failed to import models");let i=a.models||[];if(0===i.length)return void alert("No models returned from /models.");let r=0;for(let t of i){let s=t.id||t.name||t.model;if(!s)continue;let a=S(s);a&&(await o(s,a,e),r+=1)}0===r&&alert("No new models were added.")}catch(e){console.log("Error importing models:",e)}finally{g(!1)}}},T=c.some(e=>!1!==e.isActive);return(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",p?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,a.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,a.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,a.jsx)("input",{id:"new-compatible-model-input",type:"text",value:m,onChange:e=>x(e.target.value),onKeyDown:e=>"Enter"===e.key&&$(),placeholder:p?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:$,disabled:!m.trim()||u,children:u?"Adding...":"Add"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"download",onClick:A,disabled:!T||f,children:f?"Importing...":"Import from /models"})]}),!T&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),C.length>0&&(0,a.jsx)("div",{className:"flex flex-col gap-3",children:C.map(({modelId:e,fullModel:s,alias:i})=>(0,a.jsx)(y,{modelId:e,fullModel:`${t}/${e}`,copied:r,onCopy:l,onDeleteAlias:()=>n(i),onTest:c.length>0?()=>k(e):void 0,testStatus:N[e],isTesting:v===e},s))})]})}function v({until:e}){let[t,s]=(0,i.useState)("");return((0,i.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void s("");let a=Math.floor(t/1e3);if(a<60)s(`${a}s`);else if(a<3600)s(`${Math.floor(a/60)}m ${a%60}s`);else{let e=Math.floor(a/3600),t=Math.floor(a%3600/60);s(`${e}h ${t}m`)}};t();let a=setInterval(t,1e3);return()=>clearInterval(a)},[e]),t)?(0,a.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}function j({connection:e,proxyPools:t,isOAuth:s,isFirst:r,isLast:l,onMoveUp:o,onMoveDown:n,onToggleActive:c,onUpdateProxy:p,onEdit:m,onDelete:x}){let[u,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),y=(0,i.useRef)(null),b=new Map((t||[]).map(e=>[e.id,e])),N=e.providerSpecificData?.proxyPoolId||null,w=N?b.get(N):null,k=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,C=!!N||k,S=w?`Pool: ${w.name}`:N?`Pool: ${N} (inactive/missing)`:k?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",$="";if(w?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=w?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);$=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{$=t}}let A=w?.noProxy||e.providerSpecificData?.connectionNoProxy||"",T="default";w?.isActive===!0?T="success":(N||k)&&(T="error"),(0,i.useEffect)(()=>{if(!u)return;let e=e=>{y.current&&!y.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]);let O=async e=>{g(!0);try{await p("__none__"===e?null:e)}finally{g(!1),h(!1)}},P=e=>"string"==typeof e&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),I=s?P(e.email)?e.email:P(e.name)?e.name:e.name||e.email||e.displayName||"OAuth Account":e.name,[E,_]=(0,i.useState)(!1),R=Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>!!e).sort()[0]||null;(0,i.useEffect)(()=>{let t=()=>{_(!!Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>e&&new Date(e).getTime()>Date.now()).sort()[0])};t();let s=R?setInterval(t,1e3):null;return()=>{s&&clearInterval(s)}},[R]);let D="unavailable"!==e.testStatus||E?e.testStatus:"active";return(0,a.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===e.isActive?"opacity-60":""}`,children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,a.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,a.jsx)("button",{onClick:o,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,a.jsx)("button",{onClick:n,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:s?"lock":"key"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:I}),(0,a.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,a.jsx)(d.Ex,{variant:!1===e.isActive?"default":"active"===D||"success"===D?"success":"error"===D||"expired"===D||"unavailable"===D?"error":"default",size:"sm",dot:!0,children:!1===e.isActive?"disabled":D||"Unknown"}),C&&(0,a.jsx)(d.Ex,{variant:T,size:"sm",children:"Proxy"}),E&&!1!==e.isActive&&(0,a.jsx)(v,{until:R}),e.lastError&&!1!==e.isActive&&(0,a.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:e.lastError,children:e.lastError}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),e.globalPriority&&(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]})]}),C&&(0,a.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:S,children:S}),$&&(0,a.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:$}),A&&(0,a.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:A,children:["no_proxy: ",A]})]})]})]}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,a.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(t||[]).length>0&&(0,a.jsxs)("div",{className:"relative",ref:y,children:[(0,a.jsxs)("button",{onClick:()=>h(e=>!e),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${C?"text-primary":"text-text-muted hover:text-primary"}`,disabled:f,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:f?"progress_activity":"lan"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),u&&(0,a.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,a.jsx)("button",{onClick:()=>O("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!N?"text-primary font-medium":"text-text-main"}`,children:"None"}),(t||[]).map(e=>(0,a.jsx)("button",{onClick:()=>O(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${N===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),(0,a.jsxs)("button",{onClick:m,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,a.jsxs)("button",{onClick:x,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,a.jsx)(d.lM,{size:"sm",checked:e.isActive??!0,onChange:c,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}g.propTypes={model:f().shape({id:f().string.isRequired}).isRequired,fullModel:f().string.isRequired,displayModel:f().string,alias:f().string,copied:f().string,onCopy:f().func.isRequired,testStatus:f().oneOf(["ok","error"]),isCustom:f().bool,isFree:f().bool,onDeleteAlias:f().func,onTest:f().func,isTesting:f().bool,onDisable:f().func},f().string.isRequired,f().string.isRequired,f().string,f().func.isRequired,f().func.isRequired,f().func,f().oneOf(["ok","error"]),f().bool,f().string.isRequired,f().object.isRequired,f().string,f().func.isRequired,f().func.isRequired,f().func.isRequired,b.propTypes={providerStorageAlias:f().string.isRequired,providerDisplayAlias:f().string.isRequired,modelAliases:f().object.isRequired,copied:f().string,onCopy:f().func.isRequired,onSetAlias:f().func.isRequired,onDeleteAlias:f().func.isRequired,connections:f().arrayOf(f().shape({id:f().string,isActive:f().bool})).isRequired,isAnthropic:f().bool},v.propTypes={until:f().string.isRequired},j.propTypes={connection:f().shape({id:f().string,name:f().string,email:f().string,displayName:f().string,modelLockUntil:f().string,testStatus:f().string,isActive:f().bool,lastError:f().string,priority:f().number,globalPriority:f().number}).isRequired,proxyPools:f().arrayOf(f().shape({id:f().string,name:f().string,proxyUrl:f().string,noProxy:f().string,isActive:f().bool})),isOAuth:f().bool.isRequired,isFirst:f().bool.isRequired,isLast:f().bool.isRequired,onMoveUp:f().func.isRequired,onMoveDown:f().func.isRequired,onToggleActive:f().func.isRequired,onUpdateProxy:f().func,onEdit:f().func.isRequired,onDelete:f().func.isRequired};let N=`Production|sk-...
2
- Backup|sk-...
3
- sk-...`;function w({isOpen:e,provider:t,providerName:s,isCompatible:r,isAnthropic:l,authType:o,authHint:n,website:c,proxyPools:p,onSave:m,onBulkDone:x,onClose:u}){let h="__none__",f="ollama-local"===t,g="cookie"===o,y=g?"Cookie Value":"API Key",b=g?"grok-web"===t?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":"",v="azure"===t,j="cloudflare-ai"===t,[k,C]=(0,i.useState)({name:"",apiKey:"",priority:1,proxyPoolId:h,ollamaHostUrl:""}),[S,$]=(0,i.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[A,T]=(0,i.useState)({accountId:""}),[O,P]=(0,i.useState)(!1),[I,E]=(0,i.useState)(null),[_,R]=(0,i.useState)(!1),[D,U]=(0,i.useState)("single"),[z,q]=(0,i.useState)(""),[M,J]=(0,i.useState)(null),F=f?"Ollama Local":g?`${s||t} Cookie`:"Production Key";(0,i.useEffect)(()=>{e&&(C({name:r?F:"",apiKey:"",priority:1,proxyPoolId:h,ollamaHostUrl:""}),$({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),T({accountId:""}),P(!1),E(null),R(!1),U("single"),q(""),J(null))},[F,r,e]);let K=()=>f&&k.ollamaHostUrl.trim()?{baseUrl:k.ollamaHostUrl.trim()}:v?{azureEndpoint:S.azureEndpoint,apiVersion:S.apiVersion,deployment:S.deployment,organization:S.organization}:j?{accountId:A.accountId}:void 0,L=async()=>{P(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:k.apiKey,providerSpecificData:K()})}),s=await e.json();E(s.valid?"success":"failed")}catch{E("failed")}finally{P(!1)}},W=async()=>{if(!t||!f&&!k.apiKey)return;let e=k.name.trim()||F;R(!0);try{let s=!1;try{P(!0),E(null);let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:k.apiKey,providerSpecificData:K()})});s=!!(await e.json()).valid,E(s?"success":"failed")}catch{E("failed")}finally{P(!1)}await m({name:e,apiKey:k.apiKey,priority:k.priority,proxyPoolId:k.proxyPoolId===h?null:k.proxyPoolId,testStatus:s?"active":"unknown",providerSpecificData:K()})}finally{R(!1)}},H=async()=>{let e=z.split("\n").map(e=>e.trim()).filter(Boolean);if(!e.length)return;R(!0),J(null);let s=0,a=0;for(let i=0;i<e.length;i++){let r=e[i].split("|"),l=r.length>=2?r.slice(1).join("|").trim():r[0].trim(),o=r.length>=2?r[0].trim():"Key",n=`${o} ${i+1}`;try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:l,name:n,priority:1,testStatus:"unknown"})})).ok?s++:a++}catch{a++}}R(!1),J({success:s,failed:a}),s>0&&x&&x()};return t?(0,a.jsx)(d.aF,{isOpen:e,title:`Add ${s||t} ${y}`,onClose:u,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"single"===D?"primary":"ghost",onClick:()=>{U("single"),J(null)},children:"Single"}),(0,a.jsx)(d.$n,{size:"sm",variant:"bulk"===D?"primary":"ghost",onClick:()=>{U("bulk"),J(null)},children:"Bulk Add"})]}),"bulk"===D&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["One key per line. Format: ",(0,a.jsx)("code",{children:"name|apiKey"})," or just ",(0,a.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}),(0,a.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:N,value:z,onChange:e=>q(e.target.value)}),M&&(0,a.jsxs)("div",{className:`text-sm font-medium ${M.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",M.success," added",M.failed>0?`, ✗ ${M.failed} failed`:""]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:H,fullWidth:!0,disabled:_||!z.trim(),children:_?"Adding...":"Add All Keys"}),(0,a.jsx)(d.$n,{onClick:u,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===D&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.pd,{label:"Name",value:k.name,onChange:e=>C({...k,name:e.target.value}),placeholder:F}),f&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:"Ollama Host URL",value:k.ollamaHostUrl,onChange:e=>C({...k,ollamaHostUrl:e.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:L,disabled:O||_,variant:"secondary",children:O?"Checking...":"Check"})})]}),!f&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:y,type:g?"text":"password",value:k.apiKey,onChange:e=>C({...k,apiKey:e.target.value}),placeholder:b,className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:L,disabled:!k.apiKey||O||_,variant:"secondary",children:O?"Checking...":"Check"})})]}),g&&n&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:[n,c&&(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsxs)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",c.replace(/^https?:\/\//,"")]})]})]}),f&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,a.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,a.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),I&&(0,a.jsx)(d.Ex,{variant:"success"===I?"success":"error",children:"success"===I?"Valid":"Invalid"}),r&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:l?`Validation checks ${s||"Anthropic Compatible"} by verifying the API key.`:`Validation checks ${s||"OpenAI Compatible"} via /models on your base URL.`}),j&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,a.jsx)(d.pd,{label:"Account ID",value:A.accountId,onChange:e=>T({...A,accountId:e.target.value}),placeholder:"abc123def456..."}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,a.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),v&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(d.pd,{label:"Azure Endpoint",value:S.azureEndpoint,onChange:e=>$({...S,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,a.jsx)(d.pd,{label:"Deployment Name",value:S.deployment,onChange:e=>$({...S,deployment:e.target.value}),placeholder:"gpt-4"}),(0,a.jsx)(d.pd,{label:"API Version",value:S.apiVersion,onChange:e=>$({...S,apiVersion:e.target.value}),placeholder:"2024-10-01-preview"}),(0,a.jsx)(d.pd,{label:"Organization",value:S.organization,onChange:e=>$({...S,organization:e.target.value}),placeholder:"Organization ID"})]})]}),(0,a.jsx)(d.pd,{label:"Priority",type:"number",value:k.priority,onChange:e=>C({...k,priority:Number.parseInt(e.target.value)||1})}),(0,a.jsx)(d.l6,{label:"Proxy Pool",value:k.proxyPoolId,onChange:e=>C({...k,proxyPoolId:e.target.value}),options:[{value:h,label:"None"},...(p||[]).map(e=>({value:e.id,label:e.name}))],placeholder:"None"}),0===(p||[]).length&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:W,fullWidth:!0,disabled:_||!f&&!k.apiKey||v&&(!S.azureEndpoint||!S.deployment||!S.organization)||j&&!A.accountId,children:_?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:u,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}function k({isOpen:e,node:t,onSave:s,onClose:r,isAnthropic:l}){let[o,n]=(0,i.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[c,p]=(0,i.useState)(!1),[m,x]=(0,i.useState)(""),[u,h]=(0,i.useState)(""),[f,g]=(0,i.useState)(!1),[y,b]=(0,i.useState)(null);(0,i.useEffect)(()=>{t&&n({name:t.name||"",prefix:t.prefix||"",apiType:t.apiType||"chat",baseUrl:t.baseUrl||(l?"https://api.anthropic.com/v1":"https://api.openai.com/v1")})},[t,l]);let v=async()=>{if(o.name.trim()&&o.prefix.trim()&&o.baseUrl.trim()){p(!0);try{let e={name:o.name,prefix:o.prefix,baseUrl:o.baseUrl};l||(e.apiType=o.apiType),await s(e)}finally{p(!1)}}},j=async()=>{g(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:o.baseUrl,apiKey:m,type:l?"anthropic-compatible":"openai-compatible",modelId:u.trim()||void 0})}),t=await e.json();b(t.valid?"success":"failed")}catch{b("failed")}finally{g(!1)}};return t?(0,a.jsx)(d.aF,{isOpen:e,title:`Edit ${l?"Anthropic":"OpenAI"} Compatible`,onClose:r,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(d.pd,{label:"Name",value:o.name,onChange:e=>n({...o,name:e.target.value}),placeholder:`${l?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,a.jsx)(d.pd,{label:"Prefix",value:o.prefix,onChange:e=>n({...o,prefix:e.target.value}),placeholder:l?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!l&&(0,a.jsx)(d.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:o.apiType,onChange:e=>n({...o,apiType:e.target.value})}),(0,a.jsx)(d.pd,{label:"Base URL",value:o.baseUrl,onChange:e=>n({...o,baseUrl:e.target.value}),placeholder:l?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${l?"Anthropic":"OpenAI"}-compatible API.`}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:"API Key (for Check)",type:"password",value:m,onChange:e=>x(e.target.value),className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:j,disabled:!m||f||!o.baseUrl.trim(),variant:"secondary",children:f?"Checking...":"Check"})})]}),(0,a.jsx)(d.pd,{label:"Model ID (optional)",value:u,onChange:e=>h(e.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),y&&(0,a.jsx)(d.Ex,{variant:"success"===y?"success":"error",children:"success"===y?"Valid":"Invalid"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:v,fullWidth:!0,disabled:!o.name.trim()||!o.prefix.trim()||!o.baseUrl.trim()||c,children:c?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function C({isOpen:e,providerAlias:t,providerDisplayAlias:s,onSave:r,onClose:l}){var o;let n,[c,p]=(0,i.useState)(""),[m,x]=(0,i.useState)(null),[u,h]=(0,i.useState)(""),[f,g]=(0,i.useState)(!1);(0,i.useEffect)(()=>{e&&(p(""),x(null),h(""),g(!1))},[e]);let y=(o=c.trim(),n=`${t}/`,o.startsWith(n)?o.slice(n.length):o),b=async()=>{if(y){x("testing"),h("");try{let e=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${t}/${y}`})}),s=await e.json();x(s.ok?"ok":"error"),h(s.error||"")}catch(e){x("error"),h(e.message)}}},v=async()=>{if(y&&!f){g(!0);try{await r(y)}finally{g(!1)}}};return(0,a.jsx)(d.aF,{isOpen:e,onClose:l,title:"Add Custom Model",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("input",{type:"text",value:c,onChange:e=>{p(e.target.value),x(null),h("")},onKeyDown:e=>{"Enter"===e.key&&b()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",autoFocus:!0}),(0,a.jsx)(d.$n,{type:"button",variant:"secondary",icon:"science",loading:"testing"===m,onClick:b,disabled:!y||"testing"===m,children:"testing"===m?"Testing...":"Test"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,a.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:y||"model-id"})]})]}),"ok"===m&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===m&&(0,a.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,a.jsx)("span",{children:u||"Model not reachable"})]}),(0,a.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,a.jsx)(d.$n,{type:"button",onClick:l,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,a.jsx)(d.$n,{type:"button",onClick:v,fullWidth:!0,size:"sm",disabled:!y||f,children:f?"Adding...":"Add Model"})]})]})})}function S({isOpen:e,onClose:t,onSuccess:s}){let[r,l]=(0,i.useState)([]),[o,n]=(0,i.useState)(""),[c,p]=(0,i.useState)(!1),[m,x]=(0,i.useState)(null),[u,h]=(0,i.useState)(null),f=()=>{l([]),n(""),x(null),h(null),t()},g=async()=>{p(!0),x(null),h(null);try{let e=await Promise.all(r.map(async e=>({filename:e.name,jsonText:await e.text()}))),t=o.trim()?[{filename:"pasted JSON",jsonText:o.trim()}]:[],a=[...e,...t];if(0===a.length)throw Error("Select JSON files or paste JSON first");let i=await fetch("/api/oauth/codex/import-batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:a})}),l=await i.json();if(!i.ok)throw Error(l.error||"Failed to import accounts");x(l),l.imported?.length>0&&s?.()}catch(e){h(e.message||"Failed to import accounts")}finally{p(!1)}},y=m?.imported?.length||0,b=m?.skipped?.length||0;return(0,a.jsx)(d.aF,{isOpen:e,title:"Import Codex Accounts",onClose:f,size:"lg",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-surface/50 p-3",children:[(0,a.jsx)("label",{className:"mb-2 block text-sm font-medium",children:"JSON files"}),(0,a.jsx)("input",{type:"file",accept:".json,application/json",multiple:!0,onChange:e=>l(Array.from(e.target.files||[])),className:"block w-full text-sm text-text-muted file:mr-3 file:rounded-md file:border-0 file:bg-primary file:px-3 file:py-1.5 file:text-sm file:font-medium file:text-white hover:file:bg-primary/90"}),r.length>0&&(0,a.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:r.map(e=>(0,a.jsx)("span",{className:"rounded bg-primary/10 px-2 py-0.5 text-xs text-primary",children:e.name},`${e.name}-${e.size}`))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"mb-2 block text-sm font-medium",children:"Paste JSON"}),(0,a.jsx)("textarea",{value:o,onChange:e=>n(e.target.value),placeholder:'[{ "type": "codex", "access_token": "...", "refresh_token": "..." }]',className:"h-36 w-full resize-none rounded-md border border-black/10 bg-white px-3 py-2 font-mono text-xs text-text-main shadow-inner transition-all placeholder-text-muted/60 focus:border-primary/50 focus:outline-none focus:ring-1 focus:ring-primary/30 dark:border-white/10 dark:bg-white/5"})]}),(0,a.jsx)("div",{className:"rounded-lg border border-border bg-background/60 px-3 py-2 text-xs text-text-muted",children:"Auto-detects Codex Session JSON, CLI Proxy API Auth JSON, and Sub2API JSON."}),u&&(0,a.jsx)("div",{className:"rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm text-red-600",children:u}),m&&(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-surface/40 p-3",children:[(0,a.jsxs)("div",{className:"mb-2 flex flex-wrap items-center gap-2 text-sm",children:[(0,a.jsxs)("span",{className:"font-medium text-green-600",children:[y," imported"]}),b>0&&(0,a.jsxs)("span",{className:"text-text-muted",children:[b," skipped"]})]}),m.imported?.length>0&&(0,a.jsx)("div",{className:"max-h-32 overflow-auto rounded border border-border/70",children:m.imported.map(e=>(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 border-b border-border/70 px-2 py-1.5 last:border-b-0",children:[(0,a.jsx)("span",{className:"min-w-0 truncate text-xs",children:e.email||e.displayName||e.name||e.id}),(0,a.jsx)("span",{className:"shrink-0 text-xs text-text-muted",children:e.sourceFormat})]},e.id))}),m.skipped?.length>0&&(0,a.jsx)("div",{className:"mt-2 max-h-28 overflow-auto rounded border border-border/70",children:m.skipped.map((e,t)=>(0,a.jsxs)("div",{className:"border-b border-border/70 px-2 py-1.5 text-xs last:border-b-0",children:[(0,a.jsx)("span",{className:"font-medium",children:e.filename}),(0,a.jsxs)("span",{className:"text-text-muted",children:[" \xb7 ",e.reason]})]},`${e.filename}-${t}`))})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:g,loading:c,disabled:c||!r.length&&!o.trim(),fullWidth:!0,children:"Import"}),(0,a.jsx)(d.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Close"})]})]})})}function $(){let e,t=(0,r.useParams)(),s=(0,r.useRouter)(),l=t.id,[x,h]=(0,i.useState)([]),[f,y]=(0,i.useState)(!0),[v,N]=(0,i.useState)(null),[$,A]=(0,i.useState)([]),[T,O]=(0,i.useState)(!1),[P,I]=(0,i.useState)(!1),[E,_]=(0,i.useState)(!1),[R,D]=(0,i.useState)(!1),[U,z]=(0,i.useState)(null),[q,M]=(0,i.useState)(!1),[J,F]=(0,i.useState)(!1),[K,L]=(0,i.useState)(!1),[W,H]=(0,i.useState)(!1),[V,B]=(0,i.useState)(null),[G,Q]=(0,i.useState)({}),[Z,X]=(0,i.useState)(!1),[Y,ee]=(0,i.useState)({}),[et,es]=(0,i.useState)(""),[ea,ei]=(0,i.useState)(null),[er,el]=(0,i.useState)(!1),[eo,en]=(0,i.useState)([]),[ed,ec]=(0,i.useState)("__none__"),[ep,em]=(0,i.useState)(!1),[ex,eu]=(0,i.useState)(null),[eh,ef]=(0,i.useState)(""),[eg,ey]=(0,i.useState)("auto"),[eb,ev]=(0,i.useState)(!1),[ej,eN]=(0,i.useState)(!1),[ew,ek]=(0,i.useState)("super_admin"),[eC,eS]=(0,i.useState)([]),[e$,eA]=(0,i.useState)([]),[eT,eO]=(0,i.useState)([]),[eP,eI]=(0,i.useState)(null),{copied:eE,copy:e_}=(0,m.C)(),eR=v?{id:v.id,name:v.name||("anthropic-compatible"===v.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===v.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===v.type?"AC":"OC",apiType:v.apiType,baseUrl:v.baseUrl,type:v.type}:c.zN[l]||c.fg[l]||c.IS[l]||c.nJ[l]||c.br[l],eD=!!c.zN[l]||!!c.IS[l],eU=!!c.IS[l]?.noAuth,ez=(0,p.KC)(l),eq=(0,c.wG)(l),eM=(0,c.mq)(l),eJ=(0,c.gb)(l),eF=eM||eJ,eK=c.Q2[l]?.thinkingConfig||null,eL=eF?l:eq,eW=eF?v?.prefix||l:eq,eH="codex"===l,eV=(eK?.options||[]).map(e=>({value:e,label:"auto"===e?"codex"===l?"Auto (Medium)":"Auto":"xhigh"===e?"XHigh":e.charAt(0).toUpperCase()+e.slice(1)})),eB=(0,i.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(eL)}`,{cache:"no-store"}),t=await e.json();e.ok&&eO(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[eL]),eG=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:eL,ids:[e]})})).ok&&await eB()}catch(e){console.log("Error disabling model:",e)}},eQ=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(eL)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await eB()}catch(e){console.log("Error enabling model:",e)}},eZ=async e=>{e.length&&eI({title:"Disable All Models",message:`Disable all ${e.length} model(s)?`,onConfirm:async()=>{eI(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:eL,ids:e})})).ok&&await eB()}catch(e){console.log("Error disabling all models:",e)}}})},eX=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(eL)}`,{method:"DELETE"})).ok&&await eB()}catch(e){console.log("Error enabling all models:",e)}},eY=(0,i.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&Q(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]);(0,i.useEffect)(()=>{"kilocode"===l&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&eA(e.models)}).catch(()=>{})},[l]);let e0=(0,i.useCallback)(async()=>{try{let[e,t,s,a,i]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"}),fetch("/api/auth/me",{cache:"no-store"})]),r=await e.json(),o=await t.json(),n=await s.json(),d=a.ok?await a.json():{},c=i.ok?await i.json():{};if(e.ok){let e=(r.connections||[]).filter(e=>e.provider===l);h(e)}s.ok&&A(n.proxyPools||[]);let p=(d.providerStrategies||{})[l]||{};eu(p.fallbackStrategy||null),ef(null!=p.stickyRoundRobinLimit?String(p.stickyRoundRobinLimit):"1");let m=(d.providerThinking||{})[l]||{},x=c.providerThinkingScopeKey||c.userId||"super_admin",u="sub_user"===c.role?(c.providerThinking||{})[l]||{}:(d.userProviderThinking||{})[x]?.[l]||{};if(ey(m.mode||"auto"),ev(!0===m.fastMode),ek(x),eN(Object.prototype.hasOwnProperty.call(u,"fastMode")?!0===u.fastMode:!0===m.fastMode),t.ok){let e=(o.nodes||[]).find(e=>e.id===l)||null;if(!e&&eF)for(let t=0;t<3;t+=1){await new Promise(e=>setTimeout(e,150));let t=await fetch("/api/provider-nodes",{cache:"no-store"});if(t.ok&&(e=((await t.json()).nodes||[]).find(e=>e.id===l)||null))break}N(e)}}catch(e){console.log("Error fetching connections:",e)}finally{y(!1)}},[l,eF]),e1=async e=>{try{let t=await fetch(`/api/provider-nodes/${l}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();t.ok&&(N(s.node),await e0(),L(!1))}catch(e){console.log("Error updating provider node:",e)}},e2=async(e,t)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),a=(s.ok?await s.json():{}).providerStrategies||{},i={};e&&(i.fallbackStrategy=e),"round-robin"===e&&""!==t&&(i.stickyRoundRobinLimit=Number(t)||3);let r={...a};0===Object.keys(i).length?delete r[l]:r[l]=i,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:r})})}catch(e){console.log("Error saving provider strategy:",e)}},e5=async(e,t=eb)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),a={...(s.ok?await s.json():{}).providerThinking||{}},i={};e&&"auto"!==e&&(i.mode=e),"codex"===l&&!0===t&&(i.fastMode=!0),0===Object.keys(i).length?delete a[l]:a[l]=i,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:a})})}catch(e){console.log("Error saving thinking config:",e)}},e3=async e=>{try{let t=await fetch("/api/settings",{cache:"no-store"}),s=(t.ok?await t.json():{}).userProviderThinking||{},a=ew||"super_admin",i=s[a]||{},r=i[l]||{},o={...s,[a]:{...i,[l]:{...r,fastMode:e}}};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({userProviderThinking:o})})}catch(e){console.log("Error saving account fast mode:",e)}};(0,i.useEffect)(()=>{(async()=>{await Promise.all([e0(),eY(),eB()])})()},[e0,eY,eB]),(0,i.useEffect)(()=>{let e=(c.zN[l]||c.fg[l]||c.IS[l]||c.nJ[l])?.modelsFetcher;e&&u(e).then(eS)},[l]);let e4=async(e,t,s=eq)=>{let a=`${s}/${e}`;try{let e=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:a,alias:t})});if(e.ok)await eY();else{let t=await e.json();alert(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},e6=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await eY()}catch(e){console.log("Error deleting alias:",e)}},e7=async e=>{eI({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{eI(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&h(x.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},e8=()=>{e0(),O(!1)},e9=async()=>{if(!R){D(!0),z(null);try{let e=await fetch("/api/oauth/codex/refresh-all",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),t=await e.json();if(!e.ok&&!t?.refreshed?.length)throw Error(t.error||"Failed to refresh Codex tokens");z(t),await e0()}catch(e){z({error:e.message,refreshed:[],failed:[],skipped:[]})}finally{D(!1)}}},te=async e=>{try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:l,...e})})).ok&&(await e0(),M(!1))}catch(e){console.log("Error saving connection:",e)}},tt=async e=>{try{(await fetch(`/api/providers/${V.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await e0(),F(!1))}catch(e){console.log("Error updating connection:",e)}},ts=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&h(s=>s.map(s=>s.id===e?{...s,isActive:t}:s))}catch(e){console.log("Error updating connection status:",e)}},ta=async(e,t)=>{let s=[...x];[s[e],s[t]]=[s[t],s[e]],h(s);try{await Promise.all([fetch(`/api/providers/${s[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${s[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch(e){console.log("Error swapping priority:",e),await e0()}},ti=(0,i.useMemo)(()=>new Set(x.map(e=>e.id)),[x]),tr=(0,i.useMemo)(()=>eo.filter(e=>ti.has(e)),[eo,ti]),tl=x.filter(e=>tr.includes(e.id));x.length>0&&(tr.length,x.length);let to=(()=>{if(0===tl.length)return"";let e=new Set(tl.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return"All selected currently unbound";let s=$.find(e=>e.id===t);return`All selected currently bound to ${s?.name||t}`}return"Selected connections have mixed proxy bindings"})(),tn=()=>{ep||H(!1)},td=async()=>{if(0===tr.length)return;let e="__none__"===ed?null:ed;em(!0);try{let t=[];for(let s of tr)try{let a=await fetch(`/api/providers/${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:e})});t.push(a.ok)}catch(e){console.log("Error applying bulk proxy pool for",s,e),t.push(!1)}let s=t.filter(e=>!e).length;s>0&&alert(`Updated with ${s} failed request(s).`),await e0(),en([]),ec("__none__"),H(!1)}catch(e){console.log("Error applying bulk proxy pool:",e)}finally{em(!1)}},tc=(0,a.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/3 dark:divide-white/3",children:x.map((e,t)=>(0,a.jsx)("div",{className:"flex min-w-0 items-stretch",children:(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(j,{connection:e,proxyPools:$,isOAuth:eD,isFirst:0===t,isLast:t===x.length-1,onMoveUp:()=>ta(t,t-1),onMoveDown:()=>ta(t,t+1),onToggleActive:t=>ts(e.id,t),onUpdateProxy:async t=>{try{(await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&h(s=>s.map(s=>s.id===e.id?{...s,providerSpecificData:{...s.providerSpecificData,proxyPoolId:t||null}}:s))}catch(e){console.log("Error updating proxy:",e)}},onEdit:()=>{B(e),F(!0)},onDelete:()=>e7(e.id)})})},e.id))}),tp=[{value:"__none__",label:"None"},...$.map(e=>({value:e.id,label:e.name}))],tm=0===tr.length?"Select one or more connections, then click Proxy Action.":to,tx=tr.length>0&&!ep,tu=(0,a.jsx)(d.aF,{isOpen:W,onClose:tn,title:`Proxy Action (${tr.length} selected)`,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(d.l6,{label:"Proxy Pool",value:ed,onChange:e=>ec(e.target.value),options:tp,placeholder:"None"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:tm}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Selecting None will unbind selected connections from proxy pool."}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,a.jsx)(d.$n,{onClick:td,fullWidth:!0,disabled:!tx,children:ep?"Applying...":"Apply"}),(0,a.jsx)(d.$n,{onClick:tn,variant:"ghost",fullWidth:!0,disabled:ep,children:"Cancel"})]})]})}),th=async e=>{if(!ea){ei(e);try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${eL}/${e}`})}),s=await t.json();ee(t=>({...t,[e]:s.ok?"ok":"error"})),es(s.ok?"":s.error||"Model not reachable")}catch{ee(t=>({...t,[e]:"error"})),es("Network error")}finally{ei(null)}}};return f?(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(d.Qv,{}),(0,a.jsx)(d.Qv,{})]}):eR?(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)(o(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${eR.color}15`},children:Z?(0,a.jsx)("span",{className:"text-sm font-bold",style:{color:eR.color},children:eR.textIcon||eR.id.slice(0,2).toUpperCase()}):(0,a.jsx)(n.default,{src:eM&&eR.apiType?"responses"===eR.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":eJ?"/providers/anthropic-m.png":`/providers/${eR.id}.png`,alt:eR.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>X(!0)})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,a.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:eR.name}),(eR.notice?.apiKeyUrl||eR.notice?.signupUrl||eR.website)&&(0,a.jsxs)("a",{href:eR.notice?.apiKeyUrl||eR.notice?.signupUrl||eR.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),eR.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,a.jsxs)("p",{className:"text-text-muted",children:[x.length," connection",1===x.length?"":"s"]})]})]})]}),eR.deprecated&&(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,a.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:eR.deprecationNotice})]}),eR.notice?.text&&!eR.deprecated&&(0,a.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,a.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:eR.notice.text}),eR.notice.apiKeyUrl&&(0,a.jsx)("a",{href:eR.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),eF&&v&&(0,a.jsx)(d.Zp,{children:(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:eJ?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,a.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[eJ?"Messages API":"responses"===v.apiType?"Responses API":"Chat Completions"," \xb7 ",(v.baseUrl||"").replace(/\/$/,""),"/",eJ?"messages":"responses"===v.apiType?"responses":"chat/completions"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:()=>M(!0),disabled:x.length>0,className:"w-full sm:w-auto",children:"Add"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>L(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{eI({title:"Delete Compatible Node",message:`Delete this ${eJ?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{eI(null);try{(await fetch(`/api/provider-nodes/${l}`,{method:"DELETE"})).ok&&s.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),eU?(0,a.jsx)(d.gw,{providerId:l}):(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:["codex"===l&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsxs)("label",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-text-muted whitespace-nowrap",children:"Global Fast"}),(0,a.jsx)(d.lM,{checked:eb,onChange:e=>{ev(e),e5(eg,e)}})]}),(0,a.jsxs)("label",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs font-medium text-text-muted whitespace-nowrap",children:"My Fast"}),(0,a.jsx)(d.lM,{checked:ej,onChange:e=>{eN(e),e3(e)}})]})]}),eK&&(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("label",{htmlFor:"provider-default-reasoning",className:"text-xs font-medium text-text-muted whitespace-nowrap",children:"Default Reasoning"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("select",{id:"provider-default-reasoning",value:eg,onChange:e=>{var t;ey(t=e.target.value),e5(t)},disabled:f,className:"h-6 w-28 appearance-none rounded-full border border-border/60 bg-surface-2 pl-3 pr-7 text-xs font-medium text-text-main transition-colors focus:border-primary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 disabled:cursor-not-allowed disabled:opacity-50",children:eV.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsx)("span",{className:"material-symbols-outlined pointer-events-none absolute right-2 top-1/2 -translate-y-1/2 text-[16px] text-text-muted",children:"expand_more"})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,a.jsx)(d.lM,{checked:"round-robin"===ex,onChange:e=>{let t=e?"round-robin":null,s=e?eh||"1":eh;e&&!eh&&ef("1"),eu(t),e2(t,s)}}),"round-robin"===ex&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,a.jsx)("input",{type:"number",min:1,value:eh,onChange:e=>{var t;ef(t=e.target.value),e2("round-robin",t)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),0===x.length?(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:eD?"lock":"key"})}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"})]}),!eF&&(0,a.jsxs)("div",{className:"flex gap-2",children:["iflow"===l&&(0,a.jsx)(d.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>I(!0),children:"Cookie"}),(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:()=>eD?O(!0):M(!0),children:"iflow"===l?"OAuth":"Add Connection"}),"codex"===l&&(0,a.jsx)(d.$n,{size:"sm",icon:"upload_file",variant:"secondary",onClick:()=>_(!0),children:"Batch Import"}),"codex"===l&&(0,a.jsx)(d.$n,{size:"sm",icon:"sync",variant:"secondary",onClick:e9,loading:R,children:"Refresh Tokens"})]})]}):(0,a.jsxs)(a.Fragment,{children:[tc,!eF&&(0,a.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===l&&(0,a.jsx)(d.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>I(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:()=>eD?O(!0):M(!0),className:"w-full sm:w-auto",children:"Add"}),"codex"===l&&(0,a.jsx)(d.$n,{size:"sm",icon:"upload_file",variant:"secondary",onClick:()=>_(!0),className:"w-full sm:w-auto",children:"Batch Import"}),"codex"===l&&(0,a.jsx)(d.$n,{size:"sm",icon:"sync",variant:"secondary",onClick:e9,loading:R,className:"w-full sm:w-auto",children:"Refresh Tokens"})]})]}),"codex"===l&&U&&(0,a.jsx)("div",{className:`mt-4 rounded-lg border px-3 py-2 text-sm ${U.error?"border-red-500/30 bg-red-500/10 text-red-600":"border-green-500/30 bg-green-500/10 text-green-700 dark:text-green-300"}`,children:U.error?U.error:`Token refresh complete: ${U.refreshed?.length||0} refreshed, ${U.failed?.length||0} failed, ${U.skipped?.length||0} skipped.`})]}),(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),!eF&&(e=[...ez,...e$.filter(e=>!ez.some(t=>t.id===e.id))].filter(e=>!e.type||"llm"===e.type).map(e=>e.id).filter(e=>!eT.includes(e)),(0,a.jsxs)("div",{className:"flex gap-2",children:[eT.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:eX,children:"Active All"}),e.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>eZ(e),children:"Disable All"})]}))]}),!!et&&(0,a.jsx)("p",{className:"text-xs text-red-500 mb-3 wrap-break-word",children:et}),(()=>{let e,t,s;if(eF)return(0,a.jsx)(b,{providerStorageAlias:eL,providerDisplayAlias:eW,modelAliases:G,copied:eE,onCopy:e_,onSetAlias:e4,onDeleteAlias:e6,connections:x,isAnthropic:eJ});let i=[...ez,...e$.filter(e=>!ez.some(t=>t.id===e.id))].filter(e=>!e.type||"llm"===e.type),r=new Set(eT),o=i.filter(e=>!r.has(e.id)),n=i.filter(e=>r.has(e.id)),d=Object.entries(G).filter(([e,t])=>{let s=`${eL}/`;if(!t.startsWith(s))return!1;let a=t.slice(s.length);return eR.passthroughModels?!ez.some(e=>e.id===a):!ez.some(e=>e.id===a)&&e===a}).map(([e,t])=>({id:t.slice(`${eL}/`.length),alias:e,fullModel:t}));return(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[d.map(e=>(0,a.jsx)(g,{model:{id:e.id},fullModel:`${eW}/${e.id}`,displayModel:eH?e.id:`${eW}/${e.id}`,alias:e.alias,copied:eE,onCopy:e_,onSetAlias:()=>{},onDeleteAlias:()=>e6(e.alias),testStatus:Y[e.id],onTest:x.length>0||eU?()=>th(e.id):void 0,isTesting:ea===e.id,isCustom:!0,isFree:!1},e.id)),o.map(e=>{let t=`${eL}/${e.id}`,s=`${l}/${e.id}`,i=Object.entries(G).find(([,e])=>e===t||e===s)?.[0];return(0,a.jsx)(g,{model:e,fullModel:`${eW}/${e.id}`,displayModel:eH?e.id:`${eW}/${e.id}`,alias:i,copied:eE,onCopy:e_,onSetAlias:t=>e4(e.id,t,eL),onDeleteAlias:()=>e6(i),testStatus:Y[e.id],onTest:x.length>0||eU?()=>th(e.id):void 0,isTesting:ea===e.id,isFree:e.isFree,onDisable:()=>eG(e.id)},e.id)}),(0,a.jsxs)("button",{onClick:()=>el(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),eC.length>0&&(e=new Set(Object.values(G)),t=new Set(ez.map(e=>e.id)),0===(s=eC.filter(s=>!e.has(`${eL}/${s.id}`)&&!t.has(s.id))).length?null:(0,a.jsxs)("div",{className:"w-full mt-2",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:s.map(e=>(0,a.jsxs)("button",{onClick:async()=>{let t=e.id.split("/").pop();await e4(e.id,t,eL)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${e.name} \xb7 ${(e.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id.split("/").pop()]},e.id))})]})),n.length>0&&(0,a.jsxs)("div",{className:"w-full mt-2",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",n.length,"):"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:n.map(e=>(0,a.jsxs)("button",{onClick:()=>eQ(e.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id]},e.id))})]})]})})()]}),tu,"kiro"===l?(0,a.jsx)(d.Mh,{isOpen:T,providerInfo:eR,onSuccess:e8,onClose:()=>O(!1)}):"cursor"===l?(0,a.jsx)(d.G9,{isOpen:T,onSuccess:e8,onClose:()=>O(!1)}):"gitlab"===l?(0,a.jsx)(d.vj,{isOpen:T,providerInfo:eR,onSuccess:e8,onClose:()=>O(!1)}):(0,a.jsx)(d.LF,{isOpen:T,provider:l,providerInfo:eR,onSuccess:e8,onClose:()=>O(!1)}),"iflow"===l&&(0,a.jsx)(d.vE,{isOpen:P,onSuccess:()=>{e0(),I(!1)},onClose:()=>I(!1)}),"codex"===l&&(0,a.jsx)(S,{isOpen:E,onSuccess:e0,onClose:()=>_(!1)}),(0,a.jsx)(w,{isOpen:q,provider:l,providerName:eR.name,isCompatible:eF,isAnthropic:eJ,authType:eR?.authType,authHint:eR?.authHint,website:eR?.website,proxyPools:$,onSave:te,onClose:()=>M(!1)}),(0,a.jsx)(d.wI,{isOpen:J,connection:V,proxyPools:$,onSave:tt,onClose:()=>F(!1)}),eF&&(0,a.jsx)(k,{isOpen:K,node:v,onSave:e1,onClose:()=>L(!1),isAnthropic:eJ}),!eF&&(0,a.jsx)(C,{isOpen:er,providerAlias:eL,providerDisplayAlias:eW,onSave:async e=>{let t=eR?.passthroughModels?e.split("/").pop():e;await e4(e,t,eL),el(!1)},onClose:()=>el(!1)}),(0,a.jsx)(d.uo,{isOpen:!!eP,onClose:()=>eI(null),onConfirm:eP?.onConfirm,title:eP?.title||"Confirm",message:eP?.message,variant:"danger"})]}):(0,a.jsxs)("div",{className:"text-center py-20",children:[(0,a.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,a.jsx)(o(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]})}w.propTypes={isOpen:f().bool.isRequired,provider:f().string,providerName:f().string,isCompatible:f().bool,isAnthropic:f().bool,authType:f().string,authHint:f().string,website:f().string,proxyPools:f().arrayOf(f().shape({id:f().string,name:f().string})),onSave:f().func.isRequired,onBulkDone:f().func,onClose:f().func.isRequired},k.propTypes={isOpen:f().bool.isRequired,node:f().shape({id:f().string,name:f().string,prefix:f().string,apiType:f().string,baseUrl:f().string}),onSave:f().func.isRequired,onClose:f().func.isRequired,isAnthropic:f().bool},C.propTypes={isOpen:f().bool.isRequired,providerAlias:f().string.isRequired,providerDisplayAlias:f().string.isRequired,onSave:f().func.isRequired,onClose:f().func.isRequired},S.propTypes={isOpen:f().bool.isRequired,onClose:f().func.isRequired,onSuccess:f().func}},29610:(e,t,s)=>{Promise.resolve().then(s.bind(s,7570))}},e=>{e.O(0,[2574,3862,1051,5772,1321,5497,8441,3794,7358],()=>e(e.s=29610)),_N_E=e.O()}]);
@@ -1,4 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6812],{22248:(e,t,r)=>{Promise.resolve().then(r.bind(r,57076))},57076:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var s=r(95155),l=r(12115),a=r(35497),o=r(65921);function i(e={}){return{name:e.name||"",proxyUrl:e.proxyUrl||"",noProxy:e.noProxy||"",isActive:!1!==e.isActive,strictProxy:!0===e.strictProxy}}function n(){let[e,t]=(0,l.useState)([]),[r,n]=(0,l.useState)(!0),[c,d]=(0,l.useState)(!1),[x,p]=(0,l.useState)(!1),[m,h]=(0,l.useState)(!1),[u,y]=(0,l.useState)(null),[f,g]=(0,l.useState)(i()),[v,j]=(0,l.useState)(""),[b,k]=(0,l.useState)({vercelToken:"",projectName:"vercel-relay"}),[N,w]=(0,l.useState)(!1),[P,C]=(0,l.useState)(!1),[$,S]=(0,l.useState)(!1),[A,E]=(0,l.useState)(null),[T,U]=(0,l.useState)([]),[D,I]=(0,l.useState)(!1),[O,z]=(0,l.useState)({current:0,total:0}),[_,F]=(0,l.useState)(!1),[V,L]=(0,l.useState)(null),R=(0,o.i)(),W=(0,l.useCallback)(async()=>{try{let e=await fetch("/api/proxy-pools?includeUsage=true",{cache:"no-store"}),r=await e.json();e.ok&&t(r.proxyPools||[])}catch(e){console.log("Error fetching proxy pools:",e)}finally{n(!1)}},[]);(0,l.useEffect)(()=>{fetch("/api/auth/me").then(e=>e.json()).then(e=>{"sub_user"===e.role&&(window.location.href="/dashboard/usage")}).catch(()=>{}),W()},[W]);let B=()=>{y(null),g(i())},J=()=>{B(),d(!0)},M=()=>{d(!1),B()},q=async()=>{let e={name:f.name.trim(),proxyUrl:f.proxyUrl.trim(),noProxy:f.noProxy.trim(),isActive:!0===f.isActive,strictProxy:!0===f.strictProxy};if(e.name&&e.proxyUrl){w(!0);try{let t=!!u,r=await fetch(t?`/api/proxy-pools/${u.id}`:"/api/proxy-pools",{method:t?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(r.ok)await W(),M(),R.success(u?"Proxy pool updated":"Proxy pool created");else{let e=await r.json();R.error(e.error||"Failed to save proxy pool")}}catch(e){console.log("Error saving proxy pool:",e)}finally{w(!1)}}},G=async e=>{L({title:"Delete Proxy Pool",message:`Delete proxy pool "${e.name}"?`,onConfirm:async()=>{L(null);try{let r=await fetch(`/api/proxy-pools/${e.id}`,{method:"DELETE"});if(r.ok){t(t=>t.filter(t=>t.id!==e.id)),R.success("Proxy pool deleted");return}let s=await r.json();409===r.status?R.warning(`Cannot delete: ${s.boundConnectionCount||0} connection(s) are still using this pool.`):R.error(s.error||"Failed to delete proxy pool")}catch(e){console.log("Error deleting proxy pool:",e),R.error("Failed to delete proxy pool")}}})},H=async e=>{E(e);try{let t=await fetch(`/api/proxy-pools/${e}/test`,{method:"POST"}),r=await t.json();if(!t.ok)return void R.error(r.error||"Failed to test proxy");await W(),R.success(r.ok?"Proxy test passed":"Proxy test failed")}catch(e){console.log("Error testing proxy pool:",e),R.error("Failed to test proxy")}finally{E(null)}},Q=async e=>{let r=!e.isActive;t(t=>t.map(t=>t.id===e.id?{...t,isActive:r}:t));try{(await fetch(`/api/proxy-pools/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:r})})).ok||(t(t=>t.map(t=>t.id===e.id?{...t,isActive:e.isActive}:t)),R.error("Failed to update active state"))}catch(r){console.log("Error toggling active:",r),t(t=>t.map(t=>t.id===e.id?{...t,isActive:e.isActive}:t))}},K=e.length>0&&T.length===e.length,Y=()=>U([]),Z=async t=>{let r=T.length>0?T:e.map(e=>e.id);if(0!==r.length){F(!0);try{let e=0,s=0;for(let l of r)try{(await fetch(`/api/proxy-pools/${l}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok?e+=1:s+=1}catch{s+=1}await W(),R.success(`${t?"Activated":"Deactivated"} ${e}${s?`, failed ${s}`:""}`)}finally{F(!1)}}},X=async()=>{0!==T.length&&L({title:"Delete Proxy Pools",message:`Delete ${T.length} proxy pool(s)?`,onConfirm:async()=>{L(null),F(!0);try{let e=0,t=0,r=0;for(let s of T)try{let l=await fetch(`/api/proxy-pools/${s}`,{method:"DELETE"});l.ok?e+=1:409===l.status?t+=1:r+=1}catch{r+=1}await W(),Y(),R.success(`Deleted ${e}${t?`, ${t} bound`:""}${r?`, ${r} failed`:""}`)}finally{F(!1)}}})},ee=async()=>{let t=T.length>0?e.filter(e=>T.includes(e.id)):e;if(0===t.length)return;I(!0),z({current:0,total:t.length});let r=0,s=[],l=0,a=[...t],o=async()=>{for(;a.length>0;){let e=a.shift();if(!e)break;try{let t=await fetch(`/api/proxy-pools/${e.id}/test`,{method:"POST"}),l=await t.json();t.ok&&l.ok?r+=1:s.push(e.id)}catch{s.push(e.id)}finally{z({current:l+=1,total:t.length})}}};await Promise.all(Array.from({length:Math.min(10,t.length)},o)),await W(),I(!1),z({current:0,total:0}),s.length>0?L({title:"Disable Dead Proxies",message:`Alive: ${r}, Dead: ${s.length}.
2
-
3
- Disable ${s.length} dead proxies?`,onConfirm:async()=>{L(null),F(!0);try{for(let e of s)try{await fetch(`/api/proxy-pools/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:!1})})}catch{}await W(),R.success(`Disabled ${s.length} dead proxies`)}finally{F(!1)}}}):R.success(`Health check done. Alive: ${r}, Dead: ${s.length}`)};(0,l.useEffect)(()=>{U(t=>t.filter(t=>e.some(e=>e.id===t)))},[e]);let et=()=>{P||p(!1)},er=()=>{$||h(!1)},es=async()=>{if(b.vercelToken.trim()){S(!0);try{let e=await fetch("/api/proxy-pools/vercel-deploy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(b)}),t=await e.json();e.ok?(await W(),er(),R.success(`Deployed: ${t.deployUrl}`)):R.error(t.error||"Deploy failed")}catch(e){console.log("Error deploying Vercel relay:",e),R.error("Deploy failed")}finally{S(!1)}}},el=async()=>{let t=v.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(0===t.length)return void R.warning("Please paste at least one proxy line.");let r=[],s=[];if(t.forEach((e,t)=>{try{let s=(e=>{let t=e.trim();if(!t)return null;if(t.includes("://")){let e=new URL(t),r=e.port?`${e.hostname}:${e.port}`:e.hostname;return{proxyUrl:e.toString(),name:`Imported ${r}`}}let r=t.split(":");if(4===r.length){let[e,t,s,l]=r;if(!e||!t||!s||!l)throw Error("Invalid host:port:user:pass format");return{proxyUrl:new URL(`http://${encodeURIComponent(s)}:${encodeURIComponent(l)}@${e}:${t}`).toString(),name:`Imported ${e}:${t}`}}throw Error("Unsupported format")})(e);s&&r.push({...s,lineNumber:t+1})}catch(e){s.push(`Line ${t+1}: ${e.message}`)}}),s.length>0)return void R.error(`Invalid proxy format:
4
- ${s.join("\n")}`);C(!0);try{let t=new Set(e.map(e=>`${(e.proxyUrl||"").trim()}|||${(e.noProxy||"").trim()}`)),s=0,l=0,a=0;for(let e of r){let r=`${e.proxyUrl}|||`;if(t.has(r)){l+=1;continue}(await fetch("/api/proxy-pools",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,proxyUrl:e.proxyUrl,noProxy:"",isActive:!0})})).ok?(s+=1,t.add(r)):a+=1}await W(),p(!1),R.success(`Batch import completed: Created ${s}, Skipped ${l}, Failed ${a}`)}catch(e){console.log("Error batch importing proxies:",e),R.error("Batch import failed")}finally{C(!1)}},ea=(0,l.useMemo)(()=>e.filter(e=>!0===e.isActive).length,[e]);return r?(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:gap-6 sm:px-0",children:[(0,s.jsx)(a.Qv,{}),(0,s.jsx)(a.Qv,{})]}):(0,s.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:gap-6 sm:px-0",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h1",{className:"text-xl font-semibold sm:text-2xl",children:"Proxy Pools"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Manage reusable per-connection proxies and bind them to provider connections."})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,s.jsx)(a.$n,{size:"sm",variant:"secondary",icon:"cloud_upload",onClick:()=>{k({vercelToken:"",projectName:"vercel-relay"}),h(!0)},children:"Vercel Relay"}),(0,s.jsx)(a.$n,{size:"sm",variant:"secondary",icon:"upload",onClick:()=>{j(""),p(!0)},children:"Batch Import"}),(0,s.jsx)(a.$n,{size:"sm",icon:"add",onClick:J,children:"Add Proxy Pool"})]})]}),(0,s.jsxs)(a.Zp,{children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[e.length>0&&(0,s.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted cursor-pointer",children:[(0,s.jsx)("input",{type:"checkbox",checked:K,onChange:()=>U(K?[]:e.map(e=>e.id)),className:"size-4 rounded border-black/20 dark:border-white/20"}),K?"Unselect all":"Select all"]}),(0,s.jsxs)(a.Ex,{variant:"default",children:["Total: ",e.length]}),(0,s.jsxs)(a.Ex,{variant:"success",children:["Active: ",ea]})]}),(T.length>0||D)&&(0,s.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2 rounded-lg border border-primary/30 bg-primary/5 px-3 py-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px] text-primary",children:"checklist"}),(0,s.jsx)("span",{className:"text-xs font-medium text-primary",children:T.length>0?`${T.length} selected`:"All pools"}),(0,s.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[(0,s.jsx)(a.$n,{size:"sm",icon:D?"progress_activity":"health_and_safety",onClick:ee,disabled:D||_||0===e.length,children:D?`Checking ${O.current}/${O.total}`:"Health Check"}),T.length>0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.$n,{size:"sm",variant:"secondary",icon:"toggle_on",onClick:()=>Z(!0),disabled:_||D,children:"Activate"}),(0,s.jsx)(a.$n,{size:"sm",variant:"secondary",icon:"toggle_off",onClick:()=>Z(!1),disabled:_||D,children:"Deactivate"}),(0,s.jsx)(a.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:X,disabled:_||D,children:"Delete"}),(0,s.jsx)(a.$n,{size:"sm",variant:"ghost",onClick:Y,disabled:_||D,children:"Clear"})]})]})]}),0===e.length?(0,s.jsxs)("div",{className:"text-center py-10",children:[(0,s.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No proxy pool entries yet"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create a proxy pool entry, then assign it to connections."}),(0,s.jsx)(a.$n,{icon:"add",onClick:J,children:"Add Proxy Pool"})]}):(0,s.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.04] dark:divide-white/[0.05]",children:e.map(e=>{var t;return(0,s.jsxs)("div",{className:"flex flex-col gap-3 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3 min-w-0 flex-1",children:[(0,s.jsx)("input",{type:"checkbox",checked:T.includes(e.id),onChange:()=>{let t;return t=e.id,U(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"mt-1 size-4 shrink-0 rounded border-black/20 dark:border-white/20"}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsx)("p",{className:"min-w-0 max-w-full truncate text-sm font-medium sm:max-w-[18rem]",children:e.name}),(0,s.jsx)(a.Ex,{variant:"active"===(t=e.testStatus)?"success":"error"===t?"error":"default",size:"sm",dot:!0,children:e.testStatus||"unknown"}),(0,s.jsx)(a.Ex,{variant:e.isActive?"success":"default",size:"sm",children:e.isActive?"active":"inactive"}),"vercel"===e.type&&(0,s.jsx)(a.Ex,{variant:"default",size:"sm",children:"vercel relay"}),(0,s.jsxs)(a.Ex,{variant:"default",size:"sm",children:[e.boundConnectionCount||0," bound"]})]}),(0,s.jsx)("p",{className:"text-xs text-text-muted truncate mt-1",children:e.proxyUrl}),e.noProxy?(0,s.jsxs)("p",{className:"text-xs text-text-muted truncate",children:["No proxy: ",e.noProxy]}):null,(0,s.jsxs)("p",{className:"text-[11px] text-text-muted mt-1",children:["Last tested: ",function(e){if(!e)return"Never";let t=new Date(e);return Number.isNaN(t.getTime())?"Never":t.toLocaleString()}(e.lastTestedAt),e.lastError?` \xb7 ${e.lastError}`:""]})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,s.jsx)(a.lM,{size:"sm",checked:!0===e.isActive,onChange:()=>Q(e),title:e.isActive?"Disable":"Enable"}),(0,s.jsx)("button",{onClick:()=>H(e.id),className:"p-2 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",title:"Test proxy",disabled:A===e.id,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",style:A===e.id?{animation:"spin 1s linear infinite"}:void 0,children:A===e.id?"progress_activity":"science"})}),(0,s.jsx)("button",{onClick:()=>{y(e),g(i(e)),d(!0)},className:"p-2 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",title:"Edit",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,s.jsx)("button",{onClick:()=>G(e),className:"p-2 rounded hover:bg-red-500/10 text-red-500",title:"Delete",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id)})})]}),(0,s.jsx)(a.aF,{isOpen:x,title:"Batch Import Proxies",onClose:et,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"text-sm font-medium text-text-main mb-1 block",children:"Paste Proxy List (One per line)"}),(0,s.jsx)("textarea",{value:v,onChange:e=>j(e.target.value),placeholder:"http://user:pass@127.0.0.1:7897\n127.0.0.1:7897:user:pass",className:"w-full min-h-[180px] py-2 px-3 text-sm text-text-main bg-white dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-md focus:ring-1 focus:ring-primary/30 focus:border-primary/50 focus:outline-none transition-all"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Supported formats: protocol://user:pass@host:port, host:port:user:pass"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,s.jsx)(a.$n,{fullWidth:!0,onClick:el,disabled:!v.trim()||P,children:P?"Importing...":"Import"}),(0,s.jsx)(a.$n,{fullWidth:!0,variant:"ghost",onClick:et,disabled:P,children:"Cancel"})]})]})}),(0,s.jsx)(a.aF,{isOpen:m,title:"Deploy Vercel Relay",onClose:er,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"rounded-lg bg-blue-500/5 border border-blue-500/10 p-3 flex flex-col gap-1.5",children:[(0,s.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Vercel Relay?"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys an edge relay function to Vercel. All AI provider requests will be forwarded through Vercel's edge network, masking your real IP from providers."}),(0,s.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,s.jsx)("li",{children:"Your IP is replaced by Vercel's dynamic edge IPs (hundreds of IPs across 20+ global regions)"}),(0,s.jsx)("li",{children:"Vercel serves millions of apps — providers can't block Vercel IPs without affecting legitimate traffic"}),(0,s.jsx)("li",{children:"Free tier: 100GB bandwidth/month, 500K edge invocations"}),(0,s.jsx)("li",{children:"Deploy multiple relays on different accounts for more IP diversity"})]})]}),(0,s.jsx)(a.pd,{label:"Vercel API Token",value:b.vercelToken,onChange:e=>k(t=>({...t,vercelToken:e.target.value})),placeholder:"your-vercel-api-token",hint:(0,s.jsxs)(s.Fragment,{children:["Token is used once for deployment and not stored. ",(0,s.jsx)("a",{href:"https://vercel.com/account/tokens",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get token →"})]}),type:"password"}),(0,s.jsx)(a.pd,{label:"Project Name",value:b.projectName,onChange:e=>k(t=>({...t,projectName:e.target.value})),placeholder:"my-relay",hint:"Unique name for your Vercel project. Leave empty for auto-generated name."}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,s.jsx)(a.$n,{fullWidth:!0,onClick:es,disabled:!b.vercelToken.trim()||$,children:$?"Deploying... (may take ~1 min)":"Deploy"}),(0,s.jsx)(a.$n,{fullWidth:!0,variant:"ghost",onClick:er,disabled:$,children:"Cancel"})]})]})}),(0,s.jsx)(a.aF,{isOpen:c,title:u?"Edit Proxy Pool":"Add Proxy Pool",onClose:M,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(a.pd,{label:"Name",value:f.name,onChange:e=>g(t=>({...t,name:e.target.value})),placeholder:"Office Proxy"}),(0,s.jsx)(a.pd,{label:"Proxy URL",value:f.proxyUrl,onChange:e=>g(t=>({...t,proxyUrl:e.target.value})),placeholder:"http://127.0.0.1:7897"}),(0,s.jsx)(a.pd,{label:"No Proxy",value:f.noProxy,onChange:e=>g(t=>({...t,noProxy:e.target.value})),placeholder:"localhost,127.0.0.1,.internal",hint:"Comma-separated hosts/domains to bypass proxy"}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-medium text-sm",children:"Active"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Inactive pools are ignored by runtime resolution."})]}),(0,s.jsx)(a.lM,{checked:!0===f.isActive,onChange:()=>g(e=>({...e,isActive:!e.isActive})),disabled:N})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"font-medium text-sm",children:"Strict Proxy"}),(0,s.jsx)("p",{className:"text-xs text-text-muted",children:"Fail request if proxy is unreachable instead of falling back to direct."})]}),(0,s.jsx)(a.lM,{checked:!0===f.strictProxy,onChange:()=>g(e=>({...e,strictProxy:!e.strictProxy})),disabled:N})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,s.jsx)(a.$n,{fullWidth:!0,onClick:q,disabled:!f.name.trim()||!f.proxyUrl.trim()||N,children:N?"Saving...":"Save"}),(0,s.jsx)(a.$n,{fullWidth:!0,variant:"ghost",onClick:M,disabled:N,children:"Cancel"})]})]})}),(0,s.jsx)(a.uo,{isOpen:!!V,onClose:()=>L(null),onConfirm:V?.onConfirm,title:V?.title||"Confirm",message:V?.message,variant:"danger"})]})}}},e=>{e.O(0,[2574,3862,1051,1321,5497,8441,3794,7358],()=>e(e.s=22248)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{18042:(e,r,o)=>{"use strict";o.r(r),o.d(r,{default:()=>t});var a=o(95155),l=o(12115),s=o(25086),n=o(75095);function t(){return(0,a.jsx)(l.Suspense,{fallback:(0,a.jsx)(s.CardSkeleton,{}),children:(0,a.jsx)(u,{})})}function u(){let[e,r]=(0,l.useState)({loading:!0,role:null,showQuotaTracker:!0});return((0,l.useEffect)(()=>{let e=!1;return fetch("/api/auth/me",{cache:"no-store"}).then(e=>e.json()).then(o=>{if(!e){if("sub_user"===o.role&&!1===o.showQuotaTracker){window.location.href="/dashboard/user";return}r({loading:!1,role:o.role||null,showQuotaTracker:!1!==o.showQuotaTracker})}}).catch(()=>{e||r({loading:!1,role:null,showQuotaTracker:!0})}),()=>{e=!0}},[]),e.loading)?(0,a.jsx)(s.CardSkeleton,{}):(0,a.jsx)(n.A,{readOnly:"sub_user"===e.role,allowCodexActivation:"sub_user"===e.role})}},61034:(e,r,o)=>{Promise.resolve().then(o.bind(o,18042))}},e=>{e.O(0,[2574,3862,1051,1321,5497,5095,8441,3794,7358],()=>e(e.s=61034)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9305],{69590:(e,s,n)=>{Promise.resolve().then(n.bind(n,96748)),Promise.resolve().then(n.bind(n,98572)),Promise.resolve().then(n.bind(n,56319)),Promise.resolve().then(n.bind(n,56061)),Promise.resolve().then(n.bind(n,92542)),Promise.resolve().then(n.bind(n,84588)),Promise.resolve().then(n.bind(n,40197)),Promise.resolve().then(n.bind(n,45455)),Promise.resolve().then(n.bind(n,30815)),Promise.resolve().then(n.bind(n,73579)),Promise.resolve().then(n.bind(n,92173)),Promise.resolve().then(n.bind(n,95088)),Promise.resolve().then(n.bind(n,74891)),Promise.resolve().then(n.bind(n,80752)),Promise.resolve().then(n.bind(n,23936)),Promise.resolve().then(n.bind(n,11910)),Promise.resolve().then(n.bind(n,61500)),Promise.resolve().then(n.bind(n,62899)),Promise.resolve().then(n.bind(n,94230)),Promise.resolve().then(n.bind(n,21931)),Promise.resolve().then(n.bind(n,91450)),Promise.resolve().then(n.bind(n,7648)),Promise.resolve().then(n.bind(n,25086)),Promise.resolve().then(n.bind(n,28815)),Promise.resolve().then(n.bind(n,28058)),Promise.resolve().then(n.bind(n,81127)),Promise.resolve().then(n.bind(n,72908)),Promise.resolve().then(n.bind(n,36548)),Promise.resolve().then(n.bind(n,4823)),Promise.resolve().then(n.bind(n,90882)),Promise.resolve().then(n.bind(n,51825)),Promise.resolve().then(n.bind(n,23615)),Promise.resolve().then(n.bind(n,28067)),Promise.resolve().then(n.bind(n,98)),Promise.resolve().then(n.bind(n,92622)),Promise.resolve().then(n.bind(n,21110)),Promise.resolve().then(n.bind(n,38587)),Promise.resolve().then(n.bind(n,98542)),Promise.resolve().then(n.bind(n,97677)),Promise.resolve().then(n.bind(n,23132)),Promise.resolve().then(n.bind(n,95892))}},e=>{e.O(0,[2574,3862,1051,1321,5497,8441,3794,7358],()=>e(e.s=69590)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,318,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1088,1091,1110,1118,1157,1200,1288,1337,1382,1451,1512,1566,1666,1686,1697,1860,1907,1910,1946,1949,2121,2198,2284,2296,2525,2536,2772,2785,2797,2919,2922,3025,3038,3079,3397,3472,3507,3528,3549,3562,3568,3579,3883,3888,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4896,4993,5018,5107,5177,5211,5226,5377,5466,5637,5685,5745,5922,6091,6100,6107,6268,6319,6432,6479,6529,6580,6594,6619,6740,6743,6819,6919,6988,7131,7158,7218,7241,7311,7429,7445,7473,7508,7520,7824,7851,8026,8167,8207,8246,8453,8489,8506,8573,8648,8673,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9678,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);