zevairouter 1.0.152 → 1.0.154

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 (1306) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +13 -11
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/routes-manifest.json +14 -0
  6. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +2 -2
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +3 -3
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +2 -2
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +19 -19
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +4 -4
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +2 -2
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +4 -4
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +2 -2
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +2 -2
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  78. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  79. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  80. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  81. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  82. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  83. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  84. package/cli/app/.next-cli-build/server/app/_global-error/page.js +3 -3
  85. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  86. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  87. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  88. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  89. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  90. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  91. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  92. package/cli/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  93. package/cli/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  94. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  95. package/cli/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  96. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  97. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  98. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  99. package/cli/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  100. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  101. package/cli/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  102. package/cli/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +3 -3
  103. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  104. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  105. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  106. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  122. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  123. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  158. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  160. package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  162. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  164. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  166. package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  168. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  170. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js +1 -0
  171. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -0
  172. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route_client-reference-manifest.js +1 -0
  173. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -0
  174. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -0
  175. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route_client-reference-manifest.js +1 -0
  176. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/metrics/route.js +2 -2
  217. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  232. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  283. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  353. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  355. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  359. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  361. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  363. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  365. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  367. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  369. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  371. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  372. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  373. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  376. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  377. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  378. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  379. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  380. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  381. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js +2 -2
  399. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  402. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  404. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  405. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  408. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  410. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  412. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  414. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  416. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  418. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  420. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  422. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  424. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +3 -5
  445. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  450. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  452. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  456. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  458. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -4
  459. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  460. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  462. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  463. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  464. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  465. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  466. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  467. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  468. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  469. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  470. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  471. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  472. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  473. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  474. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  475. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  476. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  477. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  478. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  479. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  480. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  481. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  482. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  483. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  484. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  485. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  486. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  487. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  488. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  489. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  490. package/cli/app/.next-cli-build/server/app/callback/page.js +2 -2
  491. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  492. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  493. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  494. package/cli/app/.next-cli-build/server/app/callback.rsc +3 -3
  495. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  496. package/cli/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  497. package/cli/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +3 -3
  498. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  499. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  500. package/cli/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  501. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  502. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +5 -5
  503. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
  504. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation.segment.rsc +1 -1
  505. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  506. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  507. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +5 -5
  508. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_head.segment.rsc +1 -1
  509. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_index.segment.rsc +3 -3
  510. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  511. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  512. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  513. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  514. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  515. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  516. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  517. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  518. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  519. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
  520. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  521. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  522. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  523. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  524. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  525. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  526. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  527. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  528. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  529. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
  530. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  531. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  532. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  533. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  534. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  535. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  536. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  537. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  538. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  539. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
  540. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  541. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  542. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +5 -5
  543. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
  544. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context.segment.rsc +1 -1
  545. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  546. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  547. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +5 -5
  548. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_head.segment.rsc +1 -1
  549. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_index.segment.rsc +3 -3
  550. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  551. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  552. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  553. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  554. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  555. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  556. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  557. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  558. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  559. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
  560. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  561. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  562. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  563. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  564. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  565. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  566. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  567. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  568. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  569. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  570. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
  571. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  572. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  573. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  574. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  575. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  576. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  577. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  578. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  579. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  580. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
  581. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  582. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  583. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +5 -5
  584. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
  585. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground.segment.rsc +1 -1
  586. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  587. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  588. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +5 -5
  589. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_head.segment.rsc +1 -1
  590. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_index.segment.rsc +3 -3
  591. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  592. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  593. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +5 -5
  594. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  595. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  596. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  597. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  598. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +5 -5
  599. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  600. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
  601. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  602. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  603. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  604. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  605. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  606. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  607. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  608. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  609. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  610. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  611. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
  612. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  613. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  614. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  615. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  616. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  617. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  618. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  619. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  620. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  621. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
  622. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  623. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  624. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  625. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  626. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  627. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  628. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  629. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  630. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  631. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
  632. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  633. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  634. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +5 -5
  635. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  636. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe.segment.rsc +1 -1
  637. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  638. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  639. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +5 -5
  640. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_head.segment.rsc +1 -1
  641. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_index.segment.rsc +3 -3
  642. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  643. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  644. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
  645. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  646. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  647. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  648. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  649. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
  650. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  651. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
  652. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  653. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  654. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  655. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  656. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  657. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  658. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  659. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  660. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
  661. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  662. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  663. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  664. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  665. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  666. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  667. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +5 -5
  668. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  669. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  670. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  671. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  672. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +5 -5
  673. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  674. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +3 -3
  675. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  676. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  677. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  678. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  679. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  680. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  681. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  682. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  683. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  684. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
  685. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  686. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  687. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  688. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  689. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  690. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  691. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  692. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  693. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  694. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
  695. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  696. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  697. package/cli/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  698. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  699. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  700. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  701. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  702. package/cli/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  703. package/cli/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +3 -3
  704. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  705. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  706. package/cli/app/.next-cli-build/server/app/index.rsc +3 -3
  707. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  708. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  709. package/cli/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  710. package/cli/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +3 -3
  711. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  712. package/cli/app/.next-cli-build/server/app/landing/page.js +2 -2
  713. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  714. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  715. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  716. package/cli/app/.next-cli-build/server/app/landing.rsc +4 -4
  717. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  718. package/cli/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  719. package/cli/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +3 -3
  720. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  721. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  722. package/cli/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  723. package/cli/app/.next-cli-build/server/app/login/page.js +2 -2
  724. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  725. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  726. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  727. package/cli/app/.next-cli-build/server/app/login.rsc +4 -4
  728. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +4 -4
  729. package/cli/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  730. package/cli/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +3 -3
  731. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  732. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  733. package/cli/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  734. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  735. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  736. package/cli/app/.next-cli-build/server/app/page.js +2 -2
  737. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  738. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  739. package/cli/app/.next-cli-build/server/app-paths-manifest.json +13 -11
  740. package/cli/app/.next-cli-build/server/chunks/1188.js +1 -1
  741. package/cli/app/.next-cli-build/server/chunks/2557.js +1 -0
  742. package/cli/app/.next-cli-build/server/chunks/2732.js +1 -1
  743. package/cli/app/.next-cli-build/server/chunks/3104.js +1 -1
  744. package/cli/app/.next-cli-build/server/chunks/3110.js +9 -8
  745. package/cli/app/.next-cli-build/server/chunks/3155.js +1 -1
  746. package/cli/app/.next-cli-build/server/chunks/318.js +11 -9
  747. package/cli/app/.next-cli-build/server/chunks/3579.js +1 -1
  748. package/cli/app/.next-cli-build/server/chunks/3593.js +1 -1
  749. package/cli/app/.next-cli-build/server/chunks/412.js +2 -2
  750. package/cli/app/.next-cli-build/server/chunks/4229.js +1 -1
  751. package/cli/app/.next-cli-build/server/chunks/4404.js +1 -1
  752. package/cli/app/.next-cli-build/server/chunks/4470.js +1 -1
  753. package/cli/app/.next-cli-build/server/chunks/4566.js +1 -1
  754. package/cli/app/.next-cli-build/server/chunks/4632.js +1 -1
  755. package/cli/app/.next-cli-build/server/chunks/4720.js +1 -1
  756. package/cli/app/.next-cli-build/server/chunks/4739.js +1 -1
  757. package/cli/app/.next-cli-build/server/chunks/4746.js +1 -1
  758. package/cli/app/.next-cli-build/server/chunks/4780.js +1 -1
  759. package/cli/app/.next-cli-build/server/chunks/507.js +1 -1
  760. package/cli/app/.next-cli-build/server/chunks/5236.js +1 -1
  761. package/cli/app/.next-cli-build/server/chunks/5258.js +1 -1
  762. package/cli/app/.next-cli-build/server/chunks/5307.js +1 -1
  763. package/cli/app/.next-cli-build/server/chunks/5436.js +4 -0
  764. package/cli/app/.next-cli-build/server/chunks/5949.js +3 -3
  765. package/cli/app/.next-cli-build/server/chunks/6036.js +1 -1
  766. package/cli/app/.next-cli-build/server/chunks/698.js +1 -1
  767. package/cli/app/.next-cli-build/server/chunks/7239.js +1 -1
  768. package/cli/app/.next-cli-build/server/chunks/7965.js +1 -1
  769. package/cli/app/.next-cli-build/server/chunks/8028.js +1 -0
  770. package/cli/app/.next-cli-build/server/chunks/8255.js +1 -1
  771. package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
  772. package/cli/app/.next-cli-build/server/chunks/8371.js +1 -1
  773. package/cli/app/.next-cli-build/server/chunks/8520.js +1 -1
  774. package/cli/app/.next-cli-build/server/chunks/877.js +24 -0
  775. package/cli/app/.next-cli-build/server/chunks/8895.js +7 -7
  776. package/cli/app/.next-cli-build/server/chunks/891.js +1 -1
  777. package/cli/app/.next-cli-build/server/chunks/9372.js +1 -1
  778. package/cli/app/.next-cli-build/server/chunks/9489.js +1 -1
  779. package/cli/app/.next-cli-build/server/chunks/9621.js +1 -1
  780. package/cli/app/.next-cli-build/server/functions-config-manifest.json +4 -0
  781. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  782. package/cli/app/.next-cli-build/server/middleware.js +4 -4
  783. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  784. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  785. package/cli/app/.next-cli-build/static/SC3btW1lCuB9q-iyIwwWK/_buildManifest.js +1 -0
  786. package/cli/app/.next-cli-build/static/chunks/5497-f1e851d6feffa7c0.js +7 -0
  787. package/cli/app/.next-cli-build/static/chunks/{620-51d6fc84653a20a0.js → 620-a13f0f7b318585ab.js} +1 -1
  788. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-da4bf4d40037f090.js +1 -0
  789. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-27b7575d0d2d59fa.js → page-19f56d717383fbf9.js} +1 -1
  790. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-59c81d5cf13456ba.js +59 -0
  791. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-4c46f9cac4765fc5.js +4 -0
  792. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-57c4b3a5e8b61f18.js +1 -0
  793. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-ceb414eddc31fbfc.js → page-bdcc38dc8f8c5619.js} +1 -1
  794. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-b4f4b88642bbe60d.js +3 -0
  795. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-16d3736170202fcd.js +4 -0
  796. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-3e2009fdd918191b.js +1 -0
  797. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-6062386d726c38dd.js +1 -0
  798. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-59c5060c7f023ab8.js → layout-203b0a53f7406968.js} +1 -1
  799. package/cli/app/.next-cli-build/static/chunks/app/_global-error/page-f29633932d5ddd5a.js +1 -0
  800. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/route-f29633932d5ddd5a.js +1 -0
  801. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/route-f29633932d5ddd5a.js +1 -0
  802. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-f29633932d5ddd5a.js +1 -0
  803. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-f29633932d5ddd5a.js +1 -0
  804. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-f29633932d5ddd5a.js +1 -0
  805. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-f29633932d5ddd5a.js +1 -0
  806. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-f29633932d5ddd5a.js +1 -0
  807. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-f29633932d5ddd5a.js +1 -0
  808. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-f29633932d5ddd5a.js +1 -0
  809. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-f29633932d5ddd5a.js +1 -0
  810. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-f29633932d5ddd5a.js +1 -0
  811. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-f29633932d5ddd5a.js +1 -0
  812. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-f29633932d5ddd5a.js +1 -0
  813. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-f29633932d5ddd5a.js +1 -0
  814. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-f29633932d5ddd5a.js +1 -0
  815. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-f29633932d5ddd5a.js +1 -0
  816. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-f29633932d5ddd5a.js +1 -0
  817. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-f29633932d5ddd5a.js +1 -0
  818. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-f29633932d5ddd5a.js +1 -0
  819. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-f29633932d5ddd5a.js +1 -0
  820. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-f29633932d5ddd5a.js +1 -0
  821. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-f29633932d5ddd5a.js +1 -0
  822. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-f29633932d5ddd5a.js +1 -0
  823. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-f29633932d5ddd5a.js +1 -0
  824. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-f29633932d5ddd5a.js +1 -0
  825. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-f29633932d5ddd5a.js +1 -0
  826. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-f29633932d5ddd5a.js +1 -0
  827. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-f29633932d5ddd5a.js +1 -0
  828. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-f29633932d5ddd5a.js +1 -0
  829. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-f29633932d5ddd5a.js +1 -0
  830. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-f29633932d5ddd5a.js +1 -0
  831. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-f29633932d5ddd5a.js +1 -0
  832. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-f29633932d5ddd5a.js +1 -0
  833. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-f29633932d5ddd5a.js +1 -0
  834. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-f29633932d5ddd5a.js +1 -0
  835. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-f29633932d5ddd5a.js +1 -0
  836. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-f29633932d5ddd5a.js +1 -0
  837. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-f29633932d5ddd5a.js +1 -0
  838. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-f29633932d5ddd5a.js +1 -0
  839. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-f29633932d5ddd5a.js +1 -0
  840. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-f29633932d5ddd5a.js +1 -0
  841. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-f29633932d5ddd5a.js +1 -0
  842. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-f29633932d5ddd5a.js +1 -0
  843. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-f29633932d5ddd5a.js +1 -0
  844. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-f29633932d5ddd5a.js +1 -0
  845. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-f29633932d5ddd5a.js +1 -0
  846. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-f29633932d5ddd5a.js +1 -0
  847. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-f29633932d5ddd5a.js +1 -0
  848. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-f29633932d5ddd5a.js +1 -0
  849. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-f29633932d5ddd5a.js +1 -0
  850. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-f29633932d5ddd5a.js +1 -0
  851. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-f29633932d5ddd5a.js +1 -0
  852. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-f29633932d5ddd5a.js +1 -0
  853. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-f29633932d5ddd5a.js +1 -0
  854. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-f29633932d5ddd5a.js +1 -0
  855. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-f29633932d5ddd5a.js +1 -0
  856. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-f29633932d5ddd5a.js +1 -0
  857. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-f29633932d5ddd5a.js +1 -0
  858. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-f29633932d5ddd5a.js +1 -0
  859. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-f29633932d5ddd5a.js +1 -0
  860. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-f29633932d5ddd5a.js +1 -0
  861. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-f29633932d5ddd5a.js +1 -0
  862. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-f29633932d5ddd5a.js +1 -0
  863. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-f29633932d5ddd5a.js +1 -0
  864. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-f29633932d5ddd5a.js +1 -0
  865. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-f29633932d5ddd5a.js +1 -0
  866. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-f29633932d5ddd5a.js +1 -0
  867. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-f29633932d5ddd5a.js +1 -0
  868. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-f29633932d5ddd5a.js +1 -0
  869. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-f29633932d5ddd5a.js +1 -0
  870. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-f29633932d5ddd5a.js +1 -0
  871. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-f29633932d5ddd5a.js +1 -0
  872. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-f29633932d5ddd5a.js +1 -0
  873. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-f29633932d5ddd5a.js +1 -0
  874. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-f29633932d5ddd5a.js +1 -0
  875. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-f29633932d5ddd5a.js +1 -0
  876. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-f29633932d5ddd5a.js +1 -0
  877. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-f29633932d5ddd5a.js +1 -0
  878. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-f29633932d5ddd5a.js +1 -0
  879. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-f29633932d5ddd5a.js +1 -0
  880. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-f29633932d5ddd5a.js +1 -0
  881. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-f29633932d5ddd5a.js +1 -0
  882. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-f29633932d5ddd5a.js +1 -0
  883. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-f29633932d5ddd5a.js +1 -0
  884. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-f29633932d5ddd5a.js +1 -0
  885. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-f29633932d5ddd5a.js +1 -0
  886. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-f29633932d5ddd5a.js +1 -0
  887. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-f29633932d5ddd5a.js +1 -0
  888. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-f29633932d5ddd5a.js +1 -0
  889. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-f29633932d5ddd5a.js +1 -0
  890. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-f29633932d5ddd5a.js +1 -0
  891. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-f29633932d5ddd5a.js +1 -0
  892. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-f29633932d5ddd5a.js +1 -0
  893. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-f29633932d5ddd5a.js +1 -0
  894. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-f29633932d5ddd5a.js +1 -0
  895. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-f29633932d5ddd5a.js +1 -0
  896. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-f29633932d5ddd5a.js +1 -0
  897. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-f29633932d5ddd5a.js +1 -0
  898. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-f29633932d5ddd5a.js +1 -0
  899. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-f29633932d5ddd5a.js +1 -0
  900. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-f29633932d5ddd5a.js +1 -0
  901. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-f29633932d5ddd5a.js +1 -0
  902. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-f29633932d5ddd5a.js +1 -0
  903. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-f29633932d5ddd5a.js +1 -0
  904. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-f29633932d5ddd5a.js +1 -0
  905. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-f29633932d5ddd5a.js +1 -0
  906. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-f29633932d5ddd5a.js +1 -0
  907. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-f29633932d5ddd5a.js +1 -0
  908. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-f29633932d5ddd5a.js +1 -0
  909. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-f29633932d5ddd5a.js +1 -0
  910. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-f29633932d5ddd5a.js +1 -0
  911. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-f29633932d5ddd5a.js +1 -0
  912. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-f29633932d5ddd5a.js +1 -0
  913. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-f29633932d5ddd5a.js +1 -0
  914. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-f29633932d5ddd5a.js +1 -0
  915. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-f29633932d5ddd5a.js +1 -0
  916. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-f29633932d5ddd5a.js +1 -0
  917. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-f29633932d5ddd5a.js +1 -0
  918. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-f29633932d5ddd5a.js +1 -0
  919. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-f29633932d5ddd5a.js +1 -0
  920. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-f29633932d5ddd5a.js +1 -0
  921. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-f29633932d5ddd5a.js +1 -0
  922. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-f29633932d5ddd5a.js +1 -0
  923. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-f29633932d5ddd5a.js +1 -0
  924. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-f29633932d5ddd5a.js +1 -0
  925. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-f29633932d5ddd5a.js +1 -0
  926. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-f29633932d5ddd5a.js +1 -0
  927. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-f29633932d5ddd5a.js +1 -0
  928. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-f29633932d5ddd5a.js +1 -0
  929. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-f29633932d5ddd5a.js +1 -0
  930. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-f29633932d5ddd5a.js +1 -0
  931. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-f29633932d5ddd5a.js +1 -0
  932. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-f29633932d5ddd5a.js +1 -0
  933. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-f29633932d5ddd5a.js +1 -0
  934. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-f29633932d5ddd5a.js +1 -0
  935. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-f29633932d5ddd5a.js +1 -0
  936. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-f29633932d5ddd5a.js +1 -0
  937. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-f29633932d5ddd5a.js +1 -0
  938. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-f29633932d5ddd5a.js +1 -0
  939. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-f29633932d5ddd5a.js +1 -0
  940. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-f29633932d5ddd5a.js +1 -0
  941. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-f29633932d5ddd5a.js +1 -0
  942. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-f29633932d5ddd5a.js +1 -0
  943. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-f29633932d5ddd5a.js +1 -0
  944. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-f29633932d5ddd5a.js +1 -0
  945. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-f29633932d5ddd5a.js +1 -0
  946. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-f29633932d5ddd5a.js +1 -0
  947. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-f29633932d5ddd5a.js +1 -0
  948. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-f29633932d5ddd5a.js +1 -0
  949. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-f29633932d5ddd5a.js +1 -0
  950. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-f29633932d5ddd5a.js +1 -0
  951. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-f29633932d5ddd5a.js +1 -0
  952. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-f29633932d5ddd5a.js +1 -0
  953. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-f29633932d5ddd5a.js +1 -0
  954. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-f29633932d5ddd5a.js +1 -0
  955. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-f29633932d5ddd5a.js +1 -0
  956. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-f29633932d5ddd5a.js +1 -0
  957. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-f29633932d5ddd5a.js +1 -0
  958. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-f29633932d5ddd5a.js +1 -0
  959. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-f29633932d5ddd5a.js +1 -0
  960. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-f29633932d5ddd5a.js +1 -0
  961. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-f29633932d5ddd5a.js +1 -0
  962. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-f29633932d5ddd5a.js +1 -0
  963. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-f29633932d5ddd5a.js +1 -0
  964. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-f29633932d5ddd5a.js +1 -0
  965. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-f29633932d5ddd5a.js +1 -0
  966. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-f29633932d5ddd5a.js +1 -0
  967. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-f29633932d5ddd5a.js +1 -0
  968. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-f29633932d5ddd5a.js +1 -0
  969. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-f29633932d5ddd5a.js +1 -0
  970. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-f29633932d5ddd5a.js +1 -0
  971. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-f29633932d5ddd5a.js +1 -0
  972. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-f29633932d5ddd5a.js +1 -0
  973. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-f29633932d5ddd5a.js +1 -0
  974. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-f29633932d5ddd5a.js +1 -0
  975. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-f29633932d5ddd5a.js +1 -0
  976. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-f29633932d5ddd5a.js +1 -0
  977. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-f29633932d5ddd5a.js +1 -0
  978. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-f29633932d5ddd5a.js +1 -0
  979. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-f29633932d5ddd5a.js +1 -0
  980. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-f29633932d5ddd5a.js +1 -0
  981. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-f29633932d5ddd5a.js +1 -0
  982. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-f29633932d5ddd5a.js +1 -0
  983. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-f29633932d5ddd5a.js +1 -0
  984. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-f29633932d5ddd5a.js +1 -0
  985. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-f29633932d5ddd5a.js +1 -0
  986. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-f29633932d5ddd5a.js +1 -0
  987. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-f29633932d5ddd5a.js +1 -0
  988. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-f29633932d5ddd5a.js +1 -0
  989. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-f29633932d5ddd5a.js +1 -0
  990. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-f29633932d5ddd5a.js +1 -0
  991. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-f29633932d5ddd5a.js +1 -0
  992. package/cli/app/.next-cli-build/static/chunks/app/page-f29633932d5ddd5a.js +1 -0
  993. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-f29633932d5ddd5a.js +1 -0
  994. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-f29633932d5ddd5a.js +1 -0
  995. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-f29633932d5ddd5a.js +1 -0
  996. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-f29633932d5ddd5a.js +1 -0
  997. package/cli/app/CHANGELOG.md +24 -0
  998. package/cli/app/package.json +5 -3
  999. package/cli/app/src/lib/db/adapters/betterSqliteAdapter.js +6 -3
  1000. package/cli/app/src/lib/db/adapters/bunSqliteAdapter.js +4 -2
  1001. package/cli/app/src/lib/db/adapters/nodeSqliteAdapter.js +4 -2
  1002. package/cli/app/src/lib/db/adapters/sqljsAdapter.js +84 -27
  1003. package/cli/app/src/lib/db/maintenance.js +6 -0
  1004. package/cli/package.json +1 -1
  1005. package/cli/src/cli/api/client.js +3 -1
  1006. package/open-sse/executors/github.js +7 -3
  1007. package/open-sse/executors/kiro.js +29 -0
  1008. package/open-sse/handlers/chatCore/nonStreamingHandler.js +40 -12
  1009. package/open-sse/handlers/chatCore/sseToJsonHandler.js +348 -53
  1010. package/open-sse/handlers/chatCore/streamingHandler.js +33 -11
  1011. package/open-sse/handlers/chatCore.js +21 -6
  1012. package/open-sse/handlers/responsesHandler.js +5 -70
  1013. package/open-sse/services/accountFallback.js +146 -18
  1014. package/open-sse/transformer/responsesTransformer.js +246 -176
  1015. package/open-sse/transformer/streamToJsonConverter.js +68 -24
  1016. package/open-sse/translator/helpers/claudeHelper.js +3 -2
  1017. package/open-sse/translator/helpers/imageHelper.js +72 -8
  1018. package/open-sse/translator/helpers/responsesApiHelper.js +100 -25
  1019. package/open-sse/translator/index.js +4 -1
  1020. package/open-sse/translator/request/antigravity-to-openai.js +40 -14
  1021. package/open-sse/translator/request/claude-to-openai.js +74 -28
  1022. package/open-sse/translator/request/openai-responses.js +84 -190
  1023. package/open-sse/translator/request/openai-to-claude.js +40 -14
  1024. package/open-sse/translator/request/openai-to-commandcode.js +11 -3
  1025. package/open-sse/translator/request/openai-to-cursor.js +18 -6
  1026. package/open-sse/translator/request/openai-to-gemini.js +7 -5
  1027. package/open-sse/translator/request/openai-to-kiro.js +15 -3
  1028. package/open-sse/translator/response/openai-responses.js +71 -37
  1029. package/open-sse/utils/responsesStreamHelpers.js +73 -16
  1030. package/open-sse/utils/stream.js +183 -73
  1031. package/open-sse/utils/streamHandler.js +18 -6
  1032. package/open-sse/utils/usageTracking.js +1 -1
  1033. package/package.json +5 -3
  1034. package/postcss.config.mjs +3 -1
  1035. package/src/app/(dashboard)/dashboard/cli-tools/CLIToolsPageClient.js +5 -1
  1036. package/src/app/(dashboard)/dashboard/cli-tools/[toolId]/ToolDetailClient.js +1 -1
  1037. package/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +35 -41
  1038. package/src/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +9 -9
  1039. package/src/app/(dashboard)/dashboard/mitm/MitmPageClient.js +1 -1
  1040. package/src/app/(dashboard)/dashboard/profile/page.js +3 -3
  1041. package/src/app/(dashboard)/dashboard/providers/[id]/ConnectionRow.js +3 -26
  1042. package/src/app/(dashboard)/dashboard/providers/[id]/page.js +29 -30
  1043. package/src/app/(dashboard)/dashboard/providers/components/ConnectionsCard.js +3 -16
  1044. package/src/app/(dashboard)/dashboard/proxy-pools/page.js +16 -4
  1045. package/src/app/(dashboard)/dashboard/usage/components/ProviderLimits/index.js +23 -21
  1046. package/src/app/(dashboard)/dashboard/usage/components/RequestDetailsTab.js +25 -6
  1047. package/src/app/api/dashboard/cli-tools/keys/route.js +33 -0
  1048. package/src/app/api/dashboard/media/[operation]/route.js +60 -0
  1049. package/src/app/api/keys/[id]/route.js +62 -12
  1050. package/src/app/api/keys/route.js +20 -6
  1051. package/src/app/api/metrics/route.js +3 -2
  1052. package/src/app/api/providers/[id]/route.js +79 -17
  1053. package/src/app/api/providers/[id]/test/testUtils.js +11 -2
  1054. package/src/app/api/providers/client/route.js +33 -31
  1055. package/src/app/api/providers/route.js +87 -16
  1056. package/src/app/api/providers/suggested-models/route.js +1 -0
  1057. package/src/app/api/proxy-pools/[id]/route.js +16 -4
  1058. package/src/app/api/proxy-pools/[id]/test/route.js +4 -2
  1059. package/src/app/api/proxy-pools/route.js +23 -4
  1060. package/src/app/api/usage/aggregate/route.js +6 -0
  1061. package/src/app/api/usage/stream/route.js +106 -43
  1062. package/src/app/api/v1/responses/compact/route.js +21 -3
  1063. package/src/lib/db/adapters/betterSqliteAdapter.js +6 -3
  1064. package/src/lib/db/adapters/bunSqliteAdapter.js +4 -2
  1065. package/src/lib/db/adapters/nodeSqliteAdapter.js +4 -2
  1066. package/src/lib/db/adapters/sqljsAdapter.js +84 -27
  1067. package/src/lib/db/driver.js +27 -7
  1068. package/src/lib/db/maintenance.js +6 -0
  1069. package/src/lib/db/repos/requestDetailsRepo.js +35 -9
  1070. package/src/lib/db/repos/settingsRepo.js +2 -0
  1071. package/src/lib/db/repos/usageRepo.js +191 -52
  1072. package/src/lib/headroom/process.js +128 -61
  1073. package/src/lib/oauth/services/bulkImportBrowserEngine.js +141 -31
  1074. package/src/lib/oauth/services/codebuddyCnBulkImportManager.js +265 -55
  1075. package/src/lib/oauth/services/codebuddyCnPhoneAutomation.js +84 -24
  1076. package/src/lib/oauth/services/fiveSimClient.js +237 -40
  1077. package/src/lib/oauth/services/kiroBulkImportManager.js +178 -45
  1078. package/src/lib/providerConnectionSanitizer.js +180 -0
  1079. package/src/lib/responseCache.js +23 -13
  1080. package/src/lib/safeFetch.js +101 -4
  1081. package/src/lib/usage/quotaRefresh.js +51 -22
  1082. package/src/lib/usage/quotaService.js +54 -2
  1083. package/src/shared/components/BulkAccountAutomationModal.js +12 -16
  1084. package/src/shared/components/CodeBuddyCnPhoneRegisterModal.js +13 -15
  1085. package/src/shared/components/KiroAuthModal.js +23 -26
  1086. package/src/shared/components/Modal.js +4 -1
  1087. package/src/shared/components/UsageStats.js +4 -7
  1088. package/src/shared/hooks/useModelLockUntil.js +18 -0
  1089. package/src/shared/services/initializeApp.js +20 -3
  1090. package/src/shared/utils/asyncPolling.js +27 -0
  1091. package/src/shared/utils/connectionStatus.js +9 -3
  1092. package/src/shared/utils/dashboardMedia.js +19 -0
  1093. package/src/shared/utils/modelLockTimer.js +32 -0
  1094. package/src/shared/utils/usageStats.js +10 -0
  1095. package/src/sse/handlers/chat.js +12 -3
  1096. package/src/sse/handlers/streamFailure.js +34 -0
  1097. package/src/sse/services/auth.js +73 -33
  1098. package/cli/app/.next-cli-build/server/chunks/5024.js +0 -1
  1099. package/cli/app/.next-cli-build/server/chunks/601.js +0 -24
  1100. package/cli/app/.next-cli-build/static/chunks/5497-8d0ec2995dc0a392.js +0 -7
  1101. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-f16310d2b403445e.js +0 -1
  1102. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-a35d16eda369d68e.js +0 -59
  1103. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/page-e7989e6397c3cd28.js +0 -4
  1104. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-81eaa9fe75830559.js +0 -1
  1105. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-4f6f0b7c3b3da037.js +0 -3
  1106. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-9e3ac0e62a8bba94.js +0 -4
  1107. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-579bf915396efc69.js +0 -1
  1108. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-bc3ada97fab644b3.js +0 -1
  1109. package/cli/app/.next-cli-build/static/chunks/app/_global-error/page-915c9a5b78eafa55.js +0 -1
  1110. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/route-915c9a5b78eafa55.js +0 -1
  1111. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/route-915c9a5b78eafa55.js +0 -1
  1112. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-915c9a5b78eafa55.js +0 -1
  1113. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-915c9a5b78eafa55.js +0 -1
  1114. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-915c9a5b78eafa55.js +0 -1
  1115. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-915c9a5b78eafa55.js +0 -1
  1116. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-915c9a5b78eafa55.js +0 -1
  1117. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-915c9a5b78eafa55.js +0 -1
  1118. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-915c9a5b78eafa55.js +0 -1
  1119. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-915c9a5b78eafa55.js +0 -1
  1120. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-915c9a5b78eafa55.js +0 -1
  1121. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-915c9a5b78eafa55.js +0 -1
  1122. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-915c9a5b78eafa55.js +0 -1
  1123. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-915c9a5b78eafa55.js +0 -1
  1124. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-915c9a5b78eafa55.js +0 -1
  1125. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-915c9a5b78eafa55.js +0 -1
  1126. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-915c9a5b78eafa55.js +0 -1
  1127. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-915c9a5b78eafa55.js +0 -1
  1128. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-915c9a5b78eafa55.js +0 -1
  1129. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-915c9a5b78eafa55.js +0 -1
  1130. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-915c9a5b78eafa55.js +0 -1
  1131. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-915c9a5b78eafa55.js +0 -1
  1132. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-915c9a5b78eafa55.js +0 -1
  1133. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-915c9a5b78eafa55.js +0 -1
  1134. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-915c9a5b78eafa55.js +0 -1
  1135. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-915c9a5b78eafa55.js +0 -1
  1136. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-915c9a5b78eafa55.js +0 -1
  1137. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-915c9a5b78eafa55.js +0 -1
  1138. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-915c9a5b78eafa55.js +0 -1
  1139. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-915c9a5b78eafa55.js +0 -1
  1140. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-915c9a5b78eafa55.js +0 -1
  1141. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-915c9a5b78eafa55.js +0 -1
  1142. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-915c9a5b78eafa55.js +0 -1
  1143. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-915c9a5b78eafa55.js +0 -1
  1144. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-915c9a5b78eafa55.js +0 -1
  1145. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-915c9a5b78eafa55.js +0 -1
  1146. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-915c9a5b78eafa55.js +0 -1
  1147. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-915c9a5b78eafa55.js +0 -1
  1148. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-915c9a5b78eafa55.js +0 -1
  1149. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-915c9a5b78eafa55.js +0 -1
  1150. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-915c9a5b78eafa55.js +0 -1
  1151. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-915c9a5b78eafa55.js +0 -1
  1152. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-915c9a5b78eafa55.js +0 -1
  1153. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-915c9a5b78eafa55.js +0 -1
  1154. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-915c9a5b78eafa55.js +0 -1
  1155. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-915c9a5b78eafa55.js +0 -1
  1156. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-915c9a5b78eafa55.js +0 -1
  1157. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-915c9a5b78eafa55.js +0 -1
  1158. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-915c9a5b78eafa55.js +0 -1
  1159. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-915c9a5b78eafa55.js +0 -1
  1160. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-915c9a5b78eafa55.js +0 -1
  1161. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-915c9a5b78eafa55.js +0 -1
  1162. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-915c9a5b78eafa55.js +0 -1
  1163. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-915c9a5b78eafa55.js +0 -1
  1164. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-915c9a5b78eafa55.js +0 -1
  1165. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-915c9a5b78eafa55.js +0 -1
  1166. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-915c9a5b78eafa55.js +0 -1
  1167. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-915c9a5b78eafa55.js +0 -1
  1168. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-915c9a5b78eafa55.js +0 -1
  1169. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-915c9a5b78eafa55.js +0 -1
  1170. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-915c9a5b78eafa55.js +0 -1
  1171. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-915c9a5b78eafa55.js +0 -1
  1172. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-915c9a5b78eafa55.js +0 -1
  1173. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-915c9a5b78eafa55.js +0 -1
  1174. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-915c9a5b78eafa55.js +0 -1
  1175. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-915c9a5b78eafa55.js +0 -1
  1176. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-915c9a5b78eafa55.js +0 -1
  1177. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-915c9a5b78eafa55.js +0 -1
  1178. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-915c9a5b78eafa55.js +0 -1
  1179. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-915c9a5b78eafa55.js +0 -1
  1180. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-915c9a5b78eafa55.js +0 -1
  1181. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-915c9a5b78eafa55.js +0 -1
  1182. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-915c9a5b78eafa55.js +0 -1
  1183. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-915c9a5b78eafa55.js +0 -1
  1184. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-915c9a5b78eafa55.js +0 -1
  1185. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-915c9a5b78eafa55.js +0 -1
  1186. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-915c9a5b78eafa55.js +0 -1
  1187. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-915c9a5b78eafa55.js +0 -1
  1188. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-915c9a5b78eafa55.js +0 -1
  1189. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-915c9a5b78eafa55.js +0 -1
  1190. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-915c9a5b78eafa55.js +0 -1
  1191. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-915c9a5b78eafa55.js +0 -1
  1192. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-915c9a5b78eafa55.js +0 -1
  1193. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-915c9a5b78eafa55.js +0 -1
  1194. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-915c9a5b78eafa55.js +0 -1
  1195. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-915c9a5b78eafa55.js +0 -1
  1196. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-915c9a5b78eafa55.js +0 -1
  1197. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-915c9a5b78eafa55.js +0 -1
  1198. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-915c9a5b78eafa55.js +0 -1
  1199. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-915c9a5b78eafa55.js +0 -1
  1200. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-915c9a5b78eafa55.js +0 -1
  1201. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-915c9a5b78eafa55.js +0 -1
  1202. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-915c9a5b78eafa55.js +0 -1
  1203. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-915c9a5b78eafa55.js +0 -1
  1204. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-915c9a5b78eafa55.js +0 -1
  1205. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-915c9a5b78eafa55.js +0 -1
  1206. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-915c9a5b78eafa55.js +0 -1
  1207. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-915c9a5b78eafa55.js +0 -1
  1208. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-915c9a5b78eafa55.js +0 -1
  1209. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-915c9a5b78eafa55.js +0 -1
  1210. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-915c9a5b78eafa55.js +0 -1
  1211. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-915c9a5b78eafa55.js +0 -1
  1212. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-915c9a5b78eafa55.js +0 -1
  1213. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-915c9a5b78eafa55.js +0 -1
  1214. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-915c9a5b78eafa55.js +0 -1
  1215. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-915c9a5b78eafa55.js +0 -1
  1216. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-915c9a5b78eafa55.js +0 -1
  1217. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-915c9a5b78eafa55.js +0 -1
  1218. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-915c9a5b78eafa55.js +0 -1
  1219. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-915c9a5b78eafa55.js +0 -1
  1220. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-915c9a5b78eafa55.js +0 -1
  1221. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-915c9a5b78eafa55.js +0 -1
  1222. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-915c9a5b78eafa55.js +0 -1
  1223. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-915c9a5b78eafa55.js +0 -1
  1224. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-915c9a5b78eafa55.js +0 -1
  1225. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-915c9a5b78eafa55.js +0 -1
  1226. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-915c9a5b78eafa55.js +0 -1
  1227. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-915c9a5b78eafa55.js +0 -1
  1228. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-915c9a5b78eafa55.js +0 -1
  1229. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-915c9a5b78eafa55.js +0 -1
  1230. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-915c9a5b78eafa55.js +0 -1
  1231. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-915c9a5b78eafa55.js +0 -1
  1232. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-915c9a5b78eafa55.js +0 -1
  1233. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-915c9a5b78eafa55.js +0 -1
  1234. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-915c9a5b78eafa55.js +0 -1
  1235. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-915c9a5b78eafa55.js +0 -1
  1236. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-915c9a5b78eafa55.js +0 -1
  1237. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-915c9a5b78eafa55.js +0 -1
  1238. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-915c9a5b78eafa55.js +0 -1
  1239. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-915c9a5b78eafa55.js +0 -1
  1240. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-915c9a5b78eafa55.js +0 -1
  1241. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-915c9a5b78eafa55.js +0 -1
  1242. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-915c9a5b78eafa55.js +0 -1
  1243. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-915c9a5b78eafa55.js +0 -1
  1244. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-915c9a5b78eafa55.js +0 -1
  1245. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-915c9a5b78eafa55.js +0 -1
  1246. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-915c9a5b78eafa55.js +0 -1
  1247. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-915c9a5b78eafa55.js +0 -1
  1248. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-915c9a5b78eafa55.js +0 -1
  1249. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-915c9a5b78eafa55.js +0 -1
  1250. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-915c9a5b78eafa55.js +0 -1
  1251. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-915c9a5b78eafa55.js +0 -1
  1252. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-915c9a5b78eafa55.js +0 -1
  1253. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-915c9a5b78eafa55.js +0 -1
  1254. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-915c9a5b78eafa55.js +0 -1
  1255. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-915c9a5b78eafa55.js +0 -1
  1256. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-915c9a5b78eafa55.js +0 -1
  1257. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-915c9a5b78eafa55.js +0 -1
  1258. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-915c9a5b78eafa55.js +0 -1
  1259. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-915c9a5b78eafa55.js +0 -1
  1260. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-915c9a5b78eafa55.js +0 -1
  1261. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-915c9a5b78eafa55.js +0 -1
  1262. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-915c9a5b78eafa55.js +0 -1
  1263. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-915c9a5b78eafa55.js +0 -1
  1264. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-915c9a5b78eafa55.js +0 -1
  1265. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-915c9a5b78eafa55.js +0 -1
  1266. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-915c9a5b78eafa55.js +0 -1
  1267. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-915c9a5b78eafa55.js +0 -1
  1268. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-915c9a5b78eafa55.js +0 -1
  1269. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-915c9a5b78eafa55.js +0 -1
  1270. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-915c9a5b78eafa55.js +0 -1
  1271. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-915c9a5b78eafa55.js +0 -1
  1272. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-915c9a5b78eafa55.js +0 -1
  1273. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-915c9a5b78eafa55.js +0 -1
  1274. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-915c9a5b78eafa55.js +0 -1
  1275. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-915c9a5b78eafa55.js +0 -1
  1276. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-915c9a5b78eafa55.js +0 -1
  1277. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-915c9a5b78eafa55.js +0 -1
  1278. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-915c9a5b78eafa55.js +0 -1
  1279. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-915c9a5b78eafa55.js +0 -1
  1280. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-915c9a5b78eafa55.js +0 -1
  1281. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-915c9a5b78eafa55.js +0 -1
  1282. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-915c9a5b78eafa55.js +0 -1
  1283. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-915c9a5b78eafa55.js +0 -1
  1284. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-915c9a5b78eafa55.js +0 -1
  1285. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-915c9a5b78eafa55.js +0 -1
  1286. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-915c9a5b78eafa55.js +0 -1
  1287. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-915c9a5b78eafa55.js +0 -1
  1288. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-915c9a5b78eafa55.js +0 -1
  1289. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-915c9a5b78eafa55.js +0 -1
  1290. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-915c9a5b78eafa55.js +0 -1
  1291. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-915c9a5b78eafa55.js +0 -1
  1292. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-915c9a5b78eafa55.js +0 -1
  1293. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-915c9a5b78eafa55.js +0 -1
  1294. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-915c9a5b78eafa55.js +0 -1
  1295. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-915c9a5b78eafa55.js +0 -1
  1296. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-915c9a5b78eafa55.js +0 -1
  1297. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-915c9a5b78eafa55.js +0 -1
  1298. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-915c9a5b78eafa55.js +0 -1
  1299. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-915c9a5b78eafa55.js +0 -1
  1300. package/cli/app/.next-cli-build/static/chunks/app/page-915c9a5b78eafa55.js +0 -1
  1301. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-915c9a5b78eafa55.js +0 -1
  1302. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-915c9a5b78eafa55.js +0 -1
  1303. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-915c9a5b78eafa55.js +0 -1
  1304. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-915c9a5b78eafa55.js +0 -1
  1305. package/cli/app/.next-cli-build/static/i-IN0_JUvDPX2TawfW0UV/_buildManifest.js +0 -1
  1306. /package/cli/app/.next-cli-build/static/{i-IN0_JUvDPX2TawfW0UV → SC3btW1lCuB9q-iyIwwWK}/_ssgManifest.js +0 -0
