zevairouter 1.1.43 → 1.1.45

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 (1229) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +2 -0
  3. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  4. package/cli/app/.next-cli-build/app-path-routes-manifest.json +23 -22
  5. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  6. package/cli/app/.next-cli-build/prerender-manifest.json +4 -4
  7. package/cli/app/.next-cli-build/routes-manifest.json +6 -0
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  78. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  79. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  80. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +1 -1
  81. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  82. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  83. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  84. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  85. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  86. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  87. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  88. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  89. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  90. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  91. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  92. package/cli/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  93. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  94. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  95. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  96. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  97. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  98. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  99. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  100. package/cli/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  101. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  102. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  103. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  104. package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  105. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  106. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  107. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  108. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  161. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  163. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  165. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  167. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  169. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  171. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/metrics/route.js +2 -2
  233. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js +51 -0
  373. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route.js.nft.json +1 -0
  374. package/cli/app/.next-cli-build/server/app/api/providers/cloudflare-ai/discover-models/route_client-reference-manifest.js +1 -0
  375. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js +2 -2
  376. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/providers/route.js +2 -2
  392. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +2 -2
  398. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  404. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  405. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  406. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  410. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  412. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  414. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  416. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  418. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  420. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  422. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  424. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  426. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  445. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js +2 -2
  452. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  456. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  458. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  459. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  460. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  462. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  463. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  464. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  465. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +2 -2
  466. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  467. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  468. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  469. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  470. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  471. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  472. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  473. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  474. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  475. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  476. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  477. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  478. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  479. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  480. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  481. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  482. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  483. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  484. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  485. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  486. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  487. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  488. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  489. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  490. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  491. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  492. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  493. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  494. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  495. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +2 -2
  496. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  497. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  498. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  499. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  500. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  501. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js +2 -2
  502. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  503. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  504. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  505. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  506. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  507. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  508. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  509. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  510. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  511. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  512. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  513. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  514. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  515. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  516. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  517. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  518. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  519. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  520. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  521. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  522. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  523. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  524. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  525. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  526. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  527. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  528. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  529. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  530. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  531. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  532. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  533. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  534. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  535. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  536. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  537. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  538. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  539. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js +1 -1
  540. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  541. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  542. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  543. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  544. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  545. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  546. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  547. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  548. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  549. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  550. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  551. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  552. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  553. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  554. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  555. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  556. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  557. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  558. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  559. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  560. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  561. package/cli/app/.next-cli-build/server/app/callback/page.js +1 -1
  562. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  563. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  564. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  565. package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
  566. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  567. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  568. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  569. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  570. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +3 -3
  571. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +3 -3
  572. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +3 -3
  573. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +2 -2
  574. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  575. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
  576. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
  577. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
  578. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  579. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  580. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +3 -3
  581. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +3 -3
  582. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +3 -3
  583. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  584. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  585. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
  586. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
  587. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
  588. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  589. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  590. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +3 -3
  591. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +3 -3
  592. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +3 -3
  593. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +2 -2
  594. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  595. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
  596. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
  597. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
  598. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  599. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  600. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
  601. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
  602. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
  603. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  604. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  605. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +3 -3
  606. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +3 -3
  607. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +3 -3
  608. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  609. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  610. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +3 -3
  611. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +3 -3
  612. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +3 -3
  613. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +2 -2
  614. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  615. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
  616. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
  617. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
  618. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  619. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  620. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
  621. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
  622. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
  623. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  624. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  625. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +3 -3
  626. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +3 -3
  627. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +3 -3
  628. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  629. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  630. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +3 -3
  631. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +3 -3
  632. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +3 -3
  633. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  634. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  635. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
  636. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
  637. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
  638. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  639. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  640. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +4 -4
  641. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
  642. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +4 -4
  643. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  644. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  645. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  646. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
  647. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  648. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  649. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  650. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
  651. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
  652. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
  653. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  654. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  655. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +3 -3
  656. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
  657. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
  658. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  659. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  660. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
  661. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
  662. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
  663. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  664. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  665. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +3 -3
  666. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +3 -3
  667. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +3 -3
  668. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  669. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  670. package/cli/app/.next-cli-build/server/app/dashboard.rsc +3 -3
  671. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
  672. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
  673. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  674. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  675. package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
  676. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  677. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  678. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  679. package/cli/app/.next-cli-build/server/app/landing/page.js +1 -1
  680. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  681. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  682. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  683. package/cli/app/.next-cli-build/server/app/landing.rsc +3 -3
  684. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  685. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  686. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
  687. package/cli/app/.next-cli-build/server/app/login/page.js +1 -1
  688. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  689. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  690. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  691. package/cli/app/.next-cli-build/server/app/login.rsc +3 -3
  692. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
  693. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  694. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  695. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  696. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  697. package/cli/app/.next-cli-build/server/app/page.js +1 -1
  698. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  699. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  700. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js +2 -2
  701. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  702. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js +1 -1
  703. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  704. package/cli/app/.next-cli-build/server/app-paths-manifest.json +23 -22
  705. package/cli/app/.next-cli-build/server/chunks/1131.js +1 -1
  706. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  707. package/cli/app/.next-cli-build/server/chunks/1998.js +1 -0
  708. package/cli/app/.next-cli-build/server/chunks/2051.js +1 -0
  709. package/cli/app/.next-cli-build/server/chunks/2299.js +2 -2
  710. package/cli/app/.next-cli-build/server/chunks/2301.js +4 -0
  711. package/cli/app/.next-cli-build/server/chunks/2409.js +1 -1
  712. package/cli/app/.next-cli-build/server/chunks/3184.js +26 -0
  713. package/cli/app/.next-cli-build/server/chunks/3263.js +1 -1
  714. package/cli/app/.next-cli-build/server/chunks/3477.js +1 -1
  715. package/cli/app/.next-cli-build/server/chunks/3487.js +1 -1
  716. package/cli/app/.next-cli-build/server/chunks/3904.js +1 -1
  717. package/cli/app/.next-cli-build/server/chunks/3949.js +1 -1
  718. package/cli/app/.next-cli-build/server/chunks/4236.js +1 -1
  719. package/cli/app/.next-cli-build/server/chunks/4315.js +1 -1
  720. package/cli/app/.next-cli-build/server/chunks/4720.js +1 -1
  721. package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
  722. package/cli/app/.next-cli-build/server/chunks/4897.js +1 -1
  723. package/cli/app/.next-cli-build/server/chunks/5024.js +1 -1
  724. package/cli/app/.next-cli-build/server/chunks/5330.js +3 -3
  725. package/cli/app/.next-cli-build/server/chunks/5434.js +1 -1
  726. package/cli/app/.next-cli-build/server/chunks/5681.js +1 -1
  727. package/cli/app/.next-cli-build/server/chunks/5932.js +1 -0
  728. package/cli/app/.next-cli-build/server/chunks/6306.js +1 -1
  729. package/cli/app/.next-cli-build/server/chunks/6492.js +1 -1
  730. package/cli/app/.next-cli-build/server/chunks/7170.js +1 -1
  731. package/cli/app/.next-cli-build/server/chunks/7319.js +38 -14
  732. package/cli/app/.next-cli-build/server/chunks/7432.js +1 -1
  733. package/cli/app/.next-cli-build/server/chunks/7502.js +1 -1
  734. package/cli/app/.next-cli-build/server/chunks/7634.js +1 -1
  735. package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
  736. package/cli/app/.next-cli-build/server/chunks/8641.js +1 -1
  737. package/cli/app/.next-cli-build/server/chunks/891.js +1 -1
  738. package/cli/app/.next-cli-build/server/chunks/9609.js +1 -1
  739. package/cli/app/.next-cli-build/server/chunks/9835.js +1 -1
  740. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  741. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  742. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  743. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  744. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  745. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  746. package/cli/app/.next-cli-build/static/chunks/620-fbf5c2b6126799ad.js +1 -0
  747. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-d274fc7161c16f8d.js +3 -0
  748. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-638bb31d9879c8b8.js +1 -0
  749. package/cli/app/.next-cli-build/static/chunks/app/_global-error/{page-c8a0d3b188f8e4f8.js → page-c4c57ebd914d8d2f.js} +1 -1
  750. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/{route-c8a0d3b188f8e4f8.js → route-c4c57ebd914d8d2f.js} +1 -1
  751. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-c8a0d3b188f8e4f8.js → route-c4c57ebd914d8d2f.js} +1 -1
  752. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-c8a0d3b188f8e4f8.js → route-c4c57ebd914d8d2f.js} +1 -1
  753. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-c4c57ebd914d8d2f.js +1 -0
  754. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-c4c57ebd914d8d2f.js +1 -0
  755. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-c4c57ebd914d8d2f.js +1 -0
  756. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-c4c57ebd914d8d2f.js +1 -0
  757. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-c4c57ebd914d8d2f.js +1 -0
  758. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-c4c57ebd914d8d2f.js +1 -0
  759. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-c4c57ebd914d8d2f.js +1 -0
  760. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-c4c57ebd914d8d2f.js +1 -0
  761. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-c4c57ebd914d8d2f.js +1 -0
  762. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-c4c57ebd914d8d2f.js +1 -0
  763. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-c4c57ebd914d8d2f.js +1 -0
  764. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-c4c57ebd914d8d2f.js +1 -0
  765. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-c4c57ebd914d8d2f.js +1 -0
  766. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-c4c57ebd914d8d2f.js +1 -0
  767. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-c4c57ebd914d8d2f.js +1 -0
  768. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-c4c57ebd914d8d2f.js +1 -0
  769. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-c4c57ebd914d8d2f.js +1 -0
  770. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-c4c57ebd914d8d2f.js +1 -0
  771. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-c4c57ebd914d8d2f.js +1 -0
  772. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-c4c57ebd914d8d2f.js +1 -0
  773. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-c4c57ebd914d8d2f.js +1 -0
  774. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-c4c57ebd914d8d2f.js +1 -0
  775. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-c4c57ebd914d8d2f.js +1 -0
  776. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-c4c57ebd914d8d2f.js +1 -0
  777. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-c4c57ebd914d8d2f.js +1 -0
  778. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-c4c57ebd914d8d2f.js +1 -0
  779. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-c4c57ebd914d8d2f.js +1 -0
  780. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-c4c57ebd914d8d2f.js +1 -0
  781. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-c4c57ebd914d8d2f.js +1 -0
  782. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-c4c57ebd914d8d2f.js +1 -0
  783. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-c4c57ebd914d8d2f.js +1 -0
  784. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-c4c57ebd914d8d2f.js +1 -0
  785. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-c4c57ebd914d8d2f.js +1 -0
  786. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-c4c57ebd914d8d2f.js +1 -0
  787. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-c4c57ebd914d8d2f.js +1 -0
  788. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-c4c57ebd914d8d2f.js +1 -0
  789. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-c4c57ebd914d8d2f.js +1 -0
  790. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-c4c57ebd914d8d2f.js +1 -0
  791. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-c4c57ebd914d8d2f.js +1 -0
  792. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-c4c57ebd914d8d2f.js +1 -0
  793. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-c4c57ebd914d8d2f.js +1 -0
  794. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-c4c57ebd914d8d2f.js +1 -0
  795. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-c4c57ebd914d8d2f.js +1 -0
  796. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-c4c57ebd914d8d2f.js +1 -0
  797. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-c4c57ebd914d8d2f.js +1 -0
  798. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-c4c57ebd914d8d2f.js +1 -0
  799. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-c4c57ebd914d8d2f.js +1 -0
  800. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-c4c57ebd914d8d2f.js +1 -0
  801. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-c4c57ebd914d8d2f.js +1 -0
  802. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-c4c57ebd914d8d2f.js +1 -0
  803. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-c4c57ebd914d8d2f.js +1 -0
  804. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-c4c57ebd914d8d2f.js +1 -0
  805. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-c4c57ebd914d8d2f.js +1 -0
  806. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-c4c57ebd914d8d2f.js +1 -0
  807. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-c4c57ebd914d8d2f.js +1 -0
  808. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-c4c57ebd914d8d2f.js +1 -0
  809. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-c4c57ebd914d8d2f.js +1 -0
  810. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-c4c57ebd914d8d2f.js +1 -0
  811. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-c4c57ebd914d8d2f.js +1 -0
  812. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-c4c57ebd914d8d2f.js +1 -0
  813. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-c4c57ebd914d8d2f.js +1 -0
  814. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-c4c57ebd914d8d2f.js +1 -0
  815. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-c4c57ebd914d8d2f.js +1 -0
  816. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-c4c57ebd914d8d2f.js +1 -0
  817. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-c4c57ebd914d8d2f.js +1 -0
  818. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-c4c57ebd914d8d2f.js +1 -0
  819. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-c4c57ebd914d8d2f.js +1 -0
  820. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-c4c57ebd914d8d2f.js +1 -0
  821. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-c4c57ebd914d8d2f.js +1 -0
  822. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-c4c57ebd914d8d2f.js +1 -0
  823. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-c4c57ebd914d8d2f.js +1 -0
  824. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-c4c57ebd914d8d2f.js +1 -0
  825. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-c4c57ebd914d8d2f.js +1 -0
  826. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-c4c57ebd914d8d2f.js +1 -0
  827. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-c4c57ebd914d8d2f.js +1 -0
  828. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-c4c57ebd914d8d2f.js +1 -0
  829. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-c4c57ebd914d8d2f.js +1 -0
  830. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-c4c57ebd914d8d2f.js +1 -0
  831. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-c4c57ebd914d8d2f.js +1 -0
  832. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-c4c57ebd914d8d2f.js +1 -0
  833. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-c4c57ebd914d8d2f.js +1 -0
  834. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-c4c57ebd914d8d2f.js +1 -0
  835. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-c4c57ebd914d8d2f.js +1 -0
  836. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-c4c57ebd914d8d2f.js +1 -0
  837. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-c4c57ebd914d8d2f.js +1 -0
  838. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-c4c57ebd914d8d2f.js +1 -0
  839. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-c4c57ebd914d8d2f.js +1 -0
  840. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-c4c57ebd914d8d2f.js +1 -0
  841. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-c4c57ebd914d8d2f.js +1 -0
  842. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-c4c57ebd914d8d2f.js +1 -0
  843. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-c4c57ebd914d8d2f.js +1 -0
  844. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-c4c57ebd914d8d2f.js +1 -0
  845. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-c4c57ebd914d8d2f.js +1 -0
  846. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-c4c57ebd914d8d2f.js +1 -0
  847. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-c4c57ebd914d8d2f.js +1 -0
  848. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-c4c57ebd914d8d2f.js +1 -0
  849. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-c4c57ebd914d8d2f.js +1 -0
  850. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-c4c57ebd914d8d2f.js +1 -0
  851. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-c4c57ebd914d8d2f.js +1 -0
  852. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-c4c57ebd914d8d2f.js +1 -0
  853. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-c4c57ebd914d8d2f.js +1 -0
  854. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-c4c57ebd914d8d2f.js +1 -0
  855. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-c4c57ebd914d8d2f.js +1 -0
  856. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-c4c57ebd914d8d2f.js +1 -0
  857. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-c4c57ebd914d8d2f.js +1 -0
  858. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-c4c57ebd914d8d2f.js +1 -0
  859. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-c4c57ebd914d8d2f.js +1 -0
  860. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-c4c57ebd914d8d2f.js +1 -0
  861. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-c4c57ebd914d8d2f.js +1 -0
  862. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-c4c57ebd914d8d2f.js +1 -0
  863. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-c4c57ebd914d8d2f.js +1 -0
  864. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-c4c57ebd914d8d2f.js +1 -0
  865. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-c4c57ebd914d8d2f.js +1 -0
  866. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-c4c57ebd914d8d2f.js +1 -0
  867. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-c4c57ebd914d8d2f.js +1 -0
  868. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-c4c57ebd914d8d2f.js +1 -0
  869. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-c4c57ebd914d8d2f.js +1 -0
  870. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-c4c57ebd914d8d2f.js +1 -0
  871. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-c4c57ebd914d8d2f.js +1 -0
  872. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-c4c57ebd914d8d2f.js +1 -0
  873. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-c4c57ebd914d8d2f.js +1 -0
  874. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-c4c57ebd914d8d2f.js +1 -0
  875. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-c4c57ebd914d8d2f.js +1 -0
  876. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-c4c57ebd914d8d2f.js +1 -0
  877. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-c4c57ebd914d8d2f.js +1 -0
  878. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-c4c57ebd914d8d2f.js +1 -0
  879. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-c4c57ebd914d8d2f.js +1 -0
  880. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-c4c57ebd914d8d2f.js +1 -0
  881. package/cli/app/.next-cli-build/static/chunks/app/api/providers/cloudflare-ai/discover-models/route-c4c57ebd914d8d2f.js +1 -0
  882. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-c4c57ebd914d8d2f.js +1 -0
  883. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/import/route-c4c57ebd914d8d2f.js +1 -0
  884. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/login/[jobId]/route-c4c57ebd914d8d2f.js +1 -0
  885. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/login/route-c4c57ebd914d8d2f.js +1 -0
  886. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-c4c57ebd914d8d2f.js +1 -0
  887. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/discover-models/route-c4c57ebd914d8d2f.js +1 -0
  888. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/models/route-c4c57ebd914d8d2f.js +1 -0
  889. package/cli/app/.next-cli-build/static/chunks/app/api/providers/opencode/discover-models/route-c4c57ebd914d8d2f.js +1 -0
  890. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-c4c57ebd914d8d2f.js +1 -0
  891. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-c4c57ebd914d8d2f.js +1 -0
  892. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-c4c57ebd914d8d2f.js +1 -0
  893. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-c4c57ebd914d8d2f.js +1 -0
  894. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-c4c57ebd914d8d2f.js +1 -0
  895. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-c4c57ebd914d8d2f.js +1 -0
  896. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-c4c57ebd914d8d2f.js +1 -0
  897. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-c4c57ebd914d8d2f.js +1 -0
  898. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-c4c57ebd914d8d2f.js +1 -0
  899. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-c4c57ebd914d8d2f.js +1 -0
  900. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-c4c57ebd914d8d2f.js +1 -0
  901. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-c4c57ebd914d8d2f.js +1 -0
  902. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-c4c57ebd914d8d2f.js +1 -0
  903. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-c4c57ebd914d8d2f.js +1 -0
  904. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-c4c57ebd914d8d2f.js +1 -0
  905. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-c4c57ebd914d8d2f.js +1 -0
  906. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-c4c57ebd914d8d2f.js +1 -0
  907. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-c4c57ebd914d8d2f.js +1 -0
  908. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-c4c57ebd914d8d2f.js +1 -0
  909. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-c4c57ebd914d8d2f.js +1 -0
  910. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-c4c57ebd914d8d2f.js +1 -0
  911. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-c4c57ebd914d8d2f.js +1 -0
  912. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-c4c57ebd914d8d2f.js +1 -0
  913. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-c4c57ebd914d8d2f.js +1 -0
  914. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-c4c57ebd914d8d2f.js +1 -0
  915. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-c4c57ebd914d8d2f.js +1 -0
  916. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-c4c57ebd914d8d2f.js +1 -0
  917. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-c4c57ebd914d8d2f.js +1 -0
  918. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-c4c57ebd914d8d2f.js +1 -0
  919. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-c4c57ebd914d8d2f.js +1 -0
  920. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-c4c57ebd914d8d2f.js +1 -0
  921. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-c4c57ebd914d8d2f.js +1 -0
  922. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-c4c57ebd914d8d2f.js +1 -0
  923. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-c4c57ebd914d8d2f.js +1 -0
  924. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-c4c57ebd914d8d2f.js +1 -0
  925. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-c4c57ebd914d8d2f.js +1 -0
  926. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-c4c57ebd914d8d2f.js +1 -0
  927. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-c4c57ebd914d8d2f.js +1 -0
  928. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-c4c57ebd914d8d2f.js +1 -0
  929. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-c4c57ebd914d8d2f.js +1 -0
  930. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-c4c57ebd914d8d2f.js +1 -0
  931. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-c4c57ebd914d8d2f.js +1 -0
  932. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-c4c57ebd914d8d2f.js +1 -0
  933. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-c4c57ebd914d8d2f.js +1 -0
  934. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-c4c57ebd914d8d2f.js +1 -0
  935. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-c4c57ebd914d8d2f.js +1 -0
  936. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-c4c57ebd914d8d2f.js +1 -0
  937. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-c4c57ebd914d8d2f.js +1 -0
  938. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-c4c57ebd914d8d2f.js +1 -0
  939. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-c4c57ebd914d8d2f.js +1 -0
  940. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-c4c57ebd914d8d2f.js +1 -0
  941. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-c4c57ebd914d8d2f.js +1 -0
  942. package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-c4c57ebd914d8d2f.js +1 -0
  943. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-c4c57ebd914d8d2f.js +1 -0
  944. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-c4c57ebd914d8d2f.js +1 -0
  945. package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-c4c57ebd914d8d2f.js +1 -0
  946. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-c4c57ebd914d8d2f.js +1 -0
  947. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-c4c57ebd914d8d2f.js +1 -0
  948. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-c4c57ebd914d8d2f.js +1 -0
  949. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-c4c57ebd914d8d2f.js +1 -0
  950. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-c4c57ebd914d8d2f.js +1 -0
  951. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-c4c57ebd914d8d2f.js +1 -0
  952. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-c4c57ebd914d8d2f.js +1 -0
  953. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-c4c57ebd914d8d2f.js +1 -0
  954. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-c4c57ebd914d8d2f.js +1 -0
  955. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-c4c57ebd914d8d2f.js +1 -0
  956. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-c4c57ebd914d8d2f.js +1 -0
  957. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-c4c57ebd914d8d2f.js +1 -0
  958. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-c4c57ebd914d8d2f.js +1 -0
  959. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-c4c57ebd914d8d2f.js +1 -0
  960. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-c4c57ebd914d8d2f.js +1 -0
  961. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-c4c57ebd914d8d2f.js +1 -0
  962. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-c4c57ebd914d8d2f.js +1 -0
  963. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-c4c57ebd914d8d2f.js +1 -0
  964. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/content/route-c4c57ebd914d8d2f.js +1 -0
  965. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-c4c57ebd914d8d2f.js +1 -0
  966. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-c4c57ebd914d8d2f.js +1 -0
  967. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-c4c57ebd914d8d2f.js +1 -0
  968. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-c4c57ebd914d8d2f.js +1 -0
  969. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-c4c57ebd914d8d2f.js +1 -0
  970. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-c4c57ebd914d8d2f.js +1 -0
  971. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-c4c57ebd914d8d2f.js +1 -0
  972. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-c4c57ebd914d8d2f.js +1 -0
  973. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-c4c57ebd914d8d2f.js +1 -0
  974. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-c4c57ebd914d8d2f.js +1 -0
  975. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-c4c57ebd914d8d2f.js +1 -0
  976. package/cli/app/.next-cli-build/static/chunks/app/page-c4c57ebd914d8d2f.js +1 -0
  977. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-c4c57ebd914d8d2f.js +1 -0
  978. package/cli/app/.next-cli-build/static/chunks/app/skills/[skill]/SKILL.md/route-c4c57ebd914d8d2f.js +1 -0
  979. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-c4c57ebd914d8d2f.js +1 -0
  980. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-c4c57ebd914d8d2f.js +1 -0
  981. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-c4c57ebd914d8d2f.js +1 -0
  982. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-c4c57ebd914d8d2f.js +1 -0
  983. package/cli/app/.next-cli-build/static/css/18d2acbabd7c062d.css +1 -0
  984. package/cli/app/.next-cli-build/static/wcLDlnOUizE-0wAchxA8u/_buildManifest.js +1 -0
  985. package/cli/app/CHANGELOG.md +18 -0
  986. package/cli/app/package.json +1 -1
  987. package/cli/package.json +1 -1
  988. package/package.json +1 -1
  989. package/cli/app/.next-cli-build/server/chunks/2339.js +0 -1
  990. package/cli/app/.next-cli-build/server/chunks/4493.js +0 -2
  991. package/cli/app/.next-cli-build/server/chunks/5224.js +0 -1
  992. package/cli/app/.next-cli-build/server/chunks/5436.js +0 -4
  993. package/cli/app/.next-cli-build/server/chunks/773.js +0 -1
  994. package/cli/app/.next-cli-build/static/ZIGsI8a318uMuGwW4orxh/_buildManifest.js +0 -1
  995. package/cli/app/.next-cli-build/static/chunks/620-433b7d4449a322be.js +0 -1
  996. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-cc4cd8701a14c45e.js +0 -3
  997. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-36f947b5449cdf6b.js +0 -1
  998. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-c8a0d3b188f8e4f8.js +0 -1
  999. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-c8a0d3b188f8e4f8.js +0 -1
  1000. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-c8a0d3b188f8e4f8.js +0 -1
  1001. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-c8a0d3b188f8e4f8.js +0 -1
  1002. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-c8a0d3b188f8e4f8.js +0 -1
  1003. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-c8a0d3b188f8e4f8.js +0 -1
  1004. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-c8a0d3b188f8e4f8.js +0 -1
  1005. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-c8a0d3b188f8e4f8.js +0 -1
  1006. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-c8a0d3b188f8e4f8.js +0 -1
  1007. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-c8a0d3b188f8e4f8.js +0 -1
  1008. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-c8a0d3b188f8e4f8.js +0 -1
  1009. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-c8a0d3b188f8e4f8.js +0 -1
  1010. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1011. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1012. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-c8a0d3b188f8e4f8.js +0 -1
  1013. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1014. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1015. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-c8a0d3b188f8e4f8.js +0 -1
  1016. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-c8a0d3b188f8e4f8.js +0 -1
  1017. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1018. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1019. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1020. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1021. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1022. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1023. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1024. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1025. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1026. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-c8a0d3b188f8e4f8.js +0 -1
  1027. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-c8a0d3b188f8e4f8.js +0 -1
  1028. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-c8a0d3b188f8e4f8.js +0 -1
  1029. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-c8a0d3b188f8e4f8.js +0 -1
  1030. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-c8a0d3b188f8e4f8.js +0 -1
  1031. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-c8a0d3b188f8e4f8.js +0 -1
  1032. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-c8a0d3b188f8e4f8.js +0 -1
  1033. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-c8a0d3b188f8e4f8.js +0 -1
  1034. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-c8a0d3b188f8e4f8.js +0 -1
  1035. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-c8a0d3b188f8e4f8.js +0 -1
  1036. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-c8a0d3b188f8e4f8.js +0 -1
  1037. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-c8a0d3b188f8e4f8.js +0 -1
  1038. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-c8a0d3b188f8e4f8.js +0 -1
  1039. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-c8a0d3b188f8e4f8.js +0 -1
  1040. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-c8a0d3b188f8e4f8.js +0 -1
  1041. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-c8a0d3b188f8e4f8.js +0 -1
  1042. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-c8a0d3b188f8e4f8.js +0 -1
  1043. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-c8a0d3b188f8e4f8.js +0 -1
  1044. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-c8a0d3b188f8e4f8.js +0 -1
  1045. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-c8a0d3b188f8e4f8.js +0 -1
  1046. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-c8a0d3b188f8e4f8.js +0 -1
  1047. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-c8a0d3b188f8e4f8.js +0 -1
  1048. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-c8a0d3b188f8e4f8.js +0 -1
  1049. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-c8a0d3b188f8e4f8.js +0 -1
  1050. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-c8a0d3b188f8e4f8.js +0 -1
  1051. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-c8a0d3b188f8e4f8.js +0 -1
  1052. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-c8a0d3b188f8e4f8.js +0 -1
  1053. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-c8a0d3b188f8e4f8.js +0 -1
  1054. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-c8a0d3b188f8e4f8.js +0 -1
  1055. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-c8a0d3b188f8e4f8.js +0 -1
  1056. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-c8a0d3b188f8e4f8.js +0 -1
  1057. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-c8a0d3b188f8e4f8.js +0 -1
  1058. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-c8a0d3b188f8e4f8.js +0 -1
  1059. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-c8a0d3b188f8e4f8.js +0 -1
  1060. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-c8a0d3b188f8e4f8.js +0 -1
  1061. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-c8a0d3b188f8e4f8.js +0 -1
  1062. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-c8a0d3b188f8e4f8.js +0 -1
  1063. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-c8a0d3b188f8e4f8.js +0 -1
  1064. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-c8a0d3b188f8e4f8.js +0 -1
  1065. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +0 -1
  1066. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +0 -1
  1067. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +0 -1
  1068. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-c8a0d3b188f8e4f8.js +0 -1
  1069. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-c8a0d3b188f8e4f8.js +0 -1
  1070. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +0 -1
  1071. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +0 -1
  1072. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +0 -1
  1073. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-c8a0d3b188f8e4f8.js +0 -1
  1074. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-c8a0d3b188f8e4f8.js +0 -1
  1075. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +0 -1
  1076. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +0 -1
  1077. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +0 -1
  1078. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-c8a0d3b188f8e4f8.js +0 -1
  1079. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-c8a0d3b188f8e4f8.js +0 -1
  1080. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-c8a0d3b188f8e4f8.js +0 -1
  1081. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-c8a0d3b188f8e4f8.js +0 -1
  1082. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +0 -1
  1083. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +0 -1
  1084. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +0 -1
  1085. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-c8a0d3b188f8e4f8.js +0 -1
  1086. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-c8a0d3b188f8e4f8.js +0 -1
  1087. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-c8a0d3b188f8e4f8.js +0 -1
  1088. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-c8a0d3b188f8e4f8.js +0 -1
  1089. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-c8a0d3b188f8e4f8.js +0 -1
  1090. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-c8a0d3b188f8e4f8.js +0 -1
  1091. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-c8a0d3b188f8e4f8.js +0 -1
  1092. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-c8a0d3b188f8e4f8.js +0 -1
  1093. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +0 -1
  1094. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +0 -1
  1095. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +0 -1
  1096. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-c8a0d3b188f8e4f8.js +0 -1
  1097. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-c8a0d3b188f8e4f8.js +0 -1
  1098. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-c8a0d3b188f8e4f8.js +0 -1
  1099. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-c8a0d3b188f8e4f8.js +0 -1
  1100. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-c8a0d3b188f8e4f8.js +0 -1
  1101. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-c8a0d3b188f8e4f8.js +0 -1
  1102. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +0 -1
  1103. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +0 -1
  1104. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +0 -1
  1105. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-c8a0d3b188f8e4f8.js +0 -1
  1106. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-c8a0d3b188f8e4f8.js +0 -1
  1107. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-c8a0d3b188f8e4f8.js +0 -1
  1108. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-c8a0d3b188f8e4f8.js +0 -1
  1109. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-c8a0d3b188f8e4f8.js +0 -1
  1110. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-c8a0d3b188f8e4f8.js +0 -1
  1111. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +0 -1
  1112. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +0 -1
  1113. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +0 -1
  1114. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-c8a0d3b188f8e4f8.js +0 -1
  1115. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-c8a0d3b188f8e4f8.js +0 -1
  1116. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-c8a0d3b188f8e4f8.js +0 -1
  1117. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-c8a0d3b188f8e4f8.js +0 -1
  1118. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-c8a0d3b188f8e4f8.js +0 -1
  1119. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-c8a0d3b188f8e4f8.js +0 -1
  1120. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-c8a0d3b188f8e4f8.js +0 -1
  1121. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-c8a0d3b188f8e4f8.js +0 -1
  1122. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-c8a0d3b188f8e4f8.js +0 -1
  1123. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-c8a0d3b188f8e4f8.js +0 -1
  1124. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-c8a0d3b188f8e4f8.js +0 -1
  1125. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-c8a0d3b188f8e4f8.js +0 -1
  1126. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-c8a0d3b188f8e4f8.js +0 -1
  1127. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/import/route-c8a0d3b188f8e4f8.js +0 -1
  1128. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/login/[jobId]/route-c8a0d3b188f8e4f8.js +0 -1
  1129. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/login/route-c8a0d3b188f8e4f8.js +0 -1
  1130. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-c8a0d3b188f8e4f8.js +0 -1
  1131. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/discover-models/route-c8a0d3b188f8e4f8.js +0 -1
  1132. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/models/route-c8a0d3b188f8e4f8.js +0 -1
  1133. package/cli/app/.next-cli-build/static/chunks/app/api/providers/opencode/discover-models/route-c8a0d3b188f8e4f8.js +0 -1
  1134. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-c8a0d3b188f8e4f8.js +0 -1
  1135. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-c8a0d3b188f8e4f8.js +0 -1
  1136. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-c8a0d3b188f8e4f8.js +0 -1
  1137. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-c8a0d3b188f8e4f8.js +0 -1
  1138. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-c8a0d3b188f8e4f8.js +0 -1
  1139. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-c8a0d3b188f8e4f8.js +0 -1
  1140. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-c8a0d3b188f8e4f8.js +0 -1
  1141. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-c8a0d3b188f8e4f8.js +0 -1
  1142. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-c8a0d3b188f8e4f8.js +0 -1
  1143. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-c8a0d3b188f8e4f8.js +0 -1
  1144. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-c8a0d3b188f8e4f8.js +0 -1
  1145. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-c8a0d3b188f8e4f8.js +0 -1
  1146. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-c8a0d3b188f8e4f8.js +0 -1
  1147. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-c8a0d3b188f8e4f8.js +0 -1
  1148. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-c8a0d3b188f8e4f8.js +0 -1
  1149. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-c8a0d3b188f8e4f8.js +0 -1
  1150. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-c8a0d3b188f8e4f8.js +0 -1
  1151. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-c8a0d3b188f8e4f8.js +0 -1
  1152. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-c8a0d3b188f8e4f8.js +0 -1
  1153. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-c8a0d3b188f8e4f8.js +0 -1
  1154. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-c8a0d3b188f8e4f8.js +0 -1
  1155. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-c8a0d3b188f8e4f8.js +0 -1
  1156. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-c8a0d3b188f8e4f8.js +0 -1
  1157. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-c8a0d3b188f8e4f8.js +0 -1
  1158. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-c8a0d3b188f8e4f8.js +0 -1
  1159. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-c8a0d3b188f8e4f8.js +0 -1
  1160. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-c8a0d3b188f8e4f8.js +0 -1
  1161. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-c8a0d3b188f8e4f8.js +0 -1
  1162. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-c8a0d3b188f8e4f8.js +0 -1
  1163. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-c8a0d3b188f8e4f8.js +0 -1
  1164. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-c8a0d3b188f8e4f8.js +0 -1
  1165. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-c8a0d3b188f8e4f8.js +0 -1
  1166. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-c8a0d3b188f8e4f8.js +0 -1
  1167. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-c8a0d3b188f8e4f8.js +0 -1
  1168. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-c8a0d3b188f8e4f8.js +0 -1
  1169. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-c8a0d3b188f8e4f8.js +0 -1
  1170. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-c8a0d3b188f8e4f8.js +0 -1
  1171. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-c8a0d3b188f8e4f8.js +0 -1
  1172. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-c8a0d3b188f8e4f8.js +0 -1
  1173. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-c8a0d3b188f8e4f8.js +0 -1
  1174. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-c8a0d3b188f8e4f8.js +0 -1
  1175. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-c8a0d3b188f8e4f8.js +0 -1
  1176. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-c8a0d3b188f8e4f8.js +0 -1
  1177. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-c8a0d3b188f8e4f8.js +0 -1
  1178. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-c8a0d3b188f8e4f8.js +0 -1
  1179. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-c8a0d3b188f8e4f8.js +0 -1
  1180. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-c8a0d3b188f8e4f8.js +0 -1
  1181. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-c8a0d3b188f8e4f8.js +0 -1
  1182. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-c8a0d3b188f8e4f8.js +0 -1
  1183. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-c8a0d3b188f8e4f8.js +0 -1
  1184. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-c8a0d3b188f8e4f8.js +0 -1
  1185. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-c8a0d3b188f8e4f8.js +0 -1
  1186. package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-c8a0d3b188f8e4f8.js +0 -1
  1187. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-c8a0d3b188f8e4f8.js +0 -1
  1188. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-c8a0d3b188f8e4f8.js +0 -1
  1189. package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-c8a0d3b188f8e4f8.js +0 -1
  1190. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-c8a0d3b188f8e4f8.js +0 -1
  1191. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-c8a0d3b188f8e4f8.js +0 -1
  1192. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-c8a0d3b188f8e4f8.js +0 -1
  1193. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-c8a0d3b188f8e4f8.js +0 -1
  1194. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-c8a0d3b188f8e4f8.js +0 -1
  1195. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-c8a0d3b188f8e4f8.js +0 -1
  1196. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-c8a0d3b188f8e4f8.js +0 -1
  1197. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-c8a0d3b188f8e4f8.js +0 -1
  1198. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-c8a0d3b188f8e4f8.js +0 -1
  1199. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-c8a0d3b188f8e4f8.js +0 -1
  1200. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-c8a0d3b188f8e4f8.js +0 -1
  1201. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-c8a0d3b188f8e4f8.js +0 -1
  1202. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-c8a0d3b188f8e4f8.js +0 -1
  1203. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-c8a0d3b188f8e4f8.js +0 -1
  1204. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-c8a0d3b188f8e4f8.js +0 -1
  1205. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-c8a0d3b188f8e4f8.js +0 -1
  1206. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-c8a0d3b188f8e4f8.js +0 -1
  1207. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-c8a0d3b188f8e4f8.js +0 -1
  1208. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/content/route-c8a0d3b188f8e4f8.js +0 -1
  1209. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-c8a0d3b188f8e4f8.js +0 -1
  1210. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-c8a0d3b188f8e4f8.js +0 -1
  1211. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-c8a0d3b188f8e4f8.js +0 -1
  1212. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-c8a0d3b188f8e4f8.js +0 -1
  1213. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-c8a0d3b188f8e4f8.js +0 -1
  1214. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-c8a0d3b188f8e4f8.js +0 -1
  1215. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-c8a0d3b188f8e4f8.js +0 -1
  1216. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-c8a0d3b188f8e4f8.js +0 -1
  1217. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-c8a0d3b188f8e4f8.js +0 -1
  1218. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-c8a0d3b188f8e4f8.js +0 -1
  1219. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-c8a0d3b188f8e4f8.js +0 -1
  1220. package/cli/app/.next-cli-build/static/chunks/app/page-c8a0d3b188f8e4f8.js +0 -1
  1221. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-c8a0d3b188f8e4f8.js +0 -1
  1222. package/cli/app/.next-cli-build/static/chunks/app/skills/[skill]/SKILL.md/route-c8a0d3b188f8e4f8.js +0 -1
  1223. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-c8a0d3b188f8e4f8.js +0 -1
  1224. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-c8a0d3b188f8e4f8.js +0 -1
  1225. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-c8a0d3b188f8e4f8.js +0 -1
  1226. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-c8a0d3b188f8e4f8.js +0 -1
  1227. package/cli/app/.next-cli-build/static/css/d35ca396ccb15df7.css +0 -1
  1228. package/cli/app/public/providers/mimo-free.png +0 -0
  1229. /package/cli/app/.next-cli-build/static/{ZIGsI8a318uMuGwW4orxh → wcLDlnOUizE-0wAchxA8u}/_ssgManifest.js +0 -0
