vansrouter 0.91.89 → 0.91.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1110) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +19 -18
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +3 -3
  5. package/app/.next-cli-build/required-server-files.json +4 -0
  6. package/app/.next-cli-build/routes-manifest.json +11 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +10 -4
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +5 -5
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-fitness/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-fitness/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-fitness/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  80. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.rsc +2 -2
  84. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +2 -2
  85. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  89. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +2 -2
  90. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  91. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  92. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  93. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  94. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  95. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  96. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  97. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +4 -4
  98. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  99. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  100. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  101. package/app/.next-cli-build/server/app/api/auth/check/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/check/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
  118. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  126. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
  128. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +2 -2
  130. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  138. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  142. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  144. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  152. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -3
  158. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +3 -3
  162. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  166. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +2 -2
  168. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  170. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  200. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  202. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  234. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
  256. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +2 -2
  266. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/providers/[id]/gcp-projects/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/providers/[id]/gcp-projects/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/providers/bulk/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/providers/bulk/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/[name]/reset/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/[name]/reset/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/providers/circuit-breakers/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +2 -2
  292. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/fitness/clear/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/fitness/clear/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +3 -3
  304. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +3 -3
  306. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/clear-all/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/clear-all/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/proxy-pools/fitness/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +2 -2
  312. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +3 -3
  316. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  318. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  322. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  324. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  326. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  330. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  332. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/ready/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/ready/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  350. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  372. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/usage/request-details/[id]/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  396. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +2 -2
  402. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  428. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -0
  430. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -0
  431. package/app/.next-cli-build/server/app/api/v1/systemone/route_client-reference-manifest.js +1 -0
  432. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  433. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  439. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  440. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  441. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  442. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  443. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  444. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  445. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  446. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  447. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  448. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  449. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  450. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  451. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  452. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  453. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  454. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  455. package/app/.next-cli-build/server/app/callback.html +1 -1
  456. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  457. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  458. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  459. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +4 -4
  460. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  461. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  462. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  463. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  464. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  465. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  466. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  467. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  468. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  469. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  470. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  471. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +4 -4
  472. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  473. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  474. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  475. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  476. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  478. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  480. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +4 -4
  482. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  483. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  484. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  485. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  486. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  487. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  488. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  490. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +4 -4
  492. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  493. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  494. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  495. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  496. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  497. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  498. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  500. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  501. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +4 -4
  502. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  503. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  504. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  505. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  506. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  507. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  509. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  510. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  511. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  512. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +4 -4
  513. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  514. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  516. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  517. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  519. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  520. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  521. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  522. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +4 -4
  523. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  524. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  525. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  526. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  527. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  529. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  530. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  531. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  532. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +4 -4
  533. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  534. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  535. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  536. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  537. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  539. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  540. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  541. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  542. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  543. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +4 -4
  544. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  545. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  546. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  547. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  548. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  549. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  550. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  551. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  552. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  553. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +4 -4
  554. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  555. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.html +1 -1
  556. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.rsc +6 -6
  557. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk/dashboard/proxy-fitness/__PAGE__.segment.rsc +2 -2
  558. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk/dashboard/proxy-fitness.segment.rsc +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  560. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  561. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_full.segment.rsc +6 -6
  562. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_head.segment.rsc +1 -1
  563. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_index.segment.rsc +4 -4
  564. package/app/.next-cli-build/server/app/dashboard/proxy-fitness.segments/_tree.segment.rsc +2 -2
  565. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  566. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  567. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  568. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  569. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  570. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  571. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  572. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +4 -4
  574. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  575. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  576. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  577. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  578. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  579. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  580. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  581. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  582. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +4 -4
  584. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  585. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  586. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  587. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
  588. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  589. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  590. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  591. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  592. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  593. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +4 -4
  594. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  595. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  596. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  597. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  598. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  599. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +4 -4
  600. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +4 -4
  601. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  602. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +4 -4
  603. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  604. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  605. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  606. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  607. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  608. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  609. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  610. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  611. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  612. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  613. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  614. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  615. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  616. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +4 -4
  617. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  618. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  619. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  620. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  621. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  622. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  623. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  624. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  625. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  626. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +4 -4
  627. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  628. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  629. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  630. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  631. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  632. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  633. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  634. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  635. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  636. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +4 -4
  637. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  638. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  639. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  640. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  641. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  642. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  643. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  644. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  645. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  646. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +4 -4
  647. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  648. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  649. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  650. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  651. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  652. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  653. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  654. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  655. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +4 -4
  656. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  657. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  658. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  659. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  660. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  661. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  662. package/app/.next-cli-build/server/app/landing.html +1 -1
  663. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  664. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  665. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  666. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +4 -4
  667. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  668. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  669. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  670. package/app/.next-cli-build/server/app/login/page.js +2 -2
  671. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  672. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  673. package/app/.next-cli-build/server/app/login.html +1 -1
  674. package/app/.next-cli-build/server/app/login.rsc +5 -5
  675. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  676. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  677. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +4 -4
  678. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  679. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  680. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  681. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +1 -1
  682. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  683. package/app/.next-cli-build/server/app/masuk/page.js +2 -2
  684. package/app/.next-cli-build/server/app/masuk/page.js.nft.json +1 -1
  685. package/app/.next-cli-build/server/app/masuk/page_client-reference-manifest.js +1 -1
  686. package/app/.next-cli-build/server/app-paths-manifest.json +19 -18
  687. package/app/.next-cli-build/server/chunks/2247.js +1 -1
  688. package/app/.next-cli-build/server/chunks/228.js +1 -1
  689. package/app/.next-cli-build/server/chunks/2741.js +1 -1
  690. package/app/.next-cli-build/server/chunks/3129.js +1 -1
  691. package/app/.next-cli-build/server/chunks/3519.js +1 -1
  692. package/app/.next-cli-build/server/chunks/3548.js +1 -1
  693. package/app/.next-cli-build/server/chunks/3738.js +1 -1
  694. package/app/.next-cli-build/server/chunks/3909.js +1 -1
  695. package/app/.next-cli-build/server/chunks/4105.js +1 -1
  696. package/app/.next-cli-build/server/chunks/4387.js +1 -1
  697. package/app/.next-cli-build/server/chunks/4784.js +1 -1
  698. package/app/.next-cli-build/server/chunks/5328.js +1 -0
  699. package/app/.next-cli-build/server/chunks/6127.js +1 -1
  700. package/app/.next-cli-build/server/chunks/6385.js +1 -1
  701. package/app/.next-cli-build/server/chunks/6797.js +1 -1
  702. package/app/.next-cli-build/server/chunks/7074.js +1 -1
  703. package/app/.next-cli-build/server/chunks/7104.js +1 -1
  704. package/app/.next-cli-build/server/chunks/7173.js +1 -1
  705. package/app/.next-cli-build/server/chunks/7622.js +1 -1
  706. package/app/.next-cli-build/server/chunks/77.js +1 -1
  707. package/app/.next-cli-build/server/chunks/9536.js +1 -1
  708. package/app/.next-cli-build/server/chunks/9685.js +7 -0
  709. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  710. package/app/.next-cli-build/server/pages/404.html +1 -1
  711. package/app/.next-cli-build/server/pages/500.html +1 -1
  712. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  713. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  714. package/app/.next-cli-build/static/Faw8UdRKb10F_1ofiRK11/_buildManifest.js +1 -0
  715. package/app/.next-cli-build/static/chunks/4385-0880a655ac0fe549.js +1 -0
  716. package/app/.next-cli-build/static/chunks/736-c763ec5a10c1bd26.js +1 -0
  717. package/app/.next-cli-build/static/chunks/{9131-5c48f6b07c55928d.js → 9131-5ac0bec65efb8f05.js} +2 -2
  718. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-bed83d460dcae16d.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-9e6ae6394f0bfa3a.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-6fb9dbec413202a9.js → page-147be3666eb5894d.js} +8 -2
  721. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-db5b6a655dbd0d67.js +27 -0
  722. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-f675140ae5c050d9.js → page-fad29c58c891458c.js} +1 -1
  723. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-350e9dd8ec551006.js → page-a762c2908bbda8a0.js} +1 -1
  724. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-c7d23dc2ea52f500.js → page-ec5f2d0d44d8ef61.js} +1 -1
  725. package/app/.next-cli-build/static/chunks/app/_global-error/{page-e678b3a246de17ed.js → page-5828c40c6e7494f6.js} +1 -1
  726. package/app/.next-cli-build/static/chunks/app/api/auth/check/{route-e678b3a246de17ed.js → route-5828c40c6e7494f6.js} +1 -1
  727. package/app/.next-cli-build/static/chunks/app/api/auth/login/{route-e678b3a246de17ed.js → route-5828c40c6e7494f6.js} +1 -1
  728. package/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-e678b3a246de17ed.js → route-5828c40c6e7494f6.js} +1 -1
  729. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-5828c40c6e7494f6.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-5828c40c6e7494f6.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-5828c40c6e7494f6.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-5828c40c6e7494f6.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-5828c40c6e7494f6.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-5828c40c6e7494f6.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-5828c40c6e7494f6.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-5828c40c6e7494f6.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-5828c40c6e7494f6.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-5828c40c6e7494f6.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-5828c40c6e7494f6.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-5828c40c6e7494f6.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-5828c40c6e7494f6.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-5828c40c6e7494f6.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-5828c40c6e7494f6.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-5828c40c6e7494f6.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-5828c40c6e7494f6.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-5828c40c6e7494f6.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-5828c40c6e7494f6.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-5828c40c6e7494f6.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-5828c40c6e7494f6.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-5828c40c6e7494f6.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-5828c40c6e7494f6.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-5828c40c6e7494f6.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-5828c40c6e7494f6.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-5828c40c6e7494f6.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-5828c40c6e7494f6.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-5828c40c6e7494f6.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-5828c40c6e7494f6.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-5828c40c6e7494f6.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-5828c40c6e7494f6.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-5828c40c6e7494f6.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-5828c40c6e7494f6.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-5828c40c6e7494f6.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/combos/route-5828c40c6e7494f6.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-5828c40c6e7494f6.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-5828c40c6e7494f6.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-5828c40c6e7494f6.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-5828c40c6e7494f6.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-5828c40c6e7494f6.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-5828c40c6e7494f6.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/health/route-5828c40c6e7494f6.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/init/route-5828c40c6e7494f6.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-5828c40c6e7494f6.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/keys/route-5828c40c6e7494f6.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/locale/route-5828c40c6e7494f6.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-5828c40c6e7494f6.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-5828c40c6e7494f6.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-5828c40c6e7494f6.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-5828c40c6e7494f6.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-5828c40c6e7494f6.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-5828c40c6e7494f6.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-5828c40c6e7494f6.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-5828c40c6e7494f6.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-5828c40c6e7494f6.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-5828c40c6e7494f6.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-5828c40c6e7494f6.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-5828c40c6e7494f6.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/models/route-5828c40c6e7494f6.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/models/test/route-5828c40c6e7494f6.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-5828c40c6e7494f6.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-5828c40c6e7494f6.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-5828c40c6e7494f6.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-5828c40c6e7494f6.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-5828c40c6e7494f6.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-5828c40c6e7494f6.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-5828c40c6e7494f6.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-5828c40c6e7494f6.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-5828c40c6e7494f6.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-5828c40c6e7494f6.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-5828c40c6e7494f6.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-5828c40c6e7494f6.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-5828c40c6e7494f6.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-5828c40c6e7494f6.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-5828c40c6e7494f6.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-5828c40c6e7494f6.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/pricing/route-5828c40c6e7494f6.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-5828c40c6e7494f6.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-5828c40c6e7494f6.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-5828c40c6e7494f6.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/gcp-projects/route-5828c40c6e7494f6.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-5828c40c6e7494f6.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-5828c40c6e7494f6.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-5828c40c6e7494f6.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-5828c40c6e7494f6.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-5828c40c6e7494f6.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/providers/bulk/route-5828c40c6e7494f6.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-5828c40c6e7494f6.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-5828c40c6e7494f6.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-5828c40c6e7494f6.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-5828c40c6e7494f6.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/providers/route-5828c40c6e7494f6.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-5828c40c6e7494f6.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-5828c40c6e7494f6.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-5828c40c6e7494f6.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/fitness/clear/route-5828c40c6e7494f6.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-5828c40c6e7494f6.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-5828c40c6e7494f6.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-5828c40c6e7494f6.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-5828c40c6e7494f6.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/clear-all/route-5828c40c6e7494f6.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/route-5828c40c6e7494f6.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-5828c40c6e7494f6.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-5828c40c6e7494f6.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-5828c40c6e7494f6.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-5828c40c6e7494f6.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-5828c40c6e7494f6.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-5828c40c6e7494f6.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-5828c40c6e7494f6.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-5828c40c6e7494f6.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-5828c40c6e7494f6.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-5828c40c6e7494f6.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-5828c40c6e7494f6.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/ready/route-5828c40c6e7494f6.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-5828c40c6e7494f6.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-5828c40c6e7494f6.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-5828c40c6e7494f6.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/settings/route-5828c40c6e7494f6.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-5828c40c6e7494f6.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/tags/route-5828c40c6e7494f6.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-5828c40c6e7494f6.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-5828c40c6e7494f6.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-5828c40c6e7494f6.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-5828c40c6e7494f6.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-5828c40c6e7494f6.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-5828c40c6e7494f6.js +1 -0
  855. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-5828c40c6e7494f6.js +1 -0
  856. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-5828c40c6e7494f6.js +1 -0
  857. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-5828c40c6e7494f6.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-5828c40c6e7494f6.js +1 -0
  859. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-5828c40c6e7494f6.js +1 -0
  860. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-5828c40c6e7494f6.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-5828c40c6e7494f6.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-5828c40c6e7494f6.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-5828c40c6e7494f6.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-5828c40c6e7494f6.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-5828c40c6e7494f6.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-5828c40c6e7494f6.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-5828c40c6e7494f6.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-5828c40c6e7494f6.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-5828c40c6e7494f6.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-5828c40c6e7494f6.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-5828c40c6e7494f6.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-5828c40c6e7494f6.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-5828c40c6e7494f6.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-5828c40c6e7494f6.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-5828c40c6e7494f6.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-5828c40c6e7494f6.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-5828c40c6e7494f6.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-5828c40c6e7494f6.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-5828c40c6e7494f6.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-5828c40c6e7494f6.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-5828c40c6e7494f6.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-5828c40c6e7494f6.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-5828c40c6e7494f6.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-5828c40c6e7494f6.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-5828c40c6e7494f6.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-5828c40c6e7494f6.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-5828c40c6e7494f6.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/v1/route-5828c40c6e7494f6.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-5828c40c6e7494f6.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-5828c40c6e7494f6.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-5828c40c6e7494f6.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-5828c40c6e7494f6.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-5828c40c6e7494f6.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-5828c40c6e7494f6.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-5828c40c6e7494f6.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-5828c40c6e7494f6.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-5828c40c6e7494f6.js +1 -0
  898. package/app/.next-cli-build/static/chunks/app/api/version/route-5828c40c6e7494f6.js +1 -0
  899. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-5828c40c6e7494f6.js +1 -0
  900. package/app/.next-cli-build/static/chunks/app/api/version/update/route-5828c40c6e7494f6.js +1 -0
  901. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-5828c40c6e7494f6.js +1 -0
  902. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-5828c40c6e7494f6.js +1 -0
  903. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-5828c40c6e7494f6.js +1 -0
  904. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-5828c40c6e7494f6.js +1 -0
  905. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-5828c40c6e7494f6.js +1 -0
  906. package/app/.next-cli-build/static/css/6aa4132af9cc0b11.css +1 -0
  907. package/app/package.json +1 -1
  908. package/app/server.js +1 -1
  909. package/app/src/app/(dashboard)/dashboard/basic-chat/BasicChatPageClient.js +19 -9
  910. package/app/src/app/(dashboard)/dashboard/combos/page.js +4 -0
  911. package/app/src/app/(dashboard)/dashboard/endpoint/EndpointPageClient.js +4 -0
  912. package/app/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/GenericExampleCard.js +2 -2
  913. package/app/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/components/exampleShared.js +15 -0
  914. package/app/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -2
  915. package/app/src/app/(dashboard)/dashboard/providers/[id]/AddApiKeyModal.js +12 -1
  916. package/app/src/app/(dashboard)/dashboard/providers/page.js +4 -0
  917. package/app/src/app/(dashboard)/dashboard/translator/page.js +1 -1
  918. package/app/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js +1 -1
  919. package/app/src/app/api/models/test/ping.js +30 -0
  920. package/app/src/app/api/v1/systemone/route.js +21 -0
  921. package/app/src/mitm/server.js +1 -1
  922. package/app/src/shared/components/Sidebar.js +1 -1
  923. package/app/src/shared/constants/providers.js +1 -0
  924. package/app/src/sse/handlers/systemone.js +256 -0
  925. package/package.json +1 -1
  926. package/app/.next-cli-build/server/chunks/2098.js +0 -7
  927. package/app/.next-cli-build/static/LbAvi6x-snQC6rsQ9_c6d/_buildManifest.js +0 -1
  928. package/app/.next-cli-build/static/chunks/4385-cbf2781a85164825.js +0 -1
  929. package/app/.next-cli-build/static/chunks/736-5c250610e5716d32.js +0 -1
  930. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/page-899b774beab99e2e.js +0 -1
  931. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-695c6386c328069c.js +0 -1
  932. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-b15161b2f2dbe57a.js +0 -27
  933. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-e678b3a246de17ed.js +0 -1
  934. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-e678b3a246de17ed.js +0 -1
  935. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-e678b3a246de17ed.js +0 -1
  936. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-e678b3a246de17ed.js +0 -1
  937. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-e678b3a246de17ed.js +0 -1
  938. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-e678b3a246de17ed.js +0 -1
  939. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-e678b3a246de17ed.js +0 -1
  940. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-e678b3a246de17ed.js +0 -1
  941. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-e678b3a246de17ed.js +0 -1
  942. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-e678b3a246de17ed.js +0 -1
  943. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-e678b3a246de17ed.js +0 -1
  944. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-e678b3a246de17ed.js +0 -1
  945. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-e678b3a246de17ed.js +0 -1
  946. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-e678b3a246de17ed.js +0 -1
  947. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-e678b3a246de17ed.js +0 -1
  948. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-e678b3a246de17ed.js +0 -1
  949. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-e678b3a246de17ed.js +0 -1
  950. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-e678b3a246de17ed.js +0 -1
  951. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-e678b3a246de17ed.js +0 -1
  952. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-e678b3a246de17ed.js +0 -1
  953. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-e678b3a246de17ed.js +0 -1
  954. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-e678b3a246de17ed.js +0 -1
  955. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-e678b3a246de17ed.js +0 -1
  956. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-e678b3a246de17ed.js +0 -1
  957. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-e678b3a246de17ed.js +0 -1
  958. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-e678b3a246de17ed.js +0 -1
  959. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-e678b3a246de17ed.js +0 -1
  960. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-e678b3a246de17ed.js +0 -1
  961. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-e678b3a246de17ed.js +0 -1
  962. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-e678b3a246de17ed.js +0 -1
  963. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-e678b3a246de17ed.js +0 -1
  964. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-e678b3a246de17ed.js +0 -1
  965. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-e678b3a246de17ed.js +0 -1
  966. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-e678b3a246de17ed.js +0 -1
  967. package/app/.next-cli-build/static/chunks/app/api/combos/route-e678b3a246de17ed.js +0 -1
  968. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-e678b3a246de17ed.js +0 -1
  969. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-e678b3a246de17ed.js +0 -1
  970. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-e678b3a246de17ed.js +0 -1
  971. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-e678b3a246de17ed.js +0 -1
  972. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-e678b3a246de17ed.js +0 -1
  973. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-e678b3a246de17ed.js +0 -1
  974. package/app/.next-cli-build/static/chunks/app/api/health/route-e678b3a246de17ed.js +0 -1
  975. package/app/.next-cli-build/static/chunks/app/api/init/route-e678b3a246de17ed.js +0 -1
  976. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-e678b3a246de17ed.js +0 -1
  977. package/app/.next-cli-build/static/chunks/app/api/keys/route-e678b3a246de17ed.js +0 -1
  978. package/app/.next-cli-build/static/chunks/app/api/locale/route-e678b3a246de17ed.js +0 -1
  979. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-e678b3a246de17ed.js +0 -1
  980. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-e678b3a246de17ed.js +0 -1
  981. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-e678b3a246de17ed.js +0 -1
  982. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-e678b3a246de17ed.js +0 -1
  983. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-e678b3a246de17ed.js +0 -1
  984. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-e678b3a246de17ed.js +0 -1
  985. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-e678b3a246de17ed.js +0 -1
  986. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-e678b3a246de17ed.js +0 -1
  987. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-e678b3a246de17ed.js +0 -1
  988. package/app/.next-cli-build/static/chunks/app/api/models/catalog-sync/route-e678b3a246de17ed.js +0 -1
  989. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-e678b3a246de17ed.js +0 -1
  990. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-e678b3a246de17ed.js +0 -1
  991. package/app/.next-cli-build/static/chunks/app/api/models/route-e678b3a246de17ed.js +0 -1
  992. package/app/.next-cli-build/static/chunks/app/api/models/test/route-e678b3a246de17ed.js +0 -1
  993. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-e678b3a246de17ed.js +0 -1
  994. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-e678b3a246de17ed.js +0 -1
  995. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-e678b3a246de17ed.js +0 -1
  996. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-e678b3a246de17ed.js +0 -1
  997. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-e678b3a246de17ed.js +0 -1
  998. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-e678b3a246de17ed.js +0 -1
  999. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-e678b3a246de17ed.js +0 -1
  1000. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-e678b3a246de17ed.js +0 -1
  1001. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-e678b3a246de17ed.js +0 -1
  1002. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-e678b3a246de17ed.js +0 -1
  1003. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-e678b3a246de17ed.js +0 -1
  1004. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-e678b3a246de17ed.js +0 -1
  1005. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-e678b3a246de17ed.js +0 -1
  1006. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-e678b3a246de17ed.js +0 -1
  1007. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-e678b3a246de17ed.js +0 -1
  1008. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-e678b3a246de17ed.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/app/api/pricing/route-e678b3a246de17ed.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-e678b3a246de17ed.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-e678b3a246de17ed.js +0 -1
  1012. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-e678b3a246de17ed.js +0 -1
  1013. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/gcp-projects/route-e678b3a246de17ed.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-e678b3a246de17ed.js +0 -1
  1015. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-e678b3a246de17ed.js +0 -1
  1016. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-e678b3a246de17ed.js +0 -1
  1017. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-e678b3a246de17ed.js +0 -1
  1018. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-e678b3a246de17ed.js +0 -1
  1019. package/app/.next-cli-build/static/chunks/app/api/providers/bulk/route-e678b3a246de17ed.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/[name]/reset/route-e678b3a246de17ed.js +0 -1
  1021. package/app/.next-cli-build/static/chunks/app/api/providers/circuit-breakers/route-e678b3a246de17ed.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-e678b3a246de17ed.js +0 -1
  1023. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-e678b3a246de17ed.js +0 -1
  1024. package/app/.next-cli-build/static/chunks/app/api/providers/route-e678b3a246de17ed.js +0 -1
  1025. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-e678b3a246de17ed.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-e678b3a246de17ed.js +0 -1
  1027. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-e678b3a246de17ed.js +0 -1
  1028. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/fitness/clear/route-e678b3a246de17ed.js +0 -1
  1029. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-e678b3a246de17ed.js +0 -1
  1030. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-e678b3a246de17ed.js +0 -1
  1031. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-e678b3a246de17ed.js +0 -1
  1032. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-e678b3a246de17ed.js +0 -1
  1033. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/clear-all/route-e678b3a246de17ed.js +0 -1
  1034. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/fitness/route-e678b3a246de17ed.js +0 -1
  1035. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-e678b3a246de17ed.js +0 -1
  1036. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-e678b3a246de17ed.js +0 -1
  1037. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-e678b3a246de17ed.js +0 -1
  1038. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-e678b3a246de17ed.js +0 -1
  1039. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-e678b3a246de17ed.js +0 -1
  1040. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-e678b3a246de17ed.js +0 -1
  1041. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-e678b3a246de17ed.js +0 -1
  1042. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-e678b3a246de17ed.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-e678b3a246de17ed.js +0 -1
  1044. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-e678b3a246de17ed.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-e678b3a246de17ed.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/app/api/ready/route-e678b3a246de17ed.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-e678b3a246de17ed.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-e678b3a246de17ed.js +0 -1
  1049. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-e678b3a246de17ed.js +0 -1
  1050. package/app/.next-cli-build/static/chunks/app/api/settings/route-e678b3a246de17ed.js +0 -1
  1051. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-e678b3a246de17ed.js +0 -1
  1052. package/app/.next-cli-build/static/chunks/app/api/tags/route-e678b3a246de17ed.js +0 -1
  1053. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-e678b3a246de17ed.js +0 -1
  1054. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-e678b3a246de17ed.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-e678b3a246de17ed.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-e678b3a246de17ed.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-e678b3a246de17ed.js +0 -1
  1058. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-e678b3a246de17ed.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-e678b3a246de17ed.js +0 -1
  1060. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-e678b3a246de17ed.js +0 -1
  1061. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-e678b3a246de17ed.js +0 -1
  1062. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-e678b3a246de17ed.js +0 -1
  1063. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-e678b3a246de17ed.js +0 -1
  1064. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-e678b3a246de17ed.js +0 -1
  1065. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-e678b3a246de17ed.js +0 -1
  1066. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-e678b3a246de17ed.js +0 -1
  1067. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-e678b3a246de17ed.js +0 -1
  1068. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-e678b3a246de17ed.js +0 -1
  1069. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-e678b3a246de17ed.js +0 -1
  1070. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-e678b3a246de17ed.js +0 -1
  1071. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-e678b3a246de17ed.js +0 -1
  1072. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-e678b3a246de17ed.js +0 -1
  1073. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/[id]/route-e678b3a246de17ed.js +0 -1
  1074. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-e678b3a246de17ed.js +0 -1
  1075. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-e678b3a246de17ed.js +0 -1
  1076. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-e678b3a246de17ed.js +0 -1
  1077. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-e678b3a246de17ed.js +0 -1
  1078. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-e678b3a246de17ed.js +0 -1
  1079. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-e678b3a246de17ed.js +0 -1
  1080. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-e678b3a246de17ed.js +0 -1
  1081. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-e678b3a246de17ed.js +0 -1
  1082. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-e678b3a246de17ed.js +0 -1
  1083. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-e678b3a246de17ed.js +0 -1
  1084. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-e678b3a246de17ed.js +0 -1
  1085. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-e678b3a246de17ed.js +0 -1
  1086. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-e678b3a246de17ed.js +0 -1
  1087. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-e678b3a246de17ed.js +0 -1
  1088. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-e678b3a246de17ed.js +0 -1
  1089. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-e678b3a246de17ed.js +0 -1
  1090. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-e678b3a246de17ed.js +0 -1
  1091. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-e678b3a246de17ed.js +0 -1
  1092. package/app/.next-cli-build/static/chunks/app/api/v1/route-e678b3a246de17ed.js +0 -1
  1093. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-e678b3a246de17ed.js +0 -1
  1094. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-e678b3a246de17ed.js +0 -1
  1095. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-e678b3a246de17ed.js +0 -1
  1096. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-e678b3a246de17ed.js +0 -1
  1097. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-e678b3a246de17ed.js +0 -1
  1098. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-e678b3a246de17ed.js +0 -1
  1099. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-e678b3a246de17ed.js +0 -1
  1100. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-e678b3a246de17ed.js +0 -1
  1101. package/app/.next-cli-build/static/chunks/app/api/version/route-e678b3a246de17ed.js +0 -1
  1102. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-e678b3a246de17ed.js +0 -1
  1103. package/app/.next-cli-build/static/chunks/app/api/version/update/route-e678b3a246de17ed.js +0 -1
  1104. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-e678b3a246de17ed.js +0 -1
  1105. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-e678b3a246de17ed.js +0 -1
  1106. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-e678b3a246de17ed.js +0 -1
  1107. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-e678b3a246de17ed.js +0 -1
  1108. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-e678b3a246de17ed.js +0 -1
  1109. package/app/.next-cli-build/static/css/e277fef3d96cd619.css +0 -1
  1110. /package/app/.next-cli-build/static/{LbAvi6x-snQC6rsQ9_c6d → Faw8UdRKb10F_1ofiRK11}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8460],{48504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>N});var s=r(15102),a=r(82030),l=r(10736),i=r(31704),n=r(19965);function o(e,t){return"kiro"===t?["oauth","apikey","api_key"]:Array.isArray(e?.authModes)&&e.authModes.length>0?e.authModes:e?.hasOAuth?["oauth"]:["apikey"]}var c=r(11434),d=r(31038),m=r(93885),p=r.n(m),x=r(25795),u=r(71389);let h={available:{icon:"check_circle",color:"#22c55e",label:"Available"},cooldown:{icon:"schedule",color:"#f59e0b",label:"Cooldown"},unavailable:{icon:"error",color:"#ef4444",label:"Unavailable"},unknown:{icon:"help",color:"#6b7280",label:"Unknown"}};function f(){let[e,t]=(0,a.useState)(null),[r,i]=(0,a.useState)(!0),[n,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(null),m=(0,a.useRef)(null),p=(0,x.i)(),u=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/models/availability");if(e.ok){let r=await e.json();t(r)}}catch{}finally{i(!1)}},[]);(0,a.useEffect)(()=>{u();let e=setInterval(u,3e4);return()=>clearInterval(e)},[u]),(0,a.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&o(!1)};return n&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n]);let f=async(e,t)=>{d(`${e}:${t}`);try{(await fetch("/api/models/availability",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"clearCooldown",provider:e,model:t})})).ok?(p.success(`Cooldown cleared for ${t}`),await u()):p.error("Failed to clear cooldown")}catch{p.error("Failed to clear cooldown")}finally{d(null)}};if(r)return null;let b=e?.models||[],g=0===(e?.unavailableCount||b.filter(e=>"available"!==e.status).length),y={};return b.forEach(e=>{if("available"===e.status)return;let t=e.provider||"unknown";y[t]||(y[t]=[]),y[t].push(e)}),(0,s.jsx)("div",{className:"relative",ref:m,children:n&&(0,s.jsxs)("div",{className:"absolute top-full right-0 mt-2 w-80 bg-surface border border-border rounded-xl shadow-2xl z-50 overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border bg-bg",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",style:{color:g?"#22c55e":"#f59e0b"},children:g?"verified":"warning"}),(0,s.jsx)("span",{className:"text-sm font-semibold text-text-main",children:"Model Status"})]}),(0,s.jsx)("button",{type:"button",onClick:u,className:"p-1 rounded-lg hover:bg-surface text-text-muted hover:text-text-main transition-colors",title:"Refresh",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"})})]}),(0,s.jsx)("div",{className:"px-4 py-3 max-h-60 overflow-y-auto",children:g?(0,s.jsx)("p",{className:"text-sm text-text-muted text-center py-2",children:"All models are responding normally."}):(0,s.jsx)("div",{className:"flex flex-col gap-2.5",children:Object.entries(y).map(([e,t])=>(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold text-text-main mb-1.5 capitalize",children:e}),(0,s.jsx)("div",{className:"flex flex-col gap-1",children:t.map(e=>{let t=h[e.status]||h.unknown,r=c===`${e.provider}:${e.model}`;return(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5 rounded-lg bg-surface/30",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] shrink-0",style:{color:t.color},children:t.icon}),(0,s.jsx)("span",{className:"font-mono text-xs text-text-main truncate",children:e.model})]}),"cooldown"===e.status&&(0,s.jsx)(l.Button,{size:"sm",variant:"ghost",onClick:()=>f(e.provider,e.model),disabled:r,className:"text-[10px] px-1.5! py-0.5! ml-2",children:r?"...":"Clear"})]},`${e.provider}-${e.model}`)})})]},e))})})]})})}let b={openai:{title:"Add OpenAI Compatible",type:"openai-compatible",defaultBaseUrl:"https://api.openai.com/v1",namePlaceholder:"OpenAI Compatible (Prod)",prefixPlaceholder:"oc-prod",baseUrlHint:"Use the base URL (ending in /v1) for your OpenAI-compatible API.",modelIdPlaceholder:"e.g. gpt-4, claude-3-opus",errorLabel:"OpenAI Compatible",hasApiType:!0},anthropic:{title:"Add Anthropic Compatible",type:"anthropic-compatible",defaultBaseUrl:"https://api.anthropic.com/v1",namePlaceholder:"Anthropic Compatible (Prod)",prefixPlaceholder:"ac-prod",baseUrlHint:"Use the base URL (ending in /v1) for your Anthropic-compatible API. The system will append /messages.",modelIdPlaceholder:"e.g. claude-3-opus",errorLabel:"Anthropic Compatible",hasApiType:!1}},g=[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],y=function({variant:e,isOpen:t,onClose:r,onCreated:i}){let n=b[e],o=()=>({name:"",prefix:"",...n.hasApiType?{apiType:"chat"}:{},baseUrl:n.defaultBaseUrl}),[c,d]=(0,a.useState)(o),[m,p]=(0,a.useState)(!1),[x,u]=(0,a.useState)(""),[h,f]=(0,a.useState)(""),[y,v]=(0,a.useState)(!1),[j,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{n.hasApiType?d(e=>({...e,baseUrl:n.defaultBaseUrl})):t&&(N(null),u(""),f(""))},[n.hasApiType?c.apiType:t]);let w=async()=>{if(c.name.trim()&&c.prefix.trim()&&c.baseUrl.trim()){p(!0);try{let e=await fetch("/api/provider-nodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:c.name,prefix:c.prefix,...n.hasApiType?{apiType:c.apiType}:{},baseUrl:c.baseUrl,type:n.type})}),t=await e.json();e.ok&&(i(t.node),d(o()),u(""),N(null))}catch(e){console.log(`Error creating ${n.errorLabel} node:`,e)}finally{p(!1)}}},k=async()=>{v(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:c.baseUrl,apiKey:x,type:n.type,modelId:h.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{v(!1)}};return(0,s.jsx)(l.Modal,{isOpen:t,title:n.title,onClose:r,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(l.Input,{label:"Name",value:c.name,onChange:e=>d({...c,name:e.target.value}),placeholder:n.namePlaceholder,hint:"Required. A friendly label for this node."}),(0,s.jsx)(l.Input,{label:"Prefix",value:c.prefix,onChange:e=>d({...c,prefix:e.target.value}),placeholder:n.prefixPlaceholder,hint:"Required. Used as the provider prefix for model IDs."}),n.hasApiType&&(0,s.jsx)(l.Select,{label:"API Type",options:g,value:c.apiType,onChange:e=>d({...c,apiType:e.target.value})}),(0,s.jsx)(l.Input,{label:"Base URL",value:c.baseUrl,onChange:e=>d({...c,baseUrl:e.target.value}),placeholder:n.defaultBaseUrl,hint:n.baseUrlHint}),(0,s.jsx)(l.Input,{label:"API Key (for Check)",type:"password",value:x,onChange:e=>u(e.target.value)}),(0,s.jsx)(l.Input,{label:"Model ID (optional)",value:h,onChange:e=>f(e.target.value),placeholder:n.modelIdPlaceholder,hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,s.jsx)(l.Button,{onClick:k,disabled:!x||y||!c.baseUrl.trim(),variant:"secondary",className:"w-full sm:w-auto",children:y?"Checking...":"Check"}),(()=>{if(!j)return null;let{valid:e,error:t,method:r}=j;return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Badge,{variant:"success",children:"Valid"}),"chat"===r&&(0,s.jsx)("span",{className:"text-sm text-text-muted",children:"(via inference test)"})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(l.Badge,{variant:"error",children:"Invalid"}),t&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,s.jsx)(l.Button,{onClick:w,fullWidth:!0,disabled:!c.name.trim()||!c.prefix.trim()||!c.baseUrl.trim()||m,children:m?"Creating...":"Create"}),(0,s.jsx)(l.Button,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})};function v({status:e,onReset:t}){if(!e||"CLOSED"===e.state)return null;let r={DEGRADED:{color:"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",icon:"warning",label:"Degraded"},OPEN:{color:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400",icon:"power",label:"Circuit Open"},HALF_OPEN:{color:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",icon:"autorenew",label:"Recovering"}},a=r[e.state]||r.DEGRADED,l=e.retryAfterMs>0?` (${Math.ceil(e.retryAfterMs/1e3)}s)`:"";return(0,s.jsxs)("span",{className:`inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium ${a.color}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:a.icon}),a.label,l,"OPEN"===e.state&&t&&(0,s.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),t()},className:"ml-0.5 hover:opacity-70 transition-opacity",title:"Reset circuit breaker",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"refresh"})})]})}function j(e,t,r){let a=[];if(e>0&&a.push((0,s.jsxs)(l.Badge,{variant:"success",size:"sm",dot:!0,children:[e," Connected"]},"connected")),t>0){let e=r?`${t} Error (${r})`:`${t} Error`;a.push((0,s.jsx)(l.Badge,{variant:"error",size:"sm",dot:!0,children:e},"error"))}return 0===a.length?(0,s.jsx)("span",{className:"text-text-muted",children:"No connections"}):a}function N(){let[e,t]=(0,a.useState)([]),[r,i]=(0,a.useState)([]),[n,m]=(0,a.useState)(!0),[p,h]=(0,a.useState)(!1),[b,g]=(0,a.useState)(!1),[v,j]=(0,a.useState)(!1),[N,A]=(0,a.useState)(null),[T,I]=(0,a.useState)(null),P=(0,x.i)(),O=(0,u.C)(e=>e.query),S=(0,u.C)(e=>e.register),E=(0,u.C)(e=>e.unregister),{getCircuitBreakerForProvider:$,resetCircuitBreaker:U}=function(){let[e,t]=(0,a.useState)([]),[r,s]=(0,a.useState)(!0),l=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/providers/circuit-breakers"),r=await e.json();t(r.statuses||[])}catch(e){console.error("Failed to fetch circuit breakers:",e)}finally{s(!1)}},[]);return(0,a.useEffect)(()=>{let e=!1,r=async()=>{try{let r=await fetch("/api/providers/circuit-breakers"),s=await r.json();e||t(s.statuses||[])}catch(t){e||console.error("Failed to fetch circuit breakers:",t)}finally{e||s(!1)}};r();let a=setInterval(r,5e3);return()=>{e=!0,clearInterval(a)}},[]),{statuses:e,loading:r,getCircuitBreakerForProvider:t=>{if(t)return e.find(e=>e.name===t||e.name.startsWith(`${t}:`))},resetCircuitBreaker:async e=>{try{return await fetch(`/api/providers/circuit-breakers/${encodeURIComponent(e)}/reset`,{method:"POST"}),await l(),!0}catch(e){return console.error("Failed to reset circuit breaker:",e),!1}},refresh:l}}();(0,a.useEffect)(()=>(S("Search providers..."),()=>E()),[S,E]);let _=e=>!O.trim()||!!e&&e.toLowerCase().includes(O.trim().toLowerCase());(0,a.useEffect)(()=>{(async()=>{try{let[e,r]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"})]),s=await e.json(),a=await r.json();e.ok&&t(s.connections||[]),r.ok&&i(a.nodes||[])}catch(e){console.log("Error fetching data:",e)}finally{m(!1)}})()},[]);let R=(0,a.useCallback)((t,r)=>{let s=Array.isArray(r)?r:[r],a=e.filter(e=>e.provider===t&&s.includes(e.authType)),l=e=>{let t=Object.entries(e).some(([e,t])=>e.startsWith("modelLock_")&&t&&new Date(t).getTime()>Date.now());return"unavailable"!==e.testStatus||t?e.testStatus:"active"},i=a.filter(e=>{let t=l(e);return"active"===t||"success"===t}).length,n=a.filter(e=>{let t=l(e);return"error"===t||"expired"===t||"unavailable"===t}),o=n.length,c=a.length,d=c>0&&a.every(e=>!1===e.isActive),m=n.sort((e,t)=>new Date(t.lastErrorAt||0)-new Date(e.lastErrorAt||0))[0];return{connected:i,error:o,total:c,errorCode:m?function(e){if(!e)return null;let t=e.lastErrorType;if("runtime_error"===t)return"RUNTIME";if("upstream_auth_error"===t||"auth_missing"===t||"token_refresh_failed"===t||"token_expired"===t)return"AUTH";if("upstream_rate_limited"===t)return"429";if("upstream_unavailable"===t)return"5XX";if("network_error"===t)return"NET";let r=Number(e.errorCode);if(Number.isFinite(r)&&r>=400)return String(r);let s=function(e){if(!e)return null;let t=e.match(/\b([45]\d{2})\b/);return t?t[1]:"ERR"}(e.lastError);if("401"===s||"403"===s)return"AUTH";if(s&&"ERR"!==s)return s;let a=(e.lastError||"").toLowerCase();return a.includes("runtime")||a.includes("not runnable")||a.includes("not installed")?"RUNTIME":a.includes("invalid api key")||a.includes("token invalid")||a.includes("revoked")||a.includes("unauthorized")?"AUTH":"ERR"}(m):null,errorTime:m?.lastErrorAt?function(e){if(!e)return"";let t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;let r=Math.floor(t/60);if(r<24)return`${r}h ago`;let s=Math.floor(r/24);return`${s}d ago`}(m.lastErrorAt):null,allDisabled:d}},[e]),B=async(r,s,a)=>{let l=Array.isArray(s)?s:[s],i=e=>e.provider===r&&l.includes(e.authType),n=e.filter(i);t(e=>e.map(e=>i(e)?{...e,isActive:a}:e)),await Promise.allSettled(n.map(e=>fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:a})})))},D=async(e,t=null)=>{if(!N){A("provider"===e?t:e),I(null);try{let r=await fetch("/api/providers/test-batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e,providerId:t})}),s=await r.json();if(I(s),s.summary){let{passed:e,failed:t,total:r}=s.summary;0===t?P.success(`All ${r} tests passed`):P.warning(`${e}/${r} passed, ${t} failed`)}}catch(e){I({error:"Test request failed"}),P.error("Provider test failed")}finally{A(null)}}},M=(0,a.useMemo)(()=>r.filter(e=>"openai-compatible"===e.type).map(e=>({id:e.id,name:e.name||"OpenAI Compatible",color:"#10A37F",textIcon:"OC",apiType:e.apiType})).filter(e=>_(e.name)),[r,_]),z=(0,a.useMemo)(()=>r.filter(e=>"anthropic-compatible"===e.type).map(e=>({id:e.id,name:e.name||"Anthropic Compatible",color:"#D97757",textIcon:"AC"})).filter(e=>_(e.name)),[r,_]),F=(0,a.useMemo)(()=>{let e,t;return e=Object.entries(c.zN).filter(([,e])=>!e.hidden&&_(e.name)),t="oauth",[...e].sort(([e,r],[s,a])=>{let l=r.priority??999,i=a.priority??999;if(l!==i)return l-i;let n=R(e,t),o=R(s,t),c=+(n.connected>0),d=+(o.connected>0);return c!==d?d-c:(r.name||"").localeCompare(a.name||"")})},[_]),L=(0,a.useMemo)(()=>Object.entries(d.IS).filter(([,e])=>!e.hidden&&_(e.name)).sort(([,e],[,t])=>!!t.noAuth-!!e.noAuth),[_]),H=(0,a.useMemo)(()=>Object.entries(d.nJ).filter(([,e])=>!e.hidden&&_(e.name)&&(e.serviceKinds??["llm"]).includes("llm")).sort(([e,t],[r,s])=>{let a=t.priority??999,l=s.priority??999;if(a!==l)return a-l;let i=!!s.noAuth-!!t.noAuth;if(0!==i)return i;let n=R(e,o(t,e)).connected>0?0:1,c=R(r,o(s,r)).connected>0?0:1;return n!==c?n-c:(t.name||"").localeCompare(s.name||"")}),[_,R]),K=(0,a.useMemo)(()=>Object.entries(c.fg).filter(([,e])=>!e.hidden&&(e.serviceKinds??["llm"]).includes("llm")&&_(e.name)).sort(([e,t],[r,s])=>{let a=R(e,"apikey").total>0?0:1,l=R(r,"apikey").total>0?0:1;return a!==l?a-l:(t.name||"").localeCompare(s.name||"")}),[_,R]),J=(0,a.useMemo)(()=>Object.entries(d.br).filter(([,e])=>!e.hidden&&_(e.name)).sort(([e,t],[r,s])=>{let a=R(e,"cookie").total>0?0:1,l=R(r,"cookie").total>0?0:1;return a!==l?a-l:(t.name||"").localeCompare(s.name||"")}),[_,R]),W=!!O.trim(),q=W||p?K:K.slice(0,20),G=K.length-20;if(n)return(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(l.CardSkeleton,{}),(0,s.jsx)(l.CardSkeleton,{})]});let X=F.length>0||L.length>0||H.length>0||K.length>0||J.length>0||M.length>0||z.length>0;return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[!X&&(0,s.jsxs)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px] text-text-muted mb-2",children:"search_off"}),(0,s.jsx)("p",{className:"text-text-muted text-sm",children:"No providers match your search"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["Custom Providers (OpenAI/Anthropic Compatible)"," "]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:w-auto",children:[(0,s.jsx)(l.Button,{size:"sm",icon:"add",onClick:()=>j(!0),className:"w-full sm:w-auto",children:"Add Anthropic Compatible"}),(0,s.jsx)(l.Button,{size:"sm",variant:"secondary",icon:"add",onClick:()=>g(!0),className:"w-full sm:w-auto",children:"Add OpenAI Compatible"})]})]}),0===M.length&&0===z.length?(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2 border border-dashed border-border rounded-xl text-text-muted text-sm",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"extension"}),(0,s.jsx)("span",{children:"No custom providers — use buttons above to add OpenAI/Anthropic compatible endpoints"})]}):(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:[...M,...z].map(e=>(0,s.jsx)(k,{providerId:e.id,provider:e,stats:R(e.id,"apikey"),authType:"compatible",circuitBreaker:$(e.id),onResetCircuit:U,onToggle:t=>B(e.id,"apikey",t)},e.id))})]}),F.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"OAuth Providers"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsx)(f,{}),(0,s.jsxs)("button",{onClick:()=>D("oauth"),disabled:!!N,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"oauth"===N?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all OAuth connections","aria-label":"Test all OAuth connections",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[14px]${"oauth"===N?" animate-spin":""}`,children:"play_arrow"}),"oauth"===N?"Testing...":"Test All"]})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:F.map(([e,t])=>(0,s.jsx)(w,{providerId:e,provider:t,stats:R(e,"oauth"),authType:"oauth",circuitBreaker:$(e),onResetCircuit:U,onToggle:t=>B(e,"oauth",t)},e))})]}),(L.length>0||H.length>0)&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"Free Tier Providers"}),(0,s.jsxs)("button",{onClick:()=>D("free"),disabled:!!N,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"free"===N?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all Free connections","aria-label":"Test all Free provider connections",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[14px]${"free"===N?" animate-spin":""}`,children:"play_arrow"}),"free"===N?"Testing...":"Test All"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:[L.map(([e,t])=>{let r="kiro"===e?["oauth","apikey","api_key"]:"oauth";return(0,s.jsx)(w,{providerId:e,provider:t,stats:R(e,r),authType:"free",circuitBreaker:$(e),onResetCircuit:U,onToggle:t=>B(e,r,t)},e)}),H.map(([e,t])=>{let r=o(t,e);return(0,s.jsx)(k,{providerId:e,provider:t,stats:R(e,r),authType:Array.isArray(r)?r[0]??"apikey":r,onToggle:t=>B(e,r,t)},e)})]})]}),K.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["API Key Providers"," "]}),(0,s.jsxs)("button",{onClick:()=>D("apikey"),disabled:!!N,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"apikey"===N?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all API Key connections","aria-label":"Test all API Key connections",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[14px]${"apikey"===N?" animate-spin":""}`,children:"play_arrow"}),"apikey"===N?"Testing...":"Test All"]})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:q.map(([e,t])=>(0,s.jsx)(k,{providerId:e,provider:t,stats:R(e,"apikey"),authType:"apikey",onToggle:t=>B(e,"apikey",t)},e))}),!W&&!p&&G>0&&(0,s.jsxs)("button",{onClick:()=>h(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2.5 text-sm font-medium text-primary transition-colors hover:border-primary hover:bg-primary/5",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"expand_more"}),"Show all ",K.length," providers"]})]}),J.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-between",children:(0,s.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["Web Cookie Providers"," "]})}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:J.map(([e,t])=>(0,s.jsx)(k,{providerId:e,provider:t,stats:R(e,"cookie"),authType:"cookie",onToggle:t=>B(e,"cookie",t)},e))})]}),(0,s.jsx)(y,{variant:"openai",isOpen:b,onClose:()=>g(!1),onCreated:e=>{i(t=>[...t,e]),g(!1)}}),(0,s.jsx)(y,{variant:"anthropic",isOpen:v,onClose:()=>j(!1),onCreated:e=>{i(t=>[...t,e]),j(!1)}}),T&&(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center px-3 pt-[6vh] sm:pt-[10vh]",onClick:()=>I(null),children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),(0,s.jsxs)("div",{className:"relative bg-surface border border-border rounded-xl w-full max-w-[600px] max-h-[86vh] sm:max-h-[80vh] overflow-y-auto shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between px-5 py-3 border-b border-border bg-surface/95 backdrop-blur-sm rounded-t-xl",children:[(0,s.jsx)("h3",{className:"font-semibold",children:"Test Results"}),(0,s.jsx)("button",{onClick:()=>I(null),className:"p-1 rounded-lg hover:bg-bg text-text-muted hover:text-text-main transition-colors","aria-label":"Close test results",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]}),(0,s.jsx)("div",{className:"p-5",children:(0,s.jsx)(C,{results:T})})]})]})]})}function w({providerId:e,provider:t,stats:r,authType:a,onToggle:n,circuitBreaker:o,onResetCircuit:c}){let{connected:d,error:m,errorCode:x,errorTime:u,allDisabled:h}=r,f=!!t.noAuth;return(0,s.jsx)(p(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,s.jsx)(l.Card,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${h?"opacity-50":""}`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("div",{className:"size-8 shrink-0 rounded-lg flex items-center justify-center",style:{backgroundColor:`${t.color?.length>7?t.color:t.color+"15"}`},children:(0,s.jsx)(i.A,{src:`/providers/${t.id}.webp`,alt:t.name,size:30,className:"object-contain rounded-lg max-w-[32px] max-h-[32px]",fallbackText:t.textIcon||t.id.slice(0,2).toUpperCase(),fallbackColor:t.color})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,s.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:h?(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):f?(0,s.jsx)(l.Badge,{variant:"success",size:"sm",dot:!0,children:"Ready"}):(0,s.jsxs)(s.Fragment,{children:[j(d,m,x),o&&(0,s.jsx)(v,{status:o,onReset:()=>c(o?.name||e)}),u&&(0,s.jsx)("span",{className:"text-text-muted",children:u})]})})]})]}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:r.total>0&&(0,s.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),n(!!h)},children:(0,s.jsx)(l.Toggle,{size:"sm",checked:!h,onChange:()=>{},title:h?"Enable provider":"Disable provider"})})})]})})})}function k({providerId:e,provider:t,stats:r,authType:a,onToggle:o,circuitBreaker:c,onResetCircuit:m}){let{connected:x,error:u,errorCode:h,errorTime:f,allDisabled:b}=r,g=e.startsWith(d.JH),y=e.startsWith(d.DI);return(0,s.jsx)(p(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,s.jsx)(l.Card,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${b?"opacity-50":""}`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("div",{className:"size-8 shrink-0 rounded-lg flex items-center justify-center",style:{backgroundColor:`${t.color?.length>7?t.color:t.color+"15"}`},children:(0,s.jsx)(i.A,{src:g&&t.apiType?"responses"===t.apiType?"/providers/oai-r.webp":"/providers/oai-cc.webp":y?"/providers/anthropic-m.webp":(0,n.HY)(t.id),alt:t.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:t.textIcon||t.id.slice(0,2).toUpperCase(),fallbackColor:t.color})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,s.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:b?(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):(0,s.jsxs)(s.Fragment,{children:[j(x,u,h),g&&(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:"responses"===t.apiType?"Responses":"Chat"}),y&&(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:"Messages"}),f&&(0,s.jsx)("span",{className:"text-text-muted",children:f})]})})]})]}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:r.total>0&&(0,s.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),o(!!b)},children:(0,s.jsx)(l.Toggle,{size:"sm",checked:!b,onChange:()=>{},title:b?"Enable provider":"Disable provider"})})})]})})})}function C({results:e}){if(e.error&&!e.results)return(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-red-500 text-[32px] mb-2 block",children:"error"}),(0,s.jsx)("p",{className:"text-sm text-red-400",children:e.error})]});let{summary:t,mode:r}=e,a=e.results||[];return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[t&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs mb-1 sm:gap-3",children:[(0,s.jsxs)("span",{className:"text-text-muted",children:[{oauth:"OAuth",free:"Free",apikey:"API Key",provider:"Provider",all:"All"}[r]||r," Test"]}),(0,s.jsxs)("span",{className:"px-2 py-0.5 rounded bg-emerald-500/15 text-emerald-400 font-medium",children:[t.passed," passed"]}),t.failed>0&&(0,s.jsxs)("span",{className:"px-2 py-0.5 rounded bg-red-500/15 text-red-400 font-medium",children:[t.failed," failed"]}),(0,s.jsxs)("span",{className:"text-text-muted sm:ml-auto",children:[t.total," tested"]})]}),a.map((e,t)=>(0,s.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2 rounded-lg bg-black/[0.03] px-3 py-2 text-xs dark:bg-white/[0.03] sm:flex-nowrap",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[16px] ${e.valid?"text-emerald-500":"text-red-500"}`,children:e.valid?"check_circle":"error"}),(0,s.jsxs)("div",{className:"min-w-0 flex-[1_1_160px]",children:[(0,s.jsx)("span",{className:"block truncate font-medium sm:inline",children:e.connectionName}),(0,s.jsxs)("span",{className:"block truncate text-text-muted sm:ml-1.5 sm:inline",children:["(",e.provider,")"]})]}),void 0!==e.latencyMs&&(0,s.jsxs)("span",{className:"shrink-0 text-text-muted font-mono tabular-nums",children:[e.latencyMs,"ms"]}),(0,s.jsx)("span",{className:`shrink-0 text-[10px] uppercase font-bold px-1.5 py-0.5 rounded ${e.valid?"bg-emerald-500/15 text-emerald-400":"bg-red-500/15 text-red-400"}`,children:e.valid?"OK":e.diagnosis?.type||"ERROR"})]},e.connectionId||t)),0===a.length&&(0,s.jsx)("div",{className:"text-center py-4 text-text-muted text-sm",children:"No active connections found for this group."})]})}},77048:(e,t,r)=>{Promise.resolve().then(r.bind(r,48504))}},e=>{e.O(0,[3885,7523,7236,4385,736,2147,3204,7358],()=>e(e.s=77048)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8460],{48504:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>N});var s=r(15102),a=r(82030),l=r(10736),i=r(31704),n=r(19965);function o(e,t){return"kiro"===t?["oauth","apikey","api_key"]:Array.isArray(e?.authModes)&&e.authModes.length>0?e.authModes:e?.hasOAuth?["oauth"]:["apikey"]}var c=r(11434),d=r(31038),m=r(93885),p=r.n(m),x=r(25795),u=r(71389);let h={available:{icon:"check_circle",color:"#22c55e",label:"Available"},cooldown:{icon:"schedule",color:"#f59e0b",label:"Cooldown"},unavailable:{icon:"error",color:"#ef4444",label:"Unavailable"},unknown:{icon:"help",color:"#6b7280",label:"Unknown"}};function f(){let[e,t]=(0,a.useState)(null),[r,i]=(0,a.useState)(!0),[n,o]=(0,a.useState)(!1),[c,d]=(0,a.useState)(null),m=(0,a.useRef)(null),p=(0,x.i)(),u=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/models/availability");if(e.ok){let r=await e.json();t(r)}}catch{}finally{i(!1)}},[]);(0,a.useEffect)(()=>{u();let e=setInterval(u,3e4);return()=>clearInterval(e)},[u]),(0,a.useEffect)(()=>{let e=e=>{m.current&&!m.current.contains(e.target)&&o(!1)};return n&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[n]);let f=async(e,t)=>{d(`${e}:${t}`);try{(await fetch("/api/models/availability",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"clearCooldown",provider:e,model:t})})).ok?(p.success(`Cooldown cleared for ${t}`),await u()):p.error("Failed to clear cooldown")}catch{p.error("Failed to clear cooldown")}finally{d(null)}};if(r)return null;let b=e?.models||[],g=0===(e?.unavailableCount||b.filter(e=>"available"!==e.status).length),y={};return b.forEach(e=>{if("available"===e.status)return;let t=e.provider||"unknown";y[t]||(y[t]=[]),y[t].push(e)}),(0,s.jsx)("div",{className:"relative",ref:m,children:n&&(0,s.jsxs)("div",{className:"absolute top-full right-0 mt-2 w-80 bg-surface border border-border rounded-xl shadow-2xl z-50 overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border bg-bg",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",style:{color:g?"#22c55e":"#f59e0b"},children:g?"verified":"warning"}),(0,s.jsx)("span",{className:"text-sm font-semibold text-text-main",children:"Model Status"})]}),(0,s.jsx)("button",{type:"button",onClick:u,className:"p-1 rounded-lg hover:bg-surface text-text-muted hover:text-text-main transition-colors",title:"Refresh",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"})})]}),(0,s.jsx)("div",{className:"px-4 py-3 max-h-60 overflow-y-auto",children:g?(0,s.jsx)("p",{className:"text-sm text-text-muted text-center py-2",children:"All models are responding normally."}):(0,s.jsx)("div",{className:"flex flex-col gap-2.5",children:Object.entries(y).map(([e,t])=>(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"text-xs font-semibold text-text-main mb-1.5 capitalize",children:e}),(0,s.jsx)("div",{className:"flex flex-col gap-1",children:t.map(e=>{let t=h[e.status]||h.unknown,r=c===`${e.provider}:${e.model}`;return(0,s.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5 rounded-lg bg-surface/30",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[14px] shrink-0",style:{color:t.color},children:t.icon}),(0,s.jsx)("span",{className:"font-mono text-xs text-text-main truncate",children:e.model})]}),"cooldown"===e.status&&(0,s.jsx)(l.Button,{size:"sm",variant:"ghost",onClick:()=>f(e.provider,e.model),disabled:r,className:"text-[10px] px-1.5! py-0.5! ml-2",children:r?"...":"Clear"})]},`${e.provider}-${e.model}`)})})]},e))})})]})})}let b={openai:{title:"Add OpenAI Compatible",type:"openai-compatible",defaultBaseUrl:"https://api.openai.com/v1",namePlaceholder:"OpenAI Compatible (Prod)",prefixPlaceholder:"oc-prod",baseUrlHint:"Use the base URL (ending in /v1) for your OpenAI-compatible API.",modelIdPlaceholder:"e.g. gpt-4, claude-3-opus",errorLabel:"OpenAI Compatible",hasApiType:!0},anthropic:{title:"Add Anthropic Compatible",type:"anthropic-compatible",defaultBaseUrl:"https://api.anthropic.com/v1",namePlaceholder:"Anthropic Compatible (Prod)",prefixPlaceholder:"ac-prod",baseUrlHint:"Use the base URL (ending in /v1) for your Anthropic-compatible API. The system will append /messages.",modelIdPlaceholder:"e.g. claude-3-opus",errorLabel:"Anthropic Compatible",hasApiType:!1}},g=[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],y=function({variant:e,isOpen:t,onClose:r,onCreated:i}){let n=b[e],o=()=>({name:"",prefix:"",...n.hasApiType?{apiType:"chat"}:{},baseUrl:n.defaultBaseUrl}),[c,d]=(0,a.useState)(o),[m,p]=(0,a.useState)(!1),[x,u]=(0,a.useState)(""),[h,f]=(0,a.useState)(""),[y,v]=(0,a.useState)(!1),[j,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{n.hasApiType?d(e=>({...e,baseUrl:n.defaultBaseUrl})):t&&(N(null),u(""),f(""))},[n.hasApiType?c.apiType:t]);let w=async()=>{if(c.name.trim()&&c.prefix.trim()&&c.baseUrl.trim()){p(!0);try{let e=await fetch("/api/provider-nodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:c.name,prefix:c.prefix,...n.hasApiType?{apiType:c.apiType}:{},baseUrl:c.baseUrl,type:n.type})}),t=await e.json();e.ok&&(i(t.node),d(o()),u(""),N(null))}catch(e){console.log(`Error creating ${n.errorLabel} node:`,e)}finally{p(!1)}}},k=async()=>{v(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:c.baseUrl,apiKey:x,type:n.type,modelId:h.trim()||void 0})}),t=await e.json();N(t)}catch{N({valid:!1,error:"Network error"})}finally{v(!1)}};return(0,s.jsx)(l.Modal,{isOpen:t,title:n.title,onClose:r,children:(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)(l.Input,{label:"Name",value:c.name,onChange:e=>d({...c,name:e.target.value}),placeholder:n.namePlaceholder,hint:"Required. A friendly label for this node."}),(0,s.jsx)(l.Input,{label:"Prefix",value:c.prefix,onChange:e=>d({...c,prefix:e.target.value}),placeholder:n.prefixPlaceholder,hint:"Required. Used as the provider prefix for model IDs."}),n.hasApiType&&(0,s.jsx)(l.Select,{label:"API Type",options:g,value:c.apiType,onChange:e=>d({...c,apiType:e.target.value})}),(0,s.jsx)(l.Input,{label:"Base URL",value:c.baseUrl,onChange:e=>d({...c,baseUrl:e.target.value}),placeholder:n.defaultBaseUrl,hint:n.baseUrlHint}),(0,s.jsx)(l.Input,{label:"API Key (for Check)",type:"password",value:x,onChange:e=>u(e.target.value)}),(0,s.jsx)(l.Input,{label:"Model ID (optional)",value:h,onChange:e=>f(e.target.value),placeholder:n.modelIdPlaceholder,hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,s.jsx)(l.Button,{onClick:k,disabled:!x||y||!c.baseUrl.trim(),variant:"secondary",className:"w-full sm:w-auto",children:y?"Checking...":"Check"}),(()=>{if(!j)return null;let{valid:e,error:t,method:r}=j;return e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Badge,{variant:"success",children:"Valid"}),"chat"===r&&(0,s.jsx)("span",{className:"text-sm text-text-muted",children:"(via inference test)"})]}):(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsx)(l.Badge,{variant:"error",children:"Invalid"}),t&&(0,s.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,s.jsx)(l.Button,{onClick:w,fullWidth:!0,disabled:!c.name.trim()||!c.prefix.trim()||!c.baseUrl.trim()||m,children:m?"Creating...":"Create"}),(0,s.jsx)(l.Button,{onClick:r,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})};function v({status:e,onReset:t}){if(!e||"CLOSED"===e.state)return null;let r={DEGRADED:{color:"bg-amber-100 text-amber-700 dark:bg-amber-900/30 dark:text-amber-400",icon:"warning",label:"Degraded"},OPEN:{color:"bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400",icon:"power",label:"Circuit Open"},HALF_OPEN:{color:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",icon:"autorenew",label:"Recovering"}},a=r[e.state]||r.DEGRADED,l=e.retryAfterMs>0?` (${Math.ceil(e.retryAfterMs/1e3)}s)`:"";return(0,s.jsxs)("span",{className:`inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium ${a.color}`,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:a.icon}),a.label,l,"OPEN"===e.state&&t&&(0,s.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),t()},className:"ml-0.5 hover:opacity-70 transition-opacity",title:"Reset circuit breaker",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"refresh"})})]})}function j(e,t,r){let a=[];if(e>0&&a.push((0,s.jsxs)(l.Badge,{variant:"success",size:"sm",dot:!0,children:[e," Connected"]},"connected")),t>0){let e=r?`${t} Error (${r})`:`${t} Error`;a.push((0,s.jsx)(l.Badge,{variant:"error",size:"sm",dot:!0,children:e},"error"))}return 0===a.length?(0,s.jsx)("span",{className:"text-text-muted",children:"No connections"}):a}function N(){let[e,t]=(0,a.useState)([]),[r,i]=(0,a.useState)([]),[n,m]=(0,a.useState)(!0),[p,h]=(0,a.useState)(!1),[b,g]=(0,a.useState)(!1),[v,j]=(0,a.useState)(!1),[N,A]=(0,a.useState)(null),[T,I]=(0,a.useState)(null),S=(0,x.i)(),P=(0,u.C)(e=>e.query),O=(0,u.C)(e=>e.register),E=(0,u.C)(e=>e.unregister),{getCircuitBreakerForProvider:$,resetCircuitBreaker:U}=function(){let[e,t]=(0,a.useState)([]),[r,s]=(0,a.useState)(!0),l=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/providers/circuit-breakers"),r=await e.json();t(r.statuses||[])}catch(e){console.error("Failed to fetch circuit breakers:",e)}finally{s(!1)}},[]);return(0,a.useEffect)(()=>{let e=!1,r=async()=>{try{let r=await fetch("/api/providers/circuit-breakers"),s=await r.json();e||t(s.statuses||[])}catch(t){e||console.error("Failed to fetch circuit breakers:",t)}finally{e||s(!1)}};r();let a=setInterval(r,5e3);return()=>{e=!0,clearInterval(a)}},[]),{statuses:e,loading:r,getCircuitBreakerForProvider:t=>{if(t)return e.find(e=>e.name===t||e.name.startsWith(`${t}:`))},resetCircuitBreaker:async e=>{try{return await fetch(`/api/providers/circuit-breakers/${encodeURIComponent(e)}/reset`,{method:"POST"}),await l(),!0}catch(e){return console.error("Failed to reset circuit breaker:",e),!1}},refresh:l}}();(0,a.useEffect)(()=>(O("Search providers..."),()=>E()),[O,E]);let _=e=>!P.trim()||!!e&&e.toLowerCase().includes(P.trim().toLowerCase());(0,a.useEffect)(()=>{(async()=>{try{let[e,r]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"})]),s=await e.json(),a=await r.json();e.ok&&t(s.connections||[]),r.ok&&i(a.nodes||[])}catch(e){console.log("Error fetching data:",e)}finally{m(!1)}})()},[]);let R=(0,a.useCallback)((t,r)=>{let s=Array.isArray(r)?r:[r],a=e.filter(e=>e.provider===t&&s.includes(e.authType)),l=e=>{let t=Object.entries(e).some(([e,t])=>e.startsWith("modelLock_")&&t&&new Date(t).getTime()>Date.now());return"unavailable"!==e.testStatus||t?e.testStatus:"active"},i=a.filter(e=>{let t=l(e);return"active"===t||"success"===t}).length,n=a.filter(e=>{let t=l(e);return"error"===t||"expired"===t||"unavailable"===t}),o=n.length,c=a.length,d=c>0&&a.every(e=>!1===e.isActive),m=n.sort((e,t)=>new Date(t.lastErrorAt||0)-new Date(e.lastErrorAt||0))[0];return{connected:i,error:o,total:c,errorCode:m?function(e){if(!e)return null;let t=e.lastErrorType;if("runtime_error"===t)return"RUNTIME";if("upstream_auth_error"===t||"auth_missing"===t||"token_refresh_failed"===t||"token_expired"===t)return"AUTH";if("upstream_rate_limited"===t)return"429";if("upstream_unavailable"===t)return"5XX";if("network_error"===t)return"NET";let r=Number(e.errorCode);if(Number.isFinite(r)&&r>=400)return String(r);let s=function(e){if(!e)return null;let t=e.match(/\b([45]\d{2})\b/);return t?t[1]:"ERR"}(e.lastError);if("401"===s||"403"===s)return"AUTH";if(s&&"ERR"!==s)return s;let a=(e.lastError||"").toLowerCase();return a.includes("runtime")||a.includes("not runnable")||a.includes("not installed")?"RUNTIME":a.includes("invalid api key")||a.includes("token invalid")||a.includes("revoked")||a.includes("unauthorized")?"AUTH":"ERR"}(m):null,errorTime:m?.lastErrorAt?function(e){if(!e)return"";let t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return"just now";if(t<60)return`${t}m ago`;let r=Math.floor(t/60);if(r<24)return`${r}h ago`;let s=Math.floor(r/24);return`${s}d ago`}(m.lastErrorAt):null,allDisabled:d}},[e]),B=async(r,s,a)=>{let l=Array.isArray(s)?s:[s],i=e=>e.provider===r&&l.includes(e.authType),n=e.filter(i);t(e=>e.map(e=>i(e)?{...e,isActive:a}:e)),await Promise.allSettled(n.map(e=>fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:a})})))},D=async(e,t=null)=>{if(!N){A("provider"===e?t:e),I(null);try{let r=await fetch("/api/providers/test-batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e,providerId:t})}),s=await r.json();if(I(s),s.summary){let{passed:e,failed:t,total:r}=s.summary;0===t?S.success(`All ${r} tests passed`):S.warning(`${e}/${r} passed, ${t} failed`)}}catch(e){I({error:"Test request failed"}),S.error("Provider test failed")}finally{A(null)}}},M=(0,a.useMemo)(()=>r.filter(e=>"openai-compatible"===e.type).map(e=>({id:e.id,name:e.name||"OpenAI Compatible",color:"#10A37F",textIcon:"OC",apiType:e.apiType})).filter(e=>_(e.name)),[r,_]),z=(0,a.useMemo)(()=>r.filter(e=>"anthropic-compatible"===e.type).map(e=>({id:e.id,name:e.name||"Anthropic Compatible",color:"#D97757",textIcon:"AC"})).filter(e=>_(e.name)),[r,_]),F=(0,a.useMemo)(()=>{let e,t;return e=Object.entries(c.zN).filter(([,e])=>!e.hidden&&_(e.name)),t="oauth",[...e].sort(([e,r],[s,a])=>{let l=r.priority??999,i=a.priority??999;if(l!==i)return l-i;let n=R(e,t),o=R(s,t),c=+(n.connected>0),d=+(o.connected>0);return c!==d?d-c:(r.name||"").localeCompare(a.name||"")})},[_]),L=(0,a.useMemo)(()=>Object.entries(d.IS).filter(([,e])=>!e.hidden&&_(e.name)).sort(([,e],[,t])=>!!t.noAuth-!!e.noAuth),[_]),H=(0,a.useMemo)(()=>Object.entries(d.nJ).filter(([,e])=>!e.hidden&&_(e.name)&&(e.serviceKinds??["llm"]).includes("llm")).sort(([e,t],[r,s])=>{let a=t.priority??999,l=s.priority??999;if(a!==l)return a-l;let i=!!s.noAuth-!!t.noAuth;if(0!==i)return i;let n=R(e,o(t,e)).connected>0?0:1,c=R(r,o(s,r)).connected>0?0:1;return n!==c?n-c:(t.name||"").localeCompare(s.name||"")}),[_,R]),K=(0,a.useMemo)(()=>Object.entries(c.fg).filter(([,e])=>!e.hidden&&(e.serviceKinds??["llm"]).includes("llm")&&_(e.name)).sort(([e,t],[r,s])=>{let a=R(e,"apikey").total>0?0:1,l=R(r,"apikey").total>0?0:1;return a!==l?a-l:(t.name||"").localeCompare(s.name||"")}),[_,R]),J=(0,a.useMemo)(()=>Object.entries(d.br).filter(([,e])=>!e.hidden&&_(e.name)).sort(([e,t],[r,s])=>{let a=R(e,"cookie").total>0?0:1,l=R(r,"cookie").total>0?0:1;return a!==l?a-l:(t.name||"").localeCompare(s.name||"")}),[_,R]),W=!!P.trim(),q=W||p?K:K.slice(0,20),G=K.length-20;if(n)return(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(l.CardSkeleton,{}),(0,s.jsx)(l.CardSkeleton,{}),(0,s.jsx)(l.CardSkeleton,{}),(0,s.jsx)(l.CardSkeleton,{}),(0,s.jsx)(l.CardSkeleton,{}),(0,s.jsx)(l.CardSkeleton,{})]});let X=F.length>0||L.length>0||H.length>0||K.length>0||J.length>0||M.length>0||z.length>0;return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[!X&&(0,s.jsxs)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[32px] text-text-muted mb-2",children:"search_off"}),(0,s.jsx)("p",{className:"text-text-muted text-sm",children:"No providers match your search"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["Custom Providers (OpenAI/Anthropic Compatible)"," "]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:w-auto",children:[(0,s.jsx)(l.Button,{size:"sm",icon:"add",onClick:()=>j(!0),className:"w-full sm:w-auto",children:"Add Anthropic Compatible"}),(0,s.jsx)(l.Button,{size:"sm",variant:"secondary",icon:"add",onClick:()=>g(!0),className:"w-full sm:w-auto",children:"Add OpenAI Compatible"})]})]}),0===M.length&&0===z.length?(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 py-2 border border-dashed border-border rounded-xl text-text-muted text-sm",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"extension"}),(0,s.jsx)("span",{children:"No custom providers — use buttons above to add OpenAI/Anthropic compatible endpoints"})]}):(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:[...M,...z].map(e=>(0,s.jsx)(k,{providerId:e.id,provider:e,stats:R(e.id,"apikey"),authType:"compatible",circuitBreaker:$(e.id),onResetCircuit:U,onToggle:t=>B(e.id,"apikey",t)},e.id))})]}),F.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"OAuth Providers"}),(0,s.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,s.jsx)(f,{}),(0,s.jsxs)("button",{onClick:()=>D("oauth"),disabled:!!N,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"oauth"===N?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all OAuth connections","aria-label":"Test all OAuth connections",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[14px]${"oauth"===N?" animate-spin":""}`,children:"play_arrow"}),"oauth"===N?"Testing...":"Test All"]})]})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:F.map(([e,t])=>(0,s.jsx)(w,{providerId:e,provider:t,stats:R(e,"oauth"),authType:"oauth",circuitBreaker:$(e),onResetCircuit:U,onToggle:t=>B(e,"oauth",t)},e))})]}),(L.length>0||H.length>0)&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"Free Tier Providers"}),(0,s.jsxs)("button",{onClick:()=>D("free"),disabled:!!N,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"free"===N?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all Free connections","aria-label":"Test all Free provider connections",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[14px]${"free"===N?" animate-spin":""}`,children:"play_arrow"}),"free"===N?"Testing...":"Test All"]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:[L.map(([e,t])=>{let r="kiro"===e?["oauth","apikey","api_key"]:"oauth";return(0,s.jsx)(w,{providerId:e,provider:t,stats:R(e,r),authType:"free",circuitBreaker:$(e),onResetCircuit:U,onToggle:t=>B(e,r,t)},e)}),H.map(([e,t])=>{let r=o(t,e);return(0,s.jsx)(k,{providerId:e,provider:t,stats:R(e,r),authType:Array.isArray(r)?r[0]??"apikey":r,onToggle:t=>B(e,r,t)},e)})]})]}),K.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,s.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["API Key Providers"," "]}),(0,s.jsxs)("button",{onClick:()=>D("apikey"),disabled:!!N,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"apikey"===N?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all API Key connections","aria-label":"Test all API Key connections",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[14px]${"apikey"===N?" animate-spin":""}`,children:"play_arrow"}),"apikey"===N?"Testing...":"Test All"]})]}),(0,s.jsx)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 sm:gap-4 lg:grid-cols-3 xl:grid-cols-4",children:q.map(([e,t])=>(0,s.jsx)(k,{providerId:e,provider:t,stats:R(e,"apikey"),authType:"apikey",onToggle:t=>B(e,"apikey",t)},e))}),!W&&!p&&G>0&&(0,s.jsxs)("button",{onClick:()=>h(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2.5 text-sm font-medium text-primary transition-colors hover:border-primary hover:bg-primary/5",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"expand_more"}),"Show all ",K.length," providers"]})]}),J.length>0&&(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"flex items-center justify-between",children:(0,s.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["Web Cookie Providers"," "]})}),(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:J.map(([e,t])=>(0,s.jsx)(k,{providerId:e,provider:t,stats:R(e,"cookie"),authType:"cookie",onToggle:t=>B(e,"cookie",t)},e))})]}),(0,s.jsx)(y,{variant:"openai",isOpen:b,onClose:()=>g(!1),onCreated:e=>{i(t=>[...t,e]),g(!1)}}),(0,s.jsx)(y,{variant:"anthropic",isOpen:v,onClose:()=>j(!1),onCreated:e=>{i(t=>[...t,e]),j(!1)}}),T&&(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center px-3 pt-[6vh] sm:pt-[10vh]",onClick:()=>I(null),children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),(0,s.jsxs)("div",{className:"relative bg-surface border border-border rounded-xl w-full max-w-[600px] max-h-[86vh] sm:max-h-[80vh] overflow-y-auto shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between px-5 py-3 border-b border-border bg-surface/95 backdrop-blur-sm rounded-t-xl",children:[(0,s.jsx)("h3",{className:"font-semibold",children:"Test Results"}),(0,s.jsx)("button",{onClick:()=>I(null),className:"p-1 rounded-lg hover:bg-bg text-text-muted hover:text-text-main transition-colors","aria-label":"Close test results",children:(0,s.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]}),(0,s.jsx)("div",{className:"p-5",children:(0,s.jsx)(C,{results:T})})]})]})]})}function w({providerId:e,provider:t,stats:r,authType:a,onToggle:n,circuitBreaker:o,onResetCircuit:c}){let{connected:d,error:m,errorCode:x,errorTime:u,allDisabled:h}=r,f=!!t.noAuth;return(0,s.jsx)(p(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,s.jsx)(l.Card,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${h?"opacity-50":""}`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("div",{className:"size-8 shrink-0 rounded-lg flex items-center justify-center",style:{backgroundColor:`${t.color?.length>7?t.color:t.color+"15"}`},children:(0,s.jsx)(i.A,{src:`/providers/${t.id}.webp`,alt:t.name,size:30,className:"object-contain rounded-lg max-w-[32px] max-h-[32px]",fallbackText:t.textIcon||t.id.slice(0,2).toUpperCase(),fallbackColor:t.color})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,s.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:h?(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):f?(0,s.jsx)(l.Badge,{variant:"success",size:"sm",dot:!0,children:"Ready"}):(0,s.jsxs)(s.Fragment,{children:[j(d,m,x),o&&(0,s.jsx)(v,{status:o,onReset:()=>c(o?.name||e)}),u&&(0,s.jsx)("span",{className:"text-text-muted",children:u})]})})]})]}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:r.total>0&&(0,s.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),n(!!h)},children:(0,s.jsx)(l.Toggle,{size:"sm",checked:!h,onChange:()=>{},title:h?"Enable provider":"Disable provider"})})})]})})})}function k({providerId:e,provider:t,stats:r,authType:a,onToggle:o,circuitBreaker:c,onResetCircuit:m}){let{connected:x,error:u,errorCode:h,errorTime:f,allDisabled:b}=r,g=e.startsWith(d.JH),y=e.startsWith(d.DI);return(0,s.jsx)(p(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,s.jsx)(l.Card,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${b?"opacity-50":""}`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("div",{className:"size-8 shrink-0 rounded-lg flex items-center justify-center",style:{backgroundColor:`${t.color?.length>7?t.color:t.color+"15"}`},children:(0,s.jsx)(i.A,{src:g&&t.apiType?"responses"===t.apiType?"/providers/oai-r.webp":"/providers/oai-cc.webp":y?"/providers/anthropic-m.webp":(0,n.HY)(t.id),alt:t.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:t.textIcon||t.id.slice(0,2).toUpperCase(),fallbackColor:t.color})}),(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,s.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:b?(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:(0,s.jsxs)("span",{className:"flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):(0,s.jsxs)(s.Fragment,{children:[j(x,u,h),g&&(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:"responses"===t.apiType?"Responses":"Chat"}),y&&(0,s.jsx)(l.Badge,{variant:"default",size:"sm",children:"Messages"}),f&&(0,s.jsx)("span",{className:"text-text-muted",children:f})]})})]})]}),(0,s.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:r.total>0&&(0,s.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),o(!!b)},children:(0,s.jsx)(l.Toggle,{size:"sm",checked:!b,onChange:()=>{},title:b?"Enable provider":"Disable provider"})})})]})})})}function C({results:e}){if(e.error&&!e.results)return(0,s.jsxs)("div",{className:"text-center py-6",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-red-500 text-[32px] mb-2 block",children:"error"}),(0,s.jsx)("p",{className:"text-sm text-red-400",children:e.error})]});let{summary:t,mode:r}=e,a=e.results||[];return(0,s.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[t&&(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs mb-1 sm:gap-3",children:[(0,s.jsxs)("span",{className:"text-text-muted",children:[{oauth:"OAuth",free:"Free",apikey:"API Key",provider:"Provider",all:"All"}[r]||r," Test"]}),(0,s.jsxs)("span",{className:"px-2 py-0.5 rounded bg-emerald-500/15 text-emerald-400 font-medium",children:[t.passed," passed"]}),t.failed>0&&(0,s.jsxs)("span",{className:"px-2 py-0.5 rounded bg-red-500/15 text-red-400 font-medium",children:[t.failed," failed"]}),(0,s.jsxs)("span",{className:"text-text-muted sm:ml-auto",children:[t.total," tested"]})]}),a.map((e,t)=>(0,s.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2 rounded-lg bg-black/[0.03] px-3 py-2 text-xs dark:bg-white/[0.03] sm:flex-nowrap",children:[(0,s.jsx)("span",{className:`material-symbols-outlined text-[16px] ${e.valid?"text-emerald-500":"text-red-500"}`,children:e.valid?"check_circle":"error"}),(0,s.jsxs)("div",{className:"min-w-0 flex-[1_1_160px]",children:[(0,s.jsx)("span",{className:"block truncate font-medium sm:inline",children:e.connectionName}),(0,s.jsxs)("span",{className:"block truncate text-text-muted sm:ml-1.5 sm:inline",children:["(",e.provider,")"]})]}),void 0!==e.latencyMs&&(0,s.jsxs)("span",{className:"shrink-0 text-text-muted font-mono tabular-nums",children:[e.latencyMs,"ms"]}),(0,s.jsx)("span",{className:`shrink-0 text-[10px] uppercase font-bold px-1.5 py-0.5 rounded ${e.valid?"bg-emerald-500/15 text-emerald-400":"bg-red-500/15 text-red-400"}`,children:e.valid?"OK":e.diagnosis?.type||"ERROR"})]},e.connectionId||t)),0===a.length&&(0,s.jsx)("div",{className:"text-center py-4 text-text-muted text-sm",children:"No active connections found for this group."})]})}},77048:(e,t,r)=>{Promise.resolve().then(r.bind(r,48504))}},e=>{e.O(0,[3885,7523,7236,4385,736,2147,3204,7358],()=>e(e.s=77048)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{5244:(e,t,r)=>{Promise.resolve().then(r.bind(r,30742)),Promise.resolve().then(r.bind(r,70665)),Promise.resolve().then(r.bind(r,47056))},30742:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var a=r(15102),s=r(82030),i=r(62758),l=r(97955);let n={daily:"Daily",weekly:"Weekly",monthly:"Monthly","one-time":"One-time",rolling:"Rolling"},o={daily:{variant:"success"},weekly:{variant:"info"},"one-time":{variant:"warning"},monthly:{variant:"default",className:"bg-purple-500/10 text-purple-600 dark:text-purple-400"},rolling:{variant:"default",className:"bg-cyan-500/10 text-cyan-600 dark:text-cyan-400"}};function d({tiers:e=[]}){let[t,r]=(0,s.useState)(null),[c,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=!1;return fetch("/api/providers",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{if(e||!t)return;let a=new Set;for(let e of t.connections||[])!1!==e.isActive&&(e.provider&&a.add(e.provider),e.alias&&a.add(e.alias));r(a)}).catch(()=>{e||r(new Set)}),()=>{e=!0}},[]);let p=(0,s.useMemo)(()=>{let r=new Map;for(let t of e){let e=t.providerId;r.has(e)||r.set(e,{id:e,name:t.providerName||e,alias:t.providerAlias||null,refresh:t.freeRefresh||null,models:[]});let a=r.get(e);!a.refresh&&t.freeRefresh&&(a.refresh=t.freeRefresh),t.modelId&&a.models.push({id:t.modelId,name:t.modelName||t.modelId})}let a=c.trim().toLowerCase(),s=[...r.values()].map(e=>({...e,connected:!!(t&&(t.has(e.id)||e.alias&&t.has(e.alias)))}));return(a?s.filter(e=>e.name.toLowerCase().includes(a)||(e.alias||"").toLowerCase().includes(a)||e.models.some(e=>e.name.toLowerCase().includes(a)||e.id.toLowerCase().includes(a))):s).sort((e,t)=>e.connected!==t.connected?e.connected?-1:1:e.name.localeCompare(t.name))},[e,t,c]),h=p.filter(e=>e.connected).length,b=t?p.length-h:0,g=m||c.trim()?p:p.filter(e=>e.connected);return(0,a.jsx)(i.A,{padding:"lg",title:"Available free tiers",subtitle:"Provider free allowances from the registry. Connected providers first; the rest are behind the toggle.",children:0===e.length?(0,a.jsx)("p",{className:"py-6 text-center text-sm text-text-muted",children:"No free tiers found."}):(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("input",{type:"search",value:c,onChange:e=>u(e.target.value),placeholder:"Filter by provider or model…","aria-label":"Filter free tiers by provider or model",className:"min-w-[12rem] flex-1 rounded border border-border bg-surface px-2.5 py-1.5 text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,a.jsxs)("span",{className:"text-[11px] text-text-muted",children:[h," connected",null===t?" (checking…)":` \xb7 ${b} without an account`]}),b>0&&!c.trim()&&(0,a.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),"aria-pressed":m,className:"rounded border border-border px-2.5 py-1.5 text-xs text-text-muted transition-colors hover:border-primary hover:text-primary",children:[m?"Hide":"Show"," providers without an account"]})]}),0===g.length?(0,a.jsx)("p",{className:"py-6 text-center text-sm text-text-muted",children:null===t?"Checking your connections…":"No free tier matches. Add a connection for a provider below, or clear the filter."}):(0,a.jsx)("div",{className:"flex flex-col divide-y divide-black/5 dark:divide-white/5",children:g.map(e=>{let r=o[e.refresh]||{variant:"default"};return(0,a.jsxs)("div",{className:"flex flex-col gap-1.5 py-3",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-text-primary",children:e.name}),e.alias&&e.alias!==e.name&&(0,a.jsx)("span",{className:"font-mono text-[10px] text-text-muted",children:e.alias}),e.connected?(0,a.jsx)(l.A,{size:"sm",variant:"success",children:"Connected"}):t?(0,a.jsx)("span",{className:"text-[11px] italic text-text-muted",children:"no account yet"}):null,e.refresh?(0,a.jsx)(l.A,{size:"sm",variant:r.variant,className:r.className,children:n[e.refresh]||e.refresh}):(0,a.jsx)("span",{className:"text-xs italic text-text-muted",title:"Reset cadence not documented","aria-label":"Reset cadence not documented",children:"—"}),(0,a.jsx)("span",{className:"ml-auto text-[11px] text-text-muted",children:0===e.models.length?"free tier available":`${e.models.length} free model${e.models.length>1?"s":""}`})]}),e.models.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.models.map(e=>(0,a.jsx)("span",{title:e.id,className:"rounded bg-black/[0.04] px-1.5 py-0.5 font-mono text-[11px] text-text-muted dark:bg-white/[0.06]",children:e.name},e.id))})]},e.id)})})]})})}},70665:(e,t,r)=>{"use strict";r.d(t,{default:()=>R});var a=r(15102),s=r(82030),i=r(93278),l=r(31704),n=r(51427);let o=new Set(["antigravity","gemini-cli","cursor"]),d="quotaCacheData",c="quotaAutoRefresh",u=[10,20,50,100],m=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],x=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function p(e){return e.name?.trim()||e.email?.trim()||e.displayName?.trim()||null}function h(e,t){let r=t[e.id]?.quotas?.[0];return r&&"number"==typeof r.remaining?r.remaining:1/0}function b(e){let t={};return e.forEach(e=>{t[e.id]=!0}),t}function g(e,t){let r=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>r.has(e)))}async function f(e,t){return await e(t)}function y(){try{let e=window.localStorage.getItem(d);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}function v(e,t){try{let r=y();r[e]={...t,cachedAt:new Date().toISOString()},window.localStorage.setItem(d,JSON.stringify(r))}catch(e){console.error("Error writing quota cache:",e)}}function w(e,t){return t&&0!==t?!e||e<0?100:e>=t?0:Math.round((t-e)/t*100):0}let k=[];function j({quotas:e=k,compact:t=!1,sortMode:r="default",showSortLabel:i=!1}){let[l,n]=(0,s.useState)(1),o=(0,s.useMemo)(()=>e.map((e,t)=>({...e,index:t,remaining:e?.percentage!==void 0?Math.max(0,Math.round(!0===e.percentageIsUsed?100-e.percentage:e.percentage)):e?.remaining!==void 0?Math.max(0,Math.round(e.remaining)):e?.remainingPercentage!==void 0?Math.round(e.remainingPercentage):w(e?.used,e?.total)})),[e]),d=(0,s.useMemo)(()=>"remaining-asc"===r?o.toSorted((e,t)=>e.remaining-t.remaining||e.name.localeCompare(t.name)):"remaining-desc"===r?o.toSorted((e,t)=>t.remaining-e.remaining||e.name.localeCompare(t.name)):o,[o,r]),c=Math.max(1,Math.ceil(d.length/10)),[u,m]=(0,s.useState)(r),[x,p]=(0,s.useState)(e),[h,b]=(0,s.useState)(c);if(r!==u||e!==x?(m(r),p(e),b(c),n(1)):c!==h&&(b(c),n(e=>Math.min(e,c))),!e||0===e.length)return null;let g=d.slice((l-1)*10,10*l),f=0===d.length?0:(l-1)*10+1,y=Math.min(10*l,d.length),v=t?"py-1 px-1.5":"py-2 px-3",N=t?"text-[11px]":"text-sm",C=t?"text-[11px]":"text-sm",S=t?"text-[10px] leading-tight":"text-xs";return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"text-[10px] text-text-muted",children:[d.length," quota",d.length>1?"s":""]}),i&&(0,a.jsx)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1 text-[10px] text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"Sorted by account remaining"})]}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsx)("table",{className:"w-full min-w-[420px] table-fixed text-left",children:(0,a.jsx)("tbody",{children:g.map(e=>{var r;let s=!0===e.unlimited,i=!0===e.isCreditBalance,l=i?{text:"text-blue-600 dark:text-blue-400",bg:"bg-blue-500",bgLight:"bg-blue-500/10",emoji:"\uD83D\uDCB0"}:(r=e.colorPercentage??e.remaining)>70?{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"}:r>=30?{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500",bgLight:"bg-yellow-500/10",emoji:"\uD83D\uDFE1"}:{text:"text-red-600 dark:text-red-400",bg:"bg-red-500",bgLight:"bg-red-500/10",emoji:"\uD83D\uDD34"},n=e.neverExpires?"-":function(e){if(!e)return"-";try{let t="string"==typeof e?new Date(e):e,r=new Date,a=t-r;if(a<=0)return"-";let s=Math.ceil(a/6e4);if(s<60)return`${s}m`;let i=Math.floor(s/60),l=s%60;if(i<24)return`${i}h ${l}m`;let n=Math.floor(i/24);return`${n}d ${i%24}h ${l}m`}catch(e){return"-"}}(e.resetAt),o=!e.neverExpires&&!e.resetAt&&!!e.detailUrl,d=e.emptyMessage?e.emptyMessage:e.neverExpires?"Never expires":o?"See details":function(e){if(!e)return null;try{let t=new Date(e),r=new Date,a=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=new Date(a);s.setDate(s.getDate()+1);let i="";i=t>=a&&t<s?"Today":t>=s&&t<new Date(s.getTime()+864e5)?"Tomorrow":t.toLocaleDateString("en-US",{month:"short",day:"numeric"});let l=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${i}, ${l}`}catch{return null}}(e.resetAt),c=o&&e.detailUrl?e.detailUrl:d,u=!1!==e.recurring?`in ${n}`:`expires in ${n}`;return(0,a.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors",children:[(0,a.jsx)("td",{className:`${v} w-[30%]`,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,a.jsx)("span",{className:"text-[10px] shrink-0",children:l.emoji}),(0,a.jsx)("span",{className:`${N} font-medium text-text-primary truncate`,children:e.name})]})}),(0,a.jsx)("td",{className:`${v} w-[45%]`,children:(0,a.jsxs)("div",{className:t?"space-y-1":"space-y-1.5",children:[!s&&!i&&(0,a.jsx)("div",{className:`${t?"h-1":"h-1.5"} rounded-full overflow-hidden border ${l.bgLight} ${0===e.remaining?"border-black/10 dark:border-white/10":"border-transparent"}`,children:(0,a.jsx)("div",{className:`h-full transition-all duration-300 ${l.bg}`,style:{width:`${Math.min(e.remaining,100)}%`}})}),(0,a.jsxs)("div",{className:`flex items-center justify-between ${t?"text-[10px]":"text-xs"}`,children:[(0,a.jsx)("span",{className:"text-text-muted",title:s?`${e.used.toLocaleString()} used \xb7 Unlimited`:i?`Credit balance: ${e.total.toFixed(2)} ${e.currency||""}`:`${e.used.toLocaleString()} / ${e.total>0?e.total.toLocaleString():"∞"}`,children:s?`${e.used.toLocaleString()} used \xb7 Unlimited`:i?`Credit: ${e.total.toFixed(2)} ${e.currency||""}`:`${e.used.toLocaleString()} / ${e.total>0?e.total.toLocaleString():"∞"}`}),(0,a.jsx)("span",{className:`font-medium ${s?"text-green-600 dark:text-green-400":l.text}`,children:s?"Unlimited":i?"":`${e.remaining}%`})]})]})}),(0,a.jsx)("td",{className:`${v} w-[25%]`,children:"-"!==n||d?t?(0,a.jsx)("div",{className:`${C} text-text-primary font-medium truncate`,title:c||"",children:"-"!==n?u:d}):(0,a.jsxs)("div",{className:"space-y-0.5",children:["-"!==n&&(0,a.jsx)("div",{className:`${C} text-text-primary font-medium`,children:u}),o?(0,a.jsxs)("a",{href:e.detailUrl,target:"_blank",rel:"noopener noreferrer",className:`${S} text-text-muted inline-flex items-center gap-0.5 hover:text-text-primary hover:underline`,title:`Open usage details: ${c}`,"aria-label":`Open usage details for ${e.name}`,children:[d,(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"open_in_new"})]}):d&&(0,a.jsx)("div",{className:`${S} text-text-muted`,children:d})]}):(0,a.jsx)("div",{className:`${C} text-text-muted italic`,children:"N/A"})})]},`${e.name}-${e.index}`)})})})}),c>1&&(0,a.jsxs)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1.5 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[10px] text-text-muted",children:[(0,a.jsxs)("span",{children:["Showing ",f,"-",y," of ",d.length]}),(0,a.jsxs)("span",{children:["Page ",l," / ",c]})]}),(0,a.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>n(e=>Math.max(1,e-1)),disabled:1===l,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Prev"}),(0,a.jsx)("button",{type:"button",onClick:()=>n(e=>Math.min(c,e+1)),disabled:l===c,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Next"})]})]})]})}var N=r(52252),C=r(18419),S=r(62758),A=r(10736),$=r(31038),P=r(21577);let E={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},q={claude:"claudeAutoPing",codex:"codexAutoPing"},D={claude:"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",codex:"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota."};function M(e){return e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null}function T(e){let t=e.providerSpecificData?.region;if(t)return t;let r=e.providerSpecificData?.profileArn;return("string"==typeof r?r.split(":")[3]:"")||""}let O={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function _(e){let t=[...new Set((e||[]).map(e=>O[e]).filter(Boolean))];return t.length?`${t.join(" + ")} limits`:"limits"}function L(e){if(!e)return"N/A";let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function I(e){if(!e)return"N/A";let t=new Date(e).getTime()-Date.now();if(!Number.isFinite(t))return"N/A";if(t<=0)return"Expired";let r=Math.ceil(t/36e5),a=Math.floor(r/24),s=r%24;return a>0?`${a}d ${s}h`:`${s}h`}function R(){let e,{copied:t,copy:r}=(0,P.C)(),k=(0,i.useSearchParams)(),O=(0,i.useRouter)(),R=(0,i.usePathname)(),[U,F]=(0,s.useState)([]),[z,B]=(0,s.useState)({}),[J,K]=(0,s.useState)({}),[W,G]=(0,s.useState)({}),[H,V]=(0,s.useState)(!0),[Y,Q]=(0,s.useState)({claude:{},codex:{}}),[X,Z]=(0,s.useState)(null),[ee,et]=(0,s.useState)(!1),[er,ea]=(0,s.useState)(!1),[es,ei]=(0,s.useState)(60),[el,en]=(0,s.useState)(!0),[eo,ed]=(0,s.useState)(null),[ec,eu]=(0,s.useState)(null),[em,ex]=(0,s.useState)(null),[ep,eh]=(0,s.useState)(null),[eb,eg]=(0,s.useState)(null),[ef,ey]=(0,s.useState)(!1),[ev,ew]=(0,s.useState)(null),[ek,ej]=(0,s.useState)([]),[eN,eC]=(0,s.useState)(()=>k?.get("provider")||"all"),eS=(0,s.useCallback)(e=>{eC(e);try{let t=new URLSearchParams(k?.toString()||"");"all"===e?t.delete("provider"):t.set("provider",e);let r=t.toString()?`${R}?${t.toString()}`:R;O.replace(r,{scroll:!1})}catch{}},[R,O,k]),[eA,e$]=(0,s.useState)([]),[eP,eE]=(0,s.useState)("all"),[eq,eD]=(0,s.useState)("all"),[eM,eT]=(0,s.useState)("default"),[eO,e_]=(0,s.useState)(!1),[eL,eI]=(0,s.useState)(!1),[eR,eU]=(0,s.useState)(!1),[eF,ez]=(0,s.useState)(!1),[eB,eJ]=(0,s.useState)(1),[eK,eW]=(0,s.useState)(20),[eG,eH]=(0,s.useState)(String(20)),[eV,eY]=(0,s.useState)({page:1,pageSize:20,total:0,totalPages:1}),[eQ,eX]=(0,s.useState)({eligibleConnections:0,providerFilteredConnections:0}),eZ=(0,s.useRef)(null),e0=(0,s.useRef)(null),e1=(0,s.useRef)(0),e5=(0,s.useRef)((e=0,{begin:()=>++e,isLatest:t=>t===e})),e2=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=k?.get("provider")||"all";eC(t=>t===e?t:e)},[k]);let e3=(0,s.useCallback)(async(e=eB)=>{let t=e5.current.begin();try{var r,a;let s=new URLSearchParams({page:String(e),pageSize:String(eK),accountStatus:eq,sort:"priority"});"all"!==eN&&s.set("provider",eN);let i=await fetch(`/api/providers/client?${s.toString()}`,{cache:"no-store"});if(!i.ok)throw Error("Failed to fetch connections");let l=await i.json();if(!e5.current.isLatest(t))return null;let n=l.connections||[],o=(r=l.pagination,r||{page:1,pageSize:eK,total:0,totalPages:1}),d=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(l.totals,n.length);return F(n),e$(l.providerOptions||[]),eY(o),eX(d),eJ((a=l.pagination,a?.page||e)),n}catch(e){if(!e5.current.isLatest(t))return null;return console.error("Error fetching connections:",e),F([]),e$([]),eY({page:1,pageSize:eK,total:0,totalPages:1}),eX({eligibleConnections:0,providerFilteredConnections:0}),[]}},[eq,eB,eK,eN]),e4=(0,s.useCallback)(async(e,t,{force:r=!1}={})=>{K(t=>({...t,[e]:!0})),G(t=>({...t,[e]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${t} (${e})`);let a=await fetch(`/api/usage/${e}${r?"?force=1":""}`,{cache:"no-store"});if(!a.ok){let r=(await a.json().catch(()=>({}))).error||a.statusText;if(404===a.status)return void console.warn(`[ProviderLimits] Connection not found for ${t}, skipping`);if(401===a.status){console.warn(`[ProviderLimits] Auth error for ${t}:`,r);let a={quotas:[],message:r};B(t=>({...t,[e]:a})),v(e,a);return}throw Error(`HTTP ${a.status}: ${r}`)}let s=await a.json();console.log(`[ProviderLimits] Got quota for ${t}:`,s);let i={quotas:function(e,t){if(!t||"object"!=typeof t)return[];let r=[];try{switch(e.toLowerCase()){case"github":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"antigravity":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codex":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{let a=e;"spark_session"===e?a="Spark (5h)":"spark_weekly"===e?a="Spark (Weekly)":"session"===e?a="5h":"weekly"===e?a="Weekly":"review_session"===e?a="Review (5h)":"review_weekly"===e&&(a="Review (Weekly)"),r.push({name:a,quotaType:e,used:t.used||0,total:t.total||0,remaining:t.remaining,resetAt:t.resetAt||null})});break;case"kiro":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"qoder":case"qoder-cn":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{t&&0!==(Number(t.total)||0)&&r.push({name:"user"===e?"Personal":"organization"===e?"Organization":"addOn"===e?"Add-on":e,used:t.used||0,total:t.total||0,unit:t.unit,resetAt:t.resetAt||null,neverExpires:!0===t.neverExpires,detailUrl:t.detailUrl||null})});break;case"cursor":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"claude":t.message?r.push({name:"error",used:0,total:0,resetAt:null,message:t.message}):t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"vercel-ai-gateway":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codebuddy-cn":case"codebuddy-intl":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!1!==t.recurring})});break;case"kimi":case"deepseek":t.quotas&&Object.entries(t.quotas).forEach(([t,a])=>{r.push({name:t,used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage,..."deepseek"===e.toLowerCase()?{isCreditBalance:!0===a.isCreditBalance,currency:a.currency||"USD"}:{}})});break;case"freebuff":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!1!==t.recurring})});break;case"grok-cli":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"zed":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage,unlimited:t.unlimited})});break;case"minimax-code":case"minimax-code-global":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,remaining:t.remaining,remainingPercentage:t.remainingPercentage,resetAt:t.resetAt||null,message:t.message,isCreditBalance:t.isCreditBalance,currency:t.currency})});break;default:t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.name||e,used:t.used||0,total:t.total||0,percentage:t.percentage,colorPercentage:t.colorPercentage,percentageIsUsed:!0===t.percentageIsUsed,remainingPercentage:t.remainingPercentage,resetAt:t.resetAt||null,emptyMessage:t.emptyMessage||null,isCreditBalance:t.isCreditBalance,currency:t.currency,unit:t.unit,unlimited:t.unlimited})})}}catch(t){return console.error(`Error parsing quota data for ${e}:`,t),[]}let a=(0,n.KC)(e);if(a.length>0){let e=new Map(a.map((e,t)=>[e.id,t]));r.sort((t,r)=>{let a=t.modelKey||t.name,s=r.modelKey||r.name;return(e.get(a)??999)-(e.get(s)??999)})}return r}(t,s),plan:s.plan||null,message:s.message||null,raw:s};B(t=>({...t,[e]:i})),v(e,i)}catch(r){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),G(t=>({...t,[e]:r.message||"Failed to fetch quota"}))}finally{K(t=>({...t,[e]:!1}))}},[]),e8=(0,s.useCallback)(async(e,t)=>{await e4(e,t,{force:!0}),Z(new Date)},[e4]),e6=(0,s.useCallback)(async(e,t)=>{if(("codex"===t||"claude"===t)&&!em){ex(e),G(t=>({...t,[e]:null}));try{let r="claude"===t?await fetch(`/api/usage/${e}/claude-reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grantId:z[e]?.raw?.resetCredits?.nextGrantId})}):await fetch(`/api/usage/${e}/codex-reset-credits`,{method:"POST"}),a=await r.json().catch(()=>({}));if(!r.ok)throw Error(a.message||a.error||a.code||"Failed to reset limit");await e4(e,t,{force:!0}),Z(new Date)}catch(t){G(r=>({...r,[e]:t.message||"Failed to reset limit"}))}finally{ex(null)}}},[e4,em,z]),e7=(0,s.useCallback)((e,t)=>{eg({connection:e,loading:!1,error:null,data:{kind:"claude",...t}})},[]),e9=(0,s.useCallback)(async e=>{eg({connection:e,loading:!0,error:null,data:null});try{let t=await fetch(`/api/usage/${e.id}/codex-reset-credits`,{cache:"no-store"}),r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r.error||r.message||"Failed to load Codex reset credits");let a=Array.isArray(r.credits)?[...r.credits]:[];a.sort((e,t)=>{let r=e.expiresAt?new Date(e.expiresAt).getTime():1/0,a=t.expiresAt?new Date(t.expiresAt).getTime():1/0;return r-a}),eg({connection:e,loading:!1,error:null,data:{...r,credits:a}})}catch(t){eg({connection:e,loading:!1,error:t.message||"Failed to load Codex reset credits",data:null})}},[]),te=(0,s.useCallback)(async e=>{if(confirm("Delete this connection?")){ed(e);try{if((await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok){B(t=>{let r={...t};return delete r[e],r}),K(t=>{let r={...t};return delete r[e],r}),G(t=>{let r={...t};return delete r[e],r});try{let t=y();t[e]&&(delete t[e],window.localStorage.setItem(d,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await f(e3,eB)}}catch(e){console.error("Error deleting connection:",e)}finally{ed(null)}}},[e3,eB]),tt=(0,s.useCallback)(async(e,t)=>{eu(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(B(e=>({...e})),await f(e3,eB))}catch(e){console.error("Error updating connection status:",e)}finally{eu(null)}},[e3,eB]),tr=(0,s.useCallback)(async e=>{if(!ev?.id)return;let t=ev.id,r=ev.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await e3(),ey(!1),ew(null),$.wb.includes(r)&&await e4(t,r))}catch(e){console.error("Error saving connection:",e)}},[ev,e3,e4]);(0,s.useEffect)(()=>{let e=!1;return fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.json()).then(t=>{!e&&t?.proxyPools&&ej(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let ta=(0,s.useCallback)(async(e=!1)=>{if(e2.current)return;e2.current=!0,ea(!0),ei(60);let t=e1.current+=1,r=Math.round(10);try{let a=await e3(eB);if(!a)return;K(b(a)),G(e=>g(e,a)),B(e=>g(e,a)),await Promise.all(a.filter(a=>e||"claude"!==a.provider||t%r==0).map(e=>e4(e.id,e.provider))),Z(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{e2.current=!1,ea(!1)}},[e3,e4,eB]);(0,s.useEffect)(()=>{let e=!1;return(async()=>{en(!0);let t=await e3(eB);e||(en(!1),!t||(K(b(t)),G(e=>g(e,t)),B(e=>g(e,t)),await Promise.all(t.map(e=>e4(e.id,e.provider))),e||Z(new Date)))})(),()=>{e=!0}},[e3,e4,eB]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem(c);V(null===e||"true"===e),et(!0)},[]),(0,s.useEffect)(()=>{ee&&window.localStorage.setItem(c,String(H))},[H,ee]),(0,s.useEffect)(()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{}).then(e=>Q({claude:e?.claudeAutoPing?.connections||{},codex:e?.codexAutoPing?.connections||{}})).catch(()=>{})},[]);let ts=(0,s.useCallback)(async(e,t,r)=>{let a=q[t];if(!a)return;let s={...Y[t]||{},[e]:r};Q({...Y,[t]:s});try{let e=await fetch("/api/settings",{cache:"no-store"}),t={...(e.ok?await e.json():{})[a]||{},connections:s};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[a]:t})})}catch{Q(Y)}},[Y]);(0,s.useEffect)(()=>{if(!ee||!H){eZ.current&&(clearInterval(eZ.current),eZ.current=null),e0.current&&(clearInterval(e0.current),e0.current=null);return}return eZ.current=setInterval(()=>{ta()},6e4),e0.current=setInterval(()=>{ei(e=>e<=1?60:e-1)},1e3),()=>{eZ.current&&clearInterval(eZ.current),e0.current&&clearInterval(e0.current)}},[H,ta,ee]),(0,s.useEffect)(()=>{let e=()=>{document.hidden?(eZ.current&&(clearInterval(eZ.current),eZ.current=null),e0.current&&(clearInterval(e0.current),e0.current=null)):H&&ee&&(eZ.current=setInterval(()=>ta(),6e4),e0.current=setInterval(()=>{ei(e=>e<=1?60:e-1)},1e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[H,ta,ee]),(0,s.useEffect)(()=>{eE("all")},[eN]);let ti=(0,s.useMemo)(()=>eN&&o.has(eN)?(0,n.KC)(eN).map(e=>({id:e.id,name:e.name||e.id})):[],[eN]),tl=(0,s.useMemo)(()=>(function(e,t,r,a,s){if("codex"===a&&"default"!==s)return[...e].sort((e,r)=>{let a=h(e,t),i=h(r,t),l="remaining-asc"===s?a-i:i-a;return 0!==l?l:(p(e)||"").localeCompare(p(r)||"")});if(!r){let t=new Map;for(let r of e){let e=r.provider||"";t.has(e)||t.set(e,[]),t.get(e).push(r)}return Array.from(t.values()).flat()}let i=e=>{let r=(t[e.id]?.quotas||[]).map(e=>e.resetAt?new Date(e.resetAt).getTime():1/0).filter(e=>Number.isFinite(e));return r.length>0?Math.min(...r):1/0};return[...e].sort((e,t)=>{let r=i(e)-i(t);return 0!==r?r:(e.provider||"").localeCompare(t.provider||"")||(p(e)||"").localeCompare(p(t)||"")})})("all"===eN?U:U.filter(e=>e.provider===eN),z,eO,eN,eM),[U,z,eO,eN,eM]),tn=e=>{let t=z[e.id]?.quotas;return!!t?.length&&t.some(e=>!!e.total&&!(e.total<=0)&&5>=w(e.used,e.total))},to=(0,s.useCallback)(async(e,t)=>{if(e.length&&!eR){eU(!0);try{await Promise.all(e.map(e=>fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})}))),await f(e3,eB)}catch(e){console.error("Error bulk toggling connections:",e)}finally{eU(!1)}}},[eR,e3,eB]),td=(0,s.useMemo)(()=>tl.filter(e=>(function(e,t,r){if(e?.provider!=="codex")return!1;let a="string"==typeof t?.message?t.message:"",s="string"==typeof r?r:"";return a.includes("Usage API temporarily unavailable (401)")||a.includes("temporarily unavailable (401)")||a.includes("Codex connected")&&a.includes("401")||s.includes("temporarily unavailable (401)")||s.includes("HTTP 401")})(e,z[e.id],W[e.id])).map(e=>e.id),[tl,z,W]),tc=(0,s.useCallback)(async()=>{if(td.length&&!eF&&confirm(`Delete ${td.length} Codex connection(s) with "Usage API temporarily unavailable (401)"?`)){ez(!0);try{await Promise.all(td.map(e=>fetch(`/api/providers/${e}`,{method:"DELETE"}))),B(e=>{let t={...e};for(let e of td)delete t[e];return t}),K(e=>{let t={...e};for(let e of td)delete t[e];return t}),G(e=>{let t={...e};for(let e of td)delete t[e];return t});try{let e=y(),t=!1;for(let r of td)e[r]&&(delete e[r],t=!0);t&&window.localStorage.setItem(d,JSON.stringify(e))}catch(e){console.error("Error deleting cache entries:",e)}await f(e3,eB)}catch(e){console.error("Error bulk deleting codex unavailable connections:",e)}finally{ez(!1)}}},[td,eF,e3,eB]),tu="all"===eN?"All providers":eN,tm=eQ.eligibleConnections>0,tx=tl.length>0,tp=eQ.eligibleConnections?eQ.providerFilteredConnections?{icon:"filter_alt_off",title:"No Accounts On This Page",description:"Try moving to another page or refreshing the current filters."}:{icon:"filter_alt_off",title:"No Accounts Match Current Filters",description:"all"===eN?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===eq?"turned off":"active"===eq?"active":"matching"} accounts found for ${eN}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},th=function(e){var t;let{start:r,end:a}=(t=e).total?{start:(t.page-1)*t.pageSize+1,end:Math.min(t.page*t.pageSize,t.total)}:{start:0,end:0};return`Showing ${r}-${a} of ${e.total}`}(eV),tb=!u.includes(eK);return el||tm?el||tx?(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-end",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>eI(e=>!e),className:"flex h-8 items-center justify-between gap-1 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-haspopup":"menu","aria-expanded":eL,title:"Filter quota providers",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===eN?(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,a.jsx)(l.A,{src:`/providers/${eN}.webp`,alt:eN,size:18,className:"size-[18px] rounded object-contain",fallbackText:eN.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate capitalize hidden lg:inline",children:tu})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),eL&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"fixed inset-0 z-30 bg-transparent","aria-label":"Close provider filter",onClick:()=>eI(!1)}),(0,a.jsxs)("div",{className:"absolute left-0 z-40 mt-1.5 w-52 overflow-hidden rounded-xl border border-black/10 bg-surface/95 p-1 shadow-lg shadow-black/10 backdrop-blur dark:border-white/10 dark:bg-surface/95 sm:w-60",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>{"all"!==eN&&eJ(1),eS("all"),eI(!1)},className:`flex w-full items-center gap-2 rounded-lg px-2.5 py-1.5 text-left text-xs transition-colors ${"all"===eN?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"apps"}),(0,a.jsx)("span",{className:"font-medium",children:"All providers"}),"all"===eN&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[16px]",children:"check"})]}),(0,a.jsx)("div",{className:"my-1 h-px bg-black/10 dark:bg-white/10"}),(0,a.jsx)("div",{className:"max-h-60 overflow-y-auto pr-0.5",children:eA.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{eN!==e&&eJ(1),eS(e),eI(!1)},className:`flex w-full items-center gap-2 rounded-lg px-2.5 py-1.5 text-left text-xs transition-colors ${eN===e?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)(l.A,{src:`/providers/${e}.webp`,alt:e,size:18,className:"size-[18px] rounded object-contain",fallbackText:e.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"font-medium capitalize",children:e}),eN===e&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[16px]",children:"check"})]},e))})]})]})]}),(0,a.jsx)("select",{value:eq,onChange:e=>{let t=e.target.value;eq!==t&&eJ(1),eD(t)},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Filter accounts by status",children:m.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),"codex"===eN&&(0,a.jsx)("select",{value:eM,onChange:e=>eT(e.target.value),className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Sort Codex quotas by remaining",children:x.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),o.has(eN)&&ti.length>0&&(0,a.jsxs)("select",{value:eP,onChange:e=>eE(e.target.value),className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Filter quotas by model",children:[(0,a.jsx)("option",{value:"all",children:"All models"}),ti.map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,a.jsxs)("button",{type:"button",onClick:()=>e_(e=>!e),"aria-pressed":eO,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 text-xs transition-colors ${eO?"border-amber-500/40 bg-amber-500/10 text-amber-500":"border-black/10 text-text-primary hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5"}`,title:"Sort accounts by earliest quota reset time",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"hourglass_top"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Expiring first"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{to(tl.filter(e=>(e.isActive??!0)&&tn(e)).map(e=>e.id),!1)},disabled:eR,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-red-500/30 px-2 text-xs text-red-500 transition-colors hover:bg-red-500/10 disabled:opacity-50",title:"Disable connections with depleted quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"block"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Turn off Empty"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{to(tl.filter(e=>!(e.isActive??!0)&&!tn(e)).map(e=>e.id),!0)},disabled:eR,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-emerald-500/30 px-2 text-xs text-emerald-500 transition-colors hover:bg-emerald-500/10 disabled:opacity-50",title:"Enable connections that still have quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"check_circle"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Turn on Available"})]}),"codex"===eN&&(0,a.jsxs)("button",{type:"button",onClick:tc,disabled:eF||0===td.length,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-red-500/40 bg-red-500/10 px-2 text-xs text-red-600 dark:text-red-400 transition-colors hover:bg-red-500/20 disabled:opacity-40 disabled:cursor-not-allowed",title:td.length>0?`Delete ${td.length} Codex connection(s) with "Usage API temporarily unavailable (401)"`:"No Codex 401 unavailable connections on current page",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${eF?"animate-spin":""}`,children:eF?"progress_activity":"delete_sweep"}),(0,a.jsxs)("span",{className:"hidden sm:inline",children:["Delete 401 (",td.length,")"]}),(0,a.jsxs)("span",{className:"sm:hidden",children:["401 (",td.length,")"]})]}),(0,a.jsxs)("button",{onClick:()=>V(e=>!e),className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5",title:H?"Disable auto-refresh":"Enable auto-refresh",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${H?"text-primary":"text-text-muted"}`,children:H?"toggle_on":"toggle_off"}),(0,a.jsx)("span",{className:"hidden text-text-primary sm:inline",children:"Auto-refresh"}),H&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",es,"s)"]})]}),(0,a.jsx)("button",{type:"button",onClick:()=>ta(!0),disabled:er,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5 disabled:opacity-50",title:"Refresh all",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${er?"animate-spin":""}`,children:"refresh"})})]})}),eO&&(0,a.jsx)("div",{className:"rounded-xl border border-amber-500/20 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:"Expiring-first currently reorders accounts inside the current page. Cross-page ordering still follows backend pagination."}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:tl.map(e=>{var s;let i,n,o,d=z[e.id],c=J[e.id],u=W[e.id],m=!1===e.isActive,x="codex"===e.provider,h="claude"===e.provider?d?.raw?.resetCredits:null,b=x?"Codex reset credit":"Claude limit reset",g=Number.isFinite(n="number"==typeof(i=d?.raw?.resetCredits?.availableCount)?i:Number(i))?Math.max(0,n):0,f=em===e.id,y=eo===e.id||ec===e.id||f;return(0,a.jsxs)(S.A,{padding:"none",className:`min-w-0 ${m?"opacity-60":""}`,children:[(0,a.jsx)("div",{className:"px-3 py-2 border-b border-black/10 dark:border-white/10",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,a.jsx)(l.A,{src:`/providers/${e.provider}.webp`,alt:e.provider,size:32,className:"object-contain",fallbackText:e.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-text-primary capitalize truncate",children:e.provider}),p(e)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:p(e)}):null,M(e)?(0,a.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:M(e)}):null,"kiro"===e.provider&&(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,a.jsx)("span",{className:"rounded-full bg-brand-500/10 px-2 py-0.5 text-[10px] font-semibold text-brand-600 dark:text-brand-300",children:(o=e.providerSpecificData?.authMethod)&&E[o]?E[o]:"api_key"===e.authType?"API Key":"OAuth"}),T(e)&&(0,a.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-semibold text-blue-600 dark:text-blue-400",children:T(e)}),(0,a.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${m?"bg-surface-2 text-text-muted":"active"===e.testStatus||"success"===e.testStatus?"bg-green-500/10 text-green-600 dark:text-green-400":"error"===e.testStatus||"expired"===e.testStatus||"unavailable"===e.testStatus?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:m?"disabled":e.testStatus||"unknown"}),e.providerSpecificData?.profileArn&&(0,a.jsxs)("button",{type:"button",onClick:()=>r(e.providerSpecificData.profileArn,e.id),title:e.providerSpecificData.profileArn,className:"inline-flex max-w-full items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-muted transition-colors hover:text-primary",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:t===e.id?"check":"content_copy"}),(0,a.jsx)("code",{className:"truncate font-mono",children:e.providerSpecificData.profileArn})]})]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(x||h)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.A,{text:g>0?h?`Use your reset now (${g} left, use by ${L(h.expiresAt)}) \xb7 refills ${_(h.clears)}`:`Use one ${b}. Available: ${g}`:`No ${b}s available`,children:(0,a.jsxs)("button",{type:"button",onClick:()=>eh({connection:e,resetCreditCount:g}),disabled:g<=0||c||y,"aria-label":g>0?`Use one ${b}. ${g} available.`:`No ${b}s available`,className:`flex h-8 min-w-10 items-center justify-center gap-1 rounded-lg border px-2 text-[11px] font-medium tabular-nums transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60 disabled:cursor-not-allowed disabled:opacity-60 ${g>0?"border-primary/30 bg-primary/5 text-primary hover:bg-primary/10":"border-black/10 bg-black/[0.02] text-text-muted dark:border-white/10 dark:bg-white/[0.03]"}`,children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[15px] ${f?"animate-spin":""}`,children:f?"progress_activity":"restart_alt"}),(0,a.jsx)("span",{children:g})]})}),(0,a.jsx)(C.A,{text:x?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,a.jsx)("button",{type:"button",onClick:()=>x?e9(e):e7(e,h),disabled:c||y,"aria-label":x?"View Codex reset credit expiry":"View Claude Code reset expiry",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-muted transition-colors hover:bg-black/5 hover:text-primary disabled:cursor-not-allowed disabled:opacity-50 dark:border-white/10 dark:hover:bg-white/5",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})})]}),q[e.provider]&&"oauth"===e.authType&&(0,a.jsx)(C.A,{text:D[e.provider],children:(0,a.jsx)("button",{type:"button",onClick:()=>ts(e.id,e.provider,Y[e.provider]?.[e.id]!==!0),"aria-label":"Toggle auto-ping",className:`flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${Y[e.provider]?.[e.id]===!0?"text-primary":"text-text-muted"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})}),(0,a.jsx)(C.A,{text:"Refresh quota",children:(0,a.jsx)("button",{type:"button",onClick:()=>e8(e.id,e.provider),disabled:c||y,"aria-label":"Refresh quota",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${c?"animate-spin":""}`,children:"refresh"})})}),(0,a.jsx)(C.A,{text:"Edit connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>{ew(e),ey(!0)},disabled:y,"aria-label":"Edit connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,a.jsx)(C.A,{text:"Delete connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>te(e.id),disabled:y,"aria-label":"Delete connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] ${eo===e.id?"animate-pulse":""}`,children:"delete"})})}),(0,a.jsx)("div",{className:"inline-flex items-center pl-0.5",title:e.isActive??!0?"Disable connection":"Enable connection",children:(0,a.jsx)(N.A,{size:"sm",checked:e.isActive??!0,disabled:y,onChange:t=>tt(e.id,t)})})]})]})}),(0,a.jsx)("div",{className:"px-2 py-1.5",children:c?(0,a.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):u?(0,a.jsxs)("div",{className:"text-center py-5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,a.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:u})]}):d?.message?(0,a.jsx)("div",{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-xs text-text-muted",children:d.message})}):(0,a.jsx)(j,{quotas:(s=d?.quotas,Array.isArray(s)&&"all"!==eP&&eP?s.filter(e=>(e&&(e.modelKey||e.name)||"")===eP):s||[]),compact:!0,sortMode:"default",showSortLabel:"codex"===e.provider&&"default"!==eM})})]},e.id)})}),(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 dark:border-white/10 dark:bg-white/[0.03]",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted",children:th}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:tb?"custom":String(eK),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(eJ(1),eW(r),eH(String(r)))},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Accounts per page",children:[u.map(e=>(0,a.jsxs)("option",{value:String(e),children:[e," / page"]},e)),(0,a.jsx)("option",{value:"custom",children:"Custom"})]}),(0,a.jsx)("input",{type:"number",min:"1",max:String(500),inputMode:"numeric",value:eG,onChange:e=>eH(e.target.value),onBlur:()=>{let e=Number.parseInt(eG,10);if(!Number.isFinite(e))return void eH(String(eK));let t=Math.min(500,Math.max(1,e));eJ(1),eW(t),eH(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(eG,10);if(!Number.isFinite(t))return void eH(String(eK));let r=Math.min(500,Math.max(1,t));eJ(1),eW(r),eH(String(r))},className:"h-8 w-20 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Custom accounts per page",placeholder:"Custom"}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",eV.page," / ",eV.totalPages]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eJ(1),disabled:eV.page<=1||el||er,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"First Page"}),(0,a.jsx)("button",{type:"button",onClick:()=>eJ(e=>Math.max(1,e-1)),disabled:eV.page<=1||el||er,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Previous accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eJ(e=>Math.min(eV.totalPages,e+1)),disabled:eV.page>=eV.totalPages||el||er,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Next accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eJ(eV.totalPages),disabled:eV.page>=eV.totalPages||el||er,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Last Page"})]})]})}),(0,a.jsx)(A.ConfirmModal,{isOpen:!!ep,onClose:()=>{em||eh(null)},onConfirm:async()=>{let e=ep?.connection;e&&(await e6(e.id,e.provider),eh(null))},title:ep?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:ep?.connection?.provider==="claude"?`Refills your ${_(z[ep.connection.id]?.raw?.resetCredits?.clears)} now for ${p(ep.connection)||"this account"} \xb7 your weekly reset day stays ${L(z[ep.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${ep.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${p(ep?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${ep?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!em}),eb&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"w-full max-w-2xl overflow-hidden rounded-2xl border border-black/15 bg-white shadow-2xl ring-1 ring-black/10 dark:border-white/15 dark:bg-neutral-950 dark:ring-white/10",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-black/10 bg-black/[0.03] px-4 py-3 dark:border-white/10 dark:bg-white/[0.04]",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:eb.data?.kind==="claude"?"Claude Code Limit Resets":"Codex Reset Credit Expiry"}),(0,a.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:p(eb.connection)||(eb.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,a.jsx)("button",{type:"button",onClick:()=>eg(null),className:"flex h-8 w-8 items-center justify-center rounded-lg text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5","aria-label":"Close reset credit expiry modal",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,a.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:eb.loading?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):eb.error?(0,a.jsx)("div",{className:"rounded-xl border border-red-500/20 bg-red-500/10 px-3 py-2 text-sm text-red-600 dark:text-red-300",children:eb.error}):eb.data?.kind==="claude"&&eb.data.grants?.length?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("span",{children:[eb.data.availableCount??0," reset",1===eb.data.availableCount?"":"s"," left"]}),(0,a.jsxs)("span",{children:["Weekly reset day: ",L(eb.data.weeklyResetsAt)]})]}),(0,a.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,a.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,a.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Reset"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Left"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Refills"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Use By"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,a.jsx)("tbody",{children:(eb.data.grants||[]).map(e=>(0,a.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,a.jsxs)("td",{className:"px-3 py-2",children:[(0,a.jsx)("div",{className:"text-text-primary",children:e.label||e.id}),(0,a.jsx)("span",{className:"mt-1 inline-block rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.resetsLeft<=0?"used":e.paused?"paused":e.endsAt&&new Date(e.endsAt).getTime()<=Date.now()?"expired":e.usableNow?"usable now":e.startsAt&&new Date(e.startsAt).getTime()>Date.now()?"not started":e.useRequiresLimit?"at limit only":"unavailable"})]}),(0,a.jsxs)("td",{className:"whitespace-nowrap px-3 py-2 font-medium tabular-nums text-text-primary",children:[e.resetsLeft," / ",e.resetsTotal]}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-muted",children:_(e.clears)}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-primary",children:L(e.endsAt)}),(0,a.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text-primary",children:I(e.endsAt)})]},e.id))})]})})]}):eb.data?.credits?.length?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("span",{children:[eb.data.credits.length," reset credit",1===eb.data.credits.length?"":"s"]}),(0,a.jsxs)("span",{children:[eb.data.availableCount??0," available"]})]}),(0,a.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,a.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,a.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,a.jsx)("tbody",{children:eb.data.credits.map((e,t)=>(0,a.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,a.jsx)("td",{className:"px-3 py-2",children:(0,a.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.status||"unknown"})}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-muted",children:L(e.grantedAt)}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-primary",children:L(e.expiresAt)}),(0,a.jsx)("td",{className:"px-3 py-2 font-medium text-text-primary",children:I(e.expiresAt)})]},`${e.status}-${e.expiresAt||t}`))})]})})]}):(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-8 text-center text-sm text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:eb.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),(0,a.jsx)(A.EditConnectionModal,{isOpen:ef,connection:ev,proxyPools:ek,onSave:tr,onClose:()=>{ey(!1),ew(null)}})]}):(0,a.jsx)(S.A,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:tp.icon}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:tp.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:tp.description})]})}):(0,a.jsx)(S.A,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:"No Providers Connected"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:"Connect to providers with OAuth to track your API quota limits and usage."})]})})}}},e=>{e.O(0,[3885,7523,7236,4385,736,2147,3204,7358],()=>e(e.s=5244)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{5244:(e,t,r)=>{Promise.resolve().then(r.bind(r,30742)),Promise.resolve().then(r.bind(r,70665)),Promise.resolve().then(r.bind(r,47056))},30742:(e,t,r)=>{"use strict";r.d(t,{default:()=>d});var a=r(15102),s=r(82030),i=r(62758),l=r(97955);let n={daily:"Daily",weekly:"Weekly",monthly:"Monthly","one-time":"One-time",rolling:"Rolling"},o={daily:{variant:"success"},weekly:{variant:"info"},"one-time":{variant:"warning"},monthly:{variant:"default",className:"bg-purple-500/10 text-purple-600 dark:text-purple-400"},rolling:{variant:"default",className:"bg-cyan-500/10 text-cyan-600 dark:text-cyan-400"}};function d({tiers:e=[]}){let[t,r]=(0,s.useState)(null),[c,u]=(0,s.useState)(""),[m,x]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=!1;return fetch("/api/providers",{cache:"no-store"}).then(e=>e.ok?e.json():null).then(t=>{if(e||!t)return;let a=new Set;for(let e of t.connections||[])!1!==e.isActive&&(e.provider&&a.add(e.provider),e.alias&&a.add(e.alias));r(a)}).catch(()=>{e||r(new Set)}),()=>{e=!0}},[]);let p=(0,s.useMemo)(()=>{let r=new Map;for(let t of e){let e=t.providerId;r.has(e)||r.set(e,{id:e,name:t.providerName||e,alias:t.providerAlias||null,refresh:t.freeRefresh||null,models:[]});let a=r.get(e);!a.refresh&&t.freeRefresh&&(a.refresh=t.freeRefresh),t.modelId&&a.models.push({id:t.modelId,name:t.modelName||t.modelId})}let a=c.trim().toLowerCase(),s=[...r.values()].map(e=>({...e,connected:!!(t&&(t.has(e.id)||e.alias&&t.has(e.alias)))}));return(a?s.filter(e=>e.name.toLowerCase().includes(a)||(e.alias||"").toLowerCase().includes(a)||e.models.some(e=>e.name.toLowerCase().includes(a)||e.id.toLowerCase().includes(a))):s).sort((e,t)=>e.connected!==t.connected?e.connected?-1:1:e.name.localeCompare(t.name))},[e,t,c]),h=p.filter(e=>e.connected).length,b=t?p.length-h:0,g=m||c.trim()?p:p.filter(e=>e.connected);return(0,a.jsx)(i.A,{padding:"lg",title:"Available free tiers",subtitle:"Provider free allowances from the registry. Connected providers first; the rest are behind the toggle.",children:0===e.length?(0,a.jsx)("p",{className:"py-6 text-center text-sm text-text-muted",children:"No free tiers found."}):(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("input",{type:"search",value:c,onChange:e=>u(e.target.value),placeholder:"Filter by provider or model…","aria-label":"Filter free tiers by provider or model",className:"min-w-[12rem] flex-1 rounded border border-border bg-surface px-2.5 py-1.5 text-xs focus:outline-none focus:ring-1 focus:ring-primary/50"}),(0,a.jsxs)("span",{className:"text-[11px] text-text-muted",children:[h," connected",null===t?" (checking…)":` \xb7 ${b} without an account`]}),b>0&&!c.trim()&&(0,a.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),"aria-pressed":m,className:"rounded border border-border px-2.5 py-1.5 text-xs text-text-muted transition-colors hover:border-primary hover:text-primary",children:[m?"Hide":"Show"," providers without an account"]})]}),0===g.length?(0,a.jsx)("p",{className:"py-6 text-center text-sm text-text-muted",children:null===t?"Checking your connections…":"No free tier matches. Add a connection for a provider below, or clear the filter."}):(0,a.jsx)("div",{className:"flex flex-col divide-y divide-black/5 dark:divide-white/5",children:g.map(e=>{let r=o[e.refresh]||{variant:"default"};return(0,a.jsxs)("div",{className:"flex flex-col gap-1.5 py-3",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-text-primary",children:e.name}),e.alias&&e.alias!==e.name&&(0,a.jsx)("span",{className:"font-mono text-[10px] text-text-muted",children:e.alias}),e.connected?(0,a.jsx)(l.A,{size:"sm",variant:"success",children:"Connected"}):t?(0,a.jsx)("span",{className:"text-[11px] italic text-text-muted",children:"no account yet"}):null,e.refresh?(0,a.jsx)(l.A,{size:"sm",variant:r.variant,className:r.className,children:n[e.refresh]||e.refresh}):(0,a.jsx)("span",{className:"text-xs italic text-text-muted",title:"Reset cadence not documented","aria-label":"Reset cadence not documented",children:"—"}),(0,a.jsx)("span",{className:"ml-auto text-[11px] text-text-muted",children:0===e.models.length?"free tier available":`${e.models.length} free model${e.models.length>1?"s":""}`})]}),e.models.length>0&&(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:e.models.map(e=>(0,a.jsx)("span",{title:e.id,className:"rounded bg-black/[0.04] px-1.5 py-0.5 font-mono text-[11px] text-text-muted dark:bg-white/[0.06]",children:e.name},e.id))})]},e.id)})})]})})}},70665:(e,t,r)=>{"use strict";r.d(t,{default:()=>R});var a=r(15102),s=r(82030),i=r(93278),l=r(31704),n=r(51427);let o=new Set(["antigravity","gemini-cli","cursor"]),d="quotaCacheData",c="quotaAutoRefresh",u=[10,20,50,100],m=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],x=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function p(e){return e.name?.trim()||e.email?.trim()||e.displayName?.trim()||null}function h(e,t){let r=t[e.id]?.quotas?.[0];return r&&"number"==typeof r.remaining?r.remaining:1/0}function b(e){let t={};return e.forEach(e=>{t[e.id]=!0}),t}function g(e,t){let r=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>r.has(e)))}async function f(e,t){return await e(t)}function y(){try{let e=window.localStorage.getItem(d);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}function v(e,t){try{let r=y();r[e]={...t,cachedAt:new Date().toISOString()},window.localStorage.setItem(d,JSON.stringify(r))}catch(e){console.error("Error writing quota cache:",e)}}function w(e,t){return t&&0!==t?!e||e<0?100:e>=t?0:Math.round((t-e)/t*100):0}let k=[];function j({quotas:e=k,compact:t=!1,sortMode:r="default",showSortLabel:i=!1}){let[l,n]=(0,s.useState)(1),o=(0,s.useMemo)(()=>e.map((e,t)=>({...e,index:t,remaining:e?.percentage!==void 0?Math.max(0,Math.round(!0===e.percentageIsUsed?100-e.percentage:e.percentage)):e?.remaining!==void 0?Math.max(0,Math.round(e.remaining)):e?.remainingPercentage!==void 0?Math.round(e.remainingPercentage):w(e?.used,e?.total)})),[e]),d=(0,s.useMemo)(()=>"remaining-asc"===r?o.toSorted((e,t)=>e.remaining-t.remaining||e.name.localeCompare(t.name)):"remaining-desc"===r?o.toSorted((e,t)=>t.remaining-e.remaining||e.name.localeCompare(t.name)):o,[o,r]),c=Math.max(1,Math.ceil(d.length/10)),[u,m]=(0,s.useState)(r),[x,p]=(0,s.useState)(e),[h,b]=(0,s.useState)(c);if(r!==u||e!==x?(m(r),p(e),b(c),n(1)):c!==h&&(b(c),n(e=>Math.min(e,c))),!e||0===e.length)return null;let g=d.slice((l-1)*10,10*l),f=0===d.length?0:(l-1)*10+1,y=Math.min(10*l,d.length),v=t?"py-1 px-1.5":"py-2 px-3",N=t?"text-[11px]":"text-sm",C=t?"text-[11px]":"text-sm",S=t?"text-[10px] leading-tight":"text-xs";return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"text-[10px] text-text-muted",children:[d.length," quota",d.length>1?"s":""]}),i&&(0,a.jsx)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1 text-[10px] text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"Sorted by account remaining"})]}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsx)("table",{className:"w-full min-w-[420px] table-fixed text-left",children:(0,a.jsx)("tbody",{children:g.map(e=>{var r;let s=!0===e.unlimited,i=!0===e.isCreditBalance,l=i?{text:"text-blue-600 dark:text-blue-400",bg:"bg-blue-500",bgLight:"bg-blue-500/10",emoji:"\uD83D\uDCB0"}:(r=e.colorPercentage??e.remaining)>70?{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"}:r>=30?{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500",bgLight:"bg-yellow-500/10",emoji:"\uD83D\uDFE1"}:{text:"text-red-600 dark:text-red-400",bg:"bg-red-500",bgLight:"bg-red-500/10",emoji:"\uD83D\uDD34"},n=e.neverExpires?"-":function(e){if(!e)return"-";try{let t="string"==typeof e?new Date(e):e,r=new Date,a=t-r;if(a<=0)return"-";let s=Math.ceil(a/6e4);if(s<60)return`${s}m`;let i=Math.floor(s/60),l=s%60;if(i<24)return`${i}h ${l}m`;let n=Math.floor(i/24);return`${n}d ${i%24}h ${l}m`}catch(e){return"-"}}(e.resetAt),o=!e.neverExpires&&!e.resetAt&&!!e.detailUrl,d=e.emptyMessage?e.emptyMessage:e.neverExpires?"Never expires":o?"See details":function(e){if(!e)return null;try{let t=new Date(e),r=new Date,a=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=new Date(a);s.setDate(s.getDate()+1);let i="";i=t>=a&&t<s?"Today":t>=s&&t<new Date(s.getTime()+864e5)?"Tomorrow":t.toLocaleDateString("en-US",{month:"short",day:"numeric"});let l=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${i}, ${l}`}catch{return null}}(e.resetAt),c=o&&e.detailUrl?e.detailUrl:d,u=!1!==e.recurring?`in ${n}`:`expires in ${n}`;return(0,a.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors",children:[(0,a.jsx)("td",{className:`${v} w-[30%]`,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,a.jsx)("span",{className:"text-[10px] shrink-0",children:l.emoji}),(0,a.jsx)("span",{className:`${N} font-medium text-text-primary truncate`,children:e.name})]})}),(0,a.jsx)("td",{className:`${v} w-[45%]`,children:(0,a.jsxs)("div",{className:t?"space-y-1":"space-y-1.5",children:[!s&&!i&&(0,a.jsx)("div",{className:`${t?"h-1":"h-1.5"} rounded-full overflow-hidden border ${l.bgLight} ${0===e.remaining?"border-black/10 dark:border-white/10":"border-transparent"}`,children:(0,a.jsx)("div",{className:`h-full transition-all duration-300 ${l.bg}`,style:{width:`${Math.min(e.remaining,100)}%`}})}),(0,a.jsxs)("div",{className:`flex items-center justify-between ${t?"text-[10px]":"text-xs"}`,children:[(0,a.jsx)("span",{className:"text-text-muted",title:s?`${e.used.toLocaleString()} used \xb7 Unlimited`:i?`Credit balance: ${e.total.toFixed(2)} ${e.currency||""}`:`${e.used.toLocaleString()} / ${e.total>0?e.total.toLocaleString():"∞"}`,children:s?`${e.used.toLocaleString()} used \xb7 Unlimited`:i?`Credit: ${e.total.toFixed(2)} ${e.currency||""}`:`${e.used.toLocaleString()} / ${e.total>0?e.total.toLocaleString():"∞"}`}),(0,a.jsx)("span",{className:`font-medium ${s?"text-green-600 dark:text-green-400":l.text}`,children:s?"Unlimited":i?"":`${e.remaining}%`})]})]})}),(0,a.jsx)("td",{className:`${v} w-[25%]`,children:"-"!==n||d?t?(0,a.jsx)("div",{className:`${C} text-text-primary font-medium truncate`,title:c||"",children:"-"!==n?u:d}):(0,a.jsxs)("div",{className:"space-y-0.5",children:["-"!==n&&(0,a.jsx)("div",{className:`${C} text-text-primary font-medium`,children:u}),o?(0,a.jsxs)("a",{href:e.detailUrl,target:"_blank",rel:"noopener noreferrer",className:`${S} text-text-muted inline-flex items-center gap-0.5 hover:text-text-primary hover:underline`,title:`Open usage details: ${c}`,"aria-label":`Open usage details for ${e.name}`,children:[d,(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"open_in_new"})]}):d&&(0,a.jsx)("div",{className:`${S} text-text-muted`,children:d})]}):(0,a.jsx)("div",{className:`${C} text-text-muted italic`,children:"N/A"})})]},`${e.name}-${e.index}`)})})})}),c>1&&(0,a.jsxs)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1.5 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[10px] text-text-muted",children:[(0,a.jsxs)("span",{children:["Showing ",f,"-",y," of ",d.length]}),(0,a.jsxs)("span",{children:["Page ",l," / ",c]})]}),(0,a.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>n(e=>Math.max(1,e-1)),disabled:1===l,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Prev"}),(0,a.jsx)("button",{type:"button",onClick:()=>n(e=>Math.min(c,e+1)),disabled:l===c,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Next"})]})]})]})}var N=r(52252),C=r(18419),S=r(62758),A=r(10736),$=r(31038),P=r(21577);let E={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},q={claude:"claudeAutoPing",codex:"codexAutoPing"},D={claude:"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",codex:"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota."};function M(e){return e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()?e.email.trim():e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()?e.displayName.trim():null}function T(e){let t=e.providerSpecificData?.region;if(t)return t;let r=e.providerSpecificData?.profileArn;return("string"==typeof r?r.split(":")[3]:"")||""}let O={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function _(e){let t=[...new Set((e||[]).map(e=>O[e]).filter(Boolean))];return t.length?`${t.join(" + ")} limits`:"limits"}function L(e){if(!e)return"N/A";let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function I(e){if(!e)return"N/A";let t=new Date(e).getTime()-Date.now();if(!Number.isFinite(t))return"N/A";if(t<=0)return"Expired";let r=Math.ceil(t/36e5),a=Math.floor(r/24),s=r%24;return a>0?`${a}d ${s}h`:`${s}h`}function R(){let e,{copied:t,copy:r}=(0,P.C)(),k=(0,i.useSearchParams)(),O=(0,i.useRouter)(),R=(0,i.usePathname)(),[U,F]=(0,s.useState)([]),[z,B]=(0,s.useState)({}),[J,K]=(0,s.useState)({}),[W,G]=(0,s.useState)({}),[H,V]=(0,s.useState)(!0),[Y,Q]=(0,s.useState)({claude:{},codex:{}}),[X,Z]=(0,s.useState)(null),[ee,et]=(0,s.useState)(!1),[er,ea]=(0,s.useState)(!1),[es,ei]=(0,s.useState)(60),[el,en]=(0,s.useState)(!0),[eo,ed]=(0,s.useState)(null),[ec,eu]=(0,s.useState)(null),[em,ex]=(0,s.useState)(null),[ep,eh]=(0,s.useState)(null),[eb,eg]=(0,s.useState)(null),[ef,ey]=(0,s.useState)(!1),[ev,ew]=(0,s.useState)(null),[ek,ej]=(0,s.useState)([]),[eN,eC]=(0,s.useState)(()=>k?.get("provider")||"all"),eS=(0,s.useCallback)(e=>{eC(e);try{let t=new URLSearchParams(k?.toString()||"");"all"===e?t.delete("provider"):t.set("provider",e);let r=t.toString()?`${R}?${t.toString()}`:R;O.replace(r,{scroll:!1})}catch{}},[R,O,k]),[eA,e$]=(0,s.useState)([]),[eP,eE]=(0,s.useState)("all"),[eq,eD]=(0,s.useState)("all"),[eM,eT]=(0,s.useState)("default"),[eO,e_]=(0,s.useState)(!1),[eL,eI]=(0,s.useState)(!1),[eR,eU]=(0,s.useState)(!1),[eF,ez]=(0,s.useState)(!1),[eB,eJ]=(0,s.useState)(1),[eK,eW]=(0,s.useState)(20),[eG,eH]=(0,s.useState)(String(20)),[eV,eY]=(0,s.useState)({page:1,pageSize:20,total:0,totalPages:1}),[eQ,eX]=(0,s.useState)({eligibleConnections:0,providerFilteredConnections:0}),eZ=(0,s.useRef)(null),e0=(0,s.useRef)(null),e1=(0,s.useRef)(0),e5=(0,s.useRef)((e=0,{begin:()=>++e,isLatest:t=>t===e})),e2=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=k?.get("provider")||"all";eC(t=>t===e?t:e)},[k]);let e3=(0,s.useCallback)(async(e=eB)=>{let t=e5.current.begin();try{var r,a;let s=new URLSearchParams({page:String(e),pageSize:String(eK),accountStatus:eq,sort:"priority"});"all"!==eN&&s.set("provider",eN);let i=await fetch(`/api/providers/client?${s.toString()}`,{cache:"no-store"});if(!i.ok)throw Error("Failed to fetch connections");let l=await i.json();if(!e5.current.isLatest(t))return null;let n=l.connections||[],o=(r=l.pagination,r||{page:1,pageSize:eK,total:0,totalPages:1}),d=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(l.totals,n.length);return F(n),e$(l.providerOptions||[]),eY(o),eX(d),eJ((a=l.pagination,a?.page||e)),n}catch(e){if(!e5.current.isLatest(t))return null;return console.error("Error fetching connections:",e),F([]),e$([]),eY({page:1,pageSize:eK,total:0,totalPages:1}),eX({eligibleConnections:0,providerFilteredConnections:0}),[]}},[eq,eB,eK,eN]),e4=(0,s.useCallback)(async(e,t,{force:r=!1}={})=>{K(t=>({...t,[e]:!0})),G(t=>({...t,[e]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${t} (${e})`);let a=await fetch(`/api/usage/${e}${r?"?force=1":""}`,{cache:"no-store"});if(!a.ok){let r=(await a.json().catch(()=>({}))).error||a.statusText;if(404===a.status)return void console.warn(`[ProviderLimits] Connection not found for ${t}, skipping`);if(401===a.status){console.warn(`[ProviderLimits] Auth error for ${t}:`,r);let a={quotas:[],message:r};B(t=>({...t,[e]:a})),v(e,a);return}throw Error(`HTTP ${a.status}: ${r}`)}let s=await a.json();console.log(`[ProviderLimits] Got quota for ${t}:`,s);let i={quotas:function(e,t){if(!t||"object"!=typeof t)return[];let r=[];try{switch(e.toLowerCase()){case"github":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"antigravity":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codex":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{let a=e;"spark_session"===e?a="Spark (5h)":"spark_weekly"===e?a="Spark (Weekly)":"session"===e?a="5h":"weekly"===e?a="Weekly":"review_session"===e?a="Review (5h)":"review_weekly"===e&&(a="Review (Weekly)"),r.push({name:a,quotaType:e,used:t.used||0,total:t.total||0,remaining:t.remaining,resetAt:t.resetAt||null})});break;case"kiro":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"qoder":case"qoder-cn":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{t&&0!==(Number(t.total)||0)&&r.push({name:"user"===e?"Personal":"organization"===e?"Organization":"addOn"===e?"Add-on":e,used:t.used||0,total:t.total||0,unit:t.unit,resetAt:t.resetAt||null,neverExpires:!0===t.neverExpires,detailUrl:t.detailUrl||null})});break;case"cursor":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"claude":t.message?r.push({name:"error",used:0,total:0,resetAt:null,message:t.message}):t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"vercel-ai-gateway":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codebuddy-cn":case"codebuddy-intl":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!1!==t.recurring})});break;case"kimi":case"deepseek":t.quotas&&Object.entries(t.quotas).forEach(([t,a])=>{r.push({name:t,used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage,..."deepseek"===e.toLowerCase()?{isCreditBalance:!0===a.isCreditBalance,currency:a.currency||"USD"}:{}})});break;case"freebuff":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!1!==t.recurring})});break;case"grok-cli":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"zed":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage,unlimited:t.unlimited})});break;case"minimax-code":case"minimax-code-global":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,remaining:t.remaining,remainingPercentage:t.remainingPercentage,resetAt:t.resetAt||null,message:t.message,isCreditBalance:t.isCreditBalance,currency:t.currency})});break;default:t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.name||e,used:t.used||0,total:t.total||0,percentage:t.percentage,colorPercentage:t.colorPercentage,percentageIsUsed:!0===t.percentageIsUsed,remainingPercentage:t.remainingPercentage,resetAt:t.resetAt||null,emptyMessage:t.emptyMessage||null,isCreditBalance:t.isCreditBalance,currency:t.currency,unit:t.unit,unlimited:t.unlimited})})}}catch(t){return console.error(`Error parsing quota data for ${e}:`,t),[]}let a=(0,n.KC)(e);if(a.length>0){let e=new Map(a.map((e,t)=>[e.id,t]));r.sort((t,r)=>{let a=t.modelKey||t.name,s=r.modelKey||r.name;return(e.get(a)??999)-(e.get(s)??999)})}return r}(t,s),plan:s.plan||null,message:s.message||null,raw:s};B(t=>({...t,[e]:i})),v(e,i)}catch(r){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),G(t=>({...t,[e]:r.message||"Failed to fetch quota"}))}finally{K(t=>({...t,[e]:!1}))}},[]),e8=(0,s.useCallback)(async(e,t)=>{await e4(e,t,{force:!0}),Z(new Date)},[e4]),e6=(0,s.useCallback)(async(e,t)=>{if(("codex"===t||"claude"===t)&&!em){ex(e),G(t=>({...t,[e]:null}));try{let r="claude"===t?await fetch(`/api/usage/${e}/claude-reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grantId:z[e]?.raw?.resetCredits?.nextGrantId})}):await fetch(`/api/usage/${e}/codex-reset-credits`,{method:"POST"}),a=await r.json().catch(()=>({}));if(!r.ok)throw Error(a.message||a.error||a.code||"Failed to reset limit");await e4(e,t,{force:!0}),Z(new Date)}catch(t){G(r=>({...r,[e]:t.message||"Failed to reset limit"}))}finally{ex(null)}}},[e4,em,z]),e7=(0,s.useCallback)((e,t)=>{eg({connection:e,loading:!1,error:null,data:{kind:"claude",...t}})},[]),e9=(0,s.useCallback)(async e=>{eg({connection:e,loading:!0,error:null,data:null});try{let t=await fetch(`/api/usage/${e.id}/codex-reset-credits`,{cache:"no-store"}),r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r.error||r.message||"Failed to load Codex reset credits");let a=Array.isArray(r.credits)?[...r.credits]:[];a.sort((e,t)=>{let r=e.expiresAt?new Date(e.expiresAt).getTime():1/0,a=t.expiresAt?new Date(t.expiresAt).getTime():1/0;return r-a}),eg({connection:e,loading:!1,error:null,data:{...r,credits:a}})}catch(t){eg({connection:e,loading:!1,error:t.message||"Failed to load Codex reset credits",data:null})}},[]),te=(0,s.useCallback)(async e=>{if(confirm("Delete this connection?")){ed(e);try{if((await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok){B(t=>{let r={...t};return delete r[e],r}),K(t=>{let r={...t};return delete r[e],r}),G(t=>{let r={...t};return delete r[e],r});try{let t=y();t[e]&&(delete t[e],window.localStorage.setItem(d,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await f(e3,eB)}}catch(e){console.error("Error deleting connection:",e)}finally{ed(null)}}},[e3,eB]),tt=(0,s.useCallback)(async(e,t)=>{eu(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(B(e=>({...e})),await f(e3,eB))}catch(e){console.error("Error updating connection status:",e)}finally{eu(null)}},[e3,eB]),tr=(0,s.useCallback)(async e=>{if(!ev?.id)return;let t=ev.id,r=ev.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await e3(),ey(!1),ew(null),$.wb.includes(r)&&await e4(t,r))}catch(e){console.error("Error saving connection:",e)}},[ev,e3,e4]);(0,s.useEffect)(()=>{let e=!1;return fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.json()).then(t=>{!e&&t?.proxyPools&&ej(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let ta=(0,s.useCallback)(async(e=!1)=>{if(e2.current)return;e2.current=!0,ea(!0),ei(60);let t=e1.current+=1,r=Math.round(10);try{let a=await e3(eB);if(!a)return;K(b(a)),G(e=>g(e,a)),B(e=>g(e,a)),await Promise.all(a.filter(a=>e||"claude"!==a.provider||t%r==0).map(e=>e4(e.id,e.provider))),Z(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{e2.current=!1,ea(!1)}},[e3,e4,eB]);(0,s.useEffect)(()=>{let e=!1;return(async()=>{en(!0);let t=await e3(eB);e||(en(!1),!t||(K(b(t)),G(e=>g(e,t)),B(e=>g(e,t)),await Promise.all(t.map(e=>e4(e.id,e.provider))),e||Z(new Date)))})(),()=>{e=!0}},[e3,e4,eB]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem(c);V(null===e||"true"===e),et(!0)},[]),(0,s.useEffect)(()=>{ee&&window.localStorage.setItem(c,String(H))},[H,ee]),(0,s.useEffect)(()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{}).then(e=>Q({claude:e?.claudeAutoPing?.connections||{},codex:e?.codexAutoPing?.connections||{}})).catch(()=>{})},[]);let ts=(0,s.useCallback)(async(e,t,r)=>{let a=q[t];if(!a)return;let s={...Y[t]||{},[e]:r};Q({...Y,[t]:s});try{let e=await fetch("/api/settings",{cache:"no-store"}),t={...(e.ok?await e.json():{})[a]||{},connections:s};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[a]:t})})}catch{Q(Y)}},[Y]);(0,s.useEffect)(()=>{if(!ee||!H){eZ.current&&(clearInterval(eZ.current),eZ.current=null),e0.current&&(clearInterval(e0.current),e0.current=null);return}return eZ.current=setInterval(()=>{ta()},6e4),e0.current=setInterval(()=>{ei(e=>e<=1?60:e-1)},1e3),()=>{eZ.current&&clearInterval(eZ.current),e0.current&&clearInterval(e0.current)}},[H,ta,ee]),(0,s.useEffect)(()=>{let e=()=>{document.hidden?(eZ.current&&(clearInterval(eZ.current),eZ.current=null),e0.current&&(clearInterval(e0.current),e0.current=null)):H&&ee&&(eZ.current=setInterval(()=>ta(),6e4),e0.current=setInterval(()=>{ei(e=>e<=1?60:e-1)},1e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[H,ta,ee]),(0,s.useEffect)(()=>{eE("all")},[eN]);let ti=(0,s.useMemo)(()=>eN&&o.has(eN)?(0,n.KC)(eN).map(e=>({id:e.id,name:e.name||e.id})):[],[eN]),tl=(0,s.useMemo)(()=>(function(e,t,r,a,s){if("codex"===a&&"default"!==s)return[...e].sort((e,r)=>{let a=h(e,t),i=h(r,t),l="remaining-asc"===s?a-i:i-a;return 0!==l?l:(p(e)||"").localeCompare(p(r)||"")});if(!r){let t=new Map;for(let r of e){let e=r.provider||"";t.has(e)||t.set(e,[]),t.get(e).push(r)}return Array.from(t.values()).flat()}let i=e=>{let r=(t[e.id]?.quotas||[]).map(e=>e.resetAt?new Date(e.resetAt).getTime():1/0).filter(e=>Number.isFinite(e));return r.length>0?Math.min(...r):1/0};return[...e].sort((e,t)=>{let r=i(e)-i(t);return 0!==r?r:(e.provider||"").localeCompare(t.provider||"")||(p(e)||"").localeCompare(p(t)||"")})})("all"===eN?U:U.filter(e=>e.provider===eN),z,eO,eN,eM),[U,z,eO,eN,eM]),tn=e=>{let t=z[e.id]?.quotas;return!!t?.length&&t.some(e=>!!e.total&&!(e.total<=0)&&5>=w(e.used,e.total))},to=(0,s.useCallback)(async(e,t)=>{if(e.length&&!eR){eU(!0);try{await Promise.all(e.map(e=>fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})}))),await f(e3,eB)}catch(e){console.error("Error bulk toggling connections:",e)}finally{eU(!1)}}},[eR,e3,eB]),td=(0,s.useMemo)(()=>tl.filter(e=>(function(e,t,r){if(e?.provider!=="codex")return!1;let a="string"==typeof t?.message?t.message:"",s="string"==typeof r?r:"";return a.includes("Usage API temporarily unavailable (401)")||a.includes("temporarily unavailable (401)")||a.includes("Codex connected")&&a.includes("401")||s.includes("temporarily unavailable (401)")||s.includes("HTTP 401")})(e,z[e.id],W[e.id])).map(e=>e.id),[tl,z,W]),tc=(0,s.useCallback)(async()=>{if(td.length&&!eF&&confirm(`Delete ${td.length} Codex connection(s) with "Usage API temporarily unavailable (401)"?`)){ez(!0);try{await Promise.all(td.map(e=>fetch(`/api/providers/${e}`,{method:"DELETE"}))),B(e=>{let t={...e};for(let e of td)delete t[e];return t}),K(e=>{let t={...e};for(let e of td)delete t[e];return t}),G(e=>{let t={...e};for(let e of td)delete t[e];return t});try{let e=y(),t=!1;for(let r of td)e[r]&&(delete e[r],t=!0);t&&window.localStorage.setItem(d,JSON.stringify(e))}catch(e){console.error("Error deleting cache entries:",e)}await f(e3,eB)}catch(e){console.error("Error bulk deleting codex unavailable connections:",e)}finally{ez(!1)}}},[td,eF,e3,eB]),tu="all"===eN?"All providers":eN,tm=eQ.eligibleConnections>0,tx=tl.length>0,tp=eQ.eligibleConnections?eQ.providerFilteredConnections?{icon:"filter_alt_off",title:"No Accounts On This Page",description:"Try moving to another page or refreshing the current filters."}:{icon:"filter_alt_off",title:"No Accounts Match Current Filters",description:"all"===eN?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===eq?"turned off":"active"===eq?"active":"matching"} accounts found for ${eN}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},th=function(e){var t;let{start:r,end:a}=(t=e).total?{start:(t.page-1)*t.pageSize+1,end:Math.min(t.page*t.pageSize,t.total)}:{start:0,end:0};return`Showing ${r}-${a} of ${e.total}`}(eV),tb=!u.includes(eK);return el||tm?el||tx?(0,a.jsxs)("div",{className:"space-y-6 min-h-[70vh]",children:[(0,a.jsx)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-end",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>eI(e=>!e),className:"flex h-8 items-center justify-between gap-1 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-haspopup":"menu","aria-expanded":eL,title:"Filter quota providers",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===eN?(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,a.jsx)(l.A,{src:`/providers/${eN}.webp`,alt:eN,size:18,className:"size-[18px] rounded object-contain",fallbackText:eN.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate capitalize hidden lg:inline",children:tu})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),eL&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",className:"fixed inset-0 z-30 bg-transparent","aria-label":"Close provider filter",onClick:()=>eI(!1)}),(0,a.jsxs)("div",{className:"absolute left-0 z-40 mt-1.5 w-52 overflow-hidden rounded-xl border border-black/10 bg-surface/95 p-1 shadow-lg shadow-black/10 backdrop-blur dark:border-white/10 dark:bg-surface/95 sm:w-60",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>{"all"!==eN&&eJ(1),eS("all"),eI(!1)},className:`flex w-full items-center gap-2 rounded-lg px-2.5 py-1.5 text-left text-xs transition-colors ${"all"===eN?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"apps"}),(0,a.jsx)("span",{className:"font-medium",children:"All providers"}),"all"===eN&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[16px]",children:"check"})]}),(0,a.jsx)("div",{className:"my-1 h-px bg-black/10 dark:bg-white/10"}),(0,a.jsx)("div",{className:"max-h-60 overflow-y-auto pr-0.5",children:eA.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{eN!==e&&eJ(1),eS(e),eI(!1)},className:`flex w-full items-center gap-2 rounded-lg px-2.5 py-1.5 text-left text-xs transition-colors ${eN===e?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)(l.A,{src:`/providers/${e}.webp`,alt:e,size:18,className:"size-[18px] rounded object-contain",fallbackText:e.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"font-medium capitalize",children:e}),eN===e&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[16px]",children:"check"})]},e))})]})]})]}),(0,a.jsx)("select",{value:eq,onChange:e=>{let t=e.target.value;eq!==t&&eJ(1),eD(t)},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Filter accounts by status",children:m.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),"codex"===eN&&(0,a.jsx)("select",{value:eM,onChange:e=>eT(e.target.value),className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Sort Codex quotas by remaining",children:x.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),o.has(eN)&&ti.length>0&&(0,a.jsxs)("select",{value:eP,onChange:e=>eE(e.target.value),className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Filter quotas by model",children:[(0,a.jsx)("option",{value:"all",children:"All models"}),ti.map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))]}),(0,a.jsxs)("button",{type:"button",onClick:()=>e_(e=>!e),"aria-pressed":eO,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 text-xs transition-colors ${eO?"border-amber-500/40 bg-amber-500/10 text-amber-500":"border-black/10 text-text-primary hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5"}`,title:"Sort accounts by earliest quota reset time",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"hourglass_top"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Expiring first"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{to(tl.filter(e=>(e.isActive??!0)&&tn(e)).map(e=>e.id),!1)},disabled:eR,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-red-500/30 px-2 text-xs text-red-500 transition-colors hover:bg-red-500/10 disabled:opacity-50",title:"Disable connections with depleted quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"block"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Turn off Empty"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{to(tl.filter(e=>!(e.isActive??!0)&&!tn(e)).map(e=>e.id),!0)},disabled:eR,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-emerald-500/30 px-2 text-xs text-emerald-500 transition-colors hover:bg-emerald-500/10 disabled:opacity-50",title:"Enable connections that still have quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"check_circle"}),(0,a.jsx)("span",{className:"hidden sm:inline",children:"Turn on Available"})]}),"codex"===eN&&(0,a.jsxs)("button",{type:"button",onClick:tc,disabled:eF||0===td.length,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-red-500/40 bg-red-500/10 px-2 text-xs text-red-600 dark:text-red-400 transition-colors hover:bg-red-500/20 disabled:opacity-40 disabled:cursor-not-allowed",title:td.length>0?`Delete ${td.length} Codex connection(s) with "Usage API temporarily unavailable (401)"`:"No Codex 401 unavailable connections on current page",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${eF?"animate-spin":""}`,children:eF?"progress_activity":"delete_sweep"}),(0,a.jsxs)("span",{className:"hidden sm:inline",children:["Delete 401 (",td.length,")"]}),(0,a.jsxs)("span",{className:"sm:hidden",children:["401 (",td.length,")"]})]}),(0,a.jsxs)("button",{onClick:()=>V(e=>!e),className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5",title:H?"Disable auto-refresh":"Enable auto-refresh",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${H?"text-primary":"text-text-muted"}`,children:H?"toggle_on":"toggle_off"}),(0,a.jsx)("span",{className:"hidden text-text-primary sm:inline",children:"Auto-refresh"}),H&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",es,"s)"]})]}),(0,a.jsx)("button",{type:"button",onClick:()=>ta(!0),disabled:er,className:"flex h-8 shrink-0 items-center gap-1 rounded-lg border border-black/10 px-2 text-xs text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5 disabled:opacity-50",title:"Refresh all",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${er?"animate-spin":""}`,children:"refresh"})})]})}),eO&&(0,a.jsx)("div",{className:"rounded-xl border border-amber-500/20 bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-300",children:"Expiring-first currently reorders accounts inside the current page. Cross-page ordering still follows backend pagination."}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:tl.map(e=>{var s;let i,n,o,d=z[e.id],c=J[e.id],u=W[e.id],m=!1===e.isActive,x="codex"===e.provider,h="claude"===e.provider?d?.raw?.resetCredits:null,b=x?"Codex reset credit":"Claude limit reset",g=Number.isFinite(n="number"==typeof(i=d?.raw?.resetCredits?.availableCount)?i:Number(i))?Math.max(0,n):0,f=em===e.id,y=eo===e.id||ec===e.id||f;return(0,a.jsxs)(S.A,{padding:"none",className:`min-w-0 ${m?"opacity-60":""}`,children:[(0,a.jsx)("div",{className:"px-3 py-2 border-b border-black/10 dark:border-white/10",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,a.jsx)(l.A,{src:`/providers/${e.provider}.webp`,alt:e.provider,size:32,className:"object-contain",fallbackText:e.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-text-primary capitalize truncate",children:e.provider}),p(e)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:p(e)}):null,M(e)?(0,a.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:M(e)}):null,"kiro"===e.provider&&(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,a.jsx)("span",{className:"rounded-full bg-brand-500/10 px-2 py-0.5 text-[10px] font-semibold text-brand-600 dark:text-brand-300",children:(o=e.providerSpecificData?.authMethod)&&E[o]?E[o]:"api_key"===e.authType?"API Key":"OAuth"}),T(e)&&(0,a.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-semibold text-blue-600 dark:text-blue-400",children:T(e)}),(0,a.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${m?"bg-surface-2 text-text-muted":"active"===e.testStatus||"success"===e.testStatus?"bg-green-500/10 text-green-600 dark:text-green-400":"error"===e.testStatus||"expired"===e.testStatus||"unavailable"===e.testStatus?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:m?"disabled":e.testStatus||"unknown"}),e.providerSpecificData?.profileArn&&(0,a.jsxs)("button",{type:"button",onClick:()=>r(e.providerSpecificData.profileArn,e.id),title:e.providerSpecificData.profileArn,className:"inline-flex max-w-full items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-muted transition-colors hover:text-primary",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:t===e.id?"check":"content_copy"}),(0,a.jsx)("code",{className:"truncate font-mono",children:e.providerSpecificData.profileArn})]})]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(x||h)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.A,{text:g>0?h?`Use your reset now (${g} left, use by ${L(h.expiresAt)}) \xb7 refills ${_(h.clears)}`:`Use one ${b}. Available: ${g}`:`No ${b}s available`,children:(0,a.jsxs)("button",{type:"button",onClick:()=>eh({connection:e,resetCreditCount:g}),disabled:g<=0||c||y,"aria-label":g>0?`Use one ${b}. ${g} available.`:`No ${b}s available`,className:`flex h-8 min-w-10 items-center justify-center gap-1 rounded-lg border px-2 text-[11px] font-medium tabular-nums transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60 disabled:cursor-not-allowed disabled:opacity-60 ${g>0?"border-primary/30 bg-primary/5 text-primary hover:bg-primary/10":"border-black/10 bg-black/[0.02] text-text-muted dark:border-white/10 dark:bg-white/[0.03]"}`,children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[15px] ${f?"animate-spin":""}`,children:f?"progress_activity":"restart_alt"}),(0,a.jsx)("span",{children:g})]})}),(0,a.jsx)(C.A,{text:x?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,a.jsx)("button",{type:"button",onClick:()=>x?e9(e):e7(e,h),disabled:c||y,"aria-label":x?"View Codex reset credit expiry":"View Claude Code reset expiry",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-muted transition-colors hover:bg-black/5 hover:text-primary disabled:cursor-not-allowed disabled:opacity-50 dark:border-white/10 dark:hover:bg-white/5",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})})]}),q[e.provider]&&"oauth"===e.authType&&(0,a.jsx)(C.A,{text:D[e.provider],children:(0,a.jsx)("button",{type:"button",onClick:()=>ts(e.id,e.provider,Y[e.provider]?.[e.id]!==!0),"aria-label":"Toggle auto-ping",className:`flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${Y[e.provider]?.[e.id]===!0?"text-primary":"text-text-muted"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})}),(0,a.jsx)(C.A,{text:"Refresh quota",children:(0,a.jsx)("button",{type:"button",onClick:()=>e8(e.id,e.provider),disabled:c||y,"aria-label":"Refresh quota",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${c?"animate-spin":""}`,children:"refresh"})})}),(0,a.jsx)(C.A,{text:"Edit connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>{ew(e),ey(!0)},disabled:y,"aria-label":"Edit connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,a.jsx)(C.A,{text:"Delete connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>te(e.id),disabled:y,"aria-label":"Delete connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] ${eo===e.id?"animate-pulse":""}`,children:"delete"})})}),(0,a.jsx)("div",{className:"inline-flex items-center pl-0.5",title:e.isActive??!0?"Disable connection":"Enable connection",children:(0,a.jsx)(N.A,{size:"sm",checked:e.isActive??!0,disabled:y,onChange:t=>tt(e.id,t)})})]})]})}),(0,a.jsx)("div",{className:"px-2 py-1.5",children:c?(0,a.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):u?(0,a.jsxs)("div",{className:"text-center py-5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,a.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:u})]}):d?.message?(0,a.jsx)("div",{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-xs text-text-muted",children:d.message})}):(0,a.jsx)(j,{quotas:(s=d?.quotas,Array.isArray(s)&&"all"!==eP&&eP?s.filter(e=>(e&&(e.modelKey||e.name)||"")===eP):s||[]),compact:!0,sortMode:"default",showSortLabel:"codex"===e.provider&&"default"!==eM})})]},e.id)})}),(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 dark:border-white/10 dark:bg-white/[0.03]",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted",children:th}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:tb?"custom":String(eK),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(eJ(1),eW(r),eH(String(r)))},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Accounts per page",children:[u.map(e=>(0,a.jsxs)("option",{value:String(e),children:[e," / page"]},e)),(0,a.jsx)("option",{value:"custom",children:"Custom"})]}),(0,a.jsx)("input",{type:"number",min:"1",max:String(500),inputMode:"numeric",value:eG,onChange:e=>eH(e.target.value),onBlur:()=>{let e=Number.parseInt(eG,10);if(!Number.isFinite(e))return void eH(String(eK));let t=Math.min(500,Math.max(1,e));eJ(1),eW(t),eH(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(eG,10);if(!Number.isFinite(t))return void eH(String(eK));let r=Math.min(500,Math.max(1,t));eJ(1),eW(r),eH(String(r))},className:"h-8 w-20 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Custom accounts per page",placeholder:"Custom"}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",eV.page," / ",eV.totalPages]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eJ(1),disabled:eV.page<=1||el||er,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"First Page"}),(0,a.jsx)("button",{type:"button",onClick:()=>eJ(e=>Math.max(1,e-1)),disabled:eV.page<=1||el||er,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Previous accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eJ(e=>Math.min(eV.totalPages,e+1)),disabled:eV.page>=eV.totalPages||el||er,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Next accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eJ(eV.totalPages),disabled:eV.page>=eV.totalPages||el||er,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Last Page"})]})]})}),(0,a.jsx)(A.ConfirmModal,{isOpen:!!ep,onClose:()=>{em||eh(null)},onConfirm:async()=>{let e=ep?.connection;e&&(await e6(e.id,e.provider),eh(null))},title:ep?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:ep?.connection?.provider==="claude"?`Refills your ${_(z[ep.connection.id]?.raw?.resetCredits?.clears)} now for ${p(ep.connection)||"this account"} \xb7 your weekly reset day stays ${L(z[ep.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${ep.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${p(ep?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${ep?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!em}),eb&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"w-full max-w-2xl overflow-hidden rounded-2xl border border-black/15 bg-white shadow-2xl ring-1 ring-black/10 dark:border-white/15 dark:bg-neutral-950 dark:ring-white/10",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-black/10 bg-black/[0.03] px-4 py-3 dark:border-white/10 dark:bg-white/[0.04]",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:eb.data?.kind==="claude"?"Claude Code Limit Resets":"Codex Reset Credit Expiry"}),(0,a.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:p(eb.connection)||(eb.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,a.jsx)("button",{type:"button",onClick:()=>eg(null),className:"flex h-8 w-8 items-center justify-center rounded-lg text-text-muted transition-colors hover:bg-black/5 hover:text-text-primary dark:hover:bg-white/5","aria-label":"Close reset credit expiry modal",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,a.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:eb.loading?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):eb.error?(0,a.jsx)("div",{className:"rounded-xl border border-red-500/20 bg-red-500/10 px-3 py-2 text-sm text-red-600 dark:text-red-300",children:eb.error}):eb.data?.kind==="claude"&&eb.data.grants?.length?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("span",{children:[eb.data.availableCount??0," reset",1===eb.data.availableCount?"":"s"," left"]}),(0,a.jsxs)("span",{children:["Weekly reset day: ",L(eb.data.weeklyResetsAt)]})]}),(0,a.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,a.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,a.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Reset"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Left"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Refills"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Use By"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,a.jsx)("tbody",{children:(eb.data.grants||[]).map(e=>(0,a.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,a.jsxs)("td",{className:"px-3 py-2",children:[(0,a.jsx)("div",{className:"text-text-primary",children:e.label||e.id}),(0,a.jsx)("span",{className:"mt-1 inline-block rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.resetsLeft<=0?"used":e.paused?"paused":e.endsAt&&new Date(e.endsAt).getTime()<=Date.now()?"expired":e.usableNow?"usable now":e.startsAt&&new Date(e.startsAt).getTime()>Date.now()?"not started":e.useRequiresLimit?"at limit only":"unavailable"})]}),(0,a.jsxs)("td",{className:"whitespace-nowrap px-3 py-2 font-medium tabular-nums text-text-primary",children:[e.resetsLeft," / ",e.resetsTotal]}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-muted",children:_(e.clears)}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-primary",children:L(e.endsAt)}),(0,a.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text-primary",children:I(e.endsAt)})]},e.id))})]})})]}):eb.data?.credits?.length?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("span",{children:[eb.data.credits.length," reset credit",1===eb.data.credits.length?"":"s"]}),(0,a.jsxs)("span",{children:[eb.data.availableCount??0," available"]})]}),(0,a.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,a.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,a.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,a.jsx)("tbody",{children:eb.data.credits.map((e,t)=>(0,a.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,a.jsx)("td",{className:"px-3 py-2",children:(0,a.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.status||"unknown"})}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-muted",children:L(e.grantedAt)}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-primary",children:L(e.expiresAt)}),(0,a.jsx)("td",{className:"px-3 py-2 font-medium text-text-primary",children:I(e.expiresAt)})]},`${e.status}-${e.expiresAt||t}`))})]})})]}):(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-8 text-center text-sm text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:eb.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),(0,a.jsx)(A.EditConnectionModal,{isOpen:ef,connection:ev,proxyPools:ek,onSave:tr,onClose:()=>{ey(!1),ew(null)}})]}):(0,a.jsx)(S.A,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:tp.icon}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:tp.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:tp.description})]})}):(0,a.jsx)(S.A,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:"No Providers Connected"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:"Connect to providers with OAuth to track your API quota limits and usage."})]})})}}},e=>{e.O(0,[3885,7523,7236,4385,736,2147,3204,7358],()=>e(e.s=5244)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3528],{57965:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>u});var s=a(15102),n=a(82030),r=a(10736),l=a(21577),o=a(49526);let i=(0,a(88511).default)(()=>a.e(9752).then(a.bind(a,29752)).then(e=>(e.loader.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.57.0/min/vs"}}),e.default)),{loadableGenerated:{webpack:()=>[29752]},ssr:!1});function d(e,t){return fetch("/api/translator/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e,content:t})}).catch(()=>{})}let c={blue:"bg-blue-500/10 text-blue-500",orange:"bg-orange-500/10 text-orange-500",green:"bg-green-500/10 text-green-500",purple:"bg-purple-500/10 text-purple-500"},p=[{id:1,label:"Client Request",file:"1_req_client.json",lang:"json",desc:"Raw request from client"},{id:2,label:"Source Body",file:"2_req_source.json",lang:"json",desc:"After initial conversion"},{id:3,label:"OpenAI Intermediate",file:"3_req_openai.json",lang:"json",desc:"source → openai"},{id:4,label:"Target Request",file:"4_req_target.json",lang:"json",desc:"openai → target + URL + headers"},{id:5,label:"Provider Response",file:"5_res_provider.txt",lang:"text",desc:"Raw SSE from provider"},{id:6,label:"OpenAI Response",file:"6_res_openai.txt",lang:"text",desc:"target → openai (response)"},{id:7,label:"Client Response",file:"7_res_client.txt",lang:"text",desc:"Final response to client"}],x={minimap:{enabled:!1},fontSize:12,lineNumbers:"on",scrollBeyondLastLine:!1,wordWrap:"on",automaticLayout:!0};function u(){let{isDark:e}=(0,o.D)(),[t,a]=(0,n.useState)({}),[c,u]=(0,n.useState)({1:!0}),[f,h]=(0,n.useState)({}),[g,j]=(0,n.useState)(null),y=(e,t)=>h(a=>({...a,[e]:t})),b=(e,t)=>a(a=>({...a,[e]:t})),v=e=>u(t=>{let a={};return p.forEach(e=>{a[e.id]=!1}),a[e]=!0,a}),_=async e=>{let t=p.find(t=>t.id===e);y(`load-${e}`,!0);try{let a=await fetch(`/api/translator/load?file=${t.file}`),s=await a.json();s.success?(b(e,s.content),1===e&&await N(s.content)):alert(s.error||"File not found")}catch(e){alert(e.message)}y(`load-${e}`,!1)},N=async e=>{try{let t="string"==typeof e?JSON.parse(e):e,a=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:1,body:t})}),s=await a.json();s.success&&j(s.result)}catch{}},w=async()=>{y("toOpenAI",!0);try{let e=t[1],a=JSON.parse(e);d("1_req_client.json",e),d("2_req_source.json",JSON.stringify({timestamp:new Date().toISOString(),headers:{},body:a.body||a},null,2));let s=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:2,body:a})}),n=await s.json();if(!n.success)return void alert(n.error);let r=JSON.stringify(n.result.body,null,2);b(3,r),v(3)}catch(e){alert(e.message)}y("toOpenAI",!1)},S=async()=>{y("toTarget",!0);try{let e=t[3],a=JSON.parse(e);d("3_req_openai.json",e);let s=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:3,body:{...a,provider:g?.provider,model:g?.model}})}),n=await s.json();if(!n.success)return void alert(n.error);let r={...n.result,provider:g?.provider,model:g?.model};b(4,JSON.stringify(r,null,2)),v(4)}catch(e){alert(e.message)}y("toTarget",!1)},O=async()=>{y("send",!0);try{let e=t[4],a=JSON.parse(e);d("4_req_target.json",e);let s=a.provider||g?.provider,n=a.model||g?.model;if(!s||!n)return void alert("Missing provider or model. Please run step 1 first to detect them.");let r=await fetch("/api/translator/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:s,model:n,body:a.body||a})});if(!r.ok){let e=await r.json().catch(()=>({error:r.statusText}));alert(e.error||"Send failed");return}let l=r.body.getReader(),o=new TextDecoder,i="";for(;;){let{done:e,value:t}=await l.read();if(e)break;i+=o.decode(t,{stream:!0})}b(5,i),v(5),await fetch("/api/translator/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:"5_res_provider.txt",content:i})})}catch(e){alert(e.message)}finally{y("send",!1)}},{copy:C}=(0,l.C)(),T=async e=>{t[e]&&C(t[e],`translator-step-${e}`)};return(0,s.jsxs)("div",{className:"p-8 space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Translator Debug"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Replay request flow — matches log files"})]}),g&&(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap justify-end",children:[(0,s.jsx)(m,{label:"src",value:g.sourceFormat,color:"blue"}),(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,s.jsx)(m,{label:"dst",value:g.targetFormat,color:"orange"}),(0,s.jsx)(m,{label:"provider",value:g.provider,color:"green"}),(0,s.jsx)(m,{label:"model",value:g.model,color:"purple"})]})]}),p.map(a=>{var n;let l=1===(n=a.id)?(0,s.jsx)(r.Button,{size:"sm",icon:"arrow_forward",loading:f.toOpenAI,onClick:w,children:"→ OpenAI"}):3===n?(0,s.jsx)(r.Button,{size:"sm",icon:"arrow_forward",loading:f.toTarget,onClick:S,children:"→ Target"}):4===n?(0,s.jsx)(r.Button,{size:"sm",icon:"send",loading:f.send,onClick:O,children:"Send"}):null,o=!!c[a.id],d=t[a.id]||"";return(0,s.jsx)(r.Card,{children:(0,s.jsxs)("div",{className:"p-4 space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>{let e;return e=a.id,u(t=>({...t,[e]:!t[e]}))},className:"flex items-center gap-2 flex-1 text-left group",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px] text-text-muted group-hover:text-primary transition-colors",children:o?"expand_more":"chevron_right"}),(0,s.jsx)("span",{className:"text-xs font-mono text-text-muted/60 w-4",children:a.id}),(0,s.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:a.label}),(0,s.jsx)("span",{className:"text-xs text-text-muted/60 font-mono",children:a.file}),d&&(0,s.jsxs)("span",{className:"text-xs text-green-500",children:["(",d.length," chars)"]})]}),!o&&(0,s.jsxs)("div",{className:"flex gap-1 shrink-0",children:[(0,s.jsx)(r.Button,{size:"sm",variant:"ghost",icon:"folder_open",loading:f[`load-${a.id}`],onClick:()=>_(a.id)}),l]})]}),o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"border border-border rounded-lg overflow-hidden",children:(0,s.jsx)(i,{height:"400px",defaultLanguage:"text"===a.lang?"plaintext":"json",value:d,onChange:e=>{b(a.id,e||""),1===a.id&&N(e||"")},theme:e?"vs-dark":"light",options:x})}),(0,s.jsxs)("div",{className:"flex gap-2 flex-wrap",children:[(0,s.jsx)(r.Button,{size:"sm",variant:"outline",icon:"folder_open",loading:f[`load-${a.id}`],onClick:()=>_(a.id),children:"Load"}),(0,s.jsx)(r.Button,{size:"sm",variant:"outline",icon:"data_object",onClick:()=>(e=>{try{let a=JSON.parse(t[e]);b(e,JSON.stringify(a,null,2))}catch{}})(a.id),children:"Format"}),(0,s.jsx)(r.Button,{size:"sm",variant:"outline",icon:"content_copy",onClick:()=>T(a.id),children:"Copy"}),l]})]})]})},a.id)})]})}function m({label:e,value:t,color:a}){return(0,s.jsxs)("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs font-mono ${c[a]}`,children:[(0,s.jsxs)("span",{className:"text-text-muted/70 font-sans text-[10px]",children:[e,":"]}),t]})}},74936:(e,t,a)=>{Promise.resolve().then(a.bind(a,57965))}},e=>{e.O(0,[3885,7523,7236,4385,736,2147,3204,7358],()=>e(e.s=74936)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3528],{57965:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>m});var s=a(15102),n=a(82030),r=a(10736),l=a(21577),o=a(49526);let i=(0,a(88511).default)(()=>a.e(9752).then(a.bind(a,29752)).then(e=>(e.loader.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.57.0/min/vs"}}),e.default)),{loadableGenerated:{webpack:()=>[29752]},ssr:!1});function d(e,t){return fetch("/api/translator/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e,content:t})}).catch(()=>{})}let c={blue:"bg-blue-500/10 text-blue-500",orange:"bg-orange-500/10 text-orange-500",green:"bg-green-500/10 text-green-500",purple:"bg-purple-500/10 text-purple-500"},p=[{id:1,label:"Client Request",file:"1_req_client.json",lang:"json",desc:"Raw request from client"},{id:2,label:"Source Body",file:"2_req_source.json",lang:"json",desc:"After initial conversion"},{id:3,label:"OpenAI Intermediate",file:"3_req_openai.json",lang:"json",desc:"source → openai"},{id:4,label:"Target Request",file:"4_req_target.json",lang:"json",desc:"openai → target + URL + headers"},{id:5,label:"Provider Response",file:"5_res_provider.txt",lang:"text",desc:"Raw SSE from provider"},{id:6,label:"OpenAI Response",file:"6_res_openai.txt",lang:"text",desc:"target → openai (response)"},{id:7,label:"Client Response",file:"7_res_client.txt",lang:"text",desc:"Final response to client"}],x={minimap:{enabled:!1},fontSize:12,lineNumbers:"on",scrollBeyondLastLine:!1,wordWrap:"on",automaticLayout:!0};function m(){let{isDark:e}=(0,o.D)(),[t,a]=(0,n.useState)({}),[c,m]=(0,n.useState)({1:!0}),[f,h]=(0,n.useState)({}),[g,j]=(0,n.useState)(null),y=(e,t)=>h(a=>({...a,[e]:t})),b=(e,t)=>a(a=>({...a,[e]:t})),v=e=>m(t=>{let a={};return p.forEach(e=>{a[e.id]=!1}),a[e]=!0,a}),_=async e=>{let t=p.find(t=>t.id===e);y(`load-${e}`,!0);try{let a=await fetch(`/api/translator/load?file=${t.file}`),s=await a.json();s.success?(b(e,s.content),1===e&&await N(s.content)):alert(s.error||"File not found")}catch(e){alert(e.message)}y(`load-${e}`,!1)},N=async e=>{try{let t="string"==typeof e?JSON.parse(e):e,a=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:1,body:t})}),s=await a.json();s.success&&j(s.result)}catch{}},w=async()=>{y("toOpenAI",!0);try{let e=t[1],a=JSON.parse(e);d("1_req_client.json",e),d("2_req_source.json",JSON.stringify({timestamp:new Date().toISOString(),headers:{},body:a.body||a},null,2));let s=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:2,body:a})}),n=await s.json();if(!n.success)return void alert(n.error);let r=JSON.stringify(n.result.body,null,2);b(3,r),v(3)}catch(e){alert(e.message)}y("toOpenAI",!1)},S=async()=>{y("toTarget",!0);try{let e=t[3],a=JSON.parse(e);d("3_req_openai.json",e);let s=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:3,body:{...a,provider:g?.provider,model:g?.model}})}),n=await s.json();if(!n.success)return void alert(n.error);let r={...n.result,provider:g?.provider,model:g?.model};b(4,JSON.stringify(r,null,2)),v(4)}catch(e){alert(e.message)}y("toTarget",!1)},O=async()=>{y("send",!0);try{let e=t[4],a=JSON.parse(e);d("4_req_target.json",e);let s=a.provider||g?.provider,n=a.model||g?.model;if(!s||!n)return void alert("Missing provider or model. Please run step 1 first to detect them.");let r=await fetch("/api/translator/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:s,model:n,body:a.body||a})});if(!r.ok){let e=await r.json().catch(()=>({error:r.statusText}));alert(e.error||"Send failed");return}let l=r.body.getReader(),o=new TextDecoder,i="";for(;;){let{done:e,value:t}=await l.read();if(e)break;i+=o.decode(t,{stream:!0})}b(5,i),v(5),await fetch("/api/translator/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:"5_res_provider.txt",content:i})})}catch(e){alert(e.message)}finally{y("send",!1)}},{copy:C}=(0,l.C)(),T=async e=>{t[e]&&C(t[e],`translator-step-${e}`)};return(0,s.jsxs)("div",{className:"p-8 space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Translator Debug"}),(0,s.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Replay request flow — matches log files"})]}),g&&(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap justify-end",children:[(0,s.jsx)(u,{label:"src",value:g.sourceFormat,color:"blue"}),(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,s.jsx)(u,{label:"dst",value:g.targetFormat,color:"orange"}),(0,s.jsx)(u,{label:"provider",value:g.provider,color:"green"}),(0,s.jsx)(u,{label:"model",value:g.model,color:"purple"})]})]}),p.map(a=>{var n;let l=1===(n=a.id)?(0,s.jsx)(r.Button,{size:"sm",icon:"arrow_forward",loading:f.toOpenAI,onClick:w,children:"→ OpenAI"}):3===n?(0,s.jsx)(r.Button,{size:"sm",icon:"arrow_forward",loading:f.toTarget,onClick:S,children:"→ Target"}):4===n?(0,s.jsx)(r.Button,{size:"sm",icon:"send",loading:f.send,onClick:O,children:"Send"}):null,o=!!c[a.id],d=t[a.id]||"";return(0,s.jsx)(r.Card,{children:(0,s.jsxs)("div",{className:"p-4 space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>{let e;return e=a.id,m(t=>({...t,[e]:!t[e]}))},className:"flex items-center gap-2 flex-1 text-left group",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[20px] text-text-muted group-hover:text-primary transition-colors",children:o?"expand_more":"chevron_right"}),(0,s.jsx)("span",{className:"text-xs font-mono text-text-muted/60 w-4",children:a.id}),(0,s.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:a.label}),(0,s.jsx)("span",{className:"text-xs text-text-muted/60 font-mono",children:a.file}),(0,s.jsx)("span",{className:"min-w-[72px] text-xs text-green-500",children:d?`(${d.length} chars)`:""})]}),!o&&(0,s.jsxs)("div",{className:"flex gap-1 shrink-0",children:[(0,s.jsx)(r.Button,{size:"sm",variant:"ghost",icon:"folder_open",loading:f[`load-${a.id}`],onClick:()=>_(a.id)}),l]})]}),o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"border border-border rounded-lg overflow-hidden",children:(0,s.jsx)(i,{height:"400px",defaultLanguage:"text"===a.lang?"plaintext":"json",value:d,onChange:e=>{b(a.id,e||""),1===a.id&&N(e||"")},theme:e?"vs-dark":"light",options:x})}),(0,s.jsxs)("div",{className:"flex gap-2 flex-wrap",children:[(0,s.jsx)(r.Button,{size:"sm",variant:"outline",icon:"folder_open",loading:f[`load-${a.id}`],onClick:()=>_(a.id),children:"Load"}),(0,s.jsx)(r.Button,{size:"sm",variant:"outline",icon:"data_object",onClick:()=>(e=>{try{let a=JSON.parse(t[e]);b(e,JSON.stringify(a,null,2))}catch{}})(a.id),children:"Format"}),(0,s.jsx)(r.Button,{size:"sm",variant:"outline",icon:"content_copy",onClick:()=>T(a.id),children:"Copy"}),l]})]})]})},a.id)})]})}function u({label:e,value:t,color:a}){return(0,s.jsxs)("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs font-mono ${c[a]}`,children:[(0,s.jsxs)("span",{className:"text-text-muted/70 font-sans text-[10px]",children:[e,":"]}),t]})}},74936:(e,t,a)=>{Promise.resolve().then(a.bind(a,57965))}},e=>{e.O(0,[3885,7523,7236,4385,736,2147,3204,7358],()=>e(e.s=74936)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5293,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5293,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5293,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5293,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5293,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5293,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,174,204,335,342,383,387,501,516,521,543,552,649,675,710,747,748,782,907,931,948,982,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1451,1512,1566,1587,1626,1666,1674,1697,1704,1860,1898,1907,1910,1940,1946,1949,2121,2198,2284,2296,2297,2366,2536,2772,2785,2797,2802,2845,2919,2922,3025,3038,3079,3093,3152,3397,3472,3549,3562,3568,3584,3648,3883,3888,4010,4061,4093,4242,4245,4286,4310,4422,4444,4527,4612,4648,4656,4674,4761,4766,4896,4993,5018,5107,5177,5180,5211,5226,5293,5466,5637,5685,5693,5745,5922,6089,6091,6102,6106,6107,6121,6260,6268,6319,6463,6478,6479,6529,6580,6594,6740,6743,6819,6919,6988,6996,7099,7131,7158,7231,7241,7311,7329,7429,7445,7473,7508,7520,7758,7824,7851,7852,8026,8141,8167,8207,8246,8264,8321,8453,8489,8573,8648,8736,8791,8814,8835,8870,8879,8948,8975,9027,9033,9036,9056,9069,9079,9088,9141,9199,9321,9426,9427,9461,9606,9678,9709,9721],{63126:()=>{}},_=>{_.O(0,[2147,3204,7358],()=>_(_.s=63126)),_N_E=_.O()}]);