@@ -0,0 +1,3 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2134],{20898:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>q});var a=s(95155),i=s(12115),l=s(73321),r=s(98500),n=s.n(r),o=s(5772),d=s(35497),c=s(52679);let m=["kiro","codebuddy","codebuddy-cn","qoder","antigravity","cloudflare-ai"];function u(e){return m.includes(String(e||""))}function p(e){let t=String(e||"").trim();return t&&u(t)?`/dashboard/automation?provider=${encodeURIComponent(t)}`:"/dashboard/automation"}var x=s(28777),h=s(11059),f=s(73006);let g=new Map;async function b(e){if(!e?.url||!e?.type)return[];let t=g.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 g.set(e.url,{data:a,expiresAt:Date.now()+6e5}),a}catch{return[]}}var y=s(70217),v=s(51716),j=s(14051),k=s.n(j);function w({model:e,fullModel:t,alias:s,copied:i,onCopy:l,testStatus:r,isCustom:n,isFree:o,onDeleteAlias:d,onTest:c,isTesting:m,onDisable:u,thinkingSuffix:p}){let x="ok"===r?"#22c55e":"error"===r?"#ef4444":void 0,h=p?`${t}(${p})`:t;return(0,a.jsx)("div",{className:`group min-w-0 max-w-full rounded-lg border px-3 py-2 ${"ok"===r?"border-green-500/40":"error"===r?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,a.jsxs)("div",{className:"flex min-w-0 items-start gap-2 sm:items-center",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base",style:x?{color:x}:void 0,children:"ok"===r?"check_circle":"error"===r?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,a.jsx)("code",{className:"max-w-[72vw] truncate rounded bg-sidebar px-1.5 py-0.5 font-mono text-xs text-text-muted sm:max-w-[360px]",children: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:m,className:`rounded p-0.5 text-text-muted transition-opacity hover:bg-sidebar hover:text-primary ${m?"opacity-100":"opacity-100 sm:opacity-0 sm:group-hover:opacity-100"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:m?{animation:"spin 1s linear infinite"}:void 0,children:m?"progress_activity":"science"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:m?"Testing...":"Test"})]}),(0,a.jsxs)("div",{className:"relative shrink-0 group/btn",children:[(0,a.jsx)("button",{onClick:()=>l(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:i===`model-${e.id}`?"check":"content_copy"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute mt-1 top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:i===`model-${e.id}`?"Copied!":"Copy"})]}),n?(0,a.jsx)("button",{onClick:d,className:"ml-auto rounded p-0.5 text-text-muted opacity-100 transition-opacity hover:bg-red-500/10 hover:text-red-500 sm:opacity-0 sm:group-hover:opacity-100",title:"Remove custom model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})}):u?(0,a.jsx)("button",{onClick:u,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 N({modelId:e,fullModel:t,copied:s,onCopy:i,onDeleteAlias:l,onTest:r,testStatus:n,isTesting:o}){let d="ok"===n?"#22c55e":"error"===n?"#ef4444":void 0;return(0,a.jsxs)("div",{className:`flex items-center gap-3 p-3 rounded-lg border ${"ok"===n?"border-green-500/40":"error"===n?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",style:d?{color:d}:void 0,children:"ok"===n?"check_circle":"error"===n?"cancel":"smart_toy"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:e}),(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,a.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:t}),(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:()=>i(t,`model-${e}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:s===`model-${e}`?"check":"content_copy"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:s===`model-${e}`?"Copied!":"Copy"})]}),r&&(0,a.jsxs)("div",{className:"relative group/btn",children:[(0,a.jsx)("button",{onClick:r,disabled:o,className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",style:o?{animation:"spin 1s linear infinite"}:void 0,children:o?"progress_activity":"science"})}),(0,a.jsx)("span",{className:"pointer-events-none absolute top-5 left-1/2 -translate-x-1/2 text-[10px] text-text-muted whitespace-nowrap opacity-0 group-hover/btn:opacity-100 transition-opacity",children:o?"Testing...":"Test"})]})]})]}),(0,a.jsx)("button",{onClick:l,className:"p-1 hover:bg-red-50 rounded text-red-500",title:"Remove model",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"delete"})})]})}function C({providerStorageAlias:e,providerDisplayAlias:t,modelAliases:s,copied:l,onCopy:r,onSetAlias:n,onDeleteAlias:o,connections:c,isAnthropic:m}){let[u,p]=(0,i.useState)(""),[x,h]=(0,i.useState)(!1),[f,g]=(0,i.useState)(!1),[b,y]=(0,i.useState)(null),[v,j]=(0,i.useState)({}),k=async t=>{if(!b){y(t);try{let s=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${e}/${t}`})}),a=await s.json();j(e=>({...e,[t]:a.ok?"ok":"error"}))}catch{j(e=>({...e,[t]:"error"}))}finally{y(null)}}},w=Object.entries(s).filter(([,t])=>t.startsWith(`${e}/`)).map(([t,s])=>({modelId:s.replace(`${e}/`,""),fullModel:s,alias:t})),S=a=>{let i,l=`${e}/${a}`;if(Object.values(s).includes(l))return null;let r=(i=a.split("/"))[i.length-1];if(!s[r])return r;let n=`${t}-${r}`;return s[n]?null:n},$=async()=>{if(!u.trim()||x)return;let t=u.trim(),s=S(t);if(!s)return void alert("All suggested aliases already exist. Please choose a different model or remove conflicting aliases.");h(!0);try{await n(t,s,e),p("")}catch(e){console.log("Error adding model:",e)}finally{h(!1)}},A=async()=>{if(f)return;let t=c.find(e=>!1!==e.isActive);if(t){g(!0);try{let s=await fetch(`/api/providers/${t.id}/models`),a=await s.json();if(!s.ok)return void alert(a.error||"Failed to import models");let i=a.models||[];if(0===i.length)return void alert("No models returned from /models.");let l=0;for(let t of i){let s=t.id||t.name||t.model;if(!s)continue;let a=S(s);a&&(await n(s,a,e),l+=1)}0===l&&alert("No new models were added.")}catch(e){console.log("Error importing models:",e)}finally{g(!1)}}},T=c.some(e=>!1!==e.isActive);return(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("p",{className:"text-sm text-text-muted",children:["Add ",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:u,onChange:e=>p(e.target.value),onKeyDown:e=>"Enter"===e.key&&$(),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:$,disabled:!u.trim()||x,children:x?"Adding...":"Add"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"download",onClick:A,disabled:!T||f,children:f?"Importing...":"Import from /models"})]}),!T&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Add a connection to enable importing models."}),w.length>0&&(0,a.jsx)("div",{className:"flex flex-col gap-3",children:w.map(({modelId:e,fullModel:s,alias:i})=>(0,a.jsx)(N,{modelId:e,fullModel:`${t}/${e}`,copied:l,onCopy:r,onDeleteAlias:()=>o(i),onTest:c.length>0?()=>k(e):void 0,testStatus:v[e],isTesting:b===e},s))})]})}w.propTypes={model:k().shape({id:k().string.isRequired}).isRequired,fullModel:k().string.isRequired,alias:k().string,copied:k().string,onCopy:k().func.isRequired,testStatus:k().oneOf(["ok","error"]),isCustom:k().bool,isFree:k().bool,onDeleteAlias:k().func,onTest:k().func,isTesting:k().bool,onDisable:k().func,thinkingSuffix:k().string},k().string.isRequired,k().string.isRequired,k().string,k().func.isRequired,k().func.isRequired,k().func,k().oneOf(["ok","error"]),k().bool,k().string.isRequired,k().object.isRequired,k().string,k().func.isRequired,k().func.isRequired,k().func.isRequired,C.propTypes={providerStorageAlias:k().string.isRequired,providerDisplayAlias:k().string.isRequired,modelAliases:k().object.isRequired,copied:k().string,onCopy:k().func.isRequired,onSetAlias:k().func.isRequired,onDeleteAlias:k().func.isRequired,connections:k().arrayOf(k().shape({id:k().string,isActive:k().bool})).isRequired,isAnthropic:k().bool};var S=s(81277);function $({until:e}){let[t,s]=(0,i.useState)("");return((0,i.useEffect)(()=>{let t=()=>{let t=new Date(e).getTime()-Date.now();if(t<=0)return void s("");let a=Math.floor(t/1e3);if(a<60)s(`${a}s`);else if(a<3600)s(`${Math.floor(a/60)}m ${a%60}s`);else{let e=Math.floor(a/3600),t=Math.floor(a%3600/60);s(`${e}h ${t}m`)}};t();let a=setInterval(t,1e3);return()=>clearInterval(a)},[e]),t)?(0,a.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",t]}):null}function A({connection:e,proxyPools:t,isOAuth:s,isFirst:l,isLast:r,onMoveUp:n,onMoveDown:o,onToggleActive:c,onUpdateProxy:m,onEdit:u,onDelete:p,oneByOneStatus:x=null}){let[h,f]=(0,i.useState)(!1),[g,b]=(0,i.useState)(!1),v=(0,i.useRef)(null),j=new Map((t||[]).map(e=>[e.id,e])),k=e.providerSpecificData?.proxyPoolId||null,w=k?j.get(k):null,N=e.providerSpecificData?.connectionProxyEnabled===!0&&!!e.providerSpecificData?.connectionProxyUrl,C=!!k||N,T=w?`Pool: ${w.name}`:k?`Pool: ${k} (inactive/missing)`:N?`Legacy: ${e.providerSpecificData?.connectionProxyUrl}`:"",I="";if(w?.proxyUrl||e.providerSpecificData?.connectionProxyUrl){let t=w?.proxyUrl||e.providerSpecificData?.connectionProxyUrl;try{let e=new URL(t);I=`${e.protocol}//${e.hostname}${e.port?`:${e.port}`:""}`}catch{I=t}}let O=w?.noProxy||e.providerSpecificData?.connectionNoProxy||"",P="default";w?.isActive===!0?P="success":(k||N)&&(P="error"),(0,i.useEffect)(()=>{if(!h)return;let e=e=>{v.current&&!v.current.contains(e.target)&&f(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[h]);let E=async e=>{b(!0);try{await m("__none__"===e?null:e)}finally{b(!1),f(!1)}},_=e.authType||(s?"oauth":"apikey"),D="oauth"===_,R="cookie"===_,z=e=>"string"==typeof e&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),U=D?z(e.email)?e.email:z(e.name)?e.name:e.name||e.email||e.displayName||"OAuth Account":e.name||e.email||e.displayName||"API Key",q=(0,S.c)(e),M=null!==q,L="unavailable"!==e.testStatus||M?e.testStatus:"active",F=(0,y.d4)(e),K=()=>x?"queued"===x.state?"queued":"testing"===x.state?"testing":"success"===x.state?"success":"failed"===x.state?x.error?`failed: ${x.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?"opacity-60":""}`,children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-2 sm:items-center sm:gap-3",children:[(0,a.jsxs)("div",{className:"flex shrink-0 flex-col",children:[(0,a.jsx)("button",{onClick:n,disabled:l,className:`p-0.5 rounded ${l?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,a.jsx)("button",{onClick:o,disabled:r,className:`p-0.5 rounded ${r?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-base text-text-muted",children:R?"cookie":D?"lock":"key"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium truncate",children:U}),(0,a.jsxs)("div",{className:"mt-1 flex min-w-0 flex-wrap items-center gap-1.5 sm:gap-2",children:[(0,a.jsx)(d.Ex,{variant:(()=>{if(!1===e.isActive)return"default";let t=(0,y.BU)(F);return"active"!==F.key?t:"active"===L||"success"===L?"success":"error"===L||"expired"===L||"unavailable"===L?"error":"default"})(),size:"sm",dot:!0,children:F.label||L||"unknown"}),(0,a.jsx)(d.Ex,{variant:"default",size:"sm",children:D?"OAuth":R?"Cookie":"API Key"}),C&&(0,a.jsx)(d.Ex,{variant:P,size:"sm",children:"Proxy"}),e.autoDisabledAt&&(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()]}),M&&!1!==e.isActive&&(0,a.jsx)($,{until:q}),M&&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} — resets ${new Date(e.modelLockReason.resetsAt).toLocaleString()}`,children:[e.modelLockReason.model,e.modelLockReason.providerErrorCode?` (${e.modelLockReason.providerErrorCode})`:"",` — resets ${new Date(e.modelLockReason.resetsAt).toLocaleString()}`]}),e.lastError&&!1!==e.isActive&&(0,a.jsx)("span",{className:"max-w-full truncate text-xs text-red-500 sm:max-w-[300px]",title:e.lastError,children:e.lastError}),(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["#",e.priority]}),e.globalPriority&&(0,a.jsxs)("span",{className:"text-xs text-text-muted",children:["Auto: ",e.globalPriority]}),K()&&(0,a.jsx)(d.Ex,{variant:x?"success"===x.state?"success":"failed"===x.state?"error":"testing"===x.state?"primary":"default":"default",size:"sm",children:K()})]}),C&&(0,a.jsxs)("div",{className:"mt-1 flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[420px]",title:T,children:T}),I&&(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:I}),O&&(0,a.jsxs)("span",{className:"max-w-full truncate text-[11px] text-text-muted sm:max-w-[320px]",title:O,children:["no_proxy: ",O]})]})]})]}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,a.jsxs)("div",{className:"grid flex-1 grid-cols-3 gap-1 sm:flex sm:flex-none",children:[(t||[]).length>0&&(0,a.jsxs)("div",{className:"relative",ref:v,children:[(0,a.jsxs)("button",{onClick:()=>f(e=>!e),className:`flex w-full flex-col items-center rounded px-2 py-1 transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${C?"text-primary":"text-text-muted hover:text-primary"}`,disabled:g,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:g?"progress_activity":"lan"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),h&&(0,a.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-1 max-w-[78vw] min-w-[160px] rounded-lg border border-border bg-bg py-1 shadow-lg",children:[(0,a.jsx)("button",{onClick:()=>E("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!k?"text-primary font-medium":"text-text-main"}`,children:"None"}),(t||[]).map(e=>(0,a.jsx)("button",{onClick:()=>E(e.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${k===e.id?"text-primary font-medium":"text-text-main"}`,children:e.name},e.id))]})]}),(0,a.jsxs)("button",{onClick:u,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:p,className:"flex flex-col items-center rounded px-2 py-1 text-red-500 hover:bg-red-500/10",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,a.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,a.jsx)(d.lM,{size:"sm",checked:e.isActive??!0,onChange:c,title:e.isActive??!0?"Disable connection":"Enable connection"})]})]})}$.propTypes={until:k().string.isRequired},A.propTypes={connection:k().shape({id:k().string,name:k().string,email:k().string,displayName:k().string,modelLockUntil:k().string,testStatus:k().string,isActive:k().bool,lastError:k().string,priority:k().number,globalPriority:k().number}).isRequired,proxyPools:k().arrayOf(k().shape({id:k().string,name:k().string,proxyUrl:k().string,noProxy:k().string,isActive:k().bool})),isOAuth:k().bool.isRequired,isFirst:k().bool.isRequired,isLast:k().bool.isRequired,onMoveUp:k().func.isRequired,onMoveDown:k().func.isRequired,onToggleActive:k().func.isRequired,onUpdateProxy:k().func,onEdit:k().func.isRequired,onDelete:k().func.isRequired,oneByOneStatus:k().shape({state:k().string,error:k().string})};let T=`name1|sk-key1
2
+ name2|sk-key2
3
+ sk-key-only-auto-named`;function I({isOpen:e,provider:t,providerName:s,isCompatible:l,isAnthropic:r,authType:n,authHint:o,website:m,proxyPools:u,error:p,onSave:x,onBulkDone:h,onClose:f}){let g="__none__",b="ollama-local"===t,y="cookie"===n,v="xai"===t&&!y,j=y?"Cookie Value":"API Key",k="azure"===t,w="cloudflare-ai"===t,N=c.Q2?.[t]?.regions||null,C=c.Q2?.[t]?.defaultRegion||N?.[0]?.id||"",[S,$]=(0,i.useState)({name:"",apiKey:"",defaultModel:"",priority:1,proxyPoolId:g,ollamaHostUrl:""}),[A,O]=(0,i.useState)({azureEndpoint:"",apiVersion:"2024-10-01-preview",deployment:"",organization:""}),[P,E]=(0,i.useState)({accountId:""}),[_,D]=(0,i.useState)(C),[R,z]=(0,i.useState)(!1),[U,q]=(0,i.useState)(null),[M,L]=(0,i.useState)(!1),[F,K]=(0,i.useState)("single"),[J,B]=(0,i.useState)(""),[W,G]=(0,i.useState)(null),Q=()=>b&&S.ollamaHostUrl.trim()?{baseUrl:S.ollamaHostUrl.trim()}:k?{azureEndpoint:A.azureEndpoint,apiVersion:A.apiVersion,deployment:A.deployment,organization:A.organization}:w?{accountId:P.accountId}:N&&_?{region:_}:void 0,H=async()=>{z(!0);try{let e=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:S.apiKey,providerSpecificData:Q()})}),s=await e.json();q(s.valid?"success":"failed")}catch{q("failed")}finally{z(!1)}},V=async()=>{if(t&&(b||S.apiKey)&&(b||S.name)&&(!l||S.defaultModel.trim())){L(!0);try{let e=!1;try{z(!0),q(null);let s=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:S.apiKey,providerSpecificData:Q()})});e=!!(await s.json()).valid,q(e?"success":"failed")}catch{q("failed")}finally{z(!1)}await x({name:S.name||(b?"Ollama Local":""),apiKey:S.apiKey,defaultModel:l?S.defaultModel.trim():void 0,priority:S.priority,proxyPoolId:S.proxyPoolId===g?null:S.proxyPoolId,testStatus:e?"active":"unknown",providerSpecificData:Q()})}finally{L(!1)}}},Z=async()=>{let e=J.split("\n").map(e=>e.trim()).filter(Boolean);if(!e.length)return;L(!0),G(null);let s=0,a=0;for(let i=0;i<e.length;i++){let l=e[i].split("|"),r=l.length>=2?l.slice(1).join("|").trim():l[0].trim(),n=l.length>=2?l[0].trim():"Key",o=`${n} ${i+1}`;try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:t,apiKey:r,name:o,priority:1,testStatus:"unknown"})})).ok?s++:a++}catch{a++}}L(!1),G({success:s,failed:a}),s>0&&h&&h()};return t?(0,a.jsx)(d.aF,{isOpen:e,title:`Add ${s||t} ${j}`,onClose:f,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"single"===F?"primary":"ghost",onClick:()=>{K("single"),G(null)},children:"Single"}),(0,a.jsx)(d.$n,{size:"sm",variant:"bulk"===F?"primary":"ghost",onClick:()=>{K("bulk"),G(null)},children:"Bulk Add"})]}),"bulk"===F&&(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["One key per line. Format: ",(0,a.jsx)("code",{children:"name|apiKey"})," or just ",(0,a.jsx)("code",{children:"apiKey"})," (auto-named by index)."]}),(0,a.jsx)("textarea",{className:"w-full rounded border border-accent/30 bg-sidebar p-2 text-sm font-mono resize-y min-h-[140px] focus:outline-none focus:ring-1 focus:ring-primary",placeholder:T,value:J,onChange:e=>B(e.target.value)}),W&&(0,a.jsxs)("div",{className:`text-sm font-medium ${W.failed>0?"text-yellow-400":"text-green-400"}`,children:["✓ ",W.success," added",W.failed>0?`, ✗ ${W.failed} failed`:""]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:Z,fullWidth:!0,disabled:M||!J.trim(),children:M?"Adding...":"Add All Keys"}),(0,a.jsx)(d.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]}),"single"===F&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.pd,{label:"Name",value:S.name,onChange:e=>$({...S,name:e.target.value}),placeholder:b?"Ollama Local":"Production Key"}),b&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:"Ollama Host URL",value:S.ollamaHostUrl,onChange:e=>$({...S,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:H,disabled:R||M,variant:"secondary",children:R?"Checking...":"Check"})})]}),!b&&(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:j,type:y?"text":"password",value:S.apiKey,onChange:e=>$({...S,apiKey:e.target.value}),placeholder:y?"grok-web"===t?"sso=xxxxx... or just the raw value":"eyJhbGciOi...":v?"xai-...":"",className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:H,disabled:!S.apiKey||R||M,variant:"secondary",children:R?"Checking...":"Check"})})]}),v&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Use a direct xAI API key from console.x.ai. This is separate from Grok Build OAuth."}),y&&o&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:[o,m&&(0,a.jsxs)(a.Fragment,{children:[" ",(0,a.jsxs)("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:["Open ",m.replace(/^https?:\/\//,"")]})]})]}),N&&(0,a.jsx)(d.l6,{label:"Region",value:_,onChange:e=>D(e.target.value),options:N.map(e=>({value:e.id,label:e.label}))}),l&&(0,a.jsx)(d.pd,{label:"Default Model",value:S.defaultModel,onChange:e=>$({...S,defaultModel:e.target.value}),placeholder:r?"claude-3-5-sonnet-latest":"gpt-4o-mini"}),b&&(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"}),")."]}),U&&(0,a.jsx)(d.Ex,{variant:"success"===U?"success":"error",children:"success"===U?"Valid":"Invalid"}),p&&(0,a.jsx)("p",{className:"text-xs text-red-500 break-words",children:p}),l&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Enter the model ID exactly as your compatible endpoint expects it. This model will be saved as the connection default."}),w&&(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:P.accountId,onChange:e=>E({...P,accountId:e.target.value}),placeholder:"abc123def456..."}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-2",children:["Find your Account ID in the right sidebar of ",(0,a.jsx)("a",{href:"https://dash.cloudflare.com",target:"_blank",rel:"noopener noreferrer",className:"text-primary underline",children:"dash.cloudflare.com"})]})]}),k&&(0,a.jsxs)("div",{className:"bg-sidebar/50 p-4 rounded-lg border border-accent/20",children:[(0,a.jsx)("h3",{className:"font-semibold mb-3 text-sm",children:"Azure OpenAI Configuration"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(d.pd,{label:"Azure Endpoint",value:A.azureEndpoint,onChange:e=>O({...A,azureEndpoint:e.target.value}),placeholder:"https://your-resource.openai.azure.com"}),(0,a.jsx)(d.pd,{label:"Deployment Name",value:A.deployment,onChange:e=>O({...A,deployment:e.target.value}),placeholder:"gpt-4"}),(0,a.jsx)(d.pd,{label:"API Version",value:A.apiVersion,onChange:e=>O({...A,apiVersion:e.target.value}),placeholder:"2024-10-01-preview"}),(0,a.jsx)(d.pd,{label:"Organization",value:A.organization,onChange:e=>O({...A,organization:e.target.value}),placeholder:"Organization ID"})]})]}),(0,a.jsx)(d.pd,{label:"Priority",type:"number",value:S.priority,onChange:e=>$({...S,priority:Number.parseInt(e.target.value)||1})}),(0,a.jsx)(d.l6,{label:"Proxy Pool",value:S.proxyPoolId,onChange:e=>$({...S,proxyPoolId:e.target.value}),options:[{value:g,label:"None"},...(u||[]).map(e=>({value:e.id,label:e.name}))],placeholder:"None"}),0===(u||[]).length&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"No active proxy pools available. Create one in Proxy Pools page first."}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Legacy manual proxy fields are still accepted by API for backward compatibility."}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:V,fullWidth:!0,disabled:M||!b&&(!S.name||!S.apiKey)||l&&!S.defaultModel.trim()||k&&(!A.azureEndpoint||!A.deployment||!A.organization)||w&&!P.accountId,children:M?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:f,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})]})}):null}function O({isOpen:e,node:t,onSave:s,onClose:l,isAnthropic:r}){let[n,o]=(0,i.useState)({name:"",prefix:"",apiType:"chat",baseUrl:"https://api.openai.com/v1"}),[c,m]=(0,i.useState)(!1),[u,p]=(0,i.useState)(""),[x,h]=(0,i.useState)(""),[f,g]=(0,i.useState)(!1),[b,y]=(0,i.useState)(null);(0,i.useEffect)(()=>{t&&o({name:t.name||"",prefix:t.prefix||"",apiType:t.apiType||"chat",baseUrl:t.baseUrl||(r?"https://api.anthropic.com/v1":"https://api.openai.com/v1")})},[t,r]);let v=async()=>{if(n.name.trim()&&n.prefix.trim()&&n.baseUrl.trim()){m(!0);try{let e={name:n.name,prefix:n.prefix,baseUrl:n.baseUrl};r||(e.apiType=n.apiType),await s(e)}finally{m(!1)}}},j=async()=>{g(!0);try{let e=await fetch("/api/provider-nodes/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({baseUrl:n.baseUrl,apiKey:u,type:r?"anthropic-compatible":"openai-compatible",modelId:x.trim()||void 0})}),t=await e.json();y(t.valid?"success":"failed")}catch{y("failed")}finally{g(!1)}};return t?(0,a.jsx)(d.aF,{isOpen:e,title:`Edit ${r?"Anthropic":"OpenAI"} Compatible`,onClose:l,children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(d.pd,{label:"Name",value:n.name,onChange:e=>o({...n,name:e.target.value}),placeholder:`${r?"Anthropic":"OpenAI"} Compatible (Prod)`,hint:"Required. A friendly label for this node."}),(0,a.jsx)(d.pd,{label:"Prefix",value:n.prefix,onChange:e=>o({...n,prefix:e.target.value}),placeholder:r?"ac-prod":"oc-prod",hint:"Required. Used as the provider prefix for model IDs."}),!r&&(0,a.jsx)(d.l6,{label:"API Type",options:[{value:"chat",label:"Chat Completions"},{value:"responses",label:"Responses API"}],value:n.apiType,onChange:e=>o({...n,apiType:e.target.value})}),(0,a.jsx)(d.pd,{label:"Base URL",value:n.baseUrl,onChange:e=>o({...n,baseUrl:e.target.value}),placeholder:r?"https://api.anthropic.com/v1":"https://api.openai.com/v1",hint:`Use the base URL (ending in /v1) for your ${r?"Anthropic":"OpenAI"}-compatible API.`}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.pd,{label:"API Key (for Check)",type:"password",value:u,onChange:e=>p(e.target.value),className:"flex-1"}),(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(d.$n,{onClick:j,disabled:!u||f||!n.baseUrl.trim(),variant:"secondary",children:f?"Checking...":"Check"})})]}),(0,a.jsx)(d.pd,{label:"Model ID (optional)",value:x,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."}),b&&(0,a.jsx)(d.Ex,{variant:"success"===b?"success":"error",children:"success"===b?"Valid":"Invalid"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{onClick:v,fullWidth:!0,disabled:!n.name.trim()||!n.prefix.trim()||!n.baseUrl.trim()||c,children:c?"Saving...":"Save"}),(0,a.jsx)(d.$n,{onClick:l,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function P({isOpen:e,providerAlias:t,providerDisplayAlias:s,onSave:l,onClose:r}){let[n,o]=(0,i.useState)(""),[c,m]=(0,i.useState)(null),[u,p]=(0,i.useState)(""),[x,h]=(0,i.useState)(!1);(0,i.useEffect)(()=>{e&&(o(""),m(null),p(""))},[e]);let f=e=>{let s=`${t}/`;return e.startsWith(s)?e.slice(s.length):e},g=async()=>{let e=f(n.trim());if(e){m("testing"),p("");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();m(a.ok?"ok":"error"),p(a.error||"")}catch(e){m("error"),p(e.message)}}},b=async()=>{let e=f(n.trim());if(e&&!x){h(!0);try{await l(e)}finally{h(!1)}}};return(0,a.jsx)(d.aF,{isOpen:e,onClose:r,title:"Add Custom Model",children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium mb-1.5 block",children:"Model ID"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("input",{type:"text",value:n,onChange:e=>{o(e.target.value),m(null),p("")},onKeyDown:e=>{"Enter"===e.key&&g()},placeholder:"e.g. claude-opus-4-5",className:"flex-1 px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",autoFocus:!0}),(0,a.jsx)(d.$n,{variant:"secondary",icon:"science",loading:"testing"===c,onClick:g,disabled:!n.trim()||"testing"===c,children:"testing"===c?"Testing...":"Test"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Sent to provider as: ",(0,a.jsx)("code",{className:"font-mono bg-sidebar px-1 rounded",children:f(n.trim())||"model-id"})]})]}),"ok"===c&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base",children:"check_circle"}),"Model is reachable"]}),"error"===c&&(0,a.jsxs)("div",{className:"flex items-start gap-2 text-sm text-red-500",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-base shrink-0",children:"cancel"}),(0,a.jsx)("span",{children:u||"Model not reachable"})]}),(0,a.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,a.jsx)(d.$n,{onClick:r,variant:"ghost",fullWidth:!0,size:"sm",children:"Cancel"}),(0,a.jsx)(d.$n,{onClick:b,fullWidth:!0,size:"sm",disabled:!n.trim()||x,children:x?"Adding...":"Add Model"})]})]})})}I.propTypes={isOpen:k().bool.isRequired,provider:k().string,providerName:k().string,isCompatible:k().bool,isAnthropic:k().bool,authType:k().string,authHint:k().string,website:k().string,proxyPools:k().arrayOf(k().shape({id:k().string,name:k().string})),error:k().string,onSave:k().func.isRequired,onBulkDone:k().func,onClose:k().func.isRequired},O.propTypes={isOpen:k().bool.isRequired,node:k().shape({id:k().string,name:k().string,prefix:k().string,apiType:k().string,baseUrl:k().string}),onSave:k().func.isRequired,onClose:k().func.isRequired,isAnthropic:k().bool},P.propTypes={isOpen:k().bool.isRequired,providerAlias:k().string.isRequired,providerDisplayAlias:k().string.isRequired,onSave:k().func.isRequired,onClose:k().func.isRequired};let E="kiro-bulk-import-active-job",_="Bulk import progress expired or was cleared.";function D(e){return["completed","cancelled","failed"].includes(e)}async function R(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 z(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 U(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 q(){let e,t=(0,l.useParams)(),s=(0,l.useRouter)(),r=t.id,[m,g]=(0,i.useState)([]),[j,k]=(0,i.useState)(!0),[N,S]=(0,i.useState)(null),[$,T]=(0,i.useState)([]),[q,M]=(0,i.useState)(!1),[L,F]=(0,i.useState)(!1),[K,J]=(0,i.useState)(!1),[B,W]=(0,i.useState)(!1),[G,Q]=(0,i.useState)(""),[H,V]=(0,i.useState)(!1),[Z,X]=(0,i.useState)(!1),[Y,ee]=(0,i.useState)(!1),[et,es]=(0,i.useState)(null),[ea,ei]=(0,i.useState)({}),[el,er]=(0,i.useState)(!1),[en,eo]=(0,i.useState)({}),[ed,ec]=(0,i.useState)(""),[em,eu]=(0,i.useState)(null),[ep,ex]=(0,i.useState)(!1),[eh,ef]=(0,i.useState)([]),[eg,eb]=(0,i.useState)("__none__"),[ey,ev]=(0,i.useState)(!1),[ej,ek]=(0,i.useState)(null),[ew,eN]=(0,i.useState)(""),[eC,eS]=(0,i.useState)("auto"),[e$,eA]=(0,i.useState)([]),[eT,eI]=(0,i.useState)([]),[eO,eP]=(0,i.useState)([]),[eE,e_]=(0,i.useState)(null),[eD,eR]=(0,i.useState)(!1),[ez,eU]=(0,i.useState)(!1),[eq,eM]=(0,i.useState)(!1),[eL,eF]=(0,i.useState)(null),[eK,eJ]=(0,i.useState)({}),[eB,eW]=(0,i.useState)(null),eG=(0,i.useRef)(!1),[eQ,eH]=(0,i.useState)(!1),[eV,eZ]=(0,i.useState)(null),[eX,eY]=(0,i.useState)(""),[e0,e1]=(0,i.useState)(1),[e2,e5]=(0,i.useState)(20),[e4,e3]=(0,i.useState)("all"),[e6,e7]=(0,i.useState)(""),[e8,e9]=(0,i.useState)(1),[te,tt]=(0,i.useState)(20),{copied:ts,copy:ta}=(0,h.C)(),ti=(0,i.useRef)(0),tl="ag_risk_confirmed",tr=(0,i.useCallback)(()=>{eZ(null),eY(""),ti.current=0,window.localStorage.removeItem(E)},[]),tn=()=>{M(!0)},to=()=>{"kiro"===r&&eV?.jobId&&D(eV.status)&&tr(),s.push(p(r))},td=()=>{Q(""),W(!0)},tc=()=>{tp?(()=>{if(u(r))return"antigravity"===r&&"true"!==window.localStorage.getItem(tl)?eR(!0):to();if("antigravity"===r&&"true"!==window.localStorage.getItem(tl))return eR(!0);tp?tn():(Q(""),W(!0))})():td()},tm=N?{id:N.id,name:N.name||("anthropic-compatible"===N.type?"Anthropic Compatible":"OpenAI Compatible"),color:"anthropic-compatible"===N.type?"#D97757":"#10A37F",textIcon:"anthropic-compatible"===N.type?"AC":"OC",apiType:N.apiType,baseUrl:N.baseUrl,type:N.type}:c.zN[r]||c.fg[r]||c.IS[r]||c.nJ[r]||c.br[r],tu=tm?.authModes||[],tp=!!c.zN[r]||!!c.IS[r]||tu.includes("oauth"),tx=!!c.fg[r]||tu.includes("apikey"),th=!!c.IS[r]?.noAuth,tf=(0,x.KC)(r),tg=(0,c.wG)(r),tb=(0,c.mq)(r),ty=(0,c.gb)(r),tv=tb||ty,tj=!tv&&tp&&tx,tk=u(r),tw="xai"===r?"Grok Build OAuth":"OAuth",tN="xai"===r?"xAI API Key":"API Key",tC=c.Q2[r]?.thinkingConfig||c.s9.extended,tS=tv?r:tg,t$=tv?N?.prefix||r:tg,tA=(0,i.useCallback)(async()=>{try{let e=await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tS)}`,{cache:"no-store"}),t=await e.json();e.ok&&eP(t.ids||[])}catch(e){console.log("Error fetching disabled models:",e)}},[tS]),tT=async e=>{try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tS,ids:[e]})})).ok&&await tA()}catch(e){console.log("Error disabling model:",e)}},tI=async e=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tS)}&id=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await tA()}catch(e){console.log("Error enabling model:",e)}},tO=async e=>{e.length&&e_({title:"Disable All Models",message:`Disable all ${e.length} model(s)?`,onConfirm:async()=>{e_(null);try{(await fetch("/api/models/disabled",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:tS,ids:e})})).ok&&await tA()}catch(e){console.log("Error disabling all models:",e)}}})},tP=async()=>{try{(await fetch(`/api/models/disabled?providerAlias=${encodeURIComponent(tS)}`,{method:"DELETE"})).ok&&await tA()}catch(e){console.log("Error enabling all models:",e)}},tE=(0,i.useCallback)(async()=>{try{let e=await fetch("/api/models/alias"),t=await e.json();e.ok&&ei(t.aliases||{})}catch(e){console.log("Error fetching aliases:",e)}},[]);(0,i.useEffect)(()=>{"kilocode"===r&&fetch("/api/providers/kilo/free-models").then(e=>e.json()).then(e=>{e.models?.length&&eI(e.models)}).catch(()=>{})},[r]);let t_=(0,i.useCallback)(async()=>{try{let[e,t,s,a]=await Promise.allSettled([U("/api/providers"),U("/api/provider-nodes"),U("/api/proxy-pools?isActive=true"),U("/api/settings")]),i="fulfilled"===e.status?e.value.response:null,l="fulfilled"===e.status?e.value.data:{},n="fulfilled"===t.status?t.value.response:null,o="fulfilled"===t.status?t.value.data:{},d="fulfilled"===s.status?s.value.response:null,c="fulfilled"===s.status?s.value.data:{},m="fulfilled"===a.status?a.value.response:null,u=m?.ok&&a.value.data||{};if(i?.ok){let e=(l.connections||[]).filter(e=>e.provider===r);g(e)}d?.ok&&T(c.proxyPools||[]);let p=(u.providerStrategies||{})[r]||{};ek(p.fallbackStrategy||null),eN(null!=p.stickyRoundRobinLimit?String(p.stickyRoundRobinLimit):"1");let x=(u.providerThinking||{})[r]||{};if(eS(x.mode||"auto"),n?.ok){let e=(o.nodes||[]).find(e=>e.id===r)||null;if(!e&&tv)for(let t=0;t<3;t+=1){await new Promise(e=>setTimeout(e,150));let{response:t,data:s}=await U("/api/provider-nodes");if(t.ok&&(e=(s.nodes||[]).find(e=>e.id===r)||null))break}S(e)}}catch(e){console.log("Error fetching connections:",e)}finally{k(!1)}},[r,tv]),tD=async e=>{try{let t=await fetch(`/api/provider-nodes/${r}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();t.ok&&(S(s.node),await t_(),X(!1))}catch(e){console.log("Error updating provider node:",e)}},tR=async(e,t)=>{try{let s=await fetch("/api/settings",{cache:"no-store"}),a=(s.ok?await s.json():{}).providerStrategies||{},i={};e&&(i.fallbackStrategy=e),"round-robin"===e&&""!==t&&(i.stickyRoundRobinLimit=Number(t)||3);let l={...a};0===Object.keys(i).length?delete l[r]:l[r]=i,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:l})})}catch(e){console.log("Error saving provider strategy:",e)}},tz=async e=>{try{let t=await fetch("/api/settings",{cache:"no-store"}),s={...(t.ok?await t.json():{}).providerThinking||{}};e&&"auto"!==e?s[r]={mode:e}:delete s[r],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)}};(0,i.useEffect)(()=>{t_(),tE(),tA()},[t_,tE,tA]),(0,i.useEffect)(()=>{e1(1),e9(1),e3("all"),e7("")},[r]),(0,i.useEffect)(()=>{e1(1)},[e4,e2,e6]),(0,i.useEffect)(()=>{e9(1)},[te,eO.length,tf.length,eT.length]),(0,i.useEffect)(()=>{if("kiro"!==r)return;let e=window.localStorage.getItem(E),t=!1;return(async()=>{try{if(eY(""),eV?.jobId)return;let a=await z();if(!t&&a.res.ok&&a.data?.job){eZ(a.data.job),ti.current=a.data.job.summary?.success||0,window.localStorage.setItem(E,a.data.job.jobId);return}if(e){var s;let a=await R(e);if(!t&&a?.res.ok&&a.data?.job&&(s=a.data.job.status,["queued","running","needs_manual"].includes(s))){eZ(a.data.job),ti.current=a.data.job.summary?.success||0;return}tr(),eY(_)}}catch{t||eY(_)}})(),()=>{t=!0}},[tr,eV?.jobId,r]),(0,i.useEffect)(()=>{if(!("kiro"!==r||!eV?.jobId||D(eV.status)))return(0,v.M)(async e=>{let t=await R(eV.jobId);if(!e()){if(t?.res.ok&&t.data?.job){let s=t.data.job.summary?.success||0;if(s>ti.current&&(ti.current=s,await t_(),e()))return;eY(""),eZ(t.data.job);return}if(t?.res.status===404){let t=await z();if(e())return;if(t.res.ok&&t.data?.job){let s=t.data.job.summary?.success||0;if(s>ti.current&&(ti.current=s,await t_(),e()))return;eY(""),eZ(t.data.job),window.localStorage.setItem(E,t.data.job.jobId);return}tr(),eY(_)}}},2e3)},[tr,t_,eV?.jobId,eV?.status,r]),(0,i.useEffect)(()=>{let e=(c.zN[r]||c.fg[r]||c.IS[r]||c.nJ[r])?.modelsFetcher;e&&b(e).then(eA)},[r]);let tU=async(e,t,s=tg)=>{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 tE();else{let t=await e.json();alert(t.error||"Failed to set alias")}}catch(e){console.log("Error setting alias:",e)}},tq=async e=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(e)}`,{method:"DELETE"})).ok&&await tE()}catch(e){console.log("Error deleting alias:",e)}},tM=async()=>{if(eQ)return;let e=m.find(e=>!1!==e.isActive);if(!e)return void alert((0,f.Tl)("Please add an active Qoder connection first"));eH(!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 i=0;for(let e of a){let t=e.id||e.name;if(!t)continue;let s=t.replace(/^qoder\//,""),a=`${tS}/${s}`;!Object.values(ea).includes(a)&&(ea[s]||(await tU(s,s,tS),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{eH(!1)}},tL=async()=>{if(ez||0===m.length)return;let e=Object.fromEntries(m.map(e=>[e.id,{state:"queued",error:null}]));eG.current=!1,eU(!0),eM(!1),eF(null),eJ(e),eW({total:m.length,completed:0,passed:0,failed:0,stopped:!1});let t=0,s=0;try{for(let e=0;e<m.length;e+=1){if(eG.current){eW({total:m.length,completed:e,passed:t,failed:s,stopped:!0});break}let a=m[e];eF(a.id),eJ(e=>({...e,[a.id]:{state:"testing",error:null}}));try{let e=await fetch(`/api/providers/${a.id}/test`,{method:"POST"}),i=await e.json(),l=!!i.valid;l?t+=1:s+=1,eJ(e=>({...e,[a.id]:{state:l?"success":"failed",error:l?null:i.error||null}}))}catch(e){s+=1,eJ(t=>({...t,[a.id]:{state:"failed",error:e.message||"Test failed"}}))}eW({total:m.length,completed:e+1,passed:t,failed:s,stopped:!1}),e<m.length-1&&await new Promise(e=>setTimeout(e,1e3))}}finally{eF(null),eU(!1),eM(!1),eG.current=!1}},tF=async e=>{e_({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{e_(null);try{(await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok&&g(m.filter(t=>t.id!==e))}catch(e){console.log("Error deleting connection:",e)}}})},tK=()=>{t_(),M(!1)},tJ=(0,i.useCallback)(e=>{(eZ(e),eY(""),e?.jobId)?(window.localStorage.setItem(E,e.jobId),ti.current=Math.max(ti.current,e.summary?.success||0)):tr()},[tr]),tB=async e=>{Q("");try{let t=await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:r,...e})}),s=null;try{s=await t.json()}catch{s=null}if(t.ok){await t_(),W(!1);return}Q(s?.error||"Failed to save connection")}catch(e){console.log("Error saving connection:",e),Q("Failed to save connection")}},tW=async e=>{try{(await fetch(`/api/providers/${et.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await t_(),V(!1))}catch(e){console.log("Error updating connection:",e)}},tG=async(e,t)=>{try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&g(s=>s.map(s=>s.id===e?{...s,isActive:t}:s))}catch(e){console.log("Error updating connection status:",e)}},tQ=async(e,t)=>{let s=[...m];[s[e],s[t]]=[s[t],s[e]],g(s);try{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})})])}catch(e){console.log("Error swapping priority:",e),await t_()}},tH=(0,i.useMemo)(()=>{let e=e6.trim().toLowerCase();return m.filter(t=>!!(0,y.i2)(t,e4)&&(!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)))},[m,e4,e6]),tV=(0,i.useMemo)(()=>y.gJ.reduce((e,t)=>(e[t.id]="all"===t.id?m.length:m.filter(e=>(0,y.i2)(e,t.id)).length,e),{}),[m]),tZ=eh.filter(e=>m.some(t=>t.id===e)),tX=m.filter(e=>tZ.includes(e.id)),tY="codebuddy"===r?(tX.length>0?tX:m).map(e=>e.id):[],t0=tH.length>0&&tH.every(e=>tZ.includes(e.id)),t1=(()=>{if(0===tX.length)return"";let e=new Set(tX.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"));if(1===e.size){let t=[...e][0];if("__none__"===t)return"All selected currently unbound";let s=$.find(e=>e.id===t);return`All selected currently bound to ${s?.name||t}`}return"Selected connections have mixed proxy bindings"})(),t2=()=>{ey||ee(!1)},t5=async e=>{ev(!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 t_(),ee(!1)}finally{ev(!1)}},t4=e=>t5(tX.map(t=>({connectionId:t.id,proxyPoolId:e}))),t3=e=>{let t="gsuite"===e?"GSuite (non-Gmail)":"Gmail (@gmail.com)";e_({title:`Delete ${t}`,message:`Delete ALL ${t} accounts for this provider? This cannot be undone.`,onConfirm:async()=>{e_(null);try{(await fetch("/api/providers/bulk-delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:tm?.id||r,emailFilter:e})})).ok&&(ef([]),await t_())}catch(e){console.error("bulk delete error:",e)}}})},t6=Math.max(1,Math.ceil(tH.length/e2)),t7=Math.min(e0,t6),t8=tH.slice((t7-1)*e2,t7*e2),t9=(0,a.jsx)("div",{className:"flex min-w-0 flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:t8.map((e,t)=>{let s,i=m.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,tZ.includes(s)),onChange:()=>{var t;return t=e.id,void ef(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)(A,{connection:e,proxyPools:$,isOAuth:tp,isFirst:0===i,isLast:i===m.length-1,onMoveUp:()=>tQ(i,i-1),onMoveDown:()=>tQ(i,i+1),onToggleActive:t=>tG(e.id,t),onUpdateProxy:async t=>{try{(await fetch(`/api/providers/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:t||null})})).ok&&g(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:()=>{es(e),V(!0)},onDelete:()=>tF(e.id),oneByOneStatus:eK[e.id]||null})})]},e.id)})}),se=$.filter(e=>!0===e.isActive),st=(0,a.jsx)(d.aF,{isOpen:Y,onClose:t2,title:`Apply Proxy (${tX.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=$.filter(e=>!0===e.isActive);return 0===e.length?void alert("No active proxy pools available."):t5(tX.map((t,s)=>({connectionId:t.id,proxyPoolId:e[s%e.length].id})))},disabled:ey||0===se.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:()=>t4(null),disabled:ey,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)"})]}),$.map(e=>(0,a.jsxs)("button",{onClick:()=>t4(e.id),disabled:ey||!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))]}),ey&&(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Applying..."}),(0,a.jsx)(d.$n,{onClick:t2,variant:"ghost",fullWidth:!0,disabled:ey,children:"Cancel"})]})}),ss=async e=>{if(!em){eu(e);try{let t=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${tS}/${e}`})}),s=await t.json();eo(t=>({...t,[e]:s.ok?"ok":"error"})),ec(s.ok?"":s.error||"Model not reachable")}catch{eo(t=>({...t,[e]:"error"})),ec("Network error")}finally{eu(null)}}};return j?(0,a.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,a.jsx)(d.Qv,{}),(0,a.jsx)(d.Qv,{})]}):tm?(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:gap-8 sm:px-0",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)(n(),{href:"/dashboard/providers",className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),"Back to Providers"]}),(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-lg",style:{backgroundColor:`${tm.color}15`},children:el?(0,a.jsx)("span",{className:"text-sm font-bold",style:{color:tm.color},children:tm.textIcon||tm.id.slice(0,2).toUpperCase()}):(0,a.jsx)(o.default,{src:tb&&tm.apiType?"responses"===tm.apiType?"/providers/oai-r.png":"/providers/oai-cc.png":ty?"/providers/anthropic-m.png":`/providers/${tm.id}.png`,alt:tm.name,width:48,height:48,className:"max-h-12 max-w-12 rounded-lg object-contain",sizes:"48px",onError:()=>er(!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:tm.name}),(tm.notice?.apiKeyUrl||tm.notice?.signupUrl||tm.website)&&(0,a.jsxs)("a",{href:tm.notice?.apiKeyUrl||tm.notice?.signupUrl||tm.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"}),tm.notice?.apiKeyUrl?"Get API Key":"Sign up / Learn more"]})]}),(0,a.jsxs)("p",{className:"text-text-muted",children:[m.length," connection",1===m.length?"":"s"]})]})]})]}),tm.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:tm.deprecationNotice})]}),tm.notice?.text&&!tm.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:tm.notice.text}),tm.notice.apiKeyUrl&&(0,a.jsx)("a",{href:tm.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 →"})]}),tv&&N&&(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:ty?"Anthropic Compatible Details":"OpenAI Compatible Details"}),(0,a.jsxs)("p",{className:"break-all text-sm text-text-muted",children:[ty?"Messages API":"responses"===N.apiType?"Responses API":"Chat Completions"," \xb7 ",(N.baseUrl||"").replace(/\/$/,""),"/",ty?"messages":"responses"===N.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:()=>{Q(""),W(!0)},className:"w-full sm:w-auto",children:"Add API Key"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>X(!0),className:"w-full sm:w-auto",children:"Edit"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:async()=>{e_({title:"Delete Compatible Node",message:`Delete this ${ty?"Anthropic":"OpenAI"} Compatible node?`,onConfirm:async()=>{e_(null);try{(await fetch(`/api/provider-nodes/${r}`,{method:"DELETE"})).ok&&s.push("/dashboard/providers")}catch(e){console.log("Error deleting provider node:",e)}}})},className:"w-full sm:w-auto",children:"Delete"})]})]})}),th?(0,a.jsx)(d.gw,{providerId:r}):(0,a.jsxs)(d.Zp,{children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[m.length>0&&$.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"lan",onClick:()=>{if(0===tX.length)return;let e=[...new Set(tX.map(e=>e.providerSpecificData?.proxyPoolId||"__none__"))];eb(1===e.length?e[0]:"__none__"),ee(!0)},disabled:0===tX.length,children:"Apply Proxy"}),m.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"sync",onClick:tL,disabled:ez,children:ez?"Testing Connection One-by-One...":"Test Connection One-by-One"}),ez&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",icon:"stop",onClick:()=>{ez&&(eG.current=!0,eM(!0))},disabled:eq,children:eq?"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:eC,onChange:e=>{var t;eS(t=e.target.value),tz(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:(tC?.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"===ej,onChange:e=>{let t=e?"round-robin":null,s=e?ew||"1":ew;e&&!ew&&eN("1"),ek(t),tR(t,s)}}),"round-robin"===ej&&(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:ew,onChange:e=>{var t;eN(t=e.target.value),tR("round-robin",t)},placeholder:"1",className:"w-14 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]})]}),m.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:t0,onChange:()=>{t0?ef(e=>e.filter(e=>!tH.some(t=>t.id===e))):ef(e=>Array.from(new Set([...e,...tH.map(e=>e.id)])))},className:"size-4 rounded border-black/20 dark:border-white/20"}),t0?"Unselect visible":"Select visible"]}),(0,a.jsxs)(d.Ex,{variant:"default",children:[tH.length," visible"]}),tX.length>0&&(0,a.jsxs)(d.Ex,{variant:"default",children:[tX.length," selected"]}),t1&&(0,a.jsx)("span",{className:"text-xs text-text-muted",children:t1}),tX.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",onClick:()=>{ef([]),eb("__none__")},children:"Clear"}),tX.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:()=>{0!==tX.length&&e_({title:"Delete Selected Connections",message:`Delete ${tX.length} selected connection(s)? This permanently removes the selected accounts.`,onConfirm:async()=>{for(let e of(e_(null),tX))try{await fetch(`/api/providers/${e.id}`,{method:"DELETE"})}catch(e){console.log("Error deleting selected connection:",e)}ef(e=>e.filter(e=>!tX.some(t=>t.id===e))),await t_()}})},children:["Delete Selected (",tX.length,")"]}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"domain",onClick:()=>t3("gsuite"),children:"Delete GSuite"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"mail",onClick:()=>t3("gmail"),children:"Delete Gmail"})]})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:y.gJ.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>e3(e.id),className:`rounded-full border px-2.5 py-1 text-xs transition-colors ${e4===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:tV[e.id]||0})]},e.id))}),m.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:e6,onChange:e=>e7(e.target.value),placeholder:`Search ${m.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"})]})]}),0===m.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:tp?"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"}),tj&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Choose ",tw," or ",tN,"."]})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[tk&&(0,a.jsx)(d.$n,{size:"sm",icon:"automation",onClick:to,children:"Open Automation"}),tj?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tn,children:tw}),(0,a.jsx)(d.$n,{size:"sm",icon:"key",onClick:td,children:tN})]}):tk?null:(0,a.jsxs)(a.Fragment,{children:[!tv&&"iflow"===r&&(0,a.jsx)(d.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>F(!0),children:"Cookie"}),(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:tc,children:tv?"Add API Key":"iflow"===r?"OAuth":"Add Connection"})]})]})]}),"kiro"===r&&eV?.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: ",eV.status," | Success: ",eV.summary?.success||0," | Running: ",eV.summary?.running||0," | Queued: ",eV.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(p("kiro")),children:"Resume Bulk Progress"}),D(eV.status)&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",icon:"close",onClick:tr,children:"Clear"})]})]}),"kiro"===r&&!eV?.jobId&&eX&&(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:eX})]}):(0,a.jsxs)(a.Fragment,{children:[eB&&(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: ",eB.total]}),(0,a.jsxs)("span",{children:["Completed: ",eB.completed]}),(0,a.jsxs)("span",{children:["Passed: ",eB.passed]}),(0,a.jsxs)("span",{children:["Failed: ",eB.failed]}),eB.stopped&&(0,a.jsx)("span",{className:"text-amber-600 dark:text-amber-400",children:"Stopped"}),ez&&eL&&(0,a.jsxs)("span",{children:["Running: ",m.find(e=>e.id===eL)?.name||eL]})]})}),"kiro"===r&&eV?.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: ",eV.status," | Success: ",eV.summary?.success||0," | Running: ",eV.summary?.running||0," | Queued: ",eV.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(p("kiro")),children:"Resume Bulk Progress"}),D(eV.status)&&(0,a.jsx)(d.$n,{size:"sm",variant:"ghost",icon:"close",onClick:tr,children:"Clear"})]})]}),"kiro"===r&&!eV?.jobId&&eX&&(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:eX}),t9,"kiro"===r&&t6>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 ",t7," of ",t6," • Showing ",(t7-1)*e2+1,"-",Math.min(t7*e2,tH.length)," of ",tH.length," connections"]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",disabled:t7<=1,onClick:()=>e1(e=>Math.max(1,e-1)),children:"Previous"}),(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",disabled:t7>=t6,onClick:()=>e1(e=>Math.min(t6,e+1)),children:"Next"})]})]}),"kiro"!==r&&tH.length>0&&(0,a.jsx)(d.dK,{currentPage:t7,pageSize:e2,totalItems:tH.length,onPageChange:e1,onPageSizeChange:e=>{e5(e),e1(1)},className:"mt-2"}),m.length>0&&0===tH.length&&(0,a.jsx)("div",{className:"py-8 text-center text-sm text-text-muted",children:"No connections match this status filter."}),!tv&&(0,a.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:flex",children:["iflow"===r&&(0,a.jsx)(d.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>F(!0),title:"Add connection using browser cookie",className:"w-full sm:w-auto",children:"Cookie"}),"codebuddy"===r&&(0,a.jsx)(d.$n,{size:"sm",icon:"cookie",variant:"secondary",onClick:()=>{m.length>1&&0===tX.length?alert("Select the CodeBuddy connection(s) that should use this quota cookie first."):J(!0)},title:"Attach CodeBuddy web cookie for quota tracking",className:"w-full sm:w-auto",children:"Quota Cookie"}),tk&&(0,a.jsx)(d.$n,{size:"sm",icon:"automation",onClick:to,className:"w-full sm:w-auto",children:"Open Automation"}),tj?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.$n,{size:"sm",icon:"lock",variant:"secondary",onClick:tn,className:"w-full sm:w-auto",children:tw}),(0,a.jsx)(d.$n,{size:"sm",icon:"key",onClick:td,className:"w-full sm:w-auto",children:tN})]}):tk?null:(0,a.jsx)(d.$n,{size:"sm",icon:"add",onClick:tc,className:"w-full sm:w-auto",children:"Add"})]})]})]}),(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"}),!tv&&(e=[...tf,...eT.filter(e=>!tf.some(t=>t.id===e.id))].filter(e=>!e.type||"llm"===e.type).map(e=>e.id).filter(e=>!eO.includes(e)),(0,a.jsxs)("div",{className:"flex gap-2",children:[eO.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"restart_alt",onClick:tP,children:"Active All"}),e.length>0&&(0,a.jsx)(d.$n,{size:"sm",variant:"secondary",icon:"block",onClick:()=>tO(e),children:"Disable All"})]}))]}),!!ed&&(0,a.jsx)("p",{className:"text-xs text-red-500 mb-3 break-words",children:ed}),(()=>{let e,t,s;if(tv)return(0,a.jsx)(C,{providerStorageAlias:tS,providerDisplayAlias:t$,modelAliases:ea,copied:ts,onCopy:ta,onSetAlias:tU,onDeleteAlias:tq,connections:m,isAnthropic:ty});let i=[...tf,...eT.filter(e=>!tf.some(t=>t.id===e.id))].filter(e=>!e.type||"llm"===e.type),l=new Set(eO),n=i.filter(e=>!l.has(e.id)),o=i.filter(e=>l.has(e.id)),c=Object.entries(ea).filter(([e,t])=>{let s=`${tS}/`;if(!t.startsWith(s))return!1;let a=t.slice(s.length);return tm.passthroughModels?!tf.some(e=>e.id===a):!tf.some(e=>e.id===a)&&e===a}).map(([e,t])=>({id:t.slice(`${tS}/`.length),alias:e,fullModel:t})),u=Math.min(e8,Math.max(1,Math.ceil(n.length/te))),p=n.slice((u-1)*te,u*te);return(0,a.jsxs)("div",{className:"flex flex-wrap gap-3",children:[c.map(e=>(0,a.jsx)(w,{model:{id:e.id},fullModel:`${t$}/${e.id}`,alias:e.alias,copied:ts,onCopy:ta,onSetAlias:()=>{},onDeleteAlias:()=>tq(e.alias),testStatus:en[e.id],onTest:m.length>0||th?()=>ss(e.id):void 0,isTesting:em===e.id,isCustom:!0,isFree:!1,thinkingSuffix:eC&&"auto"!==eC&&"off"!==eC&&"none"!==eC?eC:null},e.id)),p.map(e=>{let t=`${tS}/${e.id}`,s=`${r}/${e.id}`,i=Object.entries(ea).find(([,e])=>e===t||e===s)?.[0];return(0,a.jsx)(w,{model:e,fullModel:`${t$}/${e.id}`,alias:i,copied:ts,onCopy:ta,onSetAlias:t=>tU(e.id,t,tS),onDeleteAlias:()=>tq(i),testStatus:en[e.id],onTest:m.length>0||th?()=>ss(e.id):void 0,isTesting:em===e.id,isFree:e.isFree,onDisable:()=>tT(e.id),thinkingSuffix:eC&&"auto"!==eC&&"off"!==eC&&"none"!==eC?eC:null},e.id)}),n.length>te&&(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(d.dK,{currentPage:u,pageSize:te,totalItems:n.length,onPageChange:e9,onPageSizeChange:e=>{tt(e),e9(1)}})}),(0,a.jsxs)("button",{onClick:()=>ex(!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"]}),"qoder"===r&&m.some(e=>!1!==e.isActive)&&(0,a.jsxs)("button",{onClick:tM,disabled:eQ,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:eQ?{animation:"spin 1s linear infinite"}:void 0,children:eQ?"progress_activity":"download"}),eQ?(0,f.Tl)("Fetching..."):(0,f.Tl)("Fetch Qoder Models")]}),e$.length>0&&(e=new Set(Object.values(ea)),t=new Set(tf.map(e=>e.id)),0===(s=e$.filter(s=>!e.has(`${tS}/${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 tU(e.id,t,tS)},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:()=>tI(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))})]})]})})()]}),st,"kiro"===r?(0,a.jsx)(d.Mh,{isOpen:q,providerInfo:tm,onSuccess:tK,onRefresh:t_,initialBulkJobId:eV?.jobId||null,onBulkJobChange:tJ,onClose:()=>M(!1)}):"cursor"===r?(0,a.jsx)(d.G9,{isOpen:q,onSuccess:tK,onClose:()=>M(!1)}):"gitlab"===r?(0,a.jsx)(d.vj,{isOpen:q,providerInfo:tm,onSuccess:tK,onClose:()=>M(!1)}):(0,a.jsx)(d.LF,{isOpen:q,provider:r,providerInfo:tm,onSuccess:tK,onClose:()=>M(!1)}),"iflow"===r&&(0,a.jsx)(d.vE,{isOpen:L,onSuccess:()=>{t_(),F(!1)},onClose:()=>F(!1)}),"codebuddy"===r&&(0,a.jsx)(d.xl,{isOpen:K,connectionIds:tY,onSuccess:()=>{t_(),J(!1)},onClose:()=>J(!1)}),(0,a.jsx)(I,{isOpen:B,provider:r,providerName:tm.name,isCompatible:tv,isAnthropic:ty,authType:tm?.authType,authHint:tm?.authHint,website:tm?.website,proxyPools:$,error:G,onSave:tB,onBulkDone:t_,onClose:()=>{Q(""),W(!1)}}),(0,a.jsx)(d.wI,{isOpen:H,connection:et,proxyPools:$,onSave:tW,onClose:()=>V(!1)}),tv&&(0,a.jsx)(O,{isOpen:Z,node:N,onSave:tD,onClose:()=>X(!1),isAnthropic:ty}),!tv&&(0,a.jsx)(P,{isOpen:ep,providerAlias:tS,providerDisplayAlias:t$,onSave:async e=>{let t=tm?.passthroughModels?e.split("/").pop():e;await tU(e,t,tS),ex(!1)},onClose:()=>ex(!1)}),(0,a.jsx)(d.uo,{isOpen:eD,onClose:()=>eR(!1),onConfirm:()=>{(window.localStorage.setItem(tl,"true"),eR(!1),u("antigravity"))?s.push(p("antigravity")):tp?tn():td()},title:"Risk Notice",message:tm?.deprecationNotice,confirmText:"I Understand, Continue",cancelText:"Cancel",variant:"danger"}),(0,a.jsx)(d.uo,{isOpen:!!eE,onClose:()=>e_(null),onConfirm:eE?.onConfirm,title:eE?.title||"Confirm",message:eE?.message,variant:"danger"})]}):(0,a.jsxs)("div",{className:"text-center py-20",children:[(0,a.jsx)("p",{className:"text-text-muted",children:"Provider not found"}),(0,a.jsx)(n(),{href:"/dashboard/providers",className:"text-primary mt-4 inline-block",children:"Back to Providers"})]})}},42911:(e,t,s)=>{Promise.resolve().then(s.bind(s,20898))},70217:(e,t,s)=>{"use strict";s.d(t,{BU:()=>c,G9:()=>r,d4:()=>o,gJ:()=>a,i2:()=>d});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"]}],i={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}};function l(e){if(!e)return"";if("string"==typeof e)return e.toLowerCase();try{return JSON.stringify(e).toLowerCase()}catch{return String(e).toLowerCase()}}function r(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 n(e,t=""){let s=i[e]||i.unknown;return{key:e,...s,reason:t}}function o(e={}){if(!1===e.isActive)return n("disabled","Connection is disabled");if(function(e={}){return null!==r(e)}(e))return n("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 n("rate_limited","Rate limit cooldown is active");let t=l(e.testStatus||e.status),s=l(e.lastErrorType||e.errorType),a=l(e.errorCode||e.statusCode),i=l(e.lastError||e.error),d=`${t} ${s} ${a} ${i}`.trim();return!d||["active","success","ok"].includes(t)?n("active",""):d.includes("ban")||d.includes("suspend")||d.includes("restricted")?n("banned",e.lastError||"Account appears restricted"):d.includes("exhaust")||d.includes("quota exceeded")||d.includes("insufficient_quota")||d.includes("payment required")||"402"===a?n("quota_exhausted",e.lastError||"Quota exhausted"):s.includes("rate_limited")||d.includes("rate limit")||d.includes("too many requests")||"429"===a?n("rate_limited",e.lastError||"Rate limited"):s.includes("auth")||s.includes("token")||d.includes("unauthorized")||d.includes("invalid api key")||d.includes("token invalid")||d.includes("token expired")||d.includes("revoked")||"401"===a||"403"===a?n("auth_error",e.lastError||"Authentication failed"):s.includes("network")||d.includes("network")||d.includes("timeout")||d.includes("fetch failed")||d.includes("econn")||d.includes("dns")||d.includes("proxy")?n("connection_error",e.lastError||"Connection failed"):["error","expired","unavailable","failed"].includes(t)?n("connection_error",e.lastError||e.testStatus||"Connection failed"):n("unknown",e.lastError||e.testStatus||"")}function d(e,t){if(!t||"all"===t)return!0;let s=a.find(e=>e.id===t);return!s||s.keys.includes(o(e).key)}function c(e){return e?.severity==="success"?"success":e?.severity==="error"?"error":"default"}},81277:(e,t,s)=>{"use strict";s.d(t,{c:()=>l});var a=s(12115),i=s(70217);function l(e={}){let[t,s]=(0,a.useState)(null),r=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,l=s.setTimer||globalThis.setTimeout,r=s.clearTimer||globalThis.clearTimeout,n=!1,o=null,d=()=>{if(o=null,n)return;let s=a(),r=(0,i.G9)(e,s);t(r),r&&(o=l(d,Math.min(Math.max(1,new Date(r).getTime()-s+1),0x7fffffff)))};return o=l(d,0),()=>{n=!0,null!==o&&r(o),o=null}})(Object.fromEntries(JSON.parse(r)),s),[r]),t}}},e=>{e.O(0,[2574,3862,3745,9802,620,5497,8441,3794,7358],()=>e(e.s=42911)),_N_E=e.O()}]);
@@ -0,0 +1,4 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6812],{30275:(e,t,r)=>{Promise.resolve().then(r.bind(r,57076))},57076:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});var l=r(95155),o=r(12115),s=r(35497),a=r(65921);function i(e={}){return{name:e.name||"",proxyUrl:e.proxyUrl||"",noProxy:e.noProxy||"",isActive:!1!==e.isActive,strictProxy:!0===e.strictProxy}}function n(){let[e,t]=(0,o.useState)([]),[r,n]=(0,o.useState)(!0),[d,c]=(0,o.useState)(!1),[x,p]=(0,o.useState)(!1),[m,h]=(0,o.useState)(!1),[u,y]=(0,o.useState)(!1),[g,f]=(0,o.useState)(!1),[j,b]=(0,o.useState)(!1),[v,k]=(0,o.useState)(null),[N,w]=(0,o.useState)(i()),[C,P]=(0,o.useState)(""),[$,D]=(0,o.useState)({vercelToken:"",projectName:"vercel-relay"}),[S,T]=(0,o.useState)({accountId:"",apiToken:"",projectName:"cloudflare-relay"}),[A,E]=(0,o.useState)({denoToken:"",orgDomain:"",projectName:""}),[I,U]=(0,o.useState)(!1),[O,z]=(0,o.useState)(!1),[F,W]=(0,o.useState)(!1),[R,_]=(0,o.useState)(null),[L,M]=(0,o.useState)([]),[q,V]=(0,o.useState)(!1),[J,B]=(0,o.useState)({current:0,total:0}),[G,H]=(0,o.useState)(!1),[Y,K]=(0,o.useState)(null),[Q,Z]=(0,o.useState)(1),[X,ee]=(0,o.useState)(20),et=(0,o.useRef)(null),er=(0,a.i)();(0,o.useEffect)(()=>{let e=e=>{et.current&&!et.current.contains(e.target)&&b(!1)};return j&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[j]);let el=(0,o.useCallback)(async()=>{try{let e=await fetch("/api/proxy-pools?includeUsage=true",{cache:"no-store"}),r=await e.json();e.ok&&t(r.proxyPools||[])}catch(e){console.log("Error fetching proxy pools:",e)}finally{n(!1)}},[]);(0,o.useEffect)(()=>{el()},[el]);let eo=()=>{k(null),w(i())},es=()=>{eo(),c(!0)},ea=async e=>{try{let t=await fetch(`/api/proxy-pools/${e.id}?reveal=1`,{cache:"no-store"}),r=await t.json();if(!t.ok||!r.proxyPool)throw Error(r.error||"Failed to load proxy pool");k(r.proxyPool),w(i(r.proxyPool)),c(!0)}catch(e){er.error(e.message||"Failed to load proxy pool")}},ei=()=>{c(!1),eo()},en=async()=>{let e={name:N.name.trim(),proxyUrl:N.proxyUrl.trim(),noProxy:N.noProxy.trim(),isActive:!0===N.isActive,strictProxy:!0===N.strictProxy};if(e.name&&e.proxyUrl){U(!0);try{let t=!!v,r=await fetch(t?`/api/proxy-pools/${v.id}`:"/api/proxy-pools",{method:t?"PUT":"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(r.ok)await el(),ei(),er.success(v?"Proxy pool updated":"Proxy pool created");else{let e=await r.json();er.error(e.error||"Failed to save proxy pool")}}catch(e){console.log("Error saving proxy pool:",e)}finally{U(!1)}}},ed=async e=>{K({title:"Delete Proxy Pool",message:`Delete proxy pool "${e.name}"?`,onConfirm:async()=>{K(null);try{let r=await fetch(`/api/proxy-pools/${e.id}`,{method:"DELETE"});if(r.ok){t(t=>t.filter(t=>t.id!==e.id)),er.success("Proxy pool deleted");return}let l=await r.json();409===r.status?er.warning(`Cannot delete: ${l.boundConnectionCount||0} connection(s) are still using this pool.`):er.error(l.error||"Failed to delete proxy pool")}catch(e){console.log("Error deleting proxy pool:",e),er.error("Failed to delete proxy pool")}}})},ec=async e=>{_(e);try{let t=await fetch(`/api/proxy-pools/${e}/test`,{method:"POST"}),r=await t.json();if(!t.ok)return void er.error(r.error||"Failed to test proxy");await el(),er.success(r.ok?"Proxy test passed":"Proxy test failed")}catch(e){console.log("Error testing proxy pool:",e),er.error("Failed to test proxy")}finally{_(null)}},ex=async e=>{let r=!e.isActive;t(t=>t.map(t=>t.id===e.id?{...t,isActive:r}:t));try{(await fetch(`/api/proxy-pools/${e.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:r})})).ok||(t(t=>t.map(t=>t.id===e.id?{...t,isActive:e.isActive}:t)),er.error("Failed to update active state"))}catch(r){console.log("Error toggling active:",r),t(t=>t.map(t=>t.id===e.id?{...t,isActive:e.isActive}:t))}},ep=Math.min(Q,Math.max(1,Math.ceil(e.length/X))),em=e.slice((ep-1)*X,ep*X),eh=em.length>0&&em.every(e=>L.includes(e.id)),eu=()=>M([]),ey=async t=>{let r=L.length>0?L:e.map(e=>e.id);if(0!==r.length){H(!0);try{let e=0,l=0;for(let o of r)try{(await fetch(`/api/proxy-pools/${o}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok?e+=1:l+=1}catch{l+=1}await el(),er.success(`${t?"Activated":"Deactivated"} ${e}${l?`, failed ${l}`:""}`)}finally{H(!1)}}},eg=async()=>{0!==L.length&&K({title:"Delete Proxy Pools",message:`Delete ${L.length} proxy pool(s)?`,onConfirm:async()=>{K(null),H(!0);try{let e=0,t=0,r=0;for(let l of L)try{let o=await fetch(`/api/proxy-pools/${l}`,{method:"DELETE"});o.ok?e+=1:409===o.status?t+=1:r+=1}catch{r+=1}await el(),eu(),er.success(`Deleted ${e}${t?`, ${t} bound`:""}${r?`, ${r} failed`:""}`)}finally{H(!1)}}})},ef=async()=>{let t=L.length>0?e.filter(e=>L.includes(e.id)):e;if(0===t.length)return;V(!0),B({current:0,total:t.length});let r=0,l=[],o=0,s=[...t],a=async()=>{for(;s.length>0;){let e=s.shift();if(!e)break;try{let t=await fetch(`/api/proxy-pools/${e.id}/test`,{method:"POST"}),o=await t.json();t.ok&&o.ok?r+=1:l.push(e.id)}catch{l.push(e.id)}finally{B({current:o+=1,total:t.length})}}};await Promise.all(Array.from({length:Math.min(10,t.length)},a)),await el(),V(!1),B({current:0,total:0}),l.length>0?K({title:"Disable Dead Proxies",message:`Alive: ${r}, Dead: ${l.length}.
2
+
3
+ Disable ${l.length} dead proxies?`,onConfirm:async()=>{K(null),H(!0);try{for(let e of l)try{await fetch(`/api/proxy-pools/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:!1})})}catch{}await el(),er.success(`Disabled ${l.length} dead proxies`)}finally{H(!1)}}}):er.success(`Health check done. Alive: ${r}, Dead: ${l.length}`)};(0,o.useEffect)(()=>{M(t=>t.filter(t=>e.some(e=>e.id===t)))},[e]),(0,o.useEffect)(()=>{Z(t=>Math.min(t,Math.max(1,Math.ceil(e.length/X))))},[e.length,X]);let ej=()=>{O||p(!1)},eb=()=>{F||h(!1)},ev=()=>{F||y(!1)},ek=()=>{F||f(!1)},eN=async()=>{if($.vercelToken.trim()){W(!0);try{let e=await fetch("/api/proxy-pools/vercel-deploy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)}),t=await e.json();e.ok?(await el(),eb(),er.success(`Deployed: ${t.deployUrl}`)):er.error(t.error||"Deploy failed")}catch(e){console.log("Error deploying Vercel relay:",e),er.error("Deploy failed")}finally{W(!1)}}},ew=async()=>{if(S.accountId.trim()&&S.apiToken.trim()){W(!0);try{let e=await fetch("/api/proxy-pools/cloudflare-deploy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(S)}),t=await e.json();e.ok?(await el(),ev(),er.success(`Deployed: ${t.deployUrl}`)):er.error(t.error||"Deploy failed")}catch(e){console.log("Error deploying Cloudflare relay:",e),er.error("Deploy failed")}finally{W(!1)}}},eC=async()=>{if(A.denoToken.trim()){W(!0);try{let e=await fetch("/api/proxy-pools/deno-deploy",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(A)}),t=await e.json();e.ok?(await el(),ek(),er.success(`Deployed: ${t.deployUrl}`)):er.error(t.error||"Deploy failed")}catch(e){console.log("Error deploying Deno relay:",e),er.error("Deploy failed")}finally{W(!1)}}},eP=async()=>{let t=C.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(0===t.length)return void er.warning("Please paste at least one proxy line.");let r=[],l=[];if(t.forEach((e,t)=>{try{let l=(e=>{let t=e.trim();if(!t)return null;if(t.includes("://")){let e=new URL(t),r=e.port?`${e.hostname}:${e.port}`:e.hostname;return{proxyUrl:e.toString(),name:`Imported ${r}`}}let r=t.split(":");if(4===r.length){let[e,t,l,o]=r;if(!e||!t||!l||!o)throw Error("Invalid host:port:user:pass format");return{proxyUrl:new URL(`http://${encodeURIComponent(l)}:${encodeURIComponent(o)}@${e}:${t}`).toString(),name:`Imported ${e}:${t}`}}throw Error("Unsupported format")})(e);l&&r.push({...l,lineNumber:t+1})}catch(e){l.push(`Line ${t+1}: ${e.message}`)}}),l.length>0)return void er.error(`Invalid proxy format:
4
+ ${l.join("\n")}`);z(!0);try{let t=new Set(e.map(e=>`${(e.proxyUrl||"").trim()}|||${(e.noProxy||"").trim()}`)),l=0,o=0,s=0;for(let e of r){let r=`${e.proxyUrl}|||`;if(t.has(r)){o+=1;continue}let a=await fetch("/api/proxy-pools",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name,proxyUrl:e.proxyUrl,noProxy:"",isActive:!0})});a.ok?(l+=1,t.add(r)):409===a.status?(o+=1,t.add(r)):s+=1}await el(),p(!1),er.success(`Batch import completed: Created ${l}, Skipped ${o}, Failed ${s}`)}catch(e){console.log("Error batch importing proxies:",e),er.error("Batch import failed")}finally{z(!1)}},e$=(0,o.useMemo)(()=>e.filter(e=>!0===e.isActive).length,[e]);return r?(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:gap-6 sm:px-0",children:[(0,l.jsx)(s.Qv,{}),(0,l.jsx)(s.Qv,{})]}):(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-5xl flex-col gap-4 px-1 sm:gap-6 sm:px-0",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,l.jsx)("div",{className:"min-w-0",children:(0,l.jsx)("h1",{className:"text-xl font-semibold sm:text-2xl",children:"Proxy Pools"})}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:flex sm:items-center",children:[(0,l.jsxs)("div",{className:"relative",ref:et,children:[(0,l.jsxs)(s.$n,{size:"sm",variant:"secondary",icon:"rocket_launch",onClick:()=>b(!j),children:["Deploy Relay",(0,l.jsx)("span",{className:"material-symbols-outlined ml-1 text-[18px]",children:j?"expand_less":"expand_more"})]}),j&&(0,l.jsxs)("div",{className:"absolute left-0 top-full z-50 mt-1 w-48 rounded-xl border border-black/10 bg-white p-1 shadow-xl dark:border-white/10 dark:bg-zinc-900 sm:left-auto sm:right-0",children:[(0,l.jsxs)("button",{onClick:()=>{T({accountId:"",apiToken:"",projectName:"cloudflare-relay"}),y(!0),b(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-text-main transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px] text-orange-500",children:"cloud"}),"Cloudflare Relay"]}),(0,l.jsxs)("button",{onClick:()=>{D({vercelToken:"",projectName:"vercel-relay"}),h(!0),b(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-text-main transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px] text-blue-500",children:"cloud_upload"}),"Vercel Relay"]}),(0,l.jsxs)("button",{onClick:()=>{E({denoToken:"",orgDomain:"",projectName:""}),f(!0),b(!1)},className:"flex w-full items-center gap-2 rounded-lg px-3 py-2 text-sm text-text-main transition-colors hover:bg-black/5 dark:hover:bg-white/5",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[20px] text-green-500",children:"terminal"}),"Deno Relay"]})]})]}),(0,l.jsx)(s.$n,{size:"sm",variant:"secondary",icon:"upload",onClick:()=>{P(""),p(!0)},children:"Batch Import"}),(0,l.jsx)(s.$n,{size:"sm",icon:"add",onClick:es,children:"Add Proxy Pool"})]})]}),(0,l.jsxs)(s.Zp,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2",children:[e.length>0&&(0,l.jsxs)("label",{className:"flex items-center gap-1.5 text-xs text-text-muted cursor-pointer",children:[(0,l.jsx)("input",{type:"checkbox",checked:eh,onChange:()=>M(e=>eh?e.filter(e=>!em.some(t=>t.id===e)):Array.from(new Set([...e,...em.map(e=>e.id)]))),className:"size-4 rounded border-black/20 dark:border-white/20"}),eh?"Unselect visible":"Select visible"]}),(0,l.jsxs)(s.Ex,{variant:"default",children:["Total: ",e.length]}),(0,l.jsxs)(s.Ex,{variant:"success",children:["Active: ",e$]})]}),(L.length>0||q)&&(0,l.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-2 rounded-lg border border-primary/30 bg-primary/5 px-3 py-2",children:[(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px] text-primary",children:"checklist"}),(0,l.jsx)("span",{className:"text-xs font-medium text-primary",children:L.length>0?`${L.length} selected`:"All pools"}),(0,l.jsxs)("div",{className:"ml-auto flex flex-wrap items-center gap-2",children:[(0,l.jsx)(s.$n,{size:"sm",icon:q?"progress_activity":"health_and_safety",onClick:ef,disabled:q||G||0===e.length,children:q?`Checking ${J.current}/${J.total}`:"Health Check"}),L.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.$n,{size:"sm",variant:"secondary",icon:"toggle_on",onClick:()=>ey(!0),disabled:G||q,children:"Activate"}),(0,l.jsx)(s.$n,{size:"sm",variant:"secondary",icon:"toggle_off",onClick:()=>ey(!1),disabled:G||q,children:"Deactivate"}),(0,l.jsx)(s.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:eg,disabled:G||q,children:"Delete"}),(0,l.jsx)(s.$n,{size:"sm",variant:"ghost",onClick:eu,disabled:G||q,children:"Clear"})]})]})]}),0===e.length?(0,l.jsxs)("div",{className:"text-center py-10",children:[(0,l.jsx)("p",{className:"text-text-main font-medium mb-1",children:"No proxy pool entries yet"}),(0,l.jsx)("p",{className:"text-sm text-text-muted mb-4",children:"Create a proxy pool entry, then assign it to connections."}),(0,l.jsx)(s.$n,{icon:"add",onClick:es,children:"Add Proxy Pool"})]}):(0,l.jsxs)("div",{className:"flex flex-col divide-y divide-black/[0.04] dark:divide-white/[0.05]",children:[em.map(e=>{var t;return(0,l.jsxs)("div",{className:"flex flex-col gap-3 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 min-w-0 flex-1",children:[(0,l.jsx)("input",{type:"checkbox",checked:L.includes(e.id),onChange:()=>{let t;return t=e.id,M(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])},className:"mt-1 size-4 shrink-0 rounded border-black/20 dark:border-white/20"}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,l.jsx)("p",{className:"min-w-0 max-w-full truncate text-sm font-medium sm:max-w-[18rem]",children:e.name}),(0,l.jsx)(s.Ex,{variant:"active"===(t=e.testStatus)?"success":"error"===t?"error":"default",size:"sm",dot:!0,children:e.testStatus||"unknown"}),(0,l.jsx)(s.Ex,{variant:e.isActive?"success":"default",size:"sm",children:e.isActive?"active":"inactive"}),"vercel"===e.type&&(0,l.jsx)(s.Ex,{variant:"default",size:"sm",children:"vercel relay"}),"cloudflare"===e.type&&(0,l.jsx)(s.Ex,{variant:"default",size:"sm",children:"cloudflare relay"}),(0,l.jsxs)(s.Ex,{variant:"default",size:"sm",children:[e.boundConnectionCount||0," bound"]})]}),(0,l.jsx)("p",{className:"text-xs text-text-muted truncate mt-1",children:e.proxyUrl}),e.noProxy?(0,l.jsxs)("p",{className:"text-xs text-text-muted truncate",children:["No proxy: ",e.noProxy]}):null,(0,l.jsxs)("p",{className:"text-[11px] text-text-muted mt-1",children:["Last tested: ",function(e){if(!e)return"Never";let t=new Date(e);return Number.isNaN(t.getTime())?"Never":t.toLocaleString()}(e.lastTestedAt),e.lastError?` \xb7 ${e.lastError}`:""]})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,l.jsx)(s.lM,{size:"sm",checked:!0===e.isActive,onChange:()=>ex(e),title:e.isActive?"Disable":"Enable"}),(0,l.jsx)("button",{onClick:()=>ec(e.id),className:"p-2 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",title:"Test proxy",disabled:R===e.id,children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",style:R===e.id?{animation:"spin 1s linear infinite"}:void 0,children:R===e.id?"progress_activity":"science"})}),(0,l.jsx)("button",{onClick:()=>ea(e),className:"p-2 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",title:"Edit",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})}),(0,l.jsx)("button",{onClick:()=>ed(e),className:"p-2 rounded hover:bg-red-500/10 text-red-500",title:"Delete",children:(0,l.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"})})]})]},e.id)}),e.length>0&&(0,l.jsx)(s.dK,{currentPage:ep,pageSize:X,totalItems:e.length,onPageChange:Z,onPageSizeChange:e=>{ee(e),Z(1)}})]})]}),(0,l.jsx)(s.aF,{isOpen:x,title:"Batch Import Proxies",onClose:ej,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"text-sm font-medium text-text-main mb-1 block",children:"Paste Proxy List (One per line)"}),(0,l.jsx)("textarea",{value:C,onChange:e=>P(e.target.value),placeholder:"http://user:pass@127.0.0.1:7897\n127.0.0.1:7897:user:pass",className:"w-full min-h-[180px] py-2 px-3 text-sm text-text-main bg-white dark:bg-white/5 border border-black/10 dark:border-white/10 rounded-md focus:ring-1 focus:ring-primary/30 focus:border-primary/50 focus:outline-none transition-all"}),(0,l.jsx)("p",{className:"text-xs text-text-muted mt-1",children:"Supported formats: protocol://user:pass@host:port, host:port:user:pass"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(s.$n,{fullWidth:!0,onClick:eP,disabled:!C.trim()||O,children:O?"Importing...":"Import"}),(0,l.jsx)(s.$n,{fullWidth:!0,variant:"ghost",onClick:ej,disabled:O,children:"Cancel"})]})]})}),(0,l.jsx)(s.aF,{isOpen:m,title:"Deploy Vercel Relay",onClose:eb,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"rounded-lg bg-blue-500/5 border border-blue-500/10 p-3 flex flex-col gap-1.5",children:[(0,l.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Vercel Relay?"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys an edge relay function to Vercel. All AI provider requests will be forwarded through Vercel's edge network, masking your real IP from providers."}),(0,l.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,l.jsx)("li",{children:"Your IP is replaced by Vercel's dynamic edge IPs (hundreds of IPs across 20+ global regions)"}),(0,l.jsx)("li",{children:"Vercel serves millions of apps — providers can't block Vercel IPs without affecting legitimate traffic"}),(0,l.jsx)("li",{children:"Free tier: 100GB bandwidth/month, 500K edge invocations"}),(0,l.jsx)("li",{children:"Deploy multiple relays on different accounts for more IP diversity"})]})]}),(0,l.jsx)(s.pd,{label:"Vercel API Token",value:$.vercelToken,onChange:e=>D(t=>({...t,vercelToken:e.target.value})),placeholder:"your-vercel-api-token",hint:(0,l.jsxs)(l.Fragment,{children:["Token is used once for deployment and not stored. ",(0,l.jsx)("a",{href:"https://vercel.com/account/tokens",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get token →"})]}),type:"password"}),(0,l.jsx)(s.pd,{label:"Project Name",value:$.projectName,onChange:e=>D(t=>({...t,projectName:e.target.value})),placeholder:"my-relay",hint:"Unique name for your Vercel project. Leave empty for auto-generated name."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(s.$n,{fullWidth:!0,onClick:eN,disabled:!$.vercelToken.trim()||F,children:F?"Deploying... (may take ~1 min)":"Deploy"}),(0,l.jsx)(s.$n,{fullWidth:!0,variant:"ghost",onClick:eb,disabled:F,children:"Cancel"})]})]})}),(0,l.jsx)(s.aF,{isOpen:u,title:"Deploy Cloudflare Relay",onClose:ev,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"rounded-lg bg-orange-500/5 border border-orange-500/10 p-3 flex flex-col gap-1.5",children:[(0,l.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Cloudflare Relay?"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys a Cloudflare Worker as a proxy relay. All AI provider requests will be forwarded through Cloudflare's global edge network."}),(0,l.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,l.jsx)("li",{children:"High performance global routing and IP masking via Cloudflare Workers"}),(0,l.jsx)("li",{children:"Free tier: 100,000 requests per day"}),(0,l.jsx)("li",{children:"Requires Cloudflare Account ID and a Workers API Token (Edit Workers permission)"})]}),(0,l.jsxs)("div",{className:"mt-2 pt-2 border-t border-orange-500/10 text-xs text-text-muted",children:[(0,l.jsx)("p",{className:"font-medium text-text-main mb-1",children:"How to generate your API Token:"}),(0,l.jsxs)("ol",{className:"list-decimal pl-4 space-y-0.5",children:[(0,l.jsxs)("li",{children:["Go to ",(0,l.jsx)("b",{children:"My Profile"})," → ",(0,l.jsx)("b",{children:"API Tokens"})," → ",(0,l.jsx)("b",{children:"Create Token"})]}),(0,l.jsxs)("li",{children:["Scroll down to ",(0,l.jsx)("b",{children:"Custom Token"})," and click ",(0,l.jsx)("b",{children:"Get started"})]}),(0,l.jsxs)("li",{children:["Under ",(0,l.jsx)("b",{children:"Permissions"}),": Account | Workers Scripts | Edit"]}),(0,l.jsxs)("li",{children:["Under ",(0,l.jsx)("b",{children:"Account Resources"}),": Include | Account | ",(0,l.jsx)("i",{children:"Your Account Name"})]}),(0,l.jsxs)("li",{children:["Click ",(0,l.jsx)("b",{children:"Continue to summary"})," → ",(0,l.jsx)("b",{children:"Create Token"})]})]})]})]}),(0,l.jsx)(s.pd,{label:"Account ID",value:S.accountId,onChange:e=>T(t=>({...t,accountId:e.target.value})),placeholder:"your-cloudflare-account-id",hint:(0,l.jsx)(l.Fragment,{children:"Found on the right side of the Cloudflare dashboard overview page."})}),(0,l.jsx)(s.pd,{label:"API Token",value:S.apiToken,onChange:e=>T(t=>({...t,apiToken:e.target.value})),placeholder:"your-cloudflare-api-token",hint:(0,l.jsxs)(l.Fragment,{children:['Requires "Workers Scripts: Edit" permission. ',(0,l.jsx)("a",{href:"https://dash.cloudflare.com/profile/api-tokens",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get token →"})]}),type:"password"}),(0,l.jsx)(s.pd,{label:"Worker Name",value:S.projectName,onChange:e=>T(t=>({...t,projectName:e.target.value})),placeholder:"my-relay",hint:"Unique name for your Cloudflare Worker. Leave empty for auto-generated name."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(s.$n,{fullWidth:!0,onClick:ew,disabled:!S.accountId.trim()||!S.apiToken.trim()||F,children:F?"Deploying...":"Deploy Worker"}),(0,l.jsx)(s.$n,{fullWidth:!0,variant:"ghost",onClick:ev,disabled:F,children:"Cancel"})]})]})}),(0,l.jsx)(s.aF,{isOpen:g,title:"Deploy Deno Relay",onClose:ek,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"rounded-lg bg-black/5 dark:bg-white/5 border border-black/10 dark:border-white/10 p-3 flex flex-col gap-1.5",children:[(0,l.jsx)("p",{className:"text-sm text-text-main font-medium",children:"What is Deno Relay?"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Deploys a relay worker to Deno Deploy's global edge network. All AI provider requests are forwarded through Deno's edge, masking your real IP."}),(0,l.jsxs)("ul",{className:"text-xs text-text-muted list-disc pl-4 space-y-0.5",children:[(0,l.jsx)("li",{children:"Deno Deploy v2 runs on a high-performance global edge network"}),(0,l.jsx)("li",{children:"Free tier: 1M requests & 100GiB outbound traffic per month"}),(0,l.jsx)("li",{children:"No per-request CPU time limits (unlike Vercel/Cloudflare)"}),(0,l.jsx)("li",{children:"Support up to 20 active apps & 50 custom domains"}),(0,l.jsx)("li",{children:"Deploy multiple relays for maximum IP diversity"})]}),(0,l.jsxs)("div",{className:"mt-2 pt-2 border-t border-black/10 dark:border-white/10 text-xs text-text-muted",children:[(0,l.jsx)("p",{className:"font-medium text-text-main mb-1",children:"How to generate API token:"}),(0,l.jsxs)("ol",{className:"list-decimal pl-4 space-y-0.5",children:[(0,l.jsxs)("li",{children:["Go to ",(0,l.jsx)("b",{children:"console.deno.com"})]}),(0,l.jsxs)("li",{children:["Select your ",(0,l.jsx)("b",{children:"Organization"})," → ",(0,l.jsx)("b",{children:"Settings"})," → ",(0,l.jsx)("b",{children:"Organization Tokens"})]}),(0,l.jsxs)("li",{children:["Create a ",(0,l.jsx)("b",{children:"Organization Token"})," (prefix ",(0,l.jsx)("b",{children:"ddo_"}),")"]})]})]})]}),(0,l.jsx)(s.pd,{label:"Deno Deploy API Token",value:A.denoToken,onChange:e=>E(t=>({...t,denoToken:e.target.value})),placeholder:"ddo_xxxxxxxxxxxxxxxx",hint:(0,l.jsx)(l.Fragment,{children:"Token is used once for deployment, not stored. Found in Organization Settings."}),type:"password"}),(0,l.jsx)(s.pd,{label:"Organization Domain",value:A.orgDomain,onChange:e=>E(t=>({...t,orgDomain:e.target.value})),placeholder:"your-org.deno.net",hint:"Organization's default domain. Your relay URL will be in the format: https://my-relay.your-org.deno.net"}),(0,l.jsx)(s.pd,{label:"App Name",value:A.projectName,onChange:e=>E(t=>({...t,projectName:e.target.value})),placeholder:"deno-relay",hint:"Unique app name. Leave empty for auto-generated name."}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(s.$n,{fullWidth:!0,onClick:eC,disabled:!A.denoToken.trim()||!A.orgDomain.trim()||F,children:F?"Deploying...":"Deploy Relay"}),(0,l.jsx)(s.$n,{fullWidth:!0,variant:"ghost",onClick:ek,disabled:F,children:"Cancel"})]})]})}),(0,l.jsx)(s.aF,{isOpen:d,title:v?"Edit Proxy Pool":"Add Proxy Pool",onClose:ei,children:(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)(s.pd,{label:"Name",value:N.name,onChange:e=>w(t=>({...t,name:e.target.value})),placeholder:"Office Proxy"}),(0,l.jsx)(s.pd,{label:"Proxy URL",value:N.proxyUrl,onChange:e=>w(t=>({...t,proxyUrl:e.target.value})),placeholder:"http://127.0.0.1:7897"}),(0,l.jsx)(s.pd,{label:"No Proxy",value:N.noProxy,onChange:e=>w(t=>({...t,noProxy:e.target.value})),placeholder:"localhost,127.0.0.1,.internal",hint:"Comma-separated hosts/domains to bypass proxy"}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-medium text-sm",children:"Active"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Inactive pools are ignored by runtime resolution."})]}),(0,l.jsx)(s.lM,{checked:!0===N.isActive,onChange:()=>w(e=>({...e,isActive:!e.isActive})),disabled:I})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-3 rounded-lg border border-border/50 p-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"font-medium text-sm",children:"Strict Proxy"}),(0,l.jsx)("p",{className:"text-xs text-text-muted",children:"Fail request if proxy is unreachable instead of falling back to direct."})]}),(0,l.jsx)(s.lM,{checked:!0===N.strictProxy,onChange:()=>w(e=>({...e,strictProxy:!e.strictProxy})),disabled:I})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,l.jsx)(s.$n,{fullWidth:!0,onClick:en,disabled:!N.name.trim()||!N.proxyUrl.trim()||I,children:I?"Saving...":"Save"}),(0,l.jsx)(s.$n,{fullWidth:!0,variant:"ghost",onClick:ei,disabled:I,children:"Cancel"})]})]})}),(0,l.jsx)(s.uo,{isOpen:!!Y,onClose:()=>K(null),onConfirm:Y?.onConfirm,title:Y?.title||"Confirm",message:Y?.message,variant:"danger"})]})}}},e=>{e.O(0,[2574,3862,3745,9802,620,5497,8441,3794,7358],()=>e(e.s=30275)),_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,75095)),Promise.resolve().then(r.bind(r,25086))},75095:(e,t,r)=>{"use strict";r.d(t,{default:()=>A});var a=r(95155),s=r(12115),n=r(57250),i=r(42793);function l(e,t){return t&&0!==t?!e||e<0?100:e>=t?0:Math.round((t-e)/t*100):0}function o(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?l(e.used,e.total):Math.round(t)}return l(e?.used,e?.total)}function c(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])=>{r.push({name:e,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?r.push({name:"error",used:0,total:0,resetAt:null,message:t.message}):t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"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}function d({quotas:e=[],compact:t=!1,sortMode:r="default",showSortLabel:n=!1,paginate:i=!0,totalCount:l}){let[c,u]=(0,s.useState)(1),m=(0,s.useMemo)(()=>e.map((e,t)=>({...e,index:t,remaining:o(e)})),[e]),x=(0,s.useMemo)(()=>"remaining-asc"===r?[...m].sort((e,t)=>e.remaining-t.remaining||e.name.localeCompare(t.name)):"remaining-desc"===r?[...m].sort((e,t)=>t.remaining-e.remaining||e.name.localeCompare(t.name)):m,[m,r]),h=i?Math.max(1,Math.ceil(x.length/10)):1;if((0,s.useEffect)(()=>{u(1)},[r,e]),(0,s.useEffect)(()=>{u(e=>Math.min(e,h))},[h]),!e||0===e.length)return null;let b=i?x.slice((c-1)*10,10*c):x,p=0===x.length?0:(c-1)*10+1,g=i?Math.min(10*c,x.length):x.length,f=Number.isFinite(l)?l:x.length,v=t?"py-1 px-1.5":"py-2 px-3",y=t?"text-[11px]":"text-sm",k=t?"text-[11px]":"text-sm",w=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:[f," quota",f>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)("div",{className:"overflow-x-auto",children:(0,a.jsx)("table",{className:"w-full table-fixed text-left",children:(0,a.jsx)("tbody",{children:b.map(e=>{var r;let s=(r=e.remaining)>70?{text:"text-green-600 dark:text-green-400",bg:"bg-green-500",bgLight:"bg-green-500/10",emoji:"\uD83D\uDFE2"}:r>=30?{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500",bgLight:"bg-yellow-500/10",emoji:"\uD83D\uDFE1"}:{text:"text-red-600 dark:text-red-400",bg:"bg-red-500",bgLight:"bg-red-500/10",emoji:"\uD83D\uDD34"},n=function(e){if(!e)return"-";try{let t="string"==typeof e?new Date(e):e,r=new Date,a=t-r;if(a<=0)return"-";let s=Math.ceil(a/6e4);if(s<60)return`${s}m`;let 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"-"}}(e.resetAt),i=function(e){if(!e)return null;try{let t=new Date(e),r=new Date,a=new Date(r.getFullYear(),r.getMonth(),r.getDate()),s=new Date(a);s.setDate(s.getDate()+1);let 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}}(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:`${v} w-[30%]`,children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,a.jsx)("span",{className:"text-[10px] shrink-0",children:s.emoji}),(0,a.jsx)("span",{className:`${y} font-medium text-text-primary truncate`,children:e.name})]})}),(0,a.jsx)("td",{className:`${v} w-[45%]`,children:(0,a.jsxs)("div",{className:t?"space-y-1":"space-y-1.5",children:[(0,a.jsx)("div",{className:`${t?"h-1":"h-1.5"} rounded-full overflow-hidden border ${s.bgLight} ${0===e.remaining?"border-black/10 dark:border-white/10":"border-transparent"}`,children:(0,a.jsx)("div",{className:`h-full transition-all duration-300 ${s.bg}`,style:{width:`${Math.min(e.remaining,100)}%`}})}),(0,a.jsxs)("div",{className:`flex items-center justify-between ${t?"text-[10px]":"text-xs"}`,children:[(0,a.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 ${s.text}`,children:Number.isFinite(e.remaining)?`${e.remaining}%`:"—"})]})]})}),(0,a.jsx)("td",{className:`${v} w-[25%]`,children:"-"!==n||i?t?(0,a.jsx)("div",{className:`${k} text-text-primary font-medium truncate`,title:i||"",children:"-"!==n?`in ${n}`:i}):(0,a.jsxs)("div",{className:"space-y-0.5",children:["-"!==n&&(0,a.jsxs)("div",{className:`${k} text-text-primary font-medium`,children:["in ",n]}),i&&(0,a.jsx)("div",{className:`${w} text-text-muted`,children:i})]}):(0,a.jsx)("div",{className:`${k} text-text-muted italic`,children:"N/A"})})]},`${e.name}-${e.index}`)})})})}),h>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 ",p,"-",g," of ",x.length]}),(0,a.jsxs)("span",{children:["Page ",c," / ",h]})]}),(0,a.jsxs)("div",{className:"mt-1.5 flex items-center justify-end gap-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>u(e=>Math.max(1,e-1)),disabled:1===c,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:()=>u(e=>Math.min(h,e+1)),disabled:c===h,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 u=r(98542),m=r(84588),x=r(35497),h=r(52679);function b(e){let t=e=>"string"==typeof e&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);return t(e.email)?e.email:(t(e.name),e.name)}function p(e,t){let r=t[e.id]?.quotas?.[0];return r&&"number"==typeof r.remaining?r.remaining:1/0}function g(e){return h.Q2[e]?.name||e}function f(e){let t={};return e.forEach(e=>{t[e.id]=!0}),t}function v(e,t){let r=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>r.has(e)))}async function y(e,t){return await e(t)}let k="quotaCacheData";function w(){try{let e=window.localStorage.getItem(k);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}function j(e,t){try{let r=w();r[e]={...t,cachedAt:new Date().toISOString()},window.localStorage.setItem(k,JSON.stringify(r))}catch(e){console.error("Error writing quota cache:",e)}}let N="quotaAutoRefresh",S=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],C=[{value:"single",label:"Satuan",icon:"account_circle"},{value:"bulk",label:"Bulk",icon:"stacks"}],$=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}],q=[10,20,50,100];function A(){let[e,t]=(0,s.useState)([]),[r,i]=(0,s.useState)({}),[A,P]=(0,s.useState)({}),[E,M]=(0,s.useState)({}),[z,D]=(0,s.useState)(!0),[_,O]=(0,s.useState)(null),[T,I]=(0,s.useState)(!1),[F,L]=(0,s.useState)(!1),[R,U]=(0,s.useState)(60),[J,K]=(0,s.useState)(!0),[B,Q]=(0,s.useState)(null),[H,W]=(0,s.useState)(null),[G,Y]=(0,s.useState)(!1),[V,X]=(0,s.useState)(null),[Z,ee]=(0,s.useState)([]),[et,er]=(0,s.useState)("all"),[ea,es]=(0,s.useState)([]),[en,ei]=(0,s.useState)("single"),[el,eo]=(0,s.useState)("all"),[ec,ed]=(0,s.useState)("default"),[eu,em]=(0,s.useState)(!1),[ex,eh]=(0,s.useState)(!1),[eb,ep]=(0,s.useState)(!1),[eg,ef]=(0,s.useState)({}),[ev,ey]=(0,s.useState)(!1),[ek,ew]=(0,s.useState)({}),[ej,eN]=(0,s.useState)({}),[eS,eC]=(0,s.useState)(1),[e$,eq]=(0,s.useState)(20),[eA,eP]=(0,s.useState)(String(20)),[eE,eM]=(0,s.useState)({page:1,pageSize:20,total:0,totalPages:1}),[ez,eD]=(0,s.useState)({eligibleConnections:0,providerFilteredConnections:0}),e_=(0,s.useRef)(null),eO=(0,s.useRef)(null),eT=(0,s.useCallback)(async(e=eS)=>{try{var r,a;let s=new URLSearchParams({page:String(e),pageSize:String(e$),accountStatus:el,sort:"priority"});"all"!==et&&s.set("provider",et);let n=await fetch(`/api/providers/client?${s.toString()}`);if(!n.ok)throw Error("Failed to fetch connections");let i=await n.json(),l=i.connections||[],o=(r=i.pagination,r||{page:1,pageSize:e$,total:0,totalPages:1}),c=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(i.totals,l.length);return t(l),es(i.providerOptions||[]),eM(o),eD(c),eC((a=i.pagination,a?.page||e)),l}catch(e){return console.error("Error fetching connections:",e),t([]),es([]),eM({page:1,pageSize:e$,total:0,totalPages:1}),eD({eligibleConnections:0,providerFilteredConnections:0}),[]}},[el,eS,e$,et]),eI=(0,s.useCallback)(async(e,t,r=!1)=>{P(t=>({...t,[e]:!0})),M(t=>({...t,[e]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${t} (${e})`);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){console.warn(`[ProviderLimits] Auth error for ${t}:`,r);let a={quotas:[],message:r};i(t=>({...t,[e]:a})),j(e,a);return}throw Error(`HTTP ${a.status}: ${r}`)}let s=await a.json();console.log(`[ProviderLimits] Got quota for ${t}:`,s);let n={quotas:c(t,s),plan:s.plan||null,message:s.message||null,raw:s};i(t=>({...t,[e]:n})),j(e,n)}catch(r){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),M(t=>({...t,[e]:r.message||"Failed to fetch quota"}))}finally{P(t=>({...t,[e]:!1}))}},[]),eF=(0,s.useCallback)(async(e,t)=>{await eI(e,t,!0),O(new Date)},[eI]),eL=(0,s.useCallback)(async(e,t=!1)=>{if(e&&"all"!==e){eN(t=>({...t,[e]:!0}));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=c(e,s);ew(t=>({...t,[e]:{quotas:n,plan:s.plan||null,accountCount:s.accountCount||0,accountsWithQuota:s.accountsWithQuota||0,deadCount:s.deadCount||0}}))}catch(t){console.error(`[ProviderLimits] Aggregate fetch error for ${e}:`,t)}finally{eN(t=>({...t,[e]:!1}))}}},[]),eR=(0,s.useCallback)(async(e,t)=>{if("bulk"===en&&t){await eL(t,!0),O(new Date);return}e?.length&&(P(t=>({...t,...Object.fromEntries(e.map(e=>[e,!0]))})),await Promise.all(e.map(e=>eI(e,t,!0))),O(new Date))},[eI,en,eL]),eU=(0,s.useCallback)(async e=>{if(confirm("Delete this connection?")){Q(e);try{if((await fetch(`/api/providers/${e}`,{method:"DELETE"})).ok){i(t=>{let r={...t};return delete r[e],r}),P(t=>{let r={...t};return delete r[e],r}),M(t=>{let r={...t};return delete r[e],r});try{let t=w();t[e]&&(delete t[e],window.localStorage.setItem(k,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await y(eT,eS)}}catch(e){console.error("Error deleting connection:",e)}finally{Q(null)}}},[eT,eS]),eJ=(0,s.useCallback)(async(e,t)=>{W(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(i(e=>({...e})),await y(eT,eS))}catch(e){console.error("Error updating connection status:",e)}finally{W(null)}},[eT,eS]),eK=(0,s.useCallback)(async e=>{if(!V?.id)return;let t=V.id,r=V.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await eT(),Y(!1),X(null),h.wb.includes(r)&&await eI(t,r))}catch(e){console.error("Error saving connection:",e)}},[V,eT,eI]);(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&&ee(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let eB=(0,s.useCallback)(async()=>{if(!F){L(!0),U(60);try{let e=await eT(eS);if(P(f(e)),M(t=>v(t,e)),i(t=>v(t,e)),await Promise.all(e.map(e=>eI(e.id,e.provider,!0))),"bulk"===en){let e="all"!==et?[et]:ea.map(e=>e.value||e).filter(e=>"all"!==e);await Promise.all(e.map(e=>eL(e,!0)))}O(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{L(!1)}}},[F,eT,eI,eS,en,et,ea,eL]);(0,s.useEffect)(()=>{(async()=>{K(!0);let e=await eT(eS);K(!1),P(f(e)),M(t=>v(t,e)),i(t=>v(t,e)),await Promise.all(e.map(e=>eI(e.id,e.provider))),O(new Date)})()},[eT,eI,eS]),(0,s.useEffect)(()=>{"bulk"!==en||("all"!==et?[et]:ea.map(e=>e.value||e).filter(e=>"all"!==e)).forEach(e=>eL(e))},[en,et,ea,eL]),(0,s.useEffect)(()=>{let e=window.localStorage.getItem(N);D(null===e||"true"===e),I(!0)},[]),(0,s.useEffect)(()=>{T&&window.localStorage.setItem(N,String(z))},[z,T]),(0,s.useEffect)(()=>{if(!T||!z){e_.current&&(clearInterval(e_.current),e_.current=null),eO.current&&(clearInterval(eO.current),eO.current=null);return}return e_.current=setInterval(()=>{eB()},6e4),eO.current=setInterval(()=>{U(e=>e<=1?60:e-1)},1e3),()=>{e_.current&&clearInterval(e_.current),eO.current&&clearInterval(eO.current)}},[z,eB,T]),(0,s.useEffect)(()=>{let e=()=>{document.hidden?(e_.current&&(clearInterval(e_.current),e_.current=null),eO.current&&(clearInterval(eO.current),eO.current=null)):z&&T&&(e_.current=setInterval(eB,6e4),eO.current=setInterval(()=>{U(e=>e<=1?60:e-1)},1e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[z,eB,T]);let eQ=(0,s.useMemo)(()=>(function(e,t,r,a,s){if("codex"===a&&"default"!==s)return[...e].sort((e,r)=>{let a=p(e,t),n=p(r,t),i="remaining-asc"===s?a-n:n-a;return 0!==i?i:(b(e)||"").localeCompare(b(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||"")||(b(e)||"").localeCompare(b(t)||"")})})(e,r,eu,et,ec),[e,r,eu,et,ec]),eH=(0,s.useMemo)(()=>{let e;return e=new Map,eQ.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:g(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,A,E)).filter(Boolean)},[eQ,r,A,E]),eW=(0,s.useMemo)(()=>Object.keys(ek).length?eH.map(e=>{let t=ek[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:ej[e.provider]||!1}:e}):eH,[eH,ek,ej]),eG=(0,s.useMemo)(()=>"bulk"===en?eW:eQ,[en,eW,eQ]),eY=e=>{let t=r[e.id]?.quotas;return!!t?.length&&t.some(e=>!!e.total&&!(e.total<=0)&&5>=l(e.used,e.total))},eV=(0,s.useCallback)(async(e,t)=>{if(e.length&&!ev){ey(!0);try{await Promise.all(e.map(e=>fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})}))),await y(eT,eS)}catch(e){console.error("Error bulk toggling connections:",e)}finally{ey(!1)}}},[ev,eT,eS]),eX="all"===et?"All providers":et,eZ=ez.eligibleConnections>0,e0=eG.length>0,e1=ez.eligibleConnections?ez.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"===et?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===el?"turned off":"active"===el?"active":"matching"} accounts found for ${et}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},e5=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}`}(eE),e2=!q.includes(e$);return J||eZ?(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("div",{className:"flex justify-end",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:()=>eh(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":ex,title:"Filter quota providers",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:["all"===et?(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"apps"}):(0,a.jsx)(n.A,{src:`/providers/${et}.png`,alt:et,size:18,className:"size-[18px] rounded object-contain",fallbackText:et.slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate capitalize",children:eX})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px] text-text-muted",children:"expand_more"})]}),ex&&(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:()=>eh(!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"!==et&&eC(1),er("all"),eh(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${"all"===et?"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"===et&&(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:ea.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{et!==e&&eC(1),er(e),eh(!1)},className:`flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left text-sm transition-colors ${et===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}),et===e&&(0,a.jsx)("span",{className:"material-symbols-outlined ml-auto text-[20px]",children:"check"})]},e))})]})]})]}),(0,a.jsx)("select",{value:el,onChange:e=>{let t=e.target.value;el!==t&&eC(1),eo(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:S.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsx)("button",{type:"button",onClick:eB,disabled:F,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] ${F?"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:C.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>ei(e.value),"aria-pressed":en===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 ${en===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:()=>ep(e=>!e),"aria-expanded":eb,className:`flex size-11 items-center justify-center rounded-xl border text-text-primary transition-colors sm:hidden ${eb?"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":eb?"Hide more actions":"Show more actions",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"tune"})}),(0,a.jsxs)("div",{className:`${eb?"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"===et&&(0,a.jsx)("select",{value:ec,onChange:e=>ed(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:$.map(e=>(0,a.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,a.jsxs)("button",{type:"button",onClick:()=>em(e=>!e),"aria-pressed":eu,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 ${eu?"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:eu?"check_circle":"circle"})]}),(0,a.jsxs)("button",{type:"button",onClick:()=>{eV(eQ.filter(e=>(e.isActive??!0)&&eY(e)).map(e=>e.id),!1)},disabled:ev,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:()=>{eV(eQ.filter(e=>!(e.isActive??!0)&&!eY(e)).map(e=>e.id),!0)},disabled:ev,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:()=>D(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:z?"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] ${z?"text-primary":"text-text-muted"}`,children:z?"toggle_on":"toggle_off"}),(0,a.jsx)("span",{children:"Auto-refresh"})]}),z&&(0,a.jsxs)("span",{className:"text-[10px] text-text-muted tabular-nums",children:["(",R,"s)"]})]})]})]})}),e0?(0,a.jsxs)(a.Fragment,{children:[eu&&(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:eG.map(e=>{let t=!0===e.isAggregate,s=t?e.quota:r[e.id],i=t?e.isLoading:A[e.id],l=t?e.error:E[e.id],c=s?.quotas||[],x=!0===eg[e.id],h=x?c:function(e,t=3){return e.map((e,t)=>({quota:e,index:t})).sort((e,t)=>{let r=o(e.quota)-o(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)}(c),p=!1===e.isActive,f=!t&&(B===e.id||H===e.id);return(0,a.jsxs)(m.default,{padding:"none",className:`min-w-0 ${p?"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||g(e.provider)}),b(e)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:b(e)}):null]})]}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:[(0,a.jsx)("button",{type:"button",onClick:()=>t?eR(e.connectionIds,e.provider):eF(e.id,e.provider),disabled:i||f,"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 ${i?"animate-spin":""}`,children:"refresh"})}),!t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{type:"button",onClick:()=>{X(e),Y(!0)},disabled:f,"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:()=>eU(e.id),disabled:f,"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] ${B===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)(u.default,{size:"sm",touchTarget:!0,checked:e.isActive??!0,disabled:f,onChange:t=>eJ(e.id,t)})})]})]})]})}),(0,a.jsx)("div",{className:"px-2 py-1.5",children:i?(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"})}):l?(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:l})]}):c.length>0?(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"sm:hidden",children:[(0,a.jsx)(d,{quotas:h,totalCount:c.length,paginate:!1,compact:!0,sortMode:"default",showSortLabel:"codex"===e.provider&&"default"!==ec}),c.length>3&&(0,a.jsxs)("button",{type:"button",onClick:()=>ef(t=>({...t,[e.id]:!x})),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":x,children:[(0,a.jsx)("span",{children:x?"Show less":`Show ${c.length-h.length} more`}),(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:x?"expand_less":"expand_more"})]})]}),(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsx)(d,{quotas:c,compact:!0,sortMode:"default",showSortLabel:"codex"===e.provider&&"default"!==ec})}),s?.message?(0,a.jsx)("p",{className:"px-1 text-[10px] text-text-muted",children:s.message}):null]}):s?.message?(0,a.jsx)("div",{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-xs text-text-muted",children:s.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:e5}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:e2?"custom":String(e$),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(eC(1),eq(r),eP(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:[q.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:eA,onChange:e=>eP(e.target.value),onBlur:()=>{let e=Number.parseInt(eA,10);if(!Number.isFinite(e))return void eP(String(e$));let t=Math.min(500,Math.max(1,e));eC(1),eq(t),eP(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(eA,10);if(!Number.isFinite(t))return void eP(String(e$));let r=Math.min(500,Math.max(1,t));eC(1),eq(r),eP(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 ",eE.page," / ",eE.totalPages]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>eC(1),disabled:eE.page<=1||J||F,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:()=>eC(e=>Math.max(1,e-1)),disabled:eE.page<=1||J||F,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:()=>eC(e=>Math.min(eE.totalPages,e+1)),disabled:eE.page>=eE.totalPages||J||F,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:()=>eC(eE.totalPages),disabled:eE.page>=eE.totalPages||J||F,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)(m.default,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:e1.icon}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:e1.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:e1.description})]})}),(0,a.jsx)(x.wI,{isOpen:G,connection:V,proxyPools:Z,onSave:eK,onClose:()=>{Y(!1),X(null)}})]}):(0,a.jsx)(m.default,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text-primary",children:"No Providers Connected"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:"Connect to providers with OAuth to track your API quota limits and usage."})]})})}}},e=>{e.O(0,[2574,3862,3745,9802,620,5497,8441,3794,7358],()=>e(e.s=5498)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2825],{30906:(e,t,s)=>{Promise.resolve().then(s.bind(s,73314))},73314:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>N});var a=s(95155),r=s(12115),l=s(73321),n=s(35497),i=s(84588),o=s(92542),d=s(31474);function c({isOpen:e,onClose:t,title:s,children:l,width:n="md",className:i}){let o={sm:"w-[400px]",md:"w-[500px]",lg:"w-[600px]",xl:"w-[800px]",full:"w-full"};return((0,r.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,r.useEffect)(()=>{let s=s=>{"Escape"===s.key&&e&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,t]),e)?(0,a.jsxs)("div",{className:"fixed inset-0 z-50",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[2px] fade-in cursor-pointer",onClick:t,"aria-hidden":"true"}),(0,a.jsxs)("div",{className:(0,d.cn)("absolute right-0 top-0 h-full bg-surface flex flex-col","shadow-[var(--shadow-elev)]","slide-in-right","border-l border-border-subtle",o[n]||o.md,i),children:[(0,a.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-border-subtle flex-shrink-0",children:[(0,a.jsx)("div",{className:"flex items-center gap-3",children:s&&(0,a.jsx)("h2",{className:"text-lg font-semibold text-text-main",children:s})}),(0,a.jsx)("button",{type:"button",onClick:t,className:"p-1.5 rounded-[10px] text-text-muted hover:bg-surface-2 hover:text-text-main transition-colors",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto p-6 custom-scrollbar",children:l})]})]}):null}var x=s(50378),m=s(52679);let u=null,p=null;async function h(){if(u&&p)return{providerNameCache:u,providerNodesCache:p};let e=await fetch("/api/provider-nodes"),t=(await e.json()).nodes||[];for(let e of(p={},t))p[e.id]=e.name;return{providerNameCache:u={...m.Q2,...p},providerNodesCache:p}}function f(e,t){if(!e||!t)return e;let s=t[e];if("string"==typeof s)return s;if(s?.name)return s.name;let a=(0,m.zt)(e)||m.Q2[e];return a?.name||e}function b({title:e,children:t,defaultOpen:s=!1,icon:l=null}){let[n,i]=(0,r.useState)(s);return(0,a.jsxs)("div",{className:"border border-black/5 dark:border-white/5 rounded-lg overflow-hidden",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>i(!n),className:"w-full flex items-center justify-between p-3 bg-black/[0.02] dark:bg-white/[0.02] hover:bg-black/[0.04] dark:hover:bg-white/[0.04] transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[l&&(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px] text-text-muted",children:l}),(0,a.jsx)("span",{className:"font-semibold text-sm text-text-main",children:e})]}),(0,a.jsx)("span",{className:(0,d.cn)("material-symbols-outlined text-[20px] text-text-muted transition-transform duration-200",n?"rotate-90":""),children:"chevron_right"})]}),n&&(0,a.jsx)("div",{className:"p-4 border-t border-black/5 dark:border-white/5",children:t})]})}function g(e){let t=e?.prompt_tokens||e?.input_tokens||0,s=e?.cached_tokens||e?.cache_read_input_tokens||0;return t<s?s:t}function j(){let[e,t]=(0,r.useState)([]),[s,l]=(0,r.useState)({page:1,pageSize:20,totalItems:0,totalPages:0}),[n,m]=(0,r.useState)(!1),[u,p]=(0,r.useState)(null),[j,v]=(0,r.useState)(!1),[N,w]=(0,r.useState)([]),[k,y]=(0,r.useState)(null),[S,D]=(0,r.useState)({provider:"",startDate:"",endDate:""}),C=(0,r.useRef)({sequence:0,controller:null}),P=(0,r.useCallback)(async()=>{try{let e=await fetch("/api/usage/providers"),t=await e.json();w(t.providers||[]);let s=await h();y(s.providerNameCache)}catch(e){console.error("Failed to fetch providers:",e)}},[]),T=(0,r.useCallback)(async()=>{C.current.controller?.abort();let e=new AbortController,a=C.current.sequence+1;C.current={sequence:a,controller:e},m(!0);try{let r=new URLSearchParams({page:s.page.toString(),pageSize:s.pageSize.toString()});S.provider&&r.append("provider",S.provider),S.startDate&&r.append("startDate",S.startDate),S.endDate&&r.append("endDate",S.endDate);let n=await fetch(`/api/usage/request-details?${r}`,{signal:e.signal}),i=await n.json();if(a!==C.current.sequence)return;t(i.details||[]),l(e=>({...e,...i.pagination}))}catch(e){if(e?.name==="AbortError")return;console.error("Failed to fetch request details:",e)}finally{a===C.current.sequence&&m(!1)}},[s.page,s.pageSize,S]);(0,r.useEffect)(()=>{P()},[P]),(0,r.useEffect)(()=>(T(),()=>{C.current.controller?.abort(),C.current.sequence+=1}),[T]);let _=(e,t)=>{D(s=>({...s,[e]:t})),l(e=>({...e,page:1}))};return(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6",children:[(0,a.jsx)(i.default,{padding:"md",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,a.jsx)("label",{htmlFor:"provider-filter",className:"text-sm font-medium text-text-main",children:"Provider"}),(0,a.jsxs)("select",{id:"provider-filter",value:S.provider,onChange:e=>_("provider",e.target.value),className:(0,d.cn)("h-9 px-3 rounded-lg border border-black/10 dark:border-white/10 bg-surface","text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20","w-full min-w-0 cursor-pointer"),style:{colorScheme:"auto"},children:[(0,a.jsx)("option",{value:"",children:"All Providers"}),N.map(e=>(0,a.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,a.jsx)("label",{htmlFor:"start-date-filter",className:"text-sm font-medium text-text-main",children:"Start Date"}),(0,a.jsx)("input",{id:"start-date-filter",type:"datetime-local",value:S.startDate,onChange:e=>_("startDate",e.target.value),className:(0,d.cn)("h-9 px-3 rounded-lg border border-black/10 dark:border-white/10 bg-surface","w-full min-w-0 text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20")})]}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,a.jsx)("label",{htmlFor:"end-date-filter",className:"text-sm font-medium text-text-main",children:"End Date"}),(0,a.jsx)("input",{id:"end-date-filter",type:"datetime-local",value:S.endDate,onChange:e=>_("endDate",e.target.value),className:(0,d.cn)("h-9 px-3 rounded-lg border border-black/10 dark:border-white/10 bg-surface","w-full min-w-0 text-sm text-text-main focus:outline-none focus:ring-2 focus:ring-primary/20")})]}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-2 sm:col-span-2 lg:col-span-1",children:[(0,a.jsx)("span",{className:"hidden text-sm font-medium text-text-main opacity-0 lg:block","aria-hidden":"true",children:"Clear"}),(0,a.jsx)(o.default,{variant:"ghost",onClick:()=>{D({provider:"",startDate:"",endDate:""}),l(e=>({...e,page:1}))},disabled:!S.provider&&!S.startDate&&!S.endDate,className:"w-full",children:"Clear Filters"})]})]})}),(0,a.jsxs)(i.default,{padding:"none",children:[(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full min-w-[880px]",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5",children:[(0,a.jsx)("th",{className:"text-left p-4 text-sm font-semibold text-text-main",children:"Timestamp"}),(0,a.jsx)("th",{className:"text-left p-4 text-sm font-semibold text-text-main",children:"Model"}),(0,a.jsx)("th",{className:"text-left p-4 text-sm font-semibold text-text-main",children:"Provider"}),(0,a.jsx)("th",{className:"text-right p-4 text-sm font-semibold text-text-main",children:"Input Tokens"}),(0,a.jsx)("th",{className:"text-right p-4 text-sm font-semibold text-text-main",children:"Output Tokens"}),(0,a.jsx)("th",{className:"text-left p-4 text-sm font-semibold text-text-main",children:"Latency"}),(0,a.jsx)("th",{className:"text-center p-4 text-sm font-semibold text-text-main",children:"Action"})]})}),(0,a.jsx)("tbody",{children:n?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:"7",className:"p-8 text-center text-text-muted",children:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading..."]})})}):0===e.length?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:"7",className:"p-8 text-center text-text-muted",children:"No request details found"})}):e.map((e,t)=>(0,a.jsxs)("tr",{className:"border-b border-black/5 dark:border-white/5 last:border-b-0 hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors",children:[(0,a.jsx)("td",{className:"whitespace-nowrap p-4 text-sm text-text-main",children:new Date(e.timestamp).toLocaleString()}),(0,a.jsx)("td",{className:"max-w-[260px] truncate p-4 font-mono text-sm text-text-main",children:e.model}),(0,a.jsx)("td",{className:"max-w-[180px] truncate p-4 text-sm text-text-main",children:(0,a.jsx)("span",{className:"font-medium",children:f(e.provider,k)})}),(0,a.jsx)("td",{className:"p-4 text-sm text-text-main text-right font-mono",children:g(e.tokens).toLocaleString()}),(0,a.jsx)("td",{className:"p-4 text-sm text-text-main text-right font-mono",children:e.tokens?.completion_tokens?.toLocaleString()||0}),(0,a.jsx)("td",{className:"p-4 text-sm text-text-muted",children:(0,a.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,a.jsxs)("div",{children:["TTFT: ",(0,a.jsxs)("span",{className:"font-mono",children:[e.latency?.ttft||0,"ms"]})]}),(0,a.jsxs)("div",{children:["Total: ",(0,a.jsxs)("span",{className:"font-mono",children:[e.latency?.total||0,"ms"]})]})]})}),(0,a.jsx)("td",{className:"p-4 text-center",children:(0,a.jsx)(o.default,{variant:"outline",size:"sm",onClick:()=>{p(e),v(!0)},children:"Detail"})})]},`${e.id}-${t}`))})]})}),!n&&e.length>0&&(0,a.jsx)("div",{className:"border-t border-black/5 dark:border-white/5",children:(0,a.jsx)(x.default,{currentPage:s.page,pageSize:s.pageSize,totalItems:s.totalItems,onPageChange:e=>{l(t=>({...t,page:e}))},onPageSizeChange:e=>{l(t=>({...t,pageSize:e,page:1}))}})})]}),(0,a.jsx)(c,{isOpen:j,onClose:()=>v(!1),title:"Request Details",width:"lg",children:u&&(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"grid min-w-0 grid-cols-1 gap-4 text-sm sm:grid-cols-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"ID:"})," ",(0,a.jsx)("span",{className:"break-all font-mono text-text-main",children:u.id})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Timestamp:"})," ",(0,a.jsx)("span",{className:"text-text-main",children:new Date(u.timestamp).toLocaleString()})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Provider:"})," ",(0,a.jsx)("span",{className:"text-text-main font-medium",children:f(u.provider,k)})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Model:"})," ",(0,a.jsx)("span",{className:"text-text-main font-mono",children:u.model})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Status:"})," ",(0,a.jsx)("span",{className:(0,d.cn)("font-medium","success"===u.status?"text-green-600":"text-red-600"),children:u.status})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Latency:"})," ",(0,a.jsxs)("span",{className:"text-text-main font-mono",children:["TTFT ",u.latency?.ttft||0,"ms / Total ",u.latency?.total||0,"ms"]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Input Tokens:"})," ",(0,a.jsx)("span",{className:"text-text-main font-mono",children:g(u.tokens).toLocaleString()})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-text-muted",children:"Output Tokens:"})," ",(0,a.jsx)("span",{className:"text-text-main font-mono",children:u.tokens?.completion_tokens?.toLocaleString()||0})]})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(b,{title:"1. Client Request (Input)",defaultOpen:!0,icon:"input",children:(0,a.jsx)("pre",{className:"max-h-[300px] max-w-full overflow-auto rounded-lg border border-black/5 bg-black/5 p-3 font-mono text-xs text-text-main dark:border-white/5 dark:bg-white/5 sm:p-4",children:JSON.stringify(u.request,null,2)})}),u.providerRequest&&(0,a.jsx)(b,{title:"2. Provider Request (Translated)",icon:"translate",children:(0,a.jsx)("pre",{className:"max-h-[300px] max-w-full overflow-auto rounded-lg border border-black/5 bg-black/5 p-3 font-mono text-xs text-text-main dark:border-white/5 dark:bg-white/5 sm:p-4",children:JSON.stringify(u.providerRequest,null,2)})}),u.providerResponse&&(0,a.jsx)(b,{title:"3. Provider Response (Raw)",icon:"data_object",children:(0,a.jsx)("pre",{className:"max-h-[300px] max-w-full overflow-auto rounded-lg border border-black/5 bg-black/5 p-3 font-mono text-xs text-text-main dark:border-white/5 dark:bg-white/5 sm:p-4",children:"object"==typeof u.providerResponse?JSON.stringify(u.providerResponse,null,2):u.providerResponse})}),(0,a.jsxs)(b,{title:"4. Client Response (Final)",defaultOpen:!0,icon:"output",children:[u.response?.thinking&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)("h4",{className:"font-semibold text-text-main mb-2 flex items-center gap-2 text-xs uppercase tracking-wide opacity-70",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"psychology"}),"Thinking Process"]}),(0,a.jsx)("pre",{className:"max-h-[200px] max-w-full overflow-auto rounded-lg border border-amber-200 bg-amber-50 p-3 font-mono text-xs text-amber-900 dark:border-amber-800 dark:bg-amber-950/30 dark:text-amber-100 sm:p-4",children:u.response.thinking})]}),(0,a.jsx)("h4",{className:"font-semibold text-text-main mb-2 text-xs uppercase tracking-wide opacity-70",children:"Content"}),(0,a.jsx)("pre",{className:"max-h-[300px] max-w-full overflow-auto rounded-lg border border-black/5 bg-black/5 p-3 font-mono text-xs text-text-main dark:border-white/5 dark:bg-white/5 sm:p-4",children:u.response?.content||"[No content]"})]})]})]})})]})}let v=[{value:"today",label:"Today"},{value:"24h",label:"24h"},{value:"7d",label:"7D"},{value:"30d",label:"30D"},{value:"60d",label:"60D"}];function N(){return(0,a.jsx)(r.Suspense,{fallback:(0,a.jsx)(n.Qv,{}),children:(0,a.jsx)(w,{})})}function w(){let e=(0,l.useSearchParams)(),t=(0,l.useRouter)(),[s,i]=(0,r.useState)("today"),o=e.get("tab"),d=o&&["overview","logs","details"].includes(o)?o:"overview";return(0,a.jsxs)("div",{className:"flex min-w-0 flex-col gap-6 px-1 sm:px-0 lg:gap-7",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)(n.Iz,{options:[{value:"overview",label:"Overview"},{value:"details",label:"Details"}],value:d,onChange:s=>{if(s===d)return;let a=new URLSearchParams(e);a.set("tab",s),t.push(`/dashboard/usage?${a.toString()}`,{scroll:!1})},className:"w-full sm:w-auto"}),"overview"===d&&(0,a.jsx)(n.Iz,{options:v,value:s,onChange:i,size:"sm",className:"w-full sm:w-auto"})]}),"overview"===d&&(0,a.jsx)(r.Suspense,{fallback:(0,a.jsx)(n.Qv,{}),children:(0,a.jsx)(n.jK,{period:s,setPeriod:i,hidePeriodSelector:!0})}),"logs"===d&&(0,a.jsx)(n.gM,{}),"details"===d&&(0,a.jsx)(j,{})]})}}},e=>{e.O(0,[2574,3862,3745,9802,620,5497,8441,3794,7358],()=>e(e.s=30906)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9305],{93224:(e,s,n)=>{Promise.resolve().then(n.bind(n,96748)),Promise.resolve().then(n.bind(n,56319)),Promise.resolve().then(n.bind(n,56061)),Promise.resolve().then(n.bind(n,39835)),Promise.resolve().then(n.bind(n,92542)),Promise.resolve().then(n.bind(n,84588)),Promise.resolve().then(n.bind(n,40197)),Promise.resolve().then(n.bind(n,50382)),Promise.resolve().then(n.bind(n,21286)),Promise.resolve().then(n.bind(n,45455)),Promise.resolve().then(n.bind(n,30815)),Promise.resolve().then(n.bind(n,73579)),Promise.resolve().then(n.bind(n,92173)),Promise.resolve().then(n.bind(n,95088)),Promise.resolve().then(n.bind(n,8823)),Promise.resolve().then(n.bind(n,80752)),Promise.resolve().then(n.bind(n,23936)),Promise.resolve().then(n.bind(n,11910)),Promise.resolve().then(n.bind(n,61500)),Promise.resolve().then(n.bind(n,62899)),Promise.resolve().then(n.bind(n,94230)),Promise.resolve().then(n.bind(n,21931)),Promise.resolve().then(n.bind(n,91450)),Promise.resolve().then(n.bind(n,7648)),Promise.resolve().then(n.bind(n,25086)),Promise.resolve().then(n.bind(n,28815)),Promise.resolve().then(n.bind(n,28058)),Promise.resolve().then(n.bind(n,81127)),Promise.resolve().then(n.bind(n,72908)),Promise.resolve().then(n.bind(n,4823)),Promise.resolve().then(n.bind(n,90882)),Promise.resolve().then(n.bind(n,50378)),Promise.resolve().then(n.bind(n,51825)),Promise.resolve().then(n.bind(n,23615)),Promise.resolve().then(n.bind(n,28067)),Promise.resolve().then(n.bind(n,98)),Promise.resolve().then(n.bind(n,92622)),Promise.resolve().then(n.bind(n,21110)),Promise.resolve().then(n.bind(n,38587)),Promise.resolve().then(n.bind(n,98542)),Promise.resolve().then(n.bind(n,97677)),Promise.resolve().then(n.bind(n,4809))}},e=>{e.O(0,[2574,3862,3745,9802,620,5497,8441,3794,7358],()=>e(e.s=93224)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9305],{93224:(e,s,n)=>{Promise.resolve().then(n.bind(n,96748)),Promise.resolve().then(n.bind(n,56319)),Promise.resolve().then(n.bind(n,56061)),Promise.resolve().then(n.bind(n,39835)),Promise.resolve().then(n.bind(n,92542)),Promise.resolve().then(n.bind(n,84588)),Promise.resolve().then(n.bind(n,40197)),Promise.resolve().then(n.bind(n,50382)),Promise.resolve().then(n.bind(n,21286)),Promise.resolve().then(n.bind(n,45455)),Promise.resolve().then(n.bind(n,30815)),Promise.resolve().then(n.bind(n,73579)),Promise.resolve().then(n.bind(n,92173)),Promise.resolve().then(n.bind(n,95088)),Promise.resolve().then(n.bind(n,8823)),Promise.resolve().then(n.bind(n,80752)),Promise.resolve().then(n.bind(n,23936)),Promise.resolve().then(n.bind(n,11910)),Promise.resolve().then(n.bind(n,61500)),Promise.resolve().then(n.bind(n,62899)),Promise.resolve().then(n.bind(n,94230)),Promise.resolve().then(n.bind(n,21931)),Promise.resolve().then(n.bind(n,91450)),Promise.resolve().then(n.bind(n,7648)),Promise.resolve().then(n.bind(n,25086)),Promise.resolve().then(n.bind(n,28815)),Promise.resolve().then(n.bind(n,28058)),Promise.resolve().then(n.bind(n,81127)),Promise.resolve().then(n.bind(n,72908)),Promise.resolve().then(n.bind(n,4823)),Promise.resolve().then(n.bind(n,90882)),Promise.resolve().then(n.bind(n,50378)),Promise.resolve().then(n.bind(n,51825)),Promise.resolve().then(n.bind(n,23615)),Promise.resolve().then(n.bind(n,28067)),Promise.resolve().then(n.bind(n,98)),Promise.resolve().then(n.bind(n,92622)),Promise.resolve().then(n.bind(n,21110)),Promise.resolve().then(n.bind(n,38587)),Promise.resolve().then(n.bind(n,98542)),Promise.resolve().then(n.bind(n,97677)),Promise.resolve().then(n.bind(n,96371))}},e=>{e.O(0,[2574,3862,3745,9802,620,5497,8441,3794,7358],()=>e(e.s=93224)),_N_E=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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{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,869,907,931,948,992,997,1077,1088,1091,1110,1118,1200,1288,1337,1382,1446,1451,1512,1566,1659,1666,1674,1697,1860,1898,1907,1910,1945,1946,1949,2015,2074,2121,2154,2198,2284,2296,2366,2536,2772,2785,2795,2797,2833,2845,2919,2922,3025,3038,3078,3079,3224,3295,3397,3399,3472,3549,3562,3568,3648,3705,3883,3888,4010,4057,4061,4093,4245,4286,4422,4444,4502,4527,4612,4656,4674,4745,4761,4829,4896,4993,5018,5033,5107,5162,5177,5211,5226,5338,5460,5466,5568,5637,5685,5745,5746,5922,5965,5990,6091,6102,6107,6121,6268,6278,6319,6454,6463,6479,6529,6580,6594,6694,6724,6740,6743,6776,6819,6872,6919,6988,7046,7111,7131,7158,7208,7241,7254,7306,7311,7423,7429,7445,7473,7508,7520,7758,7777,7824,7851,7858,8018,8026,8057,8141,8165,8167,8200,8207,8246,8264,8338,8453,8489,8573,8648,8736,8791,8814,8826,8870,8879,8918,8948,8974,8975,9027,9056,9069,9088,9120,9123,9141,9199,9321,9338,9359,9461,9515,9606,9678,9709,9762,9817],{84441:()=>{}},_=>{_.O(0,[8441,3794,7358],()=>_(_.s=84441)),_N_E=_.O()}]);