ktrouter 1.1.8 → 1.2.0

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 (1969) hide show
  1. package/app/.next/BUILD_ID +1 -1
  2. package/app/.next/app-path-routes-manifest.json +14 -12
  3. package/app/.next/build-manifest.json +4 -4
  4. package/app/.next/prerender-manifest.json +3 -3
  5. package/app/.next/required-server-files.json +7 -4
  6. package/app/.next/routes-manifest.json +16 -0
  7. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  8. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  9. package/app/.next/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  10. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  11. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  12. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  13. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  14. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  15. package/app/.next/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  16. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  17. package/app/.next/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  18. package/app/.next/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  19. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  20. package/app/.next/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  21. package/app/.next/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  22. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  23. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  24. package/app/.next/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  25. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +3 -3
  26. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  27. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  28. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  29. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  30. package/app/.next/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  31. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +3 -3
  32. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  33. package/app/.next/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  34. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  35. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  36. package/app/.next/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  37. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  38. package/app/.next/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  39. package/app/.next/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  40. package/app/.next/server/app/(dashboard)/dashboard/page.js +2 -2
  41. package/app/.next/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  42. package/app/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  43. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  44. package/app/.next/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  45. package/app/.next/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  46. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  47. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  48. package/app/.next/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  49. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  50. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  51. package/app/.next/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  52. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  53. package/app/.next/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  54. package/app/.next/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  55. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  56. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  57. package/app/.next/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  58. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  59. package/app/.next/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  60. package/app/.next/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  61. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  62. package/app/.next/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  63. package/app/.next/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  64. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  65. package/app/.next/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  66. package/app/.next/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  67. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  68. package/app/.next/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  69. package/app/.next/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  70. package/app/.next/server/app/_global-error/page.js +3 -3
  71. package/app/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  72. package/app/.next/server/app/_global-error.html +1 -1
  73. package/app/.next/server/app/_global-error.rsc +1 -1
  74. package/app/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  75. package/app/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  76. package/app/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  77. package/app/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  78. package/app/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  79. package/app/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  80. package/app/.next/server/app/_not-found/page.js +2 -2
  81. package/app/.next/server/app/_not-found/page.js.nft.json +1 -1
  82. package/app/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  83. package/app/.next/server/app/_not-found.html +1 -1
  84. package/app/.next/server/app/_not-found.rsc +5 -5
  85. package/app/.next/server/app/_not-found.segments/_full.segment.rsc +5 -5
  86. package/app/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  87. package/app/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
  88. package/app/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  89. package/app/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  90. package/app/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -3
  91. package/app/.next/server/app/api/auth/login/route.js +1 -1
  92. package/app/.next/server/app/api/auth/login/route.js.nft.json +1 -1
  93. package/app/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  94. package/app/.next/server/app/api/auth/logout/route.js +1 -1
  95. package/app/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  96. package/app/.next/server/app/api/auth/oidc/callback/route.js +1 -1
  97. package/app/.next/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  98. package/app/.next/server/app/api/auth/oidc/callback/route_client-reference-manifest.js +1 -1
  99. package/app/.next/server/app/api/auth/oidc/start/route.js +1 -1
  100. package/app/.next/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  101. package/app/.next/server/app/api/auth/oidc/start/route_client-reference-manifest.js +1 -1
  102. package/app/.next/server/app/api/auth/oidc/test/route.js +1 -1
  103. package/app/.next/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  104. package/app/.next/server/app/api/auth/oidc/test/route_client-reference-manifest.js +1 -1
  105. package/app/.next/server/app/api/auth/status/route.js +1 -1
  106. package/app/.next/server/app/api/auth/status/route.js.nft.json +1 -1
  107. package/app/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  108. package/app/.next/server/app/api/cli-tools/all-statuses/route.js +4 -4
  109. package/app/.next/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  110. package/app/.next/server/app/api/cli-tools/all-statuses/route_client-reference-manifest.js +1 -1
  111. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  112. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  113. package/app/.next/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
  114. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  115. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  116. package/app/.next/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
  117. package/app/.next/server/app/api/cli-tools/claude-settings/route.js +2 -2
  118. package/app/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
  119. package/app/.next/server/app/api/cli-tools/cline-settings/route.js +2 -2
  120. package/app/.next/server/app/api/cli-tools/cline-settings/route_client-reference-manifest.js +1 -1
  121. package/app/.next/server/app/api/cli-tools/codex-settings/route.js +1 -1
  122. package/app/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
  123. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  124. package/app/.next/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  125. package/app/.next/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +1 -1
  126. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  127. package/app/.next/server/app/api/cli-tools/cowork-mcp-registry/route_client-reference-manifest.js +1 -1
  128. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  129. package/app/.next/server/app/api/cli-tools/cowork-mcp-tools/route_client-reference-manifest.js +1 -1
  130. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  131. package/app/.next/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  132. package/app/.next/server/app/api/cli-tools/cowork-settings/route_client-reference-manifest.js +1 -1
  133. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  134. package/app/.next/server/app/api/cli-tools/deepseek-tui-settings/route_client-reference-manifest.js +1 -1
  135. package/app/.next/server/app/api/cli-tools/droid-settings/route.js +2 -2
  136. package/app/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
  137. package/app/.next/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  138. package/app/.next/server/app/api/cli-tools/hermes-settings/route_client-reference-manifest.js +1 -1
  139. package/app/.next/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  140. package/app/.next/server/app/api/cli-tools/jcode-settings/route_client-reference-manifest.js +1 -1
  141. package/app/.next/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  142. package/app/.next/server/app/api/cli-tools/kilo-settings/route_client-reference-manifest.js +1 -1
  143. package/app/.next/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  144. package/app/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
  145. package/app/.next/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  146. package/app/.next/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +1 -1
  147. package/app/.next/server/app/api/cloud/auth/route.js +1 -1
  148. package/app/.next/server/app/api/cloud/auth/route.js.nft.json +1 -1
  149. package/app/.next/server/app/api/cloud/auth/route_client-reference-manifest.js +1 -1
  150. package/app/.next/server/app/api/cloud/credentials/update/route.js +1 -1
  151. package/app/.next/server/app/api/cloud/credentials/update/route.js.nft.json +1 -1
  152. package/app/.next/server/app/api/cloud/credentials/update/route_client-reference-manifest.js +1 -1
  153. package/app/.next/server/app/api/cloud/model/resolve/route.js +1 -1
  154. package/app/.next/server/app/api/cloud/model/resolve/route.js.nft.json +1 -1
  155. package/app/.next/server/app/api/cloud/model/resolve/route_client-reference-manifest.js +1 -1
  156. package/app/.next/server/app/api/cloud/models/alias/route.js +1 -1
  157. package/app/.next/server/app/api/cloud/models/alias/route.js.nft.json +1 -1
  158. package/app/.next/server/app/api/cloud/models/alias/route_client-reference-manifest.js +1 -1
  159. package/app/.next/server/app/api/combos/[id]/route.js +1 -1
  160. package/app/.next/server/app/api/combos/[id]/route.js.nft.json +1 -1
  161. package/app/.next/server/app/api/combos/[id]/route_client-reference-manifest.js +1 -1
  162. package/app/.next/server/app/api/combos/route.js +1 -1
  163. package/app/.next/server/app/api/combos/route.js.nft.json +1 -1
  164. package/app/.next/server/app/api/combos/route_client-reference-manifest.js +1 -1
  165. package/app/.next/server/app/api/health/route.js +1 -1
  166. package/app/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
  167. package/app/.next/server/app/api/init/route.js +1 -1
  168. package/app/.next/server/app/api/init/route.js.nft.json +1 -1
  169. package/app/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
  170. package/app/.next/server/app/api/keys/[id]/route.js +1 -1
  171. package/app/.next/server/app/api/keys/[id]/route.js.nft.json +1 -1
  172. package/app/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
  173. package/app/.next/server/app/api/keys/route.js +1 -1
  174. package/app/.next/server/app/api/keys/route.js.nft.json +1 -1
  175. package/app/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
  176. package/app/.next/server/app/api/locale/route.js +1 -1
  177. package/app/.next/server/app/api/locale/route_client-reference-manifest.js +1 -1
  178. package/app/.next/server/app/api/mcp/[plugin]/message/route.js +1 -1
  179. package/app/.next/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  180. package/app/.next/server/app/api/mcp/[plugin]/message/route_client-reference-manifest.js +1 -1
  181. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  182. package/app/.next/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  183. package/app/.next/server/app/api/mcp/[plugin]/sse/route_client-reference-manifest.js +1 -1
  184. package/app/.next/server/app/api/media/download/route.js +1 -1
  185. package/app/.next/server/app/api/media/download/route_client-reference-manifest.js +1 -1
  186. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  187. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  188. package/app/.next/server/app/api/media-providers/tts/deepgram/voices/route_client-reference-manifest.js +1 -1
  189. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  190. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  191. package/app/.next/server/app/api/media-providers/tts/elevenlabs/voices/route_client-reference-manifest.js +1 -1
  192. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  193. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  194. package/app/.next/server/app/api/media-providers/tts/inworld/voices/route_client-reference-manifest.js +1 -1
  195. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  196. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  197. package/app/.next/server/app/api/media-providers/tts/minimax/voices/route_client-reference-manifest.js +1 -1
  198. package/app/.next/server/app/api/media-providers/tts/voices/route.js +1 -1
  199. package/app/.next/server/app/api/media-providers/tts/voices/route_client-reference-manifest.js +1 -1
  200. package/app/.next/server/app/api/models/alias/route.js +1 -1
  201. package/app/.next/server/app/api/models/alias/route.js.nft.json +1 -1
  202. package/app/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
  203. package/app/.next/server/app/api/models/availability/route.js +1 -1
  204. package/app/.next/server/app/api/models/availability/route.js.nft.json +1 -1
  205. package/app/.next/server/app/api/models/availability/route_client-reference-manifest.js +1 -1
  206. package/app/.next/server/app/api/models/custom/route.js +1 -1
  207. package/app/.next/server/app/api/models/custom/route.js.nft.json +1 -1
  208. package/app/.next/server/app/api/models/custom/route_client-reference-manifest.js +1 -1
  209. package/app/.next/server/app/api/models/disabled/route.js +1 -1
  210. package/app/.next/server/app/api/models/disabled/route.js.nft.json +1 -1
  211. package/app/.next/server/app/api/models/disabled/route_client-reference-manifest.js +1 -1
  212. package/app/.next/server/app/api/models/route.js +1 -1
  213. package/app/.next/server/app/api/models/route.js.nft.json +1 -1
  214. package/app/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
  215. package/app/.next/server/app/api/models/test/route.js +1 -1
  216. package/app/.next/server/app/api/models/test/route.js.nft.json +1 -1
  217. package/app/.next/server/app/api/models/test/route_client-reference-manifest.js +1 -1
  218. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  219. package/app/.next/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  220. package/app/.next/server/app/api/oauth/[provider]/[action]/route_client-reference-manifest.js +1 -1
  221. package/app/.next/server/app/api/oauth/codex/import/route.js +1 -1
  222. package/app/.next/server/app/api/oauth/codex/import/route.js.nft.json +1 -1
  223. package/app/.next/server/app/api/oauth/codex/import/route_client-reference-manifest.js +1 -1
  224. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  225. package/app/.next/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  226. package/app/.next/server/app/api/oauth/cursor/auto-import/route_client-reference-manifest.js +1 -1
  227. package/app/.next/server/app/api/oauth/cursor/import/route.js +1 -1
  228. package/app/.next/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  229. package/app/.next/server/app/api/oauth/cursor/import/route_client-reference-manifest.js +1 -1
  230. package/app/.next/server/app/api/oauth/gitlab/pat/route.js +1 -1
  231. package/app/.next/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  232. package/app/.next/server/app/api/oauth/gitlab/pat/route_client-reference-manifest.js +1 -1
  233. package/app/.next/server/app/api/oauth/iflow/cookie/route.js +1 -1
  234. package/app/.next/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  235. package/app/.next/server/app/api/oauth/iflow/cookie/route_client-reference-manifest.js +1 -1
  236. package/app/.next/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  237. package/app/.next/server/app/api/oauth/kiro/auto-import/route_client-reference-manifest.js +1 -1
  238. package/app/.next/server/app/api/oauth/kiro/browser-login/route.js +2 -2
  239. package/app/.next/server/app/api/oauth/kiro/browser-login/route.js.nft.json +1 -1
  240. package/app/.next/server/app/api/oauth/kiro/browser-login/route_client-reference-manifest.js +1 -1
  241. package/app/.next/server/app/api/oauth/kiro/import/route.js +1 -1
  242. package/app/.next/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  243. package/app/.next/server/app/api/oauth/kiro/import/route_client-reference-manifest.js +1 -1
  244. package/app/.next/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  245. package/app/.next/server/app/api/oauth/kiro/social-authorize/route_client-reference-manifest.js +1 -1
  246. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  247. package/app/.next/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  248. package/app/.next/server/app/api/oauth/kiro/social-exchange/route_client-reference-manifest.js +1 -1
  249. package/app/.next/server/app/api/pricing/route.js +1 -1
  250. package/app/.next/server/app/api/pricing/route.js.nft.json +1 -1
  251. package/app/.next/server/app/api/pricing/route_client-reference-manifest.js +1 -1
  252. package/app/.next/server/app/api/provider-nodes/[id]/route.js +1 -1
  253. package/app/.next/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  254. package/app/.next/server/app/api/provider-nodes/[id]/route_client-reference-manifest.js +1 -1
  255. package/app/.next/server/app/api/provider-nodes/route.js +1 -1
  256. package/app/.next/server/app/api/provider-nodes/route.js.nft.json +1 -1
  257. package/app/.next/server/app/api/provider-nodes/route_client-reference-manifest.js +1 -1
  258. package/app/.next/server/app/api/provider-nodes/validate/route.js +1 -1
  259. package/app/.next/server/app/api/provider-nodes/validate/route_client-reference-manifest.js +1 -1
  260. package/app/.next/server/app/api/providers/[id]/models/route.js +1 -1
  261. package/app/.next/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  262. package/app/.next/server/app/api/providers/[id]/models/route_client-reference-manifest.js +1 -1
  263. package/app/.next/server/app/api/providers/[id]/route.js +1 -1
  264. package/app/.next/server/app/api/providers/[id]/route.js.nft.json +1 -1
  265. package/app/.next/server/app/api/providers/[id]/route_client-reference-manifest.js +1 -1
  266. package/app/.next/server/app/api/providers/[id]/sync-models/route.js +1 -0
  267. package/app/.next/server/app/api/providers/[id]/sync-models/route.js.nft.json +1 -0
  268. package/app/.next/server/app/api/providers/[id]/sync-models/route_client-reference-manifest.js +1 -0
  269. package/app/.next/server/app/api/providers/[id]/test/route.js +1 -1
  270. package/app/.next/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  271. package/app/.next/server/app/api/providers/[id]/test/route_client-reference-manifest.js +1 -1
  272. package/app/.next/server/app/api/providers/[id]/test-models/route.js +1 -1
  273. package/app/.next/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  274. package/app/.next/server/app/api/providers/[id]/test-models/route_client-reference-manifest.js +1 -1
  275. package/app/.next/server/app/api/providers/client/route.js +1 -1
  276. package/app/.next/server/app/api/providers/client/route.js.nft.json +1 -1
  277. package/app/.next/server/app/api/providers/client/route_client-reference-manifest.js +1 -1
  278. package/app/.next/server/app/api/providers/export/route.js +1 -1
  279. package/app/.next/server/app/api/providers/export/route.js.nft.json +1 -1
  280. package/app/.next/server/app/api/providers/export/route_client-reference-manifest.js +1 -1
  281. package/app/.next/server/app/api/providers/import/route.js +1 -1
  282. package/app/.next/server/app/api/providers/import/route.js.nft.json +1 -1
  283. package/app/.next/server/app/api/providers/import/route_client-reference-manifest.js +1 -1
  284. package/app/.next/server/app/api/providers/kilo/free-models/route.js +1 -1
  285. package/app/.next/server/app/api/providers/kilo/free-models/route_client-reference-manifest.js +1 -1
  286. package/app/.next/server/app/api/providers/route.js +1 -1
  287. package/app/.next/server/app/api/providers/route.js.nft.json +1 -1
  288. package/app/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
  289. package/app/.next/server/app/api/providers/suggested-models/route.js +1 -1
  290. package/app/.next/server/app/api/providers/suggested-models/route_client-reference-manifest.js +1 -1
  291. package/app/.next/server/app/api/providers/test-batch/route.js +1 -1
  292. package/app/.next/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  293. package/app/.next/server/app/api/providers/test-batch/route_client-reference-manifest.js +1 -1
  294. package/app/.next/server/app/api/providers/validate/route.js +1 -1
  295. package/app/.next/server/app/api/providers/validate/route.js.nft.json +1 -1
  296. package/app/.next/server/app/api/providers/validate/route_client-reference-manifest.js +1 -1
  297. package/app/.next/server/app/api/proxy-pools/[id]/route.js +1 -1
  298. package/app/.next/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  299. package/app/.next/server/app/api/proxy-pools/[id]/route_client-reference-manifest.js +1 -1
  300. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  301. package/app/.next/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  302. package/app/.next/server/app/api/proxy-pools/[id]/test/route_client-reference-manifest.js +1 -1
  303. package/app/.next/server/app/api/proxy-pools/route.js +1 -1
  304. package/app/.next/server/app/api/proxy-pools/route.js.nft.json +1 -1
  305. package/app/.next/server/app/api/proxy-pools/route_client-reference-manifest.js +1 -1
  306. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  307. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  308. package/app/.next/server/app/api/proxy-pools/vercel-deploy/route_client-reference-manifest.js +1 -1
  309. package/app/.next/server/app/api/settings/database/route.js +1 -1
  310. package/app/.next/server/app/api/settings/database/route.js.nft.json +1 -1
  311. package/app/.next/server/app/api/settings/database/route_client-reference-manifest.js +1 -1
  312. package/app/.next/server/app/api/settings/proxy-test/route.js +1 -1
  313. package/app/.next/server/app/api/settings/proxy-test/route_client-reference-manifest.js +1 -1
  314. package/app/.next/server/app/api/settings/require-login/route.js +1 -1
  315. package/app/.next/server/app/api/settings/require-login/route.js.nft.json +1 -1
  316. package/app/.next/server/app/api/settings/require-login/route_client-reference-manifest.js +1 -1
  317. package/app/.next/server/app/api/settings/route.js +1 -1
  318. package/app/.next/server/app/api/settings/route.js.nft.json +1 -1
  319. package/app/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
  320. package/app/.next/server/app/api/shutdown/route.js +1 -1
  321. package/app/.next/server/app/api/shutdown/route_client-reference-manifest.js +1 -1
  322. package/app/.next/server/app/api/tags/route.js +1 -1
  323. package/app/.next/server/app/api/tags/route_client-reference-manifest.js +1 -1
  324. package/app/.next/server/app/api/translator/console-logs/route.js +1 -1
  325. package/app/.next/server/app/api/translator/console-logs/route_client-reference-manifest.js +1 -1
  326. package/app/.next/server/app/api/translator/console-logs/stream/route.js +2 -2
  327. package/app/.next/server/app/api/translator/console-logs/stream/route_client-reference-manifest.js +1 -1
  328. package/app/.next/server/app/api/translator/load/route.js +1 -1
  329. package/app/.next/server/app/api/translator/load/route_client-reference-manifest.js +1 -1
  330. package/app/.next/server/app/api/translator/save/route.js +1 -1
  331. package/app/.next/server/app/api/translator/save/route_client-reference-manifest.js +1 -1
  332. package/app/.next/server/app/api/translator/send/route.js +1 -1
  333. package/app/.next/server/app/api/translator/send/route.js.nft.json +1 -1
  334. package/app/.next/server/app/api/translator/send/route_client-reference-manifest.js +1 -1
  335. package/app/.next/server/app/api/translator/translate/route.js +1 -1
  336. package/app/.next/server/app/api/translator/translate/route.js.nft.json +1 -1
  337. package/app/.next/server/app/api/translator/translate/route_client-reference-manifest.js +1 -1
  338. package/app/.next/server/app/api/update/check/route.js +1 -1
  339. package/app/.next/server/app/api/update/check/route_client-reference-manifest.js +1 -1
  340. package/app/.next/server/app/api/usage/[connectionId]/route.js +1 -1
  341. package/app/.next/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  342. package/app/.next/server/app/api/usage/[connectionId]/route_client-reference-manifest.js +1 -1
  343. package/app/.next/server/app/api/usage/chart/route.js +1 -1
  344. package/app/.next/server/app/api/usage/chart/route.js.nft.json +1 -1
  345. package/app/.next/server/app/api/usage/chart/route_client-reference-manifest.js +1 -1
  346. package/app/.next/server/app/api/usage/history/route.js +1 -1
  347. package/app/.next/server/app/api/usage/history/route.js.nft.json +1 -1
  348. package/app/.next/server/app/api/usage/history/route_client-reference-manifest.js +1 -1
  349. package/app/.next/server/app/api/usage/providers/route.js +1 -1
  350. package/app/.next/server/app/api/usage/providers/route.js.nft.json +1 -1
  351. package/app/.next/server/app/api/usage/providers/route_client-reference-manifest.js +1 -1
  352. package/app/.next/server/app/api/usage/request-details/route.js +1 -1
  353. package/app/.next/server/app/api/usage/request-details/route.js.nft.json +1 -1
  354. package/app/.next/server/app/api/usage/request-details/route_client-reference-manifest.js +1 -1
  355. package/app/.next/server/app/api/usage/request-logs/route.js +1 -1
  356. package/app/.next/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  357. package/app/.next/server/app/api/usage/request-logs/route_client-reference-manifest.js +1 -1
  358. package/app/.next/server/app/api/usage/stats/route.js +1 -1
  359. package/app/.next/server/app/api/usage/stats/route.js.nft.json +1 -1
  360. package/app/.next/server/app/api/usage/stats/route_client-reference-manifest.js +1 -1
  361. package/app/.next/server/app/api/usage/stream/route.js +2 -2
  362. package/app/.next/server/app/api/usage/stream/route.js.nft.json +1 -1
  363. package/app/.next/server/app/api/usage/stream/route_client-reference-manifest.js +1 -1
  364. package/app/.next/server/app/api/v1/api/chat/route.js +1 -1
  365. package/app/.next/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  366. package/app/.next/server/app/api/v1/api/chat/route_client-reference-manifest.js +1 -1
  367. package/app/.next/server/app/api/v1/audio/speech/route.js +1 -1
  368. package/app/.next/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  369. package/app/.next/server/app/api/v1/audio/speech/route_client-reference-manifest.js +1 -1
  370. package/app/.next/server/app/api/v1/audio/transcriptions/route.js +1 -1
  371. package/app/.next/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  372. package/app/.next/server/app/api/v1/audio/transcriptions/route_client-reference-manifest.js +1 -1
  373. package/app/.next/server/app/api/v1/audio/voices/route.js +1 -1
  374. package/app/.next/server/app/api/v1/audio/voices/route_client-reference-manifest.js +1 -1
  375. package/app/.next/server/app/api/v1/chat/completions/route.js +1 -1
  376. package/app/.next/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  377. package/app/.next/server/app/api/v1/chat/completions/route_client-reference-manifest.js +1 -1
  378. package/app/.next/server/app/api/v1/chatgpt-web/image/[id]/route.js +1 -0
  379. package/app/.next/server/app/api/v1/chatgpt-web/image/[id]/route.js.nft.json +1 -0
  380. package/app/.next/server/app/api/v1/chatgpt-web/image/[id]/route_client-reference-manifest.js +1 -0
  381. package/app/.next/server/app/api/v1/embeddings/route.js +1 -1
  382. package/app/.next/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  383. package/app/.next/server/app/api/v1/embeddings/route_client-reference-manifest.js +1 -1
  384. package/app/.next/server/app/api/v1/images/generations/route.js +2 -2
  385. package/app/.next/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  386. package/app/.next/server/app/api/v1/images/generations/route_client-reference-manifest.js +1 -1
  387. package/app/.next/server/app/api/v1/messages/count_tokens/route.js +1 -1
  388. package/app/.next/server/app/api/v1/messages/count_tokens/route_client-reference-manifest.js +1 -1
  389. package/app/.next/server/app/api/v1/messages/route.js +1 -1
  390. package/app/.next/server/app/api/v1/messages/route.js.nft.json +1 -1
  391. package/app/.next/server/app/api/v1/messages/route_client-reference-manifest.js +1 -1
  392. package/app/.next/server/app/api/v1/models/[kind]/route.js +1 -1
  393. package/app/.next/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  394. package/app/.next/server/app/api/v1/models/[kind]/route_client-reference-manifest.js +1 -1
  395. package/app/.next/server/app/api/v1/models/info/route.js +1 -1
  396. package/app/.next/server/app/api/v1/models/info/route_client-reference-manifest.js +1 -1
  397. package/app/.next/server/app/api/v1/models/route.js +1 -1
  398. package/app/.next/server/app/api/v1/models/route.js.nft.json +1 -1
  399. package/app/.next/server/app/api/v1/models/route_client-reference-manifest.js +1 -1
  400. package/app/.next/server/app/api/v1/responses/compact/route.js +1 -1
  401. package/app/.next/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  402. package/app/.next/server/app/api/v1/responses/compact/route_client-reference-manifest.js +1 -1
  403. package/app/.next/server/app/api/v1/responses/route.js +1 -1
  404. package/app/.next/server/app/api/v1/responses/route.js.nft.json +1 -1
  405. package/app/.next/server/app/api/v1/responses/route_client-reference-manifest.js +1 -1
  406. package/app/.next/server/app/api/v1/route.js +1 -1
  407. package/app/.next/server/app/api/v1/route.js.nft.json +1 -1
  408. package/app/.next/server/app/api/v1/route_client-reference-manifest.js +1 -1
  409. package/app/.next/server/app/api/v1/search/route.js +1 -1
  410. package/app/.next/server/app/api/v1/search/route.js.nft.json +1 -1
  411. package/app/.next/server/app/api/v1/search/route_client-reference-manifest.js +1 -1
  412. package/app/.next/server/app/api/v1/video/generations/route.js +1 -1
  413. package/app/.next/server/app/api/v1/video/generations/route.js.nft.json +1 -1
  414. package/app/.next/server/app/api/v1/video/generations/route_client-reference-manifest.js +1 -1
  415. package/app/.next/server/app/api/v1/web/fetch/route.js +1 -1
  416. package/app/.next/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  417. package/app/.next/server/app/api/v1/web/fetch/route_client-reference-manifest.js +1 -1
  418. package/app/.next/server/app/api/v1beta/models/[...path]/route.js +1 -1
  419. package/app/.next/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  420. package/app/.next/server/app/api/v1beta/models/[...path]/route_client-reference-manifest.js +1 -1
  421. package/app/.next/server/app/api/v1beta/models/route.js +1 -1
  422. package/app/.next/server/app/api/v1beta/models/route_client-reference-manifest.js +1 -1
  423. package/app/.next/server/app/callback/page.js +2 -2
  424. package/app/.next/server/app/callback/page.js.nft.json +1 -1
  425. package/app/.next/server/app/callback/page_client-reference-manifest.js +1 -1
  426. package/app/.next/server/app/callback.html +1 -1
  427. package/app/.next/server/app/callback.rsc +6 -6
  428. package/app/.next/server/app/callback.segments/_full.segment.rsc +6 -6
  429. package/app/.next/server/app/callback.segments/_head.segment.rsc +1 -1
  430. package/app/.next/server/app/callback.segments/_index.segment.rsc +5 -5
  431. package/app/.next/server/app/callback.segments/_tree.segment.rsc +3 -3
  432. package/app/.next/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  433. package/app/.next/server/app/callback.segments/callback.segment.rsc +1 -1
  434. package/app/.next/server/app/dashboard/basic-chat.html +1 -1
  435. package/app/.next/server/app/dashboard/basic-chat.rsc +8 -8
  436. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  437. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  438. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  439. package/app/.next/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  440. package/app/.next/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  441. package/app/.next/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  442. package/app/.next/server/app/dashboard/basic-chat.segments/_index.segment.rsc +5 -5
  443. package/app/.next/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +4 -4
  444. package/app/.next/server/app/dashboard/cli-tools.html +1 -1
  445. package/app/.next/server/app/dashboard/cli-tools.rsc +9 -9
  446. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  447. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  448. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  449. package/app/.next/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  450. package/app/.next/server/app/dashboard/cli-tools.segments/_full.segment.rsc +9 -9
  451. package/app/.next/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  452. package/app/.next/server/app/dashboard/cli-tools.segments/_index.segment.rsc +5 -5
  453. package/app/.next/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +4 -4
  454. package/app/.next/server/app/dashboard/combos.html +1 -1
  455. package/app/.next/server/app/dashboard/combos.rsc +8 -8
  456. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  457. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  458. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  459. package/app/.next/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  460. package/app/.next/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  461. package/app/.next/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  462. package/app/.next/server/app/dashboard/combos.segments/_index.segment.rsc +5 -5
  463. package/app/.next/server/app/dashboard/combos.segments/_tree.segment.rsc +4 -4
  464. package/app/.next/server/app/dashboard/endpoint.html +1 -1
  465. package/app/.next/server/app/dashboard/endpoint.rsc +9 -9
  466. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  467. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  468. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  469. package/app/.next/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  470. package/app/.next/server/app/dashboard/endpoint.segments/_full.segment.rsc +9 -9
  471. package/app/.next/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  472. package/app/.next/server/app/dashboard/endpoint.segments/_index.segment.rsc +5 -5
  473. package/app/.next/server/app/dashboard/endpoint.segments/_tree.segment.rsc +4 -4
  474. package/app/.next/server/app/dashboard/media-providers/web.html +1 -1
  475. package/app/.next/server/app/dashboard/media-providers/web.rsc +8 -8
  476. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  477. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  478. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  479. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  480. package/app/.next/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  481. package/app/.next/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  482. package/app/.next/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  483. package/app/.next/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +5 -5
  484. package/app/.next/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +4 -4
  485. package/app/.next/server/app/dashboard/mitm.html +1 -1
  486. package/app/.next/server/app/dashboard/mitm.rsc +8 -8
  487. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  488. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  489. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  490. package/app/.next/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  491. package/app/.next/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  492. package/app/.next/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  493. package/app/.next/server/app/dashboard/mitm.segments/_index.segment.rsc +5 -5
  494. package/app/.next/server/app/dashboard/mitm.segments/_tree.segment.rsc +4 -4
  495. package/app/.next/server/app/dashboard/profile.html +1 -1
  496. package/app/.next/server/app/dashboard/profile.rsc +8 -8
  497. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  498. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  499. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  500. package/app/.next/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  501. package/app/.next/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  502. package/app/.next/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  503. package/app/.next/server/app/dashboard/profile.segments/_index.segment.rsc +5 -5
  504. package/app/.next/server/app/dashboard/profile.segments/_tree.segment.rsc +4 -4
  505. package/app/.next/server/app/dashboard/providers/new.html +1 -1
  506. package/app/.next/server/app/dashboard/providers/new.rsc +8 -8
  507. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  508. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  509. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  510. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  511. package/app/.next/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  512. package/app/.next/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  513. package/app/.next/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  514. package/app/.next/server/app/dashboard/providers/new.segments/_index.segment.rsc +5 -5
  515. package/app/.next/server/app/dashboard/providers/new.segments/_tree.segment.rsc +4 -4
  516. package/app/.next/server/app/dashboard/providers.html +1 -1
  517. package/app/.next/server/app/dashboard/providers.rsc +8 -8
  518. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  519. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  520. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  521. package/app/.next/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  522. package/app/.next/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  523. package/app/.next/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  524. package/app/.next/server/app/dashboard/providers.segments/_index.segment.rsc +5 -5
  525. package/app/.next/server/app/dashboard/providers.segments/_tree.segment.rsc +4 -4
  526. package/app/.next/server/app/dashboard/proxy-pools.html +1 -1
  527. package/app/.next/server/app/dashboard/proxy-pools.rsc +8 -8
  528. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  529. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  530. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  531. package/app/.next/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  532. package/app/.next/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  533. package/app/.next/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  534. package/app/.next/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +5 -5
  535. package/app/.next/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +4 -4
  536. package/app/.next/server/app/dashboard/quota.html +2 -2
  537. package/app/.next/server/app/dashboard/quota.rsc +9 -9
  538. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  539. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  540. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  541. package/app/.next/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  542. package/app/.next/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  543. package/app/.next/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  544. package/app/.next/server/app/dashboard/quota.segments/_index.segment.rsc +5 -5
  545. package/app/.next/server/app/dashboard/quota.segments/_tree.segment.rsc +4 -4
  546. package/app/.next/server/app/dashboard/settings/pricing/page.js +2 -2
  547. package/app/.next/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  548. package/app/.next/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  549. package/app/.next/server/app/dashboard/settings/pricing.html +1 -1
  550. package/app/.next/server/app/dashboard/settings/pricing.rsc +6 -6
  551. package/app/.next/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  552. package/app/.next/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  553. package/app/.next/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +5 -5
  554. package/app/.next/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +3 -3
  555. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  556. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  557. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  558. package/app/.next/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  559. package/app/.next/server/app/dashboard/skills.html +1 -1
  560. package/app/.next/server/app/dashboard/skills.rsc +8 -8
  561. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  562. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  563. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  564. package/app/.next/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  565. package/app/.next/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  566. package/app/.next/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  567. package/app/.next/server/app/dashboard/skills.segments/_index.segment.rsc +5 -5
  568. package/app/.next/server/app/dashboard/skills.segments/_tree.segment.rsc +4 -4
  569. package/app/.next/server/app/dashboard/translator.html +1 -1
  570. package/app/.next/server/app/dashboard/translator.rsc +8 -8
  571. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  572. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  573. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  574. package/app/.next/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  575. package/app/.next/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  576. package/app/.next/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  577. package/app/.next/server/app/dashboard/translator.segments/_index.segment.rsc +5 -5
  578. package/app/.next/server/app/dashboard/translator.segments/_tree.segment.rsc +4 -4
  579. package/app/.next/server/app/dashboard/usage.html +1 -1
  580. package/app/.next/server/app/dashboard/usage.rsc +8 -8
  581. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  582. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  583. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  584. package/app/.next/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  585. package/app/.next/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  586. package/app/.next/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  587. package/app/.next/server/app/dashboard/usage.segments/_index.segment.rsc +5 -5
  588. package/app/.next/server/app/dashboard/usage.segments/_tree.segment.rsc +4 -4
  589. package/app/.next/server/app/dashboard.html +1 -1
  590. package/app/.next/server/app/dashboard.rsc +9 -9
  591. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  592. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  593. package/app/.next/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +3 -3
  594. package/app/.next/server/app/dashboard.segments/_full.segment.rsc +9 -9
  595. package/app/.next/server/app/dashboard.segments/_head.segment.rsc +1 -1
  596. package/app/.next/server/app/dashboard.segments/_index.segment.rsc +5 -5
  597. package/app/.next/server/app/dashboard.segments/_tree.segment.rsc +4 -4
  598. package/app/.next/server/app/favicon.ico/route.js +1 -1
  599. package/app/.next/server/app/index.html +1 -1
  600. package/app/.next/server/app/index.rsc +5 -5
  601. package/app/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  602. package/app/.next/server/app/index.segments/_full.segment.rsc +5 -5
  603. package/app/.next/server/app/index.segments/_head.segment.rsc +1 -1
  604. package/app/.next/server/app/index.segments/_index.segment.rsc +5 -5
  605. package/app/.next/server/app/index.segments/_tree.segment.rsc +3 -3
  606. package/app/.next/server/app/landing/page.js +2 -2
  607. package/app/.next/server/app/landing/page.js.nft.json +1 -1
  608. package/app/.next/server/app/landing/page_client-reference-manifest.js +1 -1
  609. package/app/.next/server/app/landing.html +1 -1
  610. package/app/.next/server/app/landing.rsc +6 -6
  611. package/app/.next/server/app/landing.segments/_full.segment.rsc +6 -6
  612. package/app/.next/server/app/landing.segments/_head.segment.rsc +1 -1
  613. package/app/.next/server/app/landing.segments/_index.segment.rsc +5 -5
  614. package/app/.next/server/app/landing.segments/_tree.segment.rsc +3 -3
  615. package/app/.next/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  616. package/app/.next/server/app/landing.segments/landing.segment.rsc +1 -1
  617. package/app/.next/server/app/login/page.js +2 -2
  618. package/app/.next/server/app/login/page.js.nft.json +1 -1
  619. package/app/.next/server/app/login/page_client-reference-manifest.js +1 -1
  620. package/app/.next/server/app/login.html +1 -1
  621. package/app/.next/server/app/login.rsc +7 -7
  622. package/app/.next/server/app/login.segments/_full.segment.rsc +7 -7
  623. package/app/.next/server/app/login.segments/_head.segment.rsc +1 -1
  624. package/app/.next/server/app/login.segments/_index.segment.rsc +5 -5
  625. package/app/.next/server/app/login.segments/_tree.segment.rsc +4 -4
  626. package/app/.next/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  627. package/app/.next/server/app/login.segments/login.segment.rsc +1 -1
  628. package/app/.next/server/app/manifest.webmanifest/route.js +2 -2
  629. package/app/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  630. package/app/.next/server/app/page.js +2 -2
  631. package/app/.next/server/app/page.js.nft.json +1 -1
  632. package/app/.next/server/app/page_client-reference-manifest.js +1 -1
  633. package/app/.next/server/app-paths-manifest.json +14 -12
  634. package/app/.next/server/chunks/1526.js +1 -0
  635. package/app/.next/server/chunks/2029.js +2 -7
  636. package/app/.next/server/chunks/2204.js +1 -1
  637. package/app/.next/server/chunks/250.js +1 -0
  638. package/app/.next/server/chunks/2549.js +1 -1
  639. package/app/.next/server/chunks/2722.js +5 -5
  640. package/app/.next/server/chunks/3110.js +3 -3
  641. package/app/.next/server/chunks/319.js +3 -3
  642. package/app/.next/server/chunks/412.js +1 -1
  643. package/app/.next/server/chunks/4149.js +1 -1
  644. package/app/.next/server/chunks/4404.js +1 -1
  645. package/app/.next/server/chunks/4741.js +2 -2
  646. package/app/.next/server/chunks/4746.js +1 -1
  647. package/app/.next/server/chunks/4820.js +1 -1
  648. package/app/.next/server/chunks/5644.js +1 -1
  649. package/app/.next/server/chunks/5681.js +1 -1
  650. package/app/.next/server/chunks/5718.js +1 -1
  651. package/app/.next/server/chunks/6084.js +1 -1
  652. package/app/.next/server/chunks/6108.js +1 -1
  653. package/app/.next/server/chunks/6202.js +1 -1
  654. package/app/.next/server/chunks/6750.js +1 -0
  655. package/app/.next/server/chunks/6811.js +1 -1
  656. package/app/.next/server/chunks/6814.js +5 -0
  657. package/app/.next/server/chunks/7341.js +1 -1
  658. package/app/.next/server/chunks/7482.js +18 -18
  659. package/app/.next/server/chunks/7774.js +10 -10
  660. package/app/.next/server/chunks/8491.js +1 -1
  661. package/app/.next/server/chunks/8590.js +1 -1
  662. package/app/.next/server/chunks/8895.js +1 -1
  663. package/app/.next/server/chunks/9982.js +1 -0
  664. package/app/.next/server/middleware-build-manifest.js +1 -1
  665. package/app/.next/server/middleware.js +4 -4
  666. package/app/.next/server/pages/404.html +1 -1
  667. package/app/.next/server/pages/500.html +1 -1
  668. package/app/.next/server/server-reference-manifest.js +1 -1
  669. package/app/.next/server/server-reference-manifest.json +1 -1
  670. package/app/.next/static/{uSk8fvki1Xuy7nlktCQsE → 0upBBziHoCcHIU60tgxI0}/_buildManifest.js +1 -1
  671. package/app/.next/static/chunks/1321-7ee7a3836004e2b1.js +1 -0
  672. package/app/.next/static/chunks/1a258343-bc0b514c079d8898.js +1 -0
  673. package/app/{.next-cli-build/static/chunks/3794-ba2500baa4c52d55.js → .next/static/chunks/3794-e569667691edc8f7.js} +1 -1
  674. package/app/{.next-cli-build/static/chunks/5497-0933701d0fd550c2.js → .next/static/chunks/5497-540d0b186ec57b3b.js} +1 -1
  675. package/app/.next/static/chunks/{6069-7212bf60ef116c9d.js → 6069-18fd723e73586589.js} +7 -7
  676. package/app/.next/static/chunks/698-0bd94087d85c591c.js +64 -0
  677. package/app/.next/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-db8ac7cf0ef9a361.js → page-a0a8d98397b7ca72.js} +1 -1
  678. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-3e2d437f00e86228.js → page-05b0777df2a6420f.js} +1 -1
  679. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-2f0c02b6169a110a.js +1 -0
  680. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-75c3e40efcd0c885.js +1 -0
  681. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/page-0e6ef3c2c5a8f3cc.js +1 -0
  682. package/app/.next/static/chunks/app/(dashboard)/dashboard/{page-14a181e5e19c5186.js → endpoint/page-6887eb40c91902b7.js} +1 -1
  683. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-963642d77344259e.js → page-0069897df5ad4c14.js} +2 -2
  684. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-3723e8ba96394d8c.js → page-50845ea95967abce.js} +1 -1
  685. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-05769b574d5c4ef8.js → page-8c377a4332874fe4.js} +1 -1
  686. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-f6ef4eef0f416702.js +1 -0
  687. package/app/.next/static/chunks/app/(dashboard)/dashboard/mitm/{page-e1b5a604b766ad70.js → page-320c432152003c09.js} +1 -1
  688. package/app/.next/static/chunks/app/(dashboard)/dashboard/{endpoint/page-14a181e5e19c5186.js → page-6887eb40c91902b7.js} +1 -1
  689. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-138e1c46accc056f.js +1 -0
  690. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-990f7a655b170757.js +3 -0
  691. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-54886878afdbc216.js +1 -0
  692. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-7348a53c1dd3d2f9.js +1 -0
  693. package/app/{.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-d5ad4c7d44722fef.js → .next/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-da705aa383019f4b.js} +2 -2
  694. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-1ad16b0309e214ac.js +1 -0
  695. package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/page-d3877492b08af072.js +1 -0
  696. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-e38a8c16b9fd9a18.js +1 -0
  697. package/app/.next/static/chunks/app/(dashboard)/dashboard/usage/{page-163bfd423028e8c6.js → page-a9e59eed3cf5a601.js} +1 -1
  698. package/app/.next/static/chunks/app/(dashboard)/{layout-06932c731d47c1e3.js → layout-297b038d45f7d6bb.js} +1 -1
  699. package/app/.next/static/chunks/app/_global-error/page-6f9d205c518b4013.js +1 -0
  700. package/app/.next/static/chunks/app/_not-found/{page-cc659eb86a43c282.js → page-5c2a1336b39b2dde.js} +1 -1
  701. package/app/.next/static/chunks/app/api/auth/login/route-6f9d205c518b4013.js +1 -0
  702. package/app/.next/static/chunks/app/api/auth/logout/route-6f9d205c518b4013.js +1 -0
  703. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-6f9d205c518b4013.js +1 -0
  704. package/app/.next/static/chunks/app/api/auth/oidc/start/route-6f9d205c518b4013.js +1 -0
  705. package/app/.next/static/chunks/app/api/auth/oidc/test/route-6f9d205c518b4013.js +1 -0
  706. package/app/.next/static/chunks/app/api/auth/status/route-6f9d205c518b4013.js +1 -0
  707. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-6f9d205c518b4013.js +1 -0
  708. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-6f9d205c518b4013.js +1 -0
  709. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-6f9d205c518b4013.js +1 -0
  710. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-6f9d205c518b4013.js +1 -0
  711. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-6f9d205c518b4013.js +1 -0
  712. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-6f9d205c518b4013.js +1 -0
  713. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-6f9d205c518b4013.js +1 -0
  714. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-6f9d205c518b4013.js +1 -0
  715. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-6f9d205c518b4013.js +1 -0
  716. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-6f9d205c518b4013.js +1 -0
  717. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-6f9d205c518b4013.js +1 -0
  718. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-6f9d205c518b4013.js +1 -0
  719. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-6f9d205c518b4013.js +1 -0
  720. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-6f9d205c518b4013.js +1 -0
  721. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-6f9d205c518b4013.js +1 -0
  722. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-6f9d205c518b4013.js +1 -0
  723. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-6f9d205c518b4013.js +1 -0
  724. package/app/.next/static/chunks/app/api/cloud/auth/route-6f9d205c518b4013.js +1 -0
  725. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-6f9d205c518b4013.js +1 -0
  726. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-6f9d205c518b4013.js +1 -0
  727. package/app/.next/static/chunks/app/api/cloud/models/alias/route-6f9d205c518b4013.js +1 -0
  728. package/app/.next/static/chunks/app/api/combos/[id]/route-6f9d205c518b4013.js +1 -0
  729. package/app/.next/static/chunks/app/api/combos/route-6f9d205c518b4013.js +1 -0
  730. package/app/.next/static/chunks/app/api/health/route-6f9d205c518b4013.js +1 -0
  731. package/app/.next/static/chunks/app/api/init/route-6f9d205c518b4013.js +1 -0
  732. package/app/.next/static/chunks/app/api/keys/[id]/route-6f9d205c518b4013.js +1 -0
  733. package/app/.next/static/chunks/app/api/keys/route-6f9d205c518b4013.js +1 -0
  734. package/app/.next/static/chunks/app/api/locale/route-6f9d205c518b4013.js +1 -0
  735. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-6f9d205c518b4013.js +1 -0
  736. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-6f9d205c518b4013.js +1 -0
  737. package/app/.next/static/chunks/app/api/media/download/route-6f9d205c518b4013.js +1 -0
  738. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-6f9d205c518b4013.js +1 -0
  739. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-6f9d205c518b4013.js +1 -0
  740. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-6f9d205c518b4013.js +1 -0
  741. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-6f9d205c518b4013.js +1 -0
  742. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-6f9d205c518b4013.js +1 -0
  743. package/app/.next/static/chunks/app/api/models/alias/route-6f9d205c518b4013.js +1 -0
  744. package/app/.next/static/chunks/app/api/models/availability/route-6f9d205c518b4013.js +1 -0
  745. package/app/.next/static/chunks/app/api/models/custom/route-6f9d205c518b4013.js +1 -0
  746. package/app/.next/static/chunks/app/api/models/disabled/route-6f9d205c518b4013.js +1 -0
  747. package/app/.next/static/chunks/app/api/models/route-6f9d205c518b4013.js +1 -0
  748. package/app/.next/static/chunks/app/api/models/test/route-6f9d205c518b4013.js +1 -0
  749. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-6f9d205c518b4013.js +1 -0
  750. package/app/.next/static/chunks/app/api/oauth/codex/import/route-6f9d205c518b4013.js +1 -0
  751. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-6f9d205c518b4013.js +1 -0
  752. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-6f9d205c518b4013.js +1 -0
  753. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-6f9d205c518b4013.js +1 -0
  754. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-6f9d205c518b4013.js +1 -0
  755. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-6f9d205c518b4013.js +1 -0
  756. package/app/.next/static/chunks/app/api/oauth/kiro/browser-login/route-6f9d205c518b4013.js +1 -0
  757. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-6f9d205c518b4013.js +1 -0
  758. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-6f9d205c518b4013.js +1 -0
  759. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-6f9d205c518b4013.js +1 -0
  760. package/app/.next/static/chunks/app/api/pricing/route-6f9d205c518b4013.js +1 -0
  761. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-6f9d205c518b4013.js +1 -0
  762. package/app/.next/static/chunks/app/api/provider-nodes/route-6f9d205c518b4013.js +1 -0
  763. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-6f9d205c518b4013.js +1 -0
  764. package/app/.next/static/chunks/app/api/providers/[id]/models/route-6f9d205c518b4013.js +1 -0
  765. package/app/.next/static/chunks/app/api/providers/[id]/route-6f9d205c518b4013.js +1 -0
  766. package/app/.next/static/chunks/app/api/providers/[id]/sync-models/route-6f9d205c518b4013.js +1 -0
  767. package/app/.next/static/chunks/app/api/providers/[id]/test/route-6f9d205c518b4013.js +1 -0
  768. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-6f9d205c518b4013.js +1 -0
  769. package/app/.next/static/chunks/app/api/providers/client/route-6f9d205c518b4013.js +1 -0
  770. package/app/.next/static/chunks/app/api/providers/export/route-6f9d205c518b4013.js +1 -0
  771. package/app/.next/static/chunks/app/api/providers/import/route-6f9d205c518b4013.js +1 -0
  772. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-6f9d205c518b4013.js +1 -0
  773. package/app/.next/static/chunks/app/api/providers/route-6f9d205c518b4013.js +1 -0
  774. package/app/.next/static/chunks/app/api/providers/suggested-models/route-6f9d205c518b4013.js +1 -0
  775. package/app/.next/static/chunks/app/api/providers/test-batch/route-6f9d205c518b4013.js +1 -0
  776. package/app/.next/static/chunks/app/api/providers/validate/route-6f9d205c518b4013.js +1 -0
  777. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-6f9d205c518b4013.js +1 -0
  778. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-6f9d205c518b4013.js +1 -0
  779. package/app/.next/static/chunks/app/api/proxy-pools/route-6f9d205c518b4013.js +1 -0
  780. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-6f9d205c518b4013.js +1 -0
  781. package/app/.next/static/chunks/app/api/settings/database/route-6f9d205c518b4013.js +1 -0
  782. package/app/.next/static/chunks/app/api/settings/proxy-test/route-6f9d205c518b4013.js +1 -0
  783. package/app/.next/static/chunks/app/api/settings/require-login/route-6f9d205c518b4013.js +1 -0
  784. package/app/.next/static/chunks/app/api/settings/route-6f9d205c518b4013.js +1 -0
  785. package/app/.next/static/chunks/app/api/shutdown/route-6f9d205c518b4013.js +1 -0
  786. package/app/.next/static/chunks/app/api/tags/route-6f9d205c518b4013.js +1 -0
  787. package/app/.next/static/chunks/app/api/translator/console-logs/route-6f9d205c518b4013.js +1 -0
  788. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-6f9d205c518b4013.js +1 -0
  789. package/app/.next/static/chunks/app/api/translator/load/route-6f9d205c518b4013.js +1 -0
  790. package/app/.next/static/chunks/app/api/translator/save/route-6f9d205c518b4013.js +1 -0
  791. package/app/.next/static/chunks/app/api/translator/send/route-6f9d205c518b4013.js +1 -0
  792. package/app/.next/static/chunks/app/api/translator/translate/route-6f9d205c518b4013.js +1 -0
  793. package/app/.next/static/chunks/app/api/update/check/route-6f9d205c518b4013.js +1 -0
  794. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-6f9d205c518b4013.js +1 -0
  795. package/app/.next/static/chunks/app/api/usage/chart/route-6f9d205c518b4013.js +1 -0
  796. package/app/.next/static/chunks/app/api/usage/history/route-6f9d205c518b4013.js +1 -0
  797. package/app/.next/static/chunks/app/api/usage/providers/route-6f9d205c518b4013.js +1 -0
  798. package/app/.next/static/chunks/app/api/usage/request-details/route-6f9d205c518b4013.js +1 -0
  799. package/app/.next/static/chunks/app/api/usage/request-logs/route-6f9d205c518b4013.js +1 -0
  800. package/app/.next/static/chunks/app/api/usage/stats/route-6f9d205c518b4013.js +1 -0
  801. package/app/.next/static/chunks/app/api/usage/stream/route-6f9d205c518b4013.js +1 -0
  802. package/app/.next/static/chunks/app/api/v1/api/chat/route-6f9d205c518b4013.js +1 -0
  803. package/app/.next/static/chunks/app/api/v1/audio/speech/route-6f9d205c518b4013.js +1 -0
  804. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-6f9d205c518b4013.js +1 -0
  805. package/app/.next/static/chunks/app/api/v1/audio/voices/route-6f9d205c518b4013.js +1 -0
  806. package/app/.next/static/chunks/app/api/v1/chat/completions/route-6f9d205c518b4013.js +1 -0
  807. package/app/.next/static/chunks/app/api/v1/chatgpt-web/image/[id]/route-6f9d205c518b4013.js +1 -0
  808. package/app/.next/static/chunks/app/api/v1/embeddings/route-6f9d205c518b4013.js +1 -0
  809. package/app/.next/static/chunks/app/api/v1/images/generations/route-6f9d205c518b4013.js +1 -0
  810. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-6f9d205c518b4013.js +1 -0
  811. package/app/.next/static/chunks/app/api/v1/messages/route-6f9d205c518b4013.js +1 -0
  812. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-6f9d205c518b4013.js +1 -0
  813. package/app/.next/static/chunks/app/api/v1/models/info/route-6f9d205c518b4013.js +1 -0
  814. package/app/.next/static/chunks/app/api/v1/models/route-6f9d205c518b4013.js +1 -0
  815. package/app/.next/static/chunks/app/api/v1/responses/compact/route-6f9d205c518b4013.js +1 -0
  816. package/app/.next/static/chunks/app/api/v1/responses/route-6f9d205c518b4013.js +1 -0
  817. package/app/.next/static/chunks/app/api/v1/route-6f9d205c518b4013.js +1 -0
  818. package/app/.next/static/chunks/app/api/v1/search/route-6f9d205c518b4013.js +1 -0
  819. package/app/.next/static/chunks/app/api/v1/video/generations/route-6f9d205c518b4013.js +1 -0
  820. package/app/.next/static/chunks/app/api/v1/web/fetch/route-6f9d205c518b4013.js +1 -0
  821. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-6f9d205c518b4013.js +1 -0
  822. package/app/.next/static/chunks/app/api/v1beta/models/route-6f9d205c518b4013.js +1 -0
  823. package/app/.next/static/chunks/app/callback/page-48be92cc88223eb6.js +1 -0
  824. package/app/.next/static/chunks/app/dashboard/settings/pricing/page-06a8d864ae01d4a7.js +1 -0
  825. package/app/.next/static/chunks/app/landing/{page-3d2b079bd25f0dda.js → page-2461168fb59fbc7f.js} +1 -1
  826. package/app/.next/static/chunks/app/{layout-ed446c17642f5aeb.js → layout-707bc0af2cad348a.js} +1 -1
  827. package/app/.next/static/chunks/app/login/page-ce242826dfda53f2.js +1 -0
  828. package/app/.next/static/chunks/app/manifest.webmanifest/route-6f9d205c518b4013.js +1 -0
  829. package/app/.next/static/chunks/app/page-6f9d205c518b4013.js +1 -0
  830. package/app/.next/static/chunks/{main-8edc076c219c1a63.js → main-195dd2cec8411e79.js} +2 -2
  831. package/app/.next/static/chunks/{main-app-2703eaf4f69e57d7.js → main-app-914c450e94817d03.js} +1 -1
  832. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-6f9d205c518b4013.js +1 -0
  833. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-6f9d205c518b4013.js +1 -0
  834. package/app/.next/static/chunks/next/dist/client/components/builtin/global-error-d8ee3c482864b9da.js +1 -0
  835. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-6f9d205c518b4013.js +1 -0
  836. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6f9d205c518b4013.js +1 -0
  837. package/app/{.next-cli-build/static/css/599369d853c61df7.css → .next/static/css/008a05b0ad6b854a.css} +1 -1
  838. package/app/.next/static/css/{454db3b478540e33.css → 7a3e1568f247f3d0.css} +1 -1
  839. package/app/.next/static/css/9f207d7ed6efa211.css +1 -0
  840. package/app/.next/static/media/material-symbols-outlined.ec1fa111.woff2 +0 -0
  841. package/app/.next-cli-build/static/{uSk8fvki1Xuy7nlktCQsE → 0upBBziHoCcHIU60tgxI0}/_buildManifest.js +1 -1
  842. package/app/.next-cli-build/static/chunks/1321-7ee7a3836004e2b1.js +1 -0
  843. package/app/.next-cli-build/static/chunks/1a258343-bc0b514c079d8898.js +1 -0
  844. package/app/{.next/static/chunks/3794-ba2500baa4c52d55.js → .next-cli-build/static/chunks/3794-e569667691edc8f7.js} +1 -1
  845. package/app/{.next/static/chunks/5497-0933701d0fd550c2.js → .next-cli-build/static/chunks/5497-540d0b186ec57b3b.js} +1 -1
  846. package/app/.next-cli-build/static/chunks/{6069-7212bf60ef116c9d.js → 6069-18fd723e73586589.js} +7 -7
  847. package/app/.next-cli-build/static/chunks/698-0bd94087d85c591c.js +64 -0
  848. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-db8ac7cf0ef9a361.js → page-a0a8d98397b7ca72.js} +1 -1
  849. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-3e2d437f00e86228.js → page-05b0777df2a6420f.js} +1 -1
  850. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-2f0c02b6169a110a.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-75c3e40efcd0c885.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-0e6ef3c2c5a8f3cc.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/{page-14a181e5e19c5186.js → page-6887eb40c91902b7.js} +1 -1
  854. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-963642d77344259e.js → page-0069897df5ad4c14.js} +2 -2
  855. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-3723e8ba96394d8c.js → page-50845ea95967abce.js} +1 -1
  856. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-05769b574d5c4ef8.js → page-8c377a4332874fe4.js} +1 -1
  857. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-f6ef4eef0f416702.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-e1b5a604b766ad70.js → page-320c432152003c09.js} +1 -1
  859. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/{page-14a181e5e19c5186.js → page-6887eb40c91902b7.js} +1 -1
  860. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-138e1c46accc056f.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-990f7a655b170757.js +3 -0
  862. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-54886878afdbc216.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-7348a53c1dd3d2f9.js +1 -0
  864. package/app/{.next/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-d5ad4c7d44722fef.js → .next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-da705aa383019f4b.js} +2 -2
  865. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-1ad16b0309e214ac.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-d3877492b08af072.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-e38a8c16b9fd9a18.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/{page-163bfd423028e8c6.js → page-a9e59eed3cf5a601.js} +1 -1
  869. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-06932c731d47c1e3.js → layout-297b038d45f7d6bb.js} +1 -1
  870. package/app/.next-cli-build/static/chunks/app/_global-error/page-6f9d205c518b4013.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/_not-found/{page-cc659eb86a43c282.js → page-5c2a1336b39b2dde.js} +1 -1
  872. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-6f9d205c518b4013.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-6f9d205c518b4013.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-6f9d205c518b4013.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-6f9d205c518b4013.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-6f9d205c518b4013.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-6f9d205c518b4013.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-6f9d205c518b4013.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-6f9d205c518b4013.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-6f9d205c518b4013.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-6f9d205c518b4013.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-6f9d205c518b4013.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-6f9d205c518b4013.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-6f9d205c518b4013.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-6f9d205c518b4013.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-6f9d205c518b4013.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-6f9d205c518b4013.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-6f9d205c518b4013.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-6f9d205c518b4013.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-6f9d205c518b4013.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-6f9d205c518b4013.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-6f9d205c518b4013.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-6f9d205c518b4013.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-6f9d205c518b4013.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/api/cloud/auth/route-6f9d205c518b4013.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/api/cloud/credentials/update/route-6f9d205c518b4013.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/api/cloud/model/resolve/route-6f9d205c518b4013.js +1 -0
  898. package/app/.next-cli-build/static/chunks/app/api/cloud/models/alias/route-6f9d205c518b4013.js +1 -0
  899. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-6f9d205c518b4013.js +1 -0
  900. package/app/.next-cli-build/static/chunks/app/api/combos/route-6f9d205c518b4013.js +1 -0
  901. package/app/.next-cli-build/static/chunks/app/api/health/route-6f9d205c518b4013.js +1 -0
  902. package/app/.next-cli-build/static/chunks/app/api/init/route-6f9d205c518b4013.js +1 -0
  903. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-6f9d205c518b4013.js +1 -0
  904. package/app/.next-cli-build/static/chunks/app/api/keys/route-6f9d205c518b4013.js +1 -0
  905. package/app/.next-cli-build/static/chunks/app/api/locale/route-6f9d205c518b4013.js +1 -0
  906. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-6f9d205c518b4013.js +1 -0
  907. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-6f9d205c518b4013.js +1 -0
  908. package/app/.next-cli-build/static/chunks/app/api/media/download/route-6f9d205c518b4013.js +1 -0
  909. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-6f9d205c518b4013.js +1 -0
  910. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-6f9d205c518b4013.js +1 -0
  911. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-6f9d205c518b4013.js +1 -0
  912. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-6f9d205c518b4013.js +1 -0
  913. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-6f9d205c518b4013.js +1 -0
  914. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-6f9d205c518b4013.js +1 -0
  915. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-6f9d205c518b4013.js +1 -0
  916. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-6f9d205c518b4013.js +1 -0
  917. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-6f9d205c518b4013.js +1 -0
  918. package/app/.next-cli-build/static/chunks/app/api/models/route-6f9d205c518b4013.js +1 -0
  919. package/app/.next-cli-build/static/chunks/app/api/models/test/route-6f9d205c518b4013.js +1 -0
  920. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-6f9d205c518b4013.js +1 -0
  921. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import/route-6f9d205c518b4013.js +1 -0
  922. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-6f9d205c518b4013.js +1 -0
  923. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-6f9d205c518b4013.js +1 -0
  924. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-6f9d205c518b4013.js +1 -0
  925. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-6f9d205c518b4013.js +1 -0
  926. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-6f9d205c518b4013.js +1 -0
  927. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/browser-login/route-6f9d205c518b4013.js +1 -0
  928. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-6f9d205c518b4013.js +1 -0
  929. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-6f9d205c518b4013.js +1 -0
  930. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-6f9d205c518b4013.js +1 -0
  931. package/app/.next-cli-build/static/chunks/app/api/pricing/route-6f9d205c518b4013.js +1 -0
  932. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-6f9d205c518b4013.js +1 -0
  933. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-6f9d205c518b4013.js +1 -0
  934. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-6f9d205c518b4013.js +1 -0
  935. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-6f9d205c518b4013.js +1 -0
  936. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-6f9d205c518b4013.js +1 -0
  937. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/sync-models/route-6f9d205c518b4013.js +1 -0
  938. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-6f9d205c518b4013.js +1 -0
  939. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-6f9d205c518b4013.js +1 -0
  940. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-6f9d205c518b4013.js +1 -0
  941. package/app/.next-cli-build/static/chunks/app/api/providers/export/route-6f9d205c518b4013.js +1 -0
  942. package/app/.next-cli-build/static/chunks/app/api/providers/import/route-6f9d205c518b4013.js +1 -0
  943. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-6f9d205c518b4013.js +1 -0
  944. package/app/.next-cli-build/static/chunks/app/api/providers/route-6f9d205c518b4013.js +1 -0
  945. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-6f9d205c518b4013.js +1 -0
  946. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-6f9d205c518b4013.js +1 -0
  947. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-6f9d205c518b4013.js +1 -0
  948. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-6f9d205c518b4013.js +1 -0
  949. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-6f9d205c518b4013.js +1 -0
  950. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-6f9d205c518b4013.js +1 -0
  951. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-6f9d205c518b4013.js +1 -0
  952. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-6f9d205c518b4013.js +1 -0
  953. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-6f9d205c518b4013.js +1 -0
  954. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-6f9d205c518b4013.js +1 -0
  955. package/app/.next-cli-build/static/chunks/app/api/settings/route-6f9d205c518b4013.js +1 -0
  956. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-6f9d205c518b4013.js +1 -0
  957. package/app/.next-cli-build/static/chunks/app/api/tags/route-6f9d205c518b4013.js +1 -0
  958. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-6f9d205c518b4013.js +1 -0
  959. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-6f9d205c518b4013.js +1 -0
  960. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-6f9d205c518b4013.js +1 -0
  961. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-6f9d205c518b4013.js +1 -0
  962. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-6f9d205c518b4013.js +1 -0
  963. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-6f9d205c518b4013.js +1 -0
  964. package/app/.next-cli-build/static/chunks/app/api/update/check/route-6f9d205c518b4013.js +1 -0
  965. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-6f9d205c518b4013.js +1 -0
  966. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-6f9d205c518b4013.js +1 -0
  967. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-6f9d205c518b4013.js +1 -0
  968. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-6f9d205c518b4013.js +1 -0
  969. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-6f9d205c518b4013.js +1 -0
  970. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-6f9d205c518b4013.js +1 -0
  971. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-6f9d205c518b4013.js +1 -0
  972. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-6f9d205c518b4013.js +1 -0
  973. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-6f9d205c518b4013.js +1 -0
  974. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-6f9d205c518b4013.js +1 -0
  975. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-6f9d205c518b4013.js +1 -0
  976. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-6f9d205c518b4013.js +1 -0
  977. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-6f9d205c518b4013.js +1 -0
  978. package/app/.next-cli-build/static/chunks/app/api/v1/chatgpt-web/image/[id]/route-6f9d205c518b4013.js +1 -0
  979. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-6f9d205c518b4013.js +1 -0
  980. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-6f9d205c518b4013.js +1 -0
  981. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-6f9d205c518b4013.js +1 -0
  982. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-6f9d205c518b4013.js +1 -0
  983. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-6f9d205c518b4013.js +1 -0
  984. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-6f9d205c518b4013.js +1 -0
  985. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-6f9d205c518b4013.js +1 -0
  986. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-6f9d205c518b4013.js +1 -0
  987. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-6f9d205c518b4013.js +1 -0
  988. package/app/.next-cli-build/static/chunks/app/api/v1/route-6f9d205c518b4013.js +1 -0
  989. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-6f9d205c518b4013.js +1 -0
  990. package/app/.next-cli-build/static/chunks/app/api/v1/video/generations/route-6f9d205c518b4013.js +1 -0
  991. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-6f9d205c518b4013.js +1 -0
  992. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-6f9d205c518b4013.js +1 -0
  993. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-6f9d205c518b4013.js +1 -0
  994. package/app/.next-cli-build/static/chunks/app/callback/page-48be92cc88223eb6.js +1 -0
  995. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-06a8d864ae01d4a7.js +1 -0
  996. package/app/.next-cli-build/static/chunks/app/landing/{page-3d2b079bd25f0dda.js → page-2461168fb59fbc7f.js} +1 -1
  997. package/app/.next-cli-build/static/chunks/app/{layout-ed446c17642f5aeb.js → layout-707bc0af2cad348a.js} +1 -1
  998. package/app/.next-cli-build/static/chunks/app/login/page-ce242826dfda53f2.js +1 -0
  999. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-6f9d205c518b4013.js +1 -0
  1000. package/app/.next-cli-build/static/chunks/app/page-6f9d205c518b4013.js +1 -0
  1001. package/app/.next-cli-build/static/chunks/{main-8edc076c219c1a63.js → main-195dd2cec8411e79.js} +2 -2
  1002. package/app/.next-cli-build/static/chunks/{main-app-2703eaf4f69e57d7.js → main-app-914c450e94817d03.js} +1 -1
  1003. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-6f9d205c518b4013.js +1 -0
  1004. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-6f9d205c518b4013.js +1 -0
  1005. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-d8ee3c482864b9da.js +1 -0
  1006. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-6f9d205c518b4013.js +1 -0
  1007. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-6f9d205c518b4013.js +1 -0
  1008. package/app/{.next/static/css/599369d853c61df7.css → .next-cli-build/static/css/008a05b0ad6b854a.css} +1 -1
  1009. package/app/.next-cli-build/static/css/{454db3b478540e33.css → 7a3e1568f247f3d0.css} +1 -1
  1010. package/app/.next-cli-build/static/css/9f207d7ed6efa211.css +1 -0
  1011. package/app/.next-cli-build/static/media/material-symbols-outlined.ec1fa111.woff2 +0 -0
  1012. package/app/node_modules/@next/env/package.json +2 -2
  1013. package/app/node_modules/baseline-browser-mapping/dist/index.cjs +1 -1
  1014. package/app/node_modules/baseline-browser-mapping/package.json +3 -3
  1015. package/app/node_modules/caniuse-lite/data/agents.js +1 -1
  1016. package/app/node_modules/caniuse-lite/data/browserVersions.js +1 -1
  1017. package/app/node_modules/caniuse-lite/data/features/aac.js +1 -1
  1018. package/app/node_modules/caniuse-lite/data/features/abortcontroller.js +1 -1
  1019. package/app/node_modules/caniuse-lite/data/features/ac3-ec3.js +1 -1
  1020. package/app/node_modules/caniuse-lite/data/features/accelerometer.js +1 -1
  1021. package/app/node_modules/caniuse-lite/data/features/addeventlistener.js +1 -1
  1022. package/app/node_modules/caniuse-lite/data/features/alternate-stylesheet.js +1 -1
  1023. package/app/node_modules/caniuse-lite/data/features/ambient-light.js +1 -1
  1024. package/app/node_modules/caniuse-lite/data/features/apng.js +1 -1
  1025. package/app/node_modules/caniuse-lite/data/features/array-find-index.js +1 -1
  1026. package/app/node_modules/caniuse-lite/data/features/array-find.js +1 -1
  1027. package/app/node_modules/caniuse-lite/data/features/array-flat.js +1 -1
  1028. package/app/node_modules/caniuse-lite/data/features/array-includes.js +1 -1
  1029. package/app/node_modules/caniuse-lite/data/features/arrow-functions.js +1 -1
  1030. package/app/node_modules/caniuse-lite/data/features/asmjs.js +1 -1
  1031. package/app/node_modules/caniuse-lite/data/features/async-clipboard.js +1 -1
  1032. package/app/node_modules/caniuse-lite/data/features/async-functions.js +1 -1
  1033. package/app/node_modules/caniuse-lite/data/features/atob-btoa.js +1 -1
  1034. package/app/node_modules/caniuse-lite/data/features/audio-api.js +1 -1
  1035. package/app/node_modules/caniuse-lite/data/features/audio.js +1 -1
  1036. package/app/node_modules/caniuse-lite/data/features/audiotracks.js +1 -1
  1037. package/app/node_modules/caniuse-lite/data/features/autofocus.js +1 -1
  1038. package/app/node_modules/caniuse-lite/data/features/auxclick.js +1 -1
  1039. package/app/node_modules/caniuse-lite/data/features/av1.js +1 -1
  1040. package/app/node_modules/caniuse-lite/data/features/avif.js +1 -1
  1041. package/app/node_modules/caniuse-lite/data/features/background-attachment.js +1 -1
  1042. package/app/node_modules/caniuse-lite/data/features/background-clip-text.js +1 -1
  1043. package/app/node_modules/caniuse-lite/data/features/background-img-opts.js +1 -1
  1044. package/app/node_modules/caniuse-lite/data/features/background-position-x-y.js +1 -1
  1045. package/app/node_modules/caniuse-lite/data/features/background-repeat-round-space.js +1 -1
  1046. package/app/node_modules/caniuse-lite/data/features/background-sync.js +1 -1
  1047. package/app/node_modules/caniuse-lite/data/features/battery-status.js +1 -1
  1048. package/app/node_modules/caniuse-lite/data/features/beacon.js +1 -1
  1049. package/app/node_modules/caniuse-lite/data/features/beforeafterprint.js +1 -1
  1050. package/app/node_modules/caniuse-lite/data/features/bigint.js +1 -1
  1051. package/app/node_modules/caniuse-lite/data/features/blobbuilder.js +1 -1
  1052. package/app/node_modules/caniuse-lite/data/features/bloburls.js +1 -1
  1053. package/app/node_modules/caniuse-lite/data/features/border-image.js +1 -1
  1054. package/app/node_modules/caniuse-lite/data/features/border-radius.js +1 -1
  1055. package/app/node_modules/caniuse-lite/data/features/broadcastchannel.js +1 -1
  1056. package/app/node_modules/caniuse-lite/data/features/brotli.js +1 -1
  1057. package/app/node_modules/caniuse-lite/data/features/calc.js +1 -1
  1058. package/app/node_modules/caniuse-lite/data/features/canvas-blending.js +1 -1
  1059. package/app/node_modules/caniuse-lite/data/features/canvas-text.js +1 -1
  1060. package/app/node_modules/caniuse-lite/data/features/canvas.js +1 -1
  1061. package/app/node_modules/caniuse-lite/data/features/ch-unit.js +1 -1
  1062. package/app/node_modules/caniuse-lite/data/features/chacha20-poly1305.js +1 -1
  1063. package/app/node_modules/caniuse-lite/data/features/channel-messaging.js +1 -1
  1064. package/app/node_modules/caniuse-lite/data/features/childnode-remove.js +1 -1
  1065. package/app/node_modules/caniuse-lite/data/features/classlist.js +1 -1
  1066. package/app/node_modules/caniuse-lite/data/features/client-hints-dpr-width-viewport.js +1 -1
  1067. package/app/node_modules/caniuse-lite/data/features/clipboard.js +1 -1
  1068. package/app/node_modules/caniuse-lite/data/features/colr-v1.js +1 -1
  1069. package/app/node_modules/caniuse-lite/data/features/colr.js +1 -1
  1070. package/app/node_modules/caniuse-lite/data/features/comparedocumentposition.js +1 -1
  1071. package/app/node_modules/caniuse-lite/data/features/console-basic.js +1 -1
  1072. package/app/node_modules/caniuse-lite/data/features/console-time.js +1 -1
  1073. package/app/node_modules/caniuse-lite/data/features/const.js +1 -1
  1074. package/app/node_modules/caniuse-lite/data/features/constraint-validation.js +1 -1
  1075. package/app/node_modules/caniuse-lite/data/features/contenteditable.js +1 -1
  1076. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy.js +1 -1
  1077. package/app/node_modules/caniuse-lite/data/features/contentsecuritypolicy2.js +1 -1
  1078. package/app/node_modules/caniuse-lite/data/features/cookie-store-api.js +1 -1
  1079. package/app/node_modules/caniuse-lite/data/features/cors.js +1 -1
  1080. package/app/node_modules/caniuse-lite/data/features/createimagebitmap.js +1 -1
  1081. package/app/node_modules/caniuse-lite/data/features/credential-management.js +1 -1
  1082. package/app/node_modules/caniuse-lite/data/features/cross-document-view-transitions.js +1 -1
  1083. package/app/node_modules/caniuse-lite/data/features/cryptography.js +1 -1
  1084. package/app/node_modules/caniuse-lite/data/features/css-all.js +1 -1
  1085. package/app/node_modules/caniuse-lite/data/features/css-anchor-positioning.js +1 -1
  1086. package/app/node_modules/caniuse-lite/data/features/css-animation.js +1 -1
  1087. package/app/node_modules/caniuse-lite/data/features/css-any-link.js +1 -1
  1088. package/app/node_modules/caniuse-lite/data/features/css-appearance.js +1 -1
  1089. package/app/node_modules/caniuse-lite/data/features/css-at-counter-style.js +1 -1
  1090. package/app/node_modules/caniuse-lite/data/features/css-autofill.js +1 -1
  1091. package/app/node_modules/caniuse-lite/data/features/css-backdrop-filter.js +1 -1
  1092. package/app/node_modules/caniuse-lite/data/features/css-background-offsets.js +1 -1
  1093. package/app/node_modules/caniuse-lite/data/features/css-backgroundblendmode.js +1 -1
  1094. package/app/node_modules/caniuse-lite/data/features/css-boxdecorationbreak.js +1 -1
  1095. package/app/node_modules/caniuse-lite/data/features/css-boxshadow.js +1 -1
  1096. package/app/node_modules/caniuse-lite/data/features/css-canvas.js +1 -1
  1097. package/app/node_modules/caniuse-lite/data/features/css-caret-color.js +1 -1
  1098. package/app/node_modules/caniuse-lite/data/features/css-cascade-layers.js +1 -1
  1099. package/app/node_modules/caniuse-lite/data/features/css-cascade-scope.js +1 -1
  1100. package/app/node_modules/caniuse-lite/data/features/css-case-insensitive.js +1 -1
  1101. package/app/node_modules/caniuse-lite/data/features/css-clip-path.js +1 -1
  1102. package/app/node_modules/caniuse-lite/data/features/css-color-adjust.js +1 -1
  1103. package/app/node_modules/caniuse-lite/data/features/css-color-function.js +1 -1
  1104. package/app/node_modules/caniuse-lite/data/features/css-conic-gradients.js +1 -1
  1105. package/app/node_modules/caniuse-lite/data/features/css-container-queries-style.js +1 -1
  1106. package/app/node_modules/caniuse-lite/data/features/css-container-queries.js +1 -1
  1107. package/app/node_modules/caniuse-lite/data/features/css-container-query-units.js +1 -1
  1108. package/app/node_modules/caniuse-lite/data/features/css-containment.js +1 -1
  1109. package/app/node_modules/caniuse-lite/data/features/css-content-visibility.js +1 -1
  1110. package/app/node_modules/caniuse-lite/data/features/css-counters.js +1 -1
  1111. package/app/node_modules/caniuse-lite/data/features/css-crisp-edges.js +1 -1
  1112. package/app/node_modules/caniuse-lite/data/features/css-cross-fade.js +1 -1
  1113. package/app/node_modules/caniuse-lite/data/features/css-default-pseudo.js +1 -1
  1114. package/app/node_modules/caniuse-lite/data/features/css-descendant-gtgt.js +1 -1
  1115. package/app/node_modules/caniuse-lite/data/features/css-deviceadaptation.js +1 -1
  1116. package/app/node_modules/caniuse-lite/data/features/css-dir-pseudo.js +1 -1
  1117. package/app/node_modules/caniuse-lite/data/features/css-display-contents.js +1 -1
  1118. package/app/node_modules/caniuse-lite/data/features/css-element-function.js +1 -1
  1119. package/app/node_modules/caniuse-lite/data/features/css-env-function.js +1 -1
  1120. package/app/node_modules/caniuse-lite/data/features/css-exclusions.js +1 -1
  1121. package/app/node_modules/caniuse-lite/data/features/css-featurequeries.js +1 -1
  1122. package/app/node_modules/caniuse-lite/data/features/css-file-selector-button.js +1 -1
  1123. package/app/node_modules/caniuse-lite/data/features/css-filter-function.js +1 -1
  1124. package/app/node_modules/caniuse-lite/data/features/css-filters.js +1 -1
  1125. package/app/node_modules/caniuse-lite/data/features/css-first-letter.js +1 -1
  1126. package/app/node_modules/caniuse-lite/data/features/css-first-line.js +1 -1
  1127. package/app/node_modules/caniuse-lite/data/features/css-fixed.js +1 -1
  1128. package/app/node_modules/caniuse-lite/data/features/css-focus-visible.js +1 -1
  1129. package/app/node_modules/caniuse-lite/data/features/css-focus-within.js +1 -1
  1130. package/app/node_modules/caniuse-lite/data/features/css-font-palette.js +1 -1
  1131. package/app/node_modules/caniuse-lite/data/features/css-font-rendering-controls.js +1 -1
  1132. package/app/node_modules/caniuse-lite/data/features/css-font-stretch.js +1 -1
  1133. package/app/node_modules/caniuse-lite/data/features/css-gencontent.js +1 -1
  1134. package/app/node_modules/caniuse-lite/data/features/css-gradients.js +1 -1
  1135. package/app/node_modules/caniuse-lite/data/features/css-grid-animation.js +1 -1
  1136. package/app/node_modules/caniuse-lite/data/features/css-grid-lanes.js +1 -1
  1137. package/app/node_modules/caniuse-lite/data/features/css-grid.js +1 -1
  1138. package/app/node_modules/caniuse-lite/data/features/css-hanging-punctuation.js +1 -1
  1139. package/app/node_modules/caniuse-lite/data/features/css-has.js +1 -1
  1140. package/app/node_modules/caniuse-lite/data/features/css-hyphens.js +1 -1
  1141. package/app/node_modules/caniuse-lite/data/features/css-if.js +1 -1
  1142. package/app/node_modules/caniuse-lite/data/features/css-image-orientation.js +1 -1
  1143. package/app/node_modules/caniuse-lite/data/features/css-image-set.js +1 -1
  1144. package/app/node_modules/caniuse-lite/data/features/css-in-out-of-range.js +1 -1
  1145. package/app/node_modules/caniuse-lite/data/features/css-indeterminate-pseudo.js +1 -1
  1146. package/app/node_modules/caniuse-lite/data/features/css-initial-letter.js +1 -1
  1147. package/app/node_modules/caniuse-lite/data/features/css-initial-value.js +1 -1
  1148. package/app/node_modules/caniuse-lite/data/features/css-lch-lab.js +1 -1
  1149. package/app/node_modules/caniuse-lite/data/features/css-letter-spacing.js +1 -1
  1150. package/app/node_modules/caniuse-lite/data/features/css-line-clamp.js +1 -1
  1151. package/app/node_modules/caniuse-lite/data/features/css-logical-props.js +1 -1
  1152. package/app/node_modules/caniuse-lite/data/features/css-marker-pseudo.js +1 -1
  1153. package/app/node_modules/caniuse-lite/data/features/css-masks.js +1 -1
  1154. package/app/node_modules/caniuse-lite/data/features/css-matches-pseudo.js +1 -1
  1155. package/app/node_modules/caniuse-lite/data/features/css-math-functions.js +1 -1
  1156. package/app/node_modules/caniuse-lite/data/features/css-media-interaction.js +1 -1
  1157. package/app/node_modules/caniuse-lite/data/features/css-media-range-syntax.js +1 -1
  1158. package/app/node_modules/caniuse-lite/data/features/css-media-resolution.js +1 -1
  1159. package/app/node_modules/caniuse-lite/data/features/css-media-scripting.js +1 -1
  1160. package/app/node_modules/caniuse-lite/data/features/css-mediaqueries.js +1 -1
  1161. package/app/node_modules/caniuse-lite/data/features/css-mixblendmode.js +1 -1
  1162. package/app/node_modules/caniuse-lite/data/features/css-module-scripts.js +1 -1
  1163. package/app/node_modules/caniuse-lite/data/features/css-motion-paths.js +1 -1
  1164. package/app/node_modules/caniuse-lite/data/features/css-namespaces.js +1 -1
  1165. package/app/node_modules/caniuse-lite/data/features/css-nesting.js +1 -1
  1166. package/app/node_modules/caniuse-lite/data/features/css-not-sel-list.js +1 -1
  1167. package/app/node_modules/caniuse-lite/data/features/css-nth-child-of.js +1 -1
  1168. package/app/node_modules/caniuse-lite/data/features/css-opacity.js +1 -1
  1169. package/app/node_modules/caniuse-lite/data/features/css-optional-pseudo.js +1 -1
  1170. package/app/node_modules/caniuse-lite/data/features/css-overflow-anchor.js +1 -1
  1171. package/app/node_modules/caniuse-lite/data/features/css-overflow-overlay.js +1 -1
  1172. package/app/node_modules/caniuse-lite/data/features/css-overflow.js +1 -1
  1173. package/app/node_modules/caniuse-lite/data/features/css-overscroll-behavior.js +1 -1
  1174. package/app/node_modules/caniuse-lite/data/features/css-page-break.js +1 -1
  1175. package/app/node_modules/caniuse-lite/data/features/css-paged-media.js +1 -1
  1176. package/app/node_modules/caniuse-lite/data/features/css-paint-api.js +1 -1
  1177. package/app/node_modules/caniuse-lite/data/features/css-placeholder-shown.js +1 -1
  1178. package/app/node_modules/caniuse-lite/data/features/css-placeholder.js +1 -1
  1179. package/app/node_modules/caniuse-lite/data/features/css-print-color-adjust.js +1 -1
  1180. package/app/node_modules/caniuse-lite/data/features/css-read-only-write.js +1 -1
  1181. package/app/node_modules/caniuse-lite/data/features/css-rebeccapurple.js +1 -1
  1182. package/app/node_modules/caniuse-lite/data/features/css-reflections.js +1 -1
  1183. package/app/node_modules/caniuse-lite/data/features/css-regions.js +1 -1
  1184. package/app/node_modules/caniuse-lite/data/features/css-relative-colors.js +1 -1
  1185. package/app/node_modules/caniuse-lite/data/features/css-repeating-gradients.js +1 -1
  1186. package/app/node_modules/caniuse-lite/data/features/css-resize.js +1 -1
  1187. package/app/node_modules/caniuse-lite/data/features/css-revert-value.js +1 -1
  1188. package/app/node_modules/caniuse-lite/data/features/css-rrggbbaa.js +1 -1
  1189. package/app/node_modules/caniuse-lite/data/features/css-scroll-behavior.js +1 -1
  1190. package/app/node_modules/caniuse-lite/data/features/css-scrollbar.js +1 -1
  1191. package/app/node_modules/caniuse-lite/data/features/css-sel2.js +1 -1
  1192. package/app/node_modules/caniuse-lite/data/features/css-sel3.js +1 -1
  1193. package/app/node_modules/caniuse-lite/data/features/css-selection.js +1 -1
  1194. package/app/node_modules/caniuse-lite/data/features/css-shapes.js +1 -1
  1195. package/app/node_modules/caniuse-lite/data/features/css-snappoints.js +1 -1
  1196. package/app/node_modules/caniuse-lite/data/features/css-sticky.js +1 -1
  1197. package/app/node_modules/caniuse-lite/data/features/css-subgrid.js +1 -1
  1198. package/app/node_modules/caniuse-lite/data/features/css-supports-api.js +1 -1
  1199. package/app/node_modules/caniuse-lite/data/features/css-table.js +1 -1
  1200. package/app/node_modules/caniuse-lite/data/features/css-text-align-last.js +1 -1
  1201. package/app/node_modules/caniuse-lite/data/features/css-text-box-trim.js +1 -1
  1202. package/app/node_modules/caniuse-lite/data/features/css-text-indent.js +1 -1
  1203. package/app/node_modules/caniuse-lite/data/features/css-text-justify.js +1 -1
  1204. package/app/node_modules/caniuse-lite/data/features/css-text-orientation.js +1 -1
  1205. package/app/node_modules/caniuse-lite/data/features/css-text-spacing.js +1 -1
  1206. package/app/node_modules/caniuse-lite/data/features/css-text-wrap-balance.js +1 -1
  1207. package/app/node_modules/caniuse-lite/data/features/css-textshadow.js +1 -1
  1208. package/app/node_modules/caniuse-lite/data/features/css-touch-action.js +1 -1
  1209. package/app/node_modules/caniuse-lite/data/features/css-transitions.js +1 -1
  1210. package/app/node_modules/caniuse-lite/data/features/css-unicode-bidi.js +1 -1
  1211. package/app/node_modules/caniuse-lite/data/features/css-unset-value.js +1 -1
  1212. package/app/node_modules/caniuse-lite/data/features/css-variables.js +1 -1
  1213. package/app/node_modules/caniuse-lite/data/features/css-when-else.js +1 -1
  1214. package/app/node_modules/caniuse-lite/data/features/css-widows-orphans.js +1 -1
  1215. package/app/node_modules/caniuse-lite/data/features/css-width-stretch.js +1 -1
  1216. package/app/node_modules/caniuse-lite/data/features/css-writing-mode.js +1 -1
  1217. package/app/node_modules/caniuse-lite/data/features/css-zoom.js +1 -1
  1218. package/app/node_modules/caniuse-lite/data/features/css3-attr.js +1 -1
  1219. package/app/node_modules/caniuse-lite/data/features/css3-boxsizing.js +1 -1
  1220. package/app/node_modules/caniuse-lite/data/features/css3-colors.js +1 -1
  1221. package/app/node_modules/caniuse-lite/data/features/css3-cursors-grab.js +1 -1
  1222. package/app/node_modules/caniuse-lite/data/features/css3-cursors-newer.js +1 -1
  1223. package/app/node_modules/caniuse-lite/data/features/css3-cursors.js +1 -1
  1224. package/app/node_modules/caniuse-lite/data/features/css3-tabsize.js +1 -1
  1225. package/app/node_modules/caniuse-lite/data/features/currentcolor.js +1 -1
  1226. package/app/node_modules/caniuse-lite/data/features/custom-elements.js +1 -1
  1227. package/app/node_modules/caniuse-lite/data/features/custom-elementsv1.js +1 -1
  1228. package/app/node_modules/caniuse-lite/data/features/customevent.js +1 -1
  1229. package/app/node_modules/caniuse-lite/data/features/customizable-select.js +1 -1
  1230. package/app/node_modules/caniuse-lite/data/features/datalist.js +1 -1
  1231. package/app/node_modules/caniuse-lite/data/features/dataset.js +1 -1
  1232. package/app/node_modules/caniuse-lite/data/features/datauri.js +1 -1
  1233. package/app/node_modules/caniuse-lite/data/features/date-tolocaledatestring.js +1 -1
  1234. package/app/node_modules/caniuse-lite/data/features/declarative-shadow-dom.js +1 -1
  1235. package/app/node_modules/caniuse-lite/data/features/decorators.js +1 -1
  1236. package/app/node_modules/caniuse-lite/data/features/details.js +1 -1
  1237. package/app/node_modules/caniuse-lite/data/features/deviceorientation.js +1 -1
  1238. package/app/node_modules/caniuse-lite/data/features/devicepixelratio.js +1 -1
  1239. package/app/node_modules/caniuse-lite/data/features/dialog.js +1 -1
  1240. package/app/node_modules/caniuse-lite/data/features/dispatchevent.js +1 -1
  1241. package/app/node_modules/caniuse-lite/data/features/dnssec.js +1 -1
  1242. package/app/node_modules/caniuse-lite/data/features/do-not-track.js +1 -1
  1243. package/app/node_modules/caniuse-lite/data/features/document-currentscript.js +1 -1
  1244. package/app/node_modules/caniuse-lite/data/features/document-evaluate-xpath.js +1 -1
  1245. package/app/node_modules/caniuse-lite/data/features/document-execcommand.js +1 -1
  1246. package/app/node_modules/caniuse-lite/data/features/document-policy.js +1 -1
  1247. package/app/node_modules/caniuse-lite/data/features/document-scrollingelement.js +1 -1
  1248. package/app/node_modules/caniuse-lite/data/features/documenthead.js +1 -1
  1249. package/app/node_modules/caniuse-lite/data/features/dom-manip-convenience.js +1 -1
  1250. package/app/node_modules/caniuse-lite/data/features/dom-range.js +1 -1
  1251. package/app/node_modules/caniuse-lite/data/features/domcontentloaded.js +1 -1
  1252. package/app/node_modules/caniuse-lite/data/features/dommatrix.js +1 -1
  1253. package/app/node_modules/caniuse-lite/data/features/download.js +1 -1
  1254. package/app/node_modules/caniuse-lite/data/features/dragndrop.js +1 -1
  1255. package/app/node_modules/caniuse-lite/data/features/element-closest.js +1 -1
  1256. package/app/node_modules/caniuse-lite/data/features/element-from-point.js +1 -1
  1257. package/app/node_modules/caniuse-lite/data/features/element-scroll-methods.js +1 -1
  1258. package/app/node_modules/caniuse-lite/data/features/eme.js +1 -1
  1259. package/app/node_modules/caniuse-lite/data/features/eot.js +1 -1
  1260. package/app/node_modules/caniuse-lite/data/features/es5.js +1 -1
  1261. package/app/node_modules/caniuse-lite/data/features/es6-class.js +1 -1
  1262. package/app/node_modules/caniuse-lite/data/features/es6-generators.js +1 -1
  1263. package/app/node_modules/caniuse-lite/data/features/es6-module-dynamic-import.js +1 -1
  1264. package/app/node_modules/caniuse-lite/data/features/es6-module.js +1 -1
  1265. package/app/node_modules/caniuse-lite/data/features/es6-number.js +1 -1
  1266. package/app/node_modules/caniuse-lite/data/features/es6-string-includes.js +1 -1
  1267. package/app/node_modules/caniuse-lite/data/features/es6.js +1 -1
  1268. package/app/node_modules/caniuse-lite/data/features/eventsource.js +1 -1
  1269. package/app/node_modules/caniuse-lite/data/features/extended-system-fonts.js +1 -1
  1270. package/app/node_modules/caniuse-lite/data/features/feature-policy.js +1 -1
  1271. package/app/node_modules/caniuse-lite/data/features/fetch.js +1 -1
  1272. package/app/node_modules/caniuse-lite/data/features/fieldset-disabled.js +1 -1
  1273. package/app/node_modules/caniuse-lite/data/features/fileapi.js +1 -1
  1274. package/app/node_modules/caniuse-lite/data/features/filereader.js +1 -1
  1275. package/app/node_modules/caniuse-lite/data/features/filereadersync.js +1 -1
  1276. package/app/node_modules/caniuse-lite/data/features/filesystem.js +1 -1
  1277. package/app/node_modules/caniuse-lite/data/features/flac.js +1 -1
  1278. package/app/node_modules/caniuse-lite/data/features/flexbox-gap.js +1 -1
  1279. package/app/node_modules/caniuse-lite/data/features/flexbox.js +1 -1
  1280. package/app/node_modules/caniuse-lite/data/features/flow-root.js +1 -1
  1281. package/app/node_modules/caniuse-lite/data/features/focusin-focusout-events.js +1 -1
  1282. package/app/node_modules/caniuse-lite/data/features/font-family-system-ui.js +1 -1
  1283. package/app/node_modules/caniuse-lite/data/features/font-feature.js +1 -1
  1284. package/app/node_modules/caniuse-lite/data/features/font-kerning.js +1 -1
  1285. package/app/node_modules/caniuse-lite/data/features/font-loading.js +1 -1
  1286. package/app/node_modules/caniuse-lite/data/features/font-size-adjust.js +1 -1
  1287. package/app/node_modules/caniuse-lite/data/features/font-smooth.js +1 -1
  1288. package/app/node_modules/caniuse-lite/data/features/font-unicode-range.js +1 -1
  1289. package/app/node_modules/caniuse-lite/data/features/font-variant-alternates.js +1 -1
  1290. package/app/node_modules/caniuse-lite/data/features/font-variant-numeric.js +1 -1
  1291. package/app/node_modules/caniuse-lite/data/features/fontface.js +1 -1
  1292. package/app/node_modules/caniuse-lite/data/features/form-attribute.js +1 -1
  1293. package/app/node_modules/caniuse-lite/data/features/form-submit-attributes.js +1 -1
  1294. package/app/node_modules/caniuse-lite/data/features/form-validation.js +1 -1
  1295. package/app/node_modules/caniuse-lite/data/features/forms.js +1 -1
  1296. package/app/node_modules/caniuse-lite/data/features/fullscreen.js +1 -1
  1297. package/app/node_modules/caniuse-lite/data/features/gamepad.js +1 -1
  1298. package/app/node_modules/caniuse-lite/data/features/geolocation.js +1 -1
  1299. package/app/node_modules/caniuse-lite/data/features/getboundingclientrect.js +1 -1
  1300. package/app/node_modules/caniuse-lite/data/features/getcomputedstyle.js +1 -1
  1301. package/app/node_modules/caniuse-lite/data/features/getelementsbyclassname.js +1 -1
  1302. package/app/node_modules/caniuse-lite/data/features/getrandomvalues.js +1 -1
  1303. package/app/node_modules/caniuse-lite/data/features/gyroscope.js +1 -1
  1304. package/app/node_modules/caniuse-lite/data/features/hardwareconcurrency.js +1 -1
  1305. package/app/node_modules/caniuse-lite/data/features/hashchange.js +1 -1
  1306. package/app/node_modules/caniuse-lite/data/features/heif.js +1 -1
  1307. package/app/node_modules/caniuse-lite/data/features/hevc.js +1 -1
  1308. package/app/node_modules/caniuse-lite/data/features/hidden.js +1 -1
  1309. package/app/node_modules/caniuse-lite/data/features/high-resolution-time.js +1 -1
  1310. package/app/node_modules/caniuse-lite/data/features/history.js +1 -1
  1311. package/app/node_modules/caniuse-lite/data/features/html-media-capture.js +1 -1
  1312. package/app/node_modules/caniuse-lite/data/features/html5semantic.js +1 -1
  1313. package/app/node_modules/caniuse-lite/data/features/http-live-streaming.js +1 -1
  1314. package/app/node_modules/caniuse-lite/data/features/http2.js +1 -1
  1315. package/app/node_modules/caniuse-lite/data/features/http3.js +1 -1
  1316. package/app/node_modules/caniuse-lite/data/features/iframe-sandbox.js +1 -1
  1317. package/app/node_modules/caniuse-lite/data/features/iframe-seamless.js +1 -1
  1318. package/app/node_modules/caniuse-lite/data/features/iframe-srcdoc.js +1 -1
  1319. package/app/node_modules/caniuse-lite/data/features/imagecapture.js +1 -1
  1320. package/app/node_modules/caniuse-lite/data/features/ime.js +1 -1
  1321. package/app/node_modules/caniuse-lite/data/features/img-naturalwidth-naturalheight.js +1 -1
  1322. package/app/node_modules/caniuse-lite/data/features/import-maps.js +1 -1
  1323. package/app/node_modules/caniuse-lite/data/features/imports.js +1 -1
  1324. package/app/node_modules/caniuse-lite/data/features/indeterminate-checkbox.js +1 -1
  1325. package/app/node_modules/caniuse-lite/data/features/indexeddb.js +1 -1
  1326. package/app/node_modules/caniuse-lite/data/features/indexeddb2.js +1 -1
  1327. package/app/node_modules/caniuse-lite/data/features/inline-block.js +1 -1
  1328. package/app/node_modules/caniuse-lite/data/features/innertext.js +1 -1
  1329. package/app/node_modules/caniuse-lite/data/features/input-autocomplete-onoff.js +1 -1
  1330. package/app/node_modules/caniuse-lite/data/features/input-color.js +1 -1
  1331. package/app/node_modules/caniuse-lite/data/features/input-datetime.js +1 -1
  1332. package/app/node_modules/caniuse-lite/data/features/input-email-tel-url.js +1 -1
  1333. package/app/node_modules/caniuse-lite/data/features/input-event.js +1 -1
  1334. package/app/node_modules/caniuse-lite/data/features/input-file-accept.js +1 -1
  1335. package/app/node_modules/caniuse-lite/data/features/input-file-directory.js +1 -1
  1336. package/app/node_modules/caniuse-lite/data/features/input-file-multiple.js +1 -1
  1337. package/app/node_modules/caniuse-lite/data/features/input-inputmode.js +1 -1
  1338. package/app/node_modules/caniuse-lite/data/features/input-minlength.js +1 -1
  1339. package/app/node_modules/caniuse-lite/data/features/input-number.js +1 -1
  1340. package/app/node_modules/caniuse-lite/data/features/input-pattern.js +1 -1
  1341. package/app/node_modules/caniuse-lite/data/features/input-placeholder.js +1 -1
  1342. package/app/node_modules/caniuse-lite/data/features/input-range.js +1 -1
  1343. package/app/node_modules/caniuse-lite/data/features/input-search.js +1 -1
  1344. package/app/node_modules/caniuse-lite/data/features/input-selection.js +1 -1
  1345. package/app/node_modules/caniuse-lite/data/features/insert-adjacent.js +1 -1
  1346. package/app/node_modules/caniuse-lite/data/features/insertadjacenthtml.js +1 -1
  1347. package/app/node_modules/caniuse-lite/data/features/internationalization.js +1 -1
  1348. package/app/node_modules/caniuse-lite/data/features/intersectionobserver-v2.js +1 -1
  1349. package/app/node_modules/caniuse-lite/data/features/intersectionobserver.js +1 -1
  1350. package/app/node_modules/caniuse-lite/data/features/intl-pluralrules.js +1 -1
  1351. package/app/node_modules/caniuse-lite/data/features/intrinsic-width.js +1 -1
  1352. package/app/node_modules/caniuse-lite/data/features/jpeg2000.js +1 -1
  1353. package/app/node_modules/caniuse-lite/data/features/jpegxl.js +1 -1
  1354. package/app/node_modules/caniuse-lite/data/features/jpegxr.js +1 -1
  1355. package/app/node_modules/caniuse-lite/data/features/js-regexp-lookbehind.js +1 -1
  1356. package/app/node_modules/caniuse-lite/data/features/json.js +1 -1
  1357. package/app/node_modules/caniuse-lite/data/features/justify-content-space-evenly.js +1 -1
  1358. package/app/node_modules/caniuse-lite/data/features/kerning-pairs-ligatures.js +1 -1
  1359. package/app/node_modules/caniuse-lite/data/features/keyboardevent-charcode.js +1 -1
  1360. package/app/node_modules/caniuse-lite/data/features/keyboardevent-code.js +1 -1
  1361. package/app/node_modules/caniuse-lite/data/features/keyboardevent-getmodifierstate.js +1 -1
  1362. package/app/node_modules/caniuse-lite/data/features/keyboardevent-key.js +1 -1
  1363. package/app/node_modules/caniuse-lite/data/features/keyboardevent-location.js +1 -1
  1364. package/app/node_modules/caniuse-lite/data/features/keyboardevent-which.js +1 -1
  1365. package/app/node_modules/caniuse-lite/data/features/lazyload.js +1 -1
  1366. package/app/node_modules/caniuse-lite/data/features/let.js +1 -1
  1367. package/app/node_modules/caniuse-lite/data/features/link-icon-png.js +1 -1
  1368. package/app/node_modules/caniuse-lite/data/features/link-icon-svg.js +1 -1
  1369. package/app/node_modules/caniuse-lite/data/features/link-rel-dns-prefetch.js +1 -1
  1370. package/app/node_modules/caniuse-lite/data/features/link-rel-modulepreload.js +1 -1
  1371. package/app/node_modules/caniuse-lite/data/features/link-rel-preconnect.js +1 -1
  1372. package/app/node_modules/caniuse-lite/data/features/link-rel-prefetch.js +1 -1
  1373. package/app/node_modules/caniuse-lite/data/features/link-rel-preload.js +1 -1
  1374. package/app/node_modules/caniuse-lite/data/features/link-rel-prerender.js +1 -1
  1375. package/app/node_modules/caniuse-lite/data/features/loading-lazy-attr.js +1 -1
  1376. package/app/node_modules/caniuse-lite/data/features/loading-lazy-media.js +1 -1
  1377. package/app/node_modules/caniuse-lite/data/features/localecompare.js +1 -1
  1378. package/app/node_modules/caniuse-lite/data/features/magnetometer.js +1 -1
  1379. package/app/node_modules/caniuse-lite/data/features/matchesselector.js +1 -1
  1380. package/app/node_modules/caniuse-lite/data/features/matchmedia.js +1 -1
  1381. package/app/node_modules/caniuse-lite/data/features/mathml.js +1 -1
  1382. package/app/node_modules/caniuse-lite/data/features/maxlength.js +1 -1
  1383. package/app/node_modules/caniuse-lite/data/features/mdn-css-backdrop-pseudo-element.js +1 -1
  1384. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate-override.js +1 -1
  1385. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-isolate.js +1 -1
  1386. package/app/node_modules/caniuse-lite/data/features/mdn-css-unicode-bidi-plaintext.js +1 -1
  1387. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-color.js +1 -1
  1388. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-line.js +1 -1
  1389. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-shorthand.js +1 -1
  1390. package/app/node_modules/caniuse-lite/data/features/mdn-text-decoration-style.js +1 -1
  1391. package/app/node_modules/caniuse-lite/data/features/media-fragments.js +1 -1
  1392. package/app/node_modules/caniuse-lite/data/features/mediacapture-fromelement.js +1 -1
  1393. package/app/node_modules/caniuse-lite/data/features/mediarecorder.js +1 -1
  1394. package/app/node_modules/caniuse-lite/data/features/mediasource.js +1 -1
  1395. package/app/node_modules/caniuse-lite/data/features/menu.js +1 -1
  1396. package/app/node_modules/caniuse-lite/data/features/meta-theme-color.js +1 -1
  1397. package/app/node_modules/caniuse-lite/data/features/meter.js +1 -1
  1398. package/app/node_modules/caniuse-lite/data/features/midi.js +1 -1
  1399. package/app/node_modules/caniuse-lite/data/features/minmaxwh.js +1 -1
  1400. package/app/node_modules/caniuse-lite/data/features/mp3.js +1 -1
  1401. package/app/node_modules/caniuse-lite/data/features/mpeg-dash.js +1 -1
  1402. package/app/node_modules/caniuse-lite/data/features/mpeg4.js +1 -1
  1403. package/app/node_modules/caniuse-lite/data/features/multibackgrounds.js +1 -1
  1404. package/app/node_modules/caniuse-lite/data/features/multicolumn.js +1 -1
  1405. package/app/node_modules/caniuse-lite/data/features/mutation-events.js +1 -1
  1406. package/app/node_modules/caniuse-lite/data/features/mutationobserver.js +1 -1
  1407. package/app/node_modules/caniuse-lite/data/features/namevalue-storage.js +1 -1
  1408. package/app/node_modules/caniuse-lite/data/features/native-filesystem-api.js +1 -1
  1409. package/app/node_modules/caniuse-lite/data/features/nav-timing.js +1 -1
  1410. package/app/node_modules/caniuse-lite/data/features/netinfo.js +1 -1
  1411. package/app/node_modules/caniuse-lite/data/features/notifications.js +1 -1
  1412. package/app/node_modules/caniuse-lite/data/features/object-entries.js +1 -1
  1413. package/app/node_modules/caniuse-lite/data/features/object-fit.js +1 -1
  1414. package/app/node_modules/caniuse-lite/data/features/object-observe.js +1 -1
  1415. package/app/node_modules/caniuse-lite/data/features/object-values.js +1 -1
  1416. package/app/node_modules/caniuse-lite/data/features/objectrtc.js +1 -1
  1417. package/app/node_modules/caniuse-lite/data/features/offline-apps.js +1 -1
  1418. package/app/node_modules/caniuse-lite/data/features/offscreencanvas.js +1 -1
  1419. package/app/node_modules/caniuse-lite/data/features/ogg-vorbis.js +1 -1
  1420. package/app/node_modules/caniuse-lite/data/features/ogv.js +1 -1
  1421. package/app/node_modules/caniuse-lite/data/features/ol-reversed.js +1 -1
  1422. package/app/node_modules/caniuse-lite/data/features/once-event-listener.js +1 -1
  1423. package/app/node_modules/caniuse-lite/data/features/online-status.js +1 -1
  1424. package/app/node_modules/caniuse-lite/data/features/opus.js +1 -1
  1425. package/app/node_modules/caniuse-lite/data/features/orientation-sensor.js +1 -1
  1426. package/app/node_modules/caniuse-lite/data/features/outline.js +1 -1
  1427. package/app/node_modules/caniuse-lite/data/features/pad-start-end.js +1 -1
  1428. package/app/node_modules/caniuse-lite/data/features/page-transition-events.js +1 -1
  1429. package/app/node_modules/caniuse-lite/data/features/pagevisibility.js +1 -1
  1430. package/app/node_modules/caniuse-lite/data/features/passive-event-listener.js +1 -1
  1431. package/app/node_modules/caniuse-lite/data/features/passkeys.js +1 -1
  1432. package/app/node_modules/caniuse-lite/data/features/passwordrules.js +1 -1
  1433. package/app/node_modules/caniuse-lite/data/features/path2d.js +1 -1
  1434. package/app/node_modules/caniuse-lite/data/features/payment-request.js +1 -1
  1435. package/app/node_modules/caniuse-lite/data/features/pdf-viewer.js +1 -1
  1436. package/app/node_modules/caniuse-lite/data/features/permissions-api.js +1 -1
  1437. package/app/node_modules/caniuse-lite/data/features/permissions-policy.js +1 -1
  1438. package/app/node_modules/caniuse-lite/data/features/picture-in-picture.js +1 -1
  1439. package/app/node_modules/caniuse-lite/data/features/picture.js +1 -1
  1440. package/app/node_modules/caniuse-lite/data/features/ping.js +1 -1
  1441. package/app/node_modules/caniuse-lite/data/features/png-alpha.js +1 -1
  1442. package/app/node_modules/caniuse-lite/data/features/pointer-events.js +1 -1
  1443. package/app/node_modules/caniuse-lite/data/features/pointer.js +1 -1
  1444. package/app/node_modules/caniuse-lite/data/features/pointerlock.js +1 -1
  1445. package/app/node_modules/caniuse-lite/data/features/portals.js +1 -1
  1446. package/app/node_modules/caniuse-lite/data/features/prefers-color-scheme.js +1 -1
  1447. package/app/node_modules/caniuse-lite/data/features/prefers-reduced-motion.js +1 -1
  1448. package/app/node_modules/caniuse-lite/data/features/progress.js +1 -1
  1449. package/app/node_modules/caniuse-lite/data/features/promise-finally.js +1 -1
  1450. package/app/node_modules/caniuse-lite/data/features/promises.js +1 -1
  1451. package/app/node_modules/caniuse-lite/data/features/proximity.js +1 -1
  1452. package/app/node_modules/caniuse-lite/data/features/proxy.js +1 -1
  1453. package/app/node_modules/caniuse-lite/data/features/publickeypinning.js +1 -1
  1454. package/app/node_modules/caniuse-lite/data/features/push-api.js +1 -1
  1455. package/app/node_modules/caniuse-lite/data/features/queryselector.js +1 -1
  1456. package/app/node_modules/caniuse-lite/data/features/readonly-attr.js +1 -1
  1457. package/app/node_modules/caniuse-lite/data/features/referrer-policy.js +1 -1
  1458. package/app/node_modules/caniuse-lite/data/features/registerprotocolhandler.js +1 -1
  1459. package/app/node_modules/caniuse-lite/data/features/rel-noopener.js +1 -1
  1460. package/app/node_modules/caniuse-lite/data/features/rel-noreferrer.js +1 -1
  1461. package/app/node_modules/caniuse-lite/data/features/rellist.js +1 -1
  1462. package/app/node_modules/caniuse-lite/data/features/rem.js +1 -1
  1463. package/app/node_modules/caniuse-lite/data/features/requestanimationframe.js +1 -1
  1464. package/app/node_modules/caniuse-lite/data/features/requestidlecallback.js +1 -1
  1465. package/app/node_modules/caniuse-lite/data/features/resizeobserver.js +1 -1
  1466. package/app/node_modules/caniuse-lite/data/features/resource-timing.js +1 -1
  1467. package/app/node_modules/caniuse-lite/data/features/rest-parameters.js +1 -1
  1468. package/app/node_modules/caniuse-lite/data/features/rtcpeerconnection.js +1 -1
  1469. package/app/node_modules/caniuse-lite/data/features/ruby.js +1 -1
  1470. package/app/node_modules/caniuse-lite/data/features/run-in.js +1 -1
  1471. package/app/node_modules/caniuse-lite/data/features/same-site-cookie-attribute.js +1 -1
  1472. package/app/node_modules/caniuse-lite/data/features/screen-orientation.js +1 -1
  1473. package/app/node_modules/caniuse-lite/data/features/script-async.js +1 -1
  1474. package/app/node_modules/caniuse-lite/data/features/script-defer.js +1 -1
  1475. package/app/node_modules/caniuse-lite/data/features/scrollintoview.js +1 -1
  1476. package/app/node_modules/caniuse-lite/data/features/scrollintoviewifneeded.js +1 -1
  1477. package/app/node_modules/caniuse-lite/data/features/sdch.js +1 -1
  1478. package/app/node_modules/caniuse-lite/data/features/selection-api.js +1 -1
  1479. package/app/node_modules/caniuse-lite/data/features/server-timing.js +1 -1
  1480. package/app/node_modules/caniuse-lite/data/features/serviceworkers.js +1 -1
  1481. package/app/node_modules/caniuse-lite/data/features/setimmediate.js +1 -1
  1482. package/app/node_modules/caniuse-lite/data/features/shadowdom.js +1 -1
  1483. package/app/node_modules/caniuse-lite/data/features/shadowdomv1.js +1 -1
  1484. package/app/node_modules/caniuse-lite/data/features/sharedarraybuffer.js +1 -1
  1485. package/app/node_modules/caniuse-lite/data/features/sharedworkers.js +1 -1
  1486. package/app/node_modules/caniuse-lite/data/features/sni.js +1 -1
  1487. package/app/node_modules/caniuse-lite/data/features/spdy.js +1 -1
  1488. package/app/node_modules/caniuse-lite/data/features/speech-recognition.js +1 -1
  1489. package/app/node_modules/caniuse-lite/data/features/speech-synthesis.js +1 -1
  1490. package/app/node_modules/caniuse-lite/data/features/spellcheck-attribute.js +1 -1
  1491. package/app/node_modules/caniuse-lite/data/features/sql-storage.js +1 -1
  1492. package/app/node_modules/caniuse-lite/data/features/srcset.js +1 -1
  1493. package/app/node_modules/caniuse-lite/data/features/stream.js +1 -1
  1494. package/app/node_modules/caniuse-lite/data/features/streams.js +1 -1
  1495. package/app/node_modules/caniuse-lite/data/features/stricttransportsecurity.js +1 -1
  1496. package/app/node_modules/caniuse-lite/data/features/style-scoped.js +1 -1
  1497. package/app/node_modules/caniuse-lite/data/features/subresource-bundling.js +1 -1
  1498. package/app/node_modules/caniuse-lite/data/features/subresource-integrity.js +1 -1
  1499. package/app/node_modules/caniuse-lite/data/features/svg-css.js +1 -1
  1500. package/app/node_modules/caniuse-lite/data/features/svg-filters.js +1 -1
  1501. package/app/node_modules/caniuse-lite/data/features/svg-fonts.js +1 -1
  1502. package/app/node_modules/caniuse-lite/data/features/svg-fragment.js +1 -1
  1503. package/app/node_modules/caniuse-lite/data/features/svg-html.js +1 -1
  1504. package/app/node_modules/caniuse-lite/data/features/svg-html5.js +1 -1
  1505. package/app/node_modules/caniuse-lite/data/features/svg-img.js +1 -1
  1506. package/app/node_modules/caniuse-lite/data/features/svg-smil.js +1 -1
  1507. package/app/node_modules/caniuse-lite/data/features/svg.js +1 -1
  1508. package/app/node_modules/caniuse-lite/data/features/sxg.js +1 -1
  1509. package/app/node_modules/caniuse-lite/data/features/tabindex-attr.js +1 -1
  1510. package/app/node_modules/caniuse-lite/data/features/template-literals.js +1 -1
  1511. package/app/node_modules/caniuse-lite/data/features/template.js +1 -1
  1512. package/app/node_modules/caniuse-lite/data/features/temporal.js +1 -1
  1513. package/app/node_modules/caniuse-lite/data/features/testfeat.js +1 -1
  1514. package/app/node_modules/caniuse-lite/data/features/text-decoration.js +1 -1
  1515. package/app/node_modules/caniuse-lite/data/features/text-emphasis.js +1 -1
  1516. package/app/node_modules/caniuse-lite/data/features/text-overflow.js +1 -1
  1517. package/app/node_modules/caniuse-lite/data/features/text-size-adjust.js +1 -1
  1518. package/app/node_modules/caniuse-lite/data/features/text-stroke.js +1 -1
  1519. package/app/node_modules/caniuse-lite/data/features/textcontent.js +1 -1
  1520. package/app/node_modules/caniuse-lite/data/features/textencoder.js +1 -1
  1521. package/app/node_modules/caniuse-lite/data/features/tls1-1.js +1 -1
  1522. package/app/node_modules/caniuse-lite/data/features/tls1-2.js +1 -1
  1523. package/app/node_modules/caniuse-lite/data/features/tls1-3.js +1 -1
  1524. package/app/node_modules/caniuse-lite/data/features/touch.js +1 -1
  1525. package/app/node_modules/caniuse-lite/data/features/transforms2d.js +1 -1
  1526. package/app/node_modules/caniuse-lite/data/features/transforms3d.js +1 -1
  1527. package/app/node_modules/caniuse-lite/data/features/trusted-types.js +1 -1
  1528. package/app/node_modules/caniuse-lite/data/features/ttf.js +1 -1
  1529. package/app/node_modules/caniuse-lite/data/features/typedarrays.js +1 -1
  1530. package/app/node_modules/caniuse-lite/data/features/u2f.js +1 -1
  1531. package/app/node_modules/caniuse-lite/data/features/unhandledrejection.js +1 -1
  1532. package/app/node_modules/caniuse-lite/data/features/upgradeinsecurerequests.js +1 -1
  1533. package/app/node_modules/caniuse-lite/data/features/url-scroll-to-text-fragment.js +1 -1
  1534. package/app/node_modules/caniuse-lite/data/features/url.js +1 -1
  1535. package/app/node_modules/caniuse-lite/data/features/urlsearchparams.js +1 -1
  1536. package/app/node_modules/caniuse-lite/data/features/use-strict.js +1 -1
  1537. package/app/node_modules/caniuse-lite/data/features/user-select-none.js +1 -1
  1538. package/app/node_modules/caniuse-lite/data/features/user-timing.js +1 -1
  1539. package/app/node_modules/caniuse-lite/data/features/variable-fonts.js +1 -1
  1540. package/app/node_modules/caniuse-lite/data/features/vector-effect.js +1 -1
  1541. package/app/node_modules/caniuse-lite/data/features/vibration.js +1 -1
  1542. package/app/node_modules/caniuse-lite/data/features/video.js +1 -1
  1543. package/app/node_modules/caniuse-lite/data/features/videotracks.js +1 -1
  1544. package/app/node_modules/caniuse-lite/data/features/view-transitions.js +1 -1
  1545. package/app/node_modules/caniuse-lite/data/features/viewport-unit-variants.js +1 -1
  1546. package/app/node_modules/caniuse-lite/data/features/viewport-units.js +1 -1
  1547. package/app/node_modules/caniuse-lite/data/features/wai-aria.js +1 -1
  1548. package/app/node_modules/caniuse-lite/data/features/wake-lock.js +1 -1
  1549. package/app/node_modules/caniuse-lite/data/features/wasm-bigint.js +1 -1
  1550. package/app/node_modules/caniuse-lite/data/features/wasm-bulk-memory.js +1 -1
  1551. package/app/node_modules/caniuse-lite/data/features/wasm-extended-const.js +1 -1
  1552. package/app/node_modules/caniuse-lite/data/features/wasm-gc.js +1 -1
  1553. package/app/node_modules/caniuse-lite/data/features/wasm-multi-memory.js +1 -1
  1554. package/app/node_modules/caniuse-lite/data/features/wasm-multi-value.js +1 -1
  1555. package/app/node_modules/caniuse-lite/data/features/wasm-mutable-globals.js +1 -1
  1556. package/app/node_modules/caniuse-lite/data/features/wasm-nontrapping-fptoint.js +1 -1
  1557. package/app/node_modules/caniuse-lite/data/features/wasm-reference-types.js +1 -1
  1558. package/app/node_modules/caniuse-lite/data/features/wasm-relaxed-simd.js +1 -1
  1559. package/app/node_modules/caniuse-lite/data/features/wasm-signext.js +1 -1
  1560. package/app/node_modules/caniuse-lite/data/features/wasm-simd.js +1 -1
  1561. package/app/node_modules/caniuse-lite/data/features/wasm-tail-calls.js +1 -1
  1562. package/app/node_modules/caniuse-lite/data/features/wasm-threads.js +1 -1
  1563. package/app/node_modules/caniuse-lite/data/features/wasm.js +1 -1
  1564. package/app/node_modules/caniuse-lite/data/features/wav.js +1 -1
  1565. package/app/node_modules/caniuse-lite/data/features/wbr-element.js +1 -1
  1566. package/app/node_modules/caniuse-lite/data/features/web-animation.js +1 -1
  1567. package/app/node_modules/caniuse-lite/data/features/web-app-manifest.js +1 -1
  1568. package/app/node_modules/caniuse-lite/data/features/web-bluetooth.js +1 -1
  1569. package/app/node_modules/caniuse-lite/data/features/web-serial.js +1 -1
  1570. package/app/node_modules/caniuse-lite/data/features/web-share.js +1 -1
  1571. package/app/node_modules/caniuse-lite/data/features/webauthn.js +1 -1
  1572. package/app/node_modules/caniuse-lite/data/features/webcodecs.js +1 -1
  1573. package/app/node_modules/caniuse-lite/data/features/webgl.js +1 -1
  1574. package/app/node_modules/caniuse-lite/data/features/webgl2.js +1 -1
  1575. package/app/node_modules/caniuse-lite/data/features/webgpu.js +1 -1
  1576. package/app/node_modules/caniuse-lite/data/features/webhid.js +1 -1
  1577. package/app/node_modules/caniuse-lite/data/features/webkit-user-drag.js +1 -1
  1578. package/app/node_modules/caniuse-lite/data/features/webm.js +1 -1
  1579. package/app/node_modules/caniuse-lite/data/features/webnfc.js +1 -1
  1580. package/app/node_modules/caniuse-lite/data/features/webp.js +1 -1
  1581. package/app/node_modules/caniuse-lite/data/features/websockets.js +1 -1
  1582. package/app/node_modules/caniuse-lite/data/features/webtransport.js +1 -1
  1583. package/app/node_modules/caniuse-lite/data/features/webusb.js +1 -1
  1584. package/app/node_modules/caniuse-lite/data/features/webvr.js +1 -1
  1585. package/app/node_modules/caniuse-lite/data/features/webvtt.js +1 -1
  1586. package/app/node_modules/caniuse-lite/data/features/webworkers.js +1 -1
  1587. package/app/node_modules/caniuse-lite/data/features/webxr.js +1 -1
  1588. package/app/node_modules/caniuse-lite/data/features/will-change.js +1 -1
  1589. package/app/node_modules/caniuse-lite/data/features/woff.js +1 -1
  1590. package/app/node_modules/caniuse-lite/data/features/woff2.js +1 -1
  1591. package/app/node_modules/caniuse-lite/data/features/word-break.js +1 -1
  1592. package/app/node_modules/caniuse-lite/data/features/wordwrap.js +1 -1
  1593. package/app/node_modules/caniuse-lite/data/features/x-doc-messaging.js +1 -1
  1594. package/app/node_modules/caniuse-lite/data/features/x-frame-options.js +1 -1
  1595. package/app/node_modules/caniuse-lite/data/features/xhr2.js +1 -1
  1596. package/app/node_modules/caniuse-lite/data/features/xhtml.js +1 -1
  1597. package/app/node_modules/caniuse-lite/data/features/xhtmlsmil.js +1 -1
  1598. package/app/node_modules/caniuse-lite/data/features/xml-serializer.js +1 -1
  1599. package/app/node_modules/caniuse-lite/data/features/zstd.js +1 -1
  1600. package/app/node_modules/caniuse-lite/package.json +1 -1
  1601. package/app/node_modules/koffi/build/koffi/darwin_arm64/koffi.node +0 -0
  1602. package/app/node_modules/koffi/build/koffi/darwin_x64/koffi.node +0 -0
  1603. package/app/node_modules/koffi/build/koffi/freebsd_arm64/koffi.node +0 -0
  1604. package/app/node_modules/koffi/build/koffi/freebsd_ia32/koffi.node +0 -0
  1605. package/app/node_modules/koffi/build/koffi/freebsd_x64/koffi.node +0 -0
  1606. package/app/node_modules/koffi/build/koffi/linux_arm64/koffi.node +0 -0
  1607. package/app/node_modules/koffi/build/koffi/linux_armhf/koffi.node +0 -0
  1608. package/app/node_modules/koffi/build/koffi/linux_ia32/koffi.node +0 -0
  1609. package/app/node_modules/koffi/build/koffi/linux_loong64/koffi.node +0 -0
  1610. package/app/node_modules/koffi/build/koffi/linux_riscv64d/koffi.node +0 -0
  1611. package/app/node_modules/koffi/build/koffi/linux_x64/koffi.node +0 -0
  1612. package/app/node_modules/koffi/build/koffi/musl_arm64/koffi.node +0 -0
  1613. package/app/node_modules/koffi/build/koffi/musl_x64/koffi.node +0 -0
  1614. package/app/node_modules/koffi/build/koffi/openbsd_ia32/koffi.node +0 -0
  1615. package/app/node_modules/koffi/build/koffi/openbsd_x64/koffi.node +0 -0
  1616. package/app/node_modules/koffi/build/koffi/win32_arm64/koffi.node +0 -0
  1617. package/app/node_modules/koffi/build/koffi/win32_ia32/koffi.node +0 -0
  1618. package/app/node_modules/koffi/build/koffi/win32_x64/koffi.node +0 -0
  1619. package/app/node_modules/koffi/index.js +634 -0
  1620. package/app/node_modules/koffi/package.json +38 -0
  1621. package/app/node_modules/next/dist/build/swc/index.js +1 -1
  1622. package/app/node_modules/next/dist/build/webpack-config.js +3 -3
  1623. package/app/node_modules/next/dist/client/dev/debug-channel.js +102 -2
  1624. package/app/node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js +10 -10
  1625. package/app/node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js +11 -11
  1626. package/app/node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js +13 -13
  1627. package/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js +10 -10
  1628. package/app/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js +2 -2
  1629. package/app/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js +1 -1
  1630. package/app/node_modules/next/dist/lib/patch-incorrect-lockfile.js +3 -3
  1631. package/app/node_modules/next/dist/server/app-render/action-handler.js +18 -8
  1632. package/app/node_modules/next/dist/server/config-schema.js +1 -0
  1633. package/app/node_modules/next/dist/server/config.js +1 -1
  1634. package/app/node_modules/next/dist/server/dev/hot-reloader-turbopack.js +2 -2
  1635. package/app/node_modules/next/dist/server/dev/hot-reloader-webpack.js +1 -1
  1636. package/app/node_modules/next/dist/server/lib/app-info-log.js +1 -1
  1637. package/app/node_modules/next/dist/server/lib/encode-cache-tag.js +45 -0
  1638. package/app/node_modules/next/dist/server/lib/implicit-tags.js +6 -3
  1639. package/app/node_modules/next/dist/server/lib/patch-fetch.js +5 -1
  1640. package/app/node_modules/next/dist/server/lib/start-server.js +1 -1
  1641. package/app/node_modules/next/dist/shared/lib/errors/canary-only-config-error.js +1 -1
  1642. package/app/node_modules/next/dist/shared/lib/router/router.js +8 -1
  1643. package/app/node_modules/next/dist/telemetry/anonymous-meta.js +1 -1
  1644. package/app/node_modules/next/dist/telemetry/events/swc-load-failure.js +1 -1
  1645. package/app/node_modules/next/dist/telemetry/events/version.js +2 -2
  1646. package/app/node_modules/next/package.json +15 -15
  1647. package/app/node_modules/tldts/dist/cjs/index.js +1170 -0
  1648. package/app/node_modules/tldts/package.json +89 -0
  1649. package/app/node_modules/tls-client-node/bin/tls-client-windows-64-1.15.1.dll +0 -0
  1650. package/app/node_modules/tls-client-node/dist/binary.js +293 -0
  1651. package/app/node_modules/tls-client-node/dist/client.js +1000 -0
  1652. package/app/node_modules/tls-client-node/dist/errors.js +41 -0
  1653. package/app/node_modules/tls-client-node/dist/index.js +19 -0
  1654. package/app/node_modules/tls-client-node/dist/multipart.js +69 -0
  1655. package/app/node_modules/tls-client-node/dist/native.js +95 -0
  1656. package/app/node_modules/tls-client-node/dist/response.js +66 -0
  1657. package/app/node_modules/tls-client-node/dist/types.js +88 -0
  1658. package/app/node_modules/tls-client-node/index.mjs +16 -0
  1659. package/app/node_modules/tls-client-node/package.json +78 -0
  1660. package/app/node_modules/tough-cookie/dist/index.cjs +2282 -0
  1661. package/app/node_modules/tough-cookie/package.json +148 -0
  1662. package/app/package.json +80 -79
  1663. package/app/public/providers/chatgpt-web.png +0 -0
  1664. package/app/server.js +1 -1
  1665. package/app/src/mitm/server.js +2 -2
  1666. package/package.json +49 -49
  1667. package/src/cli/menus/providers.js +8 -4
  1668. package/app/.next/server/chunks/4657.js +0 -1
  1669. package/app/.next/server/chunks/4888.js +0 -1
  1670. package/app/.next/server/chunks/8918.js +0 -1
  1671. package/app/.next/server/chunks/9142.js +0 -1
  1672. package/app/.next/static/chunks/1321-653ca08ce4c6e895.js +0 -1
  1673. package/app/.next/static/chunks/1a258343-5938f676ed376386.js +0 -1
  1674. package/app/.next/static/chunks/698-57b11f0d345c21be.js +0 -64
  1675. package/app/.next/static/chunks/app/(dashboard)/dashboard/cli-tools/page-780e29c4c311194c.js +0 -1
  1676. package/app/.next/static/chunks/app/(dashboard)/dashboard/combos/page-bcc9a2e4246ddbd8.js +0 -1
  1677. package/app/.next/static/chunks/app/(dashboard)/dashboard/console-log/page-b2d77aea3c0b05d0.js +0 -1
  1678. package/app/.next/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-005bbd9915c7cea0.js +0 -1
  1679. package/app/.next/static/chunks/app/(dashboard)/dashboard/profile/page-57708bcc11f45673.js +0 -1
  1680. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-820f3344240f98b4.js +0 -3
  1681. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/new/page-96c63eae7adf29f3.js +0 -1
  1682. package/app/.next/static/chunks/app/(dashboard)/dashboard/providers/page-96b20973bc54c145.js +0 -1
  1683. package/app/.next/static/chunks/app/(dashboard)/dashboard/quota/page-e88c7eea495f269b.js +0 -1
  1684. package/app/.next/static/chunks/app/(dashboard)/dashboard/skills/page-c4158204df8fc9c8.js +0 -1
  1685. package/app/.next/static/chunks/app/(dashboard)/dashboard/translator/page-a769d03c4f44374e.js +0 -1
  1686. package/app/.next/static/chunks/app/_global-error/page-415e99982d77970b.js +0 -1
  1687. package/app/.next/static/chunks/app/api/auth/login/route-415e99982d77970b.js +0 -1
  1688. package/app/.next/static/chunks/app/api/auth/logout/route-415e99982d77970b.js +0 -1
  1689. package/app/.next/static/chunks/app/api/auth/oidc/callback/route-415e99982d77970b.js +0 -1
  1690. package/app/.next/static/chunks/app/api/auth/oidc/start/route-415e99982d77970b.js +0 -1
  1691. package/app/.next/static/chunks/app/api/auth/oidc/test/route-415e99982d77970b.js +0 -1
  1692. package/app/.next/static/chunks/app/api/auth/status/route-415e99982d77970b.js +0 -1
  1693. package/app/.next/static/chunks/app/api/cli-tools/all-statuses/route-415e99982d77970b.js +0 -1
  1694. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-415e99982d77970b.js +0 -1
  1695. package/app/.next/static/chunks/app/api/cli-tools/antigravity-mitm/route-415e99982d77970b.js +0 -1
  1696. package/app/.next/static/chunks/app/api/cli-tools/claude-settings/route-415e99982d77970b.js +0 -1
  1697. package/app/.next/static/chunks/app/api/cli-tools/cline-settings/route-415e99982d77970b.js +0 -1
  1698. package/app/.next/static/chunks/app/api/cli-tools/codex-settings/route-415e99982d77970b.js +0 -1
  1699. package/app/.next/static/chunks/app/api/cli-tools/copilot-settings/route-415e99982d77970b.js +0 -1
  1700. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-415e99982d77970b.js +0 -1
  1701. package/app/.next/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-415e99982d77970b.js +0 -1
  1702. package/app/.next/static/chunks/app/api/cli-tools/cowork-settings/route-415e99982d77970b.js +0 -1
  1703. package/app/.next/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-415e99982d77970b.js +0 -1
  1704. package/app/.next/static/chunks/app/api/cli-tools/droid-settings/route-415e99982d77970b.js +0 -1
  1705. package/app/.next/static/chunks/app/api/cli-tools/hermes-settings/route-415e99982d77970b.js +0 -1
  1706. package/app/.next/static/chunks/app/api/cli-tools/jcode-settings/route-415e99982d77970b.js +0 -1
  1707. package/app/.next/static/chunks/app/api/cli-tools/kilo-settings/route-415e99982d77970b.js +0 -1
  1708. package/app/.next/static/chunks/app/api/cli-tools/openclaw-settings/route-415e99982d77970b.js +0 -1
  1709. package/app/.next/static/chunks/app/api/cli-tools/opencode-settings/route-415e99982d77970b.js +0 -1
  1710. package/app/.next/static/chunks/app/api/cloud/auth/route-415e99982d77970b.js +0 -1
  1711. package/app/.next/static/chunks/app/api/cloud/credentials/update/route-415e99982d77970b.js +0 -1
  1712. package/app/.next/static/chunks/app/api/cloud/model/resolve/route-415e99982d77970b.js +0 -1
  1713. package/app/.next/static/chunks/app/api/cloud/models/alias/route-415e99982d77970b.js +0 -1
  1714. package/app/.next/static/chunks/app/api/combos/[id]/route-415e99982d77970b.js +0 -1
  1715. package/app/.next/static/chunks/app/api/combos/route-415e99982d77970b.js +0 -1
  1716. package/app/.next/static/chunks/app/api/health/route-415e99982d77970b.js +0 -1
  1717. package/app/.next/static/chunks/app/api/init/route-415e99982d77970b.js +0 -1
  1718. package/app/.next/static/chunks/app/api/keys/[id]/route-415e99982d77970b.js +0 -1
  1719. package/app/.next/static/chunks/app/api/keys/route-415e99982d77970b.js +0 -1
  1720. package/app/.next/static/chunks/app/api/locale/route-415e99982d77970b.js +0 -1
  1721. package/app/.next/static/chunks/app/api/mcp/[plugin]/message/route-415e99982d77970b.js +0 -1
  1722. package/app/.next/static/chunks/app/api/mcp/[plugin]/sse/route-415e99982d77970b.js +0 -1
  1723. package/app/.next/static/chunks/app/api/media/download/route-415e99982d77970b.js +0 -1
  1724. package/app/.next/static/chunks/app/api/media-providers/tts/deepgram/voices/route-415e99982d77970b.js +0 -1
  1725. package/app/.next/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-415e99982d77970b.js +0 -1
  1726. package/app/.next/static/chunks/app/api/media-providers/tts/inworld/voices/route-415e99982d77970b.js +0 -1
  1727. package/app/.next/static/chunks/app/api/media-providers/tts/minimax/voices/route-415e99982d77970b.js +0 -1
  1728. package/app/.next/static/chunks/app/api/media-providers/tts/voices/route-415e99982d77970b.js +0 -1
  1729. package/app/.next/static/chunks/app/api/models/alias/route-415e99982d77970b.js +0 -1
  1730. package/app/.next/static/chunks/app/api/models/availability/route-415e99982d77970b.js +0 -1
  1731. package/app/.next/static/chunks/app/api/models/custom/route-415e99982d77970b.js +0 -1
  1732. package/app/.next/static/chunks/app/api/models/disabled/route-415e99982d77970b.js +0 -1
  1733. package/app/.next/static/chunks/app/api/models/route-415e99982d77970b.js +0 -1
  1734. package/app/.next/static/chunks/app/api/models/test/route-415e99982d77970b.js +0 -1
  1735. package/app/.next/static/chunks/app/api/oauth/[provider]/[action]/route-415e99982d77970b.js +0 -1
  1736. package/app/.next/static/chunks/app/api/oauth/codex/import/route-415e99982d77970b.js +0 -1
  1737. package/app/.next/static/chunks/app/api/oauth/cursor/auto-import/route-415e99982d77970b.js +0 -1
  1738. package/app/.next/static/chunks/app/api/oauth/cursor/import/route-415e99982d77970b.js +0 -1
  1739. package/app/.next/static/chunks/app/api/oauth/gitlab/pat/route-415e99982d77970b.js +0 -1
  1740. package/app/.next/static/chunks/app/api/oauth/iflow/cookie/route-415e99982d77970b.js +0 -1
  1741. package/app/.next/static/chunks/app/api/oauth/kiro/auto-import/route-415e99982d77970b.js +0 -1
  1742. package/app/.next/static/chunks/app/api/oauth/kiro/browser-login/route-415e99982d77970b.js +0 -1
  1743. package/app/.next/static/chunks/app/api/oauth/kiro/import/route-415e99982d77970b.js +0 -1
  1744. package/app/.next/static/chunks/app/api/oauth/kiro/social-authorize/route-415e99982d77970b.js +0 -1
  1745. package/app/.next/static/chunks/app/api/oauth/kiro/social-exchange/route-415e99982d77970b.js +0 -1
  1746. package/app/.next/static/chunks/app/api/pricing/route-415e99982d77970b.js +0 -1
  1747. package/app/.next/static/chunks/app/api/provider-nodes/[id]/route-415e99982d77970b.js +0 -1
  1748. package/app/.next/static/chunks/app/api/provider-nodes/route-415e99982d77970b.js +0 -1
  1749. package/app/.next/static/chunks/app/api/provider-nodes/validate/route-415e99982d77970b.js +0 -1
  1750. package/app/.next/static/chunks/app/api/providers/[id]/models/route-415e99982d77970b.js +0 -1
  1751. package/app/.next/static/chunks/app/api/providers/[id]/route-415e99982d77970b.js +0 -1
  1752. package/app/.next/static/chunks/app/api/providers/[id]/test/route-415e99982d77970b.js +0 -1
  1753. package/app/.next/static/chunks/app/api/providers/[id]/test-models/route-415e99982d77970b.js +0 -1
  1754. package/app/.next/static/chunks/app/api/providers/client/route-415e99982d77970b.js +0 -1
  1755. package/app/.next/static/chunks/app/api/providers/export/route-415e99982d77970b.js +0 -1
  1756. package/app/.next/static/chunks/app/api/providers/import/route-415e99982d77970b.js +0 -1
  1757. package/app/.next/static/chunks/app/api/providers/kilo/free-models/route-415e99982d77970b.js +0 -1
  1758. package/app/.next/static/chunks/app/api/providers/route-415e99982d77970b.js +0 -1
  1759. package/app/.next/static/chunks/app/api/providers/suggested-models/route-415e99982d77970b.js +0 -1
  1760. package/app/.next/static/chunks/app/api/providers/test-batch/route-415e99982d77970b.js +0 -1
  1761. package/app/.next/static/chunks/app/api/providers/validate/route-415e99982d77970b.js +0 -1
  1762. package/app/.next/static/chunks/app/api/proxy-pools/[id]/route-415e99982d77970b.js +0 -1
  1763. package/app/.next/static/chunks/app/api/proxy-pools/[id]/test/route-415e99982d77970b.js +0 -1
  1764. package/app/.next/static/chunks/app/api/proxy-pools/route-415e99982d77970b.js +0 -1
  1765. package/app/.next/static/chunks/app/api/proxy-pools/vercel-deploy/route-415e99982d77970b.js +0 -1
  1766. package/app/.next/static/chunks/app/api/settings/database/route-415e99982d77970b.js +0 -1
  1767. package/app/.next/static/chunks/app/api/settings/proxy-test/route-415e99982d77970b.js +0 -1
  1768. package/app/.next/static/chunks/app/api/settings/require-login/route-415e99982d77970b.js +0 -1
  1769. package/app/.next/static/chunks/app/api/settings/route-415e99982d77970b.js +0 -1
  1770. package/app/.next/static/chunks/app/api/shutdown/route-415e99982d77970b.js +0 -1
  1771. package/app/.next/static/chunks/app/api/tags/route-415e99982d77970b.js +0 -1
  1772. package/app/.next/static/chunks/app/api/translator/console-logs/route-415e99982d77970b.js +0 -1
  1773. package/app/.next/static/chunks/app/api/translator/console-logs/stream/route-415e99982d77970b.js +0 -1
  1774. package/app/.next/static/chunks/app/api/translator/load/route-415e99982d77970b.js +0 -1
  1775. package/app/.next/static/chunks/app/api/translator/save/route-415e99982d77970b.js +0 -1
  1776. package/app/.next/static/chunks/app/api/translator/send/route-415e99982d77970b.js +0 -1
  1777. package/app/.next/static/chunks/app/api/translator/translate/route-415e99982d77970b.js +0 -1
  1778. package/app/.next/static/chunks/app/api/update/check/route-415e99982d77970b.js +0 -1
  1779. package/app/.next/static/chunks/app/api/usage/[connectionId]/route-415e99982d77970b.js +0 -1
  1780. package/app/.next/static/chunks/app/api/usage/chart/route-415e99982d77970b.js +0 -1
  1781. package/app/.next/static/chunks/app/api/usage/history/route-415e99982d77970b.js +0 -1
  1782. package/app/.next/static/chunks/app/api/usage/providers/route-415e99982d77970b.js +0 -1
  1783. package/app/.next/static/chunks/app/api/usage/request-details/route-415e99982d77970b.js +0 -1
  1784. package/app/.next/static/chunks/app/api/usage/request-logs/route-415e99982d77970b.js +0 -1
  1785. package/app/.next/static/chunks/app/api/usage/stats/route-415e99982d77970b.js +0 -1
  1786. package/app/.next/static/chunks/app/api/usage/stream/route-415e99982d77970b.js +0 -1
  1787. package/app/.next/static/chunks/app/api/v1/api/chat/route-415e99982d77970b.js +0 -1
  1788. package/app/.next/static/chunks/app/api/v1/audio/speech/route-415e99982d77970b.js +0 -1
  1789. package/app/.next/static/chunks/app/api/v1/audio/transcriptions/route-415e99982d77970b.js +0 -1
  1790. package/app/.next/static/chunks/app/api/v1/audio/voices/route-415e99982d77970b.js +0 -1
  1791. package/app/.next/static/chunks/app/api/v1/chat/completions/route-415e99982d77970b.js +0 -1
  1792. package/app/.next/static/chunks/app/api/v1/embeddings/route-415e99982d77970b.js +0 -1
  1793. package/app/.next/static/chunks/app/api/v1/images/generations/route-415e99982d77970b.js +0 -1
  1794. package/app/.next/static/chunks/app/api/v1/messages/count_tokens/route-415e99982d77970b.js +0 -1
  1795. package/app/.next/static/chunks/app/api/v1/messages/route-415e99982d77970b.js +0 -1
  1796. package/app/.next/static/chunks/app/api/v1/models/[kind]/route-415e99982d77970b.js +0 -1
  1797. package/app/.next/static/chunks/app/api/v1/models/info/route-415e99982d77970b.js +0 -1
  1798. package/app/.next/static/chunks/app/api/v1/models/route-415e99982d77970b.js +0 -1
  1799. package/app/.next/static/chunks/app/api/v1/responses/compact/route-415e99982d77970b.js +0 -1
  1800. package/app/.next/static/chunks/app/api/v1/responses/route-415e99982d77970b.js +0 -1
  1801. package/app/.next/static/chunks/app/api/v1/route-415e99982d77970b.js +0 -1
  1802. package/app/.next/static/chunks/app/api/v1/search/route-415e99982d77970b.js +0 -1
  1803. package/app/.next/static/chunks/app/api/v1/video/generations/route-415e99982d77970b.js +0 -1
  1804. package/app/.next/static/chunks/app/api/v1/web/fetch/route-415e99982d77970b.js +0 -1
  1805. package/app/.next/static/chunks/app/api/v1beta/models/[...path]/route-415e99982d77970b.js +0 -1
  1806. package/app/.next/static/chunks/app/api/v1beta/models/route-415e99982d77970b.js +0 -1
  1807. package/app/.next/static/chunks/app/callback/page-9b5bdc320d59c61a.js +0 -1
  1808. package/app/.next/static/chunks/app/dashboard/settings/pricing/page-8e3fa29a8f753a5e.js +0 -1
  1809. package/app/.next/static/chunks/app/login/page-050a9acacb7d8882.js +0 -1
  1810. package/app/.next/static/chunks/app/manifest.webmanifest/route-415e99982d77970b.js +0 -1
  1811. package/app/.next/static/chunks/app/page-415e99982d77970b.js +0 -1
  1812. package/app/.next/static/chunks/next/dist/client/components/builtin/app-error-415e99982d77970b.js +0 -1
  1813. package/app/.next/static/chunks/next/dist/client/components/builtin/forbidden-415e99982d77970b.js +0 -1
  1814. package/app/.next/static/chunks/next/dist/client/components/builtin/global-error-3bf57d79ea2a59e9.js +0 -1
  1815. package/app/.next/static/chunks/next/dist/client/components/builtin/not-found-415e99982d77970b.js +0 -1
  1816. package/app/.next/static/chunks/next/dist/client/components/builtin/unauthorized-415e99982d77970b.js +0 -1
  1817. package/app/.next/static/css/7c9ebbeddd0a45aa.css +0 -1
  1818. package/app/.next/static/media/material-symbols-outlined.a9f35393.woff2 +0 -0
  1819. package/app/.next-cli-build/static/chunks/1321-653ca08ce4c6e895.js +0 -1
  1820. package/app/.next-cli-build/static/chunks/1a258343-5938f676ed376386.js +0 -1
  1821. package/app/.next-cli-build/static/chunks/698-57b11f0d345c21be.js +0 -64
  1822. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-780e29c4c311194c.js +0 -1
  1823. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-bcc9a2e4246ddbd8.js +0 -1
  1824. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/page-b2d77aea3c0b05d0.js +0 -1
  1825. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/page-005bbd9915c7cea0.js +0 -1
  1826. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-57708bcc11f45673.js +0 -1
  1827. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-820f3344240f98b4.js +0 -3
  1828. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/page-96c63eae7adf29f3.js +0 -1
  1829. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-96b20973bc54c145.js +0 -1
  1830. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-e88c7eea495f269b.js +0 -1
  1831. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/page-c4158204df8fc9c8.js +0 -1
  1832. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-a769d03c4f44374e.js +0 -1
  1833. package/app/.next-cli-build/static/chunks/app/_global-error/page-415e99982d77970b.js +0 -1
  1834. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-415e99982d77970b.js +0 -1
  1835. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-415e99982d77970b.js +0 -1
  1836. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-415e99982d77970b.js +0 -1
  1837. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-415e99982d77970b.js +0 -1
  1838. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-415e99982d77970b.js +0 -1
  1839. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-415e99982d77970b.js +0 -1
  1840. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-415e99982d77970b.js +0 -1
  1841. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-415e99982d77970b.js +0 -1
  1842. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-415e99982d77970b.js +0 -1
  1843. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-415e99982d77970b.js +0 -1
  1844. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-415e99982d77970b.js +0 -1
  1845. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-415e99982d77970b.js +0 -1
  1846. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-415e99982d77970b.js +0 -1
  1847. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-415e99982d77970b.js +0 -1
  1848. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-415e99982d77970b.js +0 -1
  1849. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-415e99982d77970b.js +0 -1
  1850. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-415e99982d77970b.js +0 -1
  1851. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-415e99982d77970b.js +0 -1
  1852. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-415e99982d77970b.js +0 -1
  1853. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-415e99982d77970b.js +0 -1
  1854. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-415e99982d77970b.js +0 -1
  1855. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-415e99982d77970b.js +0 -1
  1856. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-415e99982d77970b.js +0 -1
  1857. package/app/.next-cli-build/static/chunks/app/api/cloud/auth/route-415e99982d77970b.js +0 -1
  1858. package/app/.next-cli-build/static/chunks/app/api/cloud/credentials/update/route-415e99982d77970b.js +0 -1
  1859. package/app/.next-cli-build/static/chunks/app/api/cloud/model/resolve/route-415e99982d77970b.js +0 -1
  1860. package/app/.next-cli-build/static/chunks/app/api/cloud/models/alias/route-415e99982d77970b.js +0 -1
  1861. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-415e99982d77970b.js +0 -1
  1862. package/app/.next-cli-build/static/chunks/app/api/combos/route-415e99982d77970b.js +0 -1
  1863. package/app/.next-cli-build/static/chunks/app/api/health/route-415e99982d77970b.js +0 -1
  1864. package/app/.next-cli-build/static/chunks/app/api/init/route-415e99982d77970b.js +0 -1
  1865. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-415e99982d77970b.js +0 -1
  1866. package/app/.next-cli-build/static/chunks/app/api/keys/route-415e99982d77970b.js +0 -1
  1867. package/app/.next-cli-build/static/chunks/app/api/locale/route-415e99982d77970b.js +0 -1
  1868. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-415e99982d77970b.js +0 -1
  1869. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-415e99982d77970b.js +0 -1
  1870. package/app/.next-cli-build/static/chunks/app/api/media/download/route-415e99982d77970b.js +0 -1
  1871. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-415e99982d77970b.js +0 -1
  1872. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-415e99982d77970b.js +0 -1
  1873. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-415e99982d77970b.js +0 -1
  1874. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-415e99982d77970b.js +0 -1
  1875. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-415e99982d77970b.js +0 -1
  1876. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-415e99982d77970b.js +0 -1
  1877. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-415e99982d77970b.js +0 -1
  1878. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-415e99982d77970b.js +0 -1
  1879. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-415e99982d77970b.js +0 -1
  1880. package/app/.next-cli-build/static/chunks/app/api/models/route-415e99982d77970b.js +0 -1
  1881. package/app/.next-cli-build/static/chunks/app/api/models/test/route-415e99982d77970b.js +0 -1
  1882. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-415e99982d77970b.js +0 -1
  1883. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import/route-415e99982d77970b.js +0 -1
  1884. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-415e99982d77970b.js +0 -1
  1885. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-415e99982d77970b.js +0 -1
  1886. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-415e99982d77970b.js +0 -1
  1887. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-415e99982d77970b.js +0 -1
  1888. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-415e99982d77970b.js +0 -1
  1889. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/browser-login/route-415e99982d77970b.js +0 -1
  1890. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-415e99982d77970b.js +0 -1
  1891. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-415e99982d77970b.js +0 -1
  1892. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-415e99982d77970b.js +0 -1
  1893. package/app/.next-cli-build/static/chunks/app/api/pricing/route-415e99982d77970b.js +0 -1
  1894. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-415e99982d77970b.js +0 -1
  1895. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-415e99982d77970b.js +0 -1
  1896. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-415e99982d77970b.js +0 -1
  1897. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-415e99982d77970b.js +0 -1
  1898. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-415e99982d77970b.js +0 -1
  1899. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-415e99982d77970b.js +0 -1
  1900. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-415e99982d77970b.js +0 -1
  1901. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-415e99982d77970b.js +0 -1
  1902. package/app/.next-cli-build/static/chunks/app/api/providers/export/route-415e99982d77970b.js +0 -1
  1903. package/app/.next-cli-build/static/chunks/app/api/providers/import/route-415e99982d77970b.js +0 -1
  1904. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-415e99982d77970b.js +0 -1
  1905. package/app/.next-cli-build/static/chunks/app/api/providers/route-415e99982d77970b.js +0 -1
  1906. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-415e99982d77970b.js +0 -1
  1907. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-415e99982d77970b.js +0 -1
  1908. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-415e99982d77970b.js +0 -1
  1909. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-415e99982d77970b.js +0 -1
  1910. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-415e99982d77970b.js +0 -1
  1911. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-415e99982d77970b.js +0 -1
  1912. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-415e99982d77970b.js +0 -1
  1913. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-415e99982d77970b.js +0 -1
  1914. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-415e99982d77970b.js +0 -1
  1915. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-415e99982d77970b.js +0 -1
  1916. package/app/.next-cli-build/static/chunks/app/api/settings/route-415e99982d77970b.js +0 -1
  1917. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-415e99982d77970b.js +0 -1
  1918. package/app/.next-cli-build/static/chunks/app/api/tags/route-415e99982d77970b.js +0 -1
  1919. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-415e99982d77970b.js +0 -1
  1920. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-415e99982d77970b.js +0 -1
  1921. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-415e99982d77970b.js +0 -1
  1922. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-415e99982d77970b.js +0 -1
  1923. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-415e99982d77970b.js +0 -1
  1924. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-415e99982d77970b.js +0 -1
  1925. package/app/.next-cli-build/static/chunks/app/api/update/check/route-415e99982d77970b.js +0 -1
  1926. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-415e99982d77970b.js +0 -1
  1927. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-415e99982d77970b.js +0 -1
  1928. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-415e99982d77970b.js +0 -1
  1929. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-415e99982d77970b.js +0 -1
  1930. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-415e99982d77970b.js +0 -1
  1931. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-415e99982d77970b.js +0 -1
  1932. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-415e99982d77970b.js +0 -1
  1933. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-415e99982d77970b.js +0 -1
  1934. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-415e99982d77970b.js +0 -1
  1935. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-415e99982d77970b.js +0 -1
  1936. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-415e99982d77970b.js +0 -1
  1937. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-415e99982d77970b.js +0 -1
  1938. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-415e99982d77970b.js +0 -1
  1939. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-415e99982d77970b.js +0 -1
  1940. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-415e99982d77970b.js +0 -1
  1941. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-415e99982d77970b.js +0 -1
  1942. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-415e99982d77970b.js +0 -1
  1943. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-415e99982d77970b.js +0 -1
  1944. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-415e99982d77970b.js +0 -1
  1945. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-415e99982d77970b.js +0 -1
  1946. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-415e99982d77970b.js +0 -1
  1947. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-415e99982d77970b.js +0 -1
  1948. package/app/.next-cli-build/static/chunks/app/api/v1/route-415e99982d77970b.js +0 -1
  1949. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-415e99982d77970b.js +0 -1
  1950. package/app/.next-cli-build/static/chunks/app/api/v1/video/generations/route-415e99982d77970b.js +0 -1
  1951. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-415e99982d77970b.js +0 -1
  1952. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-415e99982d77970b.js +0 -1
  1953. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-415e99982d77970b.js +0 -1
  1954. package/app/.next-cli-build/static/chunks/app/callback/page-9b5bdc320d59c61a.js +0 -1
  1955. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-8e3fa29a8f753a5e.js +0 -1
  1956. package/app/.next-cli-build/static/chunks/app/login/page-050a9acacb7d8882.js +0 -1
  1957. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-415e99982d77970b.js +0 -1
  1958. package/app/.next-cli-build/static/chunks/app/page-415e99982d77970b.js +0 -1
  1959. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-415e99982d77970b.js +0 -1
  1960. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-415e99982d77970b.js +0 -1
  1961. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/global-error-3bf57d79ea2a59e9.js +0 -1
  1962. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-415e99982d77970b.js +0 -1
  1963. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-415e99982d77970b.js +0 -1
  1964. package/app/.next-cli-build/static/css/7c9ebbeddd0a45aa.css +0 -1
  1965. package/app/.next-cli-build/static/media/material-symbols-outlined.a9f35393.woff2 +0 -0
  1966. package/app/cli/.build-home/AppData/Local/npm-cache/_update-notifier-last-checked +0 -0
  1967. package/app/cli/.build-home/AppData/Roaming/nextjs-nodejs/Config/config.json +0 -7
  1968. /package/app/.next/static/{uSk8fvki1Xuy7nlktCQsE → 0upBBziHoCcHIU60tgxI0}/_ssgManifest.js +0 -0
  1969. /package/app/.next-cli-build/static/{uSk8fvki1Xuy7nlktCQsE → 0upBBziHoCcHIU60tgxI0}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2326],{28169:(e,s,l)=>{Promise.resolve().then(l.bind(l,53501))},53501:(e,s,l)=>{"use strict";l.d(s,{default:()=>m});var t=l(95155),a=l(12115),r=l(35497),i=l(3534),c=l(43666),n=l(98500),o=l.n(n),d=l(5772);function x({toolId:e,tool:s,status:l}){let a=l?l.installed?l.hasKTRouter?{label:"Connected",cls:"bg-green-500/10 text-green-600 dark:text-green-400"}:{label:"Not configured",cls:"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400"}:{label:"Not installed",cls:"bg-red-500/10 text-red-600 dark:text-red-400"}:{label:"Unknown",cls:"bg-gray-500/10 text-gray-500"};return(0,t.jsx)(o(),{href:`/dashboard/cli-tools/${e}`,className:"block",children:(0,t.jsx)(r.Zp,{padding:"sm",className:"h-full overflow-hidden hover:border-primary/50 transition-colors cursor-pointer",children:(0,t.jsxs)("div",{className:"flex h-full flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"size-8 flex items-center justify-center shrink-0",children:s.image?(0,t.jsx)(d.default,{src:s.image,alt:s.name,width:32,height:32,className:"size-8 object-contain rounded-lg",sizes:"32px",onError:e=>{e.target.style.display="none"}}):s.icon?(0,t.jsx)("span",{className:"material-symbols-outlined text-[28px]",style:{color:s.color},children:s.icon}):null}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"font-medium text-sm truncate",children:s.name}),(0,t.jsx)("span",{className:`inline-block mt-0.5 px-1.5 py-0.5 text-[10px] font-medium rounded-full ${a.cls}`,children:a.label})]}),(0,t.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px] shrink-0",children:"chevron_right"})]}),(0,t.jsx)("p",{className:"text-xs text-text-muted line-clamp-2",children:s.description})]})})})}function m({machineId:e}){let[s,l]=(0,a.useState)(!0),[n,o]=(0,a.useState)({});if((0,a.useEffect)(()=>{let e=!0;return(async()=>{try{let s=await fetch("/api/cli-tools/all-statuses");s.ok&&e&&o(await s.json())}catch(e){console.log("Error fetching tool statuses:",e)}finally{e&&l(!1)}})(),()=>{e=!1}},[]),s)return(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:[(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{}),(0,t.jsx)(r.Qv,{})]});let d=Object.entries(i.dM),g=Object.entries(i.wn);return(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-6 px-1 sm:px-0",children:[(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:d.map(([e,s])=>(0,t.jsx)(x,{toolId:e,tool:s,status:n[e]},e))}),(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-1",children:[(0,t.jsx)("span",{className:"material-symbols-outlined text-[18px] text-primary",children:"security"}),(0,t.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"MITM Tools"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3 sm:gap-4",children:g.map(([e,s])=>(0,t.jsx)(c.gY,{tool:s},e))})]})]})}}},e=>{e.O(0,[2574,3862,2194,698,5772,1321,5497,6069,8441,3794,7358],()=>e(e.s=28169)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3649],{42651:(e,t,s)=>{Promise.resolve().then(s.bind(s,47295))},47295:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>x});var l=s(95155),a=s(12115),r=s(44923),o=s(87256),i=s(39768),n=s(5020),c=s(35497),d=s(11059);s(52679);let m=/^[a-zA-Z0-9_.\-]+$/;function x(){let[e,t]=(0,a.useState)([]),[s,r]=(0,a.useState)(!0),[o,i]=(0,a.useState)(!1),[n,m]=(0,a.useState)(null),[x,u]=(0,a.useState)([]),[b,f]=(0,a.useState)({}),[g,j]=(0,a.useState)(null),{copied:y,copy:v}=(0,d.C)();(0,a.useEffect)(()=>{w()},[]);let w=async()=>{try{let[e,s,l]=await Promise.all([fetch("/api/combos"),fetch("/api/providers"),fetch("/api/settings")]),a=await e.json(),r=await s.json(),o=l.ok?await l.json():{};e.ok&&t((a.combos||[]).filter(e=>!e.kind)),s.ok&&u(r.connections||[]),f(o.comboStrategies||{})}catch(e){console.log("Error fetching data:",e)}finally{r(!1)}},N=async e=>{try{let t=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(t.ok)await w(),i(!1);else{let e=await t.json();alert(e.error||"Failed to create combo")}}catch(e){console.log("Error creating combo:",e)}},k=async(e,t)=>{try{let s=await fetch(`/api/combos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(s.ok)await w(),m(null);else{let e=await s.json();alert(e.error||"Failed to update combo")}}catch(e){console.log("Error updating combo:",e)}},C=async s=>{j({title:"Delete Combo",message:"Delete this combo?",onConfirm:async()=>{j(null);try{(await fetch(`/api/combos/${s}`,{method:"DELETE"})).ok&&t(e.filter(e=>e.id!==s))}catch(e){console.log("Error deleting combo:",e)}}})},S=async(e,t)=>{try{let s={...b};t?s[e]={fallbackStrategy:"round-robin"}:delete s[e],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategies:s})}),f(s)}catch(e){console.log("Error updating combo strategy:",e)}};return s?(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsx)(c.Qv,{}),(0,l.jsx)(c.Qv,{})]}):(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h1",{className:"text-2xl font-semibold",children:"Combos"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mt-1",children:"Create model combos with fallback support"})]}),(0,l.jsx)(c.$n,{icon:"add",onClick:()=>i(!0),className:"w-full sm:w-auto",children:"Create Combo"})]}),0===e.length?(0,l.jsx)(c.Zp,{children:(0,l.jsxs)("div",{className:"text-center py-12",children:[(0,l.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-4",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[32px]",children:"layers"})}),(0,l.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No combos yet"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create model combos with fallback support"}),(0,l.jsx)(c.$n,{icon:"add",onClick:()=>i(!0),className:"w-full sm:w-auto",children:"Create Combo"})]})}):(0,l.jsx)("div",{className:"flex flex-col gap-4",children:e.map(e=>(0,l.jsx)(h,{combo:e,copied:y,onCopy:v,onEdit:()=>m(e),onDelete:()=>C(e.id),roundRobinEnabled:b[e.name]?.fallbackStrategy==="round-robin",onToggleRoundRobin:t=>S(e.name,t)},e.id))}),(0,l.jsx)(p,{isOpen:o,onClose:()=>i(!1),onSave:N,activeProviders:x},"create"),(0,l.jsx)(p,{isOpen:!!n,combo:n,onClose:()=>m(null),onSave:e=>k(n.id,e),activeProviders:x},n?.id||"new"),(0,l.jsx)(c.uo,{isOpen:!!g,onClose:()=>j(null),onConfirm:g?.onConfirm,title:g?.title||"Confirm",message:g?.message,variant:"danger"})]})}function h({combo:e,copied:t,onCopy:s,onEdit:a,onDelete:r,roundRobinEnabled:o,onToggleRoundRobin:i}){return(0,l.jsx)(c.Zp,{padding:"sm",className:"group",children:(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,l.jsx)("div",{className:"size-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsx)("code",{className:"block truncate font-mono text-sm font-medium",children:e.name}),(0,l.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1",children:[0===e.models.length?(0,l.jsx)("span",{className:"text-xs text-text-muted italic",children:"No models"}):e.models.slice(0,3).map((e,t)=>(0,l.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1.5 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[220px]",children:e},t)),e.models.length>3&&(0,l.jsxs)("span",{className:"text-[10px] text-text-muted",children:["+",e.models.length-3," more"]})]})]})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center sm:gap-3 sm:shrink-0",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-1.5 rounded-lg bg-black/[0.02] px-2 py-1.5 dark:bg-white/[0.02] sm:justify-start sm:bg-transparent sm:px-0 sm:py-0 sm:dark:bg-transparent",children:[(0,l.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,l.jsx)(c.lM,{size:"sm",checked:o,onChange:i})]}),(0,l.jsxs)("div",{className:"grid grid-cols-3 gap-1 sm:flex",children:[(0,l.jsxs)("button",{onClick:t=>{t.stopPropagation(),s(e.name,`combo-${e.id}`)},className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Copy combo name",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:t===`combo-${e.id}`?"check":"content_copy"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Copy"})]}),(0,l.jsxs)("button",{onClick:a,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted transition-colors hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Edit",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,l.jsxs)("button",{onClick:r,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 transition-colors hover:bg-red-500/10",title:"Delete",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,l.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]})]})]})})}function u({id:e,index:t,model:s,isFirst:r,isLast:n,onEdit:c,onMoveUp:d,onMoveDown:m,onRemove:x}){let{attributes:h,listeners:p,setNodeRef:b,transform:f,isDragging:g}=(0,o.gl)({id:e}),j={transform:i.Ks.Transform.toString(f),opacity:g?.4:1,zIndex:g?999:void 0},[y,v]=(0,a.useState)(!1),[w,N]=(0,a.useState)(s),k=()=>{let e=w.trim();e&&e!==s?c(e):N(s),v(!1)};return(0,l.jsxs)("div",{ref:b,style:j,className:`group flex min-w-0 items-center gap-1.5 rounded-md px-2 py-1 bg-black/[0.02] hover:bg-black/[0.04] dark:bg-white/[0.02] dark:hover:bg-white/[0.04] transition-colors ${g?"shadow-md ring-1 ring-primary/30":""}`,children:[(0,l.jsx)("button",{...h,...p,type:"button",className:"cursor-grab touch-none p-0.5 rounded text-text-muted hover:text-primary active:cursor-grabbing shrink-0",title:"Drag to reorder",children:(0,l.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:[(0,l.jsx)("circle",{cx:"9",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"4",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"12",r:"2"}),(0,l.jsx)("circle",{cx:"9",cy:"20",r:"2"}),(0,l.jsx)("circle",{cx:"15",cy:"20",r:"2"})]})}),(0,l.jsx)("span",{className:"text-[10px] font-medium text-text-muted w-3 text-center shrink-0",children:t+1}),y?(0,l.jsx)("input",{autoFocus:!0,value:w,onChange:e=>N(e.target.value),onBlur:k,onKeyDown:e=>{"Enter"===e.key&&k(),"Escape"===e.key&&(N(s),v(!1))},className:"min-w-0 flex-1 rounded border border-primary/40 bg-white px-1.5 py-0.5 font-mono text-xs text-text-main outline-none dark:bg-black/20"}):(0,l.jsx)("div",{className:"min-w-0 flex-1 cursor-text truncate rounded px-1.5 py-0.5 font-mono text-xs text-text-main hover:bg-black/5 dark:hover:bg-white/5",onClick:()=>v(!0),title:"Click to edit",children:s}),(0,l.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5",children:[(0,l.jsx)("button",{onClick:d,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move up",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_upward"})}),(0,l.jsx)("button",{onClick:m,disabled:n,className:`p-0.5 rounded ${n?"text-text-muted/20 cursor-not-allowed":"text-text-muted hover:text-primary hover:bg-black/5 dark:hover:bg-white/5"}`,title:"Move down",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"arrow_downward"})})]}),(0,l.jsx)("button",{onClick:x,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 transition-all",title:"Remove",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:"close"})})]})}function p({isOpen:e,combo:t,onClose:s,onSave:i,activeProviders:d,kindFilter:x=null}){let[h,b]=(0,a.useState)(t?.name||""),[f,g]=(0,a.useState)(t?.models||[]),[j,y]=(0,a.useState)(!1),[v,w]=(0,a.useState)(!1),[N,k]=(0,a.useState)(""),[C,S]=(0,a.useState)({}),E=(0,r.FR)((0,r.MS)(r.AN,{activationConstraint:{distance:5}}),(0,r.MS)(r.uN,{coordinateGetter:o.JR})),O=f.map((e,t)=>({uid:`item-${t}`,model:e})),$=async()=>{try{let e=await fetch("/api/models/alias");if(!e.ok)return;let t=await e.json();S(t.aliases||{})}catch(e){console.error("Error fetching modal data:",e)}};(0,a.useEffect)(()=>{e&&$()},[e]);let _=e=>e.trim()?m.test(e)?(k(""),!0):(k("Only letters, numbers, -, _ and . allowed"),!1):(k("Name is required"),!1),D=async()=>{_(h)&&(w(!0),await i({name:h.trim(),models:f}),w(!1))},M=!!t;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.aF,{isOpen:e,onClose:s,title:M?"Edit Combo":"Create Combo",children:(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(c.pd,{label:"Combo Name",value:h,onChange:e=>{let t=e.target.value;b(t),t?_(t):k("")},placeholder:"my-combo",error:N}),(0,l.jsx)("p",{className:"text-[10px] text-text-muted mt-0.5",children:"Only letters, numbers, -, _ and . allowed"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Models"}),0===f.length?(0,l.jsxs)("div",{className:"text-center py-4 border border-dashed border-black/10 dark:border-white/10 rounded-lg bg-black/[0.01] dark:bg-white/[0.01]",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-text-muted text-xl mb-1",children:"layers"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"No models added yet"})]}):(0,l.jsx)(r.Mp,{sensors:E,collisionDetection:r.fp,onDragEnd:e=>{let{active:t,over:s}=e;if(s&&t.id!==s.id){let e=O.findIndex(e=>e.uid===t.id),l=O.findIndex(e=>e.uid===s.id);-1!==e&&-1!==l&&g(t=>(0,o.be)(t,e,l))}},modifiers:[n.FN,n.gj],children:(0,l.jsx)(o.gB,{items:O.map(e=>e.uid),strategy:o._G,children:(0,l.jsx)("div",{className:"flex max-h-[55vh] min-w-0 flex-col gap-1 overflow-y-auto sm:max-h-[350px]",children:O.map(({uid:e,model:t},s)=>(0,l.jsx)(u,{id:e,index:s,model:t,isFirst:0===s,isLast:s===O.length-1,onEdit:e=>{let t=[...f];t[s]=e,g(t)},onMoveUp:()=>(e=>{if(0===e)return;let t=[...f];[t[e-1],t[e]]=[t[e],t[e-1]],g(t)})(s),onMoveDown:()=>(e=>{if(e===f.length-1)return;let t=[...f];[t[e],t[e+1]]=[t[e+1],t[e]],g(t)})(s),onRemove:()=>{g(f.filter((e,t)=>t!==s))}},e))})})}),(0,l.jsxs)("button",{onClick:()=>y(!0),className:"w-full mt-2 py-2 border border-dashed border-black/10 dark:border-white/10 rounded-lg text-xs text-primary font-medium hover:text-primary hover:border-primary/50 transition-colors flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"add"}),"Add Model"]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 pt-1 sm:flex-row",children:[(0,l.jsx)(c.$n,{onClick:s,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,l.jsx)(c.$n,{onClick:D,fullWidth:!0,size:"sm",disabled:!h.trim()||!!N||v,children:v?"Saving...":M?"Save":"Create"})]})]})}),(0,l.jsx)(c.rq,{isOpen:j,onClose:()=>y(!1),onSelect:e=>{f.includes(e.value)||g([...f,e.value])},onDeselect:e=>{g(f.filter(t=>t!==e.value))},activeProviders:d,modelAliases:C,title:"Add Model to Combo",kindFilter:x,addedModelValues:f,closeOnSelect:!1})]})}}},e=>{e.O(0,[2574,3862,2194,698,7055,1321,5497,8441,3794,7358],()=>e(e.s=42651)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[712],{3112:(e,t,l)=>{Promise.resolve().then(l.bind(l,44493))},44493:(e,t,l)=>{"use strict";l.d(t,{default:()=>o});var s=l(95155),n=l(12115),r=l(35497),a=l(90620);let c={LOG:"text-green-400",INFO:"text-blue-400",WARN:"text-yellow-400",ERROR:"text-red-400",DEBUG:"text-purple-400"};function o(){let[e,t]=(0,n.useState)([]),[l,o]=(0,n.useState)(!1),i=(0,n.useRef)(null),u=async()=>{try{await fetch("/api/translator/console-logs",{method:"DELETE"})}catch(e){console.error("Failed to clear console logs:",e)}};return(0,n.useEffect)(()=>{let e=new EventSource("/api/translator/console-logs/stream");return e.onopen=()=>o(!0),e.onmessage=e=>{let l=JSON.parse(e.data);"init"===l.type?t(l.logs.slice(-a.UY.maxLines)):"line"===l.type?t(e=>{let t=[...e,l.line];return t.length>a.UY.maxLines?t.slice(-a.UY.maxLines):t}):"clear"===l.type&&t([])},e.onerror=()=>o(!1),()=>e.close()},[]),(0,n.useEffect)(()=>{i.current&&(i.current.scrollTop=i.current.scrollHeight)},[e]),(0,s.jsx)("div",{className:"",children:(0,s.jsxs)(r.Zp,{children:[(0,s.jsx)("div",{className:"flex items-center justify-end px-4 pt-3 pb-2",children:(0,s.jsx)(r.$n,{size:"sm",variant:"outline",icon:"delete",onClick:u,children:"Clear"})}),(0,s.jsx)("div",{ref:i,className:"bg-black rounded-b-lg p-4 text-xs font-mono h-[calc(100vh-220px)] overflow-y-auto",children:0===e.length?(0,s.jsx)("span",{className:"text-text-muted",children:"No console logs yet."}):(0,s.jsx)("div",{className:"space-y-0.5",children:e.map((e,t)=>{let l,n;return(0,s.jsx)("div",{children:(n=c[(l=e.match(/\[(\w+)\]/g))?l[1]?.replace(/\[|\]/g,""):null]||"text-green-400",(0,s.jsx)("span",{className:n,children:e}))},t)})})})]})})}}},e=>{e.O(0,[2574,3862,2194,698,1321,5497,8441,3794,7358],()=>e(e.s=3112)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9260],{10273:(e,s,t)=>{Promise.resolve().then(t.bind(t,71088))},71088:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>b});var r=t(95155),a=t(98500),i=t.n(a),l=t(12115),o=t(73321),c=t(35497),n=t(57250),d=t(52679);function m(e){let s=Object.entries(e).some(([e,s])=>e.startsWith("modelLock_")&&s&&new Date(s).getTime()>Date.now());return"unavailable"!==e.testStatus||s?e.testStatus:"active"}function x({provider:e,kind:s,connections:t}){let a=d.Q2[e.id],l=!!a?.noAuth,o=t.filter(s=>s.provider===e.id),h=o.filter(e=>{let s=m(e);return"active"===s||"success"===s}).length,p=o.filter(e=>{let s=m(e);return"error"===s||"expired"===s||"unavailable"===s}).length,b=o.length,u=b>0&&o.every(e=>!1===e.isActive);return(0,r.jsx)(i(),{href:`/dashboard/media-providers/${s}/${e.id}`,className:"group",children:(0,r.jsx)(c.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 gap-3",children:[(0,r.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${e.color?.length>7?e.color:(e.color??"#888")+"15"}`},children:(0,r.jsx)(n.A,{src:`/providers/${e.id}.png`,alt:e.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:e.textIcon||e.id.slice(0,2).toUpperCase(),fallbackColor:e.color})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"font-semibold text-sm",children:e.name}),(0,r.jsx)("div",{className:"flex items-center gap-2 mt-0.5 flex-wrap",children:l?(0,r.jsx)(c.Ex,{variant:"success",size:"sm",children:"Ready"}):u?(0,r.jsx)(c.Ex,{variant:"default",size:"sm",children:"Disabled"}):0===b?(0,r.jsx)("span",{className:"text-xs text-text-muted",children:"No connections"}):(0,r.jsxs)(r.Fragment,{children:[h>0&&(0,r.jsxs)(c.Ex,{variant:"success",size:"sm",dot:!0,children:[h," Connected"]}),p>0&&(0,r.jsxs)(c.Ex,{variant:"error",size:"sm",dot:!0,children:[p," Error"]}),0===h&&0===p&&(0,r.jsxs)(c.Ex,{variant:"default",size:"sm",children:[b," Added"]})]})})]})]})})})}function h({combos:e}){return 0===e.length?(0,r.jsx)("p",{className:"text-xs text-text-muted italic",children:"No combos yet."}):(0,r.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,r.jsx)(i(),{href:`/dashboard/media-providers/combo/${e.id}`,children:(0,r.jsx)(c.Zp,{padding:"xs",className:"hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors cursor-pointer",children:(0,r.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"}),(0,r.jsx)("code",{className:"text-sm font-mono font-medium flex-1 truncate",children:e.name}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:shrink-0",children:[e.models.slice(0,6).map((e,s)=>{let t="string"==typeof e?e.split("/")[0]:"",a=d.Q2[t];return(0,r.jsx)("div",{title:a?.name||e,className:"size-5 rounded flex items-center justify-center",style:{backgroundColor:`${a?.color??"#888"}15`},children:(0,r.jsx)(n.A,{src:`/providers/${t}.png`,alt:a?.name||t,size:18,className:"object-contain rounded max-w-[18px] max-h-[18px]",fallbackText:a?.textIcon||t.slice(0,2).toUpperCase(),fallbackColor:a?.color})},`${e}-${s}`)}),e.models.length>6&&(0,r.jsxs)("span",{className:"text-[10px] text-text-muted ml-1",children:["+",e.models.length-6]})]}),(0,r.jsx)("span",{className:"text-[11px] text-text-muted shrink-0",children:e.models.length}),(0,r.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[16px]",children:"chevron_right"})]})})},e.id))})}function p({title:e,icon:s,kind:t,providers:a,connections:i,combos:l,onCreateCombo:o}){return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-primary",children:s}),(0,r.jsx)("h2",{className:"text-base font-semibold",children:e}),(0,r.jsxs)("span",{className:"text-xs text-text-muted",children:["(",a.length," providers \xb7 ",l.length," combos)"]})]}),(0,r.jsx)(c.$n,{size:"sm",icon:"add",onClick:o,children:"Create Combo"})]}),l.length>0&&(0,r.jsx)("div",{className:"mb-4",children:(0,r.jsx)(h,{combos:l})}),0===a.length?(0,r.jsx)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl text-text-muted text-sm",children:"No providers."}):(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:a.map(e=>(0,r.jsx)(x,{provider:e,kind:t,connections:i},e.id))})]})}function b(){let e=(0,o.useRouter)(),[s,t]=(0,l.useState)([]),[a,i]=(0,l.useState)([]),c=async()=>{try{let[e,s]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/combos",{cache:"no-store"})]);e.ok&&t((await e.json()).connections||[]),s.ok&&i((await s.json()).combos||[])}catch{}};(0,l.useEffect)(()=>{c()},[]);let n=(0,d.o5)("webSearch"),m=(0,d.o5)("webFetch"),x=a.filter(e=>"webSearch"===e.kind),h=a.filter(e=>"webFetch"===e.kind),b=async s=>{let t="webSearch"===s?"search-combo":"fetch-combo",r=t,i=1,l=new Set(a.map(e=>e.name));for(;l.has(r);)r=`${t}-${i++}`;let o=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:r,models:[],kind:s})});if(o.ok){let s=await o.json();e.push(`/dashboard/media-providers/combo/${s.id}`)}else alert((await o.json()).error||"Failed to create combo")};return(0,r.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,r.jsx)(p,{title:"Web Search",icon:"search",kind:"webSearch",providers:n,connections:s,combos:x,onCreateCombo:()=>b("webSearch")}),(0,r.jsx)("div",{className:"border-t border-border"}),(0,r.jsx)(p,{title:"Web Fetch",icon:"travel_explore",kind:"webFetch",providers:m,connections:s,combos:h,onCreateCombo:()=>b("webFetch")})]})}}},e=>{e.O(0,[2574,3862,2194,698,1321,5497,8441,3794,7358],()=>e(e.s=10273)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{64561:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>d});var a=s(95155),r=s(12115),o=s(35497),i=s(1620),l=s(31474),n=s(90620);function d(){let{theme:e,setTheme:t,isDark:s}=(0,i.D)(),[d,c]=(0,r.useState)({fallbackStrategy:"fill-first"}),[m,x]=(0,r.useState)(!0),[p,u]=(0,r.useState)({current:"",new:"",confirm:""}),[h,b]=(0,r.useState)({type:"",message:""}),[g,y]=(0,r.useState)(!1),[f,j]=(0,r.useState)(!1),[N,w]=(0,r.useState)({type:"",message:""}),[v,C]=(0,r.useState)({authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC"}),[k,S]=(0,r.useState)(""),[P,O]=(0,r.useState)({type:"",message:""}),[I,L]=(0,r.useState)(!1),[R,D]=(0,r.useState)(!1),[U,T]=(0,r.useState)({type:"",message:""}),[A,M]=(0,r.useState)("/api/auth/oidc/callback"),[E,$]=(0,r.useState)(!1),F=(0,r.useRef)(null),[q,J]=(0,r.useState)({outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:""}),[H,_]=(0,r.useState)({type:"",message:""}),[K,Z]=(0,r.useState)(!1),[B,z]=(0,r.useState)(!1);(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{c(e),C({authMode:e?.authMode||"password",oidcIssuerUrl:e?.oidcIssuerUrl||"",oidcClientId:e?.oidcClientId||"",oidcScopes:e?.oidcScopes||"openid profile email",oidcLoginLabel:e?.oidcLoginLabel||"Sign in with OIDC"}),S(""),(e?.authMode==="oidc"||e?.authMode==="both")&&$(!0),J({outboundProxyEnabled:e?.outboundProxyEnabled===!0,outboundProxyUrl:e?.outboundProxyUrl||"",outboundNoProxy:e?.outboundNoProxy||""}),x(!1)}).catch(e=>{console.error("Failed to fetch settings:",e),x(!1)})},[]),(0,r.useEffect)(()=>{M(`${window.location.origin}/api/auth/oidc/callback`)},[]);let Q=async e=>{if(e.preventDefault(),!0===d.outboundProxyEnabled){Z(!0),_({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyUrl:q.outboundProxyUrl,outboundNoProxy:q.outboundNoProxy})}),t=await e.json();e.ok?(c(e=>({...e,...t})),_({type:"success",message:"Proxy settings applied"})):_({type:"error",message:t.error||"Failed to update proxy settings"})}catch(e){_({type:"error",message:"An error occurred"})}finally{Z(!1)}}},W=async()=>{if(!0!==d.outboundProxyEnabled)return;let e=(q.outboundProxyUrl||"").trim();if(!e)return void _({type:"error",message:"Please enter a Proxy URL to test"});z(!0),_({type:"",message:""});try{let t=await fetch("/api/settings/proxy-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyUrl:e})}),s=await t.json();t.ok&&s?.ok?_({type:"success",message:`Proxy test OK (${s.status}) in ${s.elapsedMs}ms`}):_({type:"error",message:s?.error||"Proxy test failed"})}catch(e){_({type:"error",message:"An error occurred"})}finally{z(!1)}},G=async e=>{Z(!0),_({type:"",message:""});try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyEnabled:e})}),s=await t.json();t.ok?(c(e=>({...e,...s})),J(e=>({...e,outboundProxyEnabled:s?.outboundProxyEnabled===!0})),_({type:"success",message:e?"Proxy enabled":"Proxy disabled"})):_({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){_({type:"error",message:"An error occurred"})}finally{Z(!1)}},V=async e=>{if(e.preventDefault(),p.new!==p.confirm)return void b({type:"error",message:"Passwords do not match"});y(!0),b({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:p.current,newPassword:p.new})}),t=await e.json();e.ok?(b({type:"success",message:"Password updated successfully"}),u({current:"",new:"",confirm:""})):b({type:"error",message:t.error||"Failed to update password"})}catch(e){b({type:"error",message:"An error occurred"})}finally{y(!1)}},Y=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fallbackStrategy:e})})).ok&&c(t=>({...t,fallbackStrategy:e}))}catch(e){console.error("Failed to update settings:",e)}},X=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategy:e})})).ok&&c(t=>({...t,comboStrategy:e}))}catch(e){console.error("Failed to update combo strategy:",e)}},ee=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stickyRoundRobinLimit:t})})).ok&&c(e=>({...e,stickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update sticky limit:",e)}},et=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStickyRoundRobinLimit:t})})).ok&&c(e=>({...e,comboStickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update combo sticky limit:",e)}},es=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireLogin:e})})).ok&&c(t=>({...t,requireLogin:e}))}catch(e){console.error("Failed to update require login:",e)}},ea=(e,t)=>{C(s=>({...s,[e]:t}))},er=async(e=v.authMode||"password")=>{let t=v.oidcIssuerUrl.trim(),s=v.oidcClientId.trim(),a=v.oidcScopes.trim(),r=v.oidcLoginLabel.trim(),o=k.trim();if("password"!==e&&(!t||!s||!o)&&!d.oidcConfigured)return void O({type:"error",message:"Issuer URL, client ID, and client secret are required to enable OIDC."});L(!0),O({type:"",message:""}),T({type:"",message:""});try{let i={authMode:e,oidcIssuerUrl:t,oidcClientId:s,oidcScopes:a||"openid profile email",oidcLoginLabel:r||"Sign in with OIDC"};o&&(i.oidcClientSecret=o);let l=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),n=await l.json();l.ok?(c(e=>({...e,...n})),C({authMode:n?.authMode||e,oidcIssuerUrl:n?.oidcIssuerUrl||t,oidcClientId:n?.oidcClientId||s,oidcScopes:n?.oidcScopes||a||"openid profile email",oidcLoginLabel:n?.oidcLoginLabel||r||"Sign in with OIDC"}),S(""),O({type:"success",message:"oidc"===e?"OIDC login enabled":"both"===e?"Password and OIDC login enabled":"OIDC settings saved"})):O({type:"error",message:n.error||"Failed to save OIDC settings"})}catch(e){O({type:"error",message:"An error occurred"})}finally{L(!1)}},eo=async()=>{let e=v.oidcIssuerUrl.trim(),t=v.oidcClientId.trim(),s=v.oidcScopes.trim(),a=k.trim();if(!e||!t)return void T({type:"error",message:"Issuer URL and client ID are required to test the connection."});D(!0),O({type:"",message:""}),T({type:"",message:""});try{let r=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({authMode:v.authMode||d.authMode||"password",oidcIssuerUrl:e,oidcClientId:t,oidcScopes:s||"openid profile email",oidcLoginLabel:v.oidcLoginLabel.trim()||"Sign in with OIDC",...a?{oidcClientSecret:a}:{}})}),o=await r.json().catch(()=>({}));if(!r.ok)return void T({type:"error",message:o.error||"Failed to save OIDC settings before testing"});let i=await fetch("/api/auth/oidc/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({issuerUrl:o.oidcIssuerUrl||e,clientId:o.oidcClientId||t,scopes:o.oidcScopes||s||"openid profile email"})}),l=await i.json().catch(()=>({}));if(i.ok&&l?.ok){let e=l.clientSecretTested?!0===l.clientSecretValid?`Connection OK. Discovery loaded from ${l.issuerUrl}. Client secret validated too.`:`Connection OK. Discovery loaded from ${l.issuerUrl}. Client secret was not checked.`:`Connection OK. Discovery loaded from ${l.issuerUrl}.`;T({type:"success",message:e})}else T({type:"error",message:l.error||"OIDC connection test failed"})}catch(e){T({type:"error",message:"An error occurred"})}finally{D(!1)}},ei=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enableObservability:e})})).ok&&c(t=>({...t,enableObservability:e}))}catch(e){console.error("Failed to update enableObservability:",e)}},el=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)return;let t=await e.json();c(t)}catch(e){console.error("Failed to reload settings:",e)}},en=async()=>{j(!0),w({type:"",message:""});try{let e=await fetch("/api/settings/database");if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(t.error||"Failed to export database")}let t=await e.json(),s=JSON.stringify(t,null,2),a=new Blob([s],{type:"application/json"}),r=URL.createObjectURL(a),o=document.createElement("a"),i=new Date().toISOString().replace(/[.:]/g,"-");o.href=r,o.download=`ktrouter-backup-${i}.json`,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(r),w({type:"success",message:"Database backup downloaded"})}catch(e){w({type:"error",message:e.message||"Failed to export database"})}finally{j(!1)}},ed=async e=>{let t=e.target.files?.[0];if(t){j(!0),w({type:"",message:""});try{let e=await t.text(),s=JSON.parse(e),a=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),r=await a.json().catch(()=>({}));if(!a.ok)throw Error(r.error||"Failed to import database");await el(),w({type:"success",message:"Database imported successfully"})}catch(e){w({type:"error",message:e.message||"Invalid backup file"})}finally{F.current&&(F.current.value=""),j(!1)}}},ec=!0===d.enableObservability;return(0,a.jsx)("div",{className:"max-w-2xl mx-auto px-4 sm:px-0",children:(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"size-10 sm:size-12 rounded-lg bg-green-500/10 text-green-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl sm:text-2xl",children:"computer"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold",children:"Local Mode"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Running on your machine"})]})]}),(0,a.jsx)("div",{className:"inline-flex p-1 rounded-lg bg-black/5 dark:bg-white/5 w-full sm:w-auto",children:["light","dark","system"].map(s=>(0,a.jsxs)("button",{type:"button",onClick:()=>t(s),className:(0,l.cn)("flex items-center justify-center gap-1 sm:gap-1.5 px-2 sm:px-3 py-1.5 rounded-md font-medium transition-all flex-1 sm:flex-initial",e===s?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"light"===s?"light_mode":"dark"===s?"dark_mode":"contrast"}),(0,a.jsx)("span",{className:"capitalize text-xs sm:text-sm",children:s})]},s))})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 rounded-lg bg-bg border border-border gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Database Location"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted font-mono break-all",children:"~/.ktrouter/db/data.sqlite"})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(o.$n,{variant:"secondary",icon:"download",onClick:en,loading:f,className:"w-full sm:w-auto",children:"Download Backup"}),(0,a.jsx)(o.$n,{variant:"outline",icon:"upload",onClick:()=>F.current?.click(),disabled:f,className:"w-full sm:w-auto",children:"Import Backup"}),(0,a.jsx)("input",{ref:F,type:"file",accept:"application/json,.json",className:"hidden",onChange:ed})]}),N.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===N.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:N.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"shield"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Security"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Require login"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"When ON, dashboard requires password. When OFF, access without login."})]}),(0,a.jsx)(o.lM,{checked:!0===d.requireLogin,onChange:()=>es(!d.requireLogin),disabled:m})]}),!0===d.requireLogin&&(0,a.jsxs)("form",{onSubmit:V,className:"flex flex-col gap-4 pt-4 border-t border-border/50",children:[d.hasPassword&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Current Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Enter current password",value:p.current,onChange:e=>u({...p,current:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"New Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Enter new password",value:p.new,onChange:e=>u({...p,new:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Confirm New Password"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Confirm new password",value:p.confirm,onChange:e=>u({...p,confirm:e.target.value}),required:!0})]})]}),h.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===h.type?"text-red-500":"text-green-500"}`,children:h.message}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(o.$n,{type:"submit",variant:"primary",loading:g,className:"w-full sm:w-auto",children:d.hasPassword?"Update Password":"Set Password"})})]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>$(e=>!e),className:"w-full flex items-center gap-3 text-left",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-indigo-500/10 text-indigo-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"OIDC Dashboard Login"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"oidc"===d.authMode?"OIDC active":"both"===d.authMode?"Password + OIDC active":"Optional SSO via Authentik/Keycloak/Google"})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted shrink-0",children:E?"expand_less":"expand_more"})]}),E&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 mt-4",children:[(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Use Authentik or any OIDC provider to sign in to the dashboard. You can enable password-only, OIDC-only, or both for the dashboard; model API access still uses API keys."}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Auth Mode"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{value:"password",title:"Password only",desc:"Keep the legacy password login."},{value:"oidc",title:"OIDC only",desc:"Require OIDC for dashboard access."},{value:"both",title:"Both",desc:"Allow either password or OIDC."}].map(e=>{let t=v.authMode===e.value;return(0,a.jsxs)("button",{type:"button",onClick:()=>ea("authMode",e.value),className:(0,l.cn)("text-left rounded-lg border p-3 transition-colors",t?"border-primary bg-primary/5":"border-border bg-bg hover:bg-black/5 dark:hover:bg-white/5"),disabled:m||I,children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:e.title}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted mt-1",children:e.desc})]},e.value)})})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Issuer URL"}),(0,a.jsx)(o.pd,{placeholder:"https://auth.example.com/application/o/ktrouter/",value:v.oidcIssuerUrl,onChange:e=>ea("oidcIssuerUrl",e.target.value),disabled:m||I})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client ID"}),(0,a.jsx)(o.pd,{placeholder:"ktrouter-dashboard",value:v.oidcClientId,onChange:e=>ea("oidcClientId",e.target.value),disabled:m||I})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client Secret"}),(0,a.jsx)(o.pd,{type:"password",placeholder:"Leave blank to keep existing secret",value:k,onChange:e=>S(e.target.value),disabled:m||I}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"This value is write-only after saving."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Scopes"}),(0,a.jsx)(o.pd,{placeholder:"openid profile email",value:v.oidcScopes,onChange:e=>ea("oidcScopes",e.target.value),disabled:m||I})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(o.pd,{placeholder:"Sign in with OIDC",value:v.oidcLoginLabel,onChange:e=>ea("oidcLoginLabel",e.target.value),disabled:m||I})]})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg p-3 text-xs sm:text-sm text-text-muted",children:[(0,a.jsx)("p",{className:"font-medium text-text-main mb-1",children:"Redirect URI"}),(0,a.jsx)("code",{className:"block break-all font-mono",children:A})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(o.$n,{type:"button",variant:"primary",loading:I,onClick:()=>er(),className:"w-full sm:w-auto",children:"Save auth mode"}),(0,a.jsx)(o.$n,{type:"button",variant:"outline",loading:R,onClick:eo,className:"w-full sm:w-auto",children:"Test connection"})]}),U.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===U.type?"text-red-500":"text-green-500"}`,children:U.message}),P.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===P.type?"text-red-500":"text-green-500"}`,children:P.message}),"oidc"===d.authMode&&(0,a.jsx)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:"OIDC login is currently active. Password login is disabled until you switch back."}),"both"===d.authMode&&(0,a.jsx)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:"Password and OIDC login are both active."})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-blue-500/10 text-blue-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"route"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Routing Strategy"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through accounts to distribute load"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===d.fallbackStrategy,onChange:()=>Y("round-robin"===d.fallbackStrategy?"fill-first":"round-robin"),disabled:m})]}),"round-robin"===d.fallbackStrategy&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Sticky Limit"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Calls per account before switching"})]}),(0,a.jsx)(o.pd,{type:"number",min:"1",max:"10",value:d.stickyRoundRobinLimit||3,onChange:e=>ee(e.target.value),disabled:m,className:"w-16 sm:w-20 text-center shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Combo Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through providers in combos instead of always starting with first"})]}),(0,a.jsx)(o.lM,{checked:"round-robin"===d.comboStrategy,onChange:()=>X("round-robin"===d.comboStrategy?"fallback":"round-robin"),disabled:m})]}),"round-robin"===d.comboStrategy&&(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Combo Sticky Limit"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Calls per combo model before switching"})]}),(0,a.jsx)(o.pd,{type:"number",min:"1",max:"100",value:d.comboStickyRoundRobinLimit||1,onChange:e=>et(e.target.value),disabled:m,className:"w-20 text-center"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted italic pt-2 border-t border-border/50",children:["round-robin"===d.fallbackStrategy?`Currently distributing requests across all available accounts with ${d.stickyRoundRobinLimit||3} calls per account.`:"Currently using accounts in priority order (Fill First).","round-robin"===d.comboStrategy?` Combos rotate after ${d.comboStickyRoundRobinLimit||1} call${1===(d.comboStickyRoundRobinLimit||1)?"":"s"} per model.`:" Combos always start with their first model."]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-purple-500/10 text-purple-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"wifi"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Network"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Outbound Proxy"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Enable proxy for OAuth + provider outbound requests."})]}),(0,a.jsx)(o.lM,{checked:!0===d.outboundProxyEnabled,onChange:()=>G(!0!==d.outboundProxyEnabled),disabled:m||K})]}),!0===d.outboundProxyEnabled&&(0,a.jsxs)("form",{onSubmit:Q,className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy URL"}),(0,a.jsx)(o.pd,{placeholder:"http://127.0.0.1:7897",value:q.outboundProxyUrl,onChange:e=>J(t=>({...t,outboundProxyUrl:e.target.value})),disabled:m||K}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Leave empty to inherit existing env proxy (if any)."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"No Proxy"}),(0,a.jsx)(o.pd,{placeholder:"localhost,127.0.0.1",value:q.outboundNoProxy,onChange:e=>J(t=>({...t,outboundNoProxy:e.target.value})),disabled:m||K}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Comma-separated hostnames/domains to bypass the proxy."})]}),(0,a.jsxs)("div",{className:"pt-2 border-t border-border/50 flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,a.jsx)(o.$n,{type:"button",variant:"secondary",loading:B,disabled:m||K,onClick:W,className:"w-full sm:w-auto",children:"Test proxy URL"}),(0,a.jsx)(o.$n,{type:"submit",variant:"primary",loading:K,className:"w-full sm:w-auto",children:"Apply"})]})]}),H.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===H.type?"text-red-500":"text-green-500"} pt-2 border-t border-border/50`,children:H.message})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"p-2 rounded-lg bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"monitoring"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Observability"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Enable Observability"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Record request details for inspection in the logs view"})]}),(0,a.jsx)(o.lM,{checked:ec,onChange:ei,disabled:m})]})]}),(0,a.jsxs)("div",{className:"text-center text-xs sm:text-sm text-text-muted py-4",children:[(0,a.jsxs)("p",{children:[n.vQ.name," v",n.vQ.version]}),(0,a.jsx)("p",{className:"mt-1",children:"Local Mode - All data stored on your machine"})]})]})})}},87807:(e,t,s)=>{Promise.resolve().then(s.bind(s,64561))}},e=>{e.O(0,[2574,3862,2194,698,1321,5497,8441,3794,7358],()=>e(e.s=87807)),_N_E=e.O()}]);
@@ -1,3 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{17721:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>S});var a=s(95155),i=s(12115),l=s(73321),r=s(98500),n=s.n(r),o=s(5772),d=s(35497),c=s(52679),p=s(28777),m=s(11059);let x=new Map;async function u(e){if(!e?.url||!e?.type)return[];let t=x.get(e.url);if(t&&Date.now()<t.expiresAt)return t.data;try{let t=new URLSearchParams({url:e.url,type:e.type}),s=await fetch(`/api/providers/suggested-models?${t}`);if(!s.ok)return[];let a=(await s.json()).data??[];return x.set(e.url,{data:a,expiresAt:Date.now()+6e5}),a}catch{return[]}}var h=s(14051),f=s.n(h);function g({model:e,fullModel:t,alias:s,copied:i,onCopy:l,testStatus:r,isCustom:n,isFree:o,onDeleteAlias:d,onTest:c,isTesting:p,onDisable:m}){let x="ok"===r?"#22c55e":"error"===r?"#ef4444":void 0;return(0,a.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===r?"border-green-500/40":"error"===r?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:x?{color:x}:void 0,children:"ok"===r?"check_circle":"error"===r?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,a.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children:t}),e.name&&(0,a.jsx)("span",{className:"truncate pl-1 text-[9px] italic text-text-muted/70",children:e.name})]}),c&&(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:c,disabled:p,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${p?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:p?{animation:"spin 1s linear infinite"}:void 0,children:p?"progress_activity":"science"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:p?"Testing...":"Test"})]}),(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:()=>l(t,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:i===`model-${e.id}`?"check":"content_copy"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i===`model-${e.id}`?"Copied!":"Copy"})]}),n?(0,a.jsx)("button",{onClick:d,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):m?(0,a.jsx)("button",{onClick:m,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Disable this model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):null]})})}function y({modelId:e,fullModel:t,copied:s,onCopy:i,onDeleteAlias:l,onTest:r,testStatus:n,isTesting:o}){let d="ok"===n?"#22c55e":"error"===n?"#ef4444":void 0;return(0,a.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===n?"border-green-500/40":"error"===n?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:d?{color:d}:void 0,children:"ok"===n?"check_circle":"error"===n?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,a.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:()=>i(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:s===`model-${e}`?"check":"content_copy"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:s===`model-${e}`?"Copied!":"Copy"})]}),r&&(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:r,disabled:o,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:o?{animation:"spin 1s linear infinite"}:void 0,children:o?"progress_activity":"science"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:o?"Testing...":"Test"})]})]})]}),(0,a.jsx)("button",{onClick:l,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function b({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:s,copied:l,onCopy:r,onSetAlias:n,onDeleteAlias:o,connections:c,isAnthropic:p}){let[m,x]=(0,i.useState)(""),[u,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),[v,j]=(0,i.useState)(null),[N,w]=(0,i.useState)({}),k=async t=>{if(!v){j(t);try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),a=await s.json();w(e=>({...e,[t]:a.ok?"ok":"error"}))}catch{w(e=>({...e,[t]:"error"}))}finally{j(null)}}},C=Object.entries(s).filter(([,t])=>t.startsWith(`${e}/`)).map(([t,s])=>({modelId:s.replace(`${e}/`,""),fullModel:s,alias:t})),S=a=>{let i,l=`${e}/${a}`;if(Object.values(s).includes(l))return null;let r=(i=a.split("/"))[i.length-1];if(!s[r])return r;let n=`${t}-${r}`;return s[n]?null:n},A=async()=>{if(!m.trim()||u)return;let t=m.trim(),s=S(t);if(!s)return void alert("All suggested aliases already exist. Please choose a different model or remove conflicting aliases.");h(!0);try{await n(t,s,e),x("")}catch(e){console.log("Error adding model:",e)}finally{h(!1)}},$=async()=>{if(f)return;let t=c.find(e=>!1!==e.isActive);if(t){g(!0);try{let s=await fetch(`/api/providers/${t.id}/models`),a=await s.json();if(!s.ok)return void alert(a.error||"Failed to import models");let i=a.models||[];if(0===i.length)return void alert("No models returned from /models.");let l=0;for(let t of i){let s=t.id||t.name||t.model;if(!s)continue;let a=S(s);a&&(await n(s,a,e),l+=1)}0===l&&alert("No new models were added.")}catch(e){console.log("Error importing models:",e)}finally{g(!1)}}},T=c.some(e=>!1!==e.isActive);return(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",p?"Anthropic":"OpenAI","-compatible models manually or import them from the /models endpoint."]}),(0,a.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-[240px]",children:[(0,a.jsx)("label",{htmlFor:"new-compatible-model-input",className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,a.jsx)("input",{id:"new-compatible-model-input",type:"text",value:m,onChange:e=>x(e.target.value),onKeyDown:e=>"Enter"===e.key&&A(),placeholder:p?"claude-3-opus-20240229":"gpt-4o",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})]}),(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:A,disabled:!m.trim()||u,children:u?"Adding...":"Add"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"download",onClick:$,disabled:!T||f,children:f?"Importing...":"Import from /models"})]}),!T&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),C.length>0&&(0,a.jsx)("div",{className:"flex flex-col gap-3",children:C.map(({modelId:e,fullModel:s,alias:i})=>(0,a.jsx)(y,{modelId:e,fullModel:`${t}/${e}`,copied:l,onCopy:r,onDeleteAlias:()=>o(i),onTest:c.length>0?()=>k(e):void 0,testStatus:N[e],isTesting:v===e},s))})]})}function v({until:e}){let[t,s]=(0,i.useState)("");return((0,i.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void s("");let a=Math.floor(t/1e3);if(a<60)s(`${a}s`);else if(a<3600)s(`${Math.floor(a/60)}m ${a%60}s`);else{let e=Math.floor(a/3600),t=Math.floor(a%3600/60);s(`${e}h ${t}m`)}};t();let a=setInterval(t,1e3);return()=>clearInterval(a)},[e]),t)?(0,a.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}function j({connection:e,proxyPools:t,isOAuth:s,isFirst:l,isLast:r,onMoveUp:n,onMoveDown:o,onToggleActive:c,onUpdateProxy:p,onEdit:m,onDelete:x,oneByOneStatus:u=null}){let[h,f]=(0,i.useState)(!1),[g,y]=(0,i.useState)(!1),b=(0,i.useRef)(null),N=new Map((t||[]).map(e=>[e.id,e])),w=e.providerSpecificData?.proxyPoolId||null,k=w?N.get(w):null,C=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,S=!!w||C,A=k?`Pool: ${k.name}`:w?`Pool: ${w} (inactive/missing)`:C?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",$="";if(k?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=k?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);$=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{$=t}}let T=k?.noProxy||e.providerSpecificData?.connectionNoProxy||"",O="default";k?.isActive===!0?O="success":(w||C)&&(O="error"),(0,i.useEffect)(()=>{if(!h)return;let e=e=>{b.current&&!b.current.contains(e.target)&&f(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[h]);let P=async e=>{y(!0);try{await p("__none__"===e?null:e)}finally{y(!1),f(!1)}},I=e.authType||(s?"oauth":"apikey"),E="oauth"===I,R="cookie"===I,D=e=>"string"==typeof e&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),U=E?D(e.email)?e.email:D(e.name)?e.name:e.name||e.email||e.displayName||"OAuth Account":e.name||e.email||e.displayName||"API Key",[_,z]=(0,i.useState)(!1),q=Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>!!e).sort()[0]||null;(0,i.useEffect)(()=>{let t=()=>{z(!!Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>e).filter(e=>e&&new Date(e).getTime()>Date.now()).sort()[0])};t();let s=q?setInterval(t,1e3):null;return()=>{s&&clearInterval(s)}},[q]);let M="unavailable"!==e.testStatus||_?e.testStatus:"active",K=()=>u?"queued"===u.state?"queued":"testing"===u.state?"testing":"success"===u.state?"success":"failed"===u.state?"failed":null:null;return(0,a.jsxs)("div",{className:`group flex min-w-0 flex-col gap-3 rounded-lg p-2 transition-colors hover:bg-black/[0.02] dark:hover:bg-white/[0.02] sm:flex-row sm:items-center sm:justify-between ${!1===e.isActive?"opacity-60":""}`,children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,a.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,a.jsx)("button",{onClick:n,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,a.jsx)("button",{onClick:o,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:R?"cookie":E?"lock":"key"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:U}),(0,a.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,a.jsx)(d.Ex,{variant:!1===e.isActive?"default":"active"===M||"success"===M?"success":"error"===M||"expired"===M||"unavailable"===M?"error":"default",size:"sm",dot:!0,children:!1===e.isActive?"disabled":M||"Unknown"}),(0,a.jsx)(d.Ex,{variant:"default",size:"sm",children:E?"OAuth":R?"Cookie":"API Key"}),S&&(0,a.jsx)(d.Ex,{variant:O,size:"sm",children:"Proxy"}),_&&!1!==e.isActive&&(0,a.jsx)(v,{until:q}),e.lastError&&!1!==e.isActive&&(0,a.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:e.lastError,children:e.lastError}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),e.globalPriority&&(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]}),K()&&(0,a.jsx)(d.Ex,{variant:u?"success"===u.state?"success":"failed"===u.state?"error":"testing"===u.state?"primary":"default":"default",size:"sm",title:u?.error||void 0,children:K()})]}),S&&(0,a.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:A,children:A}),$&&(0,a.jsx)("code",{className:"max-w-full truncate rounded bg-black/5 px-1 py-0.5 font-mono text-[10px] text-text-muted dark:bg-white/5 sm:max-w-[260px]",children:$}),T&&(0,a.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:T,children:["no_proxy: ",T]})]})]})]}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,a.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(t||[]).length>0&&(0,a.jsxs)("div",{className:"relative",ref:b,children:[(0,a.jsxs)("button",{onClick:()=>f(e=>!e),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${S?"text-primary":"text-text-muted hover:text-primary"}`,disabled:g,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:g?"progress_activity":"lan"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),h&&(0,a.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,a.jsx)("button",{onClick:()=>P("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!w?"text-primary font-medium":"text-text-main"}`,children:"None"}),(t||[]).map(e=>(0,a.jsx)("button",{onClick:()=>P(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${w===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),(0,a.jsxs)("button",{onClick:()=>window.open(`/api/providers/export?connectionId=${e.id}`,"_blank"),className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",title:"Export this connection as JSON",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"download"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Export"})]}),(0,a.jsxs)("button",{onClick:m,className:"flex flex-col items-center rounded px-2 py-1 text-text-muted hover:bg-black/5 hover:text-primary dark:hover:bg-white/5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,a.jsxs)("button",{onClick:x,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,a.jsx)(d.lM,{size:"sm",checked:e.isActive??!0,onChange:c,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}g.propTypes={model:f().shape({id:f().string.isRequired}).isRequired,fullModel:f().string.isRequired,alias:f().string,copied:f().string,onCopy:f().func.isRequired,testStatus:f().oneOf(["ok","error"]),isCustom:f().bool,isFree:f().bool,onDeleteAlias:f().func,onTest:f().func,isTesting:f().bool,onDisable:f().func},f().string.isRequired,f().string.isRequired,f().string,f().func.isRequired,f().func.isRequired,f().func,f().oneOf(["ok","error"]),f().bool,f().string.isRequired,f().object.isRequired,f().string,f().func.isRequired,f().func.isRequired,f().func.isRequired,b.propTypes={providerStorageAlias:f().string.isRequired,providerDisplayAlias:f().string.isRequired,modelAliases:f().object.isRequired,copied:f().string,onCopy:f().func.isRequired,onSetAlias:f().func.isRequired,onDeleteAlias:f().func.isRequired,connections:f().arrayOf(f().shape({id:f().string,isActive:f().bool})).isRequired,isAnthropic:f().bool},v.propTypes={until:f().string.isRequired},j.propTypes={connection:f().shape({id:f().string,name:f().string,email:f().string,displayName:f().string,authType:f().string,modelLockUntil:f().string,testStatus:f().string,isActive:f().bool,lastError:f().string,priority:f().number,globalPriority:f().number}).isRequired,proxyPools:f().arrayOf(f().shape({id:f().string,name:f().string,proxyUrl:f().string,noProxy:f().string,isActive:f().bool})),isOAuth:f().bool.isRequired,isFirst:f().bool.isRequired,isLast:f().bool.isRequired,onMoveUp:f().func.isRequired,onMoveDown:f().func.isRequired,onToggleActive:f().func.isRequired,onUpdateProxy:f().func,onEdit:f().func.isRequired,onDelete:f().func.isRequired,oneByOneStatus:f().shape({state:f().string,error:f().string})};let N=`name1|sk-key1
2
- name2|sk-key2
3
- sk-key-only-auto-named`;function w({isOpen:e,provider:t,providerName:s,isCompatible:l,isAnthropic:r,authType:n,authHint:o,website:p,proxyPools:m,error:x,onSave:u,onBulkDone:h,onClose:f}){let g="__none__",y="ollama-local"===t,b="cookie"===n,v="xai"===t&&!b,j=b?"Cookie Value":"API Key",k="azure"===t,C="cloudflare-ai"===t,S=c.Q2?.[t]?.regions||null,A=c.Q2?.[t]?.defaultRegion||S?.[0]?.id||"",[$,T]=(0,i.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:g,ollamaHostUrl:""}),[O,P]=(0,i.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[I,E]=(0,i.useState)({accountId:""}),[R,D]=(0,i.useState)(A),[U,_]=(0,i.useState)(!1),[z,q]=(0,i.useState)(null),[M,K]=(0,i.useState)(!1),[F,L]=(0,i.useState)("single"),[J,W]=(0,i.useState)(""),[B,H]=(0,i.useState)(null),V=()=>y&&$.ollamaHostUrl.trim()?{baseUrl:$.ollamaHostUrl.trim()}:k?{azureEndpoint:O.azureEndpoint,apiVersion:O.apiVersion,deployment:O.deployment,organization:O.organization}:C?{accountId:I.accountId}:S&&R?{region:R}:void 0,G=async()=>{_(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:$.apiKey,providerSpecificData:V()})}),s=await e.json();q(s.valid?"success":"failed")}catch{q("failed")}finally{_(!1)}},Q=async()=>{if(t&&(y||$.apiKey)&&(y||$.name)&&(!l||$.defaultModel.trim())){K(!0);try{let e=!1;try{_(!0),q(null);let s=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:$.apiKey,providerSpecificData:V()})});e=!!(await s.json()).valid,q(e?"success":"failed")}catch{q("failed")}finally{_(!1)}await u({name:$.name||(y?"Ollama Local":""),apiKey:$.apiKey,defaultModel:l?$.defaultModel.trim():void 0,priority:$.priority,proxyPoolId:$.proxyPoolId===g?null:$.proxyPoolId,testStatus:e?"active":"unknown",providerSpecificData:V()})}finally{K(!1)}}},Z=async()=>{let e=J.split("\n").map(e=>e.trim()).filter(Boolean);if(!e.length)return;K(!0),H(null);let s=0,a=0;for(let i=0;i<e.length;i++){let l=e[i].split("|"),r=l.length>=2?l.slice(1).join("|").trim():l[0].trim(),n=l.length>=2?l[0].trim():"Key",o=`${n} ${i+1}`;try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:r,name:o,priority:1,testStatus:"unknown"})})).ok?s++:a++}catch{a++}}K(!1),H({success:s,failed:a}),s>0&&h&&h()};return t?(0,a.jsx)(d.aF,{isOpen:e,title:`Add ${s||t} ${j}`,onClose:f,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"single"===F?"primary":"ghost",onClick:()=>{L("single"),H(null)},children:"Single"}),(0,a.jsx)(d.$n,{size:"sm",variant:"bulk"===F?"primary":"ghost",onClick:()=>{L("bulk"),H(null)},children:"Bulk Add"})]}),"bulk"===F&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["One key per line. Format: ",(0,a.jsx)("code",{children:"name|apiKey"})," or just ",(0,a.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}),(0,a.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:N,value:J,onChange:e=>W(e.target.value)}),B&&(0,a.jsxs)("div",{className:`text-sm font-medium ${B.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",B.success," added",B.failed>0?`, ✗ ${B.failed} failed`:""]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:Z,fullWidth:!0,disabled:M||!J.trim(),children:M?"Adding...":"Add All Keys"}),(0,a.jsx)(d.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===F&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.pd,{label:"Name",value:$.name,onChange:e=>T({...$,name:e.target.value}),placeholder:y?"Ollama Local":"Production Key"}),y&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:"Ollama Host URL",value:$.ollamaHostUrl,onChange:e=>T({...$,ollamaHostUrl:e.target.value}),placeholder:"http://localhost:11434",className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:G,disabled:U||M,variant:"secondary",children:U?"Checking...":"Check"})})]}),!y&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:j,type:b?"text":"password",value:$.apiKey,onChange:e=>T({...$,apiKey:e.target.value}),placeholder:b?"grok-web"===t?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":v?"xai-...":"",className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:G,disabled:!$.apiKey||U||M,variant:"secondary",children:U?"Checking...":"Check"})})]}),v&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),b&&o&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:[o,p&&(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsxs)("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",p.replace(/^https?:\/\//,"")]})]})]}),S&&(0,a.jsx)(d.l6,{label:"Region",value:R,onChange:e=>D(e.target.value),options:S.map(e=>({value:e.id,label:e.label}))}),l&&(0,a.jsx)(d.pd,{label:"Default Model",value:$.defaultModel,onChange:e=>T({...$,defaultModel:e.target.value}),placeholder:r?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),y&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Leave blank to use ",(0,a.jsx)("code",{children:"http://localhost:11434"}),". For remote Ollama, enter the full host URL (e.g. ",(0,a.jsx)("code",{children:"http://192.168.1.10:11434"}),")."]}),z&&(0,a.jsx)(d.Ex,{variant:"success"===z?"success":"error",children:"success"===z?"Valid":"Invalid"}),x&&(0,a.jsx)("p",{className:"text-xs text-red-500 break-words",children:x}),l&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),C&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Cloudflare Workers AI"}),(0,a.jsx)(d.pd,{label:"Account ID",value:I.accountId,onChange:e=>E({...I,accountId:e.target.value}),placeholder:"abc123def456..."}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,a.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),k&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(d.pd,{label:"Azure Endpoint",value:O.azureEndpoint,onChange:e=>P({...O,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,a.jsx)(d.pd,{label:"Deployment Name",value:O.deployment,onChange:e=>P({...O,deployment:e.target.value}),placeholder:"gpt-4"}),(0,a.jsx)(d.pd,{label:"API Version",value:O.apiVersion,onChange:e=>P({...O,apiVersion:e.target.value}),placeholder:"2024-10-01-preview"}),(0,a.jsx)(d.pd,{label:"Organization",value:O.organization,onChange:e=>P({...O,organization:e.target.value}),placeholder:"Organization ID"})]})]}),(0,a.jsx)(d.pd,{label:"Priority",type:"number",value:$.priority,onChange:e=>T({...$,priority:Number.parseInt(e.target.value)||1})}),(0,a.jsx)(d.l6,{label:"Proxy Pool",value:$.proxyPoolId,onChange:e=>T({...$,proxyPoolId:e.target.value}),options:[{value:g,label:"None"},...(m||[]).map(e=>({value:e.id,label:e.name}))],placeholder:"None"}),0===(m||[]).length&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:Q,fullWidth:!0,disabled:M||!y&&(!$.name||!$.apiKey)||l&&!$.defaultModel.trim()||k&&(!O.azureEndpoint||!O.deployment||!O.organization)||C&&!I.accountId,children:M?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}function k({isOpen:e,node:t,onSave:s,onClose:l,isAnthropic:r}){let[n,o]=(0,i.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[c,p]=(0,i.useState)(!1),[m,x]=(0,i.useState)(""),[u,h]=(0,i.useState)(""),[f,g]=(0,i.useState)(!1),[y,b]=(0,i.useState)(null);(0,i.useEffect)(()=>{t&&o({name:t.name||"",prefix:t.prefix||"",apiType:t.apiType||"chat",baseUrl:t.baseUrl||(r?"https://api.anthropic.com/v1":"https://api.openai.com/v1")})},[t,r]);let v=async()=>{if(n.name.trim()&&n.prefix.trim()&&n.baseUrl.trim()){p(!0);try{let e={name:n.name,prefix:n.prefix,baseUrl:n.baseUrl};r||(e.apiType=n.apiType),await s(e)}finally{p(!1)}}},j=async()=>{g(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:n.baseUrl,apiKey:m,type:r?"anthropic-compatible":"openai-compatible",modelId:u.trim()||void 0})}),t=await e.json();b(t.valid?"success":"failed")}catch{b("failed")}finally{g(!1)}};return t?(0,a.jsx)(d.aF,{isOpen:e,title:`Edit ${r?"Anthropic":"OpenAI"} Compatible`,onClose:l,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(d.pd,{label:"Name",value:n.name,onChange:e=>o({...n,name:e.target.value}),placeholder:`${r?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,a.jsx)(d.pd,{label:"Prefix",value:n.prefix,onChange:e=>o({...n,prefix:e.target.value}),placeholder:r?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!r&&(0,a.jsx)(d.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:n.apiType,onChange:e=>o({...n,apiType:e.target.value})}),(0,a.jsx)(d.pd,{label:"Base URL",value:n.baseUrl,onChange:e=>o({...n,baseUrl:e.target.value}),placeholder:r?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${r?"Anthropic":"OpenAI"}-compatible API.`}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:"API Key (for Check)",type:"password",value:m,onChange:e=>x(e.target.value),className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:j,disabled:!m||f||!n.baseUrl.trim(),variant:"secondary",children:f?"Checking...":"Check"})})]}),(0,a.jsx)(d.pd,{label:"Model ID (optional)",value:u,onChange:e=>h(e.target.value),placeholder:"e.g. my-model-id",hint:"If provider lacks /models endpoint, enter a model ID to validate via chat/completions instead."}),y&&(0,a.jsx)(d.Ex,{variant:"success"===y?"success":"error",children:"success"===y?"Valid":"Invalid"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:v,fullWidth:!0,disabled:!n.name.trim()||!n.prefix.trim()||!n.baseUrl.trim()||c,children:c?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function C({isOpen:e,providerAlias:t,providerDisplayAlias:s,onSave:l,onClose:r}){let[n,o]=(0,i.useState)(""),[c,p]=(0,i.useState)(null),[m,x]=(0,i.useState)(""),[u,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{e&&(o(""),p(null),x(""))},[e]);let f=e=>{let s=`${t}/`;return e.startsWith(s)?e.slice(s.length):e},g=async()=>{let e=f(n.trim());if(e){p("testing"),x("");try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${t}/${e}`})}),a=await s.json();p(a.ok?"ok":"error"),x(a.error||"")}catch(e){p("error"),x(e.message)}}},y=async()=>{let e=f(n.trim());if(e&&!u){h(!0);try{await l(e)}finally{h(!1)}}};return(0,a.jsx)(d.aF,{isOpen:e,onClose:r,title:"Add Custom Model",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("input",{type:"text",value:n,onChange:e=>{o(e.target.value),p(null),x("")},onKeyDown:e=>{"Enter"===e.key&&g()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",autoFocus:!0}),(0,a.jsx)(d.$n,{variant:"secondary",icon:"science",loading:"testing"===c,onClick:g,disabled:!n.trim()||"testing"===c,children:"testing"===c?"Testing...":"Test"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,a.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:f(n.trim())||"model-id"})]})]}),"ok"===c&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===c&&(0,a.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,a.jsx)("span",{children:m||"Model not reachable"})]}),(0,a.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,a.jsx)(d.$n,{onClick:r,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,a.jsx)(d.$n,{onClick:y,fullWidth:!0,size:"sm",disabled:!n.trim()||u,children:u?"Adding...":"Add Model"})]})]})})}function S(){let e,t=(0,l.useParams)(),s=(0,l.useRouter)(),r=t.id,[x,h]=(0,i.useState)([]),[f,y]=(0,i.useState)(!0),[v,N]=(0,i.useState)(null),[S,A]=(0,i.useState)([]),[$,T]=(0,i.useState)(!1),[O,P]=(0,i.useState)(!1),[I,E]=(0,i.useState)(!1),[R,D]=(0,i.useState)(""),[U,_]=(0,i.useState)(!1),[z,q]=(0,i.useState)(!1),[M,K]=(0,i.useState)(!1),[F,L]=(0,i.useState)(null),[J,W]=(0,i.useState)({}),[B,H]=(0,i.useState)(!1),[V,G]=(0,i.useState)({}),[Q,Z]=(0,i.useState)(""),[X,Y]=(0,i.useState)(null),[ee,et]=(0,i.useState)(!1),[es,ea]=(0,i.useState)([]),[ei,el]=(0,i.useState)("__none__"),[er,en]=(0,i.useState)(!1),[eo,ed]=(0,i.useState)(null),[ec,ep]=(0,i.useState)(""),[em,ex]=(0,i.useState)("auto"),[eu,eh]=(0,i.useState)([]),[ef,eg]=(0,i.useState)([]),[ey,eb]=(0,i.useState)([]),[ev,ej]=(0,i.useState)(null),[eN,ew]=(0,i.useState)(!1),ek=(0,i.useRef)(null),[eC,eS]=(0,i.useState)(!1),[eA,e$]=(0,i.useState)(!1),[eT,eO]=(0,i.useState)(null),[eP,eI]=(0,i.useState)({}),[eE,eR]=(0,i.useState)(null),eD=(0,i.useRef)(!1),{copied:eU,copy:e_}=(0,m.C)(),ez=async e=>{let t=e.target.files?.[0];if(t){ew(!0);try{let e=await t.text(),s=JSON.parse(e),a=await fetch("/api/providers/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),i=await a.json();if(a.ok){let e=await fetch("/api/providers");if(e.ok){let t=await e.json();h((t.connections||[]).filter(e=>e.provider===r))}D("")}else D(i.error||"Import failed")}catch(e){D(e.message||"Import failed")}finally{ew(!1),ek.current&&(ek.current.value="")}}},eq=v?{id:v.id,name:v.name||("anthropic-compatible"===v.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===v.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===v.type?"AC":"OC",apiType:v.apiType,baseUrl:v.baseUrl,type:v.type}:c.zN[r]||c.fg[r]||c.IS[r]||c.nJ[r]||c.br[r],eM=eq?.authModes||[],eK=!!c.zN[r]||!!c.IS[r]||eM.includes("oauth"),eF=!!c.fg[r]||eM.includes("apikey"),eL=!!c.IS[r]?.noAuth,eJ=(0,p.KC)(r),eW=(0,c.wG)(r),eB=(0,c.mq)(r),eH=(0,c.gb)(r),eV=eB||eH,eG=!eV&&eK&&eF,eQ="xai"===r?"Grok Build OAuth":"OAuth",eZ="xai"===r?"xAI API Key":"API Key";c.Q2[r]?.thinkingConfig||c.s9.extended;let eX=eV?r:eW,eY=eV?v?.prefix||r:eW,e0=()=>{T(!0)},e1=()=>{D(""),E(!0)},e2=(0,i.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(eX)}`,{cache:"no-store"}),t=await e.json();e.ok&&eb(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[eX]),e5=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:eX,ids:[e]})})).ok&&await e2()}catch(e){console.log("Error disabling model:",e)}},e3=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(eX)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await e2()}catch(e){console.log("Error enabling model:",e)}},e4=async e=>{e.length&&ej({title:"Disable All Models",message:`Disable all ${e.length} model(s)?`,onConfirm:async()=>{ej(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:eX,ids:e})})).ok&&await e2()}catch(e){console.log("Error disabling all models:",e)}}})},e6=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(eX)}`,{method:"DELETE"})).ok&&await e2()}catch(e){console.log("Error enabling all models:",e)}},e7=(0,i.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&W(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]);(0,i.useEffect)(()=>{"kilocode"===r&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&eg(e.models)}).catch(()=>{})},[r]);let e8=(0,i.useCallback)(async()=>{try{let[e,t,s,a]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/provider-nodes",{cache:"no-store"}),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),i=await e.json(),l=await t.json(),n=await s.json(),o=a.ok?await a.json():{};if(e.ok){let e=(i.connections||[]).filter(e=>e.provider===r);h(e)}s.ok&&A(n.proxyPools||[]);let d=(o.providerStrategies||{})[r]||{};ed(d.fallbackStrategy||null),ep(null!=d.stickyRoundRobinLimit?String(d.stickyRoundRobinLimit):"1");let c=(o.providerThinking||{})[r]||{};if(ex(c.mode||"auto"),t.ok){let e=(l.nodes||[]).find(e=>e.id===r)||null;if(!e&&eV)for(let t=0;t<3;t+=1){await new Promise(e=>setTimeout(e,150));let t=await fetch("/api/provider-nodes",{cache:"no-store"});if(t.ok&&(e=((await t.json()).nodes||[]).find(e=>e.id===r)||null))break}N(e)}}catch(e){console.log("Error fetching connections:",e)}finally{y(!1)}},[r,eV]),e9=async e=>{try{let t=await fetch(`/api/provider-nodes/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();t.ok&&(N(s.node),await e8(),q(!1))}catch(e){console.log("Error updating provider node:",e)}},te=async(e,t)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),a=(s.ok?await s.json():{}).providerStrategies||{},i={};e&&(i.fallbackStrategy=e),"round-robin"===e&&""!==t&&(i.stickyRoundRobinLimit=Number(t)||3);let l={...a};0===Object.keys(i).length?delete l[r]:l[r]=i,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:l})})}catch(e){console.log("Error saving provider strategy:",e)}};(0,i.useEffect)(()=>{e8(),e7(),e2()},[e8,e7,e2]),(0,i.useEffect)(()=>{let e=(c.zN[r]||c.fg[r]||c.IS[r]||c.nJ[r])?.modelsFetcher;e&&u(e).then(eh)},[r]);let tt=async(e,t,s=eW)=>{let a=`${s}/${e}`;try{let e=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:a,alias:t})});if(e.ok)await e7();else{let t=await e.json();alert(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},ts=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await e7()}catch(e){console.log("Error deleting alias:",e)}},ta=async()=>{if(eC||0===x.length)return;let e=Object.fromEntries(x.map(e=>[e.id,{state:"queued",error:null}]));eD.current=!1,eS(!0),e$(!1),eO(null),eI(e),eR({total:x.length,completed:0,passed:0,failed:0,stopped:!1});let t=0,s=0;try{for(let e=0;e<x.length;e+=1){if(eD.current){eR({total:x.length,completed:e,passed:t,failed:s,stopped:!0});break}let a=x[e];eO(a.id),eI(e=>({...e,[a.id]:{state:"testing",error:null}}));try{let e=await fetch(`/api/providers/${a.id}/test`,{method:"POST"}),i=await e.json(),l=e.ok&&!!i.valid,r=l?null:i.error||"Test failed";l?t+=1:s+=1,eI(e=>({...e,[a.id]:{state:l?"success":"failed",error:r}})),h(e=>e.map(e=>e.id===a.id?{...e,testStatus:l?"active":"error",lastError:r,lastErrorAt:l?null:new Date().toISOString()}:e))}catch(e){s+=1,eI(t=>({...t,[a.id]:{state:"failed",error:e.message||"Test failed"}})),h(t=>t.map(t=>t.id===a.id?{...t,testStatus:"error",lastError:e.message||"Test failed",lastErrorAt:new Date().toISOString()}:t))}eR({total:x.length,completed:e+1,passed:t,failed:s,stopped:!1}),e<x.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{eO(null),eS(!1),e$(!1),eD.current=!1,await e8()}},ti=async e=>{ej({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{ej(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&h(x.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},tl=()=>{e8(),T(!1)},tr=async e=>{D("");try{let t=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,...e})}),s=null;try{s=await t.json()}catch{s=null}if(t.ok){await e8(),E(!1);return}D(s?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),D("Failed to save connection")}},tn=async e=>{try{(await fetch(`/api/providers/${F.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await e8(),_(!1))}catch(e){console.log("Error updating connection:",e)}},to=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&h(s=>s.map(s=>s.id===e?{...s,isActive:t}:s))}catch(e){console.log("Error updating connection status:",e)}},td=async(e,t)=>{let s=[...x];[s[e],s[t]]=[s[t],s[e]],h(s);try{await Promise.all([fetch(`/api/providers/${s[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e})}),fetch(`/api/providers/${s[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t})})])}catch(e){console.log("Error swapping priority:",e),await e8()}},tc=x.filter(e=>es.includes(e.id));x.length>0&&(es.length,x.length),(0,i.useEffect)(()=>{ea(e=>e.filter(e=>x.some(t=>t.id===e)))},[x]),(()=>{if(0===tc.length)return;let e=new Set(tc.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return;let s=S.find(e=>e.id===t);return s?.name}})();let tp=()=>{er||K(!1)},tm=async e=>{en(!0);try{let t=0;for(let{connectionId:s,proxyPoolId:a}of e)try{(await fetch(`/api/providers/${s}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:a})})).ok||(t+=1)}catch(e){console.log("Error applying proxy for",s,e),t+=1}t>0&&alert(`Updated with ${t} failed request(s).`),await e8(),K(!1)}finally{en(!1)}},tx=e=>tm(x.map(t=>({connectionId:t.id,proxyPoolId:e}))),tu=(0,a.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:x.map((e,t)=>(0,a.jsx)("div",{className:"flex min-w-0 items-stretch",children:(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(j,{connection:e,proxyPools:S,isOAuth:eK,isFirst:0===t,isLast:t===x.length-1,onMoveUp:()=>td(t,t-1),onMoveDown:()=>td(t,t+1),onToggleActive:t=>to(e.id,t),onUpdateProxy:async t=>{try{(await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&h(s=>s.map(s=>s.id===e.id?{...s,providerSpecificData:{...s.providerSpecificData,proxyPoolId:t||null}}:s))}catch(e){console.log("Error updating proxy:",e)}},onEdit:()=>{L(e),_(!0)},onDelete:()=>ti(e.id),oneByOneStatus:eP[e.id]||null})})},e.id))}),th=S.filter(e=>!0===e.isActive),tf=(0,a.jsx)(d.aF,{isOpen:M,onClose:tp,title:`Apply Proxy (${x.length} connections)`,children:(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsxs)("button",{onClick:()=>{let e=S.filter(e=>!0===e.isActive);return 0===e.length?void alert("No active proxy pools available."):tm(x.map((t,s)=>({connectionId:t.id,proxyPoolId:e[s%e.length].id})))},disabled:er||0===th.length,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"sync_alt"}),(0,a.jsx)("span",{className:"text-sm text-text-main",children:"One-to-one (rotate)"})]}),(0,a.jsxs)("button",{onClick:()=>tx(null),disabled:er,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"link_off"}),(0,a.jsx)("span",{className:"text-sm text-text-main",children:"None (unbind all)"})]}),S.map(e=>(0,a.jsxs)("button",{onClick:()=>tx(e.id),disabled:er||!0!==e.isActive,className:"flex items-center gap-2 rounded-lg px-3 py-2 text-left transition-colors hover:bg-black/[0.04] dark:hover:bg-white/[0.04] disabled:cursor-not-allowed disabled:opacity-50",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[18px]",children:"lan"}),(0,a.jsx)("span",{className:"truncate text-sm text-text-main",children:e.name}),!0!==e.isActive&&(0,a.jsx)("span",{className:"text-[10px] text-text-muted",children:"(inactive)"})]},e.id))]}),er&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,a.jsx)(d.$n,{onClick:tp,variant:"ghost",fullWidth:!0,disabled:er,children:"Cancel"})]})}),tg=async e=>{if(!X){Y(e);try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${eX}/${e}`})}),s=await t.json();G(t=>({...t,[e]:s.ok?"ok":"error"})),Z(s.ok?"":s.error||"Model not reachable")}catch{G(t=>({...t,[e]:"error"})),Z("Network error")}finally{Y(null)}}};return f?(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(d.Qv,{}),(0,a.jsx)(d.Qv,{})]}):eq?(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)(n(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${eq.color}15`},children:B?(0,a.jsx)("span",{className:"text-sm font-bold",style:{color:eq.color},children:eq.textIcon||eq.id.slice(0,2).toUpperCase()}):(0,a.jsx)(o.default,{src:eB&&eq.apiType?"responses"===eq.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":eH?"/providers/anthropic-m.png":`/providers/${eq.id}.png`,alt:eq.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>H(!0)})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 flex-wrap",children:[(0,a.jsx)("h1",{className:"truncate text-2xl font-semibold tracking-tight sm:text-3xl",children:eq.name}),(eq.notice?.apiKeyUrl||eq.notice?.signupUrl||eq.website)&&(0,a.jsxs)("a",{href:eq.notice?.apiKeyUrl||eq.notice?.signupUrl||eq.website,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),eq.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,a.jsxs)("p",{className:"text-text-muted",children:[x.length," connection",1===x.length?"":"s"]})]})]})]}),eq.deprecated&&(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,a.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:eq.deprecationNotice})]}),eq.notice?.text&&!eq.deprecated&&(0,a.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-3 py-2 sm:flex-row sm:items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,a.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:eq.notice.text}),eq.notice.apiKeyUrl&&(0,a.jsx)("a",{href:eq.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex justify-center rounded bg-blue-500 px-2 py-1 text-xs font-medium text-white transition-colors hover:bg-blue-600 sm:py-0.5",children:"Get API Key →"})]}),eV&&v&&(0,a.jsx)(d.Zp,{children:(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:eH?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,a.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[eH?"Messages API":"responses"===v.apiType?"Responses API":"Chat Completions"," \xb7 ",(v.baseUrl||"").replace(/\/$/,""),"/",eH?"messages":"responses"===v.apiType?"responses":"chat/completions"]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:()=>{D(""),E(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>q(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{ej({title:"Delete Compatible Node",message:`Delete this ${eH?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{ej(null);try{(await fetch(`/api/provider-nodes/${r}`,{method:"DELETE"})).ok&&s.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),eL?(0,a.jsx)(d.gw,{providerId:r}):(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[x.length>0&&S.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>K(!0),children:"Apply Proxy"}),x.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:ta,disabled:eC,children:eC?"Testing...":"Test One-by-One"}),eC&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{eC&&(eD.current=!0,e$(!0))},disabled:eA,children:eA?"Stopping...":"Stop"})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,a.jsx)(d.lM,{checked:"round-robin"===eo,onChange:e=>{let t=e?"round-robin":null,s=e?ec||"1":ec;e&&!ec&&ep("1"),ed(t),te(t,s)}}),"round-robin"===eo&&(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,a.jsx)("input",{type:"number",min:1,value:ec,onChange:e=>{var t;ep(t=e.target.value),te("round-robin",t)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2 mb-3",children:[eG?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.$n,{size:"sm",icon:"lock",onClick:e0,children:eQ}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"key",onClick:e1,children:eZ})]}):(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:()=>{eK?e0():e1()},children:"Add"}),(0,a.jsx)("input",{ref:ek,type:"file",accept:"application/json",className:"hidden",onChange:ez}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"upload",onClick:()=>ek.current?.click(),disabled:eN,children:eN?"Importing...":"Import"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"download",onClick:()=>window.open(`/api/providers/export?provider=${r}`,"_blank"),disabled:0===x.length,children:"Export All"})]}),0===x.length?(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-full bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:eK?"lock":"key"})}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"})]})}):(0,a.jsxs)(a.Fragment,{children:[eE&&(0,a.jsx)("div",{className:"mb-4 rounded-lg border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsxs)("span",{children:["Total: ",eE.total]}),(0,a.jsxs)("span",{children:["Completed: ",eE.completed]}),(0,a.jsxs)("span",{children:["Passed: ",eE.passed]}),(0,a.jsxs)("span",{children:["Failed: ",eE.failed]}),eE.stopped&&(0,a.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),eC&&eT&&(0,a.jsxs)("span",{children:["Running: ",x.find(e=>e.id===eT)?.name||eT]})]})}),tu]})]}),(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Available Models"}),!eV&&(e=[...eJ,...ef.filter(e=>!eJ.some(t=>t.id===e.id))].filter(e=>!e.type||"llm"===e.type).map(e=>e.id).filter(e=>!ey.includes(e)),(0,a.jsxs)("div",{className:"flex gap-2",children:[ey.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:e6,children:"Active All"}),e.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>e4(e),children:"Disable All"})]}))]}),!!Q&&(0,a.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:Q}),(()=>{let e,t,s;if(eV)return(0,a.jsx)(b,{providerStorageAlias:eX,providerDisplayAlias:eY,modelAliases:J,copied:eU,onCopy:e_,onSetAlias:tt,onDeleteAlias:ts,connections:x,isAnthropic:eH});let i=[...eJ,...ef.filter(e=>!eJ.some(t=>t.id===e.id))].filter(e=>!e.type||"llm"===e.type),l=new Set(ey),n=i.filter(e=>!l.has(e.id)),o=i.filter(e=>l.has(e.id)),d=Object.entries(J).filter(([e,t])=>{let s=`${eX}/`;if(!t.startsWith(s))return!1;let a=t.slice(s.length);return eq.passthroughModels?!eJ.some(e=>e.id===a):!eJ.some(e=>e.id===a)&&e===a}).map(([e,t])=>({id:t.slice(`${eX}/`.length),alias:e,fullModel:t}));return(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[d.map(e=>(0,a.jsx)(g,{model:{id:e.id},fullModel:`${eY}/${e.id}`,alias:e.alias,copied:eU,onCopy:e_,onSetAlias:()=>{},onDeleteAlias:()=>ts(e.alias),testStatus:V[e.id],onTest:x.length>0||eL?()=>tg(e.id):void 0,isTesting:X===e.id,isCustom:!0,isFree:!1},e.id)),n.map(e=>{let t=`${eX}/${e.id}`,s=`${r}/${e.id}`,i=Object.entries(J).find(([,e])=>e===t||e===s)?.[0];return(0,a.jsx)(g,{model:e,fullModel:`${eY}/${e.id}`,alias:i,copied:eU,onCopy:e_,onSetAlias:t=>tt(e.id,t,eX),onDeleteAlias:()=>ts(i),testStatus:V[e.id],onTest:x.length>0||eL?()=>tg(e.id):void 0,isTesting:X===e.id,isFree:e.isFree,onDisable:()=>e5(e.id)},e.id)}),(0,a.jsxs)("button",{onClick:()=>et(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-primary/40 px-3 py-2 text-xs text-primary transition-colors hover:border-primary hover:bg-primary/5 sm:w-auto",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]}),eu.length>0&&(e=new Set(Object.values(J)),t=new Set(eJ.map(e=>e.id)),0===(s=eu.filter(s=>!e.has(`${eX}/${s.id}`)&&!t.has(s.id))).length?null:(0,a.jsxs)("div",{className:"w-full mt-2",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted mb-2",children:"Suggested free models (≥200k context):"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:s.map(e=>(0,a.jsxs)("button",{onClick:async()=>{let t=e.id.split("/").pop();await tt(e.id,t,eX)},className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:`${e.name} \xb7 ${(e.contextLength/1e3).toFixed(0)}k ctx`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id.split("/").pop()]},e.id))})]})),o.length>0&&(0,a.jsxs)("div",{className:"w-full mt-2",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted mb-2",children:["Disabled models (",o.length,"):"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:o.map(e=>(0,a.jsxs)("button",{onClick:()=>e3(e.id),className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg border border-dashed border-black/10 dark:border-white/10 text-xs text-text-muted hover:text-primary hover:border-primary/40 hover:bg-primary/5 transition-colors",title:"Restore model",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:"add"}),e.id]},e.id))})]})]})})()]}),tf,"kiro"===r?(0,a.jsx)(d.Mh,{isOpen:$,providerInfo:eq,onSuccess:tl,onClose:()=>T(!1)}):"codex"===r?(0,a.jsx)(d.K3,{isOpen:$,providerInfo:eq,onSuccess:tl,onClose:()=>T(!1)}):"cursor"===r?(0,a.jsx)(d.G9,{isOpen:$,onSuccess:tl,onClose:()=>T(!1)}):"gitlab"===r?(0,a.jsx)(d.vj,{isOpen:$,providerInfo:eq,onSuccess:tl,onClose:()=>T(!1)}):(0,a.jsx)(d.LF,{isOpen:$,provider:r,providerInfo:eq,onSuccess:tl,onClose:()=>T(!1)}),"iflow"===r&&(0,a.jsx)(d.vE,{isOpen:O,onSuccess:()=>{e8(),P(!1)},onClose:()=>P(!1)}),(0,a.jsx)(w,{isOpen:I,provider:r,providerName:eq.name,isCompatible:eV,isAnthropic:eH,authType:eq?.authType,authHint:eq?.authHint,website:eq?.website,proxyPools:S,error:R,onSave:tr,onBulkDone:e8,onClose:()=>{D(""),E(!1)}}),(0,a.jsx)(d.wI,{isOpen:U,connection:F,proxyPools:S,onSave:tn,onClose:()=>_(!1)}),eV&&(0,a.jsx)(k,{isOpen:z,node:v,onSave:e9,onClose:()=>q(!1),isAnthropic:eH}),!eV&&(0,a.jsx)(C,{isOpen:ee,providerAlias:eX,providerDisplayAlias:eY,onSave:async e=>{let t=eq?.passthroughModels?e.split("/").pop():e;await tt(e,t,eX),et(!1)},onClose:()=>et(!1)}),(0,a.jsx)(d.uo,{isOpen:!!ev,onClose:()=>ej(null),onConfirm:ev?.onConfirm,title:ev?.title||"Confirm",message:ev?.message,variant:"danger"})]}):(0,a.jsxs)("div",{className:"text-center py-20",children:[(0,a.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,a.jsx)(n(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]})}w.propTypes={isOpen:f().bool.isRequired,provider:f().string,providerName:f().string,isCompatible:f().bool,isAnthropic:f().bool,authType:f().string,authHint:f().string,website:f().string,proxyPools:f().arrayOf(f().shape({id:f().string,name:f().string})),error:f().string,onSave:f().func.isRequired,onBulkDone:f().func,onClose:f().func.isRequired},k.propTypes={isOpen:f().bool.isRequired,node:f().shape({id:f().string,name:f().string,prefix:f().string,apiType:f().string,baseUrl:f().string}),onSave:f().func.isRequired,onClose:f().func.isRequired,isAnthropic:f().bool},C.propTypes={isOpen:f().bool.isRequired,providerAlias:f().string.isRequired,providerDisplayAlias:f().string.isRequired,onSave:f().func.isRequired,onClose:f().func.isRequired}},43883:(e,t,s)=>{Promise.resolve().then(s.bind(s,17721))}},e=>{e.O(0,[2574,3862,2194,698,5772,1321,5497,8441,3794,7358],()=>e(e.s=43883)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9089],{14420:(e,r,t)=>{Promise.resolve().then(t.bind(t,15615))},15615:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>u});var a=t(95155),s=t(12115),i=t(73321),l=t(98500),d=t.n(l),o=t(35497),n=t(90620);let c=Object.values(n.Q2).map(e=>({value:e.id,label:e.name})),p=Object.values(n.MA).map(e=>({value:e.id,label:e.name}));function u(){let e=(0,i.useRouter)(),[r,t]=(0,s.useState)(!1),[l,u]=(0,s.useState)({provider:"",authMethod:"api_key",apiKey:"",displayName:"",isActive:!0}),[h,m]=(0,s.useState)({}),x=(e,r)=>{u(t=>({...t,[e]:r})),h[e]&&m(r=>({...r,[e]:null}))},b=async r=>{let a;if(r.preventDefault(),a={},l.provider||(a.provider="Please select a provider"),"api_key"!==l.authMethod||l.apiKey||(a.apiKey="API Key is required"),m(a),0===Object.keys(a).length){t(!0);try{let r=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(r.ok)e.push("/dashboard/providers");else{let e=await r.json();m({submit:e.error||"Failed to create provider"})}}catch(e){m({submit:"An error occurred. Please try again."})}finally{t(!1)}}},v=n.Q2[l.provider];return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,a.jsxs)("div",{className:"mb-8",children:[(0,a.jsxs)(d(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,a.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:"Add New Provider"}),(0,a.jsx)("p",{className:"text-text-muted mt-2",children:"Configure a new AI provider to use with your applications."})]}),(0,a.jsx)(o.Zp,{children:(0,a.jsxs)("form",{onSubmit:b,className:"flex flex-col gap-6",children:[(0,a.jsx)(o.l6,{label:"Provider",options:c,value:l.provider,onChange:e=>x("provider",e.target.value),placeholder:"Select a provider",error:h.provider,required:!0}),v&&(0,a.jsxs)(o.Zp.Section,{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-bg border border-border",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl",style:{color:v.color},children:v.icon})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:v.name}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Selected provider"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("label",{className:"text-sm font-medium",children:["Authentication Method ",(0,a.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,a.jsx)("div",{className:"flex gap-3",children:p.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>x("authMethod",e.value),className:`flex-1 flex items-center justify-center gap-2 p-4 rounded-lg border transition-all ${l.authMethod===e.value?"border-primary bg-primary/5 text-primary":"border-border hover:border-primary/50"}`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined",children:"api_key"===e.value?"key":"lock"}),(0,a.jsx)("span",{className:"font-medium",children:e.label})]},e.value))})]}),"api_key"===l.authMethod&&(0,a.jsx)(o.pd,{label:"API Key",type:"password",placeholder:"Enter your API key",value:l.apiKey,onChange:e=>x("apiKey",e.target.value),error:h.apiKey,hint:"Your API key will be encrypted and stored securely.",required:!0}),"oauth2"===l.authMethod&&(0,a.jsxs)(o.Zp.Section,{children:[(0,a.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Connect your account using OAuth2 authentication."}),(0,a.jsx)(o.$n,{type:"button",variant:"secondary",icon:"link",children:"Connect with OAuth2"})]}),(0,a.jsx)(o.pd,{label:"Display Name",placeholder:"e.g., Production API, Dev Environment",value:l.displayName,onChange:e=>x("displayName",e.target.value),hint:"Optional. A friendly name to identify this configuration."}),(0,a.jsx)(o.lM,{checked:l.isActive,onChange:e=>x("isActive",e),label:"Active",description:"Enable this provider for use in your applications"}),h.submit&&(0,a.jsx)("div",{className:"p-4 rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-600 dark:text-red-400 text-sm",children:h.submit}),(0,a.jsxs)("div",{className:"flex gap-3 pt-4 border-t border-border",children:[(0,a.jsx)(d(),{href:"/dashboard/providers",className:"flex-1",children:(0,a.jsx)(o.$n,{type:"button",variant:"ghost",fullWidth:!0,children:"Cancel"})}),(0,a.jsx)(o.$n,{type:"submit",loading:r,fullWidth:!0,className:"flex-1",children:"Create Provider"})]})]})})]})}}},e=>{e.O(0,[2574,3862,2194,698,1321,5497,8441,3794,7358],()=>e(e.s=14420)),_N_E=e.O()}]);
@@ -1 +0,0 @@
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=(0,a.useRef)(null),C=async e=>{let t=e.target.files?.[0];if(t){g(!0);try{let e=await t.text(),s=JSON.parse(e),r=await fetch("/api/providers/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),a=await r.json();if(r.ok){P.success(`Imported ${a.imported}, skipped ${a.skipped}`);let e=await fetch("/api/providers");if(e.ok){let t=await e.json();l(t.connections||[])}}else P.error(a.error||"Import failed")}catch(e){P.error(e.message||"Import failed")}finally{g(!1),b.current&&(b.current.value="")}}},[k,T]=(0,a.useState)(!1),[A,I]=(0,a.useState)(!1),[S,$]=(0,a.useState)(!1),[E,O]=(0,a.useState)(null),[R,U]=(0,a.useState)(null),P=(0,x.i)(),_=(0,u.C)(e=>e.query),z=(0,u.C)(e=>e.register),q=(0,u.C)(e=>e.unregister);(0,a.useEffect)(()=>(z("Search providers..."),()=>q()),[z,q]);let D=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 F=(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}},M=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})})))},J=async(e,t=null)=>{if(!E){O("provider"===e?t:e),U(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(U(r),r.summary){let{passed:e,failed:t,total:s}=r.summary;0===t?P.success(`All ${s} tests passed`):P.warning(`${e}/${s} passed, ${t} failed`)}}catch(e){U({error:"Test request failed"}),P.error("Provider test failed")}finally{O(null)}}},K=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=>D(e.name)),L=i.filter(e=>"anthropic-compatible"===e.type).map(e=>({id:e.id,name:e.name||"Anthropic Compatible",color:"#D97757",textIcon:"AC"})).filter(e=>D(e.name)),W=Object.entries(d.zN).filter(([,e])=>D(e.name)),H=Object.entries(c.IS).filter(([,e])=>D(e.name)),B=Object.entries(c.nJ).filter(([,e])=>D(e.name)),Q=(e=Object.entries(d.fg).filter(([,e])=>(e.serviceKinds??["llm"]).includes("llm")&&D(e.name)),t="apikey",[...e].sort(([e,s],[r,a])=>{let l=F(e,t),i=F(r,t),n=+(l.connected>0),o=+(i.connected>0);return n!==o?o-n:(s.name||"").localeCompare(a.name||"")})),V=!!_.trim(),X=V||k?Q:Q.slice(0,20),Z=Q.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 G=W.length>0||H.length>0||B.length>0||Q.length>0||K.length>0||L.length>0;return(0,r.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0",children:[!G&&(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-wrap items-center justify-end gap-2",children:[(0,r.jsx)("input",{ref:b,type:"file",accept:"application/json",className:"hidden",onChange:C}),(0,r.jsx)(n.$n,{size:"sm",variant:"secondary",icon:"upload",onClick:()=>b.current?.click(),disabled:h,children:h?"Importing...":"Import"}),(0,r.jsx)(n.$n,{size:"sm",variant:"secondary",icon:"download",onClick:()=>{window.open("/api/providers/export","_blank")},children:"Export"})]}),(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:()=>$(!0),className:"w-full sm:w-auto",children:"Add Anthropic Compatible"}),(0,r.jsx)(n.$n,{size:"sm",variant:"secondary",icon:"add",onClick:()=>I(!0),className:"w-full !bg-white !text-black hover:!bg-gray-100 sm:w-auto",children:"Add OpenAI Compatible"})]})]}),0===K.length&&0===L.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:[...K,...L].map(e=>(0,r.jsx)(y,{providerId:e.id,provider:e,stats:F(e.id,"apikey"),authType:"compatible",onToggle:t=>M(e.id,"apikey",t)},e.id))})]}),W.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:()=>J("oauth"),disabled:!!E,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"===E?"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"===E?" animate-spin":""}`,children:"play_arrow"}),"oauth"===E?"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:W.map(([e,t])=>(0,r.jsx)(v,{providerId:e,provider:t,stats:F(e,"oauth"),authType:"oauth",onToggle:t=>M(e,"oauth",t)},e))})]}),(H.length>0||B.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:()=>J("free"),disabled:!!E,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"===E?"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"===E?" animate-spin":""}`,children:"play_arrow"}),"free"===E?"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:[H.map(([e,t])=>(0,r.jsx)(v,{providerId:e,provider:t,stats:F(e,"oauth"),authType:"free",onToggle:t=>M(e,"oauth",t)},e)),B.map(([e,t])=>(0,r.jsx)(y,{providerId:e,provider:t,stats:F(e,"apikey"),authType:"apikey",onToggle:t=>M(e,"apikey",t)},e))]})]}),Q.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:()=>J("apikey"),disabled:!!E,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"===E?"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"===E?" animate-spin":""}`,children:"play_arrow"}),"apikey"===E?"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:X.map(([e,t])=>(0,r.jsx)(y,{providerId:e,provider:t,stats:F(e,"apikey"),authType:"apikey",onToggle:t=>M(e,"apikey",t)},e))}),!V&&!k&&Z>0&&(0,r.jsxs)("button",{onClick:()=>T(!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 ",Q.length," providers"]})]}),(0,r.jsx)(j,{isOpen:A,onClose:()=>I(!1),onCreated:e=>{o(t=>[...t,e]),I(!1)}}),(0,r.jsx)(N,{isOpen:S,onClose:()=>$(!1),onCreated:e=>{o(t=>[...t,e]),$(!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:()=>U(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:()=>U(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"}),[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)(()=>{i(e=>({...e,baseUrl:"https://api.openai.com/v1"}))},[l.apiType]);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,apiType:l.apiType,baseUrl:l.baseUrl,type:"openai-compatible"})}),t=await e.json();e.ok&&(s(t.node),i({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),p(""),g(null))}catch(e){console.log("Error creating OpenAI 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:"openai-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 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.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: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. 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: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 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}},63466:(e,t,s)=>{Promise.resolve().then(s.bind(s,52154))}},e=>{e.O(0,[2574,3862,2194,698,1321,5497,8441,3794,7358],()=>e(e.s=63466)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{75095:(e,t,r)=>{"use strict";r.d(t,{default:()=>S});var a=r(95155),s=r(12115),l=r(57250),i=r(45564);function n(e){var t,r;return e?.remaining!==void 0?Math.max(0,Math.round(e.remaining)):e?.remainingPercentage!==void 0?Math.round(e.remainingPercentage):(t=e?.used,(r=e?.total)&&0!==r?!t||t<0?100:t>=r?0:Math.round((r-t)/r*100):0)}function o({quotas:e=[],compact:t=!1,sortMode:r="default",showSortLabel:l=!1}){let[i,c]=(0,s.useState)(1),d=(0,s.useMemo)(()=>e.map((e,t)=>({...e,index:t,remaining:n(e)})),[e]),u=(0,s.useMemo)(()=>"remaining-asc"===r?[...d].sort((e,t)=>e.remaining-t.remaining||e.name.localeCompare(t.name)):"remaining-desc"===r?[...d].sort((e,t)=>t.remaining-e.remaining||e.name.localeCompare(t.name)):d,[d,r]),m=Math.max(1,Math.ceil(u.length/10));if((0,s.useEffect)(()=>{c(1)},[r,e]),(0,s.useEffect)(()=>{c(e=>Math.min(e,m))},[m]),!e||0===e.length)return null;let x=u.slice((i-1)*10,10*i),h=0===u.length?0:(i-1)*10+1,b=Math.min(10*i,u.length),p=t?"py-1 px-1.5":"py-2 px-3",g=t?"text-[11px]":"text-sm",f=t?"text-[11px]":"text-sm",v=t?"text-[10px] leading-tight":"text-xs";return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"text-[10px] text-text-muted",children:[u.length," quota",u.length>1?"s":""]}),l&&(0,a.jsx)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1 text-[10px] text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:"Sorted by account remaining"})]}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsx)("table",{className:"w-full table-fixed text-left",children:(0,a.jsx)("tbody",{children:x.map(e=>{var r;let s=(r=e.remaining)>70?{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"}:r>=30?{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500",bgLight:"bg-yellow-500/10",emoji:"\uD83D\uDFE1"}:{text:"text-red-600 dark:text-red-400",bg:"bg-red-500",bgLight:"bg-red-500/10",emoji:"\uD83D\uDD34"},l=function(e){if(!e)return"-";try{let t="string"==typeof e?new Date(e):e,r=new Date,a=t-r;if(a<=0)return"-";let s=Math.ceil(a/6e4);if(s<60)return`${s}m`;let l=Math.floor(s/60),i=s%60;if(l<24)return`${l}h ${i}m`;let n=Math.floor(l/24);return`${n}d ${l%24}h ${i}m`}catch(e){return"-"}}(e.resetAt),i=function(e){if(!e)return null;try{let t=new Date(e),r=new Date,a=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=new Date(a);s.setDate(s.getDate()+1);let l="";l=t>=a&&t<s?"Today":t>=s&&t<new Date(s.getTime()+864e5)?"Tomorrow":t.toLocaleDateString("en-US",{month:"short",day:"numeric"});let i=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0});return`${l}, ${i}`}catch{return null}}(e.resetAt);return(0,a.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors",children:[(0,a.jsx)("td",{className:`${p} w-[30%]`,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,a.jsx)("span",{className:"text-[10px] shrink-0",children:s.emoji}),(0,a.jsx)("span",{className:`${g} font-medium text-text-primary truncate`,children:e.name})]})}),(0,a.jsx)("td",{className:`${p} w-[45%]`,children:(0,a.jsxs)("div",{className:t?"space-y-1":"space-y-1.5",children:[(0,a.jsx)("div",{className:`${t?"h-1":"h-1.5"} rounded-full overflow-hidden border ${s.bgLight} ${0===e.remaining?"border-black/10 dark:border-white/10":"border-transparent"}`,children:(0,a.jsx)("div",{className:`h-full transition-all duration-300 ${s.bg}`,style:{width:`${Math.min(e.remaining,100)}%`}})}),(0,a.jsxs)("div",{className:`flex items-center justify-between ${t?"text-[10px]":"text-xs"}`,children:[(0,a.jsxs)("span",{className:"text-text-muted",children:[e.used.toLocaleString()," / ",e.total>0?e.total.toLocaleString():"∞"]}),(0,a.jsxs)("span",{className:`font-medium ${s.text}`,children:[e.remaining,"%"]})]})]})}),(0,a.jsx)("td",{className:`${p} w-[25%]`,children:"-"!==l||i?t?(0,a.jsx)("div",{className:`${f} text-text-primary font-medium truncate`,title:i||"",children:"-"!==l?`in ${l}`:i}):(0,a.jsxs)("div",{className:"space-y-0.5",children:["-"!==l&&(0,a.jsxs)("div",{className:`${f} text-text-primary font-medium`,children:["in ",l]}),i&&(0,a.jsx)("div",{className:`${v} text-text-muted`,children:i})]}):(0,a.jsx)("div",{className:`${f} text-text-muted italic`,children:"N/A"})})]},`${e.name}-${e.index}`)})})})}),m>1&&(0,a.jsxs)("div",{className:"rounded-md border border-black/10 bg-black/[0.02] px-2 py-1.5 dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[10px] text-text-muted",children:[(0,a.jsxs)("span",{children:["Showing ",h,"-",b," of ",u.length]}),(0,a.jsxs)("span",{children:["Page ",i," / ",m]})]}),(0,a.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>c(e=>Math.max(1,e-1)),disabled:1===i,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Prev"}),(0,a.jsx)("button",{type:"button",onClick:()=>c(e=>Math.min(m,e+1)),disabled:i===m,className:"flex h-6 items-center rounded-md border border-black/10 px-2 text-[10px] text-text-primary transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Next"})]})]})]})}var c=r(98542),d=r(84588),u=r(35497),m=r(52679);function x(e){return m.Q2[e]?.name||e}function h(e){let t=e=>"string"==typeof e&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);return t(e.email)?e.email:(t(e.name),e.name)}function b(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 g(e,t){return await e(t)}let f="quotaCacheData";function v(){try{let e=window.localStorage.getItem(f);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}function y(e,t){try{let r=v();r[e]={...t,cachedAt:new Date().toISOString()},window.localStorage.setItem(f,JSON.stringify(r))}catch(e){console.error("Error writing quota cache:",e)}}let k="quotaAutoRefresh",w=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],j=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}],N=[10,20,50,100];function S(){let[e,t]=(0,s.useState)([]),[r,S]=(0,s.useState)({}),[C,$]=(0,s.useState)({}),[E,A]=(0,s.useState)({}),[q,P]=(0,s.useState)(!0),[M,D]=(0,s.useState)(null),[T,I]=(0,s.useState)(!1),[L,O]=(0,s.useState)(!1),[_,F]=(0,s.useState)(60),[z,U]=(0,s.useState)(!0),[R,J]=(0,s.useState)(null),[K,B]=(0,s.useState)(null),[G,H]=(0,s.useState)(!1),[Q,Y]=(0,s.useState)(null),[V,W]=(0,s.useState)([]),[X,Z]=(0,s.useState)("all"),[ee,et]=(0,s.useState)([]),[er,ea]=(0,s.useState)("all"),[es,el]=(0,s.useState)("default"),[ei,en]=(0,s.useState)(!1),[eo,ec]=(0,s.useState)(!1),[ed,eu]=(0,s.useState)(!1),[em,ex]=(0,s.useState)(1),[eh,eb]=(0,s.useState)(20),[ep,eg]=(0,s.useState)(String(20)),[ef,ev]=(0,s.useState)({page:1,pageSize:20,total:0,totalPages:1}),[ey,ek]=(0,s.useState)({eligibleConnections:0,providerFilteredConnections:0}),ew=(0,s.useRef)(null),ej=(0,s.useRef)(null),eN=(0,s.useCallback)(async(e=em)=>{try{var r,a;let s=new URLSearchParams({page:String(e),pageSize:String(eh),accountStatus:er,sort:"provider"});"all"!==X&&s.set("provider",X);let l=await fetch(`/api/providers/client?${s.toString()}`);if(!l.ok)throw Error("Failed to fetch connections");let i=await l.json(),n=i.connections||[],o=(r=i.pagination,r||{page:1,pageSize:eh,total:0,totalPages:1}),c=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(i.totals,n.length);return t(n),et(i.providerOptions||[]),ev(o),ek(c),ex((a=i.pagination,a?.page||e)),n}catch(e){return console.error("Error fetching connections:",e),t([]),et([]),ev({page:1,pageSize:eh,total:0,totalPages:1}),ek({eligibleConnections:0,providerFilteredConnections:0}),[]}},[er,ei,em,eh,X]),eS=(0,s.useCallback)(async(e,t,r={})=>{let{showLoading:a=!0}=r;a&&$(t=>({...t,[e]:!0})),A(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};S(t=>({...t,[e]:r})),y(e,r);return}throw Error(`HTTP ${r.status}: ${a}`)}let a=await r.json();console.log(`[ProviderLimits] Got quota for ${t}:`,a);let s={quotas:function(e,t){if(!t||"object"!=typeof t)return[];let r=[];try{switch(e.toLowerCase()){case"github":default:t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"antigravity":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codex":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,remaining:t.remaining,resetAt:t.resetAt||null})});break;case"kiro":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"claude":t.message?r.push({name:"error",used:0,total:0,resetAt:null,message:t.message}):t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})})}}catch(t){return console.error(`Error parsing quota data for ${e}:`,t),[]}let a=(0,i.KC)(e);if(a.length>0){let e=new Map(a.map((e,t)=>[e.id,t]));r.sort((t,r)=>{let a=t.modelKey||t.name,s=r.modelKey||r.name;return(e.get(a)??999)-(e.get(s)??999)})}return r}(t,a),plan:a.plan||null,message:a.message||null,raw:a};S(t=>({...t,[e]:s})),y(e,s)}catch(r){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),A(t=>({...t,[e]:r.message||"Failed to fetch quota"}))}finally{$(t=>({...t,[e]:!1}))}},[]),eC=(0,s.useCallback)(async(e,t)=>{await eS(e,t),D(new Date)},[eS]),e$=(0,s.useCallback)(async e=>{if(confirm("Delete this connection?")){J(e);try{if((await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok){S(t=>{let r={...t};return delete r[e],r}),$(t=>{let r={...t};return delete r[e],r}),A(t=>{let r={...t};return delete r[e],r});try{let t=v();t[e]&&(delete t[e],window.localStorage.setItem(f,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await g(eN,em)}}catch(e){console.error("Error deleting connection:",e)}finally{J(null)}}},[eN,em]),eE=(0,s.useCallback)(async(e,t)=>{B(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(S(e=>({...e})),await g(eN,em))}catch(e){console.error("Error updating connection status:",e)}finally{B(null)}},[eN,em]),eA=(0,s.useCallback)(async e=>{if(!Q?.id)return;let t=Q.id,r=Q.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await eN(),H(!1),Y(null),m.wb.includes(r)&&await eS(t,r))}catch(e){console.error("Error saving connection:",e)}},[Q,eN,eS]);(0,s.useEffect)(()=>{let e=!1;return fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.json()).then(t=>{!e&&t?.proxyPools&&W(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let eq=(0,s.useCallback)(async()=>{if(!L){O(!0),F(60);try{let e,t=await eN(em);$((e={},t.forEach(t=>{e[t.id]=!0}),e)),A(e=>p(e,t)),S(e=>p(e,t)),await Promise.all(t.map(e=>eS(e.id,e.provider))),D(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{O(!1)}}},[L,eN,eS,em]);(0,s.useEffect)(()=>{(async()=>{U(!0);let e=await eN(em);U(!1);let t=v(),r={},a={},s=null;e.forEach(e=>{let l=t[e.id];if(l){if(r[e.id]=!1,a[e.id]={quotas:l.quotas,plan:l.plan,message:l.message,raw:l.raw},l.cachedAt){let e=new Date(l.cachedAt);(!s||e>s)&&(s=e)}}else r[e.id]=!0}),$(r),A(r=>{let a=p(r,e);return e.forEach(e=>{t[e.id]&&(a[e.id]=null)}),a}),S(t=>({...p(t,e),...a})),s&&D(s),e.length>0&&(await Promise.all(e.map(e=>eS(e.id,e.provider,{showLoading:!t[e.id]}))),D(new Date))})()},[eN,eS,em]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem(k);P(null===e||"true"===e),I(!0)},[]),(0,s.useEffect)(()=>{T&&window.localStorage.setItem(k,String(q))},[q,T]),(0,s.useEffect)(()=>{if(!T||!q){ew.current&&(clearInterval(ew.current),ew.current=null),ej.current&&(clearInterval(ej.current),ej.current=null);return}return ew.current=setInterval(()=>{eq()},6e4),ej.current=setInterval(()=>{F(e=>e<=1?60:e-1)},1e3),()=>{ew.current&&clearInterval(ew.current),ej.current&&clearInterval(ej.current)}},[q,eq,T]),(0,s.useEffect)(()=>{let e=()=>{document.hidden?(ew.current&&(clearInterval(ew.current),ew.current=null),ej.current&&(clearInterval(ej.current),ej.current=null)):q&&T&&(ew.current=setInterval(eq,6e4),ej.current=setInterval(()=>{F(e=>e<=1?60:e-1)},1e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[q,eq,T]);let eP=(0,s.useMemo)(()=>(function(e,t,r,a,s){if("codex"===a&&"default"!==s)return[...e].sort((e,r)=>{let a=b(e,t),l=b(r,t),i="remaining-asc"===s?a-l:l-a;return 0!==i?i:(h(e)||"").localeCompare(h(r)||"")});if(!r)return e;let l=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=l(e)-l(t);return 0!==r?r:(e.provider||"").localeCompare(t.provider||"")||(h(e)||"").localeCompare(h(t)||"")})})(e,r,ei,X,es),[e,r,ei,X,es]),eM=e=>{let t=r[e.id]?.quotas;return!!t?.length&&t.some(e=>5>=n(e))},eD=(0,s.useCallback)(async(e,t)=>{if(e.length&&!ed){eu(!0);try{await Promise.all(e.map(e=>fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})}))),await g(eN,em)}catch(e){console.error("Error bulk toggling connections:",e)}finally{eu(!1)}}},[ed,eN,em]),eT="all"===X?"All providers":x(X),eI=ey.eligibleConnections>0,eL=eP.length>0,eO=ey.eligibleConnections?ey.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"===X?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===er?"turned off":"active"===er?"active":"matching"} accounts found for ${X}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},e_=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}`}(ef),eF=!N.includes(eh);return z||eI?z||eL?(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:()=>ec(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":eo,title:"Filter quota providers",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===X?(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,a.jsx)(l.A,{src:`/providers/${X}.png`,alt:X,size:18,className:"size-[18px] rounded object-contain",fallbackText:X.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate capitalize hidden lg:inline",children:eT})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),eo&&(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:()=>ec(!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"!==X&&ex(1),Z("all"),ec(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${"all"===X?"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"===X&&(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:ee.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{X!==e&&ex(1),Z(e),ec(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${X===e?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)(l.A,{src:`/providers/${e}.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:x(e)}),X===e&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]},e))})]})]})]}),(0,a.jsx)("select",{value:er,onChange:e=>{let t=e.target.value;er!==t&&ex(1),ea(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:w.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),"codex"===X&&(0,a.jsx)("select",{value:es,onChange:e=>el(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:j.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsxs)("button",{type:"button",onClick:()=>en(e=>!e),"aria-pressed":ei,className:`flex h-8 shrink-0 items-center gap-1 rounded-lg border px-2 text-xs transition-colors ${ei?"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:()=>{eD(eP.filter(e=>(e.isActive??!0)&&eM(e)).map(e=>e.id),!1)},disabled:ed,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:()=>{eD(eP.filter(e=>!(e.isActive??!0)&&!eM(e)).map(e=>e.id),!0)},disabled:ed,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:()=>P(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:q?"Disable auto-refresh":"Enable auto-refresh",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[14px] ${q?"text-primary":"text-text-muted"}`,children:q?"toggle_on":"toggle_off"}),(0,a.jsx)("span",{className:"hidden text-text-primary sm:inline",children:"Auto-refresh"}),q&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",_,"s)"]})]}),(0,a.jsx)("button",{type:"button",onClick:eq,disabled:L,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] ${L?"animate-spin":""}`,children:"refresh"})})]})}),ei&&(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:eP.map(e=>{let t=r[e.id],s=C[e.id],i=E[e.id],n=!1===e.isActive,u=R===e.id||K===e.id;return(0,a.jsxs)(d.default,{padding:"none",className:`min-w-0 ${n?"opacity-60":""}`,children:[(0,a.jsx)("div",{className:"px-3 py-2 border-b border-black/10 dark:border-white/10",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,a.jsx)(l.A,{src:`/providers/${e.provider}.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:x(e.provider)}),h(e)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:h(e)}):null]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eC(e.id,e.provider),disabled:s||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 ${s?"animate-spin":""}`,children:"refresh"})}),(0,a.jsx)("button",{type:"button",onClick:()=>{Y(e),H(!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:()=>e$(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] ${R===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)(c.default,{size:"sm",checked:e.isActive??!0,disabled:u,onChange:t=>eE(e.id,t)})})]})]})}),(0,a.jsx)("div",{className:"px-2 py-1.5",children:s?(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"})}):i?(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:i})]}):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)(o,{quotas:t?.quotas,compact:!0,sortMode:"default",showSortLabel:"codex"===e.provider&&"default"!==es})})]},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:e_}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:eF?"custom":String(eh),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(ex(1),eb(r),eg(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:[N.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=>eg(e.target.value),onBlur:()=>{let e=Number.parseInt(ep,10);if(!Number.isFinite(e))return void eg(String(eh));let t=Math.min(500,Math.max(1,e));ex(1),eb(t),eg(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(ep,10);if(!Number.isFinite(t))return void eg(String(eh));let r=Math.min(500,Math.max(1,t));ex(1),eb(r),eg(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 ",ef.page," / ",ef.totalPages]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>ex(1),disabled:ef.page<=1||z||L,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:()=>ex(e=>Math.max(1,e-1)),disabled:ef.page<=1||z||L,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:()=>ex(e=>Math.min(ef.totalPages,e+1)),disabled:ef.page>=ef.totalPages||z||L,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:()=>ex(ef.totalPages),disabled:ef.page>=ef.totalPages||z||L,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)(u.wI,{isOpen:G,connection:Q,proxyPools:V,onSave:eA,onClose:()=>{H(!1),Y(null)}})]}):(0,a.jsx)(d.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:eO.icon}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:eO.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:eO.description})]})}):(0,a.jsx)(d.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."})]})})}},83376:(e,t,r)=>{Promise.resolve().then(r.bind(r,75095)),Promise.resolve().then(r.bind(r,25086))}},e=>{e.O(0,[2574,3862,2194,698,1321,5497,8441,3794,7358],()=>e(e.s=83376)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9516],{64082:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>v});var s=i(95155),r=i(35497),n=i(11059);let a=i(41463).env.NEXT_PUBLIC_KTROUTER_REPO||"",o="master",l="skills",c=!!a,d=a?`https://github.com/${a}`:"",m=a?`https://raw.githubusercontent.com/${a}/refs/heads/${o}/${l}`:l,x=a?`https://github.com/${a}/blob/${o}/${l}`:l,p=[{id:"ktrouter",name:"KTRouter (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:"ktrouter-chat",name:"Chat",description:"Chat / code-gen via OpenAI or Anthropic format with streaming.",endpoint:"/v1/chat/completions",icon:"chat"},{id:"ktrouter-image",name:"Image Generation",description:"Text-to-image via DALL-E, Imagen, FLUX, MiniMax, SDWebUI…",endpoint:"/v1/images/generations",icon:"image"},{id:"ktrouter-tts",name:"Text-to-Speech",description:"OpenAI / ElevenLabs / Edge / Google / Deepgram voices.",endpoint:"/v1/audio/speech",icon:"record_voice_over"},{id:"ktrouter-stt",name:"Speech-to-Text",description:"Transcribe audio via OpenAI Whisper, Groq, Gemini, Deepgram, AssemblyAI…",endpoint:"/v1/audio/transcriptions",icon:"mic"},{id:"ktrouter-embeddings",name:"Embeddings",description:"Vectors for RAG / semantic search via OpenAI, Gemini, Mistral…",endpoint:"/v1/embeddings",icon:"scatter_plot"},{id:"ktrouter-web-search",name:"Web Search",description:"Tavily / Exa / Brave / Serper / SearXNG / Google PSE / You.com.",endpoint:"/v1/search",icon:"search"},{id:"ktrouter-web-fetch",name:"Web Fetch",description:"URL → markdown / text / HTML via Firecrawl, Jina, Tavily, Exa.",endpoint:"/v1/web/fetch",icon:"language"}];function h(e){return`${m}/${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 b({skill:e}){var t;let i=h(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}),c?(0,s.jsxs)("a",{href:(t=e.id,`${x}/${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)("p",{className:"text-[11px] text-text-muted mt-1 break-all",children:i})]}),(0,s.jsx)(u,{value:i})]})}function v(){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: ",h("ktrouter")]})]}),(0,s.jsx)("div",{className:"space-y-2",children:p.map(e=>(0,s.jsx)(b,{skill:e},e.id))}),c&&(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:`${d}/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"]})]})})]})}},71080:(e,t,i)=>{Promise.resolve().then(i.bind(i,64082))}},e=>{e.O(0,[2574,3862,2194,698,1321,5497,8441,3794,7358],()=>e(e.s=71080)),_N_E=e.O()}]);
@@ -1 +0,0 @@
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)},36472:(e,t,n)=>{Promise.resolve().then(n.bind(n,69472))},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)},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,2194,698,1321,5497,8441,3794,7358],()=>e(e.s=36472)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1070,1088,1091,1110,1200,1288,1337,1382,1451,1512,1566,1666,1697,1860,1910,1946,1949,2121,2284,2296,2536,2772,2785,2797,2919,3025,3038,3079,3102,3472,3549,3562,3568,3883,3888,3889,4009,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4825,4849,4896,4993,5018,5079,5107,5177,5211,5226,5408,5466,5637,5745,5922,6091,6107,6268,6319,6479,6529,6580,6594,6740,6743,6819,6919,6988,7158,7241,7311,7429,7442,7445,7473,7508,7520,7758,7824,7851,8167,8207,8246,8453,8489,8573,8606,8648,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1070,1088,1091,1110,1200,1288,1337,1382,1451,1512,1566,1666,1697,1860,1910,1946,1949,2121,2284,2296,2536,2772,2785,2797,2919,3025,3038,3079,3102,3472,3549,3562,3568,3883,3888,3889,4009,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4825,4849,4896,4993,5018,5079,5107,5177,5211,5226,5408,5466,5637,5745,5922,6091,6107,6268,6319,6479,6529,6580,6594,6740,6743,6819,6919,6988,7158,7241,7311,7429,7442,7445,7473,7508,7520,7758,7824,7851,8167,8207,8246,8453,8489,8573,8606,8648,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[84,174,204,335,342,387,501,516,543,552,675,747,748,907,931,948,992,997,1070,1088,1091,1110,1200,1288,1337,1382,1451,1512,1566,1666,1697,1860,1910,1946,1949,2121,2284,2296,2536,2772,2785,2797,2919,3025,3038,3079,3102,3472,3549,3562,3568,3883,3888,3889,4009,4010,4061,4245,4286,4422,4444,4612,4656,4674,4761,4825,4849,4896,4993,5018,5079,5107,5177,5211,5226,5408,5466,5637,5745,5922,6091,6107,6268,6319,6479,6529,6580,6594,6740,6743,6819,6919,6988,7158,7241,7311,7429,7442,7445,7473,7508,7520,7758,7824,7851,8167,8207,8246,8453,8489,8573,8606,8648,8736,8791,8814,8870,8948,8974,8975,9027,9069,9088,9141,9199,9321,9461,9709],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);