@jheavenknows/bluerouter 5.0.86 → 5.0.87

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 (1705) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +27 -25
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +3 -3
  5. package/app/.next-cli-build/required-server-files.json +1 -1
  6. package/app/.next-cli-build/routes-manifest.json +12 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js +2 -2
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page.js.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js +3 -3
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js.nft.json +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page.js +2 -2
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page.js.nft.json +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovider/page_client-reference-manifest.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page.js +2 -0
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page.js.nft.json +1 -0
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalcloudprovidermonitor/page_client-reference-manifest.js +1 -0
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page.js +2 -2
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/personalquota/page_client-reference-manifest.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page.js +2 -2
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page_client-reference-manifest.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page.js +2 -2
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page_client-reference-manifest.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  82. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  83. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  85. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  86. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  88. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  89. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  91. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  92. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  94. package/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  95. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  97. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  98. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  99. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  100. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  101. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  102. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  103. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  104. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  105. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  106. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  108. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  109. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  110. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  111. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  112. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +6 -6
  113. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  114. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  115. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  116. package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/login/route.js +2 -2
  121. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  123. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/branding/[asset]/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/branding/[asset]/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/branding/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/branding/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/branding/upload/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/branding/upload/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
  139. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  141. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  151. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  153. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  157. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  159. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  161. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  163. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  165. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  169. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  171. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  173. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  175. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  177. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/cli-tools/qwen-settings/route.js +2 -2
  179. package/app/.next-cli-build/server/app/api/cli-tools/qwen-settings/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +2 -2
  181. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js +2 -2
  185. package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/dashboard/combos/route.js +1 -1
  187. package/app/.next-cli-build/server/app/api/dashboard/combos/route.js.nft.json +1 -1
  188. package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js +1 -1
  189. package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js.nft.json +1 -1
  190. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js +1 -1
  191. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js.nft.json +1 -1
  192. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js.nft.json +1 -1
  194. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/dashboard/token-saver/route.js +2 -2
  197. package/app/.next-cli-build/server/app/api/dashboard/token-saver/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/keys/route.js +2 -2
  207. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  210. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  212. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +5 -5
  213. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  214. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  216. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +2 -2
  223. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  241. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  256. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/api-key-models/route.js +1 -1
  257. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/api-key-models/route.js.nft.json +1 -1
  258. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/import-models/route.js +1 -1
  259. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/import-models/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/route.js +1 -1
  263. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/route.js.nft.json +1 -1
  264. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/usage/route.js +1 -1
  265. package/app/.next-cli-build/server/app/api/personal-cloud-providers/[id]/usage/route.js.nft.json +1 -1
  266. package/app/.next-cli-build/server/app/api/personal-cloud-providers/client/route.js +1 -1
  267. package/app/.next-cli-build/server/app/api/personal-cloud-providers/client/route.js.nft.json +1 -1
  268. package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route.js +1 -0
  269. package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route.js.nft.json +1 -0
  270. package/app/.next-cli-build/server/app/api/personal-cloud-providers/monitor/route_client-reference-manifest.js +1 -0
  271. package/app/.next-cli-build/server/app/api/personal-cloud-providers/permissions/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/personal-cloud-providers/permissions/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/personal-cloud-providers/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/personal-cloud-providers/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/personal-cloud-providers/routing/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/personal-cloud-providers/routing/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/pricing/recalculate/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/pricing/recalculate/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  280. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/provider-health/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/provider-health/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  314. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  316. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/settings/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  336. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  358. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js +2 -2
  362. package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  378. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  404. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  405. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  413. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  414. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  415. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  416. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  417. package/app/.next-cli-build/server/app/api/version/restart/route.js +1 -1
  418. package/app/.next-cli-build/server/app/api/version/restart/route.js.nft.json +1 -1
  419. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  420. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  421. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  422. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  423. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  424. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  425. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  426. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  427. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  428. package/app/.next-cli-build/server/app/callback.html +1 -1
  429. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  430. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  431. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  432. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +6 -6
  433. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  434. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  435. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  436. package/app/.next-cli-build/server/app/dashboard/analytics.html +1 -1
  437. package/app/.next-cli-build/server/app/dashboard/analytics.rsc +7 -7
  438. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics/__PAGE__.segment.rsc +1 -1
  439. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics.segment.rsc +1 -1
  440. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  441. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  442. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_full.segment.rsc +7 -7
  443. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_head.segment.rsc +1 -1
  444. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_index.segment.rsc +6 -6
  445. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_tree.segment.rsc +2 -2
  446. package/app/.next-cli-build/server/app/dashboard/api-keys.html +1 -1
  447. package/app/.next-cli-build/server/app/dashboard/api-keys.rsc +8 -8
  448. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys/__PAGE__.segment.rsc +2 -2
  449. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys.segment.rsc +1 -1
  450. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  451. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  452. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_full.segment.rsc +8 -8
  453. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_head.segment.rsc +1 -1
  454. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_index.segment.rsc +6 -6
  455. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_tree.segment.rsc +2 -2
  456. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  457. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
  458. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  459. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  460. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  461. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  462. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  463. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  464. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +6 -6
  465. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  466. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  467. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +9 -9
  468. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  469. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  470. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  471. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  472. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +9 -9
  473. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  474. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +6 -6
  475. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  476. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
  478. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  480. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  482. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  483. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  484. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +6 -6
  485. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  486. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  487. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +9 -9
  488. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  490. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  492. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +9 -9
  493. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  494. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +6 -6
  495. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  496. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  497. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
  498. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  500. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  501. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  502. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  503. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  504. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  505. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +6 -6
  506. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  507. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
  509. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  510. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  511. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  512. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  513. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  514. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  515. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +6 -6
  516. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  517. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  518. package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
  519. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +1 -1
  520. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  521. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  522. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  523. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
  524. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  525. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +6 -6
  526. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  527. package/app/.next-cli-build/server/app/dashboard/prompt-logs.html +1 -1
  528. package/app/.next-cli-build/server/app/dashboard/prompt-logs.rsc +7 -7
  529. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs/__PAGE__.segment.rsc +1 -1
  530. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs.segment.rsc +1 -1
  531. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  532. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  533. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_full.segment.rsc +7 -7
  534. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_head.segment.rsc +1 -1
  535. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_index.segment.rsc +6 -6
  536. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_tree.segment.rsc +2 -2
  537. package/app/.next-cli-build/server/app/dashboard/provider-health.html +1 -1
  538. package/app/.next-cli-build/server/app/dashboard/provider-health.rsc +7 -7
  539. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health/__PAGE__.segment.rsc +1 -1
  540. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health.segment.rsc +1 -1
  541. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  542. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  543. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_full.segment.rsc +7 -7
  544. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_head.segment.rsc +1 -1
  545. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_index.segment.rsc +6 -6
  546. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_tree.segment.rsc +2 -2
  547. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  548. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
  549. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  550. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  551. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  552. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  553. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  554. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  555. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  556. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +6 -6
  557. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  558. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  559. package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
  560. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  561. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  562. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  563. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  564. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  565. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  566. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +6 -6
  567. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  568. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  569. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
  570. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  571. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  572. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  573. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  574. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  575. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  576. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +6 -6
  577. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  578. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  579. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  580. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  581. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  582. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  583. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  584. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  585. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  586. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +6 -6
  587. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  588. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  589. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  590. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  591. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  592. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  593. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  594. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  595. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +6 -6
  596. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  597. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  598. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  599. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  600. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  601. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  602. package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
  603. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  604. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  605. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  606. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  607. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  608. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  609. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +6 -6
  610. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  611. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  612. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
  613. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +1 -1
  614. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  615. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  616. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  617. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
  618. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  619. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +6 -6
  620. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  621. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  622. package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
  623. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  624. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  625. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  626. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  627. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  628. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  629. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +6 -6
  630. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  631. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  632. package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
  633. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  634. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  635. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  636. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  637. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  638. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  639. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +6 -6
  640. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  641. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  642. package/app/.next-cli-build/server/app/dashboard.rsc +9 -9
  643. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  644. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  645. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  646. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +9 -9
  647. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  648. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +6 -6
  649. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  650. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  651. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  652. package/app/.next-cli-build/server/app/index.html +1 -1
  653. package/app/.next-cli-build/server/app/index.rsc +6 -6
  654. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  655. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  656. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  657. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +6 -6
  658. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  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 +6 -6
  664. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
  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 +6 -6
  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 +7 -7
  675. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  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 +6 -6
  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 +2 -2
  682. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  683. package/app/.next-cli-build/server/app/page.js +2 -2
  684. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  685. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  686. package/app/.next-cli-build/server/app-paths-manifest.json +27 -25
  687. package/app/.next-cli-build/server/chunks/2338.js +14 -14
  688. package/app/.next-cli-build/server/chunks/2650.js +1 -1
  689. package/app/.next-cli-build/server/chunks/3110.js +1 -1
  690. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  691. package/app/.next-cli-build/server/chunks/4790.js +2 -2
  692. package/app/.next-cli-build/server/chunks/4803.js +1 -1
  693. package/app/.next-cli-build/server/chunks/5852.js +1 -1
  694. package/app/.next-cli-build/server/chunks/6328.js +1 -1
  695. package/app/.next-cli-build/server/chunks/700.js +2 -2
  696. package/app/.next-cli-build/server/chunks/7774.js +15 -15
  697. package/app/.next-cli-build/server/chunks/7965.js +1 -1
  698. package/app/.next-cli-build/server/chunks/8255.js +1 -1
  699. package/app/.next-cli-build/server/chunks/8352.js +2 -2
  700. package/app/.next-cli-build/server/chunks/8520.js +1 -1
  701. package/app/.next-cli-build/server/chunks/8581.js +64 -0
  702. package/app/.next-cli-build/server/chunks/8895.js +1 -1
  703. package/app/.next-cli-build/server/chunks/9434.js +1 -1
  704. package/app/.next-cli-build/server/instrumentation.js +1 -1
  705. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  706. package/app/.next-cli-build/server/middleware.js +2 -2
  707. package/app/.next-cli-build/server/pages/404.html +1 -1
  708. package/app/.next-cli-build/server/pages/500.html +1 -1
  709. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  710. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  711. package/app/.next-cli-build/static/GB6pMdAIstNCFUAF9jJxq/_buildManifest.js +1 -0
  712. package/app/.next-cli-build/static/chunks/1a258343-bc0b514c079d8898.js +1 -0
  713. package/app/.next-cli-build/static/chunks/2714-83a368a92f8c292c.js +64 -0
  714. package/app/.next-cli-build/static/chunks/{3794-c66b3d8325973459.js → 3794-e569667691edc8f7.js} +1 -1
  715. package/app/.next-cli-build/static/chunks/{5263-049925cf032bb4a1.js → 5263-17798e99cdafe50b.js} +1 -1
  716. package/app/.next-cli-build/static/chunks/5497-c2d72bb72949ba15.js +10 -0
  717. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/api-keys/{page-51c6597458141664.js → page-ab5d688db6e32f62.js} +1 -1
  718. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-0a77cb24c31eab31.js → page-2558d7355357c608.js} +1 -1
  719. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-3c45d7965e695b4e.js → page-c0231e9486c2237d.js} +1 -1
  720. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-2073cc7c324f2927.js → page-b2e2b7765d39da7a.js} +1 -1
  721. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/{page-88776e0540bc6caa.js → page-a30dfa93b2d6ac90.js} +1 -1
  722. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-8258e0c2b7d00532.js → page-03f35e824699a220.js} +1 -1
  723. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/{page-50e2d958c7514352.js → page-d03884f048a5a7c8.js} +1 -1
  724. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-d4eef04e38a1c920.js → page-89e3dfd1a0bfec87.js} +1 -1
  725. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-4a342a849f926efb.js → page-3bc7d22940bf015c.js} +1 -1
  726. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-81241b2ec53c6dac.js → page-224e01693a3cfaf1.js} +1 -1
  727. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-b99de5582f2f7f87.js → page-905212b2d7ed648e.js} +1 -1
  728. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-7955be4ef5b827d6.js → page-6de007eb2a59ca30.js} +1 -1
  729. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/{page-50e2d958c7514352.js → page-d03884f048a5a7c8.js} +1 -1
  730. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/personalcloudprovider/{page-e3b94266bfc673d3.js → page-f9f3417fa83792d5.js} +1 -1
  731. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/personalcloudprovidermonitor/page-5ae6e44af9624f4e.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-47c2dd8f75544632.js → page-7e3819b380bd747e.js} +1 -1
  733. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-7c978d638cf25edd.js → page-0da77a157acefc7c.js} +1 -1
  734. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-73e4562a8248af00.js → page-7b69e5101ad4864f.js} +1 -1
  735. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-ab3b656faf565d92.js → page-80e7e47c3dfa4070.js} +1 -1
  736. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-53d81795dbcc226d.js → page-fa9e9680d235e2d8.js} +1 -1
  737. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-ba5ad266df727471.js → page-33c6b65a7848eb94.js} +1 -1
  738. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-fc7b93e145b1ff16.js → page-1002addd547b6453.js} +1 -1
  739. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-f02c40e946c83bc6.js → page-c734cfa89fa60ee8.js} +1 -1
  740. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-ba91fa40d4a5ecd4.js → layout-5247f67b1fd67c5b.js} +1 -1
  741. package/app/.next-cli-build/static/chunks/app/_global-error/page-ba9a9c287a164b79.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-ba9a9c287a164b79.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-ba9a9c287a164b79.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-ba9a9c287a164b79.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-ba9a9c287a164b79.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-ba9a9c287a164b79.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-ba9a9c287a164b79.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-ba9a9c287a164b79.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-ba9a9c287a164b79.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-ba9a9c287a164b79.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/branding/route-ba9a9c287a164b79.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-ba9a9c287a164b79.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-ba9a9c287a164b79.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-ba9a9c287a164b79.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-ba9a9c287a164b79.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-ba9a9c287a164b79.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-ba9a9c287a164b79.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-ba9a9c287a164b79.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-ba9a9c287a164b79.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-ba9a9c287a164b79.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-ba9a9c287a164b79.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-ba9a9c287a164b79.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-ba9a9c287a164b79.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-ba9a9c287a164b79.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-ba9a9c287a164b79.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-ba9a9c287a164b79.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-ba9a9c287a164b79.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-ba9a9c287a164b79.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-ba9a9c287a164b79.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-ba9a9c287a164b79.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-ba9a9c287a164b79.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-ba9a9c287a164b79.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-ba9a9c287a164b79.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-ba9a9c287a164b79.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/combos/route-ba9a9c287a164b79.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-ba9a9c287a164b79.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-ba9a9c287a164b79.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-ba9a9c287a164b79.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-ba9a9c287a164b79.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-ba9a9c287a164b79.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-ba9a9c287a164b79.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-ba9a9c287a164b79.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/health/route-ba9a9c287a164b79.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/init/route-ba9a9c287a164b79.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-ba9a9c287a164b79.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-ba9a9c287a164b79.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/keys/route-ba9a9c287a164b79.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/locale/route-ba9a9c287a164b79.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-ba9a9c287a164b79.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-ba9a9c287a164b79.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-ba9a9c287a164b79.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-ba9a9c287a164b79.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-ba9a9c287a164b79.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-ba9a9c287a164b79.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-ba9a9c287a164b79.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-ba9a9c287a164b79.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-ba9a9c287a164b79.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-ba9a9c287a164b79.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-ba9a9c287a164b79.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/models/route-ba9a9c287a164b79.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/models/test/route-ba9a9c287a164b79.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-ba9a9c287a164b79.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-ba9a9c287a164b79.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-ba9a9c287a164b79.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-ba9a9c287a164b79.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-ba9a9c287a164b79.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-ba9a9c287a164b79.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-ba9a9c287a164b79.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-ba9a9c287a164b79.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-ba9a9c287a164b79.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-ba9a9c287a164b79.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-ba9a9c287a164b79.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-ba9a9c287a164b79.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-ba9a9c287a164b79.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-ba9a9c287a164b79.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-ba9a9c287a164b79.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-ba9a9c287a164b79.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/monitor/route-ba9a9c287a164b79.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-ba9a9c287a164b79.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-ba9a9c287a164b79.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-ba9a9c287a164b79.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-ba9a9c287a164b79.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/pricing/route-ba9a9c287a164b79.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/provider-health/route-ba9a9c287a164b79.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-ba9a9c287a164b79.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-ba9a9c287a164b79.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-ba9a9c287a164b79.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-ba9a9c287a164b79.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-ba9a9c287a164b79.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-ba9a9c287a164b79.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-ba9a9c287a164b79.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-ba9a9c287a164b79.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-ba9a9c287a164b79.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/providers/route-ba9a9c287a164b79.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-ba9a9c287a164b79.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-ba9a9c287a164b79.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-ba9a9c287a164b79.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-ba9a9c287a164b79.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-ba9a9c287a164b79.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-ba9a9c287a164b79.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-ba9a9c287a164b79.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-ba9a9c287a164b79.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-ba9a9c287a164b79.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-ba9a9c287a164b79.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-ba9a9c287a164b79.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-ba9a9c287a164b79.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/settings/route-ba9a9c287a164b79.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-ba9a9c287a164b79.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/tags/route-ba9a9c287a164b79.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-ba9a9c287a164b79.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-ba9a9c287a164b79.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-ba9a9c287a164b79.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-ba9a9c287a164b79.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-ba9a9c287a164b79.js +1 -0
  855. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-ba9a9c287a164b79.js +1 -0
  856. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-ba9a9c287a164b79.js +1 -0
  857. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-ba9a9c287a164b79.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-ba9a9c287a164b79.js +1 -0
  859. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-ba9a9c287a164b79.js +1 -0
  860. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-ba9a9c287a164b79.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-ba9a9c287a164b79.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-ba9a9c287a164b79.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-ba9a9c287a164b79.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-ba9a9c287a164b79.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-ba9a9c287a164b79.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-ba9a9c287a164b79.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-ba9a9c287a164b79.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-ba9a9c287a164b79.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-ba9a9c287a164b79.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-ba9a9c287a164b79.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-ba9a9c287a164b79.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-ba9a9c287a164b79.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-ba9a9c287a164b79.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-ba9a9c287a164b79.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-ba9a9c287a164b79.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-ba9a9c287a164b79.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-ba9a9c287a164b79.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-ba9a9c287a164b79.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-ba9a9c287a164b79.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-ba9a9c287a164b79.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-ba9a9c287a164b79.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-ba9a9c287a164b79.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-ba9a9c287a164b79.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-ba9a9c287a164b79.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-ba9a9c287a164b79.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-ba9a9c287a164b79.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/v1/route-ba9a9c287a164b79.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-ba9a9c287a164b79.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-ba9a9c287a164b79.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-ba9a9c287a164b79.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-ba9a9c287a164b79.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/version/restart/route-ba9a9c287a164b79.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/version/route-ba9a9c287a164b79.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-ba9a9c287a164b79.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/version/update/route-ba9a9c287a164b79.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-ba9a9c287a164b79.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/page-ba9a9c287a164b79.js +1 -0
  898. package/app/.next-cli-build/static/chunks/{main-52cce31a84751ecc.js → main-eb1b86e4183e86c5.js} +1 -1
  899. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-ba9a9c287a164b79.js +1 -0
  900. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-ba9a9c287a164b79.js +1 -0
  901. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-ba9a9c287a164b79.js +1 -0
  902. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-ba9a9c287a164b79.js +1 -0
  903. package/app/.next-cli-build/static/css/235bf5022a58e050.css +1 -0
  904. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.0.80-to-5.0.81-5.0.81-20260702-193807 → upgrade-5.0.54-to-5.0.55-5.0.55-20260701-132037}/data.sqlite +0 -0
  905. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.0.81-to-5.0.82-5.0.82-20260702-194133 → upgrade-5.0.55-to-5.0.56-5.0.56-20260701-132316}/data.sqlite +0 -0
  906. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.0.82-to-5.0.83-5.0.83-20260702-203556 → upgrade-5.0.56-to-5.0.57-5.0.57-20260701-134156}/data.sqlite +0 -0
  907. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-5.0.83-to-5.0.84-5.0.84-20260705-084618 → upgrade-5.0.57-to-5.0.58-5.0.58-20260701-140042}/data.sqlite +0 -0
  908. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite +0 -0
  909. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-shm +0 -0
  910. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-wal +0 -0
  911. package/app/cli/.build-home/AppData/Roaming/bluerouter/jwt-secret +1 -1
  912. package/app/cli/.build-home/AppData/Roaming/bluerouter/machine-id +1 -1
  913. package/app/cli/.build-home/AppData/Roaming/nextjs-nodejs/Config/config.json +3 -3
  914. package/app/node_modules/@next/env/package.json +8 -7
  915. package/app/node_modules/baseline-browser-mapping/dist/index.cjs +1 -1
  916. package/app/node_modules/baseline-browser-mapping/package.json +3 -3
  917. package/app/node_modules/caniuse-lite/data/agents.js +1 -1
  918. package/app/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  919. package/app/node_modules/caniuse-lite/data/features/aac.js +1 -1
  920. package/app/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  921. package/app/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  922. package/app/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  923. package/app/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  924. package/app/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  925. package/app/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  926. package/app/node_modules/caniuse-lite/data/features/apng.js +1 -1
  927. package/app/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  928. package/app/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  929. package/app/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  930. package/app/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  931. package/app/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  932. package/app/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  933. package/app/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  934. package/app/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  935. package/app/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  936. package/app/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  937. package/app/node_modules/caniuse-lite/data/features/audio.js +1 -1
  938. package/app/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  939. package/app/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  940. package/app/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  941. package/app/node_modules/caniuse-lite/data/features/av1.js +1 -1
  942. package/app/node_modules/caniuse-lite/data/features/avif.js +1 -1
  943. package/app/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  944. package/app/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  945. package/app/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  946. package/app/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  947. package/app/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  948. package/app/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  949. package/app/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  950. package/app/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  951. package/app/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  952. package/app/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  953. package/app/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  954. package/app/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  955. package/app/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  956. package/app/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  957. package/app/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  958. package/app/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  959. package/app/node_modules/caniuse-lite/data/features/calc.js +1 -1
  960. package/app/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  961. package/app/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  962. package/app/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  963. package/app/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  964. package/app/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  965. package/app/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  966. package/app/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  967. package/app/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  968. package/app/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  969. package/app/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  970. package/app/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  971. package/app/node_modules/caniuse-lite/data/features/colr.js +1 -1
  972. package/app/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  973. package/app/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  974. package/app/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  975. package/app/node_modules/caniuse-lite/data/features/const.js +1 -1
  976. package/app/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  977. package/app/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  978. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  979. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  980. package/app/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  981. package/app/node_modules/caniuse-lite/data/features/cors.js +1 -1
  982. package/app/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  983. package/app/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  984. package/app/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  985. package/app/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  986. package/app/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  987. package/app/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  988. package/app/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  989. package/app/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  990. package/app/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  991. package/app/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  992. package/app/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  993. package/app/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  994. package/app/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  995. package/app/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  996. package/app/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  997. package/app/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  998. package/app/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  999. package/app/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  1000. package/app/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  1001. package/app/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  1002. package/app/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  1003. package/app/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  1004. package/app/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  1005. package/app/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  1006. package/app/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  1007. package/app/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  1008. package/app/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  1009. package/app/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  1010. package/app/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  1011. package/app/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  1012. package/app/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  1013. package/app/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  1014. package/app/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  1015. package/app/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  1016. package/app/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  1017. package/app/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  1018. package/app/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  1019. package/app/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  1020. package/app/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  1021. package/app/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  1022. package/app/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  1023. package/app/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  1024. package/app/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  1025. package/app/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  1026. package/app/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  1027. package/app/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  1028. package/app/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  1029. package/app/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  1030. package/app/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  1031. package/app/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  1032. package/app/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  1033. package/app/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  1034. package/app/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  1035. package/app/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  1036. package/app/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  1037. package/app/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  1038. package/app/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  1039. package/app/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  1040. package/app/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  1041. package/app/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  1042. package/app/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  1043. package/app/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  1044. package/app/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  1045. package/app/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  1046. package/app/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  1047. package/app/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  1048. package/app/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  1049. package/app/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  1050. package/app/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  1051. package/app/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  1052. package/app/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  1053. package/app/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  1054. package/app/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  1055. package/app/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  1056. package/app/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  1057. package/app/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  1058. package/app/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  1059. package/app/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  1060. package/app/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  1061. package/app/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  1062. package/app/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  1063. package/app/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  1064. package/app/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  1065. package/app/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  1066. package/app/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  1067. package/app/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  1068. package/app/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  1069. package/app/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  1070. package/app/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  1071. package/app/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  1072. package/app/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  1073. package/app/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  1074. package/app/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  1075. package/app/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  1076. package/app/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  1077. package/app/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  1078. package/app/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  1079. package/app/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  1080. package/app/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  1081. package/app/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  1082. package/app/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  1083. package/app/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  1084. package/app/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  1085. package/app/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  1086. package/app/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  1087. package/app/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  1088. package/app/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  1089. package/app/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  1090. package/app/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  1091. package/app/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  1092. package/app/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  1093. package/app/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  1094. package/app/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  1095. package/app/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  1096. package/app/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  1097. package/app/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  1098. package/app/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  1099. package/app/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  1100. package/app/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  1101. package/app/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  1102. package/app/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  1103. package/app/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  1104. package/app/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  1105. package/app/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  1106. package/app/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  1107. package/app/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  1108. package/app/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  1109. package/app/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  1110. package/app/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  1111. package/app/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  1112. package/app/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  1113. package/app/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  1114. package/app/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  1115. package/app/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  1116. package/app/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  1117. package/app/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  1118. package/app/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  1119. package/app/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  1120. package/app/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  1121. package/app/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  1122. package/app/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  1123. package/app/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  1124. package/app/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  1125. package/app/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  1126. package/app/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  1127. package/app/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  1128. package/app/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  1129. package/app/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  1130. package/app/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  1131. package/app/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  1132. package/app/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  1133. package/app/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  1134. package/app/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  1135. package/app/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  1136. package/app/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  1137. package/app/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  1138. package/app/node_modules/caniuse-lite/data/features/details.js +1 -1
  1139. package/app/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  1140. package/app/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  1141. package/app/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  1142. package/app/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  1143. package/app/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  1144. package/app/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  1145. package/app/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  1146. package/app/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  1147. package/app/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  1148. package/app/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  1149. package/app/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  1150. package/app/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  1151. package/app/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  1152. package/app/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  1153. package/app/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  1154. package/app/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  1155. package/app/node_modules/caniuse-lite/data/features/download.js +1 -1
  1156. package/app/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  1157. package/app/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  1158. package/app/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  1159. package/app/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  1160. package/app/node_modules/caniuse-lite/data/features/eme.js +1 -1
  1161. package/app/node_modules/caniuse-lite/data/features/eot.js +1 -1
  1162. package/app/node_modules/caniuse-lite/data/features/es5.js +1 -1
  1163. package/app/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  1164. package/app/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  1165. package/app/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  1166. package/app/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  1167. package/app/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  1168. package/app/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  1169. package/app/node_modules/caniuse-lite/data/features/es6.js +1 -1
  1170. package/app/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  1171. package/app/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  1172. package/app/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  1173. package/app/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  1174. package/app/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  1175. package/app/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  1176. package/app/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  1177. package/app/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  1178. package/app/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  1179. package/app/node_modules/caniuse-lite/data/features/flac.js +1 -1
  1180. package/app/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  1181. package/app/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  1182. package/app/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  1183. package/app/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  1184. package/app/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  1185. package/app/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  1186. package/app/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  1187. package/app/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  1188. package/app/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  1189. package/app/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  1190. package/app/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  1191. package/app/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  1192. package/app/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  1193. package/app/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  1194. package/app/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  1195. package/app/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  1196. package/app/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  1197. package/app/node_modules/caniuse-lite/data/features/forms.js +1 -1
  1198. package/app/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  1199. package/app/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  1200. package/app/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  1201. package/app/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  1202. package/app/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  1203. package/app/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  1204. package/app/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  1205. package/app/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  1206. package/app/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  1207. package/app/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  1208. package/app/node_modules/caniuse-lite/data/features/heif.js +1 -1
  1209. package/app/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  1210. package/app/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  1211. package/app/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  1212. package/app/node_modules/caniuse-lite/data/features/history.js +1 -1
  1213. package/app/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  1214. package/app/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  1215. package/app/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  1216. package/app/node_modules/caniuse-lite/data/features/http2.js +1 -1
  1217. package/app/node_modules/caniuse-lite/data/features/http3.js +1 -1
  1218. package/app/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  1219. package/app/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  1220. package/app/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  1221. package/app/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  1222. package/app/node_modules/caniuse-lite/data/features/ime.js +1 -1
  1223. package/app/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  1224. package/app/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  1225. package/app/node_modules/caniuse-lite/data/features/imports.js +1 -1
  1226. package/app/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  1227. package/app/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  1228. package/app/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  1229. package/app/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  1230. package/app/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  1231. package/app/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  1232. package/app/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  1233. package/app/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  1234. package/app/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  1235. package/app/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  1236. package/app/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  1237. package/app/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  1238. package/app/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  1239. package/app/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  1240. package/app/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  1241. package/app/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  1242. package/app/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  1243. package/app/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  1244. package/app/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  1245. package/app/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  1246. package/app/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  1247. package/app/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  1248. package/app/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  1249. package/app/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  1250. package/app/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  1251. package/app/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  1252. package/app/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  1253. package/app/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  1254. package/app/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  1255. package/app/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  1256. package/app/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  1257. package/app/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  1258. package/app/node_modules/caniuse-lite/data/features/json.js +1 -1
  1259. package/app/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  1260. package/app/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  1261. package/app/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  1262. package/app/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  1263. package/app/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  1264. package/app/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  1265. package/app/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  1266. package/app/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  1267. package/app/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  1268. package/app/node_modules/caniuse-lite/data/features/let.js +1 -1
  1269. package/app/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  1270. package/app/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  1271. package/app/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  1272. package/app/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  1273. package/app/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  1274. package/app/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  1275. package/app/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  1276. package/app/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  1277. package/app/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  1278. package/app/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  1279. package/app/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  1280. package/app/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  1281. package/app/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  1282. package/app/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  1283. package/app/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  1284. package/app/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  1285. package/app/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  1286. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  1287. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  1288. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  1289. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  1290. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  1291. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  1292. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  1293. package/app/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  1294. package/app/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  1295. package/app/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  1296. package/app/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  1297. package/app/node_modules/caniuse-lite/data/features/menu.js +1 -1
  1298. package/app/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  1299. package/app/node_modules/caniuse-lite/data/features/meter.js +1 -1
  1300. package/app/node_modules/caniuse-lite/data/features/midi.js +1 -1
  1301. package/app/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  1302. package/app/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  1303. package/app/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  1304. package/app/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  1305. package/app/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  1306. package/app/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  1307. package/app/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  1308. package/app/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  1309. package/app/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  1310. package/app/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  1311. package/app/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  1312. package/app/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  1313. package/app/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  1314. package/app/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  1315. package/app/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  1316. package/app/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  1317. package/app/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  1318. package/app/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  1319. package/app/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  1320. package/app/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  1321. package/app/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  1322. package/app/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  1323. package/app/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  1324. package/app/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  1325. package/app/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  1326. package/app/node_modules/caniuse-lite/data/features/opus.js +1 -1
  1327. package/app/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  1328. package/app/node_modules/caniuse-lite/data/features/outline.js +1 -1
  1329. package/app/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  1330. package/app/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  1331. package/app/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  1332. package/app/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  1333. package/app/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  1334. package/app/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  1335. package/app/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  1336. package/app/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  1337. package/app/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  1338. package/app/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  1339. package/app/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  1340. package/app/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  1341. package/app/node_modules/caniuse-lite/data/features/picture.js +1 -1
  1342. package/app/node_modules/caniuse-lite/data/features/ping.js +1 -1
  1343. package/app/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  1344. package/app/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  1345. package/app/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  1346. package/app/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  1347. package/app/node_modules/caniuse-lite/data/features/portals.js +1 -1
  1348. package/app/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  1349. package/app/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  1350. package/app/node_modules/caniuse-lite/data/features/progress.js +1 -1
  1351. package/app/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  1352. package/app/node_modules/caniuse-lite/data/features/promises.js +1 -1
  1353. package/app/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  1354. package/app/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  1355. package/app/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  1356. package/app/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  1357. package/app/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  1358. package/app/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  1359. package/app/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  1360. package/app/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  1361. package/app/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  1362. package/app/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  1363. package/app/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  1364. package/app/node_modules/caniuse-lite/data/features/rem.js +1 -1
  1365. package/app/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  1366. package/app/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  1367. package/app/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  1368. package/app/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  1369. package/app/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  1370. package/app/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  1371. package/app/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  1372. package/app/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  1373. package/app/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  1374. package/app/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  1375. package/app/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  1376. package/app/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  1377. package/app/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  1378. package/app/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  1379. package/app/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  1380. package/app/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  1381. package/app/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  1382. package/app/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  1383. package/app/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  1384. package/app/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  1385. package/app/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  1386. package/app/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  1387. package/app/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  1388. package/app/node_modules/caniuse-lite/data/features/sni.js +1 -1
  1389. package/app/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  1390. package/app/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  1391. package/app/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  1392. package/app/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  1393. package/app/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  1394. package/app/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  1395. package/app/node_modules/caniuse-lite/data/features/stream.js +1 -1
  1396. package/app/node_modules/caniuse-lite/data/features/streams.js +1 -1
  1397. package/app/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  1398. package/app/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  1399. package/app/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  1400. package/app/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  1401. package/app/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  1402. package/app/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  1403. package/app/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  1404. package/app/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  1405. package/app/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  1406. package/app/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  1407. package/app/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  1408. package/app/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  1409. package/app/node_modules/caniuse-lite/data/features/svg.js +1 -1
  1410. package/app/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  1411. package/app/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  1412. package/app/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  1413. package/app/node_modules/caniuse-lite/data/features/template.js +1 -1
  1414. package/app/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  1415. package/app/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  1416. package/app/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  1417. package/app/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  1418. package/app/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  1419. package/app/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  1420. package/app/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  1421. package/app/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  1422. package/app/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  1423. package/app/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  1424. package/app/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  1425. package/app/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  1426. package/app/node_modules/caniuse-lite/data/features/touch.js +1 -1
  1427. package/app/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  1428. package/app/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  1429. package/app/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  1430. package/app/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  1431. package/app/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  1432. package/app/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  1433. package/app/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  1434. package/app/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  1435. package/app/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  1436. package/app/node_modules/caniuse-lite/data/features/url.js +1 -1
  1437. package/app/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  1438. package/app/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  1439. package/app/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  1440. package/app/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  1441. package/app/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  1442. package/app/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  1443. package/app/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  1444. package/app/node_modules/caniuse-lite/data/features/video.js +1 -1
  1445. package/app/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  1446. package/app/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  1447. package/app/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  1448. package/app/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  1449. package/app/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  1450. package/app/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  1451. package/app/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  1452. package/app/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  1453. package/app/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  1454. package/app/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  1455. package/app/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  1456. package/app/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  1457. package/app/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  1458. package/app/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  1459. package/app/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  1460. package/app/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  1461. package/app/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  1462. package/app/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  1463. package/app/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  1464. package/app/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  1465. package/app/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  1466. package/app/node_modules/caniuse-lite/data/features/wav.js +1 -1
  1467. package/app/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  1468. package/app/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  1469. package/app/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  1470. package/app/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  1471. package/app/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  1472. package/app/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  1473. package/app/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  1474. package/app/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  1475. package/app/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  1476. package/app/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  1477. package/app/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  1478. package/app/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  1479. package/app/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  1480. package/app/node_modules/caniuse-lite/data/features/webm.js +1 -1
  1481. package/app/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  1482. package/app/node_modules/caniuse-lite/data/features/webp.js +1 -1
  1483. package/app/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  1484. package/app/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  1485. package/app/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  1486. package/app/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  1487. package/app/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  1488. package/app/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  1489. package/app/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  1490. package/app/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  1491. package/app/node_modules/caniuse-lite/data/features/woff.js +1 -1
  1492. package/app/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  1493. package/app/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  1494. package/app/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  1495. package/app/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  1496. package/app/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  1497. package/app/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  1498. package/app/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  1499. package/app/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  1500. package/app/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  1501. package/app/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  1502. package/app/node_modules/caniuse-lite/dist/unpacker/feature.js +1 -30
  1503. package/app/node_modules/caniuse-lite/package.json +1 -1
  1504. package/app/node_modules/nanoid/non-secure/index.cjs +10 -0
  1505. package/app/node_modules/nanoid/package.json +1 -1
  1506. package/app/node_modules/next/dist/build/swc/index.js +1 -1
  1507. package/app/node_modules/next/dist/build/webpack-config.js +3 -3
  1508. package/app/node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js +1 -1
  1509. package/app/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
  1510. package/app/node_modules/next/dist/server/config.js +1 -1
  1511. package/app/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
  1512. package/app/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
  1513. package/app/node_modules/next/dist/server/lib/app-info-log.js +1 -1
  1514. package/app/node_modules/next/dist/server/lib/start-server.js +1 -1
  1515. package/app/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  1516. package/app/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  1517. package/app/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
  1518. package/app/node_modules/next/dist/telemetry/events/version.js +2 -2
  1519. package/app/node_modules/next/package.json +252 -10
  1520. package/app/node_modules/pg/lib/client.js +1 -7
  1521. package/app/node_modules/pg/lib/connection-parameters.js +0 -13
  1522. package/app/node_modules/pg/lib/connection.js +22 -43
  1523. package/app/node_modules/pg/lib/defaults.js +0 -3
  1524. package/app/node_modules/pg/lib/query.js +0 -4
  1525. package/app/node_modules/pg/package.json +4 -4
  1526. package/app/node_modules/pg-connection-string/index.js +0 -6
  1527. package/app/node_modules/pg-connection-string/package.json +3 -3
  1528. package/app/node_modules/pg-protocol/dist/buffer-reader.js +1 -1
  1529. package/app/node_modules/pg-protocol/dist/buffer-writer.js +0 -23
  1530. package/app/node_modules/pg-protocol/dist/index.js +2 -2
  1531. package/app/node_modules/pg-protocol/dist/parser.js +1 -1
  1532. package/app/node_modules/pg-protocol/dist/serializer.js +4 -11
  1533. package/app/node_modules/pg-protocol/package.json +2 -2
  1534. package/app/package.json +1 -1
  1535. package/app/server.js +1 -1
  1536. package/package.json +1 -1
  1537. package/app/.next-cli-build/server/chunks/6311.js +0 -64
  1538. package/app/.next-cli-build/static/chunks/1a258343-1aa1820b9db68d51.js +0 -1
  1539. package/app/.next-cli-build/static/chunks/4546-4583313eeecaf077.js +0 -64
  1540. package/app/.next-cli-build/static/chunks/5497-e59c5500f9f9115a.js +0 -10
  1541. package/app/.next-cli-build/static/chunks/app/_global-error/page-9592272819096529.js +0 -1
  1542. package/app/.next-cli-build/static/chunks/app/api/auth/ldap/test/route-9592272819096529.js +0 -1
  1543. package/app/.next-cli-build/static/chunks/app/api/auth/ldap/users/route-9592272819096529.js +0 -1
  1544. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-9592272819096529.js +0 -1
  1545. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-9592272819096529.js +0 -1
  1546. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-9592272819096529.js +0 -1
  1547. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-9592272819096529.js +0 -1
  1548. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-9592272819096529.js +0 -1
  1549. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-9592272819096529.js +0 -1
  1550. package/app/.next-cli-build/static/chunks/app/api/branding/[asset]/route-9592272819096529.js +0 -1
  1551. package/app/.next-cli-build/static/chunks/app/api/branding/route-9592272819096529.js +0 -1
  1552. package/app/.next-cli-build/static/chunks/app/api/branding/upload/route-9592272819096529.js +0 -1
  1553. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-9592272819096529.js +0 -1
  1554. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-9592272819096529.js +0 -1
  1555. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/autostart/route-9592272819096529.js +0 -1
  1556. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/prompt-log-db/route-9592272819096529.js +0 -1
  1557. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/root-ca/route-9592272819096529.js +0 -1
  1558. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-9592272819096529.js +0 -1
  1559. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-9592272819096529.js +0 -1
  1560. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-9592272819096529.js +0 -1
  1561. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-9592272819096529.js +0 -1
  1562. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-9592272819096529.js +0 -1
  1563. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-9592272819096529.js +0 -1
  1564. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-9592272819096529.js +0 -1
  1565. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-9592272819096529.js +0 -1
  1566. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-9592272819096529.js +0 -1
  1567. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-9592272819096529.js +0 -1
  1568. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-9592272819096529.js +0 -1
  1569. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-9592272819096529.js +0 -1
  1570. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-9592272819096529.js +0 -1
  1571. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-9592272819096529.js +0 -1
  1572. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-9592272819096529.js +0 -1
  1573. package/app/.next-cli-build/static/chunks/app/api/cli-tools/qwen-settings/route-9592272819096529.js +0 -1
  1574. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-9592272819096529.js +0 -1
  1575. package/app/.next-cli-build/static/chunks/app/api/combos/route-9592272819096529.js +0 -1
  1576. package/app/.next-cli-build/static/chunks/app/api/dashboard/analytics/route-9592272819096529.js +0 -1
  1577. package/app/.next-cli-build/static/chunks/app/api/dashboard/combos/route-9592272819096529.js +0 -1
  1578. package/app/.next-cli-build/static/chunks/app/api/dashboard/endpoint/route-9592272819096529.js +0 -1
  1579. package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/[id]/route-9592272819096529.js +0 -1
  1580. package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/options/route-9592272819096529.js +0 -1
  1581. package/app/.next-cli-build/static/chunks/app/api/dashboard/prompt-logs/route-9592272819096529.js +0 -1
  1582. package/app/.next-cli-build/static/chunks/app/api/dashboard/token-saver/route-9592272819096529.js +0 -1
  1583. package/app/.next-cli-build/static/chunks/app/api/health/route-9592272819096529.js +0 -1
  1584. package/app/.next-cli-build/static/chunks/app/api/init/route-9592272819096529.js +0 -1
  1585. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-9592272819096529.js +0 -1
  1586. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-9592272819096529.js +0 -1
  1587. package/app/.next-cli-build/static/chunks/app/api/keys/route-9592272819096529.js +0 -1
  1588. package/app/.next-cli-build/static/chunks/app/api/locale/route-9592272819096529.js +0 -1
  1589. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-9592272819096529.js +0 -1
  1590. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-9592272819096529.js +0 -1
  1591. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-9592272819096529.js +0 -1
  1592. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-9592272819096529.js +0 -1
  1593. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-9592272819096529.js +0 -1
  1594. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-9592272819096529.js +0 -1
  1595. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-9592272819096529.js +0 -1
  1596. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-9592272819096529.js +0 -1
  1597. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-9592272819096529.js +0 -1
  1598. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-9592272819096529.js +0 -1
  1599. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-9592272819096529.js +0 -1
  1600. package/app/.next-cli-build/static/chunks/app/api/models/route-9592272819096529.js +0 -1
  1601. package/app/.next-cli-build/static/chunks/app/api/models/test/route-9592272819096529.js +0 -1
  1602. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-9592272819096529.js +0 -1
  1603. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-9592272819096529.js +0 -1
  1604. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-9592272819096529.js +0 -1
  1605. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-9592272819096529.js +0 -1
  1606. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-9592272819096529.js +0 -1
  1607. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-9592272819096529.js +0 -1
  1608. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-9592272819096529.js +0 -1
  1609. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-9592272819096529.js +0 -1
  1610. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-9592272819096529.js +0 -1
  1611. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-9592272819096529.js +0 -1
  1612. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/api-key-models/route-9592272819096529.js +0 -1
  1613. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/import-models/route-9592272819096529.js +0 -1
  1614. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/models/[...routeModel]/route-9592272819096529.js +0 -1
  1615. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/route-9592272819096529.js +0 -1
  1616. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/[id]/usage/route-9592272819096529.js +0 -1
  1617. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/client/route-9592272819096529.js +0 -1
  1618. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/permissions/route-9592272819096529.js +0 -1
  1619. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/route-9592272819096529.js +0 -1
  1620. package/app/.next-cli-build/static/chunks/app/api/personal-cloud-providers/routing/route-9592272819096529.js +0 -1
  1621. package/app/.next-cli-build/static/chunks/app/api/pricing/recalculate/route-9592272819096529.js +0 -1
  1622. package/app/.next-cli-build/static/chunks/app/api/pricing/route-9592272819096529.js +0 -1
  1623. package/app/.next-cli-build/static/chunks/app/api/provider-health/route-9592272819096529.js +0 -1
  1624. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-9592272819096529.js +0 -1
  1625. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-9592272819096529.js +0 -1
  1626. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-9592272819096529.js +0 -1
  1627. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-9592272819096529.js +0 -1
  1628. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-9592272819096529.js +0 -1
  1629. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-9592272819096529.js +0 -1
  1630. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-9592272819096529.js +0 -1
  1631. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-9592272819096529.js +0 -1
  1632. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-9592272819096529.js +0 -1
  1633. package/app/.next-cli-build/static/chunks/app/api/providers/route-9592272819096529.js +0 -1
  1634. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-9592272819096529.js +0 -1
  1635. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-9592272819096529.js +0 -1
  1636. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-9592272819096529.js +0 -1
  1637. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-9592272819096529.js +0 -1
  1638. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-9592272819096529.js +0 -1
  1639. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-9592272819096529.js +0 -1
  1640. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-9592272819096529.js +0 -1
  1641. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-9592272819096529.js +0 -1
  1642. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-9592272819096529.js +0 -1
  1643. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-9592272819096529.js +0 -1
  1644. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-9592272819096529.js +0 -1
  1645. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-9592272819096529.js +0 -1
  1646. package/app/.next-cli-build/static/chunks/app/api/settings/route-9592272819096529.js +0 -1
  1647. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-9592272819096529.js +0 -1
  1648. package/app/.next-cli-build/static/chunks/app/api/tags/route-9592272819096529.js +0 -1
  1649. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-9592272819096529.js +0 -1
  1650. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-9592272819096529.js +0 -1
  1651. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-9592272819096529.js +0 -1
  1652. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-9592272819096529.js +0 -1
  1653. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-9592272819096529.js +0 -1
  1654. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-9592272819096529.js +0 -1
  1655. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-9592272819096529.js +0 -1
  1656. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-9592272819096529.js +0 -1
  1657. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-9592272819096529.js +0 -1
  1658. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-9592272819096529.js +0 -1
  1659. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-9592272819096529.js +0 -1
  1660. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-9592272819096529.js +0 -1
  1661. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-9592272819096529.js +0 -1
  1662. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-login/route-9592272819096529.js +0 -1
  1663. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-start-daemon/route-9592272819096529.js +0 -1
  1664. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-9592272819096529.js +0 -1
  1665. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-9592272819096529.js +0 -1
  1666. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-9592272819096529.js +0 -1
  1667. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-9592272819096529.js +0 -1
  1668. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-9592272819096529.js +0 -1
  1669. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-9592272819096529.js +0 -1
  1670. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-9592272819096529.js +0 -1
  1671. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-9592272819096529.js +0 -1
  1672. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-9592272819096529.js +0 -1
  1673. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-9592272819096529.js +0 -1
  1674. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-9592272819096529.js +0 -1
  1675. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-9592272819096529.js +0 -1
  1676. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-9592272819096529.js +0 -1
  1677. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-9592272819096529.js +0 -1
  1678. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-9592272819096529.js +0 -1
  1679. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-9592272819096529.js +0 -1
  1680. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-9592272819096529.js +0 -1
  1681. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-9592272819096529.js +0 -1
  1682. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-9592272819096529.js +0 -1
  1683. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-9592272819096529.js +0 -1
  1684. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-9592272819096529.js +0 -1
  1685. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-9592272819096529.js +0 -1
  1686. package/app/.next-cli-build/static/chunks/app/api/v1/route-9592272819096529.js +0 -1
  1687. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-9592272819096529.js +0 -1
  1688. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-9592272819096529.js +0 -1
  1689. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-9592272819096529.js +0 -1
  1690. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-9592272819096529.js +0 -1
  1691. package/app/.next-cli-build/static/chunks/app/api/version/restart/route-9592272819096529.js +0 -1
  1692. package/app/.next-cli-build/static/chunks/app/api/version/route-9592272819096529.js +0 -1
  1693. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-9592272819096529.js +0 -1
  1694. package/app/.next-cli-build/static/chunks/app/api/version/update/route-9592272819096529.js +0 -1
  1695. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-9592272819096529.js +0 -1
  1696. package/app/.next-cli-build/static/chunks/app/page-9592272819096529.js +0 -1
  1697. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-9592272819096529.js +0 -1
  1698. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-9592272819096529.js +0 -1
  1699. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-9592272819096529.js +0 -1
  1700. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-9592272819096529.js +0 -1
  1701. package/app/.next-cli-build/static/css/99c640571568eb2b.css +0 -1
  1702. package/app/.next-cli-build/static/yDEQBOKuswE6f7cfVOzje/_buildManifest.js +0 -1
  1703. package/app/node_modules/caniuse-lite/data/versionGroups.js +0 -1
  1704. package/app/node_modules/caniuse-lite/dist/unpacker/versionGroups.js +0 -1
  1705. /package/app/.next-cli-build/static/{yDEQBOKuswE6f7cfVOzje → GB6pMdAIstNCFUAF9jJxq}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8460],{52154:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>b});var r=s(95155),a=s(12115),l=s(14051),i=s.n(l),n=s(35497),o=s(57250),d=s(90620),c=s(52679),p=s(98500),m=s.n(p),x=s(65921),u=s(38003);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),[s,l]=(0,a.useState)(!0),[i,o]=(0,a.useState)(!1),[d,c]=(0,a.useState)(null),p=(0,a.useRef)(null),m=(0,x.i)(),u=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/models/availability");if(e.ok){let s=await e.json();t(s)}}catch{}finally{l(!1)}},[]);(0,a.useEffect)(()=>{u();let e=setInterval(u,3e4);return()=>clearInterval(e)},[u]),(0,a.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&o(!1)};return i&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]);let f=async(e,t)=>{c(`${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?(m.success(`Cooldown cleared for ${t}`),await u()):m.error("Failed to clear cooldown")}catch{m.error("Failed to clear cooldown")}finally{c(null)}};if(s)return null;let g=e?.models||[],b=0===(e?.unavailableCount||g.filter(e=>"available"!==e.status).length),v={};return g.forEach(e=>{if("available"===e.status)return;let t=e.provider||"unknown";v[t]||(v[t]=[]),v[t].push(e)}),(0,r.jsx)("div",{className:"relative",ref:p,children:i&&(0,r.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,r.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border bg-bg",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[16px]",style:{color:b?"#22c55e":"#f59e0b"},children:b?"verified":"warning"}),(0,r.jsx)("span",{className:"text-sm font-semibold text-text-main",children:"Model Status"})]}),(0,r.jsx)("button",{onClick:u,className:"p-1 rounded-lg hover:bg-surface text-text-muted hover:text-text-main transition-colors",title:"Refresh",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"})})]}),(0,r.jsx)("div",{className:"px-4 py-3 max-h-60 overflow-y-auto",children:b?(0,r.jsx)("p",{className:"text-sm text-text-muted text-center py-2",children:"All models are responding normally."}):(0,r.jsx)("div",{className:"flex flex-col gap-2.5",children:Object.entries(v).map(([e,t])=>(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-xs font-semibold text-text-main mb-1.5 capitalize",children:e}),(0,r.jsx)("div",{className:"flex flex-col gap-1",children:t.map(e=>{let t=h[e.status]||h.unknown,s=d===`${e.provider}:${e.model}`;return(0,r.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5 rounded-lg bg-surface/30",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px] shrink-0",style:{color:t.color},children:t.icon}),(0,r.jsx)("span",{className:"font-mono text-xs text-text-main truncate",children:e.model})]}),"cooldown"===e.status&&(0,r.jsx)(n.$n,{size:"sm",variant:"ghost",onClick:()=>f(e.provider,e.model),disabled:s,className:"text-[10px] px-1.5! py-0.5! ml-2",children:s?"...":"Clear"})]},`${e.provider}-${e.model}`)})})]},e))})})]})})}function g(e,t,s){let a=[];if(e>0&&a.push((0,r.jsxs)(n.Ex,{variant:"success",size:"sm",dot:!0,children:[e," Connected"]},"connected")),t>0){let e=s?`${t} Error (${s})`:`${t} Error`;a.push((0,r.jsx)(n.Ex,{variant:"error",size:"sm",dot:!0,children:e},"error"))}return 0===a.length?(0,r.jsx)("span",{className:"text-text-muted",children:"No connections"}):a}function b(){let e,t,[s,l]=(0,a.useState)([]),[i,o]=(0,a.useState)([]),[p,m]=(0,a.useState)(!0),[h,g]=(0,a.useState)(!1),[b,C]=(0,a.useState)(!1),[k,T]=(0,a.useState)(!1),[A,I]=(0,a.useState)(null),[R,S]=(0,a.useState)(null),E=(0,x.i)(),$=(0,u.C)(e=>e.query),O=(0,u.C)(e=>e.register),U=(0,u.C)(e=>e.unregister);(0,a.useEffect)(()=>(O("Search providers..."),()=>U()),[O,U]);let P=e=>!$.trim()||e.toLowerCase().includes($.trim().toLowerCase());(0,a.useEffect)(()=>{(async()=>{try{let[e,t]=await Promise.all([fetch("/api/providers"),fetch("/api/provider-nodes")]),s=await e.json(),r=await t.json();e.ok&&l(s.connections||[]),t.ok&&o(r.nodes||[])}catch(e){console.log("Error fetching data:",e)}finally{m(!1)}})()},[]);let _=(e,t)=>{let r=s.filter(s=>s.provider===e&&s.authType===t),a=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"},l=r.filter(e=>{let t=a(e);return"active"===t||"success"===t}).length,i=r.filter(e=>{let t=a(e);return"error"===t||"expired"===t||"unavailable"===t}),n=i.length,o=r.length,d=o>0&&r.every(e=>!1===e.isActive),c=i.sort((e,t)=>new Date(t.lastErrorAt||0)-new Date(e.lastErrorAt||0))[0];return{connected:l,error:n,total:o,errorCode:c?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 s=Number(e.errorCode);if(Number.isFinite(s)&&s>=400)return String(s);let r=function(e){if(!e)return null;let t=e.match(/\b([45]\d{2})\b/);return t?t[1]:"ERR"}(e.lastError);if("401"===r||"403"===r)return"AUTH";if(r&&"ERR"!==r)return r;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"}(c):null,errorTime:c?.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 s=Math.floor(t/60);if(s<24)return`${s}h ago`;let r=Math.floor(s/24);return`${r}d ago`}(c.lastErrorAt):null,allDisabled:d}},q=async(e,t,r)=>{let a=s.filter(s=>s.provider===e&&s.authType===t);l(s=>s.map(s=>s.provider===e&&s.authType===t?{...s,isActive:r}:s)),await Promise.allSettled(a.map(e=>fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:r})})))},z=async(e,t=null)=>{if(!A){I("provider"===e?t:e),S(null);try{let s=await fetch("/api/providers/test-batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e,providerId:t})}),r=await s.json();if(S(r),r.summary){let{passed:e,failed:t,total:s}=r.summary;0===t?E.success(`All ${s} tests passed`):E.warning(`${e}/${s} passed, ${t} failed`)}}catch(e){S({error:"Test request failed"}),E.error("Provider test failed")}finally{I(null)}}},D=i.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=>P(e.name)),F=i.filter(e=>"anthropic-compatible"===e.type).map(e=>({id:e.id,name:e.name||"Anthropic Compatible",color:"#D97757",textIcon:"AC"})).filter(e=>P(e.name)),M=Object.entries(d.zN).filter(([,e])=>!e.hidden&&P(e.name)),K=Object.entries(c.IS).filter(([,e])=>!e.hidden&&P(e.name)),L=Object.entries(c.nJ).filter(([,e])=>!e.hidden&&P(e.name)),J=(e=Object.entries(d.fg).filter(([,e])=>!e.hidden&&(e.serviceKinds??["llm"]).includes("llm")&&P(e.name)),t="apikey",[...e].sort(([e,s],[r,a])=>{let l=_(e,t),i=_(r,t),n=+(l.connected>0),o=+(i.connected>0);return n!==o?o-n:(s.name||"").localeCompare(a.name||"")})),W=!!$.trim(),H=W||h?J:J.slice(0,20),B=J.length-20;if(p)return(0,r.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,r.jsx)(n.Qv,{}),(0,r.jsx)(n.Qv,{})]});let Q=M.length>0||K.length>0||L.length>0||J.length>0||D.length>0||F.length>0;return(0,r.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[!Q&&(0,r.jsxs)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[32px] text-text-muted mb-2",children:"search_off"}),(0,r.jsx)("p",{className:"text-text-muted text-sm",children:"No providers match your search"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["Custom Providers (OpenAI/Anthropic Compatible)"," "]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:w-auto",children:[(0,r.jsx)(n.$n,{size:"sm",icon:"add",onClick:()=>T(!0),className:"w-full sm:w-auto",children:"Add Anthropic Compatible"}),(0,r.jsx)(n.$n,{size:"sm",variant:"secondary",icon:"add",onClick:()=>C(!0),className:"w-full !bg-white !text-black hover:!bg-gray-100 sm:w-auto",children:"Add OpenAI Compatible"})]})]}),0===D.length&&0===F.length?(0,r.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,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"extension"}),(0,r.jsx)("span",{children:"No custom providers — use buttons above to add OpenAI/Anthropic compatible endpoints"})]}):(0,r.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:[...D,...F].map(e=>(0,r.jsx)(y,{providerId:e.id,provider:e,stats:_(e.id,"apikey"),authType:"compatible",onToggle:t=>q(e.id,"apikey",t)},e.id))})]}),M.length>0&&(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"OAuth Providers"}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,r.jsx)(f,{}),(0,r.jsxs)("button",{onClick:()=>z("oauth"),disabled:!!A,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"oauth"===A?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all OAuth connections","aria-label":"Test all OAuth connections",children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[14px]${"oauth"===A?" animate-spin":""}`,children:"play_arrow"}),"oauth"===A?"Testing...":"Test All"]})]})]}),(0,r.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.map(([e,t])=>(0,r.jsx)(v,{providerId:e,provider:t,stats:_(e,"oauth"),authType:"oauth",onToggle:t=>q(e,"oauth",t)},e))})]}),(K.length>0||L.length>0)&&(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"Free Tier Providers"}),(0,r.jsxs)("button",{onClick:()=>z("free"),disabled:!!A,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"free"===A?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all Free connections","aria-label":"Test all Free provider connections",children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[14px]${"free"===A?" animate-spin":""}`,children:"play_arrow"}),"free"===A?"Testing...":"Test All"]})]}),(0,r.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:[K.map(([e,t])=>(0,r.jsx)(v,{providerId:e,provider:t,stats:_(e,"oauth"),authType:"free",onToggle:t=>q(e,"oauth",t)},e)),L.map(([e,t])=>(0,r.jsx)(y,{providerId:e,provider:t,stats:_(e,"apikey"),authType:"apikey",onToggle:t=>q(e,"apikey",t)},e))]})]}),J.length>0&&(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["API Key Providers"," "]}),(0,r.jsxs)("button",{onClick:()=>z("apikey"),disabled:!!A,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"apikey"===A?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all API Key connections","aria-label":"Test all API Key connections",children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[14px]${"apikey"===A?" animate-spin":""}`,children:"play_arrow"}),"apikey"===A?"Testing...":"Test All"]})]}),(0,r.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:H.map(([e,t])=>(0,r.jsx)(y,{providerId:e,provider:t,stats:_(e,"apikey"),authType:"apikey",onToggle:t=>q(e,"apikey",t)},e))}),!W&&!h&&B>0&&(0,r.jsxs)("button",{onClick:()=>g(!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,r.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"expand_more"}),"Show all ",J.length," providers"]})]}),(0,r.jsx)(j,{isOpen:b,onClose:()=>C(!1),onCreated:e=>{o(t=>[...t,e]),C(!1)}}),(0,r.jsx)(N,{isOpen:k,onClose:()=>T(!1),onCreated:e=>{o(t=>[...t,e]),T(!1)}}),R&&(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center px-3 pt-[6vh] sm:pt-[10vh]",onClick:()=>S(null),children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),(0,r.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,r.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,r.jsx)("h3",{className:"font-semibold",children:"Test Results"}),(0,r.jsx)("button",{onClick:()=>S(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,r.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]}),(0,r.jsx)("div",{className:"p-5",children:(0,r.jsx)(w,{results:R})})]})]})]})}function v({providerId:e,provider:t,stats:s,authType:a,onToggle:l}){let{connected:i,error:d,errorCode:c,errorTime:p,allDisabled:x}=s,u=!!t.noAuth;return(0,r.jsx)(m(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,r.jsx)(n.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${x?"opacity-50":""}`,children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,r.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,r.jsx)(o.A,{src:`/providers/${t.id}.png`,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,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,r.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:x?(0,r.jsx)(n.Ex,{variant:"default",size:"sm",children:(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):u?(0,r.jsx)(n.Ex,{variant:"success",size:"sm",dot:!0,children:"Ready"}):(0,r.jsxs)(r.Fragment,{children:[g(i,d,c),p&&(0,r.jsx)("span",{className:"text-text-muted",children:p})]})})]})]}),(0,r.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:s.total>0&&(0,r.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),l(!!x)},children:(0,r.jsx)(n.lM,{size:"sm",checked:!x,onChange:()=>{},title:x?"Enable provider":"Disable provider"})})})]})})})}function y({providerId:e,provider:t,stats:s,authType:a,onToggle:l}){let{connected:i,error:d,errorCode:p,errorTime:x,allDisabled:u}=s,h=e.startsWith(c.JH),f=e.startsWith(c.DI);return(0,r.jsx)(m(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,r.jsx)(n.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${u?"opacity-50":""}`,children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,r.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,r.jsx)(o.A,{src:h?"responses"===t.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":f?"/providers/anthropic-m.png":`/providers/${t.id}.png`,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,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,r.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:u?(0,r.jsx)(n.Ex,{variant:"default",size:"sm",children:(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):(0,r.jsxs)(r.Fragment,{children:[g(i,d,p),h&&(0,r.jsx)(n.Ex,{variant:"default",size:"sm",children:"responses"===t.apiType?"Responses":"Chat"}),f&&(0,r.jsx)(n.Ex,{variant:"default",size:"sm",children:"Messages"}),x&&(0,r.jsx)("span",{className:"text-text-muted",children:x})]})})]})]}),(0,r.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:s.total>0&&(0,r.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),l(!!u)},children:(0,r.jsx)(n.lM,{size:"sm",checked:!u,onChange:()=>{},title:u?"Enable provider":"Disable provider"})})})]})})})}function j({isOpen:e,onClose:t,onCreated:s}){let[l,i]=(0,a.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1",openAICompatibleRuntime:c.hb}),[o,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)(""),[x,u]=(0,a.useState)(""),[h,f]=(0,a.useState)(!1),[g,b]=(0,a.useState)(null);(0,a.useEffect)(()=>{i(e=>({...e,baseUrl:"https://api.openai.com/v1"}))},[l.apiType]);let v=async()=>{if(l.name.trim()&&l.prefix.trim()&&l.baseUrl.trim()){d(!0);try{let e=await fetch("/api/provider-nodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:l.name,prefix:l.prefix,apiType:l.apiType,baseUrl:l.baseUrl,openAICompatibleRuntime:l.openAICompatibleRuntime,type:"openai-compatible"})}),t=await e.json();e.ok&&(s(t.node),i({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1",openAICompatibleRuntime:c.hb}),m(""),b(null))}catch(e){console.log("Error creating OpenAI Compatible node:",e)}finally{d(!1)}}},y=async()=>{f(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:l.baseUrl,apiKey:p,type:"openai-compatible",modelId:x.trim()||void 0})}),t=await e.json();b(t)}catch{b({valid:!1,error:"Network error"})}finally{f(!1)}};return(0,r.jsx)(n.aF,{isOpen:e,title:"Add OpenAI Compatible",onClose:t,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(n.pd,{label:"Name",value:l.name,onChange:e=>i({...l,name:e.target.value}),placeholder:"OpenAI Compatible (Prod)",hint:"Required. A friendly label for this node."}),(0,r.jsx)(n.pd,{label:"Prefix",value:l.prefix,onChange:e=>i({...l,prefix:e.target.value}),placeholder:"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),(0,r.jsx)(n.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:l.apiType,onChange:e=>i({...l,apiType:e.target.value})}),(0,r.jsx)(n.l6,{label:"Server Type",options:c._8,value:l.openAICompatibleRuntime,onChange:e=>i({...l,openAICompatibleRuntime:e.target.value}),hint:c._8.find(e=>e.value===l.openAICompatibleRuntime)?.description||"Controls how BlueRouter maps thinking/reasoning params for this endpoint."}),(0,r.jsx)(n.pd,{label:"Base URL",value:l.baseUrl,onChange:e=>i({...l,baseUrl:e.target.value}),placeholder:"https://api.openai.com/v1",hint:"Use the base URL (ending in /v1) for your OpenAI-compatible API."}),(0,r.jsx)(n.pd,{label:"API Key (for Check)",type:"password",value:p,onChange:e=>m(e.target.value)}),(0,r.jsx)(n.pd,{label:"Model ID (optional)",value:x,onChange:e=>u(e.target.value),placeholder:"e.g. gpt-4, claude-3-opus",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,r.jsx)(n.$n,{onClick:y,disabled:!p||h||!l.baseUrl.trim(),variant:"secondary",className:"w-full sm:w-auto",children:h?"Checking...":"Check"}),(()=>{if(!g)return null;let{valid:e,error:t,method:s}=g;return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Ex,{variant:"success",children:"Valid"}),"chat"===s&&(0,r.jsx)("span",{className:"text-sm text-text-muted",children:"(via inference test)"})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(n.Ex,{variant:"error",children:"Invalid"}),t&&(0,r.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,r.jsx)(n.$n,{onClick:v,fullWidth:!0,disabled:!l.name.trim()||!l.prefix.trim()||!l.baseUrl.trim()||o,children:o?"Creating...":"Create"}),(0,r.jsx)(n.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function N({isOpen:e,onClose:t,onCreated:s}){let[l,i]=(0,a.useState)({name:"",prefix:"",baseUrl:"https://api.anthropic.com/v1"}),[o,d]=(0,a.useState)(!1),[c,p]=(0,a.useState)(""),[m,x]=(0,a.useState)(""),[u,h]=(0,a.useState)(!1),[f,g]=(0,a.useState)(null);(0,a.useEffect)(()=>{e&&(g(null),p(""),x(""))},[e]);let b=async()=>{if(l.name.trim()&&l.prefix.trim()&&l.baseUrl.trim()){d(!0);try{let e=await fetch("/api/provider-nodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:l.name,prefix:l.prefix,baseUrl:l.baseUrl,type:"anthropic-compatible"})}),t=await e.json();e.ok&&(s(t.node),i({name:"",prefix:"",baseUrl:"https://api.anthropic.com/v1"}),p(""),g(null))}catch(e){console.log("Error creating Anthropic Compatible node:",e)}finally{d(!1)}}},v=async()=>{h(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:l.baseUrl,apiKey:c,type:"anthropic-compatible",modelId:m.trim()||void 0})}),t=await e.json();g(t)}catch{g({valid:!1,error:"Network error"})}finally{h(!1)}};return(0,r.jsx)(n.aF,{isOpen:e,title:"Add Anthropic Compatible",onClose:t,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(n.pd,{label:"Name",value:l.name,onChange:e=>i({...l,name:e.target.value}),placeholder:"Anthropic Compatible (Prod)",hint:"Required. A friendly label for this node."}),(0,r.jsx)(n.pd,{label:"Prefix",value:l.prefix,onChange:e=>i({...l,prefix:e.target.value}),placeholder:"ac-prod",hint:"Required. Used as the provider prefix for model IDs."}),(0,r.jsx)(n.pd,{label:"Base URL",value:l.baseUrl,onChange:e=>i({...l,baseUrl:e.target.value}),placeholder:"https://api.anthropic.com/v1",hint:"Use the base URL (ending in /v1) for your Anthropic-compatible API. The system will append /messages."}),(0,r.jsx)(n.pd,{label:"API Key (for Check)",type:"password",value:c,onChange:e=>p(e.target.value)}),(0,r.jsx)(n.pd,{label:"Model ID (optional)",value:m,onChange:e=>x(e.target.value),placeholder:"e.g. claude-3-opus",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,r.jsx)(n.$n,{onClick:v,disabled:!c||u||!l.baseUrl.trim(),variant:"secondary",className:"w-full sm:w-auto",children:u?"Checking...":"Check"}),(()=>{if(!f)return null;let{valid:e,error:t,method:s}=f;return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Ex,{variant:"success",children:"Valid"}),"chat"===s&&(0,r.jsx)("span",{className:"text-sm text-text-muted",children:"(via inference test)"})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(n.Ex,{variant:"error",children:"Invalid"}),t&&(0,r.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,r.jsx)(n.$n,{onClick:b,fullWidth:!0,disabled:!l.name.trim()||!l.prefix.trim()||!l.baseUrl.trim()||o,children:o?"Creating...":"Create"}),(0,r.jsx)(n.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function w({results:e}){if(e.error&&!e.results)return(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-red-500 text-[32px] mb-2 block",children:"error"}),(0,r.jsx)("p",{className:"text-sm text-red-400",children:e.error})]});let{summary:t,mode:s}=e,a=e.results||[];return(0,r.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[t&&(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs mb-1 sm:gap-3",children:[(0,r.jsxs)("span",{className:"text-text-muted",children:[{oauth:"OAuth",free:"Free",apikey:"API Key",provider:"Provider",all:"All"}[s]||s," Test"]}),(0,r.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,r.jsxs)("span",{className:"px-2 py-0.5 rounded bg-red-500/15 text-red-400 font-medium",children:[t.failed," failed"]}),(0,r.jsxs)("span",{className:"text-text-muted sm:ml-auto",children:[t.total," tested"]})]}),a.map((e,t)=>(0,r.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,r.jsx)("span",{className:`material-symbols-outlined text-[16px] ${e.valid?"text-emerald-500":"text-red-500"}`,children:e.valid?"check_circle":"error"}),(0,r.jsxs)("div",{className:"min-w-0 flex-[1_1_160px]",children:[(0,r.jsx)("span",{className:"block truncate font-medium sm:inline",children:e.connectionName}),(0,r.jsxs)("span",{className:"block truncate text-text-muted sm:ml-1.5 sm:inline",children:["(",e.provider,")"]})]}),void 0!==e.latencyMs&&(0,r.jsxs)("span",{className:"shrink-0 text-text-muted font-mono tabular-nums",children:[e.latencyMs,"ms"]}),(0,r.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,r.jsx)("div",{className:"text-center py-4 text-text-muted text-sm",children:"No active connections found for this group."})]})}v.propTypes={providerId:i().string.isRequired,provider:i().shape({id:i().string.isRequired,name:i().string.isRequired,color:i().string,textIcon:i().string}).isRequired,stats:i().shape({connected:i().number,error:i().number,errorCode:i().string,errorTime:i().string}).isRequired,authType:i().string,onToggle:i().func},y.propTypes={providerId:i().string.isRequired,provider:i().shape({id:i().string.isRequired,name:i().string.isRequired,color:i().string,textIcon:i().string,apiType:i().string}).isRequired,stats:i().shape({connected:i().number,error:i().number,errorCode:i().string,errorTime:i().string}).isRequired,authType:i().string,onToggle:i().func},j.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onCreated:i().func.isRequired},N.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onCreated:i().func.isRequired},w.propTypes={results:i().shape({mode:i().string,results:i().array,summary:i().shape({total:i().number,passed:i().number,failed:i().number}),error:i().string}).isRequired}},53928:(e,t,s)=>{Promise.resolve().then(s.bind(s,52154))}},e=>{e.O(0,[2574,3862,246,4546,5564,5263,5497,8441,3794,7358],()=>e(e.s=53928)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8460],{52154:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>b});var r=s(95155),a=s(12115),l=s(14051),i=s.n(l),n=s(35497),o=s(57250),d=s(90620),c=s(52679),p=s(98500),m=s.n(p),x=s(65921),u=s(38003);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),[s,l]=(0,a.useState)(!0),[i,o]=(0,a.useState)(!1),[d,c]=(0,a.useState)(null),p=(0,a.useRef)(null),m=(0,x.i)(),u=(0,a.useCallback)(async()=>{try{let e=await fetch("/api/models/availability");if(e.ok){let s=await e.json();t(s)}}catch{}finally{l(!1)}},[]);(0,a.useEffect)(()=>{u();let e=setInterval(u,3e4);return()=>clearInterval(e)},[u]),(0,a.useEffect)(()=>{let e=e=>{p.current&&!p.current.contains(e.target)&&o(!1)};return i&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[i]);let f=async(e,t)=>{c(`${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?(m.success(`Cooldown cleared for ${t}`),await u()):m.error("Failed to clear cooldown")}catch{m.error("Failed to clear cooldown")}finally{c(null)}};if(s)return null;let g=e?.models||[],b=0===(e?.unavailableCount||g.filter(e=>"available"!==e.status).length),v={};return g.forEach(e=>{if("available"===e.status)return;let t=e.provider||"unknown";v[t]||(v[t]=[]),v[t].push(e)}),(0,r.jsx)("div",{className:"relative",ref:p,children:i&&(0,r.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,r.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border bg-bg",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[16px]",style:{color:b?"#22c55e":"#f59e0b"},children:b?"verified":"warning"}),(0,r.jsx)("span",{className:"text-sm font-semibold text-text-main",children:"Model Status"})]}),(0,r.jsx)("button",{onClick:u,className:"p-1 rounded-lg hover:bg-surface text-text-muted hover:text-text-main transition-colors",title:"Refresh",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"refresh"})})]}),(0,r.jsx)("div",{className:"px-4 py-3 max-h-60 overflow-y-auto",children:b?(0,r.jsx)("p",{className:"text-sm text-text-muted text-center py-2",children:"All models are responding normally."}):(0,r.jsx)("div",{className:"flex flex-col gap-2.5",children:Object.entries(v).map(([e,t])=>(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"text-xs font-semibold text-text-main mb-1.5 capitalize",children:e}),(0,r.jsx)("div",{className:"flex flex-col gap-1",children:t.map(e=>{let t=h[e.status]||h.unknown,s=d===`${e.provider}:${e.model}`;return(0,r.jsxs)("div",{className:"flex items-center justify-between px-2.5 py-1.5 rounded-lg bg-surface/30",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px] shrink-0",style:{color:t.color},children:t.icon}),(0,r.jsx)("span",{className:"font-mono text-xs text-text-main truncate",children:e.model})]}),"cooldown"===e.status&&(0,r.jsx)(n.$n,{size:"sm",variant:"ghost",onClick:()=>f(e.provider,e.model),disabled:s,className:"text-[10px] px-1.5! py-0.5! ml-2",children:s?"...":"Clear"})]},`${e.provider}-${e.model}`)})})]},e))})})]})})}function g(e,t,s){let a=[];if(e>0&&a.push((0,r.jsxs)(n.Ex,{variant:"success",size:"sm",dot:!0,children:[e," Connected"]},"connected")),t>0){let e=s?`${t} Error (${s})`:`${t} Error`;a.push((0,r.jsx)(n.Ex,{variant:"error",size:"sm",dot:!0,children:e},"error"))}return 0===a.length?(0,r.jsx)("span",{className:"text-text-muted",children:"No connections"}):a}function b(){let e,t,[s,l]=(0,a.useState)([]),[i,o]=(0,a.useState)([]),[p,m]=(0,a.useState)(!0),[h,g]=(0,a.useState)(!1),[b,C]=(0,a.useState)(!1),[k,T]=(0,a.useState)(!1),[A,I]=(0,a.useState)(null),[R,S]=(0,a.useState)(null),E=(0,x.i)(),$=(0,u.C)(e=>e.query),O=(0,u.C)(e=>e.register),U=(0,u.C)(e=>e.unregister);(0,a.useEffect)(()=>(O("Search providers..."),()=>U()),[O,U]);let P=e=>!$.trim()||e.toLowerCase().includes($.trim().toLowerCase());(0,a.useEffect)(()=>{(async()=>{try{let[e,t]=await Promise.all([fetch("/api/providers"),fetch("/api/provider-nodes")]),s=await e.json(),r=await t.json();e.ok&&l(s.connections||[]),t.ok&&o(r.nodes||[])}catch(e){console.log("Error fetching data:",e)}finally{m(!1)}})()},[]);let _=(e,t)=>{let r=s.filter(s=>s.provider===e&&s.authType===t),a=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"},l=r.filter(e=>{let t=a(e);return"active"===t||"success"===t}).length,i=r.filter(e=>{let t=a(e);return"error"===t||"expired"===t||"unavailable"===t}),n=i.length,o=r.length,d=o>0&&r.every(e=>!1===e.isActive),c=i.sort((e,t)=>new Date(t.lastErrorAt||0)-new Date(e.lastErrorAt||0))[0];return{connected:l,error:n,total:o,errorCode:c?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 s=Number(e.errorCode);if(Number.isFinite(s)&&s>=400)return String(s);let r=function(e){if(!e)return null;let t=e.match(/\b([45]\d{2})\b/);return t?t[1]:"ERR"}(e.lastError);if("401"===r||"403"===r)return"AUTH";if(r&&"ERR"!==r)return r;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"}(c):null,errorTime:c?.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 s=Math.floor(t/60);if(s<24)return`${s}h ago`;let r=Math.floor(s/24);return`${r}d ago`}(c.lastErrorAt):null,allDisabled:d}},q=async(e,t,r)=>{let a=s.filter(s=>s.provider===e&&s.authType===t);l(s=>s.map(s=>s.provider===e&&s.authType===t?{...s,isActive:r}:s)),await Promise.allSettled(a.map(e=>fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:r})})))},z=async(e,t=null)=>{if(!A){I("provider"===e?t:e),S(null);try{let s=await fetch("/api/providers/test-batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:e,providerId:t})}),r=await s.json();if(S(r),r.summary){let{passed:e,failed:t,total:s}=r.summary;0===t?E.success(`All ${s} tests passed`):E.warning(`${e}/${s} passed, ${t} failed`)}}catch(e){S({error:"Test request failed"}),E.error("Provider test failed")}finally{I(null)}}},D=i.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=>P(e.name)),F=i.filter(e=>"anthropic-compatible"===e.type).map(e=>({id:e.id,name:e.name||"Anthropic Compatible",color:"#D97757",textIcon:"AC"})).filter(e=>P(e.name)),M=Object.entries(d.zN).filter(([,e])=>!e.hidden&&P(e.name)),K=Object.entries(c.IS).filter(([,e])=>!e.hidden&&P(e.name)),L=Object.entries(c.nJ).filter(([,e])=>!e.hidden&&P(e.name)),J=(e=Object.entries(d.fg).filter(([,e])=>!e.hidden&&(e.serviceKinds??["llm"]).includes("llm")&&P(e.name)),t="apikey",[...e].sort(([e,s],[r,a])=>{let l=_(e,t),i=_(r,t),n=+(l.connected>0),o=+(i.connected>0);return n!==o?o-n:(s.name||"").localeCompare(a.name||"")})),W=!!$.trim(),H=W||h?J:J.slice(0,20),B=J.length-20;if(p)return(0,r.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,r.jsx)(n.Qv,{}),(0,r.jsx)(n.Qv,{})]});let Q=M.length>0||K.length>0||L.length>0||J.length>0||D.length>0||F.length>0;return(0,r.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[!Q&&(0,r.jsxs)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[32px] text-text-muted mb-2",children:"search_off"}),(0,r.jsx)("p",{className:"text-text-muted text-sm",children:"No providers match your search"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["Custom Providers (OpenAI/Anthropic Compatible)"," "]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:w-auto",children:[(0,r.jsx)(n.$n,{size:"sm",icon:"add",onClick:()=>T(!0),className:"w-full sm:w-auto",children:"Add Anthropic Compatible"}),(0,r.jsx)(n.$n,{size:"sm",variant:"secondary",icon:"add",onClick:()=>C(!0),className:"w-full !bg-white !text-black hover:!bg-gray-100 sm:w-auto",children:"Add OpenAI Compatible"})]})]}),0===D.length&&0===F.length?(0,r.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,r.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"extension"}),(0,r.jsx)("span",{children:"No custom providers — use buttons above to add OpenAI/Anthropic compatible endpoints"})]}):(0,r.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:[...D,...F].map(e=>(0,r.jsx)(y,{providerId:e.id,provider:e,stats:_(e.id,"apikey"),authType:"compatible",onToggle:t=>q(e.id,"apikey",t)},e.id))})]}),M.length>0&&(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"OAuth Providers"}),(0,r.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,r.jsx)(f,{}),(0,r.jsxs)("button",{onClick:()=>z("oauth"),disabled:!!A,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"oauth"===A?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all OAuth connections","aria-label":"Test all OAuth connections",children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[14px]${"oauth"===A?" animate-spin":""}`,children:"play_arrow"}),"oauth"===A?"Testing...":"Test All"]})]})]}),(0,r.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.map(([e,t])=>(0,r.jsx)(v,{providerId:e,provider:t,stats:_(e,"oauth"),authType:"oauth",onToggle:t=>q(e,"oauth",t)},e))})]}),(K.length>0||L.length>0)&&(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsx)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:"Free Tier Providers"}),(0,r.jsxs)("button",{onClick:()=>z("free"),disabled:!!A,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"free"===A?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all Free connections","aria-label":"Test all Free provider connections",children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[14px]${"free"===A?" animate-spin":""}`,children:"play_arrow"}),"free"===A?"Testing...":"Test All"]})]}),(0,r.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:[K.map(([e,t])=>(0,r.jsx)(v,{providerId:e,provider:t,stats:_(e,"oauth"),authType:"free",onToggle:t=>q(e,"oauth",t)},e)),L.map(([e,t])=>(0,r.jsx)(y,{providerId:e,provider:t,stats:_(e,"apikey"),authType:"apikey",onToggle:t=>q(e,"apikey",t)},e))]})]}),J.length>0&&(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,r.jsxs)("h2",{className:"text-lg sm:text-xl font-semibold flex items-center gap-2 leading-tight",children:["API Key Providers"," "]}),(0,r.jsxs)("button",{onClick:()=>z("apikey"),disabled:!!A,className:`flex w-full items-center justify-center gap-1.5 rounded-lg border px-3 py-2 text-xs font-medium transition-colors sm:w-auto sm:py-1.5 ${"apikey"===A?"bg-primary/20 border-primary/40 text-primary animate-pulse":"bg-bg border-border text-text-muted hover:text-text-main hover:border-primary/40"}`,title:"Test all API Key connections","aria-label":"Test all API Key connections",children:[(0,r.jsx)("span",{className:`material-symbols-outlined text-[14px]${"apikey"===A?" animate-spin":""}`,children:"play_arrow"}),"apikey"===A?"Testing...":"Test All"]})]}),(0,r.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:H.map(([e,t])=>(0,r.jsx)(y,{providerId:e,provider:t,stats:_(e,"apikey"),authType:"apikey",onToggle:t=>q(e,"apikey",t)},e))}),!W&&!h&&B>0&&(0,r.jsxs)("button",{onClick:()=>g(!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,r.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"expand_more"}),"Show all ",J.length," providers"]})]}),(0,r.jsx)(j,{isOpen:b,onClose:()=>C(!1),onCreated:e=>{o(t=>[...t,e]),C(!1)}}),(0,r.jsx)(N,{isOpen:k,onClose:()=>T(!1),onCreated:e=>{o(t=>[...t,e]),T(!1)}}),R&&(0,r.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center px-3 pt-[6vh] sm:pt-[10vh]",onClick:()=>S(null),children:[(0,r.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),(0,r.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,r.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,r.jsx)("h3",{className:"font-semibold",children:"Test Results"}),(0,r.jsx)("button",{onClick:()=>S(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,r.jsx)("span",{className:"material-symbols-outlined text-lg",children:"close"})})]}),(0,r.jsx)("div",{className:"p-5",children:(0,r.jsx)(w,{results:R})})]})]})]})}function v({providerId:e,provider:t,stats:s,authType:a,onToggle:l}){let{connected:i,error:d,errorCode:c,errorTime:p,allDisabled:x}=s,u=!!t.noAuth;return(0,r.jsx)(m(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,r.jsx)(n.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${x?"opacity-50":""}`,children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,r.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,r.jsx)(o.A,{src:`/providers/${t.id}.png`,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,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,r.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:x?(0,r.jsx)(n.Ex,{variant:"default",size:"sm",children:(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):u?(0,r.jsx)(n.Ex,{variant:"success",size:"sm",dot:!0,children:"Ready"}):(0,r.jsxs)(r.Fragment,{children:[g(i,d,c),p&&(0,r.jsx)("span",{className:"text-text-muted",children:p})]})})]})]}),(0,r.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:s.total>0&&(0,r.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),l(!!x)},children:(0,r.jsx)(n.lM,{size:"sm",checked:!x,onChange:()=>{},title:x?"Enable provider":"Disable provider"})})})]})})})}function y({providerId:e,provider:t,stats:s,authType:a,onToggle:l}){let{connected:i,error:d,errorCode:p,errorTime:x,allDisabled:u}=s,h=e.startsWith(c.JH),f=e.startsWith(c.DI);return(0,r.jsx)(m(),{href:`/dashboard/providers/${e}`,className:"group min-w-0",children:(0,r.jsx)(n.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${u?"opacity-50":""}`,children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,r.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,r.jsx)(o.A,{src:h?"responses"===t.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":f?"/providers/anthropic-m.png":`/providers/${t.id}.png`,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,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("h3",{className:"truncate font-semibold",children:t.name}),(0,r.jsx)("div",{className:"flex min-w-0 items-center gap-1.5 text-xs flex-wrap",children:u?(0,r.jsx)(n.Ex,{variant:"default",size:"sm",children:(0,r.jsxs)("span",{className:"flex items-center gap-1",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"pause_circle"}),"Disabled"]})}):(0,r.jsxs)(r.Fragment,{children:[g(i,d,p),h&&(0,r.jsx)(n.Ex,{variant:"default",size:"sm",children:"responses"===t.apiType?"Responses":"Chat"}),f&&(0,r.jsx)(n.Ex,{variant:"default",size:"sm",children:"Messages"}),x&&(0,r.jsx)("span",{className:"text-text-muted",children:x})]})})]})]}),(0,r.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:s.total>0&&(0,r.jsx)("div",{className:"opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100",onClick:e=>{e.preventDefault(),e.stopPropagation(),l(!!u)},children:(0,r.jsx)(n.lM,{size:"sm",checked:!u,onChange:()=>{},title:u?"Enable provider":"Disable provider"})})})]})})})}function j({isOpen:e,onClose:t,onCreated:s}){let[l,i]=(0,a.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1",openAICompatibleRuntime:c.hb}),[o,d]=(0,a.useState)(!1),[p,m]=(0,a.useState)(""),[x,u]=(0,a.useState)(""),[h,f]=(0,a.useState)(!1),[g,b]=(0,a.useState)(null);(0,a.useEffect)(()=>{i(e=>({...e,baseUrl:"https://api.openai.com/v1"}))},[l.apiType]);let v=async()=>{if(l.name.trim()&&l.prefix.trim()&&l.baseUrl.trim()){d(!0);try{let e=await fetch("/api/provider-nodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:l.name,prefix:l.prefix,apiType:l.apiType,baseUrl:l.baseUrl,openAICompatibleRuntime:l.openAICompatibleRuntime,type:"openai-compatible"})}),t=await e.json();e.ok&&(s(t.node),i({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1",openAICompatibleRuntime:c.hb}),m(""),b(null))}catch(e){console.log("Error creating OpenAI Compatible node:",e)}finally{d(!1)}}},y=async()=>{f(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:l.baseUrl,apiKey:p,type:"openai-compatible",modelId:x.trim()||void 0})}),t=await e.json();b(t)}catch{b({valid:!1,error:"Network error"})}finally{f(!1)}};return(0,r.jsx)(n.aF,{isOpen:e,title:"Add OpenAI Compatible",onClose:t,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(n.pd,{label:"Name",value:l.name,onChange:e=>i({...l,name:e.target.value}),placeholder:"OpenAI Compatible (Prod)",hint:"Required. A friendly label for this node."}),(0,r.jsx)(n.pd,{label:"Prefix",value:l.prefix,onChange:e=>i({...l,prefix:e.target.value}),placeholder:"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),(0,r.jsx)(n.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:l.apiType,onChange:e=>i({...l,apiType:e.target.value})}),(0,r.jsx)(n.l6,{label:"Server Type",options:c._8,value:l.openAICompatibleRuntime,onChange:e=>i({...l,openAICompatibleRuntime:e.target.value}),hint:c._8.find(e=>e.value===l.openAICompatibleRuntime)?.description||"Controls how BlueRouter maps thinking/reasoning params for this endpoint."}),(0,r.jsx)(n.pd,{label:"Base URL",value:l.baseUrl,onChange:e=>i({...l,baseUrl:e.target.value}),placeholder:"https://api.openai.com/v1",hint:"Use the base URL (ending in /v1) for your OpenAI-compatible API."}),(0,r.jsx)(n.pd,{label:"API Key (for Check)",type:"password",value:p,onChange:e=>m(e.target.value)}),(0,r.jsx)(n.pd,{label:"Model ID (optional)",value:x,onChange:e=>u(e.target.value),placeholder:"e.g. gpt-4, claude-3-opus",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,r.jsx)(n.$n,{onClick:y,disabled:!p||h||!l.baseUrl.trim(),variant:"secondary",className:"w-full sm:w-auto",children:h?"Checking...":"Check"}),(()=>{if(!g)return null;let{valid:e,error:t,method:s}=g;return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Ex,{variant:"success",children:"Valid"}),"chat"===s&&(0,r.jsx)("span",{className:"text-sm text-text-muted",children:"(via inference test)"})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(n.Ex,{variant:"error",children:"Invalid"}),t&&(0,r.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,r.jsx)(n.$n,{onClick:v,fullWidth:!0,disabled:!l.name.trim()||!l.prefix.trim()||!l.baseUrl.trim()||o,children:o?"Creating...":"Create"}),(0,r.jsx)(n.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function N({isOpen:e,onClose:t,onCreated:s}){let[l,i]=(0,a.useState)({name:"",prefix:"",baseUrl:"https://api.anthropic.com/v1"}),[o,d]=(0,a.useState)(!1),[c,p]=(0,a.useState)(""),[m,x]=(0,a.useState)(""),[u,h]=(0,a.useState)(!1),[f,g]=(0,a.useState)(null);(0,a.useEffect)(()=>{e&&(g(null),p(""),x(""))},[e]);let b=async()=>{if(l.name.trim()&&l.prefix.trim()&&l.baseUrl.trim()){d(!0);try{let e=await fetch("/api/provider-nodes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:l.name,prefix:l.prefix,baseUrl:l.baseUrl,type:"anthropic-compatible"})}),t=await e.json();e.ok&&(s(t.node),i({name:"",prefix:"",baseUrl:"https://api.anthropic.com/v1"}),p(""),g(null))}catch(e){console.log("Error creating Anthropic Compatible node:",e)}finally{d(!1)}}},v=async()=>{h(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:l.baseUrl,apiKey:c,type:"anthropic-compatible",modelId:m.trim()||void 0})}),t=await e.json();g(t)}catch{g({valid:!1,error:"Network error"})}finally{h(!1)}};return(0,r.jsx)(n.aF,{isOpen:e,title:"Add Anthropic Compatible",onClose:t,children:(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)(n.pd,{label:"Name",value:l.name,onChange:e=>i({...l,name:e.target.value}),placeholder:"Anthropic Compatible (Prod)",hint:"Required. A friendly label for this node."}),(0,r.jsx)(n.pd,{label:"Prefix",value:l.prefix,onChange:e=>i({...l,prefix:e.target.value}),placeholder:"ac-prod",hint:"Required. Used as the provider prefix for model IDs."}),(0,r.jsx)(n.pd,{label:"Base URL",value:l.baseUrl,onChange:e=>i({...l,baseUrl:e.target.value}),placeholder:"https://api.anthropic.com/v1",hint:"Use the base URL (ending in /v1) for your Anthropic-compatible API. The system will append /messages."}),(0,r.jsx)(n.pd,{label:"API Key (for Check)",type:"password",value:c,onChange:e=>p(e.target.value)}),(0,r.jsx)(n.pd,{label:"Model ID (optional)",value:m,onChange:e=>x(e.target.value),placeholder:"e.g. claude-3-opus",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,r.jsx)(n.$n,{onClick:v,disabled:!c||u||!l.baseUrl.trim(),variant:"secondary",className:"w-full sm:w-auto",children:u?"Checking...":"Check"}),(()=>{if(!f)return null;let{valid:e,error:t,method:s}=f;return e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Ex,{variant:"success",children:"Valid"}),"chat"===s&&(0,r.jsx)("span",{className:"text-sm text-text-muted",children:"(via inference test)"})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(n.Ex,{variant:"error",children:"Invalid"}),t&&(0,r.jsx)("span",{className:"text-sm text-red-500",children:t})]})})()]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,r.jsx)(n.$n,{onClick:b,fullWidth:!0,disabled:!l.name.trim()||!l.prefix.trim()||!l.baseUrl.trim()||o,children:o?"Creating...":"Create"}),(0,r.jsx)(n.$n,{onClick:t,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function w({results:e}){if(e.error&&!e.results)return(0,r.jsxs)("div",{className:"text-center py-6",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-red-500 text-[32px] mb-2 block",children:"error"}),(0,r.jsx)("p",{className:"text-sm text-red-400",children:e.error})]});let{summary:t,mode:s}=e,a=e.results||[];return(0,r.jsxs)("div",{className:"flex min-w-0 flex-col gap-3",children:[t&&(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-xs mb-1 sm:gap-3",children:[(0,r.jsxs)("span",{className:"text-text-muted",children:[{oauth:"OAuth",free:"Free",apikey:"API Key",provider:"Provider",all:"All"}[s]||s," Test"]}),(0,r.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,r.jsxs)("span",{className:"px-2 py-0.5 rounded bg-red-500/15 text-red-400 font-medium",children:[t.failed," failed"]}),(0,r.jsxs)("span",{className:"text-text-muted sm:ml-auto",children:[t.total," tested"]})]}),a.map((e,t)=>(0,r.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,r.jsx)("span",{className:`material-symbols-outlined text-[16px] ${e.valid?"text-emerald-500":"text-red-500"}`,children:e.valid?"check_circle":"error"}),(0,r.jsxs)("div",{className:"min-w-0 flex-[1_1_160px]",children:[(0,r.jsx)("span",{className:"block truncate font-medium sm:inline",children:e.connectionName}),(0,r.jsxs)("span",{className:"block truncate text-text-muted sm:ml-1.5 sm:inline",children:["(",e.provider,")"]})]}),void 0!==e.latencyMs&&(0,r.jsxs)("span",{className:"shrink-0 text-text-muted font-mono tabular-nums",children:[e.latencyMs,"ms"]}),(0,r.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,r.jsx)("div",{className:"text-center py-4 text-text-muted text-sm",children:"No active connections found for this group."})]})}v.propTypes={providerId:i().string.isRequired,provider:i().shape({id:i().string.isRequired,name:i().string.isRequired,color:i().string,textIcon:i().string}).isRequired,stats:i().shape({connected:i().number,error:i().number,errorCode:i().string,errorTime:i().string}).isRequired,authType:i().string,onToggle:i().func},y.propTypes={providerId:i().string.isRequired,provider:i().shape({id:i().string.isRequired,name:i().string.isRequired,color:i().string,textIcon:i().string,apiType:i().string}).isRequired,stats:i().shape({connected:i().number,error:i().number,errorCode:i().string,errorTime:i().string}).isRequired,authType:i().string,onToggle:i().func},j.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onCreated:i().func.isRequired},N.propTypes={isOpen:i().bool.isRequired,onClose:i().func.isRequired,onCreated:i().func.isRequired},w.propTypes={results:i().shape({mode:i().string,results:i().array,summary:i().shape({total:i().number,passed:i().number,failed:i().number}),error:i().string}).isRequired}},53928:(e,t,s)=>{Promise.resolve().then(s.bind(s,52154))}},e=>{e.O(0,[2574,3862,246,2714,5564,5263,5497,8441,3794,7358],()=>e(e.s=53928)),_N_E=e.O()}]);