@@ -0,0 +1,3 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{15919:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>eb});var a=s(95155),r=s(12115),i=s(73321),n=s(98500),l=s.n(n),o=s(5772),d=s(35497),c=s(52679);let u=["kiro","codebuddy","codebuddy-cn","qoder","antigravity","cloudflare-ai","grok-cli"];function m(e){return u.includes(String(e||""))}function x(e){let t=String(e||"").trim();return t&&m(t)?`/dashboard/automation?provider=${encodeURIComponent(t)}`:"/dashboard/automation"}var p=s(28777),h=s(11059),f=s(73006);let b=new Map;async function g(e){if(!e?.url||!e?.type)return[];let t=b.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 b.set(e.url,{data:a,expiresAt:Date.now()+6e5}),a}catch{return[]}}var y=s(12252),v=s(70217),j=s(51716);let k=Object.freeze({oauth:Object.freeze({id:"oauth",label:"OAuth",icon:"lock",description:"Connect through the provider sign-in flow."}),apikey:Object.freeze({id:"apikey",label:"API Key",icon:"key",description:"Connect with an API key or provider credential."}),cookie:Object.freeze({id:"cookie",label:"Browser Cookie",icon:"cookie",description:"Connect with a signed-in browser session cookie."}),"quota-cookie":Object.freeze({id:"quota-cookie",label:"Quota Cookie",icon:"cookie",description:"Attach a web session so Quota Tracker can read credits."})}),w=Object.freeze({codebuddy:Object.freeze(["quota-cookie"]),iflow:Object.freeze(["cookie"])}),N=Object.freeze({qoder:Object.freeze({apikey:Object.freeze({label:"Qoder PAT"})}),xai:Object.freeze({oauth:Object.freeze({label:"Grok Build OAuth"}),apikey:Object.freeze({label:"xAI API Key"})})});function C(e,t){e.includes(t)||e.push(t)}var S=s(65921),A=s(14051),$=s.n(A);function T({model:e,fullModel:t,alias:s,copied:r,onCopy:i,testStatus:n,isCustom:l,isFree:o,onDeleteAlias:d,onTest:c,isTesting:u,onDisable:m,thinkingSuffix:x}){let p="ok"===n?"#22c55e":"error"===n?"#ef4444":void 0,h=x?`${t}(${x})`:t;return(0,a.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===n?"border-green-500/40":"error"===n?"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:p?{color:p}:void 0,children:"ok"===n?"check_circle":"error"===n?"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:h}),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:u,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${u?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:u?{animation:"spin 1s linear infinite"}:void 0,children:u?"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:u?"Testing...":"Test"})]}),(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:()=>i(h,`model-${e.id}`),className:"rounded p-0.5 text-text-muted hover:bg-sidebar hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:r===`model-${e.id}`?"check":"content_copy"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:r===`model-${e.id}`?"Copied!":"Copy"})]}),l?(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 O({models:e,modelAliases:t,providerStorageAlias:s,providerDisplayAlias:a}){let r={...t||{}},i=new Set(Object.values(r)),n=[];for(let t of Array.isArray(e)?e:[]){let e=function(e){if(!e)return"";if("string"==typeof e)return e.trim();let t=e.id||e.name||e.model;return"string"==typeof t?t.trim():""}(t);if(!e)continue;let l=`${s}/${e}`;if(i.has(l))continue;let o=function(e,t,s){let a=e.split("/"),r=a[a.length-1];if(!r)return"";if(!t[r])return r;let i=`${s}-${r}`;if(!t[i])return i;let n=2;for(;t[`${i}-${n}`];)n+=1;return`${i}-${n}`}(e,r,a);o&&(n.push({alias:o,model:l,modelId:e}),r[o]=l,i.add(l))}return n}function P({modelId:e,fullModel:t,copied:s,onCopy:r,onDeleteAlias:i,onTest:n,testStatus:l,isTesting:o}){let d="ok"===l?"#22c55e":"error"===l?"#ef4444":void 0;return(0,a.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===l?"border-green-500/40":"error"===l?"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"===l?"check_circle":"error"===l?"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:()=>r(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"})]}),n&&(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:n,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:i,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 E({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:s,copied:i,onCopy:n,onSetAlias:l,onDeleteAlias:o,onAliasesChanged:c,connections:u,isAnthropic:m}){let[x,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(!1),[b,g]=(0,r.useState)(!1),[y,v]=(0,r.useState)(()=>new Set),[j,k]=(0,r.useState)({}),w=async t=>{let s=`${e}/${t}`;v(e=>new Set(e).add(t));try{let e=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:s})}),t=await e.json();k(e=>({...e,[s]:t.ok?"ok":"error"}))}catch{k(e=>({...e,[s]:"error"}))}finally{v(e=>{let s=new Set(e);return s.delete(t),s})}},N=Object.entries(s).filter(([,t])=>t.startsWith(`${e}/`)).map(([t,s])=>({modelId:s.replace(`${e}/`,""),fullModel:s,alias:t})),C=async()=>{if(!x.trim()||h)return;let a=x.trim(),[r]=O({models:[{id:a}],modelAliases:s,providerStorageAlias:e,providerDisplayAlias:t});if(!r)return void alert("This model already exists.");f(!0);try{await l(a,r.alias,e),p("")}catch(e){console.log("Error adding model:",e),alert(e?.message||`Failed to add model "${a}".`)}finally{f(!1)}},S=async()=>{if(b)return;let a=u.find(e=>!1!==e.isActive);if(a){g(!0);try{let r=await fetch(`/api/providers/${a.id}/models`),i=await r.json();if(!r.ok)return void alert(i.error||"Failed to import models");let n=i.models||[];if(0===n.length)return void alert("No models returned from /models.");let l=O({models:n,modelAliases:s,providerStorageAlias:e,providerDisplayAlias:t});if(0===l.length)return void alert("No new models were added.");let o=await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({aliases:l.map(({alias:e,model:t})=>({alias:e,model:t}))})}),d=await o.json();if(!o.ok)throw Error(d.error||"Failed to save imported models.");await c(),alert(`Successfully added ${d.count||l.length} models.`)}catch(e){console.log("Error importing models:",e),alert(e?.message||"Failed to import models from /models.")}finally{g(!1)}}},A=u.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 ",m?"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:x,onChange:e=>p(e.target.value),onKeyDown:e=>"Enter"===e.key&&C(),placeholder:m?"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:C,disabled:!x.trim()||h,children:h?"Adding...":"Add"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"download",onClick:S,disabled:!A||b,children:b?"Importing...":"Import from /models"})]}),!A&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),N.length>0&&(0,a.jsx)("div",{className:"flex flex-col gap-3",children:N.map(({modelId:s,fullModel:r,alias:l})=>(0,a.jsx)(P,{modelId:s,fullModel:`${t}/${s}`,copied:i,onCopy:n,onDeleteAlias:()=>o(l),onTest:u.length>0?()=>w(s):void 0,testStatus:j[`${e}/${s}`],isTesting:y.has(s)},r))})]})}T.propTypes={model:$().shape({id:$().string.isRequired}).isRequired,fullModel:$().string.isRequired,alias:$().string,copied:$().string,onCopy:$().func.isRequired,testStatus:$().oneOf(["ok","error"]),isCustom:$().bool,isFree:$().bool,onDeleteAlias:$().func,onTest:$().func,isTesting:$().bool,onDisable:$().func,thinkingSuffix:$().string},$().string.isRequired,$().string.isRequired,$().string,$().func.isRequired,$().func.isRequired,$().func,$().oneOf(["ok","error"]),$().bool,$().string.isRequired,$().object.isRequired,$().string,$().func.isRequired,$().func.isRequired,$().func.isRequired,E.propTypes={providerStorageAlias:$().string.isRequired,providerDisplayAlias:$().string.isRequired,modelAliases:$().object.isRequired,copied:$().string,onCopy:$().func.isRequired,onSetAlias:$().func.isRequired,onDeleteAlias:$().func.isRequired,onAliasesChanged:$().func.isRequired,connections:$().arrayOf($().shape({id:$().string,isActive:$().bool})).isRequired,isAnthropic:$().bool};var R=s(81277);function _({until:e}){let[t,s]=(0,r.useState)("");return((0,r.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime();if(!Number.isFinite(t))return void s("");let a=t-Date.now();if(a<=0)return void s("");let r=Math.floor(a/1e3);if(r<60)s(`${r}s`);else if(r<3600)s(`${Math.floor(r/60)}m ${r%60}s`);else{let e=Math.floor(r/3600),t=Math.floor(r%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 I({connection:e,proxyPools:t,isOAuth:s,isFirst:i,isLast:n,onMoveUp:l,onMoveDown:o,onToggleActive:c,onUpdateProxy:u,onEdit:m,onDelete:x,autoPingEnabled:p=!1,onToggleAutoPing:h,oneByOneStatus:f=null}){let[b,g]=(0,r.useState)(!1),[y,j]=(0,r.useState)(!1),k=(0,r.useRef)(null),w=(0,r.useMemo)(()=>new Map((t||[]).map(e=>[e.id,e])),[t]),N=(0,r.useMemo)(()=>t||[],[t]),C=e.providerSpecificData?.proxyPoolId||null,S=C?w.get(C):null,A=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,$=!!C||A,T=S?`Pool: ${S.name}`:C?`Pool: ${C} (inactive/missing)`:A?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",O="";if(S?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=S?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);O=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{O=t}}let P=S?.noProxy||e.providerSpecificData?.connectionNoProxy||"",E="default";S?.isActive===!0?E="success":(C||A)&&(E="error"),(0,r.useEffect)(()=>{if(!b)return;let e=e=>{k.current&&!k.current.contains(e.target)&&g(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b]);let z=async e=>{j(!0);try{await u("__none__"===e?null:e)}finally{j(!1),g(!1)}},q=e.authType||(s?"oauth":"apikey"),M="oauth"===q,D="cookie"===q,U=e=>"string"==typeof e&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),L=M?U(e.email)?e.email:U(e.name)?e.name:e.name||e.email||e.displayName||"OAuth Account":e.name||e.email||e.displayName||"API Key",F=(0,R.c)(e),K=null!==F,B="unavailable"!==e.testStatus||K?e.testStatus:"active",J=(0,v.d4)(e),W=!!e.quarantinedAt,G={policy_suspended:"Policy suspension",account_validation_required:"Account verification required",credential_rejected:"Credential rejected",reauth_required:"Sign-in required",authentication:"Repeated authentication failure"}[e.failureClass]||e.quarantineReason||"Account quarantined",H=Number.isFinite(Date.parse(e.quarantinedAt))?new Date(e.quarantinedAt).toLocaleString():e.quarantinedAt||null,V=e.modelLockReason?.resetsAt,Q=Number.isFinite(Date.parse(V))?new Date(V).toLocaleString():V||null,Z=()=>f?"queued"===f.state?"queued":"testing"===f.state?"testing":"success"===f.state?"success":"failed"===f.state?f.error?`failed: ${f.error}`:"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&&!W?"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:l,disabled:i,className:`p-0.5 rounded ${i?"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:n,className:`p-0.5 rounded ${n?"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:D?"cookie":M?"lock":"key"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:L}),(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:(()=>{if(!1===e.isActive)return"default";let t=(0,v.BU)(J);return"active"!==J.key?t:"active"===B||"success"===B?"success":"error"===B||"expired"===B||"unavailable"===B?"error":"default"})(),size:"sm",dot:!0,children:J.label||B||"unknown"}),(0,a.jsx)(d.Ex,{variant:"default",size:"sm",children:M?"OAuth":D?"Cookie":"API Key"}),W&&(0,a.jsx)(d.Ex,{variant:"error",size:"sm",children:"Quarantined"}),$&&(0,a.jsx)(d.Ex,{variant:E,size:"sm",children:"Proxy"}),e.autoDisabledAt&&!W&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted",children:["token_expired"===e.autoDisabledReason?"Token expired":"banned"===e.autoDisabledReason?"Banned":"quota_exhausted"===e.autoDisabledReason?"Quota exhausted":"Auto-disabled"," — ",new Date(e.autoDisabledAt).toLocaleDateString()]}),W&&(0,a.jsxs)("span",{className:"max-w-full truncate text-xs text-red-600 dark:text-red-400 sm:max-w-[420px]",title:`${e.quarantineReason||G}${H?` - ${H}`:""}`,children:[G,H?` - ${H}`:""]}),K&&!1!==e.isActive&&(0,a.jsx)(_,{until:F}),K&&e.modelLockReason&&!1!==e.isActive&&(0,a.jsxs)("span",{className:"max-w-full truncate text-xs text-amber-600 dark:text-amber-400 sm:max-w-[360px]",title:`${e.modelLockReason.reason}${Q?` — resets ${Q}`:""}`,children:[e.modelLockReason.model,e.modelLockReason.providerErrorCode?` (${e.modelLockReason.providerErrorCode})`:"",Q?` — resets ${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]}),Z()&&(0,a.jsx)(d.Ex,{variant:f?"success"===f.state?"success":"failed"===f.state?"error":"testing"===f.state?"primary":"default":"default",size:"sm",children:Z()})]}),$&&(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:T,children:T}),O&&(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:O}),P&&(0,a.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:P,children:["no_proxy: ",P]})]}),W&&!1===e.isActive&&(0,a.jsx)("p",{className:"mt-1 text-[11px] leading-relaxed text-text-muted",children:"Re-enable only permits router requests again; it does not change the account's upstream status."})]})]}),(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:[N.length>0&&(0,a.jsxs)("div",{className:"relative",ref:k,children:[(0,a.jsxs)("button",{onClick:()=>g(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 ${$?"text-primary":"text-text-muted hover:text-primary"}`,disabled:y,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:y?"progress_activity":"lan"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),b&&(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:()=>z("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!C?"text-primary font-medium":"text-text-main"}`,children:"None"}),N.map(e=>(0,a.jsx)("button",{onClick:()=>z(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${C===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),h&&(0,a.jsxs)("button",{onClick:()=>h(!p),className:`flex flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${p?"text-primary":"text-text-muted hover:text-primary"}`,title:p?"Disable quota auto-ping for this account":"Warm the 5-hour quota window after reset with a tiny request",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Auto-ping"})]}),(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":W?"Re-enable routing only; upstream suspension or credential status is unchanged":"Enable connection"})]})]})}_.propTypes={until:$().string.isRequired},I.propTypes={connection:$().shape({id:$().string,name:$().string,email:$().string,displayName:$().string,modelLockUntil:$().string,testStatus:$().string,isActive:$().bool,lastError:$().string,failureClass:$().string,quarantinedAt:$().string,quarantineReason:$().string,priority:$().number,globalPriority:$().number}).isRequired,proxyPools:$().arrayOf($().shape({id:$().string,name:$().string,proxyUrl:$().string,noProxy:$().string,isActive:$().bool})),isOAuth:$().bool.isRequired,isFirst:$().bool.isRequired,isLast:$().bool.isRequired,onMoveUp:$().func.isRequired,onMoveDown:$().func.isRequired,onToggleActive:$().func.isRequired,onUpdateProxy:$().func,autoPingEnabled:$().bool,onToggleAutoPing:$().func,onEdit:$().func.isRequired,onDelete:$().func.isRequired,oneByOneStatus:$().shape({state:$().string,error:$().string})};var z=s(28915);let q=`name1|sk-key1
2
+ name2|sk-key2
3
+ sk-key-only-auto-named`;function M({isOpen:e,provider:t,providerName:s,isCompatible:i,isAnthropic:n,authType:l,authHint:o,website:u,proxyPools:m,error:x,onSave:p,onBulkDone:h,onClose:f}){let b="__none__",g="ollama-local"===t,y="flow"===t,v="cookie"===l,j="xai"===t&&!v,k=y?"Daemon token":v?"Cookie Value":"qoder"===t?"Personal Access Token (PAT)":"API Key",w=v?"grok-web"===t?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":j?"xai-...":"qoder"===t?"pt-...":"",N="azure"===t,C="cloudflare-ai"===t,S=c.Q2?.[t]?.regions||null,A=c.Q2?.[t]?.defaultRegion||S?.[0]?.id||"",[$,T]=(0,r.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:b,ollamaHostUrl:"",flowProfile:"",flowBaseUrl:"http://127.0.0.1:8077/mcp",flowI2vReady:!1}),[O,P]=(0,r.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[E,R]=(0,r.useState)({accountId:""}),[_,I]=(0,r.useState)(A),[D,U]=(0,r.useState)(!1),[L,F]=(0,r.useState)(null),[K,B]=(0,r.useState)(!1),[J,W]=(0,r.useState)("single"),[G,H]=(0,r.useState)(""),[V,Q]=(0,r.useState)(null),Z=(0,r.useRef)(!1);(0,r.useEffect)(()=>{e&&!Z.current&&(T({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:b,ollamaHostUrl:"",flowProfile:"",flowBaseUrl:"http://127.0.0.1:8077/mcp",flowI2vReady:!1}),P({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),R({accountId:""}),I(A),F(null),W("single"),H(""),Q(null)),Z.current=e},[e]);let X=()=>g&&$.ollamaHostUrl.trim()?{baseUrl:$.ollamaHostUrl.trim()}:y?{profile:$.flowProfile.trim(),baseUrl:$.flowBaseUrl.trim()||"http://127.0.0.1:8077/mcp",i2vReady:$.flowI2vReady}:N?{azureEndpoint:O.azureEndpoint,apiVersion:O.apiVersion,deployment:O.deployment,organization:O.organization}:C?{accountId:E.accountId}:S&&_?{region:_}:void 0,Y=async()=>{U(!0);try{let e=await (0,z.x6)("/api/providers/validate",{method:"POST",body:{provider:t,apiKey:$.apiKey,providerSpecificData:X()}});F(e.valid?"success":"failed")}catch{F("unknown")}finally{U(!1)}},ee=async()=>{if(t&&(g||$.apiKey)&&(!y||$.flowProfile.trim())&&(g||$.name)&&(!i||$.defaultModel.trim())){B(!0);try{let e=!1;try{U(!0),F(null),e=!!(await (0,z.x6)("/api/providers/validate",{method:"POST",body:{provider:t,apiKey:$.apiKey,providerSpecificData:X()}})).valid,F(e?"success":"failed")}catch{F("unknown")}finally{U(!1)}let s=Number.parseInt($.priority,10);await p({name:$.name||(g?"Ollama Local":""),apiKey:$.apiKey,defaultModel:i?$.defaultModel.trim():void 0,priority:Number.isFinite(s)?s:1,proxyPoolId:y||$.proxyPoolId===b?null:$.proxyPoolId,testStatus:e?"active":"unknown",providerSpecificData:X()})}finally{B(!1)}}},et=async()=>{let e=G.split("\n").map(e=>e.trim()).filter(Boolean);if(!e.length)return;B(!0),Q(null);let s=0,a=0,r=[],i=[];for(let n=0;n<e.length;n++){let l=e[n].split("|"),o=l.length>=2?l.slice(1).join("|").trim():l[0].trim(),d=l.length>=2?l[0].trim():"Key",c=`${d} ${n+1}`;try{await (0,z.x6)("/api/providers",{method:"POST",body:{provider:t,apiKey:o,name:c,priority:1,testStatus:"unknown"}}),s++}catch(t){a++,r.push({line:e[n],message:t?.message||"Request failed"}),i.push(e[n])}}B(!1),Q({success:s,failed:a,failedRows:r}),H(i.join("\n")),s>0&&h&&h()};return t?(0,a.jsx)(d.aF,{isOpen:e,title:y?"Add Google Flow Account":`Add ${s||t} ${k}`,onClose:f,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[!y&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"single"===J?"primary":"ghost",onClick:()=>{W("single"),Q(null)},children:"Single"}),(0,a.jsx)(d.$n,{size:"sm",variant:"bulk"===J?"primary":"ghost",onClick:()=>{W("bulk"),Q(null)},children:"Bulk Add"})]}),"bulk"===J&&(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:q,value:G,onChange:e=>H(e.target.value)}),V&&(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsxs)("div",{className:`text-sm font-medium ${V.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",V.success," added",V.failed>0?`, ✗ ${V.failed} failed`:""]}),V.failedRows?.length>0&&(0,a.jsx)("ul",{className:"text-xs text-red-500 flex flex-col gap-0.5",children:V.failedRows.map((e,t)=>(0,a.jsxs)("li",{className:"break-words",children:[(0,a.jsx)("span",{className:"font-mono",children:e.line.length>40?`${e.line.slice(0,40)}…`:e.line}),` — ${e.message}`]},t))})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:et,fullWidth:!0,disabled:K||!G.trim(),children:K?"Adding...":"Add All Keys"}),(0,a.jsx)(d.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===J&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.pd,{label:y?"Account name":"Name",value:$.name,onChange:e=>T({...$,name:e.target.value}),placeholder:y?"Google account email":g?"Ollama Local":"Production Key"}),y&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20 flex flex-col gap-3",children:[(0,a.jsx)(d.pd,{label:"gflow profile",value:$.flowProfile,onChange:e=>T({...$,flowProfile:e.target.value}),placeholder:"from: gflow auth list",hint:"One connection maps to one Google Flow browser profile.",required:!0}),(0,a.jsx)(d.pd,{label:"Daemon URL",value:$.flowBaseUrl,onChange:e=>T({...$,flowBaseUrl:e.target.value}),placeholder:"http://127.0.0.1:8077/mcp"}),(0,a.jsxs)("label",{className:"flex items-start gap-2 text-sm text-text-main",children:[(0,a.jsx)("input",{type:"checkbox",checked:$.flowI2vReady,onChange:e=>T({...$,flowI2vReady:e.target.checked}),className:"mt-1"}),(0,a.jsxs)("span",{children:["I2V upload consent confirmed ",(0,a.jsx)("span",{className:"block text-xs text-text-muted",children:"Enable only after uploading an image you own once on flow.google.com and accepting Google's rights dialog. Required for 20–60s videos."})]})]})]}),g&&(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:Y,disabled:D||K,variant:"secondary",children:D?"Checking...":"Check"})})]}),!g&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:k,type:v?"text":"password",value:$.apiKey,onChange:e=>T({...$,apiKey:e.target.value}),placeholder:y?"GFLOW_DAEMON_TOKEN":w,hint:y?"Must match the token used by `gflow serve`.":void 0,className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:Y,disabled:!$.apiKey||y&&!$.flowProfile.trim()||D||K,variant:"secondary",children:D?"Checking...":"Check"})})]}),j&&(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."}),v&&o&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:[o,u&&(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsxs)("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",u.replace(/^https?:\/\//,"")]})]})]}),S&&(0,a.jsx)(d.l6,{label:"Region",value:_,onChange:e=>I(e.target.value),options:S.map(e=>({value:e.id,label:e.label}))}),i&&(0,a.jsx)(d.pd,{label:"Default Model",value:$.defaultModel,onChange:e=>T({...$,defaultModel:e.target.value}),placeholder:n?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),g&&(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"}),")."]}),L&&(0,a.jsx)(d.Ex,{variant:"success"===L?"success":"failed"===L?"error":"default",children:"success"===L?"Valid":"failed"===L?"Invalid":"Could not validate"}),x&&(0,a.jsx)("p",{className:"text-xs text-red-500 break-words",children:x}),i&&(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:E.accountId,onChange:e=>R({...E,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"})]})]}),N&&(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:e.target.value}),onBlur:e=>{let t=Number.parseInt(e.target.value,10);T(e=>({...e,priority:Number.isFinite(t)?t:1}))}}),!y&&(0,a.jsx)(d.l6,{label:"Proxy Pool",value:$.proxyPoolId,onChange:e=>T({...$,proxyPoolId:e.target.value}),options:[{value:b,label:"None"},...(m||[]).map(e=>({value:e.id,label:e.name}))],placeholder:"None"}),!y&&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."}),!y&&(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:ee,fullWidth:!0,disabled:K||!g&&(!$.name||!$.apiKey)||y&&!$.flowProfile.trim()||i&&!$.defaultModel.trim()||N&&(!O.azureEndpoint||!O.deployment||!O.organization)||C&&!E.accountId,children:K?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}function D({isOpen:e,node:t,onSave:s,onClose:i,isAnthropic:n}){let[l,o]=(0,r.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[c,u]=(0,r.useState)(!1),[m,x]=(0,r.useState)(""),[p,h]=(0,r.useState)(""),[f,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)(null);(0,r.useEffect)(()=>{t&&(o({name:t.name||"",prefix:t.prefix||"",apiType:t.apiType||"chat",baseUrl:t.baseUrl||(n?"https://api.anthropic.com/v1":"https://api.openai.com/v1")}),x(""),h(""),y(null))},[t,n]);let v=async()=>{if(l.name.trim()&&l.prefix.trim()&&l.baseUrl.trim()){u(!0);try{let e={name:l.name,prefix:l.prefix,baseUrl:l.baseUrl};n||(e.apiType=l.apiType),await s(e)}finally{u(!1)}}},j=async()=>{b(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:l.baseUrl,apiKey:m,type:n?"anthropic-compatible":"openai-compatible",modelId:p.trim()||void 0})}),t=await e.json();y(t.valid?"success":"failed")}catch{y("failed")}finally{b(!1)}};return t?(0,a.jsx)(d.aF,{isOpen:e,title:`Edit ${n?"Anthropic":"OpenAI"} Compatible`,onClose:i,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(d.pd,{label:"Name",value:l.name,onChange:e=>o({...l,name:e.target.value}),placeholder:`${n?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,a.jsx)(d.pd,{label:"Prefix",value:l.prefix,onChange:e=>o({...l,prefix:e.target.value}),placeholder:n?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!n&&(0,a.jsx)(d.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:l.apiType,onChange:e=>o({...l,apiType:e.target.value})}),(0,a.jsx)(d.pd,{label:"Base URL",value:l.baseUrl,onChange:e=>o({...l,baseUrl:e.target.value}),placeholder:n?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${n?"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||!l.baseUrl.trim(),variant:"secondary",children:f?"Checking...":"Check"})})]}),(0,a.jsx)(d.pd,{label:"Model ID (optional)",value:p,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."}),g&&(0,a.jsx)(d.Ex,{variant:"success"===g?"success":"error",children:"success"===g?"Valid":"Invalid"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:v,fullWidth:!0,disabled:!l.name.trim()||!l.prefix.trim()||!l.baseUrl.trim()||c,children:c?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:i,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function U({isOpen:e,providerAlias:t,providerDisplayAlias:s,onSave:i,onClose:n}){let[l,o]=(0,r.useState)(""),[c,u]=(0,r.useState)(null),[m,x]=(0,r.useState)(""),[p,h]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e&&(o(""),u(null),x(""))},[e]);let f=e=>{let s=`${t}/`;return e.startsWith(s)?e.slice(s.length):e},b=async()=>{let e=f(l.trim());if(e){u("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();u(a.ok?"ok":"error"),x(a.error||"")}catch(e){u("error"),x(e.message)}}},g=async()=>{let e=f(l.trim());if(e&&!p){h(!0);try{await i(e)}finally{h(!1)}}};return(0,a.jsx)(d.aF,{isOpen:e,onClose:n,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:l,onChange:e=>{o(e.target.value),u(null),x("")},onKeyDown:e=>{"Enter"===e.key&&b()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",autoFocus:!0}),(0,a.jsx)(d.$n,{variant:"secondary",icon:"science",loading:"testing"===c,onClick:b,disabled:!l.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(l.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:n,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,a.jsx)(d.$n,{onClick:g,fullWidth:!0,size:"sm",disabled:!l.trim()||p,children:p?"Adding...":"Add Model"})]})]})})}M.propTypes={isOpen:$().bool.isRequired,provider:$().string,providerName:$().string,isCompatible:$().bool,isAnthropic:$().bool,authType:$().string,authHint:$().string,website:$().string,proxyPools:$().arrayOf($().shape({id:$().string,name:$().string})),error:$().string,onSave:$().func.isRequired,onBulkDone:$().func,onClose:$().func.isRequired},D.propTypes={isOpen:$().bool.isRequired,node:$().shape({id:$().string,name:$().string,prefix:$().string,apiType:$().string,baseUrl:$().string}),onSave:$().func.isRequired,onClose:$().func.isRequired,isAnthropic:$().bool},U.propTypes={isOpen:$().bool.isRequired,providerAlias:$().string.isRequired,providerDisplayAlias:$().string.isRequired,onSave:$().func.isRequired,onClose:$().func.isRequired};let L="/api/providers/codebuddy/discover-models",F={verified:"Verified",recognized:"Recognized",unavailable:"Unavailable",credential_rejected:"Credential rejected",error:"Inconclusive",skipped:"Skipped"},K={verified:"border-green-500/30 bg-green-500/[0.08] text-green-700 dark:text-green-300",recognized:"border-sky-500/30 bg-sky-500/[0.08] text-sky-700 dark:text-sky-300",unavailable:"border-black/10 bg-black/[0.03] text-text-muted dark:border-white/10 dark:bg-white/[0.04]",credential_rejected:"border-red-500/30 bg-red-500/[0.08] text-red-700 dark:text-red-300",error:"border-amber-500/30 bg-amber-500/[0.08] text-amber-700 dark:text-amber-300",skipped:"border-black/10 bg-black/[0.03] text-text-muted dark:border-white/10 dark:bg-white/[0.04]"};function B(e,t){return e?.error||t}function J({isOpen:e,connections:t,onModelsAdded:s,onClose:i}){let n=(0,r.useMemo)(()=>t.filter(e=>"codebuddy"===e.provider&&!1!==e.isActive),[t]),[l,o]=(0,r.useState)(null),[c,u]=(0,r.useState)(!1),[m,x]=(0,r.useState)(""),[p,h]=(0,r.useState)(""),[f,b]=(0,r.useState)(()=>new Set),[g,y]=(0,r.useState)(""),[v,j]=(0,r.useState)(!1),[k,w]=(0,r.useState)(!1),[N,C]=(0,r.useState)([]),[S,A]=(0,r.useState)(()=>new Set),$=(0,r.useCallback)(async()=>{u(!0),x(""),h(""),j(!1),C([]);try{let e=await fetch(L,{cache:"no-store"}),t=await e.json();if(!e.ok)throw Error(B(t,"Could not refresh model candidates"));o(t),b(new Set((t.hidden||[]).map(e=>e.id)))}catch(e){x(e.message)}finally{u(!1)}},[]);(0,r.useEffect)(()=>{e&&(y(e=>n.some(t=>t.id===e)?e:n[0]?.id||""),$())},[n,e,$]);let T=async()=>{if(g&&0!==f.size&&!k){w(!0),x(""),h("");try{let e=await fetch(L,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({connectionId:g,models:[...f]})}),t=await e.json();if(!e.ok)throw Error(B(t,"Hidden model scan failed"));C(t.results||[]),j(!1)}catch(e){x(e.message)}finally{w(!1)}}},O=(0,r.useMemo)(()=>new Map(N.map(e=>[e.id,e])),[N]),P=(0,r.useMemo)(()=>(l?.hidden||[]).filter(e=>{let t=O.get(e.id)?.status;return e.previouslyVerified||"verified"===t||"recognized"===t}),[l,O]),E=async e=>{let t=e.filter(e=>!S.has(e.id));if(!t.length)return;A(e=>new Set([...e,...t.map(e=>e.id)])),x(""),h("");let a=[];try{for(let e of t){let t=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:"cb",id:e.id,type:"llm",name:e.name})}),s=await t.json();if(!t.ok)throw Error(B(s,`Could not add ${e.id}`));a.push(e)}window.dispatchEvent(new Event("customModelChanged")),await s?.(a),h(`${a.length} model${1===a.length?"":"s"} added to CodeBuddy Global.`)}catch(e){a.length&&(window.dispatchEvent(new Event("customModelChanged")),await s?.(a)),x(e.message)}finally{A(e=>{let s=new Set(e);return t.forEach(e=>s.delete(e.id)),s})}},R=P.filter(e=>f.has(e.id));return(0,a.jsx)(d.aF,{isOpen:e,onClose:i,title:"Discover CodeBuddy Global Models",size:"full",children:(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,a.jsx)("div",{className:"overflow-hidden rounded-xl border border-cyan-500/20 bg-gradient-to-br from-cyan-500/[0.10] via-transparent to-amber-500/[0.08] p-4",children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Live package candidates"}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-text-muted",children:"Refreshing reads Tencent's current CLI manifests and does not call a model or use credits."}),l?.version&&(0,a.jsxs)("p",{className:"mt-2 font-mono text-xs text-cyan-700 dark:text-cyan-300",children:["codebuddy-code@",l.version]})]}),(0,a.jsx)(d.$n,{variant:"secondary",size:"sm",icon:"refresh",loading:c,onClick:$,children:"Refresh Candidates"})]})}),m&&(0,a.jsx)("p",{role:"alert",className:"rounded-lg border border-red-500/25 bg-red-500/[0.08] px-3 py-2 text-sm text-red-600 dark:text-red-300",children:m}),p&&(0,a.jsx)("p",{className:"rounded-lg border border-green-500/25 bg-green-500/[0.08] px-3 py-2 text-sm text-green-700 dark:text-green-300",children:p}),l?.warnings?.map(e=>(0,a.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-300",children:e},e)),l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:[(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-surface-2 px-3 py-2",children:[(0,a.jsx)("p",{className:"text-2xl font-semibold text-text-main",children:l.official?.length||0}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Official Global"})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-surface-2 px-3 py-2",children:[(0,a.jsx)("p",{className:"text-2xl font-semibold text-text-main",children:l.hidden?.length||0}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Hidden candidates"})]}),(0,a.jsxs)("div",{className:"col-span-2 rounded-lg border border-border bg-surface-2 px-3 py-2 sm:col-span-1",children:[(0,a.jsx)("p",{className:"text-2xl font-semibold text-text-main",children:l.hidden?.filter(e=>e.previouslyVerified).length||0}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Previously verified"})]})]}),(0,a.jsxs)("section",{children:[(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:"Hidden route candidates"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"From alternate official manifests; availability is not guaranteed on Global SaaS."})]}),(0,a.jsx)("button",{type:"button",className:"text-xs font-medium text-primary hover:underline",onClick:()=>b(f.size===(l.hidden?.length||0)?new Set:new Set(l.hidden.map(e=>e.id))),children:f.size===(l.hidden?.length||0)?"Clear":"Select all"})]}),(0,a.jsx)("div",{className:"max-h-64 overflow-y-auto rounded-xl border border-border custom-scrollbar",children:(l.hidden||[]).map(e=>{let t=O.get(e.id);return(0,a.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 border-b border-border-subtle px-3 py-2.5 last:border-b-0 hover:bg-surface-2",children:[(0,a.jsx)("input",{type:"checkbox",checked:f.has(e.id),onChange:()=>{var t;return t=e.id,void b(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"mt-1 accent-primary"}),(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsx)("span",{className:"block truncate text-sm font-medium text-text-main",children:e.name}),(0,a.jsx)("span",{className:"block truncate font-mono text-[11px] text-text-muted",children:e.id}),(0,a.jsx)("span",{className:"text-[10px] text-text-muted",children:e.sources.length?e.sources.join(" + "):"request history"})]}),(0,a.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[e.previouslyVerified&&(0,a.jsx)("span",{className:"rounded-full bg-green-500/10 px-2 py-0.5 text-[10px] font-medium text-green-700 dark:text-green-300",children:"previous success"}),t&&(0,a.jsx)("span",{className:`rounded-full border px-2 py-0.5 text-[10px] font-medium ${K[t.status]||K.error}`,children:F[t.status]||t.status}),(e.previouslyVerified||["verified","recognized"].includes(t?.status))&&(0,a.jsx)("button",{type:"button",onClick:t=>{t.preventDefault(),E([e])},className:"text-xs font-semibold text-primary hover:underline",disabled:S.has(e.id),children:S.has(e.id)?"Adding...":"Add"})]})]},e.id)})})]}),(0,a.jsxs)("section",{className:"rounded-xl border border-amber-500/25 bg-amber-500/[0.07] p-4",children:[(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[1fr_auto] sm:items-end",children:[(0,a.jsx)(d.l6,{label:"CodeBuddy Global connection",value:g,onChange:e=>y(e.target.value),options:n.map(e=>({value:e.id,label:e.name||e.email||e.id})),placeholder:"No active Global connection",disabled:!n.length||k,hint:"Every probe is pinned to this connection."}),(0,a.jsxs)(d.$n,{size:"sm",icon:"radar",onClick:()=>j(!0),disabled:!g||0===f.size||k,children:["Scan Hidden Models (",f.size,")"]})]}),!n.length&&(0,a.jsx)("p",{className:"mt-2 text-xs text-red-500",children:"Add and activate a CodeBuddy Global connection before scanning."}),v&&(0,a.jsxs)("div",{className:"mt-4 rounded-lg border border-amber-500/40 bg-surface px-3 py-3",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Confirm credit-using scan"}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-text-muted",children:"These are real completion probes and may consume CodeBuddy credits. Scanning uses at most 3 concurrent requests and stops scheduling if the selected credential is rejected."}),(0,a.jsxs)("div",{className:"mt-3 flex justify-end gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",onClick:()=>j(!1),disabled:k,children:"Cancel"}),(0,a.jsx)(d.$n,{size:"sm",icon:"science",loading:k,onClick:T,children:"Start Credit Scan"})]})]})]}),N.length>0&&(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:[N.filter(e=>"verified"===e.status).length," verified, ",N.filter(e=>"recognized"===e.status).length," recognized, ",N.filter(e=>"unavailable"===e.status).length," unavailable"]}),(0,a.jsxs)(d.$n,{size:"sm",icon:"playlist_add",onClick:()=>E(R),disabled:!R.length||S.size>0,children:["Add Selected Available (",R.length,")"]})]})]})]})})}J.propTypes={isOpen:$().bool.isRequired,connections:$().arrayOf($().object).isRequired,onModelsAdded:$().func,onClose:$().func.isRequired};let W="/api/providers/opencode/discover-models",G={verified:"Works",quota_exhausted:"Free quota used up",skipped:"Not tested",overloaded:"Overloaded",unavailable:"Unavailable",deprecated:"Deprecated",unsupported:"Protocol unsupported",error:"Error"},H={verified:"border-green-500/30 bg-green-500/[0.08] text-green-700 dark:text-green-300",quota_exhausted:"border-amber-500/30 bg-amber-500/[0.08] text-amber-700 dark:text-amber-300",skipped:"border-zinc-500/30 bg-zinc-500/[0.08] text-zinc-600 dark:text-zinc-400",overloaded:"border-amber-500/30 bg-amber-500/[0.08] text-amber-700 dark:text-amber-300",unavailable:"border-red-500/30 bg-red-500/[0.08] text-red-700 dark:text-red-300",deprecated:"border-red-500/30 bg-red-500/[0.08] text-red-700 dark:text-red-300",unsupported:"border-purple-500/30 bg-purple-500/[0.08] text-purple-700 dark:text-purple-300",error:"border-red-500/30 bg-red-500/[0.08] text-red-700 dark:text-red-300"},V=new Set(["unavailable","deprecated","unsupported"]);function Q({isOpen:e,onModelsAdded:t,onClose:s}){let[i,n]=(0,r.useState)([]),[l,o]=(0,r.useState)(!1),[c,u]=(0,r.useState)(""),[m,x]=(0,r.useState)(""),[p,h]=(0,r.useState)(()=>new Set),[f,b]=(0,r.useState)(!1),[g,y]=(0,r.useState)([]),[v,j]=(0,r.useState)(()=>new Set),[k,w]=(0,r.useState)(()=>new Set),N=(0,r.useCallback)(async()=>{o(!0),u(""),x(""),y([]);try{let e=await fetch(W,{cache:"no-store"}),t=await e.json();if(!e.ok)throw Error(t?.error||"Could not fetch OpenCode models");let s=t.candidates||[];n(s),h(new Set(s.filter(e=>!1!==e.inCatalog).map(e=>e.id))),w(new Set(s.filter(e=>e.isConfigured).map(e=>e.id))),!1===t.catalogAvailable&&x("OpenCode's model catalog could not be fetched; showing configured models only.")}catch(e){u(e.message)}finally{o(!1)}},[]);(0,r.useEffect)(()=>{e&&N()},[e,N]);let C=async()=>{if(0!==p.size&&!f){b(!0),u(""),x("");try{let e=await fetch(W,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({models:[...p]})}),t=await e.json();if(!e.ok)throw Error(t?.error||"Live probe failed");let s=t.results||[];y(s);let a=s.find(e=>"quota_exhausted"===e.status);a&&u(`OpenCode's free quota for this IP is used up (${a.id}). The remaining models were not tested; this says nothing about whether they work. Try again later.`)}catch(e){u(e.message)}finally{b(!1)}}},S=(0,r.useMemo)(()=>new Map(g.map(e=>[e.id,e])),[g]),A=async e=>{let s=e.filter(e=>!v.has(e.id)&&!k.has(e.id));if(!s.length)return;j(e=>new Set([...e,...s.map(e=>e.id)])),u(""),x("");let a=[];try{for(let e of s){let t=await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:"oc",id:e.id,type:"llm",name:e.name||e.id})}),s=await t.json();if(!t.ok)throw Error(s?.error||`Could not add ${e.id}`);a.push(e)}window.dispatchEvent(new Event("customModelChanged")),w(e=>new Set([...e,...a.map(e=>e.id)])),await t?.(a),x(`${a.length} model${1===a.length?"":"s"} added to OpenCode Free!`)}catch(e){a.length&&(window.dispatchEvent(new Event("customModelChanged")),w(e=>new Set([...e,...a.map(e=>e.id)])),await t?.(a)),u(e.message)}finally{j(e=>{let t=new Set(e);return s.forEach(e=>t.delete(e.id)),t})}},$=(0,r.useMemo)(()=>i.filter(e=>{let t=S.get(e.id);return t?.ok&&!k.has(e.id)}),[i,S,k]);return(0,a.jsx)(d.aF,{isOpen:e,onClose:s,title:"Live Probe OpenCode Free Models",size:"full",children:(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,a.jsx)("div",{className:"overflow-hidden rounded-xl border border-orange-500/20 bg-gradient-to-br from-orange-500/[0.10] via-transparent to-amber-500/[0.08] p-4",children:(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Upstream Catalog Live Probe"}),(0,a.jsxs)("p",{className:"mt-1 text-xs leading-relaxed text-text-muted",children:["Pulls candidates directly from ",(0,a.jsx)("span",{className:"font-mono",children:"opencode.ai/zen/v1/models"})," and tests real-time completions to verify which free models are alive."]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(d.$n,{variant:"secondary",size:"sm",icon:"refresh",loading:l,onClick:N,children:"Refresh Catalog"}),(0,a.jsx)(d.$n,{size:"sm",icon:"radar",loading:f,disabled:0===p.size||f,onClick:C,className:"bg-orange-600 hover:bg-orange-700 text-white",children:f?"Probing Upstream...":`Live Probe (${p.size})`})]})]})}),c&&(0,a.jsx)("p",{role:"alert",className:"rounded-lg border border-red-500/25 bg-red-500/[0.08] px-3 py-2 text-sm text-red-600 dark:text-red-300",children:c}),m&&(0,a.jsx)("p",{className:"rounded-lg border border-green-500/25 bg-green-500/[0.08] px-3 py-2 text-sm text-green-700 dark:text-green-300",children:m}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Total Candidates: ",(0,a.jsx)("strong",{className:"text-text-main",children:i.length})]}),g.length>0&&(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["• Works: ",(0,a.jsx)("strong",{className:"text-green-600",children:g.filter(e=>e.ok).length})," ","• Dead: ",(0,a.jsx)("strong",{className:"text-red-600",children:g.filter(e=>V.has(e.status)).length})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[$.length>0&&(0,a.jsxs)("button",{type:"button",onClick:()=>A($),disabled:v.size>0,className:"text-xs font-semibold text-primary hover:underline",children:["+ Add All Verified (",$.length,")"]}),(0,a.jsx)("button",{type:"button",className:"text-xs font-medium text-primary hover:underline",onClick:()=>h(p.size===i.length?new Set:new Set(i.map(e=>e.id))),children:p.size===i.length?"Deselect All":"Select All"})]})]}),(0,a.jsx)("div",{className:"max-h-96 overflow-y-auto rounded-xl border border-border custom-scrollbar",children:i.map(e=>{let t=S.get(e.id),s=k.has(e.id),r=v.has(e.id);return(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b border-border-subtle px-3 py-2.5 last:border-b-0 hover:bg-surface-2",children:[(0,a.jsxs)("label",{className:"flex min-w-0 flex-1 cursor-pointer items-center gap-3",children:[(0,a.jsx)("input",{type:"checkbox",checked:p.has(e.id),onChange:()=>{var t;return t=e.id,void h(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"accent-orange-500"}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-sm font-medium text-text-main truncate",children:e.name}),s&&(0,a.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-medium text-blue-600 dark:text-blue-400",children:"Active in Router"}),!1===e.inCatalog&&(0,a.jsx)("span",{className:"rounded-full bg-red-500/10 px-2 py-0.5 text-[10px] font-medium text-red-600 dark:text-red-400",title:"Not listed in opencode.ai/zen/v1/models anymore",children:"Retired upstream"})]}),(0,a.jsxs)("span",{className:"block font-mono text-[11px] text-text-muted truncate",children:["oc/",e.id]})]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[t?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:`rounded-full border px-2.5 py-0.5 text-[11px] font-medium ${H[t.status]||H.error}`,title:t.error||t.message,children:G[t.status]||t.status}),t.latencyMs>0&&(0,a.jsxs)("span",{className:"text-[11px] text-text-muted font-mono",children:[t.latencyMs,"ms"]})]}):(0,a.jsx)("span",{className:"text-[11px] text-text-muted italic",children:"Ready to probe"}),!s&&!1!==e.inCatalog&&!V.has(t?.status)&&(0,a.jsx)("button",{type:"button",onClick:()=>A([e]),disabled:r,className:"text-xs font-semibold text-primary hover:underline disabled:opacity-50",children:r?"Adding...":"+ Add"})]})]},e.id)})}),(0,a.jsx)("div",{className:"flex justify-end gap-2 pt-2 border-t border-border",children:(0,a.jsx)(d.$n,{variant:"secondary",size:"sm",onClick:s,children:"Close"})})]})})}Q.propTypes={isOpen:$().bool.isRequired,onModelsAdded:$().func,onClose:$().func.isRequired};let Z="/api/providers/kiro/discover-models",X={verified:"Verified",recognized:"Recognized (quota)",unavailable:"Unavailable",credential_rejected:"Credential rejected",error:"Inconclusive",skipped:"Skipped"},Y={verified:"border-green-500/30 bg-green-500/[0.08] text-green-700 dark:text-green-300",recognized:"border-sky-500/30 bg-sky-500/[0.08] text-sky-700 dark:text-sky-300",unavailable:"border-black/10 bg-black/[0.03] text-text-muted dark:border-white/10 dark:bg-white/[0.04]",credential_rejected:"border-red-500/30 bg-red-500/[0.08] text-red-700 dark:text-red-300",error:"border-amber-500/30 bg-amber-500/[0.08] text-amber-700 dark:text-amber-300",skipped:"border-black/10 bg-black/[0.03] text-text-muted dark:border-white/10 dark:bg-white/[0.04]"},ee={live:"live catalog",saved:"saved on account",alias:"your alias"};function et(e){return e?e>=1e6?`${e/1e6}M`:`${Math.round(e/1e3)}K`:null}function es({isOpen:e,connections:t,onClose:s}){let i=(0,r.useMemo)(()=>t.filter(e=>"kiro"===e.provider&&!1!==e.isActive&&!e.quarantinedAt),[t]),[n,l]=(0,r.useState)(""),[o,c]=(0,r.useState)(null),[u,m]=(0,r.useState)(!1),[x,p]=(0,r.useState)(""),[h,f]=(0,r.useState)(()=>new Set),[b,g]=(0,r.useState)(!1),[y,v]=(0,r.useState)(!1),[j,k]=(0,r.useState)([]),[w,N]=(0,r.useState)(!1),[C,S]=(0,r.useState)(""),A=(0,r.useCallback)(async e=>{if(e){m(!0),p(""),S(""),g(!1),k([]);try{let t=await fetch(`${Z}?connectionId=${encodeURIComponent(e)}`,{cache:"no-store"}),s=await t.json();if(!t.ok)throw Error(s?.error||"Could not refresh Kiro candidates");c(s),f(new Set((s.candidates||[]).filter(e=>!e.inLive).map(e=>e.id)))}catch(e){c(null),p(e.message)}finally{m(!1)}}},[]);(0,r.useEffect)(()=>{!e||i.some(e=>e.id===n)||l(i[0]?.id||"")},[i,n,e]),(0,r.useEffect)(()=>{e&&n&&A(n)},[n,e,A]);let $=async()=>{if(n&&0!==h.size&&!y){v(!0),p("");try{let e=await fetch(Z,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({connectionId:n,models:[...h]})}),t=await e.json();if(!e.ok)throw Error(t?.error||"Kiro model probe failed");k(t.results||[]),g(!1)}catch(e){p(e.message)}finally{v(!1)}}},T=(0,r.useMemo)(()=>new Map(j.map(e=>[e.id,e])),[j]),O=o?.candidates||[],P=O.filter(e=>e.inLive).length,E=O.length-P,R=j.filter(e=>"verified"===e.status).map(e=>e.id),_=!!o&&!o.hasProfile&&R.length>0,I=async()=>{if(_&&!w){N(!0),p(""),S("");try{let e=await fetch(Z,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({connectionId:n,models:R})}),t=await e.json();if(!e.ok)throw Error(t?.error||"Saving verified models failed");S(`${t.saved.length} verified model${1===t.saved.length?"":"s"} saved to this connection.`)}catch(e){p(e.message)}finally{N(!1)}}};return(0,a.jsx)(d.aF,{isOpen:e,onClose:s,title:"Live Probe Kiro Models",size:"full",children:(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,a.jsxs)("div",{className:"overflow-hidden rounded-xl border border-violet-500/20 bg-gradient-to-br from-violet-500/[0.10] via-transparent to-amber-500/[0.08] p-4",children:[(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[1fr_auto] sm:items-end",children:[(0,a.jsx)(d.l6,{label:"Kiro connection",value:n,onChange:e=>l(e.target.value),options:i.map(e=>({value:e.id,label:e.name||e.email||e.id})),placeholder:"No active Kiro connection",disabled:!i.length||y,hint:"The catalog and every probe are pinned to this connection."}),(0,a.jsx)(d.$n,{variant:"secondary",size:"sm",icon:"refresh",loading:u,disabled:!n||y,onClick:()=>A(n),children:"Refresh Catalog"})]}),(0,a.jsx)("p",{className:"mt-3 text-xs leading-relaxed text-text-muted",children:"Refreshing calls Kiro's ListAvailableModels for this account and does not use credits."}),!i.length&&(0,a.jsx)("p",{className:"mt-2 text-xs text-red-500",children:"Add and activate a Kiro connection first."})]}),x&&(0,a.jsx)("p",{role:"alert",className:"rounded-lg border border-red-500/25 bg-red-500/[0.08] px-3 py-2 text-sm text-red-600 dark:text-red-300",children:x}),C&&(0,a.jsx)("p",{className:"rounded-lg border border-green-500/25 bg-green-500/[0.08] px-3 py-2 text-sm text-green-700 dark:text-green-300",children:C}),o?.warnings?.map(e=>(0,a.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-300",children:e},e)),o&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3",children:[(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-surface-2 px-3 py-2",children:[(0,a.jsx)("p",{className:"text-2xl font-semibold text-text-main",children:P}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"In live catalog"})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-surface-2 px-3 py-2",children:[(0,a.jsx)("p",{className:"text-2xl font-semibold text-text-main",children:E}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Saved / alias only"})]}),(0,a.jsxs)("div",{className:"col-span-2 rounded-lg border border-border bg-surface-2 px-3 py-2 sm:col-span-1",children:[(0,a.jsx)("p",{className:`text-sm font-semibold ${o.liveCatalog?"text-green-700 dark:text-green-300":"text-amber-700 dark:text-amber-300"}`,children:o.liveCatalog?"Live catalog readable":"Live catalog unavailable"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:o.hasProfile?"Account has a CodeWhisperer profile":"No profile (API-key login)"})]})]}),(0,a.jsxs)("section",{children:[(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-text-main",children:"Base models"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"-thinking and -agentic variants share their base model and are not probed separately."})]}),(0,a.jsx)("button",{type:"button",className:"text-xs font-medium text-primary hover:underline",onClick:()=>f(h.size===O.length?new Set:new Set(O.map(e=>e.id))),children:h.size===O.length?"Clear":"Select all"})]}),(0,a.jsx)("div",{className:"max-h-80 overflow-y-auto rounded-xl border border-border custom-scrollbar",children:O.map(e=>{let t=T.get(e.id),s=[et(e.contextLength),et(e.maxOutputTokens)].filter(Boolean).join(" / ");return(0,a.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 border-b border-border-subtle px-3 py-2.5 last:border-b-0 hover:bg-surface-2",children:[(0,a.jsx)("input",{type:"checkbox",checked:h.has(e.id),onChange:()=>{var t;return t=e.id,void f(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"mt-1 accent-primary"}),(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsx)("span",{className:"block truncate text-sm font-medium text-text-main",children:e.name}),(0,a.jsxs)("span",{className:"block truncate font-mono text-[11px] text-text-muted",children:["kr/",e.id]}),(0,a.jsxs)("span",{className:"text-[10px] text-text-muted",children:[e.sources.map(e=>ee[e]||e).join(" + "),s&&` \xb7 ${s}`,e.rateMultiplier&&1!==e.rateMultiplier&&` \xb7 ${e.rateMultiplier}x credit`]})]}),(0,a.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[e.inLive&&(0,a.jsx)("span",{className:"rounded-full bg-green-500/10 px-2 py-0.5 text-[10px] font-medium text-green-700 dark:text-green-300",children:"live"}),t&&(0,a.jsxs)("span",{title:t.error||"",className:`rounded-full border px-2 py-0.5 text-[10px] font-medium ${Y[t.status]||Y.error}`,children:[X[t.status]||t.status,"verified"===t.status&&Number.isFinite(t.latencyMs)&&` \xb7 ${t.latencyMs}ms`]})]})]},e.id)})})]}),(0,a.jsxs)("section",{className:"rounded-xl border border-amber-500/25 bg-amber-500/[0.07] p-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted",children:j.length>0?`${j.filter(e=>"verified"===e.status).length} verified, ${j.filter(e=>"unavailable"===e.status).length} unavailable, ${j.filter(e=>!["verified","unavailable"].includes(e.status)).length} other`:"Probe sends one real completion per selected model."}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[_&&(0,a.jsxs)(d.$n,{size:"sm",variant:"secondary",icon:"save",loading:w,onClick:I,children:["Save Verified to Connection (",R.length,")"]}),(0,a.jsxs)(d.$n,{size:"sm",icon:"radar",onClick:()=>g(!0),disabled:!n||0===h.size||y,children:["Probe Selected (",h.size,")"]})]})]}),b&&(0,a.jsxs)("div",{className:"mt-4 rounded-lg border border-amber-500/40 bg-surface px-3 py-3",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Confirm credit-using probe"}),(0,a.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-text-muted",children:"These are real completion requests and may consume Kiro credits. Probing uses at most 3 concurrent requests and stops scheduling if the selected credential is rejected."}),(0,a.jsxs)("div",{className:"mt-3 flex justify-end gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",onClick:()=>g(!1),disabled:y,children:"Cancel"}),(0,a.jsx)(d.$n,{size:"sm",icon:"science",loading:y,onClick:$,children:"Start Probe"})]})]})]})]})]})})}es.propTypes={isOpen:$().bool.isRequired,connections:$().arrayOf($().object).isRequired,onClose:$().func.isRequired};let ea="/api/providers/cloudflare-ai/discover-models",er={verified:"Works",paid_only:"Paid plan only",no_access:"No access",unavailable:"Unavailable",deprecated:"Deprecated",unsupported:"Not a chat model",agreement_required:"License agreement needed",input_rejected:"Input rejected",quota_exhausted:"Daily quota used up",credential_rejected:"Token rejected",rate_limited:"Rate limited",skipped:"Not tested",error:"Inconclusive"},ei={verified:"border-green-500/30 bg-green-500/[0.08] text-green-700 dark:text-green-300",paid_only:"border-sky-500/30 bg-sky-500/[0.08] text-sky-700 dark:text-sky-300",no_access:"border-red-500/30 bg-red-500/[0.08] text-red-700 dark:text-red-300",unavailable:"border-red-500/30 bg-red-500/[0.08] text-red-700 dark:text-red-300",input_rejected:"border-amber-500/30 bg-amber-500/[0.08] text-amber-700 dark:text-amber-300",deprecated:"border-red-500/30 bg-red-500/[0.08] text-red-700 dark:text-red-300",unsupported:"border-purple-500/30 bg-purple-500/[0.08] text-purple-700 dark:text-purple-300",agreement_required:"border-sky-500/30 bg-sky-500/[0.08] text-sky-700 dark:text-sky-300",quota_exhausted:"border-amber-500/30 bg-amber-500/[0.08] text-amber-700 dark:text-amber-300",credential_rejected:"border-red-500/30 bg-red-500/[0.08] text-red-700 dark:text-red-300",rate_limited:"border-amber-500/30 bg-amber-500/[0.08] text-amber-700 dark:text-amber-300",skipped:"border-black/10 bg-black/[0.03] text-text-muted dark:border-white/10 dark:bg-white/[0.04]",error:"border-amber-500/30 bg-amber-500/[0.08] text-amber-700 dark:text-amber-300"},en=new Set(["unavailable","no_access","deprecated","unsupported"]),el=[{kind:"llm",title:"Chat models",hint:"Probed with one short chat completion."},{kind:"image",title:"Image models",hint:"Probed with one small generation. Image probes use far more neurons than chat."}];function eo({isOpen:e,connections:t,onModelsAdded:s,onClose:i}){let n=(0,r.useMemo)(()=>t.filter(e=>"cloudflare-ai"===e.provider&&!1!==e.isActive&&!e.quarantinedAt),[t]),[l,o]=(0,r.useState)(""),[c,u]=(0,r.useState)(null),[m,x]=(0,r.useState)(!1),[p,h]=(0,r.useState)(""),[f,b]=(0,r.useState)(""),[g,y]=(0,r.useState)(()=>new Set),[v,j]=(0,r.useState)(!1),[k,w]=(0,r.useState)(!1),[N,C]=(0,r.useState)([]),[S,A]=(0,r.useState)(()=>new Set),[$,T]=(0,r.useState)(()=>new Set),O=(0,r.useCallback)(async e=>{if(e){x(!0),h(""),b(""),j(!1),C([]);try{let t=await fetch(`${ea}?connectionId=${encodeURIComponent(e)}`,{cache:"no-store"}),s=await t.json();if(!t.ok)throw Error(s?.error||"Could not read the Cloudflare model catalog");u(s),y(new Set((s.candidates||[]).filter(e=>!e.paidOnly).map(e=>e.id))),T(new Set((s.candidates||[]).filter(e=>e.builtIn||e.aliased).map(e=>e.id))),s.catalogAvailable||b("Cloudflare's model catalog could not be read; showing built-in and saved models only.")}catch(e){u(null),h(e.message)}finally{x(!1)}}},[]);(0,r.useEffect)(()=>{!e||n.some(e=>e.id===l)||o(n[0]?.id||"")},[n,l,e]),(0,r.useEffect)(()=>{e&&l&&O(l)},[l,e,O]);let P=(0,r.useMemo)(()=>c?.candidates||[],[c]),E=(0,r.useMemo)(()=>new Map(N.map(e=>[e.id,e])),[N]),R=P.filter(e=>"image"===e.kind&&g.has(e.id)).length,_=async()=>{if(l&&0!==g.size&&!k){w(!0),h(""),b("");try{let e=P.filter(e=>g.has(e.id)).map(e=>({id:e.id,kind:e.kind})),t=await fetch(ea,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({connectionId:l,models:e})}),s=await t.json();if(!t.ok)throw Error(s?.error||"Cloudflare model probe failed");let a=s.results||[];C(a),j(!1);let r=a.find(e=>"quota_exhausted"===e.status||"credential_rejected"===e.status);r&&h("quota_exhausted"===r.status?`This account's daily Workers AI allocation is used up (${r.id}). The remaining models were not tested; try again after the daily reset or pick another connection.`:`Cloudflare rejected this connection's API token (${r.id}). The remaining models were not tested.`)}catch(e){h(e.message)}finally{w(!1)}}},I=async e=>{let t=e.filter(e=>!$.has(e.id)&&!S.has(e.id));if(t.length){A(e=>new Set([...e,...t.map(e=>e.id)])),h(""),b("");try{await s?.(t),T(e=>new Set([...e,...t.map(e=>e.id)])),b(`${t.length} model${1===t.length?"":"s"} added to the router.`)}catch(e){h(e.message)}finally{A(e=>{let s=new Set(e);return t.forEach(e=>s.delete(e.id)),s})}}},z=P.filter(e=>"llm"===e.kind&&E.get(e.id)?.status==="verified"&&!$.has(e.id)),q={works:N.filter(e=>"verified"===e.status).length,dead:N.filter(e=>en.has(e.status)).length,paid:N.filter(e=>"paid_only"===e.status).length,other:N.filter(e=>!["verified","paid_only"].includes(e.status)&&!en.has(e.status)).length};return(0,a.jsx)(d.aF,{isOpen:e,onClose:i,title:"Live Probe Cloudflare Workers AI Models",size:"full",children:(0,a.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,a.jsxs)("div",{className:"overflow-hidden rounded-xl border border-orange-500/20 bg-gradient-to-br from-orange-500/[0.10] via-transparent to-amber-500/[0.08] p-4",children:[(0,a.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[1fr_auto] sm:items-end",children:[(0,a.jsx)(d.l6,{label:"Cloudflare connection",value:l,onChange:e=>o(e.target.value),options:n.map(e=>({value:e.id,label:e.name||e.email||e.id})),placeholder:"No active Cloudflare connection",disabled:!n.length||k,hint:"The catalog and every probe use this account."}),(0,a.jsx)(d.$n,{variant:"secondary",size:"sm",icon:"refresh",loading:m,disabled:!l||k,onClick:()=>O(l),children:"Refresh Catalog"})]}),(0,a.jsx)("p",{className:"mt-3 text-xs leading-relaxed text-text-muted",children:"Refreshing reads this account's Workers AI model catalog and does not use neurons. Only chat and text-to-image models are listed."}),!n.length&&(0,a.jsx)("p",{className:"mt-2 text-xs text-red-500",children:"Add and activate a Cloudflare connection first."})]}),p&&(0,a.jsx)("p",{role:"alert",className:"rounded-lg border border-red-500/25 bg-red-500/[0.08] px-3 py-2 text-sm text-red-600 dark:text-red-300",children:p}),f&&(0,a.jsx)("p",{className:"rounded-lg border border-green-500/25 bg-green-500/[0.08] px-3 py-2 text-sm text-green-700 dark:text-green-300",children:f}),c&&el.map(e=>{let t=P.filter(t=>t.kind===e.kind);if(!t.length)return null;let s=t.every(e=>g.has(e.id));return(0,a.jsxs)("section",{children:[(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"text-sm font-semibold text-text-main",children:[e.title," (",t.length,")"]}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:e.hint})]}),(0,a.jsx)("button",{type:"button",className:"text-xs font-medium text-primary hover:underline",onClick:()=>{var t;let s,a;return t=e.kind,a=(s=P.filter(e=>e.kind===t).map(e=>e.id)).every(e=>g.has(e)),void y(e=>{let t=new Set(e);for(let e of s)a?t.delete(e):t.add(e);return t})},children:s?"Clear":"Select all"})]}),(0,a.jsx)("div",{className:"max-h-80 overflow-y-auto rounded-xl border border-border custom-scrollbar",children:t.map(e=>{var t;let s=E.get(e.id),r=$.has(e.id),i="llm"===e.kind&&!r&&s?.status==="verified",n=[!(t=e.contextLength)?null:t>=1e6?`${Math.round(t/1e5)/10}M ctx`:`${Math.round(t/1e3)}K ctx`,...e.flags].filter(Boolean).join(" \xb7 ");return(0,a.jsxs)("div",{className:"flex items-start gap-3 border-b border-border-subtle px-3 py-2.5 last:border-b-0 hover:bg-surface-2",children:[(0,a.jsxs)("label",{className:"flex min-w-0 flex-1 cursor-pointer items-start gap-3",children:[(0,a.jsx)("input",{type:"checkbox",checked:g.has(e.id),onChange:()=>{var t;return t=e.id,void y(e=>{let s=new Set(e);return s.has(t)?s.delete(t):s.add(t),s})},className:"mt-1 accent-orange-500"}),(0,a.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("span",{className:"flex flex-wrap items-center gap-1.5",children:[(0,a.jsx)("span",{className:"truncate text-sm font-medium text-text-main",children:e.name}),r&&(0,a.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-medium text-blue-600 dark:text-blue-400",children:"In router"}),e.paidOnly&&(0,a.jsx)("span",{className:"rounded-full bg-sky-500/10 px-2 py-0.5 text-[10px] font-medium text-sky-700 dark:text-sky-300",children:"Workers Paid"}),!1===e.inCatalog&&(0,a.jsx)("span",{className:"rounded-full bg-zinc-500/10 px-2 py-0.5 text-[10px] font-medium text-text-muted",title:"Not listed in this account's Workers AI catalog",children:"Not in catalog"})]}),(0,a.jsxs)("span",{className:"block truncate font-mono text-[11px] text-text-muted",children:["cf/",e.id]}),n&&(0,a.jsx)("span",{className:"text-[10px] text-text-muted",children:n})]})]}),(0,a.jsxs)("span",{className:"flex shrink-0 items-center gap-2 pt-0.5",children:[s&&(0,a.jsxs)("span",{title:s.error||"",className:`rounded-full border px-2 py-0.5 text-[10px] font-medium ${ei[s.status]||ei.error}`,children:[er[s.status]||s.status,"verified"===s.status&&Number.isFinite(s.latencyMs)&&` \xb7 ${s.latencyMs}ms`]}),i&&(0,a.jsx)("button",{type:"button",onClick:()=>I([e]),disabled:S.has(e.id),className:"text-xs font-semibold text-primary hover:underline disabled:opacity-50",children:S.has(e.id)?"Adding...":"+ Add"})]})]},e.id)})})]},e.kind)}),c&&(0,a.jsxs)("section",{className:"rounded-xl border border-amber-500/25 bg-amber-500/[0.07] p-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("p",{className:"text-xs text-text-muted",children:N.length>0?`${q.works} work, ${q.dead} dead, ${q.paid} need Workers Paid, ${q.other} other`:"Probe sends one real request per selected model."}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[z.length>0&&(0,a.jsxs)(d.$n,{size:"sm",variant:"secondary",icon:"add",loading:S.size>0,onClick:()=>I(z),children:["Add Working Chat Models (",z.length,")"]}),(0,a.jsxs)(d.$n,{size:"sm",icon:"radar",onClick:()=>j(!0),disabled:!l||0===g.size||k,children:["Probe Selected (",g.size,")"]})]})]}),v&&(0,a.jsxs)("div",{className:"mt-4 rounded-lg border border-amber-500/40 bg-surface px-3 py-3",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Confirm neuron-using probe"}),(0,a.jsxs)("p",{className:"mt-1 text-xs leading-relaxed text-text-muted",children:["These are real Workers AI requests on the selected account and count toward its daily free allocation of 10,000 neurons.",R>0&&` ${R} image model${1===R?"":"s"} selected; each image probe costs much more than a chat probe.`," ","At most 3 run at once, and the scan stops if the allocation runs out or the token is rejected."]}),(0,a.jsxs)("div",{className:"mt-3 flex justify-end gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",onClick:()=>j(!1),disabled:k,children:"Cancel"}),(0,a.jsx)(d.$n,{size:"sm",icon:"science",loading:k,onClick:_,children:"Start Probe"})]})]})]})]})})}function ed({showAutomation:e,showAddConnection:t,onOpenAutomation:s,onAddConnection:r}){return e||t?(0,a.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:flex-wrap sm:justify-end",children:[e?(0,a.jsx)(d.$n,{size:"sm",icon:"automation",variant:"secondary",onClick:s,className:"w-full sm:w-auto",children:"Open Automation"}):null,t?(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:r,className:"w-full sm:w-auto",children:"Add Connection"}):null]}):null}eo.propTypes={isOpen:$().bool.isRequired,connections:$().arrayOf($().object).isRequired,onModelsAdded:$().func,onClose:$().func.isRequired},ed.propTypes={showAutomation:$().bool.isRequired,showAddConnection:$().bool.isRequired,onOpenAutomation:$().func.isRequired,onAddConnection:$().func.isRequired};let ec="kiro-bulk-import-active-job",eu="Bulk import progress expired or was cleared.",em={claude:"claudeAutoPing",codex:"codexAutoPing"};function ex(e){return["completed","cancelled","failed"].includes(e)}async function ep(e){if(!e)return null;let t=await fetch(`/api/oauth/kiro/bulk-import/${e}`,{cache:"no-store"}),s=await t.json();return{res:t,data:s}}async function eh(e="active"){let t=await fetch(`/api/oauth/kiro/bulk-import/latest?scope=${encodeURIComponent(e)}`,{cache:"no-store"}),s=await t.json();return{res:t,data:s}}async function ef(e){let t=new AbortController,s=window.setTimeout(()=>t.abort(),8e3);try{let s=await fetch(e,{cache:"no-store",signal:t.signal}),a=null;try{a=await s.json()}catch{a=null}return{response:s,data:a}}finally{window.clearTimeout(s)}}function eb(){let e,t=(0,i.useParams)(),s=(0,i.useRouter)(),n=t.id,[u,b]=(0,r.useState)([]),[A,$]=(0,r.useState)(!0),[O,P]=(0,r.useState)(""),[R,_]=(0,r.useState)(null),[z,q]=(0,r.useState)([]),[L,F]=(0,r.useState)(!1),[K,B]=(0,r.useState)(!1),[W,G]=(0,r.useState)(!1),[H,V]=(0,r.useState)(!1),[Z,X]=(0,r.useState)(!1),[Y,ee]=(0,r.useState)(""),[et,ea]=(0,r.useState)(!1),[er,ei]=(0,r.useState)(!1),[en,el]=(0,r.useState)(!1),[eb,eg]=(0,r.useState)(null),[ey,ev]=(0,r.useState)({}),[ej,ek]=(0,r.useState)(!1),[ew,eN]=(0,r.useState)({}),[eC,eS]=(0,r.useState)({}),[eA,e$]=(0,r.useState)(()=>new Set),[eT,eO]=(0,r.useState)(!1),[eP,eE]=(0,r.useState)(!1),[eR,e_]=(0,r.useState)(!1),[eI,ez]=(0,r.useState)(!1),[eq,eM]=(0,r.useState)(!1),[eD,eU]=(0,r.useState)([]),[eL,eF]=(0,r.useState)("__none__"),[eK,eB]=(0,r.useState)(!1),[eJ,eW]=(0,r.useState)(!1),[eG,eH]=(0,r.useState)(null),[eV,eQ]=(0,r.useState)(""),[eZ,eX]=(0,r.useState)("auto"),[eY,e0]=(0,r.useState)({}),[e1,e5]=(0,r.useState)([]),[e2,e3]=(0,r.useState)([]),[e4,e7]=(0,r.useState)([]),[e8,e6]=(0,r.useState)(null),[e9,te]=(0,r.useState)(!1),[tt,ts]=(0,r.useState)(null),[ta,tr]=(0,r.useState)(!1),[ti,tn]=(0,r.useState)(!1),[tl,to]=(0,r.useState)(null),[td,tc]=(0,r.useState)({}),[tu,tm]=(0,r.useState)(null),tx=(0,r.useRef)(!1),tp=(0,r.useRef)(null),th=(0,r.useRef)("1"),[tf,tb]=(0,r.useState)(!1),[tg,ty]=(0,r.useState)(null),[tv,tj]=(0,r.useState)(""),[tk,tw]=(0,r.useState)(1),[tN,tC]=(0,r.useState)(20),[tS,tA]=(0,r.useState)("all"),[t$,tT]=(0,r.useState)(""),[tO,tP]=(0,r.useState)(1),[tE,tR]=(0,r.useState)(20),{copied:t_,copy:tI}=(0,h.C)(),tz=(0,r.useRef)(0),tq=(0,r.useRef)([]),tM=(0,r.useRef)(!0),tD=(0,r.useRef)(null),tU=(0,S.i)(e=>e.error),tL="ag_risk_confirmed",tF=(0,r.useCallback)(()=>{ty(null),tj(""),tz.current=0,window.localStorage.removeItem(ec)},[]),tK=()=>{F(!0)},tB=()=>{"kiro"===n&&tg?.jobId&&ex(tg.status)&&tF(),s.push(x(n))},tJ=R?{id:R.id,name:R.name||("anthropic-compatible"===R.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===R.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===R.type?"AC":"OC",apiType:R.apiType,baseUrl:R.baseUrl,type:R.type}:c.zN[n]||c.fg[n]||c.IS[n]||c.nJ[n]||c.br[n],tW=tJ?.authModes||[],tG=!!c.zN[n]||!!c.IS[n]||tW.includes("oauth"),tH=!!c.fg[n]||tW.includes("apikey"),tV=!!c.IS[n]?.noAuth,tQ=(0,y.F)("kiro"===n),tZ=(0,p.KC)(n),tX="kiro"===n?tQ:tZ,tY=(0,c.wG)(n),t0=(0,c.mq)(n),t1=(0,c.gb)(n),t5=t0||t1,t2=m(n),t3=function({providerId:e,providerInfo:t,isOAuth:s,supportsApiKeyAuth:a,isCompatible:r}){if(!t||t.noAuth||t.authModes?.includes("none"))return[];let i=[];for(let n of(s&&C(i,"oauth"),(a||r||"cookie"===t.authType||!s)&&C(i,"apikey"),w[e]||[]))C(i,n);return i.map(t=>{let s=k[t];return s?{...s,...N[e]?.[t]}:null}).filter(Boolean)}({providerId:n,providerInfo:tJ,isOAuth:tG,supportsApiKeyAuth:tH,isCompatible:t0||t1}),t4=function(e,{specializedChooser:t=!1}={}){return e.length?t?{type:"specialized"}:1===e.length?{type:"method",methodId:e[0].id}:{type:"chooser"}:{type:"none"}}(t3,{specializedChooser:"kiro"===n}),t7=t3.map(e=>"quota-cookie"===e.id&&0===u.length?{...e,disabled:!0,description:"Add a CodeBuddy connection before attaching its quota cookie."}:e),t8=c.Q2[n]?.thinkingConfig||c.s9.extended,t6=t5?n:tY,t9=t5?R?.prefix||n:tY,se=(0,r.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(t6)}`,{cache:"no-store"}),t=await e.json();e.ok&&e7(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[t6]),st=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:t6,ids:[e]})})).ok&&await se()}catch(e){console.log("Error disabling model:",e)}},ss=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(t6)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await se()}catch(e){console.log("Error enabling model:",e)}},sa=async e=>{e.length&&e6({title:"Disable All Models",message:`Disable all ${e.length} model(s)?`,onConfirm:async()=>{e6(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:t6,ids:e})})).ok&&await se()}catch(e){console.log("Error disabling all models:",e)}}})},sr=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(t6)}`,{method:"DELETE"})).ok&&await se()}catch(e){console.log("Error enabling all models:",e)}},si=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&ev(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]);(0,r.useEffect)(()=>{"kilocode"===n&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&e3(e.models)}).catch(()=>{})},[n]);let sn=(0,r.useCallback)(async()=>{try{P("");let[e,t,s,a]=await Promise.allSettled([ef("/api/providers"),ef("/api/provider-nodes"),ef("/api/proxy-pools?isActive=true"),ef("/api/settings")]),r="fulfilled"===e.status?e.value.response:null,i="fulfilled"===e.status?e.value.data:{},l="fulfilled"===t.status?t.value.response:null,o="fulfilled"===t.status?t.value.data:{},d="fulfilled"===s.status?s.value.response:null,u="fulfilled"===s.status?s.value.data:{},m="fulfilled"===a.status?a.value.response:null,x=m?.ok&&a.value.data||{};if(r?.ok){let e=(i.connections||[]).filter(e=>e.provider===n);tq.current=e,b(e)}else P("Connections could not be loaded.");d?.ok&&q(u.proxyPools||[]);let p=(x.providerStrategies||{})[n]||{};eH(p.fallbackStrategy||null),eQ(null!=p.stickyRoundRobinLimit?String(p.stickyRoundRobinLimit):"1"),th.current=null!=p.stickyRoundRobinLimit?String(p.stickyRoundRobinLimit):"1";let h=(x.providerThinking||{})[n]||{};eX(h.mode||"auto");let f=em[n];if(e0(f&&x?.[f]?.connections||{}),l?.ok){let e=(o.nodes||[]).find(e=>e.id===n)||null;if(!e&&((0,c.mq)(n)||(0,c.gb)(n)))for(let t=0;t<3;t+=1){if(await new Promise(e=>setTimeout(e,150)),!tM.current)return;let{response:t,data:s}=await ef("/api/provider-nodes");if(!tM.current)return;if(t.ok&&(e=(s.nodes||[]).find(e=>e.id===n)||null))break}_(e)}}catch(e){console.log("Error fetching connections:",e),tM.current&&P("Connections could not be loaded.")}finally{tM.current&&$(!1)}},[n]),sl=async e=>{try{let t=await fetch(`/api/provider-nodes/${n}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();t.ok&&(_(s.node),await sn(),ei(!1))}catch(e){console.log("Error updating provider node:",e)}},so=async(e,t)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),a=(s.ok?await s.json():{}).providerStrategies||{},r={};e&&(r.fallbackStrategy=e),"round-robin"===e&&""!==t&&(r.stickyRoundRobinLimit=Number(t)||3);let i={...a};0===Object.keys(r).length?delete i[n]:i[n]=r,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:i})})}catch(e){console.log("Error saving provider strategy:",e)}},sd=async e=>{try{let t=await fetch("/api/settings",{cache:"no-store"}),s={...(t.ok?await t.json():{}).providerThinking||{}};e&&"auto"!==e?s[n]={mode:e}:delete s[n],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerThinking:s})})}catch(e){console.log("Error saving thinking config:",e)}},sc=async(e,t)=>{let s=em[n];if(!s)return;let a={...eY,[e]:t};e0(a);try{let e=await fetch("/api/settings",{cache:"no-store"}),t={...(e.ok?await e.json():{})[s]||{},connections:a};if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[s]:t})})).ok)throw Error("Failed to save auto-ping setting")}catch(e){e0(eY),console.log("Error saving auto-ping config:",e)}};(0,r.useEffect)(()=>{sn(),si(),se()},[sn,si,se]),(0,r.useEffect)(()=>(tM.current=!0,()=>{tM.current=!1,null!==tD.current&&window.cancelAnimationFrame(tD.current)}),[]),(0,r.useEffect)(()=>{e6(null),eN({}),eS({}),e$(new Set),e5([]),tc({}),tm(null),to(null),tr(!1),tn(!1),tx.current=!0,tj("")},[n]),(0,r.useEffect)(()=>{tw(1),tP(1),tA("all"),tT("")},[n]),(0,r.useEffect)(()=>{tw(1)},[tS,tN,t$]),(0,r.useEffect)(()=>{ek(!1)},[n]),(0,r.useEffect)(()=>{tP(1)},[tE,e4.length,tX.length,e2.length]),(0,r.useEffect)(()=>{if("kiro"!==n)return;let e=window.localStorage.getItem(ec),t=!1;return(async()=>{try{if(tj(""),tg?.jobId)return;let a=await eh();if(!t&&a.res.ok&&a.data?.job){ty(a.data.job),tz.current=a.data.job.summary?.success||0,window.localStorage.setItem(ec,a.data.job.jobId);return}if(e){var s;let a=await ep(e);if(!t&&a?.res.ok&&a.data?.job&&(s=a.data.job.status,["queued","running","needs_manual"].includes(s))){ty(a.data.job),tz.current=a.data.job.summary?.success||0;return}tF(),tj(eu)}}catch{t||tj(eu)}})(),()=>{t=!0}},[tF,tg?.jobId,n]),(0,r.useEffect)(()=>{if(!("kiro"!==n||!tg?.jobId||ex(tg.status)))return(0,j.M)(async e=>{let t=await ep(tg.jobId);if(!e()){if(t?.res.ok&&t.data?.job){let s=t.data.job.summary?.success||0;if(s>tz.current&&(tz.current=s,await sn(),e()))return;tj(""),ty(t.data.job);return}if(t?.res.status===404){let t=await eh();if(e())return;if(t.res.ok&&t.data?.job){let s=t.data.job.summary?.success||0;if(s>tz.current&&(tz.current=s,await sn(),e()))return;tj(""),ty(t.data.job),window.localStorage.setItem(ec,t.data.job.jobId);return}tF(),tj(eu)}}},2e3)},[tF,sn,tg?.jobId,tg?.status,n]),(0,r.useEffect)(()=>{let e=(c.zN[n]||c.fg[n]||c.IS[n]||c.nJ[n])?.modelsFetcher;e&&g(e).then(e5)},[n]);let su=async(e,t,s=tY)=>{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 si();else{let t=await e.json();alert(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},sm=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await si()}catch(e){console.log("Error deleting alias:",e)}},sx=async()=>{if(tf)return;let e=u.find(e=>!1!==e.isActive);if(!e)return void alert((0,f.Tl)("Please add an active Qoder connection first"));tb(!0);try{let t=await fetch(`/api/providers/${e.id}/models`),s=await t.json();if(!t.ok)return void alert(s.error||(0,f.Tl)("Failed to fetch models"));let a=s.models||[];if(0===a.length)return void alert((0,f.Tl)("No models returned"));let r={...ey},i=0;for(let e of a){let t=e.id||e.name;if(!t)continue;let s=t.replace(/^qoder\//,""),a=`${t6}/${s}`;!Object.values(r).includes(a)&&(r[s]||(await su(s,s,t6),r[s]=a,i+=1))}0===i?alert((0,f.Tl)("All models already exist, no new models added")):alert((0,f.Tl)("Successfully added")+` ${i} `+(0,f.Tl)("models"))}catch(e){console.log("Error importing Qoder models:",e),alert((0,f.Tl)("Error fetching models")+": "+e.message)}finally{tb(!1)}},sp=async()=>{let e=[...u];if(ta||0===e.length)return;let t=Object.fromEntries(e.map(e=>[e.id,{state:"queued",error:null}]));tx.current=!1,tr(!0),tn(!1),to(null),tc(t),tm({total:e.length,completed:0,passed:0,failed:0,stopped:!1});let s=0,a=0;try{for(let t=0;t<e.length;t+=1){if(tx.current){tm({total:e.length,completed:t,passed:s,failed:a,stopped:!0});break}let r=e[t];if(!tq.current.some(e=>e.id===r.id)){tc(e=>({...e,[r.id]:{state:"skipped",error:null}})),tm({total:e.length,completed:t+1,passed:s,failed:a,stopped:!1});continue}to(r.id),tc(e=>({...e,[r.id]:{state:"testing",error:null}}));try{let e=await fetch(`/api/providers/${r.id}/test`,{method:"POST"}),t=await e.json(),i=!!t.valid;i?s+=1:a+=1,tc(e=>({...e,[r.id]:{state:i?"success":"failed",error:i?null:t.error||null}}))}catch(e){a+=1,tc(t=>({...t,[r.id]:{state:"failed",error:e.message||"Test failed"}}))}tm({total:e.length,completed:t+1,passed:s,failed:a,stopped:!1}),t<e.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{to(null),tr(!1),tn(!1),tx.current=!1}},sh=async e=>{e6({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{e6(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&b(u.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},sf=()=>{sn(),F(!1)},sb=(0,r.useCallback)(e=>{(ty(e),tj(""),e?.jobId)?(window.localStorage.setItem(ec,e.jobId),tz.current=Math.max(tz.current,e.summary?.success||0)):tF()},[tF]),sg=async e=>{ee("");try{let t=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:n,...e})}),s=null;try{s=await t.json()}catch{s=null}if(t.ok){await sn(),X(!1);return}ee(s?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),ee("Failed to save connection")}},sy=async e=>{try{(await fetch(`/api/providers/${eb.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await sn(),ea(!1))}catch(e){console.log("Error updating connection:",e)}},sv=async(e,t)=>{try{let s=await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})});if(s.ok){let a=await s.json().catch(()=>null);b(s=>s.map(s=>s.id===e?{...s,isActive:t,...a?.connection||{}}:s))}}catch(e){console.log("Error updating connection status:",e)}},sj=async(e,t)=>{let s=[...u];[s[e],s[t]]=[s[t],s[e]],b(s);try{let[a,r]=await Promise.all([fetch(`/api/providers/${s[e].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:e+1})}),fetch(`/api/providers/${s[t].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:t+1})})]);a.ok&&r.ok||(console.log("Priority swap rejected:",a.status,r.status),await sn())}catch(e){console.log("Error swapping priority:",e),await sn()}},sk=(0,r.useMemo)(()=>{let e=t$.trim().toLowerCase();return u.filter(t=>!!(0,v.i2)(t,tS)&&(!e||[t.name,t.email,t.id,t.account,t.username,t.label,t.authType,t.notes,t.proxyPoolId].filter(Boolean).join(" ").toLowerCase().includes(e)))},[u,tS,t$]),sw=(0,r.useMemo)(()=>v.gJ.reduce((e,t)=>(e[t.id]="all"===t.id?u.length:u.filter(e=>(0,v.i2)(e,t.id)).length,e),{}),[u]),sN=eD.filter(e=>u.some(t=>t.id===e)),sC=u.filter(e=>sN.includes(e.id)),sS="codebuddy"===n?(sC.length>0?sC:u).map(e=>e.id):[],sA=sk.length>0&&sk.every(e=>sN.includes(e.id)),s$=e=>{switch(e){case"oauth":if("antigravity"===n&&"true"!==window.localStorage.getItem(tL)){ts(e),te(!0);return}tK();return;case"apikey":ee(""),X(!0);return;case"cookie":B(!0);return;case"quota-cookie":u.length>1&&0===sC.length?alert("Select the CodeBuddy connection(s) that should use this quota cookie first."):G(!0);return;default:tU(`Unsupported connection method: ${e}`,"Add Connection")}},sT=e=>{null!==tD.current&&window.cancelAnimationFrame(tD.current),tD.current=window.requestAnimationFrame(()=>{tD.current=null,s$(e)})},sO=()=>{"specialized"===t4.type?tK():"method"===t4.type?s$(t4.methodId):"chooser"===t4.type&&V(!0)},sP=(()=>{if(0===sC.length)return"";let e=new Set(sC.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return"All selected currently unbound";let s=z.find(e=>e.id===t);return`All selected currently bound to ${s?.name||t}`}return"Selected connections have mixed proxy bindings"})(),sE=()=>{eK||el(!1)},sR=async e=>{eB(!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 sn(),el(!1)}finally{eB(!1)}},s_=e=>sR(sC.map(t=>({connectionId:t.id,proxyPoolId:e}))),sI=e=>{let t="gsuite"===e?"GSuite (non-Gmail)":"Gmail (@gmail.com)";e6({title:`Delete ${t}`,message:`Delete ALL ${t} accounts for this provider? This cannot be undone.`,onConfirm:async()=>{e6(null);try{(await fetch("/api/providers/bulk-delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:tJ?.id||n,emailFilter:e})})).ok&&(eU([]),await sn())}catch(e){console.error("bulk delete error:",e)}}})},sz=Math.max(1,Math.ceil(sk.length/tN)),sq=Math.min(tk,sz),sM=sk.slice((sq-1)*tN,sq*tN),sD=(0,a.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:sM.map((e,t)=>{let s,r=u.findIndex(t=>t.id===e.id);return(0,a.jsxs)("div",{className:"flex min-w-0 items-stretch",children:[(0,a.jsx)("label",{className:"flex w-8 shrink-0 items-center justify-center",children:(0,a.jsx)("input",{type:"checkbox",checked:(s=e.id,sN.includes(s)),onChange:()=>{var t;return t=e.id,void eU(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"size-4 rounded border-black/20 dark:border-white/20","aria-label":`Select ${e.name||e.email||e.id}`})}),(0,a.jsx)("div",{className:"flex-1 min-w-0",children:(0,a.jsx)(I,{connection:e,proxyPools:z,isOAuth:tG,isFirst:0===r,isLast:r===u.length-1,onMoveUp:()=>sj(r,r-1),onMoveDown:()=>sj(r,r+1),onToggleActive:t=>sv(e.id,t),autoPingEnabled:!0===eY[e.id],onToggleAutoPing:em[n]&&"oauth"===e.authType?t=>sc(e.id,t):void 0,onUpdateProxy:async t=>{try{(await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&b(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:()=>{eg(e),ea(!0)},onDelete:()=>sh(e.id),oneByOneStatus:td[e.id]||null})})]},e.id)})}),sU=z.filter(e=>!0===e.isActive),sL=(0,a.jsx)(d.aF,{isOpen:en,onClose:sE,title:`Apply Proxy (${sC.length} selected)`,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=z.filter(e=>!0===e.isActive);return 0===e.length?void alert("No active proxy pools available."):sR(sC.map((t,s)=>({connectionId:t.id,proxyPoolId:e[s%e.length].id})))},disabled:eK||0===sU.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:()=>s_(null),disabled:eK,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)"})]}),z.map(e=>(0,a.jsxs)("button",{onClick:()=>s_(e.id),disabled:eK||!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))]}),eK&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,a.jsx)(d.$n,{onClick:sE,variant:"ghost",fullWidth:!0,disabled:eK,children:"Cancel"})]})}),sF=async e=>{e$(t=>new Set(t).add(e));try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${t6}/${e}`})}),s=await t.json();eN(t=>({...t,[e]:s.ok?"ok":"error"})),eS(t=>({...t,[e]:s.ok?"":s.error||"Model not reachable"}))}catch{eN(t=>({...t,[e]:"error"})),eS(t=>({...t,[e]:"Network error"}))}finally{e$(t=>{let s=new Set(t);return s.delete(e),s})}};return A?(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(d.Qv,{}),(0,a.jsx)(d.Qv,{})]}):tJ?(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)(l(),{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:`${tJ.color}15`},children:ej?(0,a.jsx)("span",{className:"text-sm font-bold",style:{color:tJ.color},children:tJ.textIcon||tJ.id.slice(0,2).toUpperCase()}):(0,a.jsx)(o.A,{src:t0&&tJ.apiType?"responses"===tJ.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":t1?"/providers/anthropic-m.png":`/providers/${tJ.id}.png`,alt:tJ.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>ek(!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:tJ.name}),(tJ.notice?.apiKeyUrl||tJ.notice?.signupUrl||tJ.website)&&(0,a.jsxs)("a",{href:tJ.notice?.apiKeyUrl||tJ.notice?.signupUrl||tJ.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"}),tJ.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,a.jsxs)("p",{className:"text-text-muted",children:[u.length," connection",1===u.length?"":"s"]})]})]})]}),tJ.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:tJ.deprecationNotice})]}),tJ.notice?.text&&!tJ.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:tJ.notice.text}),tJ.notice.apiKeyUrl&&(0,a.jsx)("a",{href:tJ.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 →"})]}),t5&&R&&(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:t1?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,a.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[t1?"Messages API":"responses"===R.apiType?"Responses API":"Chat Completions"," \xb7 ",(R.baseUrl||"").replace(/\/$/,""),"/",t1?"messages":"responses"===R.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:()=>{ee(""),X(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>ei(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{e6({title:"Delete Compatible Node",message:`Delete this ${t1?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{e6(null);try{(await fetch(`/api/provider-nodes/${n}`,{method:"DELETE"})).ok&&s.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),tV?(0,a.jsx)(d.gw,{providerId:n}):(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:[u.length>0&&z.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>{if(0===sC.length)return;let e=[...new Set(sC.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"))];eF(1===e.length?e[0]:"__none__"),el(!0)},disabled:0===sC.length,children:"Apply Proxy"}),u.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:sp,disabled:ta,children:ta?"Testing Connection One-by-One...":"Test Connection One-by-One"}),ta&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{ta&&(tx.current=!0,tn(!0))},disabled:ti,children:ti?"Stopping...":"Stop"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Thinking"}),(0,a.jsx)("select",{value:eZ,onChange:e=>{var t;eX(t=e.target.value),sd(t)},className:"text-xs px-2 py-1 border border-border rounded-md bg-background focus:outline-none focus:border-primary",title:"Forces reasoning_effort on requests; model chips copy as alias/model(level)",children:(t8?.options||c.mt).map(e=>(0,a.jsx)("option",{value:e,children:e.charAt(0).toUpperCase()+e.slice(1)},e))})]}),(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"===eG,onChange:e=>{let t=e?"round-robin":null,s=e?eV||"1":eV;e&&!eV&&eQ("1"),th.current=s,tp.current&&(clearTimeout(tp.current),tp.current=null),eH(t),so(t,s)}}),"round-robin"===eG&&(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:eV,onChange:e=>{var t;eQ(t=e.target.value),th.current=t,tp.current&&clearTimeout(tp.current),tp.current=setTimeout(()=>{so("round-robin",th.current)},500)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),u.length>0&&(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-3 rounded-lg border border-black/5 bg-black/[0.02] p-3 dark:border-white/5 dark:bg-white/[0.02]",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted",children:[(0,a.jsx)("input",{type:"checkbox",checked:sA,onChange:()=>{sA?eU(e=>e.filter(e=>!sk.some(t=>t.id===e))):eU(e=>Array.from(new Set([...e,...sk.map(e=>e.id)])))},className:"size-4 rounded border-black/20 dark:border-white/20"}),sA?"Unselect visible":"Select visible"]}),(0,a.jsxs)(d.Ex,{variant:"default",children:[sk.length," visible"]}),sC.length>0&&(0,a.jsxs)(d.Ex,{variant:"default",children:[sC.length," selected"]}),sP&&(0,a.jsx)("span",{className:"text-xs text-text-muted",children:sP}),sC.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",onClick:()=>{eU([]),eF("__none__")},children:"Clear"}),sC.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:()=>{0!==sC.length&&e6({title:"Delete Selected Connections",message:`Delete ${sC.length} selected connection(s)? This permanently removes the selected accounts.`,onConfirm:async()=>{e6(null);let e=[],t=0;for(let s of sC)try{(await fetch(`/api/providers/${s.id}`,{method:"DELETE"})).ok?e.push(s.id):t+=1}catch(e){console.log("Error deleting selected connection:",e),t+=1}eU(t=>t.filter(t=>!e.includes(t))),t>0&&alert(`Deleted ${e.length} connection(s); ${t} failed.`),await sn()}})},children:["Delete Selected (",sC.length,")"]}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"domain",onClick:()=>sI("gsuite"),children:"Delete GSuite"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"mail",onClick:()=>sI("gmail"),children:"Delete Gmail"})]})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:v.gJ.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>tA(e.id),className:`rounded-full border px-2.5 py-1 text-xs transition-colors ${tS===e.id?"border-primary/50 bg-primary/10 text-primary":"border-border text-text-muted hover:border-primary/30 hover:text-text-main"}`,children:[e.label,(0,a.jsx)("span",{className:"ml-1 text-[10px] opacity-70",children:sw[e.id]||0})]},e.id))}),u.length>=20&&(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:"material-symbols-outlined pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-[16px] text-text-subtle",children:"search"}),(0,a.jsx)("input",{type:"search",value:t$,onChange:e=>tT(e.target.value),placeholder:`Search ${u.length} connections (email, name, id)…`,className:"w-full rounded-lg border border-border bg-background py-2 pl-8 pr-3 text-xs text-text-main outline-none placeholder:text-text-subtle focus:border-primary/40"})]})]}),O?(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-red-500/30 bg-red-500/10 px-4 py-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] text-red-500",children:"error"}),(0,a.jsx)("p",{className:"text-sm text-red-600 dark:text-red-400",children:O})]}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"refresh",onClick:()=>{$(!0),sn()},children:"Retry"})]}):0===u.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"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:tG?"lock":"key"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),t3.length>1?(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Add Connection lists every available authentication method."}):null]})]}),(0,a.jsx)(ed,{showAutomation:t2,showAddConnection:"none"!==t4.type,onOpenAutomation:tB,onAddConnection:sO})]}),"kiro"===n&&tg?.jobId&&(0,a.jsxs)("div",{className:"mt-4 flex flex-col gap-3 rounded-lg border border-primary/20 bg-primary/[0.06] px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Bulk import progress is still available"}),(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Status: ",tg.status," | Success: ",tg.summary?.success||0," | Running: ",tg.summary?.running||0," | Queued: ",tg.summary?.queued||0]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",icon:"monitoring",variant:"secondary",onClick:()=>s.push(x("kiro")),children:"Resume Bulk Progress"}),ex(tg.status)&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",icon:"close",onClick:tF,children:"Clear"})]})]}),"kiro"===n&&!tg?.jobId&&tv&&(0,a.jsx)("div",{className:"mt-4 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-700 dark:border-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:tv})]}):(0,a.jsxs)(a.Fragment,{children:[tu&&(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: ",tu.total]}),(0,a.jsxs)("span",{children:["Completed: ",tu.completed]}),(0,a.jsxs)("span",{children:["Passed: ",tu.passed]}),(0,a.jsxs)("span",{children:["Failed: ",tu.failed]}),tu.stopped&&(0,a.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),ta&&tl&&(0,a.jsxs)("span",{children:["Running: ",u.find(e=>e.id===tl)?.name||tl]})]})}),"kiro"===n&&tg?.jobId&&(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-3 rounded-lg border border-primary/20 bg-primary/[0.06] px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-text-main",children:"Bulk import progress is still available"}),(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Status: ",tg.status," | Success: ",tg.summary?.success||0," | Running: ",tg.summary?.running||0," | Queued: ",tg.summary?.queued||0]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",icon:"monitoring",variant:"secondary",onClick:()=>s.push(x("kiro")),children:"Resume Bulk Progress"}),ex(tg.status)&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",icon:"close",onClick:tF,children:"Clear"})]})]}),"kiro"===n&&!tg?.jobId&&tv&&(0,a.jsx)("div",{className:"mb-4 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-700 dark:border-amber-800 dark:bg-amber-900/20 dark:text-amber-300",children:tv}),sD,"kiro"===n&&sz>1&&(0,a.jsxs)("div",{className:"mt-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Page ",sq," of ",sz," • Showing ",(sq-1)*tN+1,"-",Math.min(sq*tN,sk.length)," of ",sk.length," connections"]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",disabled:sq<=1,onClick:()=>tw(e=>Math.max(1,e-1)),children:"Previous"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",disabled:sq>=sz,onClick:()=>tw(e=>Math.min(sz,e+1)),children:"Next"})]})]}),"kiro"!==n&&sk.length>0&&(0,a.jsx)(d.dK,{currentPage:sq,pageSize:tN,totalItems:sk.length,onPageChange:tw,onPageSizeChange:e=>{tC(e),tw(1)},className:"mt-2"}),u.length>0&&0===sk.length&&(0,a.jsx)("div",{className:"py-8 text-center text-sm text-text-muted",children:"No connections match this status filter."}),(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(ed,{showAutomation:t2,showAddConnection:"none"!==t4.type,onOpenAutomation:tB,onAddConnection:sO})})]})]}),(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"}),!t5&&(e=[...tX,...e2.filter(e=>!tX.some(t=>t.id===e.id))].filter(e=>!e.type||"llm"===e.type).map(e=>e.id).filter(e=>!e4.includes(e)),(0,a.jsxs)("div",{className:"flex gap-2",children:[e4.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:sr,children:"Active All"}),e.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>sa(e),children:"Disable All"})]}))]}),Object.values(eC).some(Boolean)&&(0,a.jsx)("div",{className:"mb-3 flex flex-col gap-1",children:Object.entries(eC).filter(([,e])=>!!e).map(([e,t])=>(0,a.jsxs)("p",{className:"text-xs text-red-500 break-words",children:[e,": ",t]},e))}),(()=>{let e,t,s;if(t5)return(0,a.jsx)(E,{providerStorageAlias:t6,providerDisplayAlias:t9,modelAliases:ey,copied:t_,onCopy:tI,onSetAlias:su,onDeleteAlias:sm,onAliasesChanged:si,connections:u,isAnthropic:t1});let r=[...tX,...e2.filter(e=>!tX.some(t=>t.id===e.id))].filter(e=>!e.type||"llm"===e.type),i=new Set(e4),l=r.filter(e=>!i.has(e.id)),o=r.filter(e=>i.has(e.id)),c=Object.entries(ey).filter(([e,t])=>{let s=`${t6}/`;if(!t.startsWith(s))return!1;let a=t.slice(s.length);return tJ.passthroughModels?!tX.some(e=>e.id===a):!tX.some(e=>e.id===a)&&e===a}).map(([e,t])=>({id:t.slice(`${t6}/`.length),alias:e,fullModel:t})),m=Math.min(tO,Math.max(1,Math.ceil(l.length/tE))),x=l.slice((m-1)*tE,m*tE);return(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[c.map(e=>(0,a.jsx)(T,{model:{id:e.id},fullModel:`${t9}/${e.id}`,alias:e.alias,copied:t_,onCopy:tI,onSetAlias:()=>{},onDeleteAlias:()=>sm(e.alias),testStatus:ew[e.id],onTest:u.length>0||tV?()=>sF(e.id):void 0,isTesting:eA.has(e.id),isCustom:!0,isFree:!1,thinkingSuffix:eZ&&"auto"!==eZ&&"off"!==eZ&&"none"!==eZ?eZ:null},e.id)),x.map(e=>{let t=`${t6}/${e.id}`,s=`${n}/${e.id}`,r=Object.entries(ey).find(([,e])=>e===t||e===s)?.[0];return(0,a.jsx)(T,{model:e,fullModel:`${t9}/${e.id}`,alias:r,copied:t_,onCopy:tI,onSetAlias:t=>su(e.id,t,t6),onDeleteAlias:()=>sm(r),testStatus:ew[e.id],onTest:u.length>0||tV?()=>sF(e.id):void 0,isTesting:eA.has(e.id),isFree:e.isFree,onDisable:()=>st(e.id),thinkingSuffix:eZ&&"auto"!==eZ&&"off"!==eZ&&"none"!==eZ?eZ:null},e.id)}),l.length>tE&&(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(d.dK,{currentPage:m,pageSize:tE,totalItems:l.length,onPageChange:tP,onPageSizeChange:e=>{tR(e),tP(1)}})}),(0,a.jsxs)("button",{onClick:()=>eO(!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"]}),"codebuddy"===n&&(0,a.jsxs)("button",{onClick:()=>eE(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-cyan-500/50 px-3 py-2 text-xs text-cyan-700 transition-colors hover:border-cyan-500 hover:bg-cyan-500/[0.07] dark:text-cyan-300 sm:w-auto",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Discover Models"]}),"opencode"===n&&(0,a.jsxs)("button",{onClick:()=>e_(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-orange-500/50 px-3 py-2 text-xs text-orange-700 transition-colors hover:border-orange-500 hover:bg-orange-500/[0.07] dark:text-orange-300 sm:w-auto",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"kiro"===n&&(0,a.jsxs)("button",{onClick:()=>ez(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-violet-500/50 px-3 py-2 text-xs text-violet-700 transition-colors hover:border-violet-500 hover:bg-violet-500/[0.07] dark:text-violet-300 sm:w-auto",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"cloudflare-ai"===n&&(0,a.jsxs)("button",{onClick:()=>eM(!0),className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-orange-500/50 px-3 py-2 text-xs text-orange-700 transition-colors hover:border-orange-500 hover:bg-orange-500/[0.07] dark:text-orange-300 sm:w-auto",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"radar"}),"Live Probe Models"]}),"qoder"===n&&u.some(e=>!1!==e.isActive)&&(0,a.jsxs)("button",{onClick:sx,disabled:tf,className:"flex w-full items-center justify-center gap-1.5 rounded-lg border border-dashed border-blue-500/40 px-3 py-2 text-xs text-blue-600 dark:text-blue-400 transition-colors hover:border-blue-500 hover:bg-blue-500/5 sm:w-auto disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:tf?{animation:"spin 1s linear infinite"}:void 0,children:tf?"progress_activity":"download"}),tf?(0,f.Tl)("Fetching..."):(0,f.Tl)("Fetch Qoder Models")]}),e1.length>0&&(e=new Set(Object.values(ey)),t=new Set(tX.map(e=>e.id)),0===(s=e1.filter(s=>!e.has(`${t6}/${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 su(e.id,t,t6)},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:()=>ss(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))})]})]})})()]}),en&&sL,H&&(0,a.jsx)(d.mz,{isOpen:!0,providerName:tJ.name,methods:t7,onSelect:e=>{V(!1),sT(e)},onClose:()=>V(!1)}),L&&("kiro"===n?(0,a.jsx)(d.Mh,{isOpen:!0,providerInfo:tJ,onSuccess:sf,onRefresh:sn,initialBulkJobId:tg?.jobId||null,onBulkJobChange:sb,onClose:()=>F(!1)}):"cursor"===n?(0,a.jsx)(d.G9,{isOpen:!0,onSuccess:sf,onClose:()=>F(!1)}):"gitlab"===n?(0,a.jsx)(d.vj,{isOpen:!0,providerInfo:tJ,onSuccess:sf,onClose:()=>F(!1)}):(0,a.jsx)(d.LF,{isOpen:!0,provider:n,providerInfo:tJ,onSuccess:sf,onClose:()=>F(!1)})),"iflow"===n&&K&&(0,a.jsx)(d.vE,{isOpen:!0,onSuccess:()=>{sn(),B(!1)},onClose:()=>B(!1)}),"codebuddy"===n&&W&&(0,a.jsx)(d.xl,{isOpen:!0,connectionIds:sS,onSuccess:()=>{sn(),G(!1)},onClose:()=>G(!1)}),Z&&(0,a.jsx)(M,{isOpen:!0,provider:n,providerName:tJ.name,isCompatible:t5,isAnthropic:t1,authType:tJ?.authType,authHint:tJ?.authHint,website:tJ?.website,proxyPools:z,error:Y,onSave:sg,onBulkDone:sn,onClose:()=>{ee(""),X(!1)}}),et&&eb&&(0,a.jsx)(d.wI,{isOpen:!0,connection:eb,proxyPools:z,onSave:sy,onClose:()=>ea(!1)}),t5&&er&&(0,a.jsx)(D,{isOpen:!0,node:R,onSave:sl,onClose:()=>ei(!1),isAnthropic:t1}),!t5&&eT&&(0,a.jsx)(U,{isOpen:!0,providerAlias:t6,providerDisplayAlias:t9,onSave:async e=>{let t=tJ?.passthroughModels?e.split("/").pop():e;await su(e,t,t6),eO(!1)},onClose:()=>eO(!1)}),"codebuddy"===n&&eP&&(0,a.jsx)(J,{isOpen:!0,connections:u,onModelsAdded:async e=>{for(let t of e)await su(t.id,t.id,"cb");await si()},onClose:()=>eE(!1)}),"opencode"===n&&eR&&(0,a.jsx)(Q,{isOpen:!0,onModelsAdded:async e=>{for(let t of e)await su(t.id,t.id,"oc");await si()},onClose:()=>e_(!1)}),"kiro"===n&&eI&&(0,a.jsx)(es,{isOpen:!0,connections:u,onClose:()=>ez(!1)}),"cloudflare-ai"===n&&eq&&(0,a.jsx)(eo,{isOpen:!0,connections:u,onModelsAdded:async e=>{for(let t of e)await su(t.id,t.id,tY);await si()},onClose:()=>eM(!1)}),e9&&(0,a.jsx)(d.uo,{isOpen:!0,onClose:()=>te(!1),onConfirm:()=>{window.localStorage.setItem(tL,"true"),te(!1),ts(null),sT(tt||"oauth")},title:"Risk Notice",message:tJ?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),e8&&(0,a.jsx)(d.uo,{isOpen:!0,onClose:()=>{eJ||e6(null)},onConfirm:async()=>{if(eJ)return;let e=e8?.onConfirm;if(e){eW(!0);try{await e()}finally{eW(!1)}}},title:e8?.title||"Confirm",message:e8?.message,variant:"danger",loading:eJ})]}):(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)(l(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]})}},28915:(e,t,s)=>{"use strict";s.d(t,{x6:()=>a.fetchJson,E2:()=>r,gs:()=>i});var a=s(68211);function r(e){if(!e)return null;let t=e.match(/\b([45]\d{2})\b/);return t?t[1]:"ERR"}function i(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 a=Math.floor(s/24);return`${a}d ago`}},42911:(e,t,s)=>{Promise.resolve().then(s.bind(s,15919))},68211:(e,t,s)=>{"use strict";s.d(t,{fetchJson:()=>r});let a={"Content-Type":"application/json"};async function r(e,t={}){let{body:s,headers:i,...n}=t,l={...n,headers:{...a,...i}};void 0!==s&&"string"!=typeof s?l.body=JSON.stringify(s):void 0!==s&&(l.body=s);let o=await fetch(e,l),d=await o.text(),c=null;if(d)try{c=JSON.parse(d)}catch{let t=Error(`Non-JSON response from ${e} (HTTP ${o.status})`);throw t.status=o.status,t.rawBody=d.slice(0,300),t}if(!o.ok){let e=c&&(c.error?.message||c.error||c.message)||`Request failed (HTTP ${o.status})`,t=Error("string"==typeof e?e:`HTTP ${o.status}`);throw t.status=o.status,t.data=c,t}return c}r.get=(e,t)=>r(e,{...t,method:"GET"}),r.post=(e,t,s)=>r(e,{...s,method:"POST",body:t}),r.put=(e,t,s)=>r(e,{...s,method:"PUT",body:t}),r.patch=(e,t,s)=>r(e,{...s,method:"PATCH",body:t}),r.del=(e,t)=>r(e,{...t,method:"DELETE"})},70217:(e,t,s)=>{"use strict";s.d(t,{BU:()=>u,G9:()=>l,d4:()=>d,gJ:()=>a,i2:()=>c});let a=[{id:"all",label:"All"},{id:"active",label:"Active",keys:["active"]},{id:"errors",label:"Errors",keys:["connection_error","auth_error","quota_exhausted","rate_limited","banned","cooldown","unknown"]},{id:"connection",label:"Connection",keys:["connection_error"]},{id:"auth",label:"Auth",keys:["auth_error"]},{id:"limit",label:"Limit",keys:["rate_limited","cooldown"]},{id:"exhausted",label:"Exhausted",keys:["quota_exhausted"]},{id:"banned",label:"Banned",keys:["banned"]},{id:"disabled",label:"Disabled",keys:["disabled"]}],r={active:{label:"active",severity:"success",terminal:!1},disabled:{label:"disabled",severity:"default",terminal:!1},connection_error:{label:"connection error",severity:"error",terminal:!1},auth_error:{label:"auth error",severity:"error",terminal:!0},quota_exhausted:{label:"exhausted",severity:"error",terminal:!0},rate_limited:{label:"rate limited",severity:"warning",terminal:!1},banned:{label:"banned",severity:"error",terminal:!0},cooldown:{label:"cooldown",severity:"warning",terminal:!1},unknown:{label:"unknown",severity:"default",terminal:!1}},i={policy_suspended:"banned",account_validation_required:"auth_error",credential_rejected:"auth_error",reauth_required:"auth_error",authentication:"auth_error",entitlement_or_quota:"quota_exhausted",rate_limited:"rate_limited",permission_denied:"auth_error",upstream_transient:"connection_error"};function n(e){if(!e)return"";if("string"==typeof e)return e.toLowerCase();try{return JSON.stringify(e).toLowerCase()}catch{return String(e).toLowerCase()}}function l(e={},t=Date.now()){let s=Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).map(([,e])=>new Date(e).getTime()).filter(e=>Number.isFinite(e)&&e>t);return s.length>0?new Date(Math.min(...s)).toISOString():null}function o(e,t=""){let s=r[e]||r.unknown;return{key:e,...s,reason:t}}function d(e={}){var t;let s=(t=e).quarantinedAt?o(i[n(t.failureClass)]||"unknown",t.quarantineReason||t.lastError||"Connection is quarantined"):null;if(s)return s;if(!1===e.isActive)return o("disabled","Connection is disabled");if(function(e={}){return null!==l(e)}(e))return o("cooldown","Model cooldown is active");if(function(e){if(!e)return!1;let t=new Date(e).getTime();return Number.isFinite(t)&&t>Date.now()}(e.rateLimitedUntil))return o("rate_limited","Rate limit cooldown is active");let a=n(e.testStatus||e.status),r=n(e.lastErrorType||e.errorType),c=n(e.errorCode||e.statusCode),u=n(e.lastError||e.error),m=`${a} ${r} ${c} ${u}`.trim();return!m||["active","success","ok"].includes(a)?o("active",""):m.includes("ban")||m.includes("suspend")||m.includes("restricted")?o("banned",e.lastError||"Account appears restricted"):m.includes("exhaust")||m.includes("quota exceeded")||m.includes("insufficient_quota")||m.includes("payment required")||"402"===c?o("quota_exhausted",e.lastError||"Quota exhausted"):r.includes("rate_limited")||m.includes("rate limit")||m.includes("too many requests")||"429"===c?o("rate_limited",e.lastError||"Rate limited"):r.includes("auth")||r.includes("token")||m.includes("unauthorized")||m.includes("invalid api key")||m.includes("token invalid")||m.includes("token expired")||m.includes("revoked")||"401"===c||"403"===c?o("auth_error",e.lastError||"Authentication failed"):r.includes("network")||m.includes("network")||m.includes("timeout")||m.includes("fetch failed")||m.includes("econn")||m.includes("dns")||m.includes("proxy")?o("connection_error",e.lastError||"Connection failed"):["error","expired","unavailable","failed"].includes(a)?o("connection_error",e.lastError||e.testStatus||"Connection failed"):o("unknown",e.lastError||e.testStatus||"")}function c(e,t){if(!t||"all"===t)return!0;let s=a.find(e=>e.id===t);return!s||s.keys.includes(d(e).key)}function u(e){return e?.severity==="success"?"success":e?.severity==="error"?"error":"default"}},81277:(e,t,s)=>{"use strict";s.d(t,{c:()=>i});var a=s(12115),r=s(70217);function i(e={}){let[t,s]=(0,a.useState)(null),n=JSON.stringify(Object.entries(e).filter(([e])=>e.startsWith("modelLock_")).sort(([e],[t])=>e.localeCompare(t)));return(0,a.useEffect)(()=>(function(e,t,s={}){let a=s.now||Date.now,i=s.setTimer||globalThis.setTimeout,n=s.clearTimer||globalThis.clearTimeout,l=!1,o=null,d=()=>{if(o=null,l)return;let s=a(),n=(0,r.G9)(e,s);t(n),n&&(o=i(d,Math.min(Math.max(1,new Date(n).getTime()-s+1),0x7fffffff)))};return o=i(d,0),()=>{l=!0,null!==o&&n(o),o=null}})(Object.fromEntries(JSON.parse(n)),s),[n]),t}}},e=>{e.O(0,[2574,3862,3745,3339,620,5497,8441,3794,7358],()=>e(e.s=42911)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{5498:(e,t,r)=>{Promise.resolve().then(r.bind(r,23686)),Promise.resolve().then(r.bind(r,25086))},23686:(e,t,r)=>{"use strict";r.d(t,{default:()=>M});var a=r(95155),s=r(12115),n=r(57250),i=r(8129);function l(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 n=Math.floor(s/60),i=s%60;if(n<24)return`${n}h ${i}m`;let l=Math.floor(n/24);return`${l}d ${n%24}h ${i}m`}catch(e){return"-"}}function o(e,t){return t&&0!==t?!e||e<0?100:e>=t?0:Math.round((t-e)/t*100):0}function c(e){if(e?.unlimited===!0)return e?.remainingPercentage!==void 0&&Number.isFinite(Number(e.remainingPercentage))?Math.max(0,Math.min(100,Math.round(Number(e.remainingPercentage)))):100;if(e?.remainingPercentage!==void 0&&Number.isFinite(Number(e.remainingPercentage)))return Math.max(0,Math.min(100,Math.round(Number(e.remainingPercentage))));if(e?.remaining!==void 0&&Number.isFinite(Number(e.remaining))){let t=Number(e.remaining);if(t>=0&&t<=100&&!(e.total>100&&t<=100&&null!=e.used))return e.total>0?o(e.used,e.total):Math.round(t)}return o(e?.used,e?.total)}function d(e,t){if(!t||"object"!=typeof t)return[];let r=[];try{switch(e.toLowerCase()){case"github":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"antigravity":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codex":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{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])=>{let a=e.endsWith("_freetrial"),s=(a?e.slice(0,-10):e).split(/[_\s]+/).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ");r.push({name:a?`${s} (Free Trial)`:s,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"qoder":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{("organization"!==e||t&&0!==(Number(t.total)||0))&&r.push({name:"user"===e?"Personal":"organization"===e?"Organization":e,used:t.used||0,total:t.total||0,unit:t.unit,resetAt:t.resetAt||null})});break;case"autoclaw":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:"points"===e?"Points":e,used:t.used||0,total:t.total||0,unit:t.unit,resetAt:t.resetAt||null})});break;case"claude":t.message&&!t.quotas?r.push({name:"error",isError:!0,used:0,total:0,resetAt:null,message:t.message}):t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"grok-cli":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{let a=!0===t.unlimited||!(t.total>0)&&t.remainingPercentage>0;r.push({name:e,used:t.used||0,total:a?0:t.total||0,resetAt:t.resetAt||null,remainingPercentage:null!=t.remainingPercentage?t.remainingPercentage:a?100:void 0,unlimited:a})});break;case"cloudflare-ai":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{let a=!0===t.unlimited||!(t.total>0);r.push({name:e,used:t.used||0,total:a?0:t.total||0,resetAt:t.resetAt||null,remainingPercentage:null!=t.remainingPercentage?t.remainingPercentage:100*!!a,unlimited:a})});break;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,...null!=t.remainingPercentage?{remainingPercentage:t.remainingPercentage}:{},...!0===t.unlimited?{unlimited:!0}:{}})})}}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}var u=r(58041);function m(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 n="";n=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`${n}, ${i}`}catch{return null}}function x(e){return e>70?{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"}:e>=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"}}let h=["name","used","total","resetAt","remaining","remainingPercentage","unlimited","message","isError","unit","modelKey"];function p({quotas:e=[],compact:t=!1,sortMode:r="default",showSortLabel:n=!1,paginate:i=!0,totalCount:o}){let[d,b]=(0,s.useState)(1),[g,f]=(0,s.useState)(e);g===e||Array.isArray(g)&&Array.isArray(e)&&g.length===e.length&&g.every((t,r)=>{let a=e[r];return t&&a?h.every(e=>String(t[e]??null)===String(a[e]??null)):t===a})||f(e);let v=(0,s.useMemo)(()=>g.map((e,t)=>({...e,index:t,remaining:c(e)})),[g]),y=(0,s.useMemo)(()=>"remaining-asc"===r?[...v].sort((e,t)=>e.remaining-t.remaining||e.name.localeCompare(t.name)):"remaining-desc"===r?[...v].sort((e,t)=>t.remaining-e.remaining||e.name.localeCompare(t.name)):v,[v,r]),j=i?Math.max(1,Math.ceil(y.length/10)):1;if((0,s.useEffect)(()=>{b(1)},[r,g]),(0,s.useEffect)(()=>{b(e=>Math.min(e,j))},[j]),!e||0===e.length)return null;let k=i?y.slice((d-1)*10,10*d):y,w=0===y.length?0:(d-1)*10+1,N=i?Math.min(10*d,y.length):y.length,$=Number.isFinite(o)?o:y.length,C=t?"py-1 px-1.5":"py-2 px-3",S=t?"text-[11px]":"text-sm",A=t?"text-[11px]":"text-sm",E=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:[$," quota",$>1?"s":""]}),n&&(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)(u.DataList,{"aria-label":"Quota details",className:"sm:hidden",children:k.map(e=>{if(e.isError)return(0,a.jsx)(u.DataRow,{label:"Quota error",value:(0,a.jsx)("span",{className:"text-red-600 dark:text-red-400",children:e.message||"Failed to load quota"})},`mobile-error-${e.index}`);let t=x(e.remaining),r=l(e.resetAt),s=m(e.resetAt),n=!0!==e.unlimited&&e.total>0?`${e.used.toLocaleString()} / ${e.total.toLocaleString()}`:!0===e.unlimited?"Included / unlimited":`${e.used.toLocaleString()} / unlimited`;return(0,a.jsx)(u.DataRow,{label:e.name,value:(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)("div",{className:`h-1.5 overflow-hidden rounded-full ${t.bgLight}`,children:(0,a.jsx)("div",{className:`h-full ${t.bg}`,style:{width:`${Math.min(e.remaining,100)}%`}})}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3 text-xs",children:[(0,a.jsx)("span",{className:"text-text-muted",children:n}),(0,a.jsx)("span",{className:`font-semibold ${t.text}`,children:Number.isFinite(e.remaining)?`${e.remaining}% remaining`:"Unknown"})]})]}),detail:"-"!==r?`Resets in ${r}${s?` \xb7 ${s}`:""}`:s?`Resets ${s}`:"No reset window"},`mobile-${e.name}-${e.index}`)})}),(0,a.jsx)("div",{className:"hidden overflow-x-auto sm:block",children:(0,a.jsx)("table",{className:"w-full table-fixed text-left",children:(0,a.jsx)("tbody",{children:k.map(e=>{if(e.isError)return(0,a.jsx)("tr",{className:"border-b border-black/5 dark:border-white/5",children:(0,a.jsx)("td",{colSpan:3,className:`${C}`,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[14px] text-red-500",children:"error"}),(0,a.jsx)("span",{className:`${S} text-red-600 dark:text-red-400 truncate`,children:e.message||"Failed to load quota"})]})})},`error-${e.index}`);let r=x(e.remaining),s=l(e.resetAt),n=m(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:`${C} 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:r.emoji}),(0,a.jsx)("span",{className:`${S} font-medium text-text-primary truncate`,children:e.name})]})}),(0,a.jsx)("td",{className:`${C} 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 ${r.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 ${r.bg}`,style:{width:`${Math.min(e.remaining,100)}%`}})}),(0,a.jsxs)("div",{className:`flex items-center justify-between ${t?"text-[10px]":"text-xs"}`,children:[(0,a.jsx)("span",{className:"text-text-muted",children:!0!==e.unlimited&&e.total>0?`${e.used.toLocaleString()} / ${e.total.toLocaleString()}`:!0===e.unlimited?"Included / ∞":`${e.used.toLocaleString()} / ∞`}),(0,a.jsx)("span",{className:`font-medium ${r.text}`,children:Number.isFinite(e.remaining)?`${e.remaining}%`:"—"})]})]})}),(0,a.jsx)("td",{className:`${C} w-[25%]`,children:"-"!==s||n?t?(0,a.jsx)("div",{className:`${A} text-text-primary font-medium truncate`,title:n||"",children:"-"!==s?`in ${s}`:n}):(0,a.jsxs)("div",{className:"space-y-0.5",children:["-"!==s&&(0,a.jsxs)("div",{className:`${A} text-text-primary font-medium`,children:["in ",s]}),n&&(0,a.jsx)("div",{className:`${E} text-text-muted`,children:n})]}):(0,a.jsx)("div",{className:`${A} text-text-muted italic`,children:"N/A"})})]},`${e.name}-${e.index}`)})})})}),j>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 ",w,"-",N," of ",y.length]}),(0,a.jsxs)("span",{children:["Page ",d," / ",j]})]}),(0,a.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>b(e=>Math.max(1,e-1)),disabled:1===d,className:"flex h-11 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 sm:h-7 sm:rounded-md sm:px-2 sm:text-[10px]",children:"Prev"}),(0,a.jsx)("button",{type:"button",onClick:()=>b(e=>Math.min(j,e+1)),disabled:d===j,className:"flex h-11 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 sm:h-7 sm:rounded-md sm:px-2 sm:text-[10px]",children:"Next"})]})]})]})}var b=r(98542),g=r(84588),f=r(35497),v=r(52679);function y(e,t){return{quotas:e,plan:t.plan||null,message:t.message||null,cached:!0===t.cached,stale:!0===t.stale,fetchedAt:t.fetchedAt||null,refreshError:t.refreshError||null,raw:t}}function j(e,t){if(!t)return e;let r=new Date(t);return!Number.isFinite(r.getTime())||e&&r.getTime()<=e.getTime()?e:r}function k(e){let t=e=>"string"==typeof e&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);return t(e.email)?e.email:(t(e.name),e.name)}function w(e,t){let r=t[e.id]?.quotas?.[0];return r&&"number"==typeof r.remaining?r.remaining:1/0}function N(e){return v.Q2[e]?.name||e}function $(e){let t={};return e.forEach(e=>{t[e.id]=!0}),t}function C(e,t){let r=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>r.has(e)))}async function S(e,t){return await e(t)}let A="quotaAutoRefresh",E=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],q=[{value:"single",label:"Satuan",icon:"account_circle"},{value:"bulk",label:"Bulk",icon:"stacks"}],P=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}],T=[10,20,50,100];function M(){let[e,t]=(0,s.useState)([]),[r,i]=(0,s.useState)({}),[l,u]=(0,s.useState)({}),[m,x]=(0,s.useState)({}),[h,M]=(0,s.useState)(!0),[F,O]=(0,s.useState)(null),[z,_]=(0,s.useState)(!1),[D,L]=(0,s.useState)(!1),[I,R]=(0,s.useState)(60),[U,Q]=(0,s.useState)(!0),[H,K]=(0,s.useState)(null),[B,G]=(0,s.useState)(null),[J,W]=(0,s.useState)(null),[Y,V]=(0,s.useState)(null),[X,Z]=(0,s.useState)(!1),[ee,et]=(0,s.useState)(null),[er,ea]=(0,s.useState)(null),[es,en]=(0,s.useState)(null),[ei,el]=(0,s.useState)([]),[eo,ec]=(0,s.useState)("all"),[ed,eu]=(0,s.useState)([]),[em,ex]=(0,s.useState)("single"),[eh,ep]=(0,s.useState)("all"),[eb,eg]=(0,s.useState)("default"),[ef,ev]=(0,s.useState)(!1),[ey,ej]=(0,s.useState)(!1),[ek,ew]=(0,s.useState)(!1),[eN,e$]=(0,s.useState)({}),[eC,eS]=(0,s.useState)(!1),[eA,eE]=(0,s.useState)({}),[eq,eP]=(0,s.useState)({}),[eT,eM]=(0,s.useState)({}),[eF,eO]=(0,s.useState)(1),[ez,e_]=(0,s.useState)(20),[eD,eL]=(0,s.useState)(String(20)),[eI,eR]=(0,s.useState)({page:1,pageSize:20,total:0,totalPages:1}),[eU,eQ]=(0,s.useState)({eligibleConnections:0,providerFilteredConnections:0}),eH=(0,s.useRef)(null),eK=(0,s.useRef)(null),eB=(0,s.useRef)(null),eG=(0,s.useRef)(0),eJ=(0,s.useRef)(null),eW=(0,s.useRef)(!1),eY=(0,s.useCallback)(e=>{if(e&&"object"==typeof e){if("snapshot"===e.type){let t=Object.values(e.accounts||{}).flatMap(e=>{if(!e?.connectionId||!e?.provider)return[];let t=e.usage||{};return[[e.connectionId,y(d(e.provider,t),{...t,...e.provenance})]]});t.length>0&&(i(Object.fromEntries(t)),u(e=>({...e,...Object.fromEntries(t.map(([e])=>[e,!1]))})));return}if("update"===e.type){let t=e.usage||{};i(r=>({...r,[e.connectionId]:y(d(e.provider,t),{...t,...e.provenance})})),u(t=>({...t,[e.connectionId]:!1})),x(t=>({...t,[e.connectionId]:null})),O(t=>j(t,e.provenance?.fetchedAt));return}if("error"===e.type){let t=e.previous;t?.usage&&e.connectionId&&e.provider&&i(r=>({...r,[e.connectionId]:y(d(e.provider,t.usage),{...t.usage,...t.provenance,stale:!0})})),u(t=>({...t,[e.connectionId]:!1})),x(t=>({...t,[e.connectionId]:e.error?.message||"Quota refresh failed"}));return}"complete"===e.type&&(eW.current=!1,L(!1),u(e=>Object.fromEntries(Object.keys(e).map(e=>[e,!1]))))}},[]),eV=(0,s.useCallback)(async()=>{eW.current=!0,L(!0);try{let e=await fetch("/api/usage/quota-stream?refresh=1",{method:"POST"});if(!e.ok)throw Error(`HTTP ${e.status}`)}catch(e){eW.current=!1,L(!1),u(e=>Object.fromEntries(Object.keys(e).map(e=>[e,!1]))),G({type:"error",message:`Could not start quota refresh: ${e.message}`})}},[]),eX=(0,s.useCallback)(()=>{if(eJ.current)return eJ.current;let e=new EventSource("/api/usage/quota-stream");return eJ.current=e,e.onmessage=({data:e})=>{try{eY(JSON.parse(e))}catch{}},e.onerror=()=>{G(e=>e||{type:"warning",message:"Quota stream interrupted; reconnecting automatically."})},e},[eY]),eZ=async()=>{let e=er?.connection;if(e){en(e.id);try{let t=await fetch(`/api/usage/${e.id}/codex-reset-credits`,{method:"POST"}),r=await t.json();if(!t.ok)throw Error(r.error||r.message||"Failed to use reset credit");ea(null),await e5(e.id,e.provider)}catch(e){G({message:e.message||"Failed to use Codex reset credit"})}finally{en(null)}}},e0=(0,s.useCallback)(async(e=eF)=>{let r=++eG.current;try{var a,s;let n=new URLSearchParams({page:String(e),pageSize:String(ez),accountStatus:eh,sort:"priority"});"all"!==eo&&n.set("provider",eo);let i=await fetch(`/api/providers/client?${n.toString()}`);if(!i.ok){let e=await i.json().catch(()=>({}));throw Error(e.error||`Failed to fetch connections (HTTP ${i.status})`)}let l=await i.json();if(r!==eG.current)return[];let o=l.connections||[],c=(a=l.pagination,a||{page:1,pageSize:ez,total:0,totalPages:1}),d=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(l.totals,o.length);return t(o),eu(l.providerOptions||[]),eR(c),eQ(d),eO((s=l.pagination,s?.page||e)),K(null),o}catch(e){if(console.error("Error fetching connections:",e),r!==eG.current)return[];return K(e.message||"Failed to fetch connections"),[]}},[eh,eF,ez,eo]),e1=(0,s.useCallback)(async(e,t,r=!1)=>{u(t=>({...t,[e]:!0})),x(t=>({...t,[e]:null}));try{let a=await fetch(`/api/usage/${e}${r?"?refresh=1":""}`);if(!a.ok){let r=(await a.json().catch(()=>({}))).error||a.statusText;if(404===a.status)return void console.warn(`[ProviderLimits] Connection not found for ${t}, skipping`);if(401===a.status)return console.warn(`[ProviderLimits] Auth error for ${t}:`,r),x(t=>({...t,[e]:r})),null;throw Error(`HTTP ${a.status}: ${r}`)}let s=await a.json(),n=d(t,s),l=y(n,s);return i(t=>({...t,[e]:l})),{fetchedAt:s.fetchedAt||null}}catch(r){return console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),x(t=>({...t,[e]:r.message||"Failed to fetch quota"})),null}finally{u(t=>({...t,[e]:!1}))}},[]),e5=(0,s.useCallback)(async(e,t)=>{let r=await e1(e,t,!0);O(e=>j(e,r?.fetchedAt))},[e1]),e2=(0,s.useCallback)(async(e,t=!1)=>{if(e&&"all"!==e){eP(t=>({...t,[e]:!0})),eM(t=>({...t,[e]:!1}));try{let r=`/api/usage/aggregate?provider=${encodeURIComponent(e)}${t?"&refresh=1":""}`,a=await fetch(r);if(!a.ok)throw Error("Failed to fetch aggregate");let s=await a.json(),n=d(e,s);return eE(t=>({...t,[e]:{quotas:n,plan:s.plan||null,accountCount:s.accountCount||0,accountsWithQuota:s.accountsWithQuota||0,deadCount:s.deadCount||0,cached:!0===s.cached,fetchedAt:s.fetchedAt||null}})),{fetchedAt:s.fetchedAt||null}}catch(t){return console.error(`[ProviderLimits] Aggregate fetch error for ${e}:`,t),eM(t=>({...t,[e]:!0})),null}finally{eP(t=>({...t,[e]:!1}))}}},[]),e3=(0,s.useCallback)(async(e,t)=>{if("bulk"===em&&t){let e=await e2(t,!0);O(t=>j(t,e?.fetchedAt));return}e?.length&&(u(t=>({...t,...Object.fromEntries(e.map(e=>[e,!0]))})),await eV())},[em,e2,eV]),e8=(0,s.useCallback)(async e=>{if(confirm("Delete this connection?")){W(e),G(null);try{let t=await fetch(`/api/providers/${e}`,{method:"DELETE"});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||`HTTP ${t.status}`)}i(t=>{let r={...t};return delete r[e],r}),u(t=>{let r={...t};return delete r[e],r}),x(t=>{let r={...t};return delete r[e],r}),await S(e0,eF)}catch(e){console.error("Error deleting connection:",e),G({type:"error",message:e.message||"Failed to delete connection"})}finally{W(null)}}},[e0,eF]),e4=(0,s.useCallback)(async(e,t)=>{V(e),G(null);try{let r=await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})});if(!r.ok){let e=await r.json().catch(()=>({}));throw Error(e.error||`HTTP ${r.status}`)}await S(e0,eF)}catch(e){console.error("Error updating connection status:",e),await S(e0,eF),G({type:"error",message:e.message||"Failed to update connection status"})}finally{V(null)}},[e0,eF]),e6=(0,s.useCallback)(async e=>{if(!ee?.id)return;let t=ee.id,r=ee.provider;G(null);try{let a=await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){let e=await a.json().catch(()=>({}));throw Error(e.error||`HTTP ${a.status}`)}await e0(),Z(!1),et(null),v.wb.includes(r)&&await e1(t,r)}catch(e){console.error("Error saving connection:",e),G({type:"error",message:e.message||"Failed to save connection"})}},[ee,e0,e1]);(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&&el(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let e9=(0,s.useCallback)(async()=>{if(!D){L(!0),R(60);try{let e=await e0(eF);u($(e)),x(t=>C(t,e)),i(t=>C(t,e)),await eV()}catch(e){console.error("Error refreshing all providers:",e),L(!1)}}},[D,e0,eF,eV]);(0,s.useEffect)(()=>{(async()=>{Q(!0);let e=await e0(eF);Q(!1),u(Object.fromEntries(e.map(({id:e,isActive:t})=>[e,(t??!0)&&eW.current]))),x(t=>C(t,e)),i(t=>C(t,e))})()},[e0,eF]),(0,s.useEffect)(()=>(eX(),eV(),()=>{eJ.current?.close(),eJ.current=null,eW.current=!1}),[eX,eV]),(0,s.useEffect)(()=>{"bulk"!==em||("all"!==eo?[eo]:ed.map(e=>e.value||e).filter(e=>"all"!==e)).forEach(e=>e2(e))},[em,eo,ed,e2]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem(A);M(null===e||"true"===e),_(!0)},[]),(0,s.useEffect)(()=>{z&&window.localStorage.setItem(A,String(h))},[h,z]),(0,s.useEffect)(()=>{eB.current=e9},[e9]);let e7=(0,s.useCallback)(()=>{eH.current&&(clearInterval(eH.current),eH.current=null),eK.current&&(clearInterval(eK.current),eK.current=null)},[]),te=(0,s.useCallback)(()=>{eH.current||eK.current||(eH.current=setInterval(()=>{eB.current?.()},6e4),eK.current=setInterval(()=>{R(e=>e<=1?60:e-1)},1e3))},[]);(0,s.useEffect)(()=>z&&h?(document.hidden||te(),e7):void e7(),[h,z,te,e7]),(0,s.useEffect)(()=>{let e=()=>{document.hidden?e7():h&&z&&te()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[h,z,te,e7]);let tt=(0,s.useMemo)(()=>(function(e,t,r,a,s){if("codex"===a&&"default"!==s)return[...e].sort((e,r)=>{let a=w(e,t),n=w(r,t),i="remaining-asc"===s?a-n:n-a;return 0!==i?i:(k(e)||"").localeCompare(k(r)||"")});if(!r)return e;let n=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=n(e)-n(t);return 0!==r?r:(e.provider||"").localeCompare(t.provider||"")||(k(e)||"").localeCompare(k(t)||"")})})(e,r,ef,eo,eb),[e,r,ef,eo,eb]),tr=(0,s.useMemo)(()=>{let e;return e=new Map,tt.forEach(t=>{t.provider&&(e.has(t.provider)||e.set(t.provider,[]),e.get(t.provider).push(t))}),[...e.entries()].map(([e,t])=>(function(e,t,r,a,s){if(!t.length)return null;let n=[],i=[],l=null,o=!1;return t.forEach(e=>{let t=r[e.id];Array.isArray(t?.quotas)&&n.push(...t.quotas),t?.message&&!l&&(l=t.message),s[e.id]&&i.push(s[e.id]),a[e.id]&&(o=!0)}),{id:`${e}-aggregate`,provider:e,name:N(e),email:`${t.length} accounts`,isActive:t.some(e=>e.isActive??!0),isAggregate:!0,quota:{quotas:function(e=[]){let t=new Map;return e.forEach(e=>{if(!e?.name)return;let r=t.get(e.name)||{name:e.name,used:0,total:0,resetAt:e.resetAt||null,remainingPercentage:null,unlimited:!1,_pctSum:0,_pctCount:0};r.used+=Number(e.used)||0,r.total+=Number(e.total)||0,!0===e.unlimited&&(r.unlimited=!0),null!=e.remainingPercentage&&Number.isFinite(Number(e.remainingPercentage))&&(r._pctSum+=Number(e.remainingPercentage),r._pctCount+=1),e.resetAt&&(!r.resetAt||new Date(e.resetAt).getTime()<new Date(r.resetAt).getTime())&&(r.resetAt=e.resetAt),t.set(e.name,r)}),[...t.values()].map(e=>{let{_pctSum:t,_pctCount:r,...a}=e;return a.unlimited?(a.remainingPercentage=100,a.total=0):a.total>0?a.remainingPercentage=(a.total-a.used)/a.total*100:r>0?a.remainingPercentage=t/r:a.remainingPercentage=0,a})}(n),message:0===n.length&&l||null},isLoading:o,error:!n.length&&i.length>0?i[0]:null,connectionIds:t.map(e=>e.id)}})(e,t,r,l,m)).filter(Boolean)},[tt,r,l,m]),ta=(0,s.useMemo)(()=>Object.keys(eA).length?tr.map(e=>{let t=eA[e.provider];return t&&t.quotas?.length?{...e,email:`${t.accountCount||e.connectionIds?.length||0} accounts`,quota:{...e.quota,quotas:t.quotas,message:null},isLoading:eq[e.provider]||!1}:e}):tr,[tr,eA,eq]),ts=(0,s.useMemo)(()=>"bulk"===em?ta:tt,[em,ta,tt]),tn=e=>{let t=r[e.id]?.quotas;return!!t?.length&&t.some(e=>!!e.total&&!(e.total<=0)&&5>=o(e.used,e.total))},ti=(0,s.useCallback)(async(e,t)=>{if(e.length&&!eC){eS(!0),G(null);try{let r=(await Promise.all(e.map(e=>fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})))).filter(e=>!e.ok).length;await S(e0,eF),r>0&&G({type:"error",message:`Failed to update ${r} of ${e.length} connections`})}catch(e){console.error("Error bulk toggling connections:",e),await S(e0,eF),G({type:"error",message:e.message||"Failed to update connections"})}finally{eS(!1)}}},[eC,e0,eF]),tl="all"===eo?"All providers":eo,to=eU.eligibleConnections>0,tc=(0,s.useCallback)(async()=>{Q(!0);let e=await e0(eF);Q(!1),e.length&&(u($(e)),i(t=>C(t,e)),await eV())},[e0,eF,eV]),td=ts.length>0,tu=eU.eligibleConnections?eU.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"===eo?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===eh?"turned off":"active"===eh?"active":"matching"} accounts found for ${eo}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},tm=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}`}(eI),tx=!T.includes(ez);return U&&!e.length?(0,a.jsx)("div",{role:"status","aria-label":"Loading quota accounts",className:"grid grid-cols-1 gap-3 md:grid-cols-2",children:Array.from({length:4},(e,t)=>(0,a.jsx)(f.Qv,{},t))}):U||to?(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(f.i5,{label:"Quota filters and actions",className:ey?"relative z-50":"relative",children:(0,a.jsxs)("div",{className:"grid w-full grid-cols-[minmax(0,1fr)_minmax(0,1fr)_2.75rem] gap-2 sm:flex sm:w-auto sm:flex-wrap sm:items-center sm:gap-1.5",children:[(0,a.jsxs)("div",{className:"relative min-w-0",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>ej(e=>!e),className:"flex h-11 w-full min-w-0 items-center justify-between gap-1 rounded-xl border border-black/10 bg-black/[0.02] px-3 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 sm:h-8 sm:w-auto sm:rounded-lg sm:px-2","aria-haspopup":"menu","aria-expanded":ey,title:"Filter quota providers",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===eo?(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,a.jsx)(n.A,{src:`/providers/${eo}.png`,alt:eo,size:18,className:"size-[18px] rounded object-contain",fallbackText:eo.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate capitalize",children:tl})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),ey&&(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:()=>ej(!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"!==eo&&eO(1),ec("all"),ej(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${"all"===eo?"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"===eo&&(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:ed.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{eo!==e&&eO(1),ec(e),ej(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${eo===e?"bg-primary/10 text-primary":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,children:[(0,a.jsx)(n.A,{src:`/providers/${e}.png`,alt:e,size:24,className:"size-6 rounded-md object-contain",fallbackText:e.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"font-medium capitalize",children:e}),eo===e&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]},e))})]})]})]}),(0,a.jsx)("select",{value:eh,onChange:e=>{let t=e.target.value;eh!==t&&eO(1),ep(t)},className:"h-11 min-w-0 rounded-xl border border-black/10 bg-black/[0.02] px-3 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 sm:h-8 sm:rounded-lg sm:px-2","aria-label":"Filter accounts by status",children:E.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsx)("button",{type:"button",onClick:e9,disabled:D,className:"flex size-11 shrink-0 items-center justify-center rounded-xl border border-black/10 text-xs text-text-primary transition-colors hover:bg-black/5 disabled:opacity-50 dark:border-white/10 dark:hover:bg-white/5 sm:size-8 sm:rounded-lg",title:"Refresh all","aria-label":"Refresh all quotas",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] sm:text-[14px] ${D?"animate-spin":""}`,children:"refresh"})}),(0,a.jsx)("div",{className:"col-span-2 inline-flex min-h-11 min-w-0 overflow-hidden rounded-xl border border-black/10 bg-black/[0.02] dark:border-white/10 dark:bg-white/[0.03] sm:h-8 sm:min-h-0 sm:rounded-lg",children:q.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>ex(e.value),"aria-pressed":em===e.value,className:`flex min-h-11 flex-1 items-center justify-center gap-1.5 px-3 text-xs font-medium transition-colors sm:min-h-0 sm:flex-none sm:justify-start sm:px-2 sm:font-normal ${em===e.value?"bg-primary text-white":"text-text-primary hover:bg-black/5 dark:hover:bg-white/10"}`,title:`Show quota in ${e.label} mode`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[17px] sm:text-[14px]",children:e.icon}),(0,a.jsx)("span",{children:e.label})]},e.value))}),(0,a.jsx)("button",{type:"button",onClick:()=>ew(e=>!e),"aria-expanded":ek,className:`flex size-11 items-center justify-center rounded-xl border text-text-primary transition-colors sm:hidden ${ek?"border-primary/30 bg-primary/10 text-primary":"border-black/10 hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/5"}`,"aria-label":ek?"Hide more actions":"Show more actions",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"tune"})}),(0,a.jsxs)("div",{className:`${ek?"flex":"hidden"} col-span-3 flex-col gap-2 rounded-2xl border border-black/10 bg-black/[0.02] p-3 dark:border-white/10 dark:bg-white/[0.03] sm:contents`,children:["codex"===eo&&(0,a.jsx)("select",{value:eb,onChange:e=>eg(e.target.value),className:"h-11 w-full rounded-xl border border-black/10 bg-surface px-3 text-xs text-text-primary outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:hover:bg-white/10 sm:h-8 sm:w-auto sm:rounded-lg sm:bg-black/[0.02] sm:px-2 dark:sm:bg-white/[0.03]","aria-label":"Sort Codex quotas by remaining",children:P.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsxs)("button",{type:"button",onClick:()=>ev(e=>!e),"aria-pressed":ef,className:`flex h-11 w-full shrink-0 items-center justify-between gap-2 rounded-xl border px-3 text-xs transition-colors sm:h-8 sm:w-auto sm:justify-start sm:rounded-lg sm:px-2 ${ef?"border-amber-500/40 bg-amber-500/10 text-amber-600 dark:text-amber-400":"border-black/10 bg-surface text-text-primary hover:bg-black/5 dark:border-white/10 dark:bg-transparent dark:hover:bg-white/5"}`,title:"Sort accounts by earliest quota reset time",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] sm:text-[14px]",children:"hourglass_top"}),(0,a.jsx)("span",{children:"Expiring first"})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] sm:hidden",children:ef?"check_circle":"circle"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{ti(tt.filter(e=>(e.isActive??!0)&&tn(e)).map(e=>e.id),!1)},disabled:eC,className:"flex h-11 w-full shrink-0 items-center gap-2 rounded-xl border border-red-500/30 bg-surface px-3 text-xs text-red-500 transition-colors hover:bg-red-500/10 disabled:opacity-50 dark:bg-transparent sm:h-8 sm:w-auto sm:rounded-lg sm:px-2",title:"Disable connections with depleted quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] sm:text-[14px]",children:"block"}),(0,a.jsx)("span",{children:"Turn off Empty"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{ti(tt.filter(e=>!(e.isActive??!0)&&!tn(e)).map(e=>e.id),!0)},disabled:eC,className:"flex h-11 w-full shrink-0 items-center gap-2 rounded-xl border border-emerald-500/30 bg-surface px-3 text-xs text-emerald-600 transition-colors hover:bg-emerald-500/10 disabled:opacity-50 dark:bg-transparent dark:text-emerald-400 sm:h-8 sm:w-auto sm:rounded-lg sm:px-2",title:"Enable connections that still have quota on the current page",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] sm:text-[14px]",children:"check_circle"}),(0,a.jsx)("span",{children:"Turn on Available"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>M(e=>!e),className:"flex h-11 w-full shrink-0 items-center justify-between gap-2 rounded-xl border border-black/10 bg-surface px-3 text-xs transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-transparent dark:hover:bg-white/5 sm:h-8 sm:w-auto sm:justify-start sm:rounded-lg sm:px-2",title:h?"Disable auto-refresh":"Enable auto-refresh",children:[(0,a.jsxs)("span",{className:"flex items-center gap-2 text-text-primary",children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] sm:text-[14px] ${h?"text-primary":"text-text-muted"}`,children:h?"toggle_on":"toggle_off"}),(0,a.jsx)("span",{children:"Auto-refresh"})]}),h&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",I,"s)"]})]})]})]})}),B&&(0,a.jsx)(f.Gi,{tone:B.type||"error",action:(0,a.jsx)("button",{type:"button",onClick:()=>G(null),"aria-label":"Dismiss",className:"grid size-9 place-items-center rounded-lg hover:bg-current/10",children:(0,a.jsx)("span",{"aria-hidden":"true",className:"material-symbols-outlined text-[16px]",children:"close"})}),children:B.message}),!U&&H&&(0,a.jsxs)(f.Gi,{tone:"warning",title:"Provider refresh interrupted",action:(0,a.jsx)(f.$n,{variant:"secondary",size:"sm",onClick:tc,children:"Retry"}),children:["Existing account and quota data remain visible. ",H]}),"bulk"===em&&Object.values(eT).some(Boolean)&&(0,a.jsx)(f.Gi,{tone:"warning",children:"Couldn't load server-side totals for some providers — bulk cards show data for the current page only."}),td?(0,a.jsxs)(a.Fragment,{children:[ef&&(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:ts.map(e=>{let t,s,i,o,d=!0===e.isAggregate,u=d?e.quota:r[e.id],x=d?e.isLoading:l[e.id],h=d?e.error:m[e.id],v=u?.quotas||[],y=!0===eN[e.id],j=y?v:function(e,t=3){return e.map((e,t)=>({quota:e,index:t})).sort((e,t)=>{let r=c(e.quota)-c(t.quota);if(0!==r)return r;let a=e.quota.resetAt?new Date(e.quota.resetAt).getTime():1/0,s=t.quota.resetAt?new Date(t.quota.resetAt).getTime():1/0;return a!==s?a-s:e.index-t.index}).slice(0,t).map(({quota:e})=>e)}(v),w=!1===e.isActive,$=!d&&(J===e.id||Y===e.id),C=d?0:Number.isFinite(t=Number(u?.raw?.resetCredits?.availableCount))?Math.max(0,t):0;return(0,a.jsxs)(g.default,{padding:"none",className:`min-w-0 ${w?"opacity-60":""}`,children:[(0,a.jsx)("div",{className:"border-b border-black/10 px-3 py-2 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)(n.A,{src:`/providers/${e.provider}.png`,alt:e.provider,size:32,className:"object-contain",fallbackText:e.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-text-primary capitalize truncate",children:e.name||N(e.provider)}),k(e)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:k(e)}):null,!d&&(s=String(e.authType||"").toLowerCase(),i=e.providerSpecificData?.region||e.providerSpecificData?.aiRegion||null,o=[],"apikey"===s||"api_key"===s?o.push({t:"API Key",c:"bg-blue-500/10 text-blue-500"}):("oauth"===s||"access_token"===s)&&o.push({t:"OAuth",c:"bg-violet-500/10 text-violet-500"}),i&&o.push({t:i,c:"bg-slate-500/10 text-text-muted"}),o.push(!1===e.isActive?{t:"paused",c:"bg-amber-500/10 text-amber-500"}:{t:"active",c:"bg-emerald-500/10 text-emerald-500"}),(0,a.jsx)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:o.map((e,t)=>(0,a.jsx)("span",{className:`rounded px-1.5 py-0.5 text-[10px] font-medium ${e.c}`,children:e.t},t))}))]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:[!d&&"codex"===e.provider&&(0,a.jsxs)("button",{type:"button",onClick:()=>ea({connection:e,count:C}),disabled:C<=0||$||es===e.id,"aria-label":"Use one Codex reset credit",className:"flex h-11 items-center gap-1 rounded-xl px-2 text-amber-600 transition-colors hover:bg-amber-500/10 disabled:cursor-not-allowed disabled:opacity-40 dark:text-amber-400 sm:h-8 sm:rounded-lg",title:C>0?"Use one reset credit":"No reset credits available",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"restart_alt"}),(0,a.jsx)("span",{className:"text-[10px] tabular-nums",children:C})]}),(0,a.jsx)("button",{type:"button",onClick:()=>d?e3(e.connectionIds,e.provider):e5(e.id,e.provider),disabled:x||$,"aria-label":"Refresh quota",className:"flex size-11 items-center justify-center rounded-xl transition-colors hover:bg-black/5 disabled:opacity-50 dark:hover:bg-white/5 sm:size-8 sm:rounded-lg",title:"Refresh quota",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${x?"animate-spin":""}`,children:"refresh"})}),!d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",onClick:()=>{et(e),Z(!0)},disabled:$,"aria-label":"Edit connection",className:"flex size-11 items-center justify-center rounded-xl text-text-muted transition-colors hover:bg-black/5 hover:text-primary disabled:opacity-50 dark:hover:bg-white/5 sm:size-8 sm:rounded-lg",title:"Edit connection",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,a.jsx)("button",{type:"button",onClick:()=>e8(e.id),disabled:$,"aria-label":"Delete connection",className:"flex size-11 items-center justify-center rounded-xl text-red-500 transition-colors hover:bg-red-500/10 disabled:opacity-50 sm:size-8 sm:rounded-lg",title:"Delete connection",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] ${J===e.id?"animate-pulse":""}`,children:"delete"})}),(0,a.jsx)("div",{className:"inline-flex size-11 items-center justify-center sm:h-8 sm:w-auto sm:pl-0.5",title:e.isActive??!0?"Disable connection":"Enable connection",children:(0,a.jsx)(b.default,{size:"sm",touchTarget:!0,checked:e.isActive??!0,disabled:$,onChange:t=>e4(e.id,t)})})]})]})]})}),(0,a.jsx)("div",{className:"px-2 py-1.5",children:x?(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"})}):h?(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:h})]}):v.length>0?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"sm:hidden",children:[(0,a.jsx)(p,{quotas:j,totalCount:v.length,paginate:!1,compact:!0,sortMode:"default",showSortLabel:"codex"===e.provider&&"default"!==eb}),v.length>3&&(0,a.jsxs)("button",{type:"button",onClick:()=>e$(t=>({...t,[e.id]:!y})),className:"mt-2 flex h-11 w-full items-center justify-center gap-1.5 rounded-xl border border-black/10 bg-black/[0.02] text-xs font-medium text-text-primary transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/5","aria-expanded":y,children:[(0,a.jsx)("span",{children:y?"Show less":`Show ${v.length-j.length} more`}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:y?"expand_less":"expand_more"})]})]}),(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)(p,{quotas:v,compact:!0,sortMode:"default",showSortLabel:"codex"===e.provider&&"default"!==eb})}),u?.message?(0,a.jsx)("p",{className:"px-1 text-[10px] text-text-muted",children:u.message}):null,u?.refreshError?(0,a.jsxs)(f.Gi,{tone:"warning",className:"px-2 py-1.5 text-[10px]",children:["Showing last successful quota; refresh failed: ",u.refreshError]}):null]}):u?.message?(0,a.jsx)("div",{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-xs text-text-muted",children:u.message})}):(0,a.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,a.jsx)("p",{className:"text-xs",children:"No quota data available"})})})]},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:tm}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:tx?"custom":String(ez),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(eO(1),e_(r),eL(String(r)))},className:"h-11 rounded-xl border border-black/10 bg-black/[0.02] px-3 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 sm:h-8 sm:rounded-lg sm:px-2","aria-label":"Accounts per page",children:[T.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:eD,onChange:e=>eL(e.target.value),onBlur:()=>{let e=Number.parseInt(eD,10);if(!Number.isFinite(e))return void eL(String(ez));let t=Math.min(500,Math.max(1,e));eO(1),e_(t),eL(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(eD,10);if(!Number.isFinite(t))return void eL(String(ez));let r=Math.min(500,Math.max(1,t));eO(1),e_(r),eL(String(r))},className:"h-11 w-24 rounded-xl border border-black/10 bg-black/[0.02] px-3 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 sm:h-8 sm:w-20 sm:rounded-lg sm:px-2","aria-label":"Custom accounts per page",placeholder:"Custom"}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Page ",eI.page," / ",eI.totalPages]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eO(1),disabled:eI.page<=1||U||D,className:"flex h-11 items-center rounded-xl 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 sm:h-8 sm:rounded-lg",children:"First Page"}),(0,a.jsx)("button",{type:"button",onClick:()=>eO(e=>Math.max(1,e-1)),disabled:eI.page<=1||U||D,className:"flex size-11 items-center justify-center rounded-xl 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 sm:size-8 sm:rounded-lg","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:()=>eO(e=>Math.min(eI.totalPages,e+1)),disabled:eI.page>=eI.totalPages||U||D,className:"flex size-11 items-center justify-center rounded-xl 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 sm:size-8 sm:rounded-lg","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:()=>eO(eI.totalPages),disabled:eI.page>=eI.totalPages||U||D,className:"flex h-11 items-center rounded-xl 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 sm:h-8 sm:rounded-lg",children:"Last Page"})]})]})})]}):(0,a.jsx)(f.pp,{icon:tu.icon,title:tu.title,description:tu.description}),(0,a.jsx)(f.wI,{isOpen:X,connection:ee,proxyPools:ei,onSave:e6,onClose:()=>{Z(!1),et(null)}}),(0,a.jsx)(f.uo,{isOpen:!!er,onClose:()=>ea(null),onConfirm:eZ,title:"Use Codex Reset Credit",message:`Use 1 reset credit for ${k(er?.connection||{})||"this Codex account"}? This permanently spends one credit and cannot be undone. Available: ${er?.count??0}.`,confirmText:"Use 1 Credit",variant:"danger",loading:!!(er?.connection?.id&&es===er.connection.id)})]}):H?(0,a.jsx)(f.Gi,{tone:"error",title:"Failed to load providers",action:(0,a.jsx)(f.$n,{variant:"secondary",size:"sm",icon:"refresh",onClick:tc,children:"Retry"}),children:H}):(0,a.jsx)(f.pp,{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."})}}},e=>{e.O(0,[2574,3862,3745,3339,620,5497,8441,3794,7358],()=>e(e.s=5498)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[39,122,174,204,335,342,387,501,516,543,552,649,675,742,747,748,823,869,907,931,948,992,997,999,1077,1088,1091,1110,1118,1200,1288,1321,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1704,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2185,2198,2284,2296,2366,2536,2772,2781,2785,2795,2797,2802,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3486,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4310,4422,4444,4527,4612,4656,4664,4674,4745,4761,4829,4861,4896,4993,5018,5033,5104,5107,5162,5177,5211,5226,5338,5372,5397,5460,5466,5568,5637,5685,5745,5746,5805,5848,5922,5965,5990,6089,6091,6102,6107,6121,6229,6268,6278,6319,6454,6463,6479,6529,6580,6594,6664,6694,6724,6740,6743,6776,6819,6872,6919,6988,6996,7046,7111,7131,7158,7208,7241,7254,7306,7311,7329,7423,7429,7445,7473,7508,7520,7551,7758,7777,7824,7851,7858,7992,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8832,8835,8870,8879,8884,8918,8948,8974,8975,8977,9027,9036,9056,9069,9079,9088,9115,9120,9123,9141,9199,9285,9321,9338,9359,9427,9461,9515,9606,9678,9709,9745,9755,9762,9817,9903],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);