@@ -1,4 +1,4 @@
1
1
  (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6812],{60:(e,t,r)=>{Promise.resolve().then(r.bind(r,57076))},57076:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var l=r(95155),s=r(12115),o=r(35497),a=r(65921);function i(e={}){return{name:e.name||"",proxyUrl:e.proxyUrl||"",noProxy:e.noProxy||"",isActive:!1!==e.isActive,strictProxy:!0===e.strictProxy}}function n(){let[e,t]=(0,s.useState)([]),[r,n]=(0,s.useState)(!0),[c,d]=(0,s.useState)(!1),[x,p]=(0,s.useState)(!1),[m,h]=(0,s.useState)(!1),[u,y]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1),[j,v]=(0,s.useState)(!1),[b,k]=(0,s.useState)(null),[N,w]=(0,s.useState)(i()),[C,P]=(0,s.useState)(""),[$,D]=(0,s.useState)({vercelToken:"",projectName:"vercel-relay"}),[T,S]=(0,s.useState)({accountId:"",apiToken:"",projectName:"cloudflare-relay"}),[A,E]=(0,s.useState)({denoToken:"",orgDomain:"",projectName:""}),[U,I]=(0,s.useState)(!1),[O,R]=(0,s.useState)(!1),[W,z]=(0,s.useState)(!1),[F,_]=(0,s.useState)(null),[L,q]=(0,s.useState)([]),[V,J]=(0,s.useState)(!1),[B,M]=(0,s.useState)({current:0,total:0}),[G,H]=(0,s.useState)(!1),[Y,Q]=(0,s.useState)(null),K=(0,s.useRef)(null),Z=(0,a.i)();(0,s.useEffect)(()=>{let e=e=>{K.current&&!K.current.contains(e.target)&&v(!1)};return j&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[j]);let X=(0,s.useCallback)(async()=>{try{let e=await fetch("/api/proxy-pools?includeUsage=true",{cache:"no-store"}),r=await e.json();e.ok&&t(r.proxyPools||[])}catch(e){console.log("Error fetching proxy pools:",e)}finally{n(!1)}},[]);(0,s.useEffect)(()=>{X()},[X]);let ee=()=>{k(null),w(i())},et=()=>{ee(),d(!0)},er=()=>{d(!1),ee()},el=async()=>{let e={name:N.name.trim(),proxyUrl:N.proxyUrl.trim(),noProxy:N.noProxy.trim(),isActive:!0===N.isActive,strictProxy:!0===N.strictProxy};if(e.name&&e.proxyUrl){I(!0);try{let t=!!b,r=await fetch(t?`/api/proxy-pools/${b.id}`:"/api/proxy-pools",{method:t?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(r.ok)await X(),er(),Z.success(b?"Proxy pool updated":"Proxy pool created");else{let e=await r.json();Z.error(e.error||"Failed to save proxy pool")}}catch(e){console.log("Error saving proxy pool:",e)}finally{I(!1)}}},es=async e=>{Q({title:"Delete Proxy Pool",message:`Delete proxy pool "${e.name}"?`,onConfirm:async()=>{Q(null);try{let r=await fetch(`/api/proxy-pools/${e.id}`,{method:"DELETE"});if(r.ok){t(t=>t.filter(t=>t.id!==e.id)),Z.success("Proxy pool deleted");return}let l=await r.json();409===r.status?Z.warning(`Cannot delete: ${l.boundConnectionCount||0} connection(s) are still using this pool.`):Z.error(l.error||"Failed to delete proxy pool")}catch(e){console.log("Error deleting proxy pool:",e),Z.error("Failed to delete proxy pool")}}})},eo=async e=>{_(e);try{let t=await fetch(`/api/proxy-pools/${e}/test`,{method:"POST"}),r=await t.json();if(!t.ok)return void Z.error(r.error||"Failed to test proxy");await X(),Z.success(r.ok?"Proxy test passed":"Proxy test failed")}catch(e){console.log("Error testing proxy pool:",e),Z.error("Failed to test proxy")}finally{_(null)}},ea=async e=>{let r=!e.isActive;t(t=>t.map(t=>t.id===e.id?{...t,isActive:r}:t));try{(await fetch(`/api/proxy-pools/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:r})})).ok||(t(t=>t.map(t=>t.id===e.id?{...t,isActive:e.isActive}:t)),Z.error("Failed to update active state"))}catch(r){console.log("Error toggling active:",r),t(t=>t.map(t=>t.id===e.id?{...t,isActive:e.isActive}:t))}},ei=e.length>0&&L.length===e.length,en=()=>q([]),ec=async t=>{let r=L.length>0?L:e.map(e=>e.id);if(0!==r.length){H(!0);try{let e=0,l=0;for(let s of r)try{(await fetch(`/api/proxy-pools/${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok?e+=1:l+=1}catch{l+=1}await X(),Z.success(`${t?"Activated":"Deactivated"} ${e}${l?`, failed ${l}`:""}`)}finally{H(!1)}}},ed=async()=>{0!==L.length&&Q({title:"Delete Proxy Pools",message:`Delete ${L.length} proxy pool(s)?`,onConfirm:async()=>{Q(null),H(!0);try{let e=0,t=0,r=0;for(let l of L)try{let s=await fetch(`/api/proxy-pools/${l}`,{method:"DELETE"});s.ok?e+=1:409===s.status?t+=1:r+=1}catch{r+=1}await X(),en(),Z.success(`Deleted ${e}${t?`, ${t} bound`:""}${r?`, ${r} failed`:""}`)}finally{H(!1)}}})},ex=async()=>{let t=L.length>0?e.filter(e=>L.includes(e.id)):e;if(0===t.length)return;J(!0),M({current:0,total:t.length});let r=0,l=[],s=0,o=[...t],a=async()=>{for(;o.length>0;){let e=o.shift();if(!e)break;try{let t=await fetch(`/api/proxy-pools/${e.id}/test`,{method:"POST"}),s=await t.json();t.ok&&s.ok?r+=1:l.push(e.id)}catch{l.push(e.id)}finally{M({current:s+=1,total:t.length})}}};await Promise.all(Array.from({length:Math.min(10,t.length)},a)),await X(),J(!1),M({current:0,total:0}),l.length>0?Q({title:"Disable Dead Proxies",message:`Alive: ${r}, Dead: ${l.length}.
2
2
 
3
3
  Disable ${l.length} dead proxies?`,onConfirm:async()=>{Q(null),H(!0);try{for(let e of l)try{await fetch(`/api/proxy-pools/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:!1})})}catch{}await X(),Z.success(`Disabled ${l.length} dead proxies`)}finally{H(!1)}}}):Z.success(`Health check done. Alive: ${r}, Dead: ${l.length}`)};(0,s.useEffect)(()=>{q(t=>t.filter(t=>e.some(e=>e.id===t)))},[e]);let ep=()=>{O||p(!1)},em=()=>{W||h(!1)},eh=()=>{W||y(!1)},eu=()=>{W||g(!1)},ey=async()=>{if($.vercelToken.trim()){z(!0);try{let e=await fetch("/api/proxy-pools/vercel-deploy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)}),t=await e.json();e.ok?(await X(),em(),Z.success(`Deployed: ${t.deployUrl}`)):Z.error(t.error||"Deploy failed")}catch(e){console.log("Error deploying Vercel relay:",e),Z.error("Deploy failed")}finally{z(!1)}}},ef=async()=>{if(T.accountId.trim()&&T.apiToken.trim()){z(!0);try{let e=await fetch("/api/proxy-pools/cloudflare-deploy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(T)}),t=await e.json();e.ok?(await X(),eh(),Z.success(`Deployed: ${t.deployUrl}`)):Z.error(t.error||"Deploy failed")}catch(e){console.log("Error deploying Cloudflare relay:",e),Z.error("Deploy failed")}finally{z(!1)}}},eg=async()=>{if(A.denoToken.trim()&&A.orgDomain.trim()){z(!0);try{let e=await fetch("/api/proxy-pools/deno-deploy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(A)}),t=await e.json();e.ok?(await X(),eu(),Z.success(`Deployed: ${t.deployUrl}`)):Z.error(t.error||"Deploy failed")}catch(e){console.log("Error deploying Deno relay:",e),Z.error("Deploy failed")}finally{z(!1)}}},ej=async()=>{let t=C.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(0===t.length)return void Z.warning("Please paste at least one proxy line.");let r=[],l=[];if(t.forEach((e,t)=>{try{let l=(e=>{let t=e.trim();if(!t)return null;if(t.includes("://")){let e=new URL(t),r=e.port?`${e.hostname}:${e.port}`:e.hostname;return{proxyUrl:e.toString(),name:`Imported ${r}`}}let r=t.split(":");if(4===r.length){let[e,t,l,s]=r;if(!e||!t||!l||!s)throw Error("Invalid host:port:user:pass format");return{proxyUrl:new URL(`http://${encodeURIComponent(l)}:${encodeURIComponent(s)}@${e}:${t}`).toString(),name:`Imported ${e}:${t}`}}throw Error("Unsupported format")})(e);l&&r.push({...l,lineNumber:t+1})}catch(e){l.push(`Line ${t+1}: ${e.message}`)}}),l.length>0)return void Z.error(`Invalid proxy format:
4
- ${l.join("\n")}`);R(!0);try{let t=new Set(e.map(e=>`${(e.proxyUrl||"").trim()}|||${(e.noProxy||"").trim()}`)),l=0,s=0,o=0;for(let e of r){let r=`${e.proxyUrl}|||`;if(t.has(r)){s+=1;continue}(await fetch("/api/proxy-pools",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,proxyUrl:e.proxyUrl,noProxy:"",isActive:!0})})).ok?(l+=1,t.add(r)):o+=1}await X(),p(!1),Z.success(`Batch import completed: Created ${l}, Skipped ${s}, Failed ${o}`)}catch(e){console.log("Error batch importing proxies:",e),Z.error("Batch import failed")}finally{R(!1)}},ev=(0,s.useMemo)(()=>e.filter(e=>!0===e.isActive).length,[e]);return r?(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:gap-6 sm:px-0",children:[(0,l.jsx)(o.Qv,{}),(0,l.jsx)(o.Qv,{})]}):(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:gap-6 sm:px-0",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h1",{className:"text-xl font-semibold sm:text-2xl",children:"Proxy Pools"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Manage reusable per-connection proxies and bind them to provider connections."})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,l.jsxs)("div",{className:"relative",ref:K,children:[(0,l.jsxs)(o.$n,{size:"sm",variant:"secondary",icon:"rocket_launch",onClick:()=>v(!j),children:["Deploy Relay",(0,l.jsx)("span",{className:"material-symbols-outlined ml-1 text-[18px]",children:j?"expand_less":"expand_more"})]}),j&&(0,l.jsxs)("div",{className:"absolute left-0 top-full z-50 mt-1 w-48 rounded-xl border border-black/10 bg-white p-1 shadow-xl dark:border-white/10 dark:bg-zinc-900 sm:left-auto sm:right-0",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>{S({accountId:"",apiToken:"",projectName:"cloudflare-relay"}),y(!0),v(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-text-main transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px] text-orange-500",children:"cloud"}),"Cloudflare Relay"]}),(0,l.jsxs)("button",{type:"button",onClick:()=>{D({vercelToken:"",projectName:"vercel-relay"}),h(!0),v(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-text-main transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px] text-blue-500",children:"cloud_upload"}),"Vercel Relay"]}),(0,l.jsxs)("button",{type:"button",onClick:()=>{E({denoToken:"",orgDomain:"",projectName:"deno-relay"}),g(!0),v(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-text-main transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px] text-green-500",children:"terminal"}),"Deno Relay"]})]})]}),(0,l.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"upload",onClick:()=>{P(""),p(!0)},children:"Batch Import"}),(0,l.jsx)(o.$n,{size:"sm",icon:"add",onClick:et,children:"Add Proxy Pool"})]})]}),(0,l.jsxs)(o.Zp,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[e.length>0&&(0,l.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted cursor-pointer",children:[(0,l.jsx)("input",{type:"checkbox",checked:ei,onChange:()=>q(ei?[]:e.map(e=>e.id)),className:"size-4 rounded border-black/20 dark:border-white/20"}),ei?"Unselect all":"Select all"]}),(0,l.jsxs)(o.Ex,{variant:"default",children:["Total: ",e.length]}),(0,l.jsxs)(o.Ex,{variant:"success",children:["Active: ",ev]})]}),(L.length>0||V)&&(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2 rounded-lg border border-primary/30 bg-primary/5 px-3 py-2",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px] text-primary",children:"checklist"}),(0,l.jsx)("span",{className:"text-xs font-medium text-primary",children:L.length>0?`${L.length} selected`:"All pools"}),(0,l.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[(0,l.jsx)(o.$n,{size:"sm",icon:V?"progress_activity":"health_and_safety",onClick:ex,disabled:V||G||0===e.length,children:V?`Checking ${B.current}/${B.total}`:"Health Check"}),L.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"toggle_on",onClick:()=>ec(!0),disabled:G||V,children:"Activate"}),(0,l.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"toggle_off",onClick:()=>ec(!1),disabled:G||V,children:"Deactivate"}),(0,l.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:ed,disabled:G||V,children:"Delete"}),(0,l.jsx)(o.$n,{size:"sm",variant:"ghost",onClick:en,disabled:G||V,children:"Clear"})]})]})]}),0===e.length?(0,l.jsxs)("div",{className:"text-center py-10",children:[(0,l.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No proxy pool entries yet"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create a proxy pool entry, then assign it to connections."}),(0,l.jsx)(o.$n,{icon:"add",onClick:et,children:"Add Proxy Pool"})]}):(0,l.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.04] dark:divide-white/[0.05]",children:e.map(e=>{var t;return(0,l.jsxs)("div",{className:"flex flex-col gap-3 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 min-w-0 flex-1",children:[(0,l.jsx)("input",{type:"checkbox",checked:L.includes(e.id),onChange:()=>{let t;return t=e.id,q(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"mt-1 size-4 shrink-0 rounded border-black/20 dark:border-white/20"}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,l.jsx)("p",{className:"min-w-0 max-w-full truncate text-sm font-medium sm:max-w-[18rem]",children:e.name}),(0,l.jsx)(o.Ex,{variant:"active"===(t=e.testStatus)?"success":"error"===t?"error":"default",size:"sm",dot:!0,children:e.testStatus||"unknown"}),(0,l.jsx)(o.Ex,{variant:e.isActive?"success":"default",size:"sm",children:e.isActive?"active":"inactive"}),"vercel"===e.type&&(0,l.jsx)(o.Ex,{variant:"default",size:"sm",children:"vercel relay"}),"cloudflare"===e.type&&(0,l.jsx)(o.Ex,{variant:"default",size:"sm",children:"cloudflare relay"}),"deno"===e.type&&(0,l.jsx)(o.Ex,{variant:"default",size:"sm",children:"deno relay"}),(0,l.jsxs)(o.Ex,{variant:"default",size:"sm",children:[e.boundConnectionCount||0," bound"]})]}),(0,l.jsx)("p",{className:"text-xs text-text-muted truncate mt-1",children:e.proxyUrl}),e.noProxy?(0,l.jsxs)("p",{className:"text-xs text-text-muted truncate",children:["No proxy: ",e.noProxy]}):null,(0,l.jsxs)("p",{className:"text-[11px] text-text-muted mt-1",children:["Last tested: ",function(e){if(!e)return"Never";let t=new Date(e);return Number.isNaN(t.getTime())?"Never":t.toLocaleString()}(e.lastTestedAt),e.lastError?` \xb7 ${e.lastError}`:""]})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,l.jsx)(o.lM,{size:"sm",checked:!0===e.isActive,onChange:()=>ea(e),title:e.isActive?"Disable":"Enable"}),(0,l.jsx)("button",{onClick:()=>eo(e.id),className:"p-2 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",title:"Test proxy",disabled:F===e.id,children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",style:F===e.id?{animation:"spin 1s linear infinite"}:void 0,children:F===e.id?"progress_activity":"science"})}),(0,l.jsx)("button",{onClick:()=>{k(e),w(i(e)),d(!0)},className:"p-2 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",title:"Edit",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,l.jsx)("button",{onClick:()=>es(e),className:"p-2 rounded hover:bg-red-500/10 text-red-500",title:"Delete",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id)})})]}),(0,l.jsx)(o.aF,{isOpen:x,title:"Batch Import Proxies",onClose:ep,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium text-text-main mb-1 block",children:"Paste Proxy List (One per line)"}),(0,l.jsx)("textarea",{value:C,onChange:e=>P(e.target.value),placeholder:"http://user:pass@127.0.0.1:7897\n127.0.0.1:7897:user:pass",className:"w-full min-h-[180px] py-2 px-3 text-sm text-text-main bg-white dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-md focus:ring-1 focus:ring-primary/30 focus:border-primary/50 focus:outline-none transition-all"}),(0,l.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Supported formats: protocol://user:pass@host:port, host:port:user:pass"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:ej,disabled:!C.trim()||O,children:O?"Importing...":"Import"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:ep,disabled:O,children:"Cancel"})]})]})}),(0,l.jsx)(o.aF,{isOpen:m,title:"Deploy Vercel Relay",onClose:em,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"rounded-lg bg-blue-500/5 border border-blue-500/10 p-3 flex flex-col gap-1.5",children:[(0,l.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Vercel Relay?"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys an edge relay function to Vercel. All AI provider requests will be forwarded through Vercel's edge network, masking your real IP from providers."}),(0,l.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,l.jsx)("li",{children:"Your IP is replaced by Vercel's dynamic edge IPs (hundreds of IPs across 20+ global regions)"}),(0,l.jsx)("li",{children:"Vercel serves millions of apps — providers can't block Vercel IPs without affecting legitimate traffic"}),(0,l.jsx)("li",{children:"Free tier: 100GB bandwidth/month, 500K edge invocations"}),(0,l.jsx)("li",{children:"Deploy multiple relays on different accounts for more IP diversity"})]})]}),(0,l.jsx)(o.pd,{label:"Vercel API Token",value:$.vercelToken,onChange:e=>D(t=>({...t,vercelToken:e.target.value})),placeholder:"your-vercel-api-token",hint:(0,l.jsxs)(l.Fragment,{children:["Token is used once for deployment and not stored. ",(0,l.jsx)("a",{href:"https://vercel.com/account/tokens",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get token →"})]}),type:"password"}),(0,l.jsx)(o.pd,{label:"Project Name",value:$.projectName,onChange:e=>D(t=>({...t,projectName:e.target.value})),placeholder:"my-relay",hint:"Unique name for your Vercel project. Leave empty for auto-generated name."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:ey,disabled:!$.vercelToken.trim()||W,children:W?"Deploying... (may take ~1 min)":"Deploy"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:em,disabled:W,children:"Cancel"})]})]})}),(0,l.jsx)(o.aF,{isOpen:u,title:"Deploy Cloudflare Relay",onClose:eh,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"rounded-lg bg-orange-500/5 border border-orange-500/10 p-3 flex flex-col gap-1.5",children:[(0,l.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Cloudflare Relay?"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys a Cloudflare Worker as a proxy relay. All AI provider requests will be forwarded through Cloudflare's global edge network."}),(0,l.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,l.jsx)("li",{children:"High performance global routing and IP masking via Cloudflare Workers"}),(0,l.jsx)("li",{children:"Free tier: 100,000 requests per day"}),(0,l.jsx)("li",{children:"Requires Cloudflare Account ID and a Workers API Token (Edit Workers permission)"})]}),(0,l.jsxs)("div",{className:"mt-2 pt-2 border-t border-orange-500/10 text-xs text-text-muted",children:[(0,l.jsx)("p",{className:"font-medium text-text-main mb-1",children:"How to generate your API Token:"}),(0,l.jsxs)("ol",{className:"list-decimal pl-4 space-y-0.5",children:[(0,l.jsxs)("li",{children:["Go to ",(0,l.jsx)("b",{children:"My Profile"})," → ",(0,l.jsx)("b",{children:"API Tokens"})," → ",(0,l.jsx)("b",{children:"Create Token"})]}),(0,l.jsxs)("li",{children:["Scroll down to ",(0,l.jsx)("b",{children:"Custom Token"})," and click ",(0,l.jsx)("b",{children:"Get started"})]}),(0,l.jsxs)("li",{children:["Under ",(0,l.jsx)("b",{children:"Permissions"}),": Account | Workers Scripts | Edit"]}),(0,l.jsxs)("li",{children:["Under ",(0,l.jsx)("b",{children:"Account Resources"}),": Include | Account | ",(0,l.jsx)("i",{children:"Your Account Name"})]}),(0,l.jsxs)("li",{children:["Click ",(0,l.jsx)("b",{children:"Continue to summary"})," → ",(0,l.jsx)("b",{children:"Create Token"})]})]})]})]}),(0,l.jsx)(o.pd,{label:"Account ID",value:T.accountId,onChange:e=>S(t=>({...t,accountId:e.target.value})),placeholder:"your-cloudflare-account-id",hint:(0,l.jsx)(l.Fragment,{children:"Found on the right side of the Cloudflare dashboard overview page."})}),(0,l.jsx)(o.pd,{label:"API Token",value:T.apiToken,onChange:e=>S(t=>({...t,apiToken:e.target.value})),placeholder:"your-cloudflare-api-token",hint:(0,l.jsxs)(l.Fragment,{children:['Requires "Workers Scripts: Edit" permission. ',(0,l.jsx)("a",{href:"https://dash.cloudflare.com/profile/api-tokens",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get token →"})]}),type:"password"}),(0,l.jsx)(o.pd,{label:"Worker Name",value:T.projectName,onChange:e=>S(t=>({...t,projectName:e.target.value})),placeholder:"my-relay",hint:"Unique name for your Cloudflare Worker. Leave empty for auto-generated name."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:ef,disabled:!T.accountId.trim()||!T.apiToken.trim()||W,children:W?"Deploying...":"Deploy Worker"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:eh,disabled:W,children:"Cancel"})]})]})}),(0,l.jsx)(o.aF,{isOpen:f,title:"Deploy Deno Relay",onClose:eu,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"rounded-lg bg-green-500/5 border border-green-500/10 p-3 flex flex-col gap-1.5",children:[(0,l.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Deno Relay?"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys a Deno Deploy v2 app as a proxy relay. Requests are forwarded through Deno's global edge network using relay headers."}),(0,l.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,l.jsx)("li",{children:"Uses Deno Deploy v2 and creates a reusable proxy pool entry automatically"}),(0,l.jsx)("li",{children:"Token is used once for deployment and is not stored by BlueRouter"}),(0,l.jsx)("li",{children:"Use a unique project name if you deploy multiple relays"})]})]}),(0,l.jsx)(o.pd,{label:"Deno Deploy API Token",value:A.denoToken,onChange:e=>E(t=>({...t,denoToken:e.target.value})),placeholder:"your-deno-deploy-api-token",hint:(0,l.jsxs)(l.Fragment,{children:["Requires Deno Deploy API access. ",(0,l.jsx)("a",{href:"https://dash.deno.com/account#access-tokens",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get token →"})]}),type:"password"}),(0,l.jsx)(o.pd,{label:"Organization Domain",value:A.orgDomain,onChange:e=>E(t=>({...t,orgDomain:e.target.value})),placeholder:"your-org.deno.dev",hint:"Your Deno organization domain. Example: your-org.deno.dev"}),(0,l.jsx)(o.pd,{label:"Project Name",value:A.projectName,onChange:e=>E(t=>({...t,projectName:e.target.value})),placeholder:"deno-relay",hint:"Unique name for your Deno Deploy app. Leave empty for auto-generated name."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:eg,disabled:!A.denoToken.trim()||!A.orgDomain.trim()||W,children:W?"Deploying...":"Deploy Deno Relay"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:eu,disabled:W,children:"Cancel"})]})]})}),(0,l.jsx)(o.aF,{isOpen:c,title:b?"Edit Proxy Pool":"Add Proxy Pool",onClose:er,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)(o.pd,{label:"Name",value:N.name,onChange:e=>w(t=>({...t,name:e.target.value})),placeholder:"Office Proxy"}),(0,l.jsx)(o.pd,{label:"Proxy URL",value:N.proxyUrl,onChange:e=>w(t=>({...t,proxyUrl:e.target.value})),placeholder:"http://127.0.0.1:7897"}),(0,l.jsx)(o.pd,{label:"No Proxy",value:N.noProxy,onChange:e=>w(t=>({...t,noProxy:e.target.value})),placeholder:"localhost,127.0.0.1,.internal",hint:"Comma-separated hosts/domains to bypass proxy"}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-medium text-sm",children:"Active"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Inactive pools are ignored by runtime resolution."})]}),(0,l.jsx)(o.lM,{checked:!0===N.isActive,onChange:()=>w(e=>({...e,isActive:!e.isActive})),disabled:U})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-medium text-sm",children:"Strict Proxy"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Fail request if proxy is unreachable instead of falling back to direct."})]}),(0,l.jsx)(o.lM,{checked:!0===N.strictProxy,onChange:()=>w(e=>({...e,strictProxy:!e.strictProxy})),disabled:U})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:el,disabled:!N.name.trim()||!N.proxyUrl.trim()||U,children:U?"Saving...":"Save"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:er,disabled:U,children:"Cancel"})]})]})}),(0,l.jsx)(o.uo,{isOpen:!!Y,onClose:()=>Q(null),onConfirm:Y?.onConfirm,title:Y?.title||"Confirm",message:Y?.message,variant:"danger"})]})}}},e=>{e.O(0,[2574,3862,246,4546,5564,5263,5497,8441,3794,7358],()=>e(e.s=60)),_N_E=e.O()}]);
4
+ ${l.join("\n")}`);R(!0);try{let t=new Set(e.map(e=>`${(e.proxyUrl||"").trim()}|||${(e.noProxy||"").trim()}`)),l=0,s=0,o=0;for(let e of r){let r=`${e.proxyUrl}|||`;if(t.has(r)){s+=1;continue}(await fetch("/api/proxy-pools",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,proxyUrl:e.proxyUrl,noProxy:"",isActive:!0})})).ok?(l+=1,t.add(r)):o+=1}await X(),p(!1),Z.success(`Batch import completed: Created ${l}, Skipped ${s}, Failed ${o}`)}catch(e){console.log("Error batch importing proxies:",e),Z.error("Batch import failed")}finally{R(!1)}},ev=(0,s.useMemo)(()=>e.filter(e=>!0===e.isActive).length,[e]);return r?(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:gap-6 sm:px-0",children:[(0,l.jsx)(o.Qv,{}),(0,l.jsx)(o.Qv,{})]}):(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:gap-6 sm:px-0",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h1",{className:"text-xl font-semibold sm:text-2xl",children:"Proxy Pools"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Manage reusable per-connection proxies and bind them to provider connections."})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,l.jsxs)("div",{className:"relative",ref:K,children:[(0,l.jsxs)(o.$n,{size:"sm",variant:"secondary",icon:"rocket_launch",onClick:()=>v(!j),children:["Deploy Relay",(0,l.jsx)("span",{className:"material-symbols-outlined ml-1 text-[18px]",children:j?"expand_less":"expand_more"})]}),j&&(0,l.jsxs)("div",{className:"absolute left-0 top-full z-50 mt-1 w-48 rounded-xl border border-black/10 bg-white p-1 shadow-xl dark:border-white/10 dark:bg-zinc-900 sm:left-auto sm:right-0",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>{S({accountId:"",apiToken:"",projectName:"cloudflare-relay"}),y(!0),v(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-text-main transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px] text-orange-500",children:"cloud"}),"Cloudflare Relay"]}),(0,l.jsxs)("button",{type:"button",onClick:()=>{D({vercelToken:"",projectName:"vercel-relay"}),h(!0),v(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-text-main transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px] text-blue-500",children:"cloud_upload"}),"Vercel Relay"]}),(0,l.jsxs)("button",{type:"button",onClick:()=>{E({denoToken:"",orgDomain:"",projectName:"deno-relay"}),g(!0),v(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-text-main transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px] text-green-500",children:"terminal"}),"Deno Relay"]})]})]}),(0,l.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"upload",onClick:()=>{P(""),p(!0)},children:"Batch Import"}),(0,l.jsx)(o.$n,{size:"sm",icon:"add",onClick:et,children:"Add Proxy Pool"})]})]}),(0,l.jsxs)(o.Zp,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[e.length>0&&(0,l.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted cursor-pointer",children:[(0,l.jsx)("input",{type:"checkbox",checked:ei,onChange:()=>q(ei?[]:e.map(e=>e.id)),className:"size-4 rounded border-black/20 dark:border-white/20"}),ei?"Unselect all":"Select all"]}),(0,l.jsxs)(o.Ex,{variant:"default",children:["Total: ",e.length]}),(0,l.jsxs)(o.Ex,{variant:"success",children:["Active: ",ev]})]}),(L.length>0||V)&&(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2 rounded-lg border border-primary/30 bg-primary/5 px-3 py-2",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px] text-primary",children:"checklist"}),(0,l.jsx)("span",{className:"text-xs font-medium text-primary",children:L.length>0?`${L.length} selected`:"All pools"}),(0,l.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[(0,l.jsx)(o.$n,{size:"sm",icon:V?"progress_activity":"health_and_safety",onClick:ex,disabled:V||G||0===e.length,children:V?`Checking ${B.current}/${B.total}`:"Health Check"}),L.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"toggle_on",onClick:()=>ec(!0),disabled:G||V,children:"Activate"}),(0,l.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"toggle_off",onClick:()=>ec(!1),disabled:G||V,children:"Deactivate"}),(0,l.jsx)(o.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:ed,disabled:G||V,children:"Delete"}),(0,l.jsx)(o.$n,{size:"sm",variant:"ghost",onClick:en,disabled:G||V,children:"Clear"})]})]})]}),0===e.length?(0,l.jsxs)("div",{className:"text-center py-10",children:[(0,l.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No proxy pool entries yet"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create a proxy pool entry, then assign it to connections."}),(0,l.jsx)(o.$n,{icon:"add",onClick:et,children:"Add Proxy Pool"})]}):(0,l.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.04] dark:divide-white/[0.05]",children:e.map(e=>{var t;return(0,l.jsxs)("div",{className:"flex flex-col gap-3 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 min-w-0 flex-1",children:[(0,l.jsx)("input",{type:"checkbox",checked:L.includes(e.id),onChange:()=>{let t;return t=e.id,q(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"mt-1 size-4 shrink-0 rounded border-black/20 dark:border-white/20"}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,l.jsx)("p",{className:"min-w-0 max-w-full truncate text-sm font-medium sm:max-w-[18rem]",children:e.name}),(0,l.jsx)(o.Ex,{variant:"active"===(t=e.testStatus)?"success":"error"===t?"error":"default",size:"sm",dot:!0,children:e.testStatus||"unknown"}),(0,l.jsx)(o.Ex,{variant:e.isActive?"success":"default",size:"sm",children:e.isActive?"active":"inactive"}),"vercel"===e.type&&(0,l.jsx)(o.Ex,{variant:"default",size:"sm",children:"vercel relay"}),"cloudflare"===e.type&&(0,l.jsx)(o.Ex,{variant:"default",size:"sm",children:"cloudflare relay"}),"deno"===e.type&&(0,l.jsx)(o.Ex,{variant:"default",size:"sm",children:"deno relay"}),(0,l.jsxs)(o.Ex,{variant:"default",size:"sm",children:[e.boundConnectionCount||0," bound"]})]}),(0,l.jsx)("p",{className:"text-xs text-text-muted truncate mt-1",children:e.proxyUrl}),e.noProxy?(0,l.jsxs)("p",{className:"text-xs text-text-muted truncate",children:["No proxy: ",e.noProxy]}):null,(0,l.jsxs)("p",{className:"text-[11px] text-text-muted mt-1",children:["Last tested: ",function(e){if(!e)return"Never";let t=new Date(e);return Number.isNaN(t.getTime())?"Never":t.toLocaleString()}(e.lastTestedAt),e.lastError?` \xb7 ${e.lastError}`:""]})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,l.jsx)(o.lM,{size:"sm",checked:!0===e.isActive,onChange:()=>ea(e),title:e.isActive?"Disable":"Enable"}),(0,l.jsx)("button",{onClick:()=>eo(e.id),className:"p-2 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",title:"Test proxy",disabled:F===e.id,children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",style:F===e.id?{animation:"spin 1s linear infinite"}:void 0,children:F===e.id?"progress_activity":"science"})}),(0,l.jsx)("button",{onClick:()=>{k(e),w(i(e)),d(!0)},className:"p-2 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",title:"Edit",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,l.jsx)("button",{onClick:()=>es(e),className:"p-2 rounded hover:bg-red-500/10 text-red-500",title:"Delete",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id)})})]}),(0,l.jsx)(o.aF,{isOpen:x,title:"Batch Import Proxies",onClose:ep,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium text-text-main mb-1 block",children:"Paste Proxy List (One per line)"}),(0,l.jsx)("textarea",{value:C,onChange:e=>P(e.target.value),placeholder:"http://user:pass@127.0.0.1:7897\n127.0.0.1:7897:user:pass",className:"w-full min-h-[180px] py-2 px-3 text-sm text-text-main bg-white dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-md focus:ring-1 focus:ring-primary/30 focus:border-primary/50 focus:outline-none transition-all"}),(0,l.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Supported formats: protocol://user:pass@host:port, host:port:user:pass"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:ej,disabled:!C.trim()||O,children:O?"Importing...":"Import"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:ep,disabled:O,children:"Cancel"})]})]})}),(0,l.jsx)(o.aF,{isOpen:m,title:"Deploy Vercel Relay",onClose:em,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"rounded-lg bg-blue-500/5 border border-blue-500/10 p-3 flex flex-col gap-1.5",children:[(0,l.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Vercel Relay?"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys an edge relay function to Vercel. All AI provider requests will be forwarded through Vercel's edge network, masking your real IP from providers."}),(0,l.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,l.jsx)("li",{children:"Your IP is replaced by Vercel's dynamic edge IPs (hundreds of IPs across 20+ global regions)"}),(0,l.jsx)("li",{children:"Vercel serves millions of apps — providers can't block Vercel IPs without affecting legitimate traffic"}),(0,l.jsx)("li",{children:"Free tier: 100GB bandwidth/month, 500K edge invocations"}),(0,l.jsx)("li",{children:"Deploy multiple relays on different accounts for more IP diversity"})]})]}),(0,l.jsx)(o.pd,{label:"Vercel API Token",value:$.vercelToken,onChange:e=>D(t=>({...t,vercelToken:e.target.value})),placeholder:"your-vercel-api-token",hint:(0,l.jsxs)(l.Fragment,{children:["Token is used once for deployment and not stored. ",(0,l.jsx)("a",{href:"https://vercel.com/account/tokens",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get token →"})]}),type:"password"}),(0,l.jsx)(o.pd,{label:"Project Name",value:$.projectName,onChange:e=>D(t=>({...t,projectName:e.target.value})),placeholder:"my-relay",hint:"Unique name for your Vercel project. Leave empty for auto-generated name."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:ey,disabled:!$.vercelToken.trim()||W,children:W?"Deploying... (may take ~1 min)":"Deploy"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:em,disabled:W,children:"Cancel"})]})]})}),(0,l.jsx)(o.aF,{isOpen:u,title:"Deploy Cloudflare Relay",onClose:eh,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"rounded-lg bg-orange-500/5 border border-orange-500/10 p-3 flex flex-col gap-1.5",children:[(0,l.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Cloudflare Relay?"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys a Cloudflare Worker as a proxy relay. All AI provider requests will be forwarded through Cloudflare's global edge network."}),(0,l.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,l.jsx)("li",{children:"High performance global routing and IP masking via Cloudflare Workers"}),(0,l.jsx)("li",{children:"Free tier: 100,000 requests per day"}),(0,l.jsx)("li",{children:"Requires Cloudflare Account ID and a Workers API Token (Edit Workers permission)"})]}),(0,l.jsxs)("div",{className:"mt-2 pt-2 border-t border-orange-500/10 text-xs text-text-muted",children:[(0,l.jsx)("p",{className:"font-medium text-text-main mb-1",children:"How to generate your API Token:"}),(0,l.jsxs)("ol",{className:"list-decimal pl-4 space-y-0.5",children:[(0,l.jsxs)("li",{children:["Go to ",(0,l.jsx)("b",{children:"My Profile"})," → ",(0,l.jsx)("b",{children:"API Tokens"})," → ",(0,l.jsx)("b",{children:"Create Token"})]}),(0,l.jsxs)("li",{children:["Scroll down to ",(0,l.jsx)("b",{children:"Custom Token"})," and click ",(0,l.jsx)("b",{children:"Get started"})]}),(0,l.jsxs)("li",{children:["Under ",(0,l.jsx)("b",{children:"Permissions"}),": Account | Workers Scripts | Edit"]}),(0,l.jsxs)("li",{children:["Under ",(0,l.jsx)("b",{children:"Account Resources"}),": Include | Account | ",(0,l.jsx)("i",{children:"Your Account Name"})]}),(0,l.jsxs)("li",{children:["Click ",(0,l.jsx)("b",{children:"Continue to summary"})," → ",(0,l.jsx)("b",{children:"Create Token"})]})]})]})]}),(0,l.jsx)(o.pd,{label:"Account ID",value:T.accountId,onChange:e=>S(t=>({...t,accountId:e.target.value})),placeholder:"your-cloudflare-account-id",hint:(0,l.jsx)(l.Fragment,{children:"Found on the right side of the Cloudflare dashboard overview page."})}),(0,l.jsx)(o.pd,{label:"API Token",value:T.apiToken,onChange:e=>S(t=>({...t,apiToken:e.target.value})),placeholder:"your-cloudflare-api-token",hint:(0,l.jsxs)(l.Fragment,{children:['Requires "Workers Scripts: Edit" permission. ',(0,l.jsx)("a",{href:"https://dash.cloudflare.com/profile/api-tokens",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get token →"})]}),type:"password"}),(0,l.jsx)(o.pd,{label:"Worker Name",value:T.projectName,onChange:e=>S(t=>({...t,projectName:e.target.value})),placeholder:"my-relay",hint:"Unique name for your Cloudflare Worker. Leave empty for auto-generated name."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:ef,disabled:!T.accountId.trim()||!T.apiToken.trim()||W,children:W?"Deploying...":"Deploy Worker"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:eh,disabled:W,children:"Cancel"})]})]})}),(0,l.jsx)(o.aF,{isOpen:f,title:"Deploy Deno Relay",onClose:eu,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"rounded-lg bg-green-500/5 border border-green-500/10 p-3 flex flex-col gap-1.5",children:[(0,l.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Deno Relay?"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys a Deno Deploy v2 app as a proxy relay. Requests are forwarded through Deno's global edge network using relay headers."}),(0,l.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,l.jsx)("li",{children:"Uses Deno Deploy v2 and creates a reusable proxy pool entry automatically"}),(0,l.jsx)("li",{children:"Token is used once for deployment and is not stored by BlueRouter"}),(0,l.jsx)("li",{children:"Use a unique project name if you deploy multiple relays"})]})]}),(0,l.jsx)(o.pd,{label:"Deno Deploy API Token",value:A.denoToken,onChange:e=>E(t=>({...t,denoToken:e.target.value})),placeholder:"your-deno-deploy-api-token",hint:(0,l.jsxs)(l.Fragment,{children:["Requires Deno Deploy API access. ",(0,l.jsx)("a",{href:"https://dash.deno.com/account#access-tokens",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get token →"})]}),type:"password"}),(0,l.jsx)(o.pd,{label:"Organization Domain",value:A.orgDomain,onChange:e=>E(t=>({...t,orgDomain:e.target.value})),placeholder:"your-org.deno.dev",hint:"Your Deno organization domain. Example: your-org.deno.dev"}),(0,l.jsx)(o.pd,{label:"Project Name",value:A.projectName,onChange:e=>E(t=>({...t,projectName:e.target.value})),placeholder:"deno-relay",hint:"Unique name for your Deno Deploy app. Leave empty for auto-generated name."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:eg,disabled:!A.denoToken.trim()||!A.orgDomain.trim()||W,children:W?"Deploying...":"Deploy Deno Relay"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:eu,disabled:W,children:"Cancel"})]})]})}),(0,l.jsx)(o.aF,{isOpen:c,title:b?"Edit Proxy Pool":"Add Proxy Pool",onClose:er,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)(o.pd,{label:"Name",value:N.name,onChange:e=>w(t=>({...t,name:e.target.value})),placeholder:"Office Proxy"}),(0,l.jsx)(o.pd,{label:"Proxy URL",value:N.proxyUrl,onChange:e=>w(t=>({...t,proxyUrl:e.target.value})),placeholder:"http://127.0.0.1:7897"}),(0,l.jsx)(o.pd,{label:"No Proxy",value:N.noProxy,onChange:e=>w(t=>({...t,noProxy:e.target.value})),placeholder:"localhost,127.0.0.1,.internal",hint:"Comma-separated hosts/domains to bypass proxy"}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-medium text-sm",children:"Active"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Inactive pools are ignored by runtime resolution."})]}),(0,l.jsx)(o.lM,{checked:!0===N.isActive,onChange:()=>w(e=>({...e,isActive:!e.isActive})),disabled:U})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-medium text-sm",children:"Strict Proxy"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Fail request if proxy is unreachable instead of falling back to direct."})]}),(0,l.jsx)(o.lM,{checked:!0===N.strictProxy,onChange:()=>w(e=>({...e,strictProxy:!e.strictProxy})),disabled:U})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(o.$n,{fullWidth:!0,onClick:el,disabled:!N.name.trim()||!N.proxyUrl.trim()||U,children:U?"Saving...":"Save"}),(0,l.jsx)(o.$n,{fullWidth:!0,variant:"ghost",onClick:er,disabled:U,children:"Cancel"})]})]})}),(0,l.jsx)(o.uo,{isOpen:!!Y,onClose:()=>Q(null),onConfirm:Y?.onConfirm,title:Y?.title||"Confirm",message:Y?.message,variant:"danger"})]})}}},e=>{e.O(0,[2574,3862,246,2714,5564,5263,5497,8441,3794,7358],()=>e(e.s=60)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{5744:(e,t,r)=>{Promise.resolve().then(r.bind(r,25055)),Promise.resolve().then(r.bind(r,25086))},25055:(e,t,r)=>{"use strict";r.d(t,{default:()=>j});var a=r(95155),l=r(12115),s=r(57250),i=r(97413),n=r(98542),o=r(57294),c=r(84588),d=r(35497),u=r(52679);function m(e){let t=e=>"string"==typeof e&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);return t(e.email)?e.email:(t(e.name),e.name)}function x(e,t){let r=t[e.id]?.quotas?.[0];return r&&"number"==typeof r.remaining?r.remaining:1/0}function p(e,t){let r=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>r.has(e)))}async function h(e,t){return await e(t)}let b="quotaCacheData";function g(){try{let e=window.localStorage.getItem(b);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}function f(e,t){try{let r=g();r[e]={...t,cachedAt:new Date().toISOString()},window.localStorage.setItem(b,JSON.stringify(r))}catch(e){console.error("Error writing quota cache:",e)}}let v="quotaAutoRefresh",y=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],k=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}],w=[10,20,50,100];function j(){let[e,t]=(0,l.useState)([]),[r,j]=(0,l.useState)({}),[N,S]=(0,l.useState)({}),[C,E]=(0,l.useState)({}),[P,$]=(0,l.useState)(!0),[q,A]=(0,l.useState)(null),[I,_]=(0,l.useState)(!1),[T,z]=(0,l.useState)(!1),[D,F]=(0,l.useState)(60),[O,M]=(0,l.useState)(!0),[L,R]=(0,l.useState)(null),[U,J]=(0,l.useState)(null),[B,G]=(0,l.useState)(!1),[H,K]=(0,l.useState)(null),[W,Q]=(0,l.useState)([]),[V,X]=(0,l.useState)("all"),[Y,Z]=(0,l.useState)([]),[ee,et]=(0,l.useState)("all"),[er,ea]=(0,l.useState)("default"),[el,es]=(0,l.useState)(!1),[ei,en]=(0,l.useState)(!1),[eo,ec]=(0,l.useState)(!1),[ed,eu]=(0,l.useState)(1),[em,ex]=(0,l.useState)(20),[ep,eh]=(0,l.useState)(String(20)),[eb,eg]=(0,l.useState)({page:1,pageSize:20,total:0,totalPages:1}),[ef,ev]=(0,l.useState)({eligibleConnections:0,providerFilteredConnections:0}),ey=(0,l.useRef)(null),ek=(0,l.useRef)(null),ew=(0,l.useCallback)(async(e=ed)=>{try{var r,a;let l=new URLSearchParams({page:String(e),pageSize:String(em),accountStatus:ee,sort:"priority"});"all"!==V&&l.set("provider",V);let s=await fetch(`/api/providers/client?${l.toString()}`);if(!s.ok)throw Error("Failed to fetch connections");let i=await s.json(),n=i.connections||[],o=(r=i.pagination,r||{page:1,pageSize:em,total:0,totalPages:1}),c=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(i.totals,n.length);return t(n),Z(i.providerOptions||[]),eg(o),ev(c),eu((a=i.pagination,a?.page||e)),n}catch(e){return console.error("Error fetching connections:",e),t([]),Z([]),eg({page:1,pageSize:em,total:0,totalPages:1}),ev({eligibleConnections:0,providerFilteredConnections:0}),[]}},[ee,el,ed,em,V]),ej=(0,l.useCallback)(async(e,t)=>{S(t=>({...t,[e]:!0})),E(t=>({...t,[e]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${t} (${e})`);let r=await fetch(`/api/usage/${e}`);if(!r.ok){let a=(await r.json().catch(()=>({}))).error||r.statusText;if(404===r.status)return void console.warn(`[ProviderLimits] Connection not found for ${t}, skipping`);if(401===r.status){console.warn(`[ProviderLimits] Auth error for ${t}:`,a);let r={quotas:[],message:a};j(t=>({...t,[e]:r})),f(e,r);return}throw Error(`HTTP ${r.status}: ${a}`)}let a=await r.json();console.log(`[ProviderLimits] Got quota for ${t}:`,a);let l={quotas:(0,o.W_)(t,a),plan:a.plan||null,message:a.message||null,raw:a};j(t=>({...t,[e]:l})),f(e,l)}catch(r){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),E(t=>({...t,[e]:r.message||"Failed to fetch quota"}))}finally{S(t=>({...t,[e]:!1}))}},[]),eN=(0,l.useCallback)(async(e,t)=>{await ej(e,t),A(new Date)},[ej]),eS=(0,l.useCallback)(async e=>{if(confirm("Delete this connection?")){R(e);try{if((await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok){j(t=>{let r={...t};return delete r[e],r}),S(t=>{let r={...t};return delete r[e],r}),E(t=>{let r={...t};return delete r[e],r});try{let t=g();t[e]&&(delete t[e],window.localStorage.setItem(b,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await h(ew,ed)}}catch(e){console.error("Error deleting connection:",e)}finally{R(null)}}},[ew,ed]),eC=(0,l.useCallback)(async(e,t)=>{J(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(j(e=>({...e})),await h(ew,ed))}catch(e){console.error("Error updating connection status:",e)}finally{J(null)}},[ew,ed]),eE=(0,l.useCallback)(async e=>{if(!H?.id)return;let t=H.id,r=H.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await ew(),G(!1),K(null),u.wb.includes(r)&&await ej(t,r))}catch(e){console.error("Error saving connection:",e)}},[H,ew,ej]);(0,l.useEffect)(()=>{let e=!1;return fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.json()).then(t=>{!e&&t?.proxyPools&&Q(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let eP=(0,l.useCallback)(async()=>{if(!T){z(!0),F(60);try{let e,t=await ew(ed);S((e={},t.forEach(t=>{e[t.id]=!0}),e)),E(e=>p(e,t)),j(e=>p(e,t)),await Promise.all(t.map(e=>ej(e.id,e.provider))),A(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{z(!1)}}},[T,ew,ej,ed]);(0,l.useEffect)(()=>{(async()=>{M(!0);let e=await ew(ed);M(!1);let t=g(),r={},a={},l=[],s=null;e.forEach(e=>{let i=t[e.id];if(i){if(r[e.id]=!1,a[e.id]={quotas:i.quotas,plan:i.plan,message:i.message,raw:i.raw},i.cachedAt){let e=new Date(i.cachedAt);(!s||e>s)&&(s=e)}}else r[e.id]=!0,l.push(e)}),S(r),E(r=>{let a=p(r,e);return e.forEach(e=>{t[e.id]&&(a[e.id]=null)}),a}),j(t=>({...p(t,e),...a})),s&&A(s),l.length>0&&(await Promise.all(l.map(e=>ej(e.id,e.provider))),A(new Date))})()},[ew,ej,ed]),(0,l.useEffect)(()=>{let e=window.localStorage.getItem(v);$(null===e||"true"===e),_(!0)},[]),(0,l.useEffect)(()=>{I&&window.localStorage.setItem(v,String(P))},[P,I]),(0,l.useEffect)(()=>{if(!I||!P){ey.current&&(clearInterval(ey.current),ey.current=null),ek.current&&(clearInterval(ek.current),ek.current=null);return}return ey.current=setInterval(()=>{eP()},6e4),ek.current=setInterval(()=>{F(e=>e<=1?60:e-1)},1e3),()=>{ey.current&&clearInterval(ey.current),ek.current&&clearInterval(ek.current)}},[P,eP,I]),(0,l.useEffect)(()=>{let e=()=>{document.hidden?(ey.current&&(clearInterval(ey.current),ey.current=null),ek.current&&(clearInterval(ek.current),ek.current=null)):P&&I&&(ey.current=setInterval(eP,6e4),ek.current=setInterval(()=>{F(e=>e<=1?60:e-1)},1e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[P,eP,I]);let e$=(0,l.useMemo)(()=>(function(e,t,r,a,l){if("codex"===a&&"default"!==l)return[...e].sort((e,r)=>{let a=x(e,t),s=x(r,t),i="remaining-asc"===l?a-s:s-a;return 0!==i?i:(m(e)||"").localeCompare(m(r)||"")});if(!r)return e;let s=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=s(e)-s(t);return 0!==r?r:(e.provider||"").localeCompare(t.provider||"")||(m(e)||"").localeCompare(m(t)||"")})})(e,r,el,V,er),[e,r,el,V,er]),eq=e=>{let t=r[e.id]?.quotas;return!!t?.length&&t.some(e=>!!e.total&&!(e.total<=0)&&5>=(0,o.$4)(e.used,e.total))},eA=(0,l.useCallback)(async(e,t)=>{if(e.length&&!eo){ec(!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 h(ew,ed)}catch(e){console.error("Error bulk toggling connections:",e)}finally{ec(!1)}}},[eo,ew,ed]),eI="all"===V?"All providers":V,e_=ef.eligibleConnections>0,eT=e$.length>0,ez=ef.eligibleConnections?ef.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"===V?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===ee?"turned off":"active"===ee?"active":"matching"} accounts found for ${V}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},eD=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}`}(eb),eF=!w.includes(em);return O||e_?O||eT?(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:()=>en(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":ei,title:"Filter quota providers",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===V?(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,a.jsx)(s.A,{src:`/providers/${V}.png`,alt:V,size:18,className:"size-[18px] rounded object-contain",fallbackText:V.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate capitalize hidden lg:inline",children:eI})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),ei&&(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:()=>en(!1)}),(0,a.jsxs)("div",{className:"absolute left-0 z-40 mt-2 w-64 overflow-hidden rounded-2xl border border-black/10 bg-surface/95 p-1.5 shadow-xl shadow-black/10 backdrop-blur dark:border-white/10 dark:bg-surface/95 sm:w-72",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>{"all"!==V&&eu(1),X("all"),en(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${"all"===V?"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-[22px]",children:"apps"}),(0,a.jsx)("span",{className:"font-medium",children:"All providers"}),"all"===V&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",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-72 overflow-y-auto pr-1",children:Y.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{V!==e&&eu(1),X(e),en(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${V===e?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)(s.A,{src:`/providers/${e}.png`,alt:e,size:24,className:"size-6 rounded-md object-contain",fallbackText:e.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"font-medium capitalize",children:e}),V===e&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]},e))})]})]})]}),(0,a.jsx)("select",{value:ee,onChange:e=>{let t=e.target.value;ee!==t&&eu(1),et(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:y.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),"codex"===V&&(0,a.jsx)("select",{value:er,onChange:e=>ea(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:k.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsxs)("button",{type:"button",onClick:()=>es(e=>!e),"aria-pressed":el,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 text-xs transition-colors ${el?"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:()=>{eA(e$.filter(e=>(e.isActive??!0)&&eq(e)).map(e=>e.id),!1)},disabled:eo,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:()=>{eA(e$.filter(e=>!(e.isActive??!0)&&!eq(e)).map(e=>e.id),!0)},disabled:eo,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"})]}),(0,a.jsxs)("button",{onClick:()=>$(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:P?"Disable auto-refresh":"Enable auto-refresh",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${P?"text-primary":"text-text-muted"}`,children:P?"toggle_on":"toggle_off"}),(0,a.jsx)("span",{className:"hidden text-text-primary sm:inline",children:"Auto-refresh"}),P&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",D,"s)"]})]}),(0,a.jsx)("button",{type:"button",onClick:eP,disabled:T,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] ${T?"animate-spin":""}`,children:"refresh"})})]})}),el&&(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:e$.map(e=>{let t=r[e.id],l=N[e.id],o=C[e.id],d=!1===e.isActive,u=L===e.id||U===e.id;return(0,a.jsxs)(c.default,{padding:"none",className:`min-w-0 ${d?"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)(s.A,{src:`/providers/${e.provider}.png`,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}),m(e)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:m(e)}):null]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eN(e.id,e.provider),disabled:l||u,"aria-label":"Refresh quota",className:"p-1.5 rounded-lg hover:bg-black/5 dark:hover:bg-white/5 transition-colors disabled:opacity-50",title:"Refresh quota",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${l?"animate-spin":""}`,children:"refresh"})}),(0,a.jsx)("button",{type:"button",onClick:()=>{K(e),G(!0)},disabled:u,"aria-label":"Edit connection",className:"p-1.5 rounded-lg hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary transition-colors disabled:opacity-50",title:"Edit connection",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eS(e.id),disabled:u,"aria-label":"Delete connection",className:"p-1.5 rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",title:"Delete connection",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] ${L===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.default,{size:"sm",checked:e.isActive??!0,disabled:u,onChange:t=>eC(e.id,t)})})]})]})}),(0,a.jsx)("div",{className:"px-2 py-1.5",children:l?(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"})}):o?(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:o})]}):t?.message?(0,a.jsx)("div",{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-xs text-text-muted",children:t.message})}):(0,a.jsx)(i.A,{quotas:t?.quotas,compact:!0,sortMode:"default",showSortLabel:"codex"===e.provider&&"default"!==er})})]},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:eD}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:eF?"custom":String(em),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(eu(1),ex(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:[w.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:ep,onChange:e=>eh(e.target.value),onBlur:()=>{let e=Number.parseInt(ep,10);if(!Number.isFinite(e))return void eh(String(em));let t=Math.min(500,Math.max(1,e));eu(1),ex(t),eh(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(ep,10);if(!Number.isFinite(t))return void eh(String(em));let r=Math.min(500,Math.max(1,t));eu(1),ex(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 ",eb.page," / ",eb.totalPages]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eu(1),disabled:eb.page<=1||O||T,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:()=>eu(e=>Math.max(1,e-1)),disabled:eb.page<=1||O||T,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:()=>eu(e=>Math.min(eb.totalPages,e+1)),disabled:eb.page>=eb.totalPages||O||T,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:()=>eu(eb.totalPages),disabled:eb.page>=eb.totalPages||O||T,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)(d.wI,{isOpen:B,connection:H,proxyPools:W,onSave:eE,onClose:()=>{G(!1),K(null)}})]}):(0,a.jsx)(c.default,{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:ez.icon}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:ez.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:ez.description})]})}):(0,a.jsx)(c.default,{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,[2574,3862,246,4546,5564,5263,5497,7413,8441,3794,7358],()=>e(e.s=5744)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{5744:(e,t,r)=>{Promise.resolve().then(r.bind(r,25055)),Promise.resolve().then(r.bind(r,25086))},25055:(e,t,r)=>{"use strict";r.d(t,{default:()=>j});var a=r(95155),l=r(12115),s=r(57250),i=r(97413),n=r(98542),o=r(57294),c=r(84588),d=r(35497),u=r(52679);function m(e){let t=e=>"string"==typeof e&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);return t(e.email)?e.email:(t(e.name),e.name)}function x(e,t){let r=t[e.id]?.quotas?.[0];return r&&"number"==typeof r.remaining?r.remaining:1/0}function p(e,t){let r=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>r.has(e)))}async function h(e,t){return await e(t)}let b="quotaCacheData";function g(){try{let e=window.localStorage.getItem(b);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}function f(e,t){try{let r=g();r[e]={...t,cachedAt:new Date().toISOString()},window.localStorage.setItem(b,JSON.stringify(r))}catch(e){console.error("Error writing quota cache:",e)}}let v="quotaAutoRefresh",y=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],k=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}],w=[10,20,50,100];function j(){let[e,t]=(0,l.useState)([]),[r,j]=(0,l.useState)({}),[N,S]=(0,l.useState)({}),[C,E]=(0,l.useState)({}),[P,$]=(0,l.useState)(!0),[q,A]=(0,l.useState)(null),[I,_]=(0,l.useState)(!1),[T,z]=(0,l.useState)(!1),[D,F]=(0,l.useState)(60),[O,M]=(0,l.useState)(!0),[L,R]=(0,l.useState)(null),[U,J]=(0,l.useState)(null),[B,G]=(0,l.useState)(!1),[H,K]=(0,l.useState)(null),[W,Q]=(0,l.useState)([]),[V,X]=(0,l.useState)("all"),[Y,Z]=(0,l.useState)([]),[ee,et]=(0,l.useState)("all"),[er,ea]=(0,l.useState)("default"),[el,es]=(0,l.useState)(!1),[ei,en]=(0,l.useState)(!1),[eo,ec]=(0,l.useState)(!1),[ed,eu]=(0,l.useState)(1),[em,ex]=(0,l.useState)(20),[ep,eh]=(0,l.useState)(String(20)),[eb,eg]=(0,l.useState)({page:1,pageSize:20,total:0,totalPages:1}),[ef,ev]=(0,l.useState)({eligibleConnections:0,providerFilteredConnections:0}),ey=(0,l.useRef)(null),ek=(0,l.useRef)(null),ew=(0,l.useCallback)(async(e=ed)=>{try{var r,a;let l=new URLSearchParams({page:String(e),pageSize:String(em),accountStatus:ee,sort:"priority"});"all"!==V&&l.set("provider",V);let s=await fetch(`/api/providers/client?${l.toString()}`);if(!s.ok)throw Error("Failed to fetch connections");let i=await s.json(),n=i.connections||[],o=(r=i.pagination,r||{page:1,pageSize:em,total:0,totalPages:1}),c=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(i.totals,n.length);return t(n),Z(i.providerOptions||[]),eg(o),ev(c),eu((a=i.pagination,a?.page||e)),n}catch(e){return console.error("Error fetching connections:",e),t([]),Z([]),eg({page:1,pageSize:em,total:0,totalPages:1}),ev({eligibleConnections:0,providerFilteredConnections:0}),[]}},[ee,el,ed,em,V]),ej=(0,l.useCallback)(async(e,t)=>{S(t=>({...t,[e]:!0})),E(t=>({...t,[e]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${t} (${e})`);let r=await fetch(`/api/usage/${e}`);if(!r.ok){let a=(await r.json().catch(()=>({}))).error||r.statusText;if(404===r.status)return void console.warn(`[ProviderLimits] Connection not found for ${t}, skipping`);if(401===r.status){console.warn(`[ProviderLimits] Auth error for ${t}:`,a);let r={quotas:[],message:a};j(t=>({...t,[e]:r})),f(e,r);return}throw Error(`HTTP ${r.status}: ${a}`)}let a=await r.json();console.log(`[ProviderLimits] Got quota for ${t}:`,a);let l={quotas:(0,o.W_)(t,a),plan:a.plan||null,message:a.message||null,raw:a};j(t=>({...t,[e]:l})),f(e,l)}catch(r){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),E(t=>({...t,[e]:r.message||"Failed to fetch quota"}))}finally{S(t=>({...t,[e]:!1}))}},[]),eN=(0,l.useCallback)(async(e,t)=>{await ej(e,t),A(new Date)},[ej]),eS=(0,l.useCallback)(async e=>{if(confirm("Delete this connection?")){R(e);try{if((await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok){j(t=>{let r={...t};return delete r[e],r}),S(t=>{let r={...t};return delete r[e],r}),E(t=>{let r={...t};return delete r[e],r});try{let t=g();t[e]&&(delete t[e],window.localStorage.setItem(b,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await h(ew,ed)}}catch(e){console.error("Error deleting connection:",e)}finally{R(null)}}},[ew,ed]),eC=(0,l.useCallback)(async(e,t)=>{J(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(j(e=>({...e})),await h(ew,ed))}catch(e){console.error("Error updating connection status:",e)}finally{J(null)}},[ew,ed]),eE=(0,l.useCallback)(async e=>{if(!H?.id)return;let t=H.id,r=H.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await ew(),G(!1),K(null),u.wb.includes(r)&&await ej(t,r))}catch(e){console.error("Error saving connection:",e)}},[H,ew,ej]);(0,l.useEffect)(()=>{let e=!1;return fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.json()).then(t=>{!e&&t?.proxyPools&&Q(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let eP=(0,l.useCallback)(async()=>{if(!T){z(!0),F(60);try{let e,t=await ew(ed);S((e={},t.forEach(t=>{e[t.id]=!0}),e)),E(e=>p(e,t)),j(e=>p(e,t)),await Promise.all(t.map(e=>ej(e.id,e.provider))),A(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{z(!1)}}},[T,ew,ej,ed]);(0,l.useEffect)(()=>{(async()=>{M(!0);let e=await ew(ed);M(!1);let t=g(),r={},a={},l=[],s=null;e.forEach(e=>{let i=t[e.id];if(i){if(r[e.id]=!1,a[e.id]={quotas:i.quotas,plan:i.plan,message:i.message,raw:i.raw},i.cachedAt){let e=new Date(i.cachedAt);(!s||e>s)&&(s=e)}}else r[e.id]=!0,l.push(e)}),S(r),E(r=>{let a=p(r,e);return e.forEach(e=>{t[e.id]&&(a[e.id]=null)}),a}),j(t=>({...p(t,e),...a})),s&&A(s),l.length>0&&(await Promise.all(l.map(e=>ej(e.id,e.provider))),A(new Date))})()},[ew,ej,ed]),(0,l.useEffect)(()=>{let e=window.localStorage.getItem(v);$(null===e||"true"===e),_(!0)},[]),(0,l.useEffect)(()=>{I&&window.localStorage.setItem(v,String(P))},[P,I]),(0,l.useEffect)(()=>{if(!I||!P){ey.current&&(clearInterval(ey.current),ey.current=null),ek.current&&(clearInterval(ek.current),ek.current=null);return}return ey.current=setInterval(()=>{eP()},6e4),ek.current=setInterval(()=>{F(e=>e<=1?60:e-1)},1e3),()=>{ey.current&&clearInterval(ey.current),ek.current&&clearInterval(ek.current)}},[P,eP,I]),(0,l.useEffect)(()=>{let e=()=>{document.hidden?(ey.current&&(clearInterval(ey.current),ey.current=null),ek.current&&(clearInterval(ek.current),ek.current=null)):P&&I&&(ey.current=setInterval(eP,6e4),ek.current=setInterval(()=>{F(e=>e<=1?60:e-1)},1e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[P,eP,I]);let e$=(0,l.useMemo)(()=>(function(e,t,r,a,l){if("codex"===a&&"default"!==l)return[...e].sort((e,r)=>{let a=x(e,t),s=x(r,t),i="remaining-asc"===l?a-s:s-a;return 0!==i?i:(m(e)||"").localeCompare(m(r)||"")});if(!r)return e;let s=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=s(e)-s(t);return 0!==r?r:(e.provider||"").localeCompare(t.provider||"")||(m(e)||"").localeCompare(m(t)||"")})})(e,r,el,V,er),[e,r,el,V,er]),eq=e=>{let t=r[e.id]?.quotas;return!!t?.length&&t.some(e=>!!e.total&&!(e.total<=0)&&5>=(0,o.$4)(e.used,e.total))},eA=(0,l.useCallback)(async(e,t)=>{if(e.length&&!eo){ec(!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 h(ew,ed)}catch(e){console.error("Error bulk toggling connections:",e)}finally{ec(!1)}}},[eo,ew,ed]),eI="all"===V?"All providers":V,e_=ef.eligibleConnections>0,eT=e$.length>0,ez=ef.eligibleConnections?ef.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"===V?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===ee?"turned off":"active"===ee?"active":"matching"} accounts found for ${V}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},eD=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}`}(eb),eF=!w.includes(em);return O||e_?O||eT?(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:()=>en(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":ei,title:"Filter quota providers",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===V?(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,a.jsx)(s.A,{src:`/providers/${V}.png`,alt:V,size:18,className:"size-[18px] rounded object-contain",fallbackText:V.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate capitalize hidden lg:inline",children:eI})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),ei&&(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:()=>en(!1)}),(0,a.jsxs)("div",{className:"absolute left-0 z-40 mt-2 w-64 overflow-hidden rounded-2xl border border-black/10 bg-surface/95 p-1.5 shadow-xl shadow-black/10 backdrop-blur dark:border-white/10 dark:bg-surface/95 sm:w-72",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>{"all"!==V&&eu(1),X("all"),en(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${"all"===V?"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-[22px]",children:"apps"}),(0,a.jsx)("span",{className:"font-medium",children:"All providers"}),"all"===V&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",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-72 overflow-y-auto pr-1",children:Y.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{V!==e&&eu(1),X(e),en(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${V===e?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)(s.A,{src:`/providers/${e}.png`,alt:e,size:24,className:"size-6 rounded-md object-contain",fallbackText:e.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"font-medium capitalize",children:e}),V===e&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]},e))})]})]})]}),(0,a.jsx)("select",{value:ee,onChange:e=>{let t=e.target.value;ee!==t&&eu(1),et(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:y.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),"codex"===V&&(0,a.jsx)("select",{value:er,onChange:e=>ea(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:k.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsxs)("button",{type:"button",onClick:()=>es(e=>!e),"aria-pressed":el,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 text-xs transition-colors ${el?"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:()=>{eA(e$.filter(e=>(e.isActive??!0)&&eq(e)).map(e=>e.id),!1)},disabled:eo,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:()=>{eA(e$.filter(e=>!(e.isActive??!0)&&!eq(e)).map(e=>e.id),!0)},disabled:eo,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"})]}),(0,a.jsxs)("button",{onClick:()=>$(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:P?"Disable auto-refresh":"Enable auto-refresh",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${P?"text-primary":"text-text-muted"}`,children:P?"toggle_on":"toggle_off"}),(0,a.jsx)("span",{className:"hidden text-text-primary sm:inline",children:"Auto-refresh"}),P&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",D,"s)"]})]}),(0,a.jsx)("button",{type:"button",onClick:eP,disabled:T,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] ${T?"animate-spin":""}`,children:"refresh"})})]})}),el&&(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:e$.map(e=>{let t=r[e.id],l=N[e.id],o=C[e.id],d=!1===e.isActive,u=L===e.id||U===e.id;return(0,a.jsxs)(c.default,{padding:"none",className:`min-w-0 ${d?"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)(s.A,{src:`/providers/${e.provider}.png`,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}),m(e)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:m(e)}):null]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eN(e.id,e.provider),disabled:l||u,"aria-label":"Refresh quota",className:"p-1.5 rounded-lg hover:bg-black/5 dark:hover:bg-white/5 transition-colors disabled:opacity-50",title:"Refresh quota",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${l?"animate-spin":""}`,children:"refresh"})}),(0,a.jsx)("button",{type:"button",onClick:()=>{K(e),G(!0)},disabled:u,"aria-label":"Edit connection",className:"p-1.5 rounded-lg hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary transition-colors disabled:opacity-50",title:"Edit connection",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,a.jsx)("button",{type:"button",onClick:()=>eS(e.id),disabled:u,"aria-label":"Delete connection",className:"p-1.5 rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",title:"Delete connection",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] ${L===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.default,{size:"sm",checked:e.isActive??!0,disabled:u,onChange:t=>eC(e.id,t)})})]})]})}),(0,a.jsx)("div",{className:"px-2 py-1.5",children:l?(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"})}):o?(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:o})]}):t?.message?(0,a.jsx)("div",{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-xs text-text-muted",children:t.message})}):(0,a.jsx)(i.A,{quotas:t?.quotas,compact:!0,sortMode:"default",showSortLabel:"codex"===e.provider&&"default"!==er})})]},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:eD}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:eF?"custom":String(em),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(eu(1),ex(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:[w.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:ep,onChange:e=>eh(e.target.value),onBlur:()=>{let e=Number.parseInt(ep,10);if(!Number.isFinite(e))return void eh(String(em));let t=Math.min(500,Math.max(1,e));eu(1),ex(t),eh(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(ep,10);if(!Number.isFinite(t))return void eh(String(em));let r=Math.min(500,Math.max(1,t));eu(1),ex(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 ",eb.page," / ",eb.totalPages]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eu(1),disabled:eb.page<=1||O||T,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:()=>eu(e=>Math.max(1,e-1)),disabled:eb.page<=1||O||T,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:()=>eu(e=>Math.min(eb.totalPages,e+1)),disabled:eb.page>=eb.totalPages||O||T,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:()=>eu(eb.totalPages),disabled:eb.page>=eb.totalPages||O||T,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)(d.wI,{isOpen:B,connection:H,proxyPools:W,onSave:eE,onClose:()=>{G(!1),K(null)}})]}):(0,a.jsx)(c.default,{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:ez.icon}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:ez.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:ez.description})]})}):(0,a.jsx)(c.default,{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,[2574,3862,246,2714,5564,5263,5497,7413,8441,3794,7358],()=>e(e.s=5744)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9516],{43466:(e,t,i)=>{Promise.resolve().then(i.bind(i,64082))},64082:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(95155),r=i(35497),n=i(11059);let a="decolua/bluerouter",o="master",l="skills",c=`https://github.com/${a}`,d=`https://raw.githubusercontent.com/${a}/refs/heads/${o}/${l}`,m=`https://github.com/${a}/blob/${o}/${l}`,x=[{id:"bluerouter",name:"Bluerouter (Entry)",description:"Setup + index of all capabilities. Start here — covers base URL, auth, model discovery, and links to every capability skill.",endpoint:null,icon:"hub",isEntry:!0},{id:"bluerouter-chat",name:"Chat",description:"Chat / code-gen via OpenAI or Anthropic format with streaming.",endpoint:"/v1/chat/completions",icon:"chat"},{id:"bluerouter-image",name:"Image Generation",description:"Text-to-image via DALL-E, Imagen, FLUX, MiniMax, SDWebUI…",endpoint:"/v1/images/generations",icon:"image"},{id:"bluerouter-tts",name:"Text-to-Speech",description:"OpenAI / ElevenLabs / Edge / Google / Deepgram voices.",endpoint:"/v1/audio/speech",icon:"record_voice_over"},{id:"bluerouter-stt",name:"Speech-to-Text",description:"Transcribe audio via OpenAI Whisper, Groq, Gemini, Deepgram, AssemblyAI…",endpoint:"/v1/audio/transcriptions",icon:"mic"},{id:"bluerouter-embeddings",name:"Embeddings",description:"Vectors for RAG / semantic search via OpenAI, Gemini, Mistral…",endpoint:"/v1/embeddings",icon:"scatter_plot"},{id:"bluerouter-web-search",name:"Web Search",description:"Tavily / Exa / Brave / Serper / SearXNG / Google PSE / You.com.",endpoint:"/v1/search",icon:"search"},{id:"bluerouter-web-fetch",name:"Web Fetch",description:"URL → markdown / text / HTML via Firecrawl, Jina, Tavily, Exa.",endpoint:"/v1/web/fetch",icon:"language"}];function p(e){return`${d}/${e}/SKILL.md`}function u({value:e,label:t="Copy link"}){let{copied:i,copy:r}=(0,n.C)(2e3);return(0,s.jsxs)("button",{onClick:()=>r(e),className:"px-2 py-1 rounded-md bg-primary text-white text-[11px] font-medium hover:bg-primary/90 transition-colors cursor-pointer shrink-0 inline-flex items-center gap-1",title:e,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:i?"check":"content_copy"}),i?"Copied!":t]})}function h({skill:e}){var t;let i=p(e.id);return(0,s.jsxs)("div",{className:`flex items-start gap-3 p-4 rounded-[14px] border shadow-[var(--shadow-soft)] transition-colors ${e.isEntry?"border-brand-500/40 bg-brand-500/5":"border-border-subtle bg-surface hover:bg-surface-2"}`,children:[(0,s.jsx)("div",{className:`size-9 rounded-lg flex items-center justify-center shrink-0 ${e.isEntry?"bg-primary text-white":"bg-primary/10 text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e.icon})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsx)("h3",{className:"font-semibold text-sm text-text-main",children:e.name}),e.isEntry&&(0,s.jsx)(r.Ex,{variant:"primary",size:"sm",children:"START HERE"}),e.endpoint&&(0,s.jsx)(r.Ex,{variant:"default",size:"sm",children:(0,s.jsx)("code",{className:"text-[10px]",children:e.endpoint})})]}),(0,s.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:e.description}),(0,s.jsxs)("a",{href:(t=e.id,`${m}/${t}/SKILL.md`),target:"_blank",rel:"noreferrer",className:"text-[11px] text-text-muted hover:text-primary mt-1 inline-flex items-center gap-1 break-all",children:[i,(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"open_in_new"})]})]}),(0,s.jsx)(u,{value:i})]})}function b(){return(0,s.jsxs)("div",{className:"max-w-4xl mx-auto space-y-6",children:[(0,s.jsxs)(r.Zp,{padding:"md",children:[(0,s.jsx)("div",{className:"text-xs text-text-muted mb-2",children:"Paste this to your AI:"}),(0,s.jsxs)("div",{className:"px-3 py-2 rounded bg-surface-2 font-mono text-[12px] text-text-main",children:["Read this skill and use it: ",p("bluerouter")]})]}),(0,s.jsx)("div",{className:"space-y-2",children:x.map(e=>(0,s.jsx)(h,{skill:e},e.id))}),(0,s.jsx)(r.Zp,{padding:"md",children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"More on GitHub"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:"Browse source, README, and examples."})]}),(0,s.jsxs)("a",{href:`${c}/tree/master/skills`,target:"_blank",rel:"noreferrer",className:"text-sm text-primary hover:underline inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"open_in_new"}),"View on GitHub"]})]})})]})}}},e=>{e.O(0,[2574,3862,246,4546,5564,5263,5497,8441,3794,7358],()=>e(e.s=43466)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9516],{43466:(e,t,i)=>{Promise.resolve().then(i.bind(i,64082))},64082:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var s=i(95155),r=i(35497),n=i(11059);let a="decolua/bluerouter",o="master",l="skills",c=`https://github.com/${a}`,d=`https://raw.githubusercontent.com/${a}/refs/heads/${o}/${l}`,m=`https://github.com/${a}/blob/${o}/${l}`,x=[{id:"bluerouter",name:"Bluerouter (Entry)",description:"Setup + index of all capabilities. Start here — covers base URL, auth, model discovery, and links to every capability skill.",endpoint:null,icon:"hub",isEntry:!0},{id:"bluerouter-chat",name:"Chat",description:"Chat / code-gen via OpenAI or Anthropic format with streaming.",endpoint:"/v1/chat/completions",icon:"chat"},{id:"bluerouter-image",name:"Image Generation",description:"Text-to-image via DALL-E, Imagen, FLUX, MiniMax, SDWebUI…",endpoint:"/v1/images/generations",icon:"image"},{id:"bluerouter-tts",name:"Text-to-Speech",description:"OpenAI / ElevenLabs / Edge / Google / Deepgram voices.",endpoint:"/v1/audio/speech",icon:"record_voice_over"},{id:"bluerouter-stt",name:"Speech-to-Text",description:"Transcribe audio via OpenAI Whisper, Groq, Gemini, Deepgram, AssemblyAI…",endpoint:"/v1/audio/transcriptions",icon:"mic"},{id:"bluerouter-embeddings",name:"Embeddings",description:"Vectors for RAG / semantic search via OpenAI, Gemini, Mistral…",endpoint:"/v1/embeddings",icon:"scatter_plot"},{id:"bluerouter-web-search",name:"Web Search",description:"Tavily / Exa / Brave / Serper / SearXNG / Google PSE / You.com.",endpoint:"/v1/search",icon:"search"},{id:"bluerouter-web-fetch",name:"Web Fetch",description:"URL → markdown / text / HTML via Firecrawl, Jina, Tavily, Exa.",endpoint:"/v1/web/fetch",icon:"language"}];function p(e){return`${d}/${e}/SKILL.md`}function u({value:e,label:t="Copy link"}){let{copied:i,copy:r}=(0,n.C)(2e3);return(0,s.jsxs)("button",{onClick:()=>r(e),className:"px-2 py-1 rounded-md bg-primary text-white text-[11px] font-medium hover:bg-primary/90 transition-colors cursor-pointer shrink-0 inline-flex items-center gap-1",title:e,children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:i?"check":"content_copy"}),i?"Copied!":t]})}function h({skill:e}){var t;let i=p(e.id);return(0,s.jsxs)("div",{className:`flex items-start gap-3 p-4 rounded-[14px] border shadow-[var(--shadow-soft)] transition-colors ${e.isEntry?"border-brand-500/40 bg-brand-500/5":"border-border-subtle bg-surface hover:bg-surface-2"}`,children:[(0,s.jsx)("div",{className:`size-9 rounded-lg flex items-center justify-center shrink-0 ${e.isEntry?"bg-primary text-white":"bg-primary/10 text-primary"}`,children:(0,s.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:e.icon})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,s.jsx)("h3",{className:"font-semibold text-sm text-text-main",children:e.name}),e.isEntry&&(0,s.jsx)(r.Ex,{variant:"primary",size:"sm",children:"START HERE"}),e.endpoint&&(0,s.jsx)(r.Ex,{variant:"default",size:"sm",children:(0,s.jsx)("code",{className:"text-[10px]",children:e.endpoint})})]}),(0,s.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:e.description}),(0,s.jsxs)("a",{href:(t=e.id,`${m}/${t}/SKILL.md`),target:"_blank",rel:"noreferrer",className:"text-[11px] text-text-muted hover:text-primary mt-1 inline-flex items-center gap-1 break-all",children:[i,(0,s.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"open_in_new"})]})]}),(0,s.jsx)(u,{value:i})]})}function b(){return(0,s.jsxs)("div",{className:"max-w-4xl mx-auto space-y-6",children:[(0,s.jsxs)(r.Zp,{padding:"md",children:[(0,s.jsx)("div",{className:"text-xs text-text-muted mb-2",children:"Paste this to your AI:"}),(0,s.jsxs)("div",{className:"px-3 py-2 rounded bg-surface-2 font-mono text-[12px] text-text-main",children:["Read this skill and use it: ",p("bluerouter")]})]}),(0,s.jsx)("div",{className:"space-y-2",children:x.map(e=>(0,s.jsx)(h,{skill:e},e.id))}),(0,s.jsx)(r.Zp,{padding:"md",children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"More on GitHub"}),(0,s.jsx)("p",{className:"text-xs text-text-muted mt-0.5",children:"Browse source, README, and examples."})]}),(0,s.jsxs)("a",{href:`${c}/tree/master/skills`,target:"_blank",rel:"noreferrer",className:"text-sm text-primary hover:underline inline-flex items-center gap-1",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"open_in_new"}),"View on GitHub"]})]})})]})}}},e=>{e.O(0,[2574,3862,246,2714,5564,5263,5497,8441,3794,7358],()=>e(e.s=43466)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3528],{5214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(17828)},17828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(64054).createAsyncLocalStorage)()},21957:(e,t,n)=>{"use strict";function r({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),n(95155),n(47650),n(5214),n(2451),n(53887)},41112:(e,t,n)=>{"use strict";function r({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(1980)},49106:(e,t,n)=>{Promise.resolve().then(n.bind(n,69472))},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={bindSnapshot:function(){return i},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return d}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let l="u">typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return l?new l:new s}function i(e){return l?l.bind(e):s.bind(e)}function d(){return l?l.snapshot():function(e,...t){return e(...t)}}},68635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(95155),a=n(12115),s=n(41112);function l(e){return{default:e&&"default"in e?e.default:e}}n(21957);let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},i=function(e){let t={...o,...e},n=(0,a.lazy)(()=>t.loader().then(l)),i=t.loading;function d(e){let l=i?(0,r.jsx)(i,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,d=o?a.Suspense:a.Fragment,c=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(d,{...o?{fallback:l}:{},children:c})}return d.displayName="LoadableComponent",d}},69472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(95155),a=n(12115),s=n(35497),l=n(11059),o=n(75707);let i=n.n(o)()(()=>n.e(8202).then(n.bind(n,28202)),{loadableGenerated:{webpack:()=>[28202]},ssr:!1}),d=[{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"}],c={minimap:{enabled:!1},fontSize:12,lineNumbers:"on",scrollBeyondLastLine:!1,wordWrap:"on",automaticLayout:!0};function u(){let[e,t]=(0,a.useState)({}),[n,o]=(0,a.useState)({1:!0}),[u,f]=(0,a.useState)({}),[m,x]=(0,a.useState)(null),g=(e,t)=>f(n=>({...n,[e]:t})),h=(e,n)=>t(t=>({...t,[e]:n})),b=e=>o(t=>{let n={};return d.forEach(e=>{n[e.id]=!1}),n[e]=!0,n}),y=async e=>{let t=d.find(t=>t.id===e);g(`load-${e}`,!0);try{let n=await fetch(`/api/translator/load?file=${t.file}`),r=await n.json();r.success?(h(e,r.content),1===e&&await j(r.content)):alert(r.error||"File not found")}catch(e){alert(e.message)}g(`load-${e}`,!1)},j=async e=>{try{let t="string"==typeof e?JSON.parse(e):e,n=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:1,body:t})}),r=await n.json();r.success&&x(r.result)}catch{}},_=(e,t)=>fetch("/api/translator/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e,content:t})}).catch(()=>{}),v=async()=>{g("toOpenAI",!0);try{let t=e[1],n=JSON.parse(t);_("1_req_client.json",t),_("2_req_source.json",JSON.stringify({timestamp:new Date().toISOString(),headers:{},body:n.body||n},null,2));let r=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:2,body:n})}),a=await r.json();if(!a.success)return void alert(a.error);let s=JSON.stringify(a.result.body,null,2);h(3,s),b(3)}catch(e){alert(e.message)}g("toOpenAI",!1)},O=async()=>{g("toTarget",!0);try{let t=e[3],n=JSON.parse(t);_("3_req_openai.json",t);let r=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:3,body:{...n,provider:m?.provider,model:m?.model}})}),a=await r.json();if(!a.success)return void alert(a.error);let s={...a.result,provider:m?.provider,model:m?.model};h(4,JSON.stringify(s,null,2)),b(4)}catch(e){alert(e.message)}g("toTarget",!1)},S=async()=>{g("send",!0);try{let t=e[4],n=JSON.parse(t);_("4_req_target.json",t);let r=n.provider||m?.provider,a=n.model||m?.model;if(!r||!a)return void alert("Missing provider or model. Please run step 1 first to detect them.");let s=await fetch("/api/translator/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,model:a,body:n.body||n})});if(!s.ok){let e=await s.json().catch(()=>({error:s.statusText}));alert(e.error||"Send failed");return}let l=s.body.getReader(),o=new TextDecoder,i="";for(;;){let{done:e,value:t}=await l.read();if(e)break;i+=o.decode(t,{stream:!0})}h(5,i),b(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{g("send",!1)}},{copy:w}=(0,l.C)(),N=async t=>{e[t]&&w(e[t],`translator-step-${t}`)};return(0,r.jsxs)("div",{className:"p-8 space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Translator Debug"}),(0,r.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Replay request flow — matches log files"})]}),m&&(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-wrap justify-end",children:[(0,r.jsx)(p,{label:"src",value:m.sourceFormat,color:"blue"}),(0,r.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,r.jsx)(p,{label:"dst",value:m.targetFormat,color:"orange"}),(0,r.jsx)(p,{label:"provider",value:m.provider,color:"green"}),(0,r.jsx)(p,{label:"model",value:m.model,color:"purple"})]})]}),d.map(t=>{var a;let l=1===(a=t.id)?(0,r.jsx)(s.$n,{size:"sm",icon:"arrow_forward",loading:u.toOpenAI,onClick:v,children:"→ OpenAI"}):3===a?(0,r.jsx)(s.$n,{size:"sm",icon:"arrow_forward",loading:u.toTarget,onClick:O,children:"→ Target"}):4===a?(0,r.jsx)(s.$n,{size:"sm",icon:"send",loading:u.send,onClick:S,children:"Send"}):null,d=!!n[t.id],p=e[t.id]||"";return(0,r.jsx)(s.Zp,{children:(0,r.jsxs)("div",{className:"p-4 space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("button",{onClick:()=>{let e;return e=t.id,o(t=>({...t,[e]:!t[e]}))},className:"flex items-center gap-2 flex-1 text-left group",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px] text-text-muted group-hover:text-primary transition-colors",children:d?"expand_more":"chevron_right"}),(0,r.jsx)("span",{className:"text-xs font-mono text-text-muted/60 w-4",children:t.id}),(0,r.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:t.label}),(0,r.jsx)("span",{className:"text-xs text-text-muted/60 font-mono",children:t.file}),p&&(0,r.jsxs)("span",{className:"text-xs text-green-500",children:["(",p.length," chars)"]})]}),!d&&(0,r.jsxs)("div",{className:"flex gap-1 shrink-0",children:[(0,r.jsx)(s.$n,{size:"sm",variant:"ghost",icon:"folder_open",loading:u[`load-${t.id}`],onClick:()=>y(t.id)}),l]})]}),d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"border border-border rounded-lg overflow-hidden",children:(0,r.jsx)(i,{height:"400px",defaultLanguage:"text"===t.lang?"plaintext":"json",value:p,onChange:e=>{h(t.id,e||""),1===t.id&&j(e||"")},theme:"vs-dark",options:c})}),(0,r.jsxs)("div",{className:"flex gap-2 flex-wrap",children:[(0,r.jsx)(s.$n,{size:"sm",variant:"outline",icon:"folder_open",loading:u[`load-${t.id}`],onClick:()=>y(t.id),children:"Load"}),(0,r.jsx)(s.$n,{size:"sm",variant:"outline",icon:"data_object",onClick:()=>(t=>{try{let n=JSON.parse(e[t]);h(t,JSON.stringify(n,null,2))}catch{}})(t.id),children:"Format"}),(0,r.jsx)(s.$n,{size:"sm",variant:"outline",icon:"content_copy",onClick:()=>N(t.id),children:"Copy"}),l]})]})]})},t.id)})]})}function p({label:e,value:t,color:n}){return(0,r.jsxs)("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs font-mono ${{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"}[n]}`,children:[(0,r.jsxs)("span",{className:"text-text-muted/70 font-sans text-[10px]",children:[e,":"]}),t]})}},75707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(73623)._(n(68635));function a(e,t){let n={};"function"==typeof e&&(n.loader=e);let a={...n,...t};return(0,r.default)({...a,modules:a.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[2574,3862,246,4546,5564,5263,5497,8441,3794,7358],()=>e(e.s=49106)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3528],{5214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(17828)},17828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(64054).createAsyncLocalStorage)()},21957:(e,t,n)=>{"use strict";function r({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),n(95155),n(47650),n(5214),n(2451),n(53887)},41112:(e,t,n)=>{"use strict";function r({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(1980)},49106:(e,t,n)=>{Promise.resolve().then(n.bind(n,69472))},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={bindSnapshot:function(){return i},createAsyncLocalStorage:function(){return o},createSnapshot:function(){return d}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let a=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class s{disable(){throw a}getStore(){}run(){throw a}exit(){throw a}enterWith(){throw a}static bind(e){return e}}let l="u">typeof globalThis&&globalThis.AsyncLocalStorage;function o(){return l?new l:new s}function i(e){return l?l.bind(e):s.bind(e)}function d(){return l?l.snapshot():function(e,...t){return e(...t)}}},68635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(95155),a=n(12115),s=n(41112);function l(e){return{default:e&&"default"in e?e.default:e}}n(21957);let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},i=function(e){let t={...o,...e},n=(0,a.lazy)(()=>t.loader().then(l)),i=t.loading;function d(e){let l=i?(0,r.jsx)(i,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,d=o?a.Suspense:a.Fragment,c=t.ssr?(0,r.jsxs)(r.Fragment,{children:[null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(d,{...o?{fallback:l}:{},children:c})}return d.displayName="LoadableComponent",d}},69472:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(95155),a=n(12115),s=n(35497),l=n(11059),o=n(75707);let i=n.n(o)()(()=>n.e(8202).then(n.bind(n,28202)),{loadableGenerated:{webpack:()=>[28202]},ssr:!1}),d=[{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"}],c={minimap:{enabled:!1},fontSize:12,lineNumbers:"on",scrollBeyondLastLine:!1,wordWrap:"on",automaticLayout:!0};function u(){let[e,t]=(0,a.useState)({}),[n,o]=(0,a.useState)({1:!0}),[u,f]=(0,a.useState)({}),[m,x]=(0,a.useState)(null),g=(e,t)=>f(n=>({...n,[e]:t})),h=(e,n)=>t(t=>({...t,[e]:n})),b=e=>o(t=>{let n={};return d.forEach(e=>{n[e.id]=!1}),n[e]=!0,n}),y=async e=>{let t=d.find(t=>t.id===e);g(`load-${e}`,!0);try{let n=await fetch(`/api/translator/load?file=${t.file}`),r=await n.json();r.success?(h(e,r.content),1===e&&await j(r.content)):alert(r.error||"File not found")}catch(e){alert(e.message)}g(`load-${e}`,!1)},j=async e=>{try{let t="string"==typeof e?JSON.parse(e):e,n=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:1,body:t})}),r=await n.json();r.success&&x(r.result)}catch{}},_=(e,t)=>fetch("/api/translator/save",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:e,content:t})}).catch(()=>{}),v=async()=>{g("toOpenAI",!0);try{let t=e[1],n=JSON.parse(t);_("1_req_client.json",t),_("2_req_source.json",JSON.stringify({timestamp:new Date().toISOString(),headers:{},body:n.body||n},null,2));let r=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:2,body:n})}),a=await r.json();if(!a.success)return void alert(a.error);let s=JSON.stringify(a.result.body,null,2);h(3,s),b(3)}catch(e){alert(e.message)}g("toOpenAI",!1)},O=async()=>{g("toTarget",!0);try{let t=e[3],n=JSON.parse(t);_("3_req_openai.json",t);let r=await fetch("/api/translator/translate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({step:3,body:{...n,provider:m?.provider,model:m?.model}})}),a=await r.json();if(!a.success)return void alert(a.error);let s={...a.result,provider:m?.provider,model:m?.model};h(4,JSON.stringify(s,null,2)),b(4)}catch(e){alert(e.message)}g("toTarget",!1)},S=async()=>{g("send",!0);try{let t=e[4],n=JSON.parse(t);_("4_req_target.json",t);let r=n.provider||m?.provider,a=n.model||m?.model;if(!r||!a)return void alert("Missing provider or model. Please run step 1 first to detect them.");let s=await fetch("/api/translator/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,model:a,body:n.body||n})});if(!s.ok){let e=await s.json().catch(()=>({error:s.statusText}));alert(e.error||"Send failed");return}let l=s.body.getReader(),o=new TextDecoder,i="";for(;;){let{done:e,value:t}=await l.read();if(e)break;i+=o.decode(t,{stream:!0})}h(5,i),b(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{g("send",!1)}},{copy:w}=(0,l.C)(),N=async t=>{e[t]&&w(e[t],`translator-step-${t}`)};return(0,r.jsxs)("div",{className:"p-8 space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-2xl font-bold text-text-main",children:"Translator Debug"}),(0,r.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Replay request flow — matches log files"})]}),m&&(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-wrap justify-end",children:[(0,r.jsx)(p,{label:"src",value:m.sourceFormat,color:"blue"}),(0,r.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[14px]",children:"arrow_forward"}),(0,r.jsx)(p,{label:"dst",value:m.targetFormat,color:"orange"}),(0,r.jsx)(p,{label:"provider",value:m.provider,color:"green"}),(0,r.jsx)(p,{label:"model",value:m.model,color:"purple"})]})]}),d.map(t=>{var a;let l=1===(a=t.id)?(0,r.jsx)(s.$n,{size:"sm",icon:"arrow_forward",loading:u.toOpenAI,onClick:v,children:"→ OpenAI"}):3===a?(0,r.jsx)(s.$n,{size:"sm",icon:"arrow_forward",loading:u.toTarget,onClick:O,children:"→ Target"}):4===a?(0,r.jsx)(s.$n,{size:"sm",icon:"send",loading:u.send,onClick:S,children:"Send"}):null,d=!!n[t.id],p=e[t.id]||"";return(0,r.jsx)(s.Zp,{children:(0,r.jsxs)("div",{className:"p-4 space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("button",{onClick:()=>{let e;return e=t.id,o(t=>({...t,[e]:!t[e]}))},className:"flex items-center gap-2 flex-1 text-left group",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px] text-text-muted group-hover:text-primary transition-colors",children:d?"expand_more":"chevron_right"}),(0,r.jsx)("span",{className:"text-xs font-mono text-text-muted/60 w-4",children:t.id}),(0,r.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:t.label}),(0,r.jsx)("span",{className:"text-xs text-text-muted/60 font-mono",children:t.file}),p&&(0,r.jsxs)("span",{className:"text-xs text-green-500",children:["(",p.length," chars)"]})]}),!d&&(0,r.jsxs)("div",{className:"flex gap-1 shrink-0",children:[(0,r.jsx)(s.$n,{size:"sm",variant:"ghost",icon:"folder_open",loading:u[`load-${t.id}`],onClick:()=>y(t.id)}),l]})]}),d&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"border border-border rounded-lg overflow-hidden",children:(0,r.jsx)(i,{height:"400px",defaultLanguage:"text"===t.lang?"plaintext":"json",value:p,onChange:e=>{h(t.id,e||""),1===t.id&&j(e||"")},theme:"vs-dark",options:c})}),(0,r.jsxs)("div",{className:"flex gap-2 flex-wrap",children:[(0,r.jsx)(s.$n,{size:"sm",variant:"outline",icon:"folder_open",loading:u[`load-${t.id}`],onClick:()=>y(t.id),children:"Load"}),(0,r.jsx)(s.$n,{size:"sm",variant:"outline",icon:"data_object",onClick:()=>(t=>{try{let n=JSON.parse(e[t]);h(t,JSON.stringify(n,null,2))}catch{}})(t.id),children:"Format"}),(0,r.jsx)(s.$n,{size:"sm",variant:"outline",icon:"content_copy",onClick:()=>N(t.id),children:"Copy"}),l]})]})]})},t.id)})]})}function p({label:e,value:t,color:n}){return(0,r.jsxs)("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs font-mono ${{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"}[n]}`,children:[(0,r.jsxs)("span",{className:"text-text-muted/70 font-sans text-[10px]",children:[e,":"]}),t]})}},75707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(73623)._(n(68635));function a(e,t){let n={};"function"==typeof e&&(n.loader=e);let a={...n,...t};return(0,r.default)({...a,modules:a.loadableGenerated?.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},e=>{e.O(0,[2574,3862,246,2714,5564,5263,5497,8441,3794,7358],()=>e(e.s=49106)),_N_E=e.O()}]);