zevairouter 1.1.40 → 1.1.41

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 (1187) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/cli/app/.next-cli-build/BUILD_ID +1 -1
  3. package/cli/app/.next-cli-build/app-path-routes-manifest.json +8 -6
  4. package/cli/app/.next-cli-build/build-manifest.json +2 -2
  5. package/cli/app/.next-cli-build/prerender-manifest.json +3 -3
  6. package/cli/app/.next-cli-build/routes-manifest.json +14 -0
  7. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js +1 -1
  8. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page.js.nft.json +1 -1
  9. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/automation/page_client-reference-manifest.js +1 -1
  10. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  11. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  12. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  13. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  14. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  15. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  16. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  17. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  18. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  19. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  20. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  21. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  22. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  23. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  24. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  25. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js +1 -1
  26. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page.js.nft.json +1 -1
  27. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/context/page_client-reference-manifest.js +1 -1
  28. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  29. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  30. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  31. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +10 -10
  32. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  33. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  34. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  35. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  36. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  37. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  38. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  39. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  40. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  41. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  42. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  43. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  44. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  45. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  46. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  47. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  48. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  49. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js +1 -1
  50. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page.js.nft.json +1 -1
  51. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/playground/page_client-reference-manifest.js +1 -1
  52. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  53. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  54. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  55. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  56. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  57. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  58. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  59. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  60. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  61. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  62. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  63. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  64. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
  65. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  66. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  67. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  68. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  69. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  70. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  71. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  72. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  73. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js +1 -1
  74. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page.js.nft.json +1 -1
  75. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  76. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  77. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  78. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  79. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js +1 -1
  80. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page.js.nft.json +1 -1
  81. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/terminal/page_client-reference-manifest.js +1 -1
  82. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  83. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  84. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  85. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  86. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  87. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  88. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  89. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  90. package/cli/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  91. package/cli/app/.next-cli-build/server/app/_global-error/page.js +1 -1
  92. package/cli/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  93. package/cli/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  94. package/cli/app/.next-cli-build/server/app/_global-error.html +1 -1
  95. package/cli/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  96. package/cli/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  97. package/cli/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  98. package/cli/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  99. package/cli/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  100. package/cli/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  101. package/cli/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  102. package/cli/app/.next-cli-build/server/app/_not-found.html +1 -1
  103. package/cli/app/.next-cli-build/server/app/_not-found.rsc +2 -2
  104. package/cli/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +2 -2
  105. package/cli/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  106. package/cli/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  107. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  108. package/cli/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  109. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  110. package/cli/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  111. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  112. package/cli/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  113. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  114. package/cli/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  115. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  116. package/cli/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  117. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  118. package/cli/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  119. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  120. package/cli/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  121. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
  122. package/cli/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  123. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  124. package/cli/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  125. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  126. package/cli/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  127. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js +1 -1
  128. package/cli/app/.next-cli-build/server/app/api/cache/stats/route.js.nft.json +1 -1
  129. package/cli/app/.next-cli-build/server/app/api/changelog/route.js +1 -1
  130. package/cli/app/.next-cli-build/server/app/api/changelog/route.js.nft.json +1 -1
  131. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +4 -4
  132. package/cli/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  133. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  134. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  135. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  136. package/cli/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  137. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  138. package/cli/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  139. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  140. package/cli/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  141. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js +1 -1
  142. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-gateway/accounts/route.js.nft.json +1 -1
  143. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  144. package/cli/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  145. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  146. package/cli/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  147. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  148. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  149. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  150. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  151. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +2 -2
  152. package/cli/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  153. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  154. package/cli/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  155. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  156. package/cli/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  157. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  158. package/cli/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  159. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +2 -2
  160. package/cli/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  161. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  162. package/cli/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  163. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  164. package/cli/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  165. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  166. package/cli/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
  167. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  168. package/cli/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  169. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  170. package/cli/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  171. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  172. package/cli/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  173. package/cli/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  174. package/cli/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  175. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js +1 -1
  176. package/cli/app/.next-cli-build/server/app/api/context/[id]/route.js.nft.json +1 -1
  177. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js +1 -1
  178. package/cli/app/.next-cli-build/server/app/api/context/bulk/route.js.nft.json +1 -1
  179. package/cli/app/.next-cli-build/server/app/api/context/route.js +1 -1
  180. package/cli/app/.next-cli-build/server/app/api/context/route.js.nft.json +1 -1
  181. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js +1 -1
  182. package/cli/app/.next-cli-build/server/app/api/dashboard/chat/completions/route.js.nft.json +1 -1
  183. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js +1 -1
  184. package/cli/app/.next-cli-build/server/app/api/dashboard/cli-tools/keys/route.js.nft.json +1 -1
  185. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js +1 -1
  186. package/cli/app/.next-cli-build/server/app/api/dashboard/media/[operation]/route.js.nft.json +1 -1
  187. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js +1 -1
  188. package/cli/app/.next-cli-build/server/app/api/dashboard/media/videos/[id]/route.js.nft.json +1 -1
  189. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js +1 -1
  190. package/cli/app/.next-cli-build/server/app/api/headroom/enable/route.js.nft.json +1 -1
  191. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  192. package/cli/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  193. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  194. package/cli/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  195. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  196. package/cli/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  197. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  198. package/cli/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  199. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  200. package/cli/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  201. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  202. package/cli/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  203. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js +1 -1
  204. package/cli/app/.next-cli-build/server/app/api/health/ready/route.js.nft.json +1 -1
  205. package/cli/app/.next-cli-build/server/app/api/health/route.js +1 -1
  206. package/cli/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  207. package/cli/app/.next-cli-build/server/app/api/init/route.js +1 -1
  208. package/cli/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  209. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js +1 -1
  210. package/cli/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  211. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  212. package/cli/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  213. package/cli/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  214. package/cli/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  215. package/cli/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  216. package/cli/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  217. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  218. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  219. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  220. package/cli/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  221. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  222. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  223. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  224. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  225. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  226. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  227. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  228. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  229. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  230. package/cli/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  231. package/cli/app/.next-cli-build/server/app/api/metrics/route.js +2 -2
  232. package/cli/app/.next-cli-build/server/app/api/metrics/route.js.nft.json +1 -1
  233. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  234. package/cli/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  235. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  236. package/cli/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  237. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  238. package/cli/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  239. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  240. package/cli/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  241. package/cli/app/.next-cli-build/server/app/api/models/route.js +1 -1
  242. package/cli/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  243. package/cli/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  244. package/cli/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  245. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  246. package/cli/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  247. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js +1 -1
  248. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  249. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  250. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  251. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js +1 -1
  252. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/[jobId]/route.js.nft.json +1 -1
  253. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js +1 -1
  254. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/latest/route.js.nft.json +1 -1
  255. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js +1 -1
  256. package/cli/app/.next-cli-build/server/app/api/oauth/antigravity/bulk-import/route.js.nft.json +1 -1
  257. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js +1 -1
  258. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  259. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  260. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  261. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js +1 -1
  262. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route.js.nft.json +1 -1
  263. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js +1 -1
  264. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/latest/route.js.nft.json +1 -1
  265. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js +1 -1
  266. package/cli/app/.next-cli-build/server/app/api/oauth/cloudflare-ai/bulk-import/route.js.nft.json +1 -1
  267. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js +1 -1
  268. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  269. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  270. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  271. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js +1 -1
  272. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/[jobId]/route.js.nft.json +1 -1
  273. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js +1 -1
  274. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/latest/route.js.nft.json +1 -1
  275. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js +1 -1
  276. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-import/route.js.nft.json +1 -1
  277. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js +1 -1
  278. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/bulk-token/route.js.nft.json +1 -1
  279. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js +1 -1
  280. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy/quota-cookie/route.js.nft.json +1 -1
  281. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js +1 -1
  282. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  283. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  284. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  285. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js +1 -1
  286. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route.js.nft.json +1 -1
  287. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js +1 -1
  288. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/latest/route.js.nft.json +1 -1
  289. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  290. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  291. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js +1 -1
  292. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-token/route.js.nft.json +1 -1
  293. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js +1 -1
  294. package/cli/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/quota-cookie/route.js.nft.json +1 -1
  295. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  296. package/cli/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  297. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  298. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  299. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  300. package/cli/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  301. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  302. package/cli/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  303. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js +1 -1
  304. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  305. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  306. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  307. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js +1 -1
  308. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/[jobId]/route.js.nft.json +1 -1
  309. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js +1 -1
  310. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/latest/route.js.nft.json +1 -1
  311. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  312. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
  313. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js +1 -1
  314. package/cli/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-token/route.js.nft.json +1 -1
  315. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  316. package/cli/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  317. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  318. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  319. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  320. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  321. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js +1 -1
  322. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  323. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  324. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  325. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js +1 -1
  326. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/[jobId]/route.js.nft.json +1 -1
  327. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js +1 -1
  328. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/latest/route.js.nft.json +1 -1
  329. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js +1 -1
  330. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/bulk-import/route.js.nft.json +1 -1
  331. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  332. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  333. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  334. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  335. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  336. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  337. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  338. package/cli/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  339. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js +1 -1
  340. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route.js.nft.json +1 -1
  341. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js +1 -1
  342. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route.js.nft.json +1 -1
  343. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js +1 -1
  344. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/[jobId]/route.js.nft.json +1 -1
  345. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js +1 -1
  346. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/latest/route.js.nft.json +1 -1
  347. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js +1 -1
  348. package/cli/app/.next-cli-build/server/app/api/oauth/qoder/bulk-import/route.js.nft.json +1 -1
  349. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  350. package/cli/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  351. package/cli/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  352. package/cli/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  353. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  354. package/cli/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  355. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  356. package/cli/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  357. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  358. package/cli/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  359. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  360. package/cli/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  361. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  362. package/cli/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  363. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  364. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  365. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  366. package/cli/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  367. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js +1 -1
  368. package/cli/app/.next-cli-build/server/app/api/providers/bulk-delete/route.js.nft.json +1 -1
  369. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  370. package/cli/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  371. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js +2 -2
  372. package/cli/app/.next-cli-build/server/app/api/providers/codebuddy/discover-models/route.js.nft.json +1 -1
  373. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js +1 -1
  374. package/cli/app/.next-cli-build/server/app/api/providers/flow/import/route.js.nft.json +1 -1
  375. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js +1 -0
  376. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route.js.nft.json +1 -0
  377. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/[jobId]/route_client-reference-manifest.js +1 -0
  378. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js +1 -0
  379. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route.js.nft.json +1 -0
  380. package/cli/app/.next-cli-build/server/app/api/providers/flow/login/route_client-reference-manifest.js +1 -0
  381. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  382. package/cli/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  383. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js +1 -1
  384. package/cli/app/.next-cli-build/server/app/api/providers/kiro/discover-models/route.js.nft.json +1 -1
  385. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js +1 -1
  386. package/cli/app/.next-cli-build/server/app/api/providers/kiro/models/route.js.nft.json +1 -1
  387. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js +1 -1
  388. package/cli/app/.next-cli-build/server/app/api/providers/opencode/discover-models/route.js.nft.json +1 -1
  389. package/cli/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  390. package/cli/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  391. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  392. package/cli/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  393. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  394. package/cli/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  395. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  396. package/cli/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  397. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  398. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  399. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  400. package/cli/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  401. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  402. package/cli/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  403. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  404. package/cli/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  405. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  406. package/cli/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  407. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  408. package/cli/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  409. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  410. package/cli/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  411. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  412. package/cli/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  413. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  414. package/cli/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  415. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  416. package/cli/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  417. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  418. package/cli/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  419. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  420. package/cli/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  421. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  422. package/cli/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  423. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  424. package/cli/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  425. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  426. package/cli/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  427. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  428. package/cli/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  429. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  430. package/cli/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  431. package/cli/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  432. package/cli/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  433. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  434. package/cli/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  435. package/cli/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  436. package/cli/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  437. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js +1 -1
  438. package/cli/app/.next-cli-build/server/app/api/terminal/auth/setup/route.js.nft.json +1 -1
  439. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js +1 -1
  440. package/cli/app/.next-cli-build/server/app/api/terminal/auth/status/route.js.nft.json +1 -1
  441. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js +1 -1
  442. package/cli/app/.next-cli-build/server/app/api/terminal/auth/unlock/route.js.nft.json +1 -1
  443. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js +1 -1
  444. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/input/route.js.nft.json +1 -1
  445. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js +1 -1
  446. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/resize/route.js.nft.json +1 -1
  447. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js +1 -1
  448. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/route.js.nft.json +1 -1
  449. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js +2 -2
  450. package/cli/app/.next-cli-build/server/app/api/terminal/session/[id]/stream/route.js.nft.json +1 -1
  451. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js +1 -1
  452. package/cli/app/.next-cli-build/server/app/api/terminal/session/route.js.nft.json +1 -1
  453. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  454. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  455. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  456. package/cli/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  457. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  458. package/cli/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  459. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  460. package/cli/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  461. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  462. package/cli/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  463. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  464. package/cli/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  465. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  466. package/cli/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  467. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  468. package/cli/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  469. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  470. package/cli/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  471. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  472. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  473. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  474. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  475. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  476. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  477. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  478. package/cli/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  479. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  480. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  481. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  482. package/cli/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  483. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js +1 -1
  484. package/cli/app/.next-cli-build/server/app/api/usage/aggregate/route.js.nft.json +1 -1
  485. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  486. package/cli/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  487. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  488. package/cli/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  489. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  490. package/cli/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  491. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  492. package/cli/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  493. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js +1 -1
  494. package/cli/app/.next-cli-build/server/app/api/usage/quota-stream/route.js.nft.json +1 -1
  495. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  496. package/cli/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  497. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  498. package/cli/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  499. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js +2 -2
  500. package/cli/app/.next-cli-build/server/app/api/usage/routing-stream/route.js.nft.json +1 -1
  501. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  502. package/cli/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  503. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  504. package/cli/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  505. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  506. package/cli/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  507. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  508. package/cli/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  509. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  510. package/cli/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  511. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  512. package/cli/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  513. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  514. package/cli/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  515. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  516. package/cli/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  517. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  518. package/cli/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  519. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  520. package/cli/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  521. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  522. package/cli/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  523. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  524. package/cli/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  525. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  526. package/cli/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  527. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  528. package/cli/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  529. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  530. package/cli/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  531. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  532. package/cli/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  533. package/cli/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  534. package/cli/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  535. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  536. package/cli/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  537. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js +1 -1
  538. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/content/route.js.nft.json +1 -1
  539. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  540. package/cli/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  541. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  542. package/cli/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  543. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  544. package/cli/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  545. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  546. package/cli/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  547. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  548. package/cli/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  549. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  550. package/cli/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  551. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  552. package/cli/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  553. package/cli/app/.next-cli-build/server/app/api/version/route.js +1 -1
  554. package/cli/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  555. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  556. package/cli/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  557. package/cli/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  558. package/cli/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  559. package/cli/app/.next-cli-build/server/app/callback/page.js +1 -1
  560. package/cli/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  561. package/cli/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  562. package/cli/app/.next-cli-build/server/app/callback.html +1 -1
  563. package/cli/app/.next-cli-build/server/app/callback.rsc +2 -2
  564. package/cli/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +2 -2
  565. package/cli/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  566. package/cli/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +2 -2
  567. package/cli/app/.next-cli-build/server/app/dashboard/automation.html +1 -1
  568. package/cli/app/.next-cli-build/server/app/dashboard/automation.rsc +2 -2
  569. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/!KGRhc2hib2FyZCk/dashboard/automation/__PAGE__.segment.rsc +2 -2
  570. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_full.segment.rsc +2 -2
  571. package/cli/app/.next-cli-build/server/app/dashboard/automation.segments/_tree.segment.rsc +1 -1
  572. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  573. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +2 -2
  574. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  575. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +2 -2
  576. package/cli/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  577. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  578. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +2 -2
  579. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  580. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +2 -2
  581. package/cli/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  582. package/cli/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  583. package/cli/app/.next-cli-build/server/app/dashboard/combos.rsc +2 -2
  584. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  585. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +2 -2
  586. package/cli/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  587. package/cli/app/.next-cli-build/server/app/dashboard/context.html +1 -1
  588. package/cli/app/.next-cli-build/server/app/dashboard/context.rsc +2 -2
  589. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/!KGRhc2hib2FyZCk/dashboard/context/__PAGE__.segment.rsc +2 -2
  590. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_full.segment.rsc +2 -2
  591. package/cli/app/.next-cli-build/server/app/dashboard/context.segments/_tree.segment.rsc +1 -1
  592. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  593. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.rsc +2 -2
  594. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  595. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +2 -2
  596. package/cli/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  597. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  598. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +2 -2
  599. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  600. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +2 -2
  601. package/cli/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  602. package/cli/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  603. package/cli/app/.next-cli-build/server/app/dashboard/mitm.rsc +2 -2
  604. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  605. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +2 -2
  606. package/cli/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  607. package/cli/app/.next-cli-build/server/app/dashboard/playground.html +1 -1
  608. package/cli/app/.next-cli-build/server/app/dashboard/playground.rsc +2 -2
  609. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/!KGRhc2hib2FyZCk/dashboard/playground/__PAGE__.segment.rsc +2 -2
  610. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_full.segment.rsc +2 -2
  611. package/cli/app/.next-cli-build/server/app/dashboard/playground.segments/_tree.segment.rsc +1 -1
  612. package/cli/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  613. package/cli/app/.next-cli-build/server/app/dashboard/profile.rsc +2 -2
  614. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  615. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +2 -2
  616. package/cli/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  617. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  618. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.rsc +2 -2
  619. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  620. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +2 -2
  621. package/cli/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  622. package/cli/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  623. package/cli/app/.next-cli-build/server/app/dashboard/providers.rsc +2 -2
  624. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  625. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +2 -2
  626. package/cli/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  627. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  628. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +2 -2
  629. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  630. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +2 -2
  631. package/cli/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  632. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  633. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +2 -2
  634. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +2 -2
  635. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +2 -2
  636. package/cli/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
  637. package/cli/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  638. package/cli/app/.next-cli-build/server/app/dashboard/quota.rsc +2 -2
  639. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +2 -2
  640. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +2 -2
  641. package/cli/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  642. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  643. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +2 -2
  644. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/!KGRhc2hib2FyZCk/dashboard/settings/pricing/__PAGE__.segment.rsc +2 -2
  645. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +2 -2
  646. package/cli/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  647. package/cli/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  648. package/cli/app/.next-cli-build/server/app/dashboard/skills.rsc +2 -2
  649. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  650. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +2 -2
  651. package/cli/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  652. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  653. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.rsc +2 -2
  654. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  655. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +2 -2
  656. package/cli/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
  657. package/cli/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  658. package/cli/app/.next-cli-build/server/app/dashboard/translator.rsc +2 -2
  659. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  660. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +2 -2
  661. package/cli/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  662. package/cli/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  663. package/cli/app/.next-cli-build/server/app/dashboard/usage.rsc +2 -2
  664. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  665. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +2 -2
  666. package/cli/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  667. package/cli/app/.next-cli-build/server/app/dashboard.html +1 -1
  668. package/cli/app/.next-cli-build/server/app/dashboard.rsc +2 -2
  669. package/cli/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  670. package/cli/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +2 -2
  671. package/cli/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  672. package/cli/app/.next-cli-build/server/app/index.html +1 -1
  673. package/cli/app/.next-cli-build/server/app/index.rsc +2 -2
  674. package/cli/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  675. package/cli/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +2 -2
  676. package/cli/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  677. package/cli/app/.next-cli-build/server/app/landing/page.js +1 -1
  678. package/cli/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  679. package/cli/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  680. package/cli/app/.next-cli-build/server/app/landing.html +1 -1
  681. package/cli/app/.next-cli-build/server/app/landing.rsc +2 -2
  682. package/cli/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +2 -2
  683. package/cli/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  684. package/cli/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +2 -2
  685. package/cli/app/.next-cli-build/server/app/login/page.js +1 -1
  686. package/cli/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  687. package/cli/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  688. package/cli/app/.next-cli-build/server/app/login.html +1 -1
  689. package/cli/app/.next-cli-build/server/app/login.rsc +2 -2
  690. package/cli/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +2 -2
  691. package/cli/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  692. package/cli/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  693. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  694. package/cli/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  695. package/cli/app/.next-cli-build/server/app/page.js +1 -1
  696. package/cli/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  697. package/cli/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  698. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js +2 -2
  699. package/cli/app/.next-cli-build/server/app/provider-icons/[provider]/route.js.nft.json +1 -1
  700. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js +1 -1
  701. package/cli/app/.next-cli-build/server/app/skills/[skill]/SKILL.md/route.js.nft.json +1 -1
  702. package/cli/app/.next-cli-build/server/app-paths-manifest.json +8 -6
  703. package/cli/app/.next-cli-build/server/chunks/1131.js +1 -1
  704. package/cli/app/.next-cli-build/server/chunks/1350.js +1 -1
  705. package/cli/app/.next-cli-build/server/chunks/3949.js +1 -1
  706. package/cli/app/.next-cli-build/server/chunks/4827.js +1 -1
  707. package/cli/app/.next-cli-build/server/chunks/5949.js +2 -2
  708. package/cli/app/.next-cli-build/server/chunks/7319.js +6 -6
  709. package/cli/app/.next-cli-build/server/chunks/7634.js +1 -1
  710. package/cli/app/.next-cli-build/server/chunks/8306.js +1 -1
  711. package/cli/app/.next-cli-build/server/chunks/8641.js +1 -0
  712. package/cli/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  713. package/cli/app/.next-cli-build/server/pages/404.html +1 -1
  714. package/cli/app/.next-cli-build/server/pages/500.html +1 -1
  715. package/cli/app/.next-cli-build/server/preview-props.json +3 -3
  716. package/cli/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  717. package/cli/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  718. package/cli/app/.next-cli-build/static/chunks/{620-66edeaf7464b2af3.js → 620-74b2abf95ec010bb.js} +1 -1
  719. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-0781cf8fca674763.js +58 -0
  720. package/cli/app/.next-cli-build/static/chunks/app/_global-error/{page-fa4215ad642ee222.js → page-c8a0d3b188f8e4f8.js} +1 -1
  721. package/cli/app/.next-cli-build/static/chunks/app/api/auth/login/{route-fa4215ad642ee222.js → route-c8a0d3b188f8e4f8.js} +1 -1
  722. package/cli/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-fa4215ad642ee222.js → route-c8a0d3b188f8e4f8.js} +1 -1
  723. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-fa4215ad642ee222.js → route-c8a0d3b188f8e4f8.js} +1 -1
  724. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-c8a0d3b188f8e4f8.js +1 -0
  725. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-c8a0d3b188f8e4f8.js +1 -0
  726. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-c8a0d3b188f8e4f8.js +1 -0
  727. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-c8a0d3b188f8e4f8.js +1 -0
  728. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-c8a0d3b188f8e4f8.js +1 -0
  729. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-c8a0d3b188f8e4f8.js +1 -0
  730. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-c8a0d3b188f8e4f8.js +1 -0
  731. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-c8a0d3b188f8e4f8.js +1 -0
  732. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-c8a0d3b188f8e4f8.js +1 -0
  733. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-c8a0d3b188f8e4f8.js +1 -0
  734. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-c8a0d3b188f8e4f8.js +1 -0
  735. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-c8a0d3b188f8e4f8.js +1 -0
  736. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-c8a0d3b188f8e4f8.js +1 -0
  737. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-c8a0d3b188f8e4f8.js +1 -0
  738. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-c8a0d3b188f8e4f8.js +1 -0
  739. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-c8a0d3b188f8e4f8.js +1 -0
  740. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-c8a0d3b188f8e4f8.js +1 -0
  741. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-c8a0d3b188f8e4f8.js +1 -0
  742. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-c8a0d3b188f8e4f8.js +1 -0
  743. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-c8a0d3b188f8e4f8.js +1 -0
  744. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-c8a0d3b188f8e4f8.js +1 -0
  745. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-c8a0d3b188f8e4f8.js +1 -0
  746. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-c8a0d3b188f8e4f8.js +1 -0
  747. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-c8a0d3b188f8e4f8.js +1 -0
  748. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-c8a0d3b188f8e4f8.js +1 -0
  749. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-c8a0d3b188f8e4f8.js +1 -0
  750. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-c8a0d3b188f8e4f8.js +1 -0
  751. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-c8a0d3b188f8e4f8.js +1 -0
  752. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-c8a0d3b188f8e4f8.js +1 -0
  753. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-c8a0d3b188f8e4f8.js +1 -0
  754. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-c8a0d3b188f8e4f8.js +1 -0
  755. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-c8a0d3b188f8e4f8.js +1 -0
  756. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-c8a0d3b188f8e4f8.js +1 -0
  757. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-c8a0d3b188f8e4f8.js +1 -0
  758. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-c8a0d3b188f8e4f8.js +1 -0
  759. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-c8a0d3b188f8e4f8.js +1 -0
  760. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-c8a0d3b188f8e4f8.js +1 -0
  761. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-c8a0d3b188f8e4f8.js +1 -0
  762. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-c8a0d3b188f8e4f8.js +1 -0
  763. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-c8a0d3b188f8e4f8.js +1 -0
  764. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-c8a0d3b188f8e4f8.js +1 -0
  765. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-c8a0d3b188f8e4f8.js +1 -0
  766. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-c8a0d3b188f8e4f8.js +1 -0
  767. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-c8a0d3b188f8e4f8.js +1 -0
  768. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-c8a0d3b188f8e4f8.js +1 -0
  769. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-c8a0d3b188f8e4f8.js +1 -0
  770. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-c8a0d3b188f8e4f8.js +1 -0
  771. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-c8a0d3b188f8e4f8.js +1 -0
  772. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-c8a0d3b188f8e4f8.js +1 -0
  773. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-c8a0d3b188f8e4f8.js +1 -0
  774. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-c8a0d3b188f8e4f8.js +1 -0
  775. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-c8a0d3b188f8e4f8.js +1 -0
  776. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-c8a0d3b188f8e4f8.js +1 -0
  777. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-c8a0d3b188f8e4f8.js +1 -0
  778. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-c8a0d3b188f8e4f8.js +1 -0
  779. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-c8a0d3b188f8e4f8.js +1 -0
  780. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-c8a0d3b188f8e4f8.js +1 -0
  781. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-c8a0d3b188f8e4f8.js +1 -0
  782. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-c8a0d3b188f8e4f8.js +1 -0
  783. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-c8a0d3b188f8e4f8.js +1 -0
  784. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-c8a0d3b188f8e4f8.js +1 -0
  785. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-c8a0d3b188f8e4f8.js +1 -0
  786. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-c8a0d3b188f8e4f8.js +1 -0
  787. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-c8a0d3b188f8e4f8.js +1 -0
  788. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-c8a0d3b188f8e4f8.js +1 -0
  789. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-c8a0d3b188f8e4f8.js +1 -0
  790. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-c8a0d3b188f8e4f8.js +1 -0
  791. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
  792. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
  793. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
  794. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
  795. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
  796. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
  797. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
  798. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
  799. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
  800. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
  801. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
  802. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
  803. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
  804. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
  805. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
  806. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-c8a0d3b188f8e4f8.js +1 -0
  807. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-c8a0d3b188f8e4f8.js +1 -0
  808. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
  809. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
  810. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
  811. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
  812. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
  813. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-c8a0d3b188f8e4f8.js +1 -0
  814. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-c8a0d3b188f8e4f8.js +1 -0
  815. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-c8a0d3b188f8e4f8.js +1 -0
  816. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-c8a0d3b188f8e4f8.js +1 -0
  817. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-c8a0d3b188f8e4f8.js +1 -0
  818. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-c8a0d3b188f8e4f8.js +1 -0
  819. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
  820. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
  821. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
  822. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
  823. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
  824. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-c8a0d3b188f8e4f8.js +1 -0
  825. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-c8a0d3b188f8e4f8.js +1 -0
  826. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-c8a0d3b188f8e4f8.js +1 -0
  827. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-c8a0d3b188f8e4f8.js +1 -0
  828. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
  829. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
  830. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
  831. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
  832. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
  833. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-c8a0d3b188f8e4f8.js +1 -0
  834. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-c8a0d3b188f8e4f8.js +1 -0
  835. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-c8a0d3b188f8e4f8.js +1 -0
  836. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-c8a0d3b188f8e4f8.js +1 -0
  837. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-c8a0d3b188f8e4f8.js +1 -0
  838. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-c8a0d3b188f8e4f8.js +1 -0
  839. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
  840. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-c8a0d3b188f8e4f8.js +1 -0
  841. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-c8a0d3b188f8e4f8.js +1 -0
  842. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-c8a0d3b188f8e4f8.js +1 -0
  843. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-c8a0d3b188f8e4f8.js +1 -0
  844. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-c8a0d3b188f8e4f8.js +1 -0
  845. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-c8a0d3b188f8e4f8.js +1 -0
  846. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-c8a0d3b188f8e4f8.js +1 -0
  847. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-c8a0d3b188f8e4f8.js +1 -0
  848. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-c8a0d3b188f8e4f8.js +1 -0
  849. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-c8a0d3b188f8e4f8.js +1 -0
  850. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-c8a0d3b188f8e4f8.js +1 -0
  851. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-c8a0d3b188f8e4f8.js +1 -0
  852. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-c8a0d3b188f8e4f8.js +1 -0
  853. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/import/route-c8a0d3b188f8e4f8.js +1 -0
  854. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/login/[jobId]/route-c8a0d3b188f8e4f8.js +1 -0
  855. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/login/route-c8a0d3b188f8e4f8.js +1 -0
  856. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-c8a0d3b188f8e4f8.js +1 -0
  857. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/discover-models/route-c8a0d3b188f8e4f8.js +1 -0
  858. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/models/route-c8a0d3b188f8e4f8.js +1 -0
  859. package/cli/app/.next-cli-build/static/chunks/app/api/providers/opencode/discover-models/route-c8a0d3b188f8e4f8.js +1 -0
  860. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-c8a0d3b188f8e4f8.js +1 -0
  861. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-c8a0d3b188f8e4f8.js +1 -0
  862. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-c8a0d3b188f8e4f8.js +1 -0
  863. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-c8a0d3b188f8e4f8.js +1 -0
  864. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-c8a0d3b188f8e4f8.js +1 -0
  865. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-c8a0d3b188f8e4f8.js +1 -0
  866. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-c8a0d3b188f8e4f8.js +1 -0
  867. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-c8a0d3b188f8e4f8.js +1 -0
  868. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-c8a0d3b188f8e4f8.js +1 -0
  869. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-c8a0d3b188f8e4f8.js +1 -0
  870. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-c8a0d3b188f8e4f8.js +1 -0
  871. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-c8a0d3b188f8e4f8.js +1 -0
  872. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-c8a0d3b188f8e4f8.js +1 -0
  873. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-c8a0d3b188f8e4f8.js +1 -0
  874. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-c8a0d3b188f8e4f8.js +1 -0
  875. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-c8a0d3b188f8e4f8.js +1 -0
  876. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-c8a0d3b188f8e4f8.js +1 -0
  877. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-c8a0d3b188f8e4f8.js +1 -0
  878. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-c8a0d3b188f8e4f8.js +1 -0
  879. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-c8a0d3b188f8e4f8.js +1 -0
  880. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-c8a0d3b188f8e4f8.js +1 -0
  881. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-c8a0d3b188f8e4f8.js +1 -0
  882. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-c8a0d3b188f8e4f8.js +1 -0
  883. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-c8a0d3b188f8e4f8.js +1 -0
  884. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-c8a0d3b188f8e4f8.js +1 -0
  885. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-c8a0d3b188f8e4f8.js +1 -0
  886. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-c8a0d3b188f8e4f8.js +1 -0
  887. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-c8a0d3b188f8e4f8.js +1 -0
  888. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-c8a0d3b188f8e4f8.js +1 -0
  889. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-c8a0d3b188f8e4f8.js +1 -0
  890. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-c8a0d3b188f8e4f8.js +1 -0
  891. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-c8a0d3b188f8e4f8.js +1 -0
  892. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-c8a0d3b188f8e4f8.js +1 -0
  893. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-c8a0d3b188f8e4f8.js +1 -0
  894. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-c8a0d3b188f8e4f8.js +1 -0
  895. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-c8a0d3b188f8e4f8.js +1 -0
  896. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-c8a0d3b188f8e4f8.js +1 -0
  897. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-c8a0d3b188f8e4f8.js +1 -0
  898. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-c8a0d3b188f8e4f8.js +1 -0
  899. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-c8a0d3b188f8e4f8.js +1 -0
  900. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-c8a0d3b188f8e4f8.js +1 -0
  901. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-c8a0d3b188f8e4f8.js +1 -0
  902. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-c8a0d3b188f8e4f8.js +1 -0
  903. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-c8a0d3b188f8e4f8.js +1 -0
  904. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-c8a0d3b188f8e4f8.js +1 -0
  905. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-c8a0d3b188f8e4f8.js +1 -0
  906. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-c8a0d3b188f8e4f8.js +1 -0
  907. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-c8a0d3b188f8e4f8.js +1 -0
  908. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-c8a0d3b188f8e4f8.js +1 -0
  909. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-c8a0d3b188f8e4f8.js +1 -0
  910. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-c8a0d3b188f8e4f8.js +1 -0
  911. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-c8a0d3b188f8e4f8.js +1 -0
  912. package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-c8a0d3b188f8e4f8.js +1 -0
  913. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-c8a0d3b188f8e4f8.js +1 -0
  914. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-c8a0d3b188f8e4f8.js +1 -0
  915. package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-c8a0d3b188f8e4f8.js +1 -0
  916. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-c8a0d3b188f8e4f8.js +1 -0
  917. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-c8a0d3b188f8e4f8.js +1 -0
  918. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-c8a0d3b188f8e4f8.js +1 -0
  919. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-c8a0d3b188f8e4f8.js +1 -0
  920. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-c8a0d3b188f8e4f8.js +1 -0
  921. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-c8a0d3b188f8e4f8.js +1 -0
  922. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-c8a0d3b188f8e4f8.js +1 -0
  923. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-c8a0d3b188f8e4f8.js +1 -0
  924. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-c8a0d3b188f8e4f8.js +1 -0
  925. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-c8a0d3b188f8e4f8.js +1 -0
  926. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-c8a0d3b188f8e4f8.js +1 -0
  927. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-c8a0d3b188f8e4f8.js +1 -0
  928. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-c8a0d3b188f8e4f8.js +1 -0
  929. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-c8a0d3b188f8e4f8.js +1 -0
  930. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-c8a0d3b188f8e4f8.js +1 -0
  931. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-c8a0d3b188f8e4f8.js +1 -0
  932. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-c8a0d3b188f8e4f8.js +1 -0
  933. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-c8a0d3b188f8e4f8.js +1 -0
  934. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/content/route-c8a0d3b188f8e4f8.js +1 -0
  935. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-c8a0d3b188f8e4f8.js +1 -0
  936. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-c8a0d3b188f8e4f8.js +1 -0
  937. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-c8a0d3b188f8e4f8.js +1 -0
  938. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-c8a0d3b188f8e4f8.js +1 -0
  939. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-c8a0d3b188f8e4f8.js +1 -0
  940. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-c8a0d3b188f8e4f8.js +1 -0
  941. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-c8a0d3b188f8e4f8.js +1 -0
  942. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-c8a0d3b188f8e4f8.js +1 -0
  943. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-c8a0d3b188f8e4f8.js +1 -0
  944. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-c8a0d3b188f8e4f8.js +1 -0
  945. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-c8a0d3b188f8e4f8.js +1 -0
  946. package/cli/app/.next-cli-build/static/chunks/app/page-c8a0d3b188f8e4f8.js +1 -0
  947. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-c8a0d3b188f8e4f8.js +1 -0
  948. package/cli/app/.next-cli-build/static/chunks/app/skills/[skill]/SKILL.md/route-c8a0d3b188f8e4f8.js +1 -0
  949. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-c8a0d3b188f8e4f8.js +1 -0
  950. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-c8a0d3b188f8e4f8.js +1 -0
  951. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-c8a0d3b188f8e4f8.js +1 -0
  952. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-c8a0d3b188f8e4f8.js +1 -0
  953. package/cli/app/.next-cli-build/static/nbxgUnXPLbFWuBKtbtvbh/_buildManifest.js +1 -0
  954. package/cli/app/CHANGELOG.md +5 -0
  955. package/cli/app/package.json +1 -1
  956. package/cli/package.json +1 -1
  957. package/package.json +1 -1
  958. package/cli/app/.next-cli-build/static/UOQlernibgn9uJ8E3huEs/_buildManifest.js +0 -1
  959. package/cli/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page-9e3c0c1e23790a02.js +0 -58
  960. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-fa4215ad642ee222.js +0 -1
  961. package/cli/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-fa4215ad642ee222.js +0 -1
  962. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-fa4215ad642ee222.js +0 -1
  963. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-fa4215ad642ee222.js +0 -1
  964. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-fa4215ad642ee222.js +0 -1
  965. package/cli/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-fa4215ad642ee222.js +0 -1
  966. package/cli/app/.next-cli-build/static/chunks/app/api/auth/status/route-fa4215ad642ee222.js +0 -1
  967. package/cli/app/.next-cli-build/static/chunks/app/api/cache/stats/route-fa4215ad642ee222.js +0 -1
  968. package/cli/app/.next-cli-build/static/chunks/app/api/changelog/route-fa4215ad642ee222.js +0 -1
  969. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-fa4215ad642ee222.js +0 -1
  970. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-fa4215ad642ee222.js +0 -1
  971. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-fa4215ad642ee222.js +0 -1
  972. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-fa4215ad642ee222.js +0 -1
  973. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-fa4215ad642ee222.js +0 -1
  974. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-gateway/accounts/route-fa4215ad642ee222.js +0 -1
  975. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-fa4215ad642ee222.js +0 -1
  976. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-fa4215ad642ee222.js +0 -1
  977. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-fa4215ad642ee222.js +0 -1
  978. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-fa4215ad642ee222.js +0 -1
  979. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-fa4215ad642ee222.js +0 -1
  980. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-fa4215ad642ee222.js +0 -1
  981. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-fa4215ad642ee222.js +0 -1
  982. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-fa4215ad642ee222.js +0 -1
  983. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-fa4215ad642ee222.js +0 -1
  984. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-fa4215ad642ee222.js +0 -1
  985. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-fa4215ad642ee222.js +0 -1
  986. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-fa4215ad642ee222.js +0 -1
  987. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-fa4215ad642ee222.js +0 -1
  988. package/cli/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-fa4215ad642ee222.js +0 -1
  989. package/cli/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-fa4215ad642ee222.js +0 -1
  990. package/cli/app/.next-cli-build/static/chunks/app/api/combos/route-fa4215ad642ee222.js +0 -1
  991. package/cli/app/.next-cli-build/static/chunks/app/api/context/[id]/route-fa4215ad642ee222.js +0 -1
  992. package/cli/app/.next-cli-build/static/chunks/app/api/context/bulk/route-fa4215ad642ee222.js +0 -1
  993. package/cli/app/.next-cli-build/static/chunks/app/api/context/route-fa4215ad642ee222.js +0 -1
  994. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/chat/completions/route-fa4215ad642ee222.js +0 -1
  995. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/cli-tools/keys/route-fa4215ad642ee222.js +0 -1
  996. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/[operation]/route-fa4215ad642ee222.js +0 -1
  997. package/cli/app/.next-cli-build/static/chunks/app/api/dashboard/media/videos/[id]/route-fa4215ad642ee222.js +0 -1
  998. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/enable/route-fa4215ad642ee222.js +0 -1
  999. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-fa4215ad642ee222.js +0 -1
  1000. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-fa4215ad642ee222.js +0 -1
  1001. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-fa4215ad642ee222.js +0 -1
  1002. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/start/route-fa4215ad642ee222.js +0 -1
  1003. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/status/route-fa4215ad642ee222.js +0 -1
  1004. package/cli/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-fa4215ad642ee222.js +0 -1
  1005. package/cli/app/.next-cli-build/static/chunks/app/api/health/ready/route-fa4215ad642ee222.js +0 -1
  1006. package/cli/app/.next-cli-build/static/chunks/app/api/health/route-fa4215ad642ee222.js +0 -1
  1007. package/cli/app/.next-cli-build/static/chunks/app/api/init/route-fa4215ad642ee222.js +0 -1
  1008. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/rotate/route-fa4215ad642ee222.js +0 -1
  1009. package/cli/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-fa4215ad642ee222.js +0 -1
  1010. package/cli/app/.next-cli-build/static/chunks/app/api/keys/route-fa4215ad642ee222.js +0 -1
  1011. package/cli/app/.next-cli-build/static/chunks/app/api/locale/route-fa4215ad642ee222.js +0 -1
  1012. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-fa4215ad642ee222.js +0 -1
  1013. package/cli/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-fa4215ad642ee222.js +0 -1
  1014. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-fa4215ad642ee222.js +0 -1
  1015. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-fa4215ad642ee222.js +0 -1
  1016. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-fa4215ad642ee222.js +0 -1
  1017. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-fa4215ad642ee222.js +0 -1
  1018. package/cli/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-fa4215ad642ee222.js +0 -1
  1019. package/cli/app/.next-cli-build/static/chunks/app/api/metrics/route-fa4215ad642ee222.js +0 -1
  1020. package/cli/app/.next-cli-build/static/chunks/app/api/models/alias/route-fa4215ad642ee222.js +0 -1
  1021. package/cli/app/.next-cli-build/static/chunks/app/api/models/availability/route-fa4215ad642ee222.js +0 -1
  1022. package/cli/app/.next-cli-build/static/chunks/app/api/models/custom/route-fa4215ad642ee222.js +0 -1
  1023. package/cli/app/.next-cli-build/static/chunks/app/api/models/disabled/route-fa4215ad642ee222.js +0 -1
  1024. package/cli/app/.next-cli-build/static/chunks/app/api/models/route-fa4215ad642ee222.js +0 -1
  1025. package/cli/app/.next-cli-build/static/chunks/app/api/models/test/route-fa4215ad642ee222.js +0 -1
  1026. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-fa4215ad642ee222.js +0 -1
  1027. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
  1028. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
  1029. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
  1030. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
  1031. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/antigravity/bulk-import/route-fa4215ad642ee222.js +0 -1
  1032. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
  1033. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
  1034. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
  1035. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
  1036. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cloudflare-ai/bulk-import/route-fa4215ad642ee222.js +0 -1
  1037. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
  1038. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
  1039. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
  1040. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
  1041. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-import/route-fa4215ad642ee222.js +0 -1
  1042. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/bulk-token/route-fa4215ad642ee222.js +0 -1
  1043. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy/quota-cookie/route-fa4215ad642ee222.js +0 -1
  1044. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
  1045. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
  1046. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
  1047. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
  1048. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-fa4215ad642ee222.js +0 -1
  1049. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-token/route-fa4215ad642ee222.js +0 -1
  1050. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/quota-cookie/route-fa4215ad642ee222.js +0 -1
  1051. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-fa4215ad642ee222.js +0 -1
  1052. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-fa4215ad642ee222.js +0 -1
  1053. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-fa4215ad642ee222.js +0 -1
  1054. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-fa4215ad642ee222.js +0 -1
  1055. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
  1056. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
  1057. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
  1058. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
  1059. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-fa4215ad642ee222.js +0 -1
  1060. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-token/route-fa4215ad642ee222.js +0 -1
  1061. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-fa4215ad642ee222.js +0 -1
  1062. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-fa4215ad642ee222.js +0 -1
  1063. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-fa4215ad642ee222.js +0 -1
  1064. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
  1065. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
  1066. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
  1067. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
  1068. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/bulk-import/route-fa4215ad642ee222.js +0 -1
  1069. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-fa4215ad642ee222.js +0 -1
  1070. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-fa4215ad642ee222.js +0 -1
  1071. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-fa4215ad642ee222.js +0 -1
  1072. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-fa4215ad642ee222.js +0 -1
  1073. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/cancel/route-fa4215ad642ee222.js +0 -1
  1074. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/manual/[workerId]/route-fa4215ad642ee222.js +0 -1
  1075. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/[jobId]/route-fa4215ad642ee222.js +0 -1
  1076. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/latest/route-fa4215ad642ee222.js +0 -1
  1077. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/qoder/bulk-import/route-fa4215ad642ee222.js +0 -1
  1078. package/cli/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-fa4215ad642ee222.js +0 -1
  1079. package/cli/app/.next-cli-build/static/chunks/app/api/pricing/route-fa4215ad642ee222.js +0 -1
  1080. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-fa4215ad642ee222.js +0 -1
  1081. package/cli/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-fa4215ad642ee222.js +0 -1
  1082. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-fa4215ad642ee222.js +0 -1
  1083. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-fa4215ad642ee222.js +0 -1
  1084. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-fa4215ad642ee222.js +0 -1
  1085. package/cli/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-fa4215ad642ee222.js +0 -1
  1086. package/cli/app/.next-cli-build/static/chunks/app/api/providers/bulk-delete/route-fa4215ad642ee222.js +0 -1
  1087. package/cli/app/.next-cli-build/static/chunks/app/api/providers/client/route-fa4215ad642ee222.js +0 -1
  1088. package/cli/app/.next-cli-build/static/chunks/app/api/providers/codebuddy/discover-models/route-fa4215ad642ee222.js +0 -1
  1089. package/cli/app/.next-cli-build/static/chunks/app/api/providers/flow/import/route-fa4215ad642ee222.js +0 -1
  1090. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-fa4215ad642ee222.js +0 -1
  1091. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/discover-models/route-fa4215ad642ee222.js +0 -1
  1092. package/cli/app/.next-cli-build/static/chunks/app/api/providers/kiro/models/route-fa4215ad642ee222.js +0 -1
  1093. package/cli/app/.next-cli-build/static/chunks/app/api/providers/opencode/discover-models/route-fa4215ad642ee222.js +0 -1
  1094. package/cli/app/.next-cli-build/static/chunks/app/api/providers/route-fa4215ad642ee222.js +0 -1
  1095. package/cli/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-fa4215ad642ee222.js +0 -1
  1096. package/cli/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-fa4215ad642ee222.js +0 -1
  1097. package/cli/app/.next-cli-build/static/chunks/app/api/providers/validate/route-fa4215ad642ee222.js +0 -1
  1098. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-fa4215ad642ee222.js +0 -1
  1099. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-fa4215ad642ee222.js +0 -1
  1100. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-fa4215ad642ee222.js +0 -1
  1101. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-fa4215ad642ee222.js +0 -1
  1102. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-fa4215ad642ee222.js +0 -1
  1103. package/cli/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-fa4215ad642ee222.js +0 -1
  1104. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-fa4215ad642ee222.js +0 -1
  1105. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-fa4215ad642ee222.js +0 -1
  1106. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-fa4215ad642ee222.js +0 -1
  1107. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-fa4215ad642ee222.js +0 -1
  1108. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-fa4215ad642ee222.js +0 -1
  1109. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-fa4215ad642ee222.js +0 -1
  1110. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-fa4215ad642ee222.js +0 -1
  1111. package/cli/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-fa4215ad642ee222.js +0 -1
  1112. package/cli/app/.next-cli-build/static/chunks/app/api/settings/database/route-fa4215ad642ee222.js +0 -1
  1113. package/cli/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-fa4215ad642ee222.js +0 -1
  1114. package/cli/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-fa4215ad642ee222.js +0 -1
  1115. package/cli/app/.next-cli-build/static/chunks/app/api/settings/route-fa4215ad642ee222.js +0 -1
  1116. package/cli/app/.next-cli-build/static/chunks/app/api/shutdown/route-fa4215ad642ee222.js +0 -1
  1117. package/cli/app/.next-cli-build/static/chunks/app/api/tags/route-fa4215ad642ee222.js +0 -1
  1118. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/setup/route-fa4215ad642ee222.js +0 -1
  1119. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/status/route-fa4215ad642ee222.js +0 -1
  1120. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/auth/unlock/route-fa4215ad642ee222.js +0 -1
  1121. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/input/route-fa4215ad642ee222.js +0 -1
  1122. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/resize/route-fa4215ad642ee222.js +0 -1
  1123. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/route-fa4215ad642ee222.js +0 -1
  1124. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/[id]/stream/route-fa4215ad642ee222.js +0 -1
  1125. package/cli/app/.next-cli-build/static/chunks/app/api/terminal/session/route-fa4215ad642ee222.js +0 -1
  1126. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-fa4215ad642ee222.js +0 -1
  1127. package/cli/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-fa4215ad642ee222.js +0 -1
  1128. package/cli/app/.next-cli-build/static/chunks/app/api/translator/load/route-fa4215ad642ee222.js +0 -1
  1129. package/cli/app/.next-cli-build/static/chunks/app/api/translator/save/route-fa4215ad642ee222.js +0 -1
  1130. package/cli/app/.next-cli-build/static/chunks/app/api/translator/send/route-fa4215ad642ee222.js +0 -1
  1131. package/cli/app/.next-cli-build/static/chunks/app/api/translator/translate/route-fa4215ad642ee222.js +0 -1
  1132. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-fa4215ad642ee222.js +0 -1
  1133. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-fa4215ad642ee222.js +0 -1
  1134. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-fa4215ad642ee222.js +0 -1
  1135. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-fa4215ad642ee222.js +0 -1
  1136. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-fa4215ad642ee222.js +0 -1
  1137. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-fa4215ad642ee222.js +0 -1
  1138. package/cli/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-fa4215ad642ee222.js +0 -1
  1139. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-fa4215ad642ee222.js +0 -1
  1140. package/cli/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-fa4215ad642ee222.js +0 -1
  1141. package/cli/app/.next-cli-build/static/chunks/app/api/usage/aggregate/route-fa4215ad642ee222.js +0 -1
  1142. package/cli/app/.next-cli-build/static/chunks/app/api/usage/chart/route-fa4215ad642ee222.js +0 -1
  1143. package/cli/app/.next-cli-build/static/chunks/app/api/usage/history/route-fa4215ad642ee222.js +0 -1
  1144. package/cli/app/.next-cli-build/static/chunks/app/api/usage/logs/route-fa4215ad642ee222.js +0 -1
  1145. package/cli/app/.next-cli-build/static/chunks/app/api/usage/providers/route-fa4215ad642ee222.js +0 -1
  1146. package/cli/app/.next-cli-build/static/chunks/app/api/usage/quota-stream/route-fa4215ad642ee222.js +0 -1
  1147. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-fa4215ad642ee222.js +0 -1
  1148. package/cli/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-fa4215ad642ee222.js +0 -1
  1149. package/cli/app/.next-cli-build/static/chunks/app/api/usage/routing-stream/route-fa4215ad642ee222.js +0 -1
  1150. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stats/route-fa4215ad642ee222.js +0 -1
  1151. package/cli/app/.next-cli-build/static/chunks/app/api/usage/stream/route-fa4215ad642ee222.js +0 -1
  1152. package/cli/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-fa4215ad642ee222.js +0 -1
  1153. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-fa4215ad642ee222.js +0 -1
  1154. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-fa4215ad642ee222.js +0 -1
  1155. package/cli/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-fa4215ad642ee222.js +0 -1
  1156. package/cli/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-fa4215ad642ee222.js +0 -1
  1157. package/cli/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-fa4215ad642ee222.js +0 -1
  1158. package/cli/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-fa4215ad642ee222.js +0 -1
  1159. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-fa4215ad642ee222.js +0 -1
  1160. package/cli/app/.next-cli-build/static/chunks/app/api/v1/messages/route-fa4215ad642ee222.js +0 -1
  1161. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-fa4215ad642ee222.js +0 -1
  1162. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-fa4215ad642ee222.js +0 -1
  1163. package/cli/app/.next-cli-build/static/chunks/app/api/v1/models/route-fa4215ad642ee222.js +0 -1
  1164. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-fa4215ad642ee222.js +0 -1
  1165. package/cli/app/.next-cli-build/static/chunks/app/api/v1/responses/route-fa4215ad642ee222.js +0 -1
  1166. package/cli/app/.next-cli-build/static/chunks/app/api/v1/route-fa4215ad642ee222.js +0 -1
  1167. package/cli/app/.next-cli-build/static/chunks/app/api/v1/search/route-fa4215ad642ee222.js +0 -1
  1168. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/content/route-fa4215ad642ee222.js +0 -1
  1169. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-fa4215ad642ee222.js +0 -1
  1170. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-fa4215ad642ee222.js +0 -1
  1171. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-fa4215ad642ee222.js +0 -1
  1172. package/cli/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-fa4215ad642ee222.js +0 -1
  1173. package/cli/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-fa4215ad642ee222.js +0 -1
  1174. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-fa4215ad642ee222.js +0 -1
  1175. package/cli/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-fa4215ad642ee222.js +0 -1
  1176. package/cli/app/.next-cli-build/static/chunks/app/api/version/route-fa4215ad642ee222.js +0 -1
  1177. package/cli/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-fa4215ad642ee222.js +0 -1
  1178. package/cli/app/.next-cli-build/static/chunks/app/api/version/update/route-fa4215ad642ee222.js +0 -1
  1179. package/cli/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-fa4215ad642ee222.js +0 -1
  1180. package/cli/app/.next-cli-build/static/chunks/app/page-fa4215ad642ee222.js +0 -1
  1181. package/cli/app/.next-cli-build/static/chunks/app/provider-icons/[provider]/route-fa4215ad642ee222.js +0 -1
  1182. package/cli/app/.next-cli-build/static/chunks/app/skills/[skill]/SKILL.md/route-fa4215ad642ee222.js +0 -1
  1183. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-fa4215ad642ee222.js +0 -1
  1184. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-fa4215ad642ee222.js +0 -1
  1185. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-fa4215ad642ee222.js +0 -1
  1186. package/cli/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-fa4215ad642ee222.js +0 -1
  1187. /package/cli/app/.next-cli-build/static/{UOQlernibgn9uJ8E3huEs → nbxgUnXPLbFWuBKtbtvbh}/_ssgManifest.js +0 -0
@@ -1,9 +1,9 @@
1
- (()=>{var a={};a.id=182,a.ids=[182],a.modules={3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},25049:(a,b,c)=>{"use strict";c.d(b,{c:()=>e});var d=c(67484);function e(a={}){let[b,c]=(0,d.useState)(null);return JSON.stringify(Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).sort(([a],[b])=>a.localeCompare(b))),b}c(74875)},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},55511:a=>{"use strict";a.exports=require("crypto")},57457:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>y,handler:()=>A,routeModule:()=>z});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,32059))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),w={children:["",{children:["(dashboard)",{children:["dashboard",{children:["media-providers",{children:["[kind]",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,69296))),"/zevairouter-build/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js"]}]},{"global-error":[v,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["combo","web"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/zevairouter-build/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/zevairouter-build/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,x=(0,e.H)({tree:w,page:"/(dashboard)/dashboard/media-providers/[kind]/[id]/page",pathname:"/dashboard/media-providers/[kind]/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),y=x.__next_app__,z=x.routeModule,A=x.handler},57923:(a,b,c)=>{Promise.resolve().then(c.bind(c,90900))},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},69296:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js","default")},73024:a=>{"use strict";a.exports=require("node:fs")},73661:(a,b,c)=>{"use strict";c.d(b,{O:()=>e,x:()=>f});let d=Object.freeze({"/v1/embeddings":"embeddings","/v1/images/generations":"images","/v1/audio/speech":"speech","/v1/audio/transcriptions":"transcriptions","/v1/search":"search","/v1/web/fetch":"fetch","/v1/videos/generations":"videos"});function e(a){if("string"!=typeof a)return null;let b=a.indexOf("?"),c=-1===b?a:a.slice(0,b),e=-1===b?"":a.slice(b),f=d[c];return f?`/api/dashboard/media/${f}${e}`:null}function f(a){return"string"==typeof a&&a.trim()?`/api/dashboard/media/videos/${encodeURIComponent(a.trim())}`:null}},74875:(a,b,c)=>{"use strict";c.d(b,{BU:()=>l,G9:()=>h,d4:()=>j,gJ:()=>d,i2:()=>k});let d=[{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"]}],e={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}},f={policy_suspended:"banned",account_validation_required:"auth_error",credential_rejected:"auth_error",reauth_required:"auth_error",authentication:"auth_error",entitlement_or_quota:"quota_exhausted",rate_limited:"rate_limited",permission_denied:"auth_error",upstream_transient:"connection_error"};function g(a){if(!a)return"";if("string"==typeof a)return a.toLowerCase();try{return JSON.stringify(a).toLowerCase()}catch{return String(a).toLowerCase()}}function h(a={},b=Date.now()){let c=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>new Date(a).getTime()).filter(a=>Number.isFinite(a)&&a>b);return c.length>0?new Date(Math.min(...c)).toISOString():null}function i(a,b=""){let c=e[a]||e.unknown;return{key:a,...c,reason:b}}function j(a={}){var b;let c=(b=a).quarantinedAt?i(f[g(b.failureClass)]||"unknown",b.quarantineReason||b.lastError||"Connection is quarantined"):null;if(c)return c;if(!1===a.isActive)return i("disabled","Connection is disabled");if(function(a={}){return null!==h(a)}(a))return i("cooldown","Model cooldown is active");if(function(a){if(!a)return!1;let b=new Date(a).getTime();return Number.isFinite(b)&&b>Date.now()}(a.rateLimitedUntil))return i("rate_limited","Rate limit cooldown is active");let d=g(a.testStatus||a.status),e=g(a.lastErrorType||a.errorType),k=g(a.errorCode||a.statusCode),l=g(a.lastError||a.error),m=`${d} ${e} ${k} ${l}`.trim();return!m||["active","success","ok"].includes(d)?i("active",""):m.includes("ban")||m.includes("suspend")||m.includes("restricted")?i("banned",a.lastError||"Account appears restricted"):m.includes("exhaust")||m.includes("quota exceeded")||m.includes("insufficient_quota")||m.includes("payment required")||"402"===k?i("quota_exhausted",a.lastError||"Quota exhausted"):e.includes("rate_limited")||m.includes("rate limit")||m.includes("too many requests")||"429"===k?i("rate_limited",a.lastError||"Rate limited"):e.includes("auth")||e.includes("token")||m.includes("unauthorized")||m.includes("invalid api key")||m.includes("token invalid")||m.includes("token expired")||m.includes("revoked")||"401"===k||"403"===k?i("auth_error",a.lastError||"Authentication failed"):e.includes("network")||m.includes("network")||m.includes("timeout")||m.includes("fetch failed")||m.includes("econn")||m.includes("dns")||m.includes("proxy")?i("connection_error",a.lastError||"Connection failed"):["error","expired","unavailable","failed"].includes(d)?i("connection_error",a.lastError||a.testStatus||"Connection failed"):i("unknown",a.lastError||a.testStatus||"")}function k(a,b){if(!b||"all"===b)return!0;let c=d.find(a=>a.id===b);return!c||c.keys.includes(j(a).key)}function l(a){return a?.severity==="success"?"success":a?.severity==="error"?"error":"default"}},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},81899:(a,b,c)=>{Promise.resolve().then(c.bind(c,69296))},87550:a=>{"use strict";a.exports=require("better-sqlite3")},90900:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>W});var d=c(48249),e=c(19099),f=c(2116),g=c.n(f),h=c(67484),i=c(50412),j=c(72738),k=c(96919),l=c(91431),m=c(50377),n=c(49885),o=c.n(n),p=c(25049),q=c(39888),r=c(42964);let s=()=>()=>{},t=()=>window.location.hostname;function u({value:a,copied:b,onCopy:c,id:e}){return(0,d.jsxs)("div",{className:"flex items-start gap-2 rounded-lg bg-sidebar px-3 py-2",children:[(0,d.jsx)("code",{className:"min-w-0 flex-1 whitespace-pre-wrap break-all text-xs font-mono text-text-main",children:a}),(0,d.jsxs)("button",{type:"button",onClick:()=>c(a,e),className:"inline-flex shrink-0 items-center gap-1 rounded-md bg-primary px-2 py-1 text-[11px] font-medium text-white hover:bg-primary/90","aria-label":`Copy: ${a}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:b===e?"check":"content_copy"}),b===e?"Copied":"Copy"]})]})}function v({n:a,title:b,children:c}){return(0,d.jsxs)("li",{className:"flex gap-3",children:[(0,d.jsx)("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:a}),(0,d.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-text-main",children:b}),c]})]})}function w({n:a,onImport:b}){return(0,d.jsxs)(v,{n:a,title:"Import the account here",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Click ",(0,d.jsx)("strong",{children:"Import local profiles"}),", keep Daemon URL ",(0,d.jsx)("code",{children:"http://127.0.0.1:8077/mcp"}),", paste the daemon token, then Import. Every logged-in profile becomes one connection; importing again only updates them."]}),(0,d.jsxs)("button",{type:"button",onClick:b,className:"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1 text-xs font-medium text-text-main hover:border-primary hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Import local profiles"]})]})}function x({hasConnections:a,onImport:b}){let c=(0,h.useSyncExternalStore)(s,t,()=>""),e=!(!c||"localhost"===c||"127.0.0.1"===c||"::1"===c),[f,g]=(0,h.useState)(null),[j,k]=(0,h.useState)(!a),{copied:l,copy:n}=(0,m.C)(2e3),o=f||(e?"vps":"local"),p=e?c:"YOUR-VPS-IP",q="akun1";return(0,d.jsxs)(i.Zp,{padding:"md",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>k(!j),className:"flex w-full items-center justify-between gap-3 text-left","aria-expanded":j,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px] text-primary",children:"person_add"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"How to add a Google account"}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Flow has no API key. Each Google account is signed in once with gflow on the machine that runs it, then imported here."})]})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px] text-text-muted",children:j?"expand_less":"expand_more"})]}),j&&(0,d.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,d.jsx)("div",{className:"flex flex-wrap gap-2",role:"tablist",children:[["local","Router on this computer (Windows / macOS)"],["vps","Router on a VPS (Linux, no screen)"]].map(([a,b])=>(0,d.jsx)("button",{type:"button",role:"tab","aria-selected":o===a,onClick:()=>g(a),className:`rounded-md px-3 py-1.5 text-xs font-medium ${o===a?"bg-primary text-white":"border border-border text-text-muted hover:text-text-main"}`,children:b},a))}),"local"===o?(0,d.jsxs)("ol",{className:"space-y-4",children:[(0,d.jsxs)(v,{n:1,title:"Install gflow and Google Chrome (once)",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Install Google Chrome, then install uv and gflow-cli. Windows: run in PowerShell, then reopen PowerShell."}),(0,d.jsx)(u,{id:"l-uv-win",copied:l,onCopy:n,value:'powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"'}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"macOS / Linux:"}),(0,d.jsx)(u,{id:"l-uv-unix",copied:l,onCopy:n,value:"curl -LsSf https://astral.sh/uv/install.sh | sh"}),(0,d.jsx)(u,{id:"l-gflow",copied:l,onCopy:n,value:'uv tool install "gflow-cli>=0.88,<0.90"'})]}),(0,d.jsxs)(v,{n:2,title:"Sign in a Google account (repeat per account)",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Chrome opens. Sign in until the Flow editor appears; Chrome then closes by itself. Use a different profile name for every account."}),(0,d.jsx)(u,{id:"l-login",copied:l,onCopy:n,value:`gflow auth login --profile ${q} --browser chrome`})]}),(0,d.jsxs)(v,{n:3,title:"Start the gflow daemon (keep this window open)",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pick any secret token; you paste the same token into Import below. Windows PowerShell:"}),(0,d.jsx)(u,{id:"l-serve-win",copied:l,onCopy:n,value:'& "$(uv tool dir)\\gflow-cli\\Scripts\\python.exe" "$(npm root -g)\\zevairouter\\scripts\\gflow-reply-capture.py"; $env:GFLOW_DAEMON_TOKEN = "choose-a-secret-token"; gflow serve --port 8077'}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"macOS / Linux:"}),(0,d.jsx)(u,{id:"l-serve-unix",copied:l,onCopy:n,value:'"$(uv tool dir)/gflow-cli/bin/python" "$(npm root -g)/zevairouter/scripts/gflow-reply-capture.py" && GFLOW_DAEMON_TOKEN=choose-a-secret-token gflow serve --port 8077'})]}),(0,d.jsx)(w,{n:4,onImport:b})]}):(0,d.jsxs)("ol",{className:"space-y-4",children:[(0,d.jsxs)(v,{n:1,title:"Prepare the VPS for Flow (once, as root)",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Installs Chrome, Xvfb, gflow and its services, and prints the daemon token. Safe to run again; it keeps the token and accounts."}),(0,d.jsx)(u,{id:"v-setup",copied:l,onCopy:n,value:'sudo bash "$(npm root -g)/zevairouter/scripts/flow-vps-setup.sh"'})]}),(0,d.jsxs)(v,{n:2,title:"Sign in a Google account (repeat per account)",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"From your computer (Windows PowerShell or macOS Terminal). It prints a VNC password and the next two steps."}),(0,d.jsx)(u,{id:"v-login",copied:l,onCopy:n,value:`ssh root@${p} flow-login ${q}`}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"In a second terminal, open the tunnel and leave it open:"}),(0,d.jsx)(u,{id:"v-tunnel",copied:l,onCopy:n,value:`ssh -L 5998:127.0.0.1:5998 root@${p}`}),(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Open a VNC viewer at ",(0,d.jsx)("code",{children:"127.0.0.1:5998"})," with that password: on macOS, Finder → Go → Connect to Server → ",(0,d.jsx)("code",{children:"vnc://127.0.0.1:5998"}),"; on Windows, TigerVNC or RealVNC Viewer. Sign in until the Flow editor appears; Chrome closes by itself and VNC shuts down."]})]}),(0,d.jsx)(v,{n:3,title:"Get the daemon token",children:(0,d.jsx)(u,{id:"v-token",copied:l,onCopy:n,value:`ssh root@${p} cat /home/flow/.gflow-agent/token`})}),(0,d.jsx)(w,{n:4,onImport:b})]}),(0,d.jsxs)("div",{className:"rounded-lg border border-border-subtle bg-surface px-3 py-2 text-xs text-text-muted space-y-1",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Several accounts:"})," the account with the highest priority is used first; when its credits run out the next one takes over automatically."]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Videos of 20–60 s:"})," on flow.google.com, upload one image you own with that account and accept Google's image-rights dialog, then edit the connection and enable ",(0,d.jsx)("em",{children:"I2V upload consent confirmed"}),"."]})]})]})]})}function y({until:a}){let[b,c]=(0,h.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function z({connection:a,proxyPools:b,isOAuth:c,isFirst:e,isLast:f,onMoveUp:g,onMoveDown:j,onToggleActive:k,onUpdateProxy:l,onEdit:m,onDelete:n}){let[o,q]=(0,h.useState)(!1),[r,s]=(0,h.useState)(!1),t=(0,h.useRef)(null),u=new Map((b||[]).map(a=>[a.id,a])),v=a.providerSpecificData?.proxyPoolId||null,w=v?u.get(v):null,x=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,A=!!v||x,B=w?`Pool: ${w.name}`:v?`Pool: ${v} (inactive/missing)`:x?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",C="",D=w?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;if(D)try{let a=new URL(D);C=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{C=D}let E=w?.noProxy||a.providerSpecificData?.connectionNoProxy||"",F=w?.isActive===!0?"success":v||x?"error":"default",G=(0,p.c)(a),H=null!==G,I="unavailable"!==a.testStatus||H?a.testStatus:"active",J=c?a.name||a.email||a.displayName||"OAuth Account":a.name,K=async a=>{s(!0);try{await l("__none__"===a?null:a)}finally{s(!1),q(!1)}};return(0,d.jsxs)("div",{className:`group flex flex-col gap-3 p-2 rounded-lg sm:flex-row sm:items-center sm:justify-between hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex w-full min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)("button",{onClick:g,disabled:e,className:`p-0.5 rounded ${e?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:j,disabled:f,className:`p-0.5 rounded ${f?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",children:c?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:J}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-1",children:[(0,d.jsx)(i.Ex,{variant:!1===a.isActive?"default":"active"===I||"success"===I?"success":"error"===I||"expired"===I||"unavailable"===I?"error":"default",size:"sm",dot:!0,children:!1===a.isActive?"disabled":I||"Unknown"}),A&&(0,d.jsx)(i.Ex,{variant:F,size:"sm",children:"Proxy"}),H&&!1!==a.isActive&&(0,d.jsx)(y,{until:G}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"text-xs text-red-500 truncate max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]})]}),A&&(0,d.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-[11px] text-text-muted truncate max-w-[420px]",title:B,children:B}),C&&(0,d.jsx)("code",{className:"text-[10px] font-mono bg-black/5 dark:bg-white/5 px-1 py-0.5 rounded text-text-muted",children:C}),E&&(0,d.jsxs)("span",{className:"text-[11px] text-text-muted truncate max-w-[320px]",title:E,children:["no_proxy: ",E]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(b||[]).length>0&&(0,d.jsxs)("div",{className:"relative",ref:t,children:[(0,d.jsxs)("button",{onClick:()=>q(a=>!a),className:`flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 transition-colors ${A?"text-primary":"text-text-muted hover:text-primary"}`,disabled:r,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:r?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),o&&(0,d.jsxs)("div",{className:"absolute right-0 top-full mt-1 z-50 bg-bg border border-border rounded-lg shadow-lg py-1 min-w-[160px]",children:[(0,d.jsx)("button",{onClick:()=>K("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!v?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>K(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${v===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:n,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-red-500/10 text-red-500",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(i.lM,{size:"sm",checked:a.isActive??!0,onChange:k,title:a.isActive??!0?"Disable":"Enable"})]})]})}function A({isOpen:a,provider:b,providerName:c,proxyPools:e,onSave:f,onClose:g}){let j="__none__",k="flow"===b,[l,m]=(0,h.useState)({name:"",apiKey:"",priority:1,proxyPoolId:j,flowProfile:"",flowBaseUrl:"http://127.0.0.1:8077/mcp",flowI2vReady:!1}),[n,o]=(0,h.useState)(!1),[p,q]=(0,h.useState)(null),[r,s]=(0,h.useState)(!1),t=k?{profile:l.flowProfile.trim(),baseUrl:l.flowBaseUrl.trim(),i2vReady:l.flowI2vReady}:void 0,u=async()=>{o(!0);try{let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:l.apiKey,providerSpecificData:t})}),c=await a.json();q(c.valid?"success":"failed")}catch{q("failed")}finally{o(!1)}},v=async()=>{if(b&&l.apiKey&&(!k||l.flowProfile.trim())){s(!0);try{let a=!1;try{o(!0),q(null);let c=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:l.apiKey,providerSpecificData:t})});a=!!(await c.json()).valid,q(a?"success":"failed")}catch{q("failed")}finally{o(!1)}await f({name:l.name,apiKey:l.apiKey,priority:l.priority,proxyPoolId:k||l.proxyPoolId===j?null:l.proxyPoolId,testStatus:a?"active":"unknown",providerSpecificData:t})}finally{s(!1)}}};return b?(0,d.jsx)(i.aF,{isOpen:a,title:k?"Add Google Flow Account":`Add ${c||b} API Key`,onClose:g,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:k?"Account name":"Name"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:l.name,onChange:a=>m({...l,name:a.target.value}),placeholder:k?"Google account email":"Production Key"})]}),k&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"gflow profile"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono",value:l.flowProfile,onChange:a=>m({...l,flowProfile:a.target.value}),placeholder:"from: gflow auth list"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Daemon URL"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono",value:l.flowBaseUrl,onChange:a=>m({...l,flowBaseUrl:a.target.value})})]}),(0,d.jsxs)("label",{className:"flex items-start gap-2 text-sm text-text-main",children:[(0,d.jsx)("input",{type:"checkbox",checked:l.flowI2vReady,onChange:a=>m({...l,flowI2vReady:a.target.checked}),className:"mt-1"}),(0,d.jsxs)("span",{children:["I2V upload consent confirmed ",(0,d.jsx)("span",{className:"block text-xs text-text-muted",children:"Required for 20–60s videos. Enable after accepting Google's image-rights dialog once for this profile."})]})]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:k?"Daemon token":"API Key"}),(0,d.jsx)("input",{type:"password",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:l.apiKey,onChange:a=>m({...l,apiKey:a.target.value})})]}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(i.$n,{onClick:u,disabled:!l.apiKey||k&&!l.flowProfile.trim()||n||r,variant:"secondary",children:n?"Checking...":"Check"})})]}),p&&(0,d.jsx)(i.Ex,{variant:"success"===p?"success":"error",children:"success"===p?"Valid":"Invalid"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Priority"}),(0,d.jsx)("input",{type:"number",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:l.priority,onChange:a=>m({...l,priority:Number.parseInt(a.target.value)||1})})]}),!k&&(0,d.jsx)(i.l6,{label:"Proxy Pool",value:l.proxyPoolId,onChange:a=>m({...l,proxyPoolId:a.target.value}),options:[{value:j,label:"None"},...(e||[]).map(a=>({value:a.id,label:a.name}))]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:v,fullWidth:!0,disabled:!l.name||!l.apiKey||k&&!l.flowProfile.trim()||r,children:r?"Saving...":"Save"}),(0,d.jsx)(i.$n,{onClick:g,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function B({isOpen:a,onImported:b,onClose:c}){let[e,f]=(0,h.useState)(""),[g,j]=(0,h.useState)("http://127.0.0.1:8077/mcp"),[k,l]=(0,h.useState)(!1),[m,n]=(0,h.useState)(!1),[o,p]=(0,h.useState)(null),[q,r]=(0,h.useState)(""),s=async()=>{if(e.trim()){n(!0),r(""),p(null);try{let a=await fetch("/api/providers/flow/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({daemonToken:e,baseUrl:g,i2vReady:k})}),c=await a.json();if(!a.ok)throw Error(c.error||"Flow profile import failed");p(c),f(""),await b()}catch(a){r(a?.message||"Flow profile import failed")}finally{n(!1)}}};return a?(0,d.jsx)(i.aF,{isOpen:!0,title:"Import local gflow profiles",onClose:c,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Imports every account signed in with ",(0,d.jsx)("code",{children:"gflow auth login"})," (or ",(0,d.jsx)("code",{children:"flow-login"})," on a VPS). Google cookies stay inside gflow and are never copied into zevairouter. The daemon token is the one you started ",(0,d.jsx)("code",{children:"gflow serve"})," with; on a VPS set up with ",(0,d.jsx)("code",{children:"flow-vps-setup.sh"})," it is in ",(0,d.jsx)("code",{children:"/home/flow/.gflow-agent/token"}),"."]}),(0,d.jsx)(i.pd,{label:"Daemon URL",value:g,onChange:a=>j(a.target.value),placeholder:"http://127.0.0.1:8077/mcp"}),(0,d.jsx)(i.pd,{label:"Daemon token",type:"password",value:e,onChange:a=>f(a.target.value),placeholder:"GFLOW_DAEMON_TOKEN",required:!0}),(0,d.jsxs)("label",{className:"flex items-start gap-2 text-sm text-text-main",children:[(0,d.jsx)("input",{type:"checkbox",checked:k,onChange:a=>l(a.target.checked),className:"mt-1"}),(0,d.jsxs)("span",{children:["I2V upload consent confirmed for every imported profile ",(0,d.jsx)("span",{className:"block text-xs text-text-muted",children:"Enable only after each account accepted Google's image-rights dialog. Required for 20–60s videos."})]})]}),o&&(0,d.jsxs)("div",{className:"rounded-lg border border-green-500/30 bg-green-500/10 p-3 text-sm",children:["Imported ",o.imported?.length||0," profile(s); validated ",(0,d.jsx)("code",{children:o.validatedProfile}),".",(o.skipped?.length||0)>0&&(0,d.jsxs)("div",{className:"mt-1 text-text-muted",children:["Skipped ",o.skipped.length," profile(s) without saved cookies."]})]}),q&&(0,d.jsx)("p",{className:"text-sm text-red-500 break-words",children:q}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:s,fullWidth:!0,disabled:!e.trim()||m,children:m?"Importing...":"Import profiles"}),(0,d.jsx)(i.$n,{onClick:c,variant:"ghost",fullWidth:!0,children:o?"Done":"Cancel"})]})]})}):null}function C({providerId:a,isOAuth:b}){let[c,e]=(0,h.useState)([]),[f,g]=(0,h.useState)([]),[j,k]=(0,h.useState)(!0),[l,m]=(0,h.useState)(""),[n,o]=(0,h.useState)(!1),[p,s]=(0,h.useState)(!1),[t,u]=(0,h.useState)(!1),[v,w]=(0,h.useState)(null),[y,D]=(0,h.useState)(null),[E,F]=(0,h.useState)("1"),G=(0,h.useRef)(null),H=(0,h.useRef)("1"),[I,J]=(0,h.useState)(null),K=async a=>{if(!a.ok)return null;try{return await a.json()}catch{return null}},L=(0,h.useCallback)(async()=>{try{let[b,c,d]=await Promise.all([(0,q.b7)("providers:list",r.t7),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),f=await K(c),h=await K(d)||{},i=null===b,j=null===f;i||e((b.connections||[]).filter(b=>b.provider===a)),j||g(f.proxyPools||[]),i||j?m("Connection data could not be loaded. Check that the server is running, then retry."):m("");let k=(h.providerStrategies||{})[a]||{};D(k.fallbackStrategy||null),F(null!=k.stickyRoundRobinLimit?String(k.stickyRoundRobinLimit):"1"),H.current=null!=k.stickyRoundRobinLimit?String(k.stickyRoundRobinLimit):"1"}catch(a){console.log("ConnectionsCard fetch error:",a),m("Connection data could not be loaded. Check that the server is running, then retry.")}finally{k(!1)}},[a]),M=async(b,c)=>{try{let d=await fetch("/api/settings",{cache:"no-store"}),e=(d.ok?await d.json():{}).providerStrategies||{},f={};b&&(f.fallbackStrategy=b),"round-robin"===b&&""!==c&&(f.stickyRoundRobinLimit=Number(c)||3);let g={...e};0===Object.keys(f).length?delete g[a]:g[a]=f,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:g})})}catch(a){console.log("saveStrategy error:",a)}},N=async(a,b)=>{let d=[...c];[d[a],d[b]]=[d[b],d[a]],e(d);try{let[c,e]=await Promise.all([fetch(`/api/providers/${d[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a+1})}),fetch(`/api/providers/${d[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b+1})})]);c.ok&&e.ok?(0,q.au)("providers:list"):await L()}catch{await L()}},O=async a=>{J({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{J(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&(e(b=>b.filter(b=>b.id!==a)),(0,q.au)("providers:list"))}catch(a){console.log("delete error:",a)}}})},P=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&(e(c=>c.map(c=>c.id===a?{...c,isActive:b}:c)),(0,q.au)("providers:list"))}catch(a){console.log("toggle error:",a)}},Q=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&(e(c=>c.map(c=>c.id===a?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c)),(0,q.au)("providers:list"))}catch(a){console.log("proxy error:",a)}},R=async b=>{try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:a,...b})})).ok&&((0,q.au)("providers:list"),await L(),o(!1))}catch(a){console.log("save apikey error:",a)}},S=async a=>{try{(await fetch(`/api/providers/${v.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&((0,q.au)("providers:list"),await L(),s(!1))}catch(a){console.log("update connection error:",a)}};return j?(0,d.jsx)(i.Zp,{children:(0,d.jsx)("div",{className:"h-20 animate-pulse bg-black/5 rounded-lg"})}):(0,d.jsxs)(d.Fragment,{children:["flow"===a&&(0,d.jsx)(x,{hasConnections:c.length>0,onImport:()=>u(!0)}),(0,d.jsxs)(i.Zp,{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:["flow"===a&&(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"download",onClick:()=>u(!0),children:"Import local profiles"}),(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,d.jsx)(i.lM,{checked:"round-robin"===y,onChange:a=>{let b=a?"round-robin":null;D(b),a&&!E&&F("1");let c=a?E||"1":E;H.current=c,G.current&&(clearTimeout(G.current),G.current=null),M(b,c)}}),"round-robin"===y&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:E,onChange:a=>{F(a.target.value),H.current=a.target.value,G.current&&clearTimeout(G.current),G.current=setTimeout(()=>{M("round-robin",H.current)},500)},className:"w-16 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]}),l&&(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-600 dark:border-red-800 dark:bg-red-900/20 dark:text-red-400 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("span",{children:l}),(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"refresh",onClick:()=>{k(!0),L()},children:"Retry"})]}),0!==c.length||l?c.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:c.map((a,e)=>(0,d.jsx)(z,{connection:a,proxyPools:f,isOAuth:b,isFirst:0===e,isLast:e===c.length-1,onMoveUp:()=>N(e,e-1),onMoveDown:()=>N(e,e+1),onToggleActive:b=>P(a.id,b),onUpdateProxy:b=>Q(a.id,b),onEdit:()=>{w(a),s(!0)},onDelete:()=>O(a.id)},a.id))}),(0,d.jsx)("div",{className:"mt-4 flex justify-stretch sm:justify-start",children:(0,d.jsx)(i.$n,{size:"sm",icon:"add",onClick:()=>o(!0),children:"Add"})})]}):(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),(0,d.jsxs)("div",{className:"flex gap-2",children:["flow"===a&&(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"download",onClick:()=>u(!0),children:"Import local profiles"}),(0,d.jsx)(i.$n,{size:"sm",icon:"add",onClick:()=>o(!0),children:"Add manually"})]})]})]}),n&&(0,d.jsx)(A,{isOpen:!0,provider:a,proxyPools:f,onSave:R,onClose:()=>o(!1)}),"flow"===a&&t&&(0,d.jsx)(B,{isOpen:!0,onImported:async()=>{(0,q.au)("providers:list"),await L()},onClose:()=>u(!1)}),p&&v&&(0,d.jsx)(i.wI,{isOpen:!0,connection:v,proxyPools:f,onSave:S,onClose:()=>s(!1)}),I&&(0,d.jsx)(i.uo,{isOpen:!0,onClose:()=>J(null),onConfirm:I.onConfirm,title:I.title||"Confirm",message:I.message,variant:"danger"})]})}function D({model:a,fullModel:b,copied:c,onCopy:e,testStatus:f,isCustom:g,isFree:h,onDeleteAlias:i,onTest:j,isTesting:k}){let l="ok"===f?"#22c55e":"error"===f?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group px-3 py-2 rounded-lg border ${"ok"===f?"border-green-500/40":"error"===f?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base",style:l?{color:l}:void 0,children:"ok"===f?"check_circle":"error"===f?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),a.name&&(0,d.jsx)("span",{className:"text-[9px] text-text-muted/70 italic pl-1",children:a.name})]}),j&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:j,disabled:k,className:`p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-opacity ${k?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:k?{animation:"spin 1s linear infinite"}:void 0,children:k?"progress_activity":"science"})}),(0,d.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:k?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a.id}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a.id}`?"check":"content_copy"})}),(0,d.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:c===`model-${a.id}`?"Copied!":"Copy"})]}),h&&(0,d.jsx)("span",{className:"text-[10px] font-bold text-green-500 bg-green-500/10 px-1.5 py-0.5 rounded",children:"FREE"}),g&&(0,d.jsx)("button",{onClick:i,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity ml-auto",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})})]})})}function E({isOpen:a,onSave:b,onClose:c}){let[e,f]=(0,h.useState)(""),g=()=>{e.trim()&&(b(e.trim()),f(""))};return(0,d.jsx)(i.aF,{isOpen:a,title:"Add Custom Model",onClose:c,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:e,onChange:a=>f(a.target.value),onKeyDown:a=>"Enter"===a.key&&g(),placeholder:"e.g. tts-1-hd",autoFocus:!0})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:g,fullWidth:!0,disabled:!e.trim(),children:"Add"}),(0,d.jsx)(i.$n,{onClick:c,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function F({providerId:a,kindFilter:b,providerAliasOverride:c}){let{copied:e,copy:f}=(0,m.C)(),[g,j]=(0,h.useState)({}),[n,o]=(0,h.useState)([]),[p,s]=(0,h.useState)({}),[t,u]=(0,h.useState)(()=>new Set),[v,w]=(0,h.useState)({}),[x,y]=(0,h.useState)(!1),[z,A]=(0,h.useState)([]),B=c||(0,k.wG)(a),C=b||"llm",G=(0,h.useCallback)(async()=>{try{let[b,c,d]=await Promise.all([(0,q.b7)("models:aliases",r.QF),(0,q.b7)("providers:list",r.t7),(0,q.b7)("models:custom",r.Mi)]);j(b.aliases||{}),A((c.connections||[]).filter(b=>b.provider===a)),o(d.models||[])}catch(a){console.log("ModelsCard fetch error:",a)}},[a]),H=async(a,b)=>{let c=`${B}/${a}`;try{(await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:c,alias:b})})).ok&&((0,q.au)("models:aliases"),await G())}catch(a){console.log("set alias error:",a)}},I=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&((0,q.au)("models:aliases"),await G())}catch(a){console.log("delete alias error:",a)}},J=async a=>{try{(await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:B,id:a,type:C})})).ok&&((0,q.au)("models:custom"),await G(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(a){console.log("add custom model error:",a)}},K=async a=>{try{let b=new URLSearchParams({providerAlias:B,id:a,type:C});(await fetch(`/api/models/custom?${b}`,{method:"DELETE"})).ok&&((0,q.au)("models:custom"),await G(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(a){console.log("delete custom model error:",a)}},L=async a=>{u(b=>new Set(b).add(a));try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${B}/${a}`,kind:b})}),d=await c.json();s(b=>({...b,[a]:d.ok?"ok":"error"})),w(b=>({...b,[a]:d.ok?"":d.error||"Model not reachable"}))}catch{s(b=>({...b,[a]:"error"})),w(b=>({...b,[a]:"Network error"}))}finally{u(b=>{let c=new Set(b);return c.delete(a),c})}},M=(0,l.KC)(a),N=b?M.filter(a=>a.kinds?a.kinds.includes(b):(a.type||"llm")===b):M,O=n.filter(a=>a.providerAlias===B&&(a.type||"llm")===C&&!N.some(b=>b.id===a.id)),P=(0,h.useMemo)(()=>{let a={};for(let[b,c]of Object.entries(g))c in a||(a[c]=b);return a},[g]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,d.jsxs)("h2",{className:"text-lg font-semibold",children:["Models",b?` — ${b.toUpperCase()}`:""]})}),Object.values(v).some(Boolean)&&(0,d.jsx)("div",{className:"mb-3 space-y-1",children:Object.entries(v).filter(([,a])=>!!a).map(([a,b])=>(0,d.jsxs)("p",{className:"break-words text-xs text-red-500",children:[a,": ",b]},a))}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[N.map(a=>{let b=P[`${B}/${a.id}`];return(0,d.jsx)(D,{model:a,fullModel:`${B}/${a.id}`,alias:b,copied:e,onCopy:f,onSetAlias:b=>H(a.id,b),onDeleteAlias:()=>I(b),testStatus:p[a.id],onTest:z.length>0?()=>L(a.id):void 0,isTesting:t.has(a.id),isFree:a.isFree},a.id)}),O.map(a=>(0,d.jsx)(D,{model:{id:a.id,name:a.name},fullModel:`${B}/${a.id}`,copied:e,onCopy:f,onSetAlias:()=>{},onDeleteAlias:()=>K(a.id),testStatus:p[a.id],onTest:z.length>0?()=>L(a.id):void 0,isTesting:t.has(a.id),isCustom:!0},`${a.id}-${a.type}`)),(0,d.jsxs)("button",{onClick:()=>y(!0),className:"flex items-center gap-1.5 px-3 py-2 rounded-lg border border-dashed border-black/15 dark:border-white/15 text-xs text-text-muted hover:text-primary hover:border-primary/40 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]})]})]}),(0,d.jsx)(E,{isOpen:x,onSave:async a=>{await J(a),y(!1)},onClose:()=>y(!1)})]})}u.propTypes={value:o().string.isRequired,copied:o().string,onCopy:o().func.isRequired,id:o().string.isRequired},v.propTypes={n:o().number.isRequired,title:o().string.isRequired,children:o().node},w.propTypes={n:o().number.isRequired,onImport:o().func.isRequired},x.propTypes={hasConnections:o().bool.isRequired,onImport:o().func.isRequired},y.propTypes={until:o().string.isRequired},z.propTypes={connection:o().shape({id:o().string,name:o().string,email:o().string,displayName:o().string,testStatus:o().string,isActive:o().bool,lastError:o().string,priority:o().number}).isRequired,proxyPools:o().array,isOAuth:o().bool.isRequired,isFirst:o().bool.isRequired,isLast:o().bool.isRequired,onMoveUp:o().func.isRequired,onMoveDown:o().func.isRequired,onToggleActive:o().func.isRequired,onUpdateProxy:o().func,onEdit:o().func.isRequired,onDelete:o().func.isRequired},A.propTypes={isOpen:o().bool.isRequired,provider:o().string,providerName:o().string,proxyPools:o().array,onSave:o().func.isRequired,onClose:o().func.isRequired},B.propTypes={isOpen:o().bool.isRequired,onImported:o().func.isRequired,onClose:o().func.isRequired},C.propTypes={providerId:o().string.isRequired,isOAuth:o().bool},D.propTypes={model:o().shape({id:o().string.isRequired}).isRequired,fullModel:o().string.isRequired,copied:o().string,onCopy:o().func.isRequired,testStatus:o().oneOf(["ok","error"]),isCustom:o().bool,isFree:o().bool,onDeleteAlias:o().func,onTest:o().func,isTesting:o().bool},E.propTypes={isOpen:o().bool.isRequired,onSave:o().func.isRequired,onClose:o().func.isRequired},F.propTypes={providerId:o().string.isRequired,kindFilter:o().string,providerAliasOverride:o().string};let G={"google-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"hardcoded"},openai:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openai-tts-models",voiceKey:"openai-tts-voices",voicesPerModel:!0},openrouter:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openrouter-tts-models",voiceKey:"openrouter-tts-voices",voicesPerModel:!0},elevenlabs:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"elevenlabs-tts-models",apiEndpoint:"/api/media-providers/tts/elevenlabs/voices"},"edge-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},"local-device":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},nvidia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},hyperbolic:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},deepgram:{hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/deepgram/voices"},huggingface:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},cartesia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},playht:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},coqui:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},tortoise:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},inworld:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"inworld-tts-models",apiEndpoint:"/api/media-providers/tts/inworld/voices"},qwen:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},minimax:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices",defaultVoiceId:"English_expressive_narrator"},"minimax-cn":{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices?provider=minimax-cn",defaultVoiceId:"English_expressive_narrator"},gemini:{hasLanguageDropdown:!1,hasLanguageHint:!0,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"gemini-tts-models",voiceKey:"gemini-tts-voices",voicesPerModel:!0}};c(68019);var H=c(34973),I=c(73661);let J=new Set(["done","failed","completed","error","expired","cancelled"]),K=new Set(["failed","error","expired","cancelled"]);async function L({requestId:a,connectionId:b,signal:c,fetchImpl:d=fetch,pollIntervalMs:e=3e3,timeoutMs:f=6e5,onProgress:g}){if(!a)throw Error("Video response did not include a request id");let h=(0,I.x)(String(a));if(!h)throw Error("Video response included an invalid request id");let i=Date.now()+f;for(;Date.now()<=i;){if(c?.aborted)throw new DOMException("Video polling aborted","AbortError");let a={Accept:"application/json"};b&&(a["x-connection-id"]=b);let f=await d(h,{method:"GET",headers:a,signal:c}),i=await f.json().catch(()=>({}));if(f.ok){let a=String(i?.status||"pending").toLowerCase();if(g?.({status:a,progress:i?.progress}),K.has(a)){let a=i?.error?.message||i?.error||"Video generation failed";throw Error("string"==typeof a?a:JSON.stringify(a))}if(J.has(a))return i}else if(429!==f.status&&503!==f.status){let a=i?.error?.message||i?.error||`Video polling failed (HTTP ${f.status})`;throw Error("string"==typeof a?a:JSON.stringify(a))}await function(a,b){return new Promise((c,d)=>{let e=()=>{clearTimeout(f),d(new DOMException("Video polling aborted","AbortError"))},f=setTimeout(()=>{b?.removeEventListener("abort",e),c()},a);b?.addEventListener("abort",e,{once:!0})})}(e,c)}throw Error("Timed out while waiting for the video job")}function M({label:a,children:b}){return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"w-full text-xs font-medium text-text-muted sm:w-20 sm:shrink-0",children:a}),(0,d.jsx)("div",{className:"w-full min-w-0 flex-1",children:b})]})}let N=`// Audio will appear here after running.
1
+ (()=>{var a={};a.id=182,a.ids=[182],a.modules={3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},25049:(a,b,c)=>{"use strict";c.d(b,{c:()=>e});var d=c(67484);function e(a={}){let[b,c]=(0,d.useState)(null);return JSON.stringify(Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).sort(([a],[b])=>a.localeCompare(b))),b}c(74875)},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},49788:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>y,handler:()=>A,routeModule:()=>z});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,32059))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),v=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),w={children:["",{children:["(dashboard)",{children:["dashboard",{children:["media-providers",{children:["[kind]",{children:["[id]",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,69296))),"/zevairouter-build/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js"]}]},{"global-error":[v,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[u,"next/dist/client/components/builtin/global-error.js"]},["combo","web"]]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"/zevairouter-build/src/app/(dashboard)/layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/zevairouter-build/src/app/layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,x=(0,e.H)({tree:w,page:"/(dashboard)/dashboard/media-providers/[kind]/[id]/page",pathname:"/dashboard/media-providers/[kind]/[id]",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),y=x.__next_app__,z=x.routeModule,A=x.handler},55511:a=>{"use strict";a.exports=require("crypto")},57923:(a,b,c)=>{Promise.resolve().then(c.bind(c,65712))},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65712:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>Y});var d=c(48249),e=c(19099),f=c(2116),g=c.n(f),h=c(67484),i=c(50412),j=c(72738),k=c(96919),l=c(91431),m=c(50377),n=c(49885),o=c.n(n),p=c(25049),q=c(39888),r=c(42964);let s=()=>()=>{},t=()=>window.location.hostname;function u({value:a,copied:b,onCopy:c,id:e}){return(0,d.jsxs)("div",{className:"flex items-start gap-2 rounded-lg bg-sidebar px-3 py-2",children:[(0,d.jsx)("code",{className:"min-w-0 flex-1 whitespace-pre-wrap break-all text-xs font-mono text-text-main",children:a}),(0,d.jsxs)("button",{type:"button",onClick:()=>c(a,e),className:"inline-flex shrink-0 items-center gap-1 rounded-md bg-primary px-2 py-1 text-[11px] font-medium text-white hover:bg-primary/90","aria-label":`Copy: ${a}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[13px]",children:b===e?"check":"content_copy"}),b===e?"Copied":"Copy"]})]})}function v({n:a,title:b,children:c}){return(0,d.jsxs)("li",{className:"flex gap-3",children:[(0,d.jsx)("span",{className:"flex size-6 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:a}),(0,d.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-text-main",children:b}),c]})]})}function w({n:a,onImport:b}){return(0,d.jsxs)(v,{n:a,title:"Import the account here",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Click ",(0,d.jsx)("strong",{children:"Import local profiles"}),", keep Daemon URL ",(0,d.jsx)("code",{children:"http://127.0.0.1:8077/mcp"}),", paste the daemon token, then Import. Every logged-in profile becomes one connection; importing again only updates them."]}),(0,d.jsxs)("button",{type:"button",onClick:b,className:"inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1 text-xs font-medium text-text-main hover:border-primary hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Import local profiles"]})]})}function x({hasConnections:a,onImport:b}){let c=(0,h.useSyncExternalStore)(s,t,()=>""),e=!(!c||"localhost"===c||"127.0.0.1"===c||"::1"===c),[f,g]=(0,h.useState)(null),[j,k]=(0,h.useState)(!a),{copied:l,copy:n}=(0,m.C)(2e3),o=f||(e?"vps":"local"),p=e?c:"YOUR-VPS-IP",q="akun1";return(0,d.jsxs)(i.Zp,{padding:"md",children:[(0,d.jsxs)("button",{type:"button",onClick:()=>k(!j),className:"flex w-full items-center justify-between gap-3 text-left","aria-expanded":j,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px] text-primary",children:"person_add"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("h2",{className:"text-sm font-semibold text-text-main",children:"How to add a Google account"}),(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["The quickest way is the ",(0,d.jsx)("strong",{children:"Add account"})," button below. The steps here are a one-time setup you only do once per machine."]})]})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px] text-text-muted",children:j?"expand_less":"expand_more"})]}),j&&(0,d.jsxs)("div",{className:"mt-4 space-y-4",children:[(0,d.jsxs)("div",{className:"rounded-lg border border-primary/30 bg-primary/5 px-3 py-2.5 text-xs",children:[(0,d.jsx)("p",{className:"font-semibold text-text-main",children:"Already set this up once?"}),(0,d.jsxs)("p",{className:"mt-0.5 text-text-muted",children:["Just click the ",(0,d.jsx)("strong",{children:"Add account"})," button next to Connections above. A sign-in window opens, you log in to Google, and the account appears here on its own — nothing to copy or paste."]}),(0,d.jsx)("p",{className:"mt-1.5 text-text-muted",children:"First time on this machine? Do the one-time setup below once, then use the button for every account after."})]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2",role:"tablist",children:[["local","Router on this computer (Windows / macOS)"],["vps","Router on a VPS (Linux, no screen)"]].map(([a,b])=>(0,d.jsx)("button",{type:"button",role:"tab","aria-selected":o===a,onClick:()=>g(a),className:`rounded-md px-3 py-1.5 text-xs font-medium ${o===a?"bg-primary text-white":"border border-border text-text-muted hover:text-text-main"}`,children:b},a))}),"local"===o?(0,d.jsxs)("ol",{className:"space-y-4",children:[(0,d.jsxs)(v,{n:1,title:"Install gflow and Google Chrome (once)",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Install Google Chrome, then install uv and gflow-cli. Windows: run in PowerShell, then reopen PowerShell."}),(0,d.jsx)(u,{id:"l-uv-win",copied:l,onCopy:n,value:'powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"'}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"macOS / Linux:"}),(0,d.jsx)(u,{id:"l-uv-unix",copied:l,onCopy:n,value:"curl -LsSf https://astral.sh/uv/install.sh | sh"}),(0,d.jsx)(u,{id:"l-gflow",copied:l,onCopy:n,value:'uv tool install "gflow-cli>=0.88,<0.90"'})]}),(0,d.jsxs)(v,{n:2,title:"Sign in a Google account (repeat per account)",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Prefer the ",(0,d.jsx)("strong",{children:"Add account"})," button above — it runs this for you. To do it by hand: run the command, sign in until the Flow editor appears, and Chrome closes by itself. Use a different profile name for every account."]}),(0,d.jsx)(u,{id:"l-login",copied:l,onCopy:n,value:`gflow auth login --profile ${q} --browser chrome`})]}),(0,d.jsxs)(v,{n:3,title:"Start the gflow daemon (keep this window open)",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Pick any secret token; you paste the same token into Import below. Windows PowerShell:"}),(0,d.jsx)(u,{id:"l-serve-win",copied:l,onCopy:n,value:'& "$(uv tool dir)\\gflow-cli\\Scripts\\python.exe" "$(npm root -g)\\zevairouter\\scripts\\gflow-reply-capture.py"; $env:GFLOW_DAEMON_TOKEN = "choose-a-secret-token"; gflow serve --port 8077'}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"macOS / Linux:"}),(0,d.jsx)(u,{id:"l-serve-unix",copied:l,onCopy:n,value:'"$(uv tool dir)/gflow-cli/bin/python" "$(npm root -g)/zevairouter/scripts/gflow-reply-capture.py" && GFLOW_DAEMON_TOKEN=choose-a-secret-token gflow serve --port 8077'})]}),(0,d.jsx)(w,{n:4,onImport:b})]}):(0,d.jsxs)("ol",{className:"space-y-4",children:[(0,d.jsxs)(v,{n:1,title:"Prepare the VPS for Flow (once, as root)",children:[(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"Installs Chrome, Xvfb, gflow and its services, and prints the daemon token. Safe to run again; it keeps the token and accounts."}),(0,d.jsx)(u,{id:"v-setup",copied:l,onCopy:n,value:'sudo bash "$(npm root -g)/zevairouter/scripts/flow-vps-setup.sh"'})]}),(0,d.jsxs)(v,{n:2,title:"Sign in a Google account (repeat per account)",children:[(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Easiest: click ",(0,d.jsx)("strong",{children:"Add account"})," above. On a VPS it starts the sign-in on the server and shows you the VNC password and the exact tunnel command right in that window — just follow them. To do it by hand instead, run (it prints a VNC password and the next two steps):"]}),(0,d.jsx)(u,{id:"v-login",copied:l,onCopy:n,value:`ssh root@${p} flow-login ${q}`}),(0,d.jsx)("p",{className:"text-xs text-text-muted",children:"In a second terminal, open the tunnel and leave it open:"}),(0,d.jsx)(u,{id:"v-tunnel",copied:l,onCopy:n,value:`ssh -L 5998:127.0.0.1:5998 root@${p}`}),(0,d.jsxs)("p",{className:"text-xs text-text-muted",children:["Open a VNC viewer at ",(0,d.jsx)("code",{children:"127.0.0.1:5998"})," with that password: on macOS, Finder → Go → Connect to Server → ",(0,d.jsx)("code",{children:"vnc://127.0.0.1:5998"}),"; on Windows, TigerVNC or RealVNC Viewer. Sign in until the Flow editor appears; Chrome closes by itself and VNC shuts down."]})]}),(0,d.jsx)(v,{n:3,title:"Get the daemon token",children:(0,d.jsx)(u,{id:"v-token",copied:l,onCopy:n,value:`ssh root@${p} cat /home/flow/.gflow-agent/token`})}),(0,d.jsx)(w,{n:4,onImport:b})]}),(0,d.jsxs)("div",{className:"rounded-lg border border-border-subtle bg-surface px-3 py-2 text-xs text-text-muted space-y-1",children:[(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Several accounts:"})," the account with the highest priority is used first; when its credits run out the next one takes over automatically."]}),(0,d.jsxs)("p",{children:[(0,d.jsx)("strong",{children:"Videos of 20–60 s:"})," on flow.google.com, upload one image you own with that account and accept Google's image-rights dialog, then edit the connection and enable ",(0,d.jsx)("em",{children:"I2V upload consent confirmed"}),"."]})]})]})]})}u.propTypes={value:o().string.isRequired,copied:o().string,onCopy:o().func.isRequired,id:o().string.isRequired},v.propTypes={n:o().number.isRequired,title:o().string.isRequired,children:o().node},w.propTypes={n:o().number.isRequired,onImport:o().func.isRequired},x.propTypes={hasConnections:o().bool.isRequired,onImport:o().func.isRequired};let y=new Set(["running","importing"]);function z({onAdded:a,variant:b="primary",size:c="sm",label:e="Add account"}){var f;let[g,j]=(0,h.useState)(null),[k,l]=(0,h.useState)(!1),[m,n]=(0,h.useState)(!1),[o,p]=(0,h.useState)(""),q=(0,h.useRef)(null),r=(0,h.useRef)(!1),s=(0,h.useCallback)(()=>{q.current&&(clearInterval(q.current),q.current=null)},[]),t=(0,h.useCallback)(async b=>{try{let c=await fetch(`/api/providers/flow/login/${b}`),d=await c.json();if(!d?.job)return;j(d.job),!y.has(d.job.status)&&(s(),"done"!==d.job.status||r.current||(r.current=!0,a?.()))}catch{}},[a,s]),u=(0,h.useCallback)(async()=>{n(!0),p(""),r.current=!1;try{let a=await fetch("/api/providers/flow/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),b=await a.json();if(!a.ok)throw Error(b?.error||"Could not start sign-in");j(b.job),l(!0),s(),q.current=setInterval(()=>t(b.job.id),2e3)}catch(a){p(a?.message||"Could not start sign-in"),l(!0)}finally{n(!1)}},[t,s]),v=(0,h.useCallback)(async()=>{if(s(),g?.id&&y.has(g.status))try{await fetch(`/api/providers/flow/login/${g.id}`,{method:"DELETE"})}catch{}},[g,s]),w=(0,h.useCallback)(()=>{l(!1),j(null),p(""),s()},[s]),x=g&&y.has(g.status);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(i.$n,{size:c,variant:b,icon:"person_add",onClick:u,disabled:m,children:m?"Starting…":e}),k&&(0,d.jsx)(i.aF,{isOpen:!0,title:"Add a Google account",onClose:x?void 0:w,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[o?(0,d.jsx)("p",{className:"text-sm text-red-500 break-words",children:o}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:g?.mode==="vps"?(0,d.jsx)(d.Fragment,{children:"This router is headless. A sign-in window runs on the server over VNC — follow the steps below, sign in until the Flow editor appears, and the account imports automatically."}):(0,d.jsx)(d.Fragment,{children:"A Chrome window opens on the computer running this router. Sign in until the Flow editor appears — Chrome then closes by itself and the account is imported automatically."})}),g?.vnc&&g.active&&(0,d.jsxs)("div",{className:"rounded-lg border border-border bg-sidebar p-3 text-xs text-text-muted space-y-2",children:[(0,d.jsx)("p",{className:"font-medium text-text-main",children:"Reach the sign-in window"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{children:"1. On your computer, open an SSH tunnel:"}),(0,d.jsx)("code",{className:"mt-1 block break-all rounded bg-background px-2 py-1 text-text-main",children:g.vnc.tunnel})]}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("span",{children:["2. Open a VNC viewer at ",(0,d.jsx)("code",{className:"text-text-main",children:g.vnc.viewer||"127.0.0.1:5998"})," with password:"]}),(0,d.jsx)("code",{className:"mt-1 block rounded bg-background px-2 py-1 text-text-main",children:g.vnc.password})]}),(0,d.jsx)("p",{children:"3. Sign in until the Flow editor appears; the window closes by itself."})]}),g&&(0,d.jsxs)("div",{className:`rounded-lg border p-3 text-sm ${"done"===(f=g.status)?"border-green-500/30 bg-green-500/10":"failed"===f||"needs_token"===f?"border-red-500/30 bg-red-500/10":"border-border bg-surface"}`,children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[x&&(0,d.jsx)("span",{className:"material-symbols-outlined animate-spin text-[18px] text-primary",children:"progress_activity"}),(0,d.jsx)("span",{className:"font-medium text-text-main",children:g.step})]}),(0,d.jsxs)("div",{className:"mt-1 text-xs text-text-muted",children:["Profile ",(0,d.jsx)("code",{children:g.profile}),g.email?(0,d.jsxs)(d.Fragment,{children:[" \xb7 ",g.email]}):null]}),g.error&&(0,d.jsx)("div",{className:"mt-2 text-xs text-red-500 break-words",children:g.error})]})]}),(0,d.jsx)("div",{className:"flex gap-2",children:x?(0,d.jsx)(i.$n,{onClick:v,variant:"ghost",fullWidth:!0,children:"Cancel sign-in"}):(0,d.jsx)(i.$n,{onClick:w,fullWidth:!0,children:g?.status==="done"?"Done":"Close"})})]})})]})}function A({until:a}){let[b,c]=(0,h.useState)("");return b?(0,d.jsxs)("span",{className:"text-xs text-orange-500 font-mono",children:["⏱ ",b]}):null}function B({connection:a,proxyPools:b,isOAuth:c,isFirst:e,isLast:f,onMoveUp:g,onMoveDown:j,onToggleActive:k,onUpdateProxy:l,onEdit:m,onDelete:n}){let[o,q]=(0,h.useState)(!1),[r,s]=(0,h.useState)(!1),t=(0,h.useRef)(null),u=new Map((b||[]).map(a=>[a.id,a])),v=a.providerSpecificData?.proxyPoolId||null,w=v?u.get(v):null,x=a.providerSpecificData?.connectionProxyEnabled===!0&&!!a.providerSpecificData?.connectionProxyUrl,y=!!v||x,z=w?`Pool: ${w.name}`:v?`Pool: ${v} (inactive/missing)`:x?`Legacy: ${a.providerSpecificData?.connectionProxyUrl}`:"",C="",D=w?.proxyUrl||a.providerSpecificData?.connectionProxyUrl;if(D)try{let a=new URL(D);C=`${a.protocol}//${a.hostname}${a.port?`:${a.port}`:""}`}catch{C=D}let E=w?.noProxy||a.providerSpecificData?.connectionNoProxy||"",F=w?.isActive===!0?"success":v||x?"error":"default",G=(0,p.c)(a),H=null!==G,I="unavailable"!==a.testStatus||H?a.testStatus:"active",J=c?a.name||a.email||a.displayName||"OAuth Account":a.name,K=async a=>{s(!0);try{await l("__none__"===a?null:a)}finally{s(!1),q(!1)}};return(0,d.jsxs)("div",{className:`group flex flex-col gap-3 p-2 rounded-lg sm:flex-row sm:items-center sm:justify-between hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors ${!1===a.isActive?"opacity-60":""}`,children:[(0,d.jsxs)("div",{className:"flex w-full min-w-0 flex-1 items-start gap-3 sm:items-center",children:[(0,d.jsxs)("div",{className:"flex flex-col",children:[(0,d.jsx)("button",{onClick:g,disabled:e,className:`p-0.5 rounded ${e?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_up"})}),(0,d.jsx)("button",{onClick:j,disabled:f,className:`p-0.5 rounded ${f?"text-text-muted/30 cursor-not-allowed":"hover:bg-sidebar text-text-muted hover:text-primary"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"keyboard_arrow_down"})})]}),(0,d.jsx)("span",{className:"material-symbols-outlined text-base text-text-muted",children:c?"lock":"key"}),(0,d.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,d.jsx)("p",{className:"text-sm font-medium truncate",children:J}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-1",children:[(0,d.jsx)(i.Ex,{variant:!1===a.isActive?"default":"active"===I||"success"===I?"success":"error"===I||"expired"===I||"unavailable"===I?"error":"default",size:"sm",dot:!0,children:!1===a.isActive?"disabled":I||"Unknown"}),y&&(0,d.jsx)(i.Ex,{variant:F,size:"sm",children:"Proxy"}),H&&!1!==a.isActive&&(0,d.jsx)(A,{until:G}),a.lastError&&!1!==a.isActive&&(0,d.jsx)("span",{className:"text-xs text-red-500 truncate max-w-[300px]",title:a.lastError,children:a.lastError}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:["#",a.priority]})]}),y&&(0,d.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,d.jsx)("span",{className:"text-[11px] text-text-muted truncate max-w-[420px]",title:z,children:z}),C&&(0,d.jsx)("code",{className:"text-[10px] font-mono bg-black/5 dark:bg-white/5 px-1 py-0.5 rounded text-text-muted",children:C}),E&&(0,d.jsxs)("span",{className:"text-[11px] text-text-muted truncate max-w-[320px]",title:E,children:["no_proxy: ",E]})]})]})]}),(0,d.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-2 sm:w-auto sm:justify-end",children:[(0,d.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(b||[]).length>0&&(0,d.jsxs)("div",{className:"relative",ref:t,children:[(0,d.jsxs)("button",{onClick:()=>q(a=>!a),className:`flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 transition-colors ${y?"text-primary":"text-text-muted hover:text-primary"}`,disabled:r,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:r?"progress_activity":"lan"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Proxy"})]}),o&&(0,d.jsxs)("div",{className:"absolute right-0 top-full mt-1 z-50 bg-bg border border-border rounded-lg shadow-lg py-1 min-w-[160px]",children:[(0,d.jsx)("button",{onClick:()=>K("__none__"),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${!v?"text-primary font-medium":"text-text-main"}`,children:"None"}),(b||[]).map(a=>(0,d.jsx)("button",{onClick:()=>K(a.id),className:`w-full text-left px-3 py-1.5 text-sm hover:bg-black/5 dark:hover:bg-white/5 ${v===a.id?"text-primary font-medium":"text-text-main"}`,children:a.name},a.id))]})]}),(0,d.jsxs)("button",{onClick:m,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Edit"})]}),(0,d.jsxs)("button",{onClick:n,className:"flex flex-col items-center px-2 py-1 rounded hover:bg-red-500/10 text-red-500",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"delete"}),(0,d.jsx)("span",{className:"text-[10px] leading-tight",children:"Delete"})]})]}),(0,d.jsx)(i.lM,{size:"sm",checked:a.isActive??!0,onChange:k,title:a.isActive??!0?"Disable":"Enable"})]})]})}function C({isOpen:a,provider:b,providerName:c,proxyPools:e,onSave:f,onClose:g}){let j="__none__",k="flow"===b,[l,m]=(0,h.useState)({name:"",apiKey:"",priority:1,proxyPoolId:j,flowProfile:"",flowBaseUrl:"http://127.0.0.1:8077/mcp",flowI2vReady:!1}),[n,o]=(0,h.useState)(!1),[p,q]=(0,h.useState)(null),[r,s]=(0,h.useState)(!1),t=k?{profile:l.flowProfile.trim(),baseUrl:l.flowBaseUrl.trim(),i2vReady:l.flowI2vReady}:void 0,u=async()=>{o(!0);try{let a=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:l.apiKey,providerSpecificData:t})}),c=await a.json();q(c.valid?"success":"failed")}catch{q("failed")}finally{o(!1)}},v=async()=>{if(b&&l.apiKey&&(!k||l.flowProfile.trim())){s(!0);try{let a=!1;try{o(!0),q(null);let c=await fetch("/api/providers/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:b,apiKey:l.apiKey,providerSpecificData:t})});a=!!(await c.json()).valid,q(a?"success":"failed")}catch{q("failed")}finally{o(!1)}await f({name:l.name,apiKey:l.apiKey,priority:l.priority,proxyPoolId:k||l.proxyPoolId===j?null:l.proxyPoolId,testStatus:a?"active":"unknown",providerSpecificData:t})}finally{s(!1)}}};return b?(0,d.jsx)(i.aF,{isOpen:a,title:k?"Add Google Flow Account":`Add ${c||b} API Key`,onClose:g,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:k?"Account name":"Name"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:l.name,onChange:a=>m({...l,name:a.target.value}),placeholder:k?"Google account email":"Production Key"})]}),k&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"gflow profile"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono",value:l.flowProfile,onChange:a=>m({...l,flowProfile:a.target.value}),placeholder:"from: gflow auth list"})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Daemon URL"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono",value:l.flowBaseUrl,onChange:a=>m({...l,flowBaseUrl:a.target.value})})]}),(0,d.jsxs)("label",{className:"flex items-start gap-2 text-sm text-text-main",children:[(0,d.jsx)("input",{type:"checkbox",checked:l.flowI2vReady,onChange:a=>m({...l,flowI2vReady:a.target.checked}),className:"mt-1"}),(0,d.jsxs)("span",{children:["I2V upload consent confirmed ",(0,d.jsx)("span",{className:"block text-xs text-text-muted",children:"Required for 20–60s videos. Enable after accepting Google's image-rights dialog once for this profile."})]})]})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:k?"Daemon token":"API Key"}),(0,d.jsx)("input",{type:"password",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:l.apiKey,onChange:a=>m({...l,apiKey:a.target.value})})]}),(0,d.jsx)("div",{className:"pt-6",children:(0,d.jsx)(i.$n,{onClick:u,disabled:!l.apiKey||k&&!l.flowProfile.trim()||n||r,variant:"secondary",children:n?"Checking...":"Check"})})]}),p&&(0,d.jsx)(i.Ex,{variant:"success"===p?"success":"error",children:"success"===p?"Valid":"Invalid"}),(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Priority"}),(0,d.jsx)("input",{type:"number",className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:l.priority,onChange:a=>m({...l,priority:Number.parseInt(a.target.value)||1})})]}),!k&&(0,d.jsx)(i.l6,{label:"Proxy Pool",value:l.proxyPoolId,onChange:a=>m({...l,proxyPoolId:a.target.value}),options:[{value:j,label:"None"},...(e||[]).map(a=>({value:a.id,label:a.name}))]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:v,fullWidth:!0,disabled:!l.name||!l.apiKey||k&&!l.flowProfile.trim()||r,children:r?"Saving...":"Save"}),(0,d.jsx)(i.$n,{onClick:g,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})}):null}function D({isOpen:a,onImported:b,onClose:c}){let[e,f]=(0,h.useState)(""),[g,j]=(0,h.useState)("http://127.0.0.1:8077/mcp"),[k,l]=(0,h.useState)(!1),[m,n]=(0,h.useState)(!1),[o,p]=(0,h.useState)(null),[q,r]=(0,h.useState)(""),s=async()=>{if(e.trim()){n(!0),r(""),p(null);try{let a=await fetch("/api/providers/flow/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({daemonToken:e,baseUrl:g,i2vReady:k})}),c=await a.json();if(!a.ok)throw Error(c.error||"Flow profile import failed");p(c),f(""),await b()}catch(a){r(a?.message||"Flow profile import failed")}finally{n(!1)}}};return a?(0,d.jsx)(i.aF,{isOpen:!0,title:"Import local gflow profiles",onClose:c,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("p",{className:"text-sm text-text-muted",children:["Imports every account signed in with ",(0,d.jsx)("code",{children:"gflow auth login"})," (or ",(0,d.jsx)("code",{children:"flow-login"})," on a VPS). Google cookies stay inside gflow and are never copied into zevairouter. The daemon token is the one you started ",(0,d.jsx)("code",{children:"gflow serve"})," with; on a VPS set up with ",(0,d.jsx)("code",{children:"flow-vps-setup.sh"})," it is in ",(0,d.jsx)("code",{children:"/home/flow/.gflow-agent/token"}),"."]}),(0,d.jsx)(i.pd,{label:"Daemon URL",value:g,onChange:a=>j(a.target.value),placeholder:"http://127.0.0.1:8077/mcp"}),(0,d.jsx)(i.pd,{label:"Daemon token",type:"password",value:e,onChange:a=>f(a.target.value),placeholder:"GFLOW_DAEMON_TOKEN",required:!0}),(0,d.jsxs)("label",{className:"flex items-start gap-2 text-sm text-text-main",children:[(0,d.jsx)("input",{type:"checkbox",checked:k,onChange:a=>l(a.target.checked),className:"mt-1"}),(0,d.jsxs)("span",{children:["I2V upload consent confirmed for every imported profile ",(0,d.jsx)("span",{className:"block text-xs text-text-muted",children:"Enable only after each account accepted Google's image-rights dialog. Required for 20–60s videos."})]})]}),o&&(0,d.jsxs)("div",{className:"rounded-lg border border-green-500/30 bg-green-500/10 p-3 text-sm",children:["Imported ",o.imported?.length||0," profile(s); validated ",(0,d.jsx)("code",{children:o.validatedProfile}),".",(o.skipped?.length||0)>0&&(0,d.jsxs)("div",{className:"mt-1 text-text-muted",children:["Skipped ",o.skipped.length," profile(s) without saved cookies."]})]}),q&&(0,d.jsx)("p",{className:"text-sm text-red-500 break-words",children:q}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:s,fullWidth:!0,disabled:!e.trim()||m,children:m?"Importing...":"Import profiles"}),(0,d.jsx)(i.$n,{onClick:c,variant:"ghost",fullWidth:!0,children:o?"Done":"Cancel"})]})]})}):null}function E({providerId:a,isOAuth:b}){let[c,e]=(0,h.useState)([]),[f,g]=(0,h.useState)([]),[j,k]=(0,h.useState)(!0),[l,m]=(0,h.useState)(""),[n,o]=(0,h.useState)(!1),[p,s]=(0,h.useState)(!1),[t,u]=(0,h.useState)(!1),[v,w]=(0,h.useState)(null),[y,A]=(0,h.useState)(null),[F,G]=(0,h.useState)("1"),H=(0,h.useRef)(null),I=(0,h.useRef)("1"),[J,K]=(0,h.useState)(null),L=async a=>{if(!a.ok)return null;try{return await a.json()}catch{return null}},M=(0,h.useCallback)(async()=>{try{let[b,c,d]=await Promise.all([(0,q.b7)("providers:list",r.t7),fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]),f=await L(c),h=await L(d)||{},i=null===b,j=null===f;i||e((b.connections||[]).filter(b=>b.provider===a)),j||g(f.proxyPools||[]),i||j?m("Connection data could not be loaded. Check that the server is running, then retry."):m("");let k=(h.providerStrategies||{})[a]||{};A(k.fallbackStrategy||null),G(null!=k.stickyRoundRobinLimit?String(k.stickyRoundRobinLimit):"1"),I.current=null!=k.stickyRoundRobinLimit?String(k.stickyRoundRobinLimit):"1"}catch(a){console.log("ConnectionsCard fetch error:",a),m("Connection data could not be loaded. Check that the server is running, then retry.")}finally{k(!1)}},[a]),N=async(b,c)=>{try{let d=await fetch("/api/settings",{cache:"no-store"}),e=(d.ok?await d.json():{}).providerStrategies||{},f={};b&&(f.fallbackStrategy=b),"round-robin"===b&&""!==c&&(f.stickyRoundRobinLimit=Number(c)||3);let g={...e};0===Object.keys(f).length?delete g[a]:g[a]=f,await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerStrategies:g})})}catch(a){console.log("saveStrategy error:",a)}},O=async(a,b)=>{let d=[...c];[d[a],d[b]]=[d[b],d[a]],e(d);try{let[c,e]=await Promise.all([fetch(`/api/providers/${d[a].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:a+1})}),fetch(`/api/providers/${d[b].id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({priority:b+1})})]);c.ok&&e.ok?(0,q.au)("providers:list"):await M()}catch{await M()}},P=async a=>{K({title:"Delete Connection",message:"Delete this connection?",onConfirm:async()=>{K(null);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&(e(b=>b.filter(b=>b.id!==a)),(0,q.au)("providers:list"))}catch(a){console.log("delete error:",a)}}})},Q=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&(e(c=>c.map(c=>c.id===a?{...c,isActive:b}:c)),(0,q.au)("providers:list"))}catch(a){console.log("toggle error:",a)}},R=async(a,b)=>{try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyPoolId:b||null})})).ok&&(e(c=>c.map(c=>c.id===a?{...c,providerSpecificData:{...c.providerSpecificData,proxyPoolId:b||null}}:c)),(0,q.au)("providers:list"))}catch(a){console.log("proxy error:",a)}},S=async b=>{try{(await fetch("/api/providers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:a,...b})})).ok&&((0,q.au)("providers:list"),await M(),o(!1))}catch(a){console.log("save apikey error:",a)}},T=async a=>{try{(await fetch(`/api/providers/${v.id}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&((0,q.au)("providers:list"),await M(),s(!1))}catch(a){console.log("update connection error:",a)}};return j?(0,d.jsx)(i.Zp,{children:(0,d.jsx)("div",{className:"h-20 animate-pulse bg-black/5 rounded-lg"})}):(0,d.jsxs)(d.Fragment,{children:["flow"===a&&(0,d.jsx)(x,{hasConnections:c.length>0,onImport:()=>u(!0)}),(0,d.jsxs)(i.Zp,{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-4",children:[(0,d.jsx)("h2",{className:"text-lg font-semibold",children:"Connections"}),(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:["flow"===a&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(z,{onAdded:async()=>{(0,q.au)("providers:list"),await M()}}),(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"download",onClick:()=>u(!0),children:"Import local profiles"})]}),(0,d.jsx)("span",{className:"text-xs text-text-muted font-medium",children:"Round Robin"}),(0,d.jsx)(i.lM,{checked:"round-robin"===y,onChange:a=>{let b=a?"round-robin":null;A(b),a&&!F&&G("1");let c=a?F||"1":F;I.current=c,H.current&&(clearTimeout(H.current),H.current=null),N(b,c)}}),"round-robin"===y&&(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,d.jsx)("span",{className:"text-xs text-text-muted",children:"Sticky:"}),(0,d.jsx)("input",{type:"number",min:1,value:F,onChange:a=>{G(a.target.value),I.current=a.target.value,H.current&&clearTimeout(H.current),H.current=setTimeout(()=>{N("round-robin",I.current)},500)},className:"w-16 px-2 py-1 text-xs border border-border rounded-md bg-background focus:outline-none focus:border-primary"})]})]})]}),l&&(0,d.jsxs)("div",{className:"mb-4 flex flex-col gap-2 rounded-lg border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-600 dark:border-red-800 dark:bg-red-900/20 dark:text-red-400 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("span",{children:l}),(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"refresh",onClick:()=>{k(!0),M()},children:"Retry"})]}),0!==c.length||l?c.length>0&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("div",{className:"flex flex-col divide-y divide-black/[0.03] dark:divide-white/[0.03]",children:c.map((a,e)=>(0,d.jsx)(B,{connection:a,proxyPools:f,isOAuth:b,isFirst:0===e,isLast:e===c.length-1,onMoveUp:()=>O(e,e-1),onMoveDown:()=>O(e,e+1),onToggleActive:b=>Q(a.id,b),onUpdateProxy:b=>R(a.id,b),onEdit:()=>{w(a),s(!0)},onDelete:()=>P(a.id)},a.id))}),(0,d.jsx)("div",{className:"mt-4 flex justify-stretch sm:justify-start",children:(0,d.jsx)(i.$n,{size:"sm",icon:"add",onClick:()=>o(!0),children:"Add"})})]}):(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,d.jsx)("p",{className:"text-sm text-text-muted",children:"No connections yet"}),(0,d.jsx)("div",{className:"flex gap-2",children:"flow"===a?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(z,{onAdded:async()=>{(0,q.au)("providers:list"),await M()}}),(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"download",onClick:()=>u(!0),children:"Import local profiles"})]}):(0,d.jsx)(i.$n,{size:"sm",icon:"add",onClick:()=>o(!0),children:"Add manually"})})]})]}),n&&(0,d.jsx)(C,{isOpen:!0,provider:a,proxyPools:f,onSave:S,onClose:()=>o(!1)}),"flow"===a&&t&&(0,d.jsx)(D,{isOpen:!0,onImported:async()=>{(0,q.au)("providers:list"),await M()},onClose:()=>u(!1)}),p&&v&&(0,d.jsx)(i.wI,{isOpen:!0,connection:v,proxyPools:f,onSave:T,onClose:()=>s(!1)}),J&&(0,d.jsx)(i.uo,{isOpen:!0,onClose:()=>K(null),onConfirm:J.onConfirm,title:J.title||"Confirm",message:J.message,variant:"danger"})]})}function F({model:a,fullModel:b,copied:c,onCopy:e,testStatus:f,isCustom:g,isFree:h,onDeleteAlias:i,onTest:j,isTesting:k}){let l="ok"===f?"#22c55e":"error"===f?"#ef4444":void 0;return(0,d.jsx)("div",{className:`group px-3 py-2 rounded-lg border ${"ok"===f?"border-green-500/40":"error"===f?"border-red-500/40":"border-border"} hover:bg-sidebar/50`,children:(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-base",style:l?{color:l}:void 0,children:"ok"===f?"check_circle":"error"===f?"cancel":"smart_toy"}),(0,d.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,d.jsx)("code",{className:"text-xs text-text-muted font-mono bg-sidebar px-1.5 py-0.5 rounded",children:b}),a.name&&(0,d.jsx)("span",{className:"text-[9px] text-text-muted/70 italic pl-1",children:a.name})]}),j&&(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:j,disabled:k,className:`p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary transition-opacity ${k?"opacity-100":"opacity-0 group-hover:opacity-100"}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",style:k?{animation:"spin 1s linear infinite"}:void 0,children:k?"progress_activity":"science"})}),(0,d.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:k?"Testing...":"Test"})]}),(0,d.jsxs)("div",{className:"relative group/btn",children:[(0,d.jsx)("button",{onClick:()=>e(b,`model-${a.id}`),className:"p-0.5 hover:bg-sidebar rounded text-text-muted hover:text-primary",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:c===`model-${a.id}`?"check":"content_copy"})}),(0,d.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:c===`model-${a.id}`?"Copied!":"Copy"})]}),h&&(0,d.jsx)("span",{className:"text-[10px] font-bold text-green-500 bg-green-500/10 px-1.5 py-0.5 rounded",children:"FREE"}),g&&(0,d.jsx)("button",{onClick:i,className:"p-0.5 hover:bg-red-500/10 rounded text-text-muted hover:text-red-500 opacity-0 group-hover:opacity-100 transition-opacity ml-auto",title:"Remove custom model",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"close"})})]})})}function G({isOpen:a,onSave:b,onClose:c}){let[e,f]=(0,h.useState)(""),g=()=>{e.trim()&&(b(e.trim()),f(""))};return(0,d.jsx)(i.aF,{isOpen:a,title:"Add Custom Model",onClose:c,children:(0,d.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("label",{className:"text-xs text-text-muted mb-1 block",children:"Model ID"}),(0,d.jsx)("input",{className:"w-full px-3 py-2 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",value:e,onChange:a=>f(a.target.value),onKeyDown:a=>"Enter"===a.key&&g(),placeholder:"e.g. tts-1-hd",autoFocus:!0})]}),(0,d.jsxs)("div",{className:"flex gap-2",children:[(0,d.jsx)(i.$n,{onClick:g,fullWidth:!0,disabled:!e.trim(),children:"Add"}),(0,d.jsx)(i.$n,{onClick:c,variant:"ghost",fullWidth:!0,children:"Cancel"})]})]})})}function H({providerId:a,kindFilter:b,providerAliasOverride:c}){let{copied:e,copy:f}=(0,m.C)(),[g,j]=(0,h.useState)({}),[n,o]=(0,h.useState)([]),[p,s]=(0,h.useState)({}),[t,u]=(0,h.useState)(()=>new Set),[v,w]=(0,h.useState)({}),[x,y]=(0,h.useState)(!1),[z,A]=(0,h.useState)([]),B=c||(0,k.wG)(a),C=b||"llm",D=(0,h.useCallback)(async()=>{try{let[b,c,d]=await Promise.all([(0,q.b7)("models:aliases",r.QF),(0,q.b7)("providers:list",r.t7),(0,q.b7)("models:custom",r.Mi)]);j(b.aliases||{}),A((c.connections||[]).filter(b=>b.provider===a)),o(d.models||[])}catch(a){console.log("ModelsCard fetch error:",a)}},[a]),E=async(a,b)=>{let c=`${B}/${a}`;try{(await fetch("/api/models/alias",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:c,alias:b})})).ok&&((0,q.au)("models:aliases"),await D())}catch(a){console.log("set alias error:",a)}},I=async a=>{try{(await fetch(`/api/models/alias?alias=${encodeURIComponent(a)}`,{method:"DELETE"})).ok&&((0,q.au)("models:aliases"),await D())}catch(a){console.log("delete alias error:",a)}},J=async a=>{try{(await fetch("/api/models/custom",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerAlias:B,id:a,type:C})})).ok&&((0,q.au)("models:custom"),await D(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(a){console.log("add custom model error:",a)}},K=async a=>{try{let b=new URLSearchParams({providerAlias:B,id:a,type:C});(await fetch(`/api/models/custom?${b}`,{method:"DELETE"})).ok&&((0,q.au)("models:custom"),await D(),window.dispatchEvent(new CustomEvent("customModelChanged")))}catch(a){console.log("delete custom model error:",a)}},L=async a=>{u(b=>new Set(b).add(a));try{let c=await fetch("/api/models/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({model:`${B}/${a}`,kind:b})}),d=await c.json();s(b=>({...b,[a]:d.ok?"ok":"error"})),w(b=>({...b,[a]:d.ok?"":d.error||"Model not reachable"}))}catch{s(b=>({...b,[a]:"error"})),w(b=>({...b,[a]:"Network error"}))}finally{u(b=>{let c=new Set(b);return c.delete(a),c})}},M=(0,l.KC)(a),N=b?M.filter(a=>a.kinds?a.kinds.includes(b):(a.type||"llm")===b):M,O=n.filter(a=>a.providerAlias===B&&(a.type||"llm")===C&&!N.some(b=>b.id===a.id)),P=(0,h.useMemo)(()=>{let a={};for(let[b,c]of Object.entries(g))c in a||(a[c]=b);return a},[g]);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("div",{className:"flex items-center justify-between mb-4",children:(0,d.jsxs)("h2",{className:"text-lg font-semibold",children:["Models",b?` — ${b.toUpperCase()}`:""]})}),Object.values(v).some(Boolean)&&(0,d.jsx)("div",{className:"mb-3 space-y-1",children:Object.entries(v).filter(([,a])=>!!a).map(([a,b])=>(0,d.jsxs)("p",{className:"break-words text-xs text-red-500",children:[a,": ",b]},a))}),(0,d.jsxs)("div",{className:"flex flex-wrap gap-3",children:[N.map(a=>{let b=P[`${B}/${a.id}`];return(0,d.jsx)(F,{model:a,fullModel:`${B}/${a.id}`,alias:b,copied:e,onCopy:f,onSetAlias:b=>E(a.id,b),onDeleteAlias:()=>I(b),testStatus:p[a.id],onTest:z.length>0?()=>L(a.id):void 0,isTesting:t.has(a.id),isFree:a.isFree},a.id)}),O.map(a=>(0,d.jsx)(F,{model:{id:a.id,name:a.name},fullModel:`${B}/${a.id}`,copied:e,onCopy:f,onSetAlias:()=>{},onDeleteAlias:()=>K(a.id),testStatus:p[a.id],onTest:z.length>0?()=>L(a.id):void 0,isTesting:t.has(a.id),isCustom:!0},`${a.id}-${a.type}`)),(0,d.jsxs)("button",{onClick:()=>y(!0),className:"flex items-center gap-1.5 px-3 py-2 rounded-lg border border-dashed border-black/15 dark:border-white/15 text-xs text-text-muted hover:text-primary hover:border-primary/40 transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"add"}),"Add Model"]})]})]}),(0,d.jsx)(G,{isOpen:x,onSave:async a=>{await J(a),y(!1)},onClose:()=>y(!1)})]})}z.propTypes={onAdded:o().func,variant:o().string,size:o().string,label:o().string},A.propTypes={until:o().string.isRequired},B.propTypes={connection:o().shape({id:o().string,name:o().string,email:o().string,displayName:o().string,testStatus:o().string,isActive:o().bool,lastError:o().string,priority:o().number}).isRequired,proxyPools:o().array,isOAuth:o().bool.isRequired,isFirst:o().bool.isRequired,isLast:o().bool.isRequired,onMoveUp:o().func.isRequired,onMoveDown:o().func.isRequired,onToggleActive:o().func.isRequired,onUpdateProxy:o().func,onEdit:o().func.isRequired,onDelete:o().func.isRequired},C.propTypes={isOpen:o().bool.isRequired,provider:o().string,providerName:o().string,proxyPools:o().array,onSave:o().func.isRequired,onClose:o().func.isRequired},D.propTypes={isOpen:o().bool.isRequired,onImported:o().func.isRequired,onClose:o().func.isRequired},E.propTypes={providerId:o().string.isRequired,isOAuth:o().bool},F.propTypes={model:o().shape({id:o().string.isRequired}).isRequired,fullModel:o().string.isRequired,copied:o().string,onCopy:o().func.isRequired,testStatus:o().oneOf(["ok","error"]),isCustom:o().bool,isFree:o().bool,onDeleteAlias:o().func,onTest:o().func,isTesting:o().bool},G.propTypes={isOpen:o().bool.isRequired,onSave:o().func.isRequired,onClose:o().func.isRequired},H.propTypes={providerId:o().string.isRequired,kindFilter:o().string,providerAliasOverride:o().string};let I={"google-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"hardcoded"},openai:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openai-tts-models",voiceKey:"openai-tts-voices",voicesPerModel:!0},openrouter:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"openrouter-tts-models",voiceKey:"openrouter-tts-voices",voicesPerModel:!0},elevenlabs:{hasLanguageDropdown:!1,hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"elevenlabs-tts-models",apiEndpoint:"/api/media-providers/tts/elevenlabs/voices"},"edge-tts":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},"local-device":{hasLanguageDropdown:!1,hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language"},nvidia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},hyperbolic:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},deepgram:{hasModelSelector:!1,hasBrowseButton:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/deepgram/voices"},huggingface:{hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"config"},cartesia:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},playht:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},coqui:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},tortoise:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},inworld:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",modelKey:"inworld-tts-models",apiEndpoint:"/api/media-providers/tts/inworld/voices"},qwen:{hasModelSelector:!0,hasBrowseButton:!1,hasVoiceIdInput:!0,voiceSource:"config"},minimax:{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices",defaultVoiceId:"English_expressive_narrator"},"minimax-cn":{hasModelSelector:!0,hasBrowseButton:!0,hasVoiceIdInput:!0,voiceSource:"api-language",apiEndpoint:"/api/media-providers/tts/minimax/voices?provider=minimax-cn",defaultVoiceId:"English_expressive_narrator"},gemini:{hasLanguageDropdown:!1,hasLanguageHint:!0,hasModelSelector:!0,hasBrowseButton:!1,voiceSource:"hardcoded",modelKey:"gemini-tts-models",voiceKey:"gemini-tts-voices",voicesPerModel:!0}};c(68019);var J=c(34973),K=c(73661);let L=new Set(["done","failed","completed","error","expired","cancelled"]),M=new Set(["failed","error","expired","cancelled"]);async function N({requestId:a,connectionId:b,signal:c,fetchImpl:d=fetch,pollIntervalMs:e=3e3,timeoutMs:f=6e5,onProgress:g}){if(!a)throw Error("Video response did not include a request id");let h=(0,K.x)(String(a));if(!h)throw Error("Video response included an invalid request id");let i=Date.now()+f;for(;Date.now()<=i;){if(c?.aborted)throw new DOMException("Video polling aborted","AbortError");let a={Accept:"application/json"};b&&(a["x-connection-id"]=b);let f=await d(h,{method:"GET",headers:a,signal:c}),i=await f.json().catch(()=>({}));if(f.ok){let a=String(i?.status||"pending").toLowerCase();if(g?.({status:a,progress:i?.progress}),M.has(a)){let a=i?.error?.message||i?.error||"Video generation failed";throw Error("string"==typeof a?a:JSON.stringify(a))}if(L.has(a))return i}else if(429!==f.status&&503!==f.status){let a=i?.error?.message||i?.error||`Video polling failed (HTTP ${f.status})`;throw Error("string"==typeof a?a:JSON.stringify(a))}await function(a,b){return new Promise((c,d)=>{let e=()=>{clearTimeout(f),d(new DOMException("Video polling aborted","AbortError"))},f=setTimeout(()=>{b?.removeEventListener("abort",e),c()},a);b?.addEventListener("abort",e,{once:!0})})}(e,c)}throw Error("Timed out while waiting for the video job")}function O({label:a,children:b}){return(0,d.jsxs)("div",{className:"flex min-w-0 flex-col gap-1.5 sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"w-full text-xs font-medium text-text-muted sm:w-20 sm:shrink-0",children:a}),(0,d.jsx)("div",{className:"w-full min-w-0 flex-1",children:b})]})}let P=`// Audio will appear here after running.
2
2
  // Example JSON response (response_format=json):
3
3
  {
4
4
  "format": "mp3",
5
5
  "audio": "//NExAANaAIIAUAAANNNNNNNN..." // base64 encoded MP3
6
- }`,O=`{
6
+ }`,Q=`{
7
7
  "object": "list",
8
8
  "data": [{
9
9
  "object": "embedding",
@@ -12,7 +12,7 @@
12
12
  }],
13
13
  "model": "...",
14
14
  "usage": { "prompt_tokens": 9, "total_tokens": 9 }
15
- }`,P="https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog.png";function Q(a){let b="string"==typeof a?a.trim():"";return b?/^(data:image\/|https?:\/\/)/i.test(b)?b:`data:image/png;base64,${b}`:""}let R={webSearch:{inputLabel:"Query",inputPlaceholder:"What is the latest news about AI?",defaultInput:"What is the latest news about AI?",bodyKey:"query",defaultResponse:`{
15
+ }`,R="https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog.png";function S(a){let b="string"==typeof a?a.trim():"";return b?/^(data:image\/|https?:\/\/)/i.test(b)?b:`data:image/png;base64,${b}`:""}let T={webSearch:{inputLabel:"Query",inputPlaceholder:"What is the latest news about AI?",defaultInput:"What is the latest news about AI?",bodyKey:"query",defaultResponse:`{
16
16
  "results": [
17
17
  { "title": "...", "url": "...", "snippet": "..." }
18
18
  ]
@@ -34,25 +34,25 @@
34
34
  "data": [
35
35
  { "url": "...", "format": "mp3" }
36
36
  ]
37
- }`}};function S({providerId:a,customAlias:b}){let c=(0,k.gC)(a),e=c?b||a:(0,k.wG)(a),f=c?[]:(0,l.KC)(a).filter(a=>"embedding"===a.type),[g,j]=(0,h.useState)(f[0]?.id??""),[n,o]=(0,h.useState)("The quick brown fox jumps over the lazy dog"),[p,q]=(0,h.useState)(""),[r,s]=(0,h.useState)(""),[t,u]=(0,h.useState)(!1),[v,w]=(0,h.useState)(""),[x,y]=(0,h.useState)(""),[z,A]=(0,h.useState)(null),[B,C]=(0,h.useState)(!1),[D,E]=(0,h.useState)(""),{copied:F,copy:G}=(0,m.C)(),{copied:H,copy:J}=(0,m.C)(),K=t?x:v,L=g?`${e}/${g}`:"",N=()=>{let a={model:L,input:n.trim()},b=Number(p);return p&&Number.isFinite(b)&&b>0&&(a.dimensions=b),a},P=`curl -X POST ${K}/v1/embeddings \\
37
+ }`}};function U({providerId:a,customAlias:b}){let c=(0,k.gC)(a),e=c?b||a:(0,k.wG)(a),f=c?[]:(0,l.KC)(a).filter(a=>"embedding"===a.type),[g,j]=(0,h.useState)(f[0]?.id??""),[n,o]=(0,h.useState)("The quick brown fox jumps over the lazy dog"),[p,q]=(0,h.useState)(""),[r,s]=(0,h.useState)(""),[t,u]=(0,h.useState)(!1),[v,w]=(0,h.useState)(""),[x,y]=(0,h.useState)(""),[z,A]=(0,h.useState)(null),[B,C]=(0,h.useState)(!1),[D,E]=(0,h.useState)(""),{copied:F,copy:G}=(0,m.C)(),{copied:H,copy:I}=(0,m.C)(),J=t?x:v,L=g?`${e}/${g}`:"",M=()=>{let a={model:L,input:n.trim()},b=Number(p);return p&&Number.isFinite(b)&&b>0&&(a.dimensions=b),a},N=`curl -X POST ${J}/v1/embeddings \\
38
38
  -H "Content-Type: application/json" \\
39
39
  -H "Authorization: Bearer ${r||"YOUR_KEY"}" \\
40
- -d '${JSON.stringify(N())}'`,Q=async()=>{if(!n.trim()||!L)return;C(!0),E(""),A(null);let a=Date.now();try{let b={"Content-Type":"application/json"};r&&(b.Authorization=`Bearer ${r}`);let c=await fetch((0,I.O)("/v1/embeddings"),{method:"POST",headers:b,body:JSON.stringify(N())}),d=Date.now()-a,e=await c.json().catch(()=>null);if(!c.ok)return void E(e?.error?.message||e?.error||`HTTP ${c.status}`);if(null==e)return void E("Invalid response from server");A({data:e,latencyMs:d})}catch(a){E(a.message||"Network error")}finally{C(!1)}},R=z?JSON.stringify(z.data,null,2):"";return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,d.jsx)(M,{label:"Model",children:c?(0,d.jsx)("input",{value:g,onChange:a=>j(a.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"}):(0,d.jsx)("select",{value:g,onChange:a=>j(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:f.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,d.jsx)(M,{label:"Endpoint",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)("input",{value:K,onChange:a=>t?y(a.target.value):w(a.target.value),className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono",placeholder:"http://localhost:3000"}),x&&(0,d.jsxs)("button",{onClick:()=>u(a=>!a),title:t?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${t?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,d.jsx)(M,{label:"API Key",children:(0,d.jsx)("input",{type:"password",value:r,onChange:a=>s(a.target.value),placeholder:"sk-...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),(0,d.jsx)(M,{label:"Input",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:n,onChange:a=>o(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),n&&(0,d.jsx)("button",{type:"button",onClick:()=>o(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),(0,d.jsx)(M,{label:"Dimensions",children:(0,d.jsx)("input",{type:"number",min:"1",value:p,onChange:a=>q(a.target.value),placeholder:"optional, e.g. 512, 1024 (leave empty for default)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>G(P),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:F?"check":"content_copy"}),F?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:Q,disabled:B||!n.trim()||!L,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:B?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),B?"Running...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:P})]}),D&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:D}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",z&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",z.latencyMs,"ms"]})]}),z&&(0,d.jsxs)("button",{onClick:()=>J(R),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:H?"check":"content_copy"}),H?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:(a=>{if(!a)return O;let b=JSON.parse(JSON.stringify(a));return(b.data||[]).forEach(a=>{Array.isArray(a.embedding)&&a.embedding.length>4&&(a.embedding=[...a.embedding.slice(0,4).map(a=>parseFloat(a.toFixed(6))),`... (${a.embedding.length} dims)`])}),JSON.stringify(b,null,2)})(z?.data)})]})]})]})}function T({providerId:a}){let b,c=(0,k.wG)(a),e=G[a]||G["edge-tts"],[f,g]=(0,h.useState)(e.defaultVoiceId||""),[j,n]=(0,h.useState)(""),[o,p]=(0,h.useState)(e.defaultVoiceId||""),[q,r]=(0,h.useState)([]),[s,t]=(0,h.useState)(""),[u,v]=(0,h.useState)(()=>{let b=k.Q2[a]?.ttsConfig?.models;if(b?.length)return b[0].id;if(e.hasModelSelector&&e.modelKey){let a=(0,l.KC)(e.modelKey);return a?.[0]?.id||""}return""}),[w,x]=(0,h.useState)("Hello, this is a text to speech test."),[y,z]=(0,h.useState)(!1),[A,B]=(0,h.useState)(""),[C,D]=(0,h.useState)(""),[E,F]=(0,h.useState)("mp3"),[J,K]=(0,h.useState)(""),[L,O]=(0,h.useState)(null),[P,Q]=(0,h.useState)(!1),[R,S]=(0,h.useState)(""),[U,V]=(0,h.useState)(null),{copied:W,copy:X}=(0,m.C)(),Y=(0,h.useRef)(""),[Z,$]=(0,h.useState)(!1),[_,aa]=(0,h.useState)([]),[ab,ac]=(0,h.useState)(!1),[ad,ae]=(0,h.useState)(""),[af,ag]=(0,h.useState)(""),[ah,ai]=(0,h.useState)({}),[aj,ak]=(0,h.useState)(""),al=async()=>{if($(!0),ae(""),ag(""),!_.length){ac(!0);try{if("hardcoded"===e.voiceSource){let b=e.voiceKey||a,c=(0,l.KC)(b).filter(a=>"tts"===a.type),d={};for(let a of c)d[a.id]||(d[a.id]={code:a.id,name:a.name,voices:[{id:a.id,name:a.name}]});ai(d),aa(Object.values(d).sort((a,b)=>a.name.localeCompare(b.name)))}else{let b=e.apiEndpoint?e.apiEndpoint:`/api/media-providers/tts/voices?provider=${"local-device"===a?"local-device":"edge-tts"}`,c=await fetch(b),d=await c.json();if(d.error)return void ag(d.error);aa(d.languages||[]),ai(d.byLang||{})}}catch(a){ag(a.message)}finally{ac(!1)}}},am=ad?_.filter(a=>a.name.toLowerCase().includes(ad.toLowerCase())||a.code.toLowerCase().includes(ad.toLowerCase())):_,an=y?C:A,ao=e.hasVoiceIdInput&&o||f,ap=e.hasModelSelector&&u&&ao?`${c}/${u}/${ao}`:e.hasModelSelector&&u?`${c}/${u}`:ao?`${c}/${ao}`:"",aq=(b={model:ap,input:w},e.hasLanguageHint&&aj&&(b.language=aj),b),ar=`curl -X POST ${an}/v1/audio/speech${"json"===E?"?response_format=json":""} \\
40
+ -d '${JSON.stringify(M())}'`,P=async()=>{if(!n.trim()||!L)return;C(!0),E(""),A(null);let a=Date.now();try{let b={"Content-Type":"application/json"};r&&(b.Authorization=`Bearer ${r}`);let c=await fetch((0,K.O)("/v1/embeddings"),{method:"POST",headers:b,body:JSON.stringify(M())}),d=Date.now()-a,e=await c.json().catch(()=>null);if(!c.ok)return void E(e?.error?.message||e?.error||`HTTP ${c.status}`);if(null==e)return void E("Invalid response from server");A({data:e,latencyMs:d})}catch(a){E(a.message||"Network error")}finally{C(!1)}},R=z?JSON.stringify(z.data,null,2):"";return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,d.jsx)(O,{label:"Model",children:c?(0,d.jsx)("input",{value:g,onChange:a=>j(a.target.value),placeholder:"e.g. voyage-3, embed-english-v3.0, text-embedding-3-small",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"}):(0,d.jsx)("select",{value:g,onChange:a=>j(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:f.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,d.jsx)(O,{label:"Endpoint",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)("input",{value:J,onChange:a=>t?y(a.target.value):w(a.target.value),className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono",placeholder:"http://localhost:3000"}),x&&(0,d.jsxs)("button",{onClick:()=>u(a=>!a),title:t?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${t?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,d.jsx)(O,{label:"API Key",children:(0,d.jsx)("input",{type:"password",value:r,onChange:a=>s(a.target.value),placeholder:"sk-...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),(0,d.jsx)(O,{label:"Input",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:n,onChange:a=>o(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),n&&(0,d.jsx)("button",{type:"button",onClick:()=>o(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),(0,d.jsx)(O,{label:"Dimensions",children:(0,d.jsx)("input",{type:"number",min:"1",value:p,onChange:a=>q(a.target.value),placeholder:"optional, e.g. 512, 1024 (leave empty for default)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>G(N),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:F?"check":"content_copy"}),F?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:P,disabled:B||!n.trim()||!L,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:B?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),B?"Running...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:N})]}),D&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:D}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",z&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",z.latencyMs,"ms"]})]}),z&&(0,d.jsxs)("button",{onClick:()=>I(R),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:H?"check":"content_copy"}),H?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:(a=>{if(!a)return Q;let b=JSON.parse(JSON.stringify(a));return(b.data||[]).forEach(a=>{Array.isArray(a.embedding)&&a.embedding.length>4&&(a.embedding=[...a.embedding.slice(0,4).map(a=>parseFloat(a.toFixed(6))),`... (${a.embedding.length} dims)`])}),JSON.stringify(b,null,2)})(z?.data)})]})]})]})}function V({providerId:a}){let b,c=(0,k.wG)(a),e=I[a]||I["edge-tts"],[f,g]=(0,h.useState)(e.defaultVoiceId||""),[j,n]=(0,h.useState)(""),[o,p]=(0,h.useState)(e.defaultVoiceId||""),[q,r]=(0,h.useState)([]),[s,t]=(0,h.useState)(""),[u,v]=(0,h.useState)(()=>{let b=k.Q2[a]?.ttsConfig?.models;if(b?.length)return b[0].id;if(e.hasModelSelector&&e.modelKey){let a=(0,l.KC)(e.modelKey);return a?.[0]?.id||""}return""}),[w,x]=(0,h.useState)("Hello, this is a text to speech test."),[y,z]=(0,h.useState)(!1),[A,B]=(0,h.useState)(""),[C,D]=(0,h.useState)(""),[E,F]=(0,h.useState)("mp3"),[G,H]=(0,h.useState)(""),[L,M]=(0,h.useState)(null),[N,Q]=(0,h.useState)(!1),[R,S]=(0,h.useState)(""),[T,U]=(0,h.useState)(null),{copied:W,copy:X}=(0,m.C)(),Y=(0,h.useRef)(""),[Z,$]=(0,h.useState)(!1),[_,aa]=(0,h.useState)([]),[ab,ac]=(0,h.useState)(!1),[ad,ae]=(0,h.useState)(""),[af,ag]=(0,h.useState)(""),[ah,ai]=(0,h.useState)({}),[aj,ak]=(0,h.useState)(""),al=async()=>{if($(!0),ae(""),ag(""),!_.length){ac(!0);try{if("hardcoded"===e.voiceSource){let b=e.voiceKey||a,c=(0,l.KC)(b).filter(a=>"tts"===a.type),d={};for(let a of c)d[a.id]||(d[a.id]={code:a.id,name:a.name,voices:[{id:a.id,name:a.name}]});ai(d),aa(Object.values(d).sort((a,b)=>a.name.localeCompare(b.name)))}else{let b=e.apiEndpoint?e.apiEndpoint:`/api/media-providers/tts/voices?provider=${"local-device"===a?"local-device":"edge-tts"}`,c=await fetch(b),d=await c.json();if(d.error)return void ag(d.error);aa(d.languages||[]),ai(d.byLang||{})}}catch(a){ag(a.message)}finally{ac(!1)}}},am=ad?_.filter(a=>a.name.toLowerCase().includes(ad.toLowerCase())||a.code.toLowerCase().includes(ad.toLowerCase())):_,an=y?C:A,ao=e.hasVoiceIdInput&&o||f,ap=e.hasModelSelector&&u&&ao?`${c}/${u}/${ao}`:e.hasModelSelector&&u?`${c}/${u}`:ao?`${c}/${ao}`:"",aq=(b={model:ap,input:w},e.hasLanguageHint&&aj&&(b.language=aj),b),ar=`curl -X POST ${an}/v1/audio/speech${"json"===E?"?response_format=json":""} \\
41
41
  -H "Content-Type: application/json" \\
42
42
  -H "Authorization: Bearer YOUR_KEY" \\
43
43
  -d '${JSON.stringify(aq)}' \\
44
- ${"json"===E?"":"--output speech.mp3"}`,as=async()=>{if(!w.trim()||!ap)return;if(Q(!0),S(""),Y.current){try{URL.revokeObjectURL(Y.current)}catch{}Y.current=""}K(""),O(null);let a=Date.now();try{let b=(0,I.O)(`/v1/audio/speech${"json"===E?"?response_format=json":""}`),c=await fetch(b,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...aq,input:w.trim()})});if(V(Date.now()-a),!c.ok){let a=await c.json().catch(()=>({}));S(a?.error?.message||a?.error||`HTTP ${c.status}`);return}if("json"===E){let a=await c.json().catch(()=>null);if(!a||"string"!=typeof a.audio||!a.audio)return void S(a?.error?.message||a?.error||"TTS response did not include audio data");O(a);let b=await fetch(`data:audio/mp3;base64,${a.audio}`).then(a=>a.blob()),d=URL.createObjectURL(b);Y.current=d,K(d)}else{let a=await c.blob(),b=URL.createObjectURL(a);Y.current=b,K(b)}}catch(a){S(a.message||"Network error")}finally{Q(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,d.jsx)(M,{label:"Endpoint",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[an,"/v1/audio/speech"]}),C&&(0,d.jsxs)("button",{onClick:()=>z(a=>!a),title:y?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${y?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,d.jsx)(M,{label:"API Key",children:(0,d.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:(0,d.jsx)("span",{className:"text-text-muted italic",children:"Dashboard session (server-side)"})})}),e.hasModelSelector&&(e.modelKey||k.Q2[a]?.ttsConfig?.models?.length)&&(0,d.jsx)(M,{label:"Model",children:(0,d.jsx)("select",{value:u,onChange:a=>v(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:((k.Q2[a]?.ttsConfig?.models?.length?k.Q2[a].ttsConfig.models:(0,l.KC)(e.modelKey))||[]).map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),e.hasLanguageHint&&(0,d.jsx)(M,{label:"Language",children:(0,d.jsxs)("select",{value:aj,onChange:a=>ak(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"Auto-detect"}),H.I.map(a=>(0,d.jsx)("option",{value:a.name,children:a.name},a.id))]})}),e.hasBrowseButton&&(0,d.jsx)(M,{label:"Language",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)("button",{onClick:al,className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-background font-mono truncate text-left hover:border-primary/40 transition-colors",children:s?(0,d.jsx)("span",{className:"text-text-main",children:_.find(a=>a.code===s)?.name||s}):(0,d.jsx)("span",{className:"text-text-muted",children:"No language selected"})}),(0,d.jsxs)("button",{onClick:al,className:"flex w-full items-center justify-center gap-1 text-xs px-2.5 py-1.5 rounded-lg border border-border text-text-muted hover:text-primary hover:border-primary/40 transition-colors sm:w-auto sm:shrink-0",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"language"}),"Select language"]})]})}),q.length>0&&(0,d.jsx)(M,{label:"Voice",children:(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:q.map(a=>(0,d.jsxs)("button",{onClick:()=>{g(a.id),n(a.name),e.hasVoiceIdInput&&p(a.id)},className:`px-2.5 py-1 rounded-full text-xs border transition-colors ${f===a.id?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:[a.name,a.gender?` \xb7 ${a.gender[0].toUpperCase()}`:"",!0===a.free_users_allowed&&(0,d.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-green-500/15 text-green-600 border border-green-500/20",children:"Free"}),!1===a.free_users_allowed&&(0,d.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-amber-500/15 text-amber-600 border border-amber-500/20",children:"Paid"})]},a.id))})}),e.hasVoiceIdInput&&(0,d.jsx)(M,{label:"Voice ID",children:(0,d.jsx)("div",{className:"flex flex-col gap-1",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:o,onChange:a=>{p(a.target.value),g(a.target.value)},placeholder:"e.g. CwhRBWXzGAHq8TQ4Fs17",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"}),o&&(0,d.jsx)("button",{type:"button",onClick:()=>{p(""),g("")},className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})})}),e.hasLanguageDropdown&&(0,d.jsx)(M,{label:"Language",children:(0,d.jsx)("select",{value:f,onChange:b=>{let c=(0,l.KC)(a).filter(a=>"tts"===a.type).find(a=>a.id===b.target.value);g(b.target.value),n(c?.name||b.target.value)},className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:(0,l.KC)(a).filter(a=>"tts"===a.type).map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,d.jsx)(M,{label:"Input",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:w,onChange:a=>x(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),w&&(0,d.jsx)("button",{type:"button",onClick:()=>x(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),(0,d.jsx)(M,{label:"Output Format",children:(0,d.jsxs)("select",{value:E,onChange:a=>F(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"mp3",children:"MP3 (Binary)"}),(0,d.jsx)("option",{value:"json",children:"JSON (Base64)"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>X(ar),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:W?"check":"content_copy"}),W?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:as,disabled:P||!w.trim()||!ap,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:P?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),P?"Generating...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:ar})]}),R&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:R}),J?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",U&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",U,"ms"]})]}),(0,d.jsxs)("a",{href:J,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})]}),(0,d.jsx)("audio",{controls:!0,src:J,className:"w-full"}),L&&(0,d.jsxs)("div",{className:"mt-3",children:[(0,d.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"JSON Response"})}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:JSON.stringify({format:L.format,audio:L.audio?`${L.audio.substring(0,100)}...`:""},null,2)})]})]}):(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Response"}),(0,d.jsx)("pre",{className:"mt-1.5 bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-50",children:N})]})]})]}),Z&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",style:{backgroundColor:"rgba(0,0,0,0.6)",backdropFilter:"blur(2px)"},onClick:()=>$(!1),children:(0,d.jsxs)("div",{className:"border border-border rounded-xl shadow-2xl w-full max-w-md mx-4 flex flex-col max-h-[80vh]",style:{backgroundColor:"var(--color-bg)",isolation:"isolate"},onClick:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0 rounded-t-xl",children:[(0,d.jsx)("h3",{className:"text-sm font-semibold",children:"Select Language"}),(0,d.jsx)("button",{onClick:()=>$(!1),className:"text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,d.jsx)("div",{className:"px-4 py-2.5 border-b border-border shrink-0",children:(0,d.jsx)("input",{autoFocus:!0,value:ad,onChange:a=>ae(a.target.value),placeholder:"Search language...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),(0,d.jsxs)("div",{className:"overflow-y-auto flex-1 p-2",children:[af&&(0,d.jsx)("p",{className:"text-xs text-red-500 px-2 py-1",children:af}),ab?(0,d.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"Loading..."}):(0,d.jsxs)("div",{className:"flex flex-col gap-0.5",children:[am.map(a=>(0,d.jsxs)("button",{onClick:()=>{let b;return $(!1),t(a.code),void(r(b=ah[a.code]?.voices||[]),b.length&&(g(b[0].id),n(b[0].name),e.hasVoiceIdInput&&p(b[0].id)))},className:`flex items-center justify-between w-full px-3 py-2 rounded-lg text-left hover:bg-sidebar transition-colors ${s===a.code?"bg-primary/10 text-primary":""}`,children:[(0,d.jsx)("span",{className:"text-sm",children:a.name}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[a.voices.length," voices"]}),s===a.code&&(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check"})]})]},a.code)),0===am.length&&(0,d.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"No languages found."})]})]})]})})]})}function U({providerId:a,kind:b}){var c;let e=(0,k.wG)(a),f=(0,k.rs)(e)===a?e:a,g=k.rj.find(a=>a.id===b),j=R[b],n=j||{},o=(0,l.KC)(a).filter(a=>a.type===b),p=new Set(["image","video","music","imageToText"]).has(b),q=p&&0===o.length,[r,s]=(0,h.useState)(o[0]?.id??""),t=o.find(a=>a.id===r),u=!!t?.capabilities?.includes("edit"),v=!!t?.capabilities?.includes("mask"),[w,x]=(0,h.useState)(n.defaultInput||""),[y,z]=(0,h.useState)(""),[A,B]=(0,h.useState)(""),[C,D]=(0,h.useState)(()=>(n.extraFields||[]).reduce((a,b)=>(a[b.key]=b.default??"",a),{})),[E,F]=(0,h.useState)(!1),[G,H]=(0,h.useState)(""),[J,K]=(0,h.useState)(""),[N,O]=(0,h.useState)(null),[S,T]=(0,h.useState)(null),[V,W]=(0,h.useState)(null),[X,Y]=(0,h.useState)("json"),[Z,$]=(0,h.useState)(""),[_,aa]=(0,h.useState)(!1),[ab,ac]=(0,h.useState)(""),[ad,ae]=(0,h.useState)([]),[af,ag]=(0,h.useState)(""),{copied:ah,copy:ai}=(0,m.C)(),{copied:aj,copy:ak}=(0,m.C)(),al=(0,h.useRef)(null);if(!g||!j)return null;let am=E?J:G,an=g.endpoint.path,ao=p?r?`${f}/${r}`:q?"":f:f,ap="cloudflare-ai"!==a?{}:"@cf/runwayml/stable-diffusion-v1-5-img2img"===r?{image:P}:"@cf/runwayml/stable-diffusion-v1-5-inpainting"===r?{image:P,mask_image:"https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog-mask.png"}:{},aq=y.trim()||ap.image||"",ar=A.trim()||ap.mask_image||"",as=Q(aq),at=Q(ar),au=Object.entries(C).reduce((a,[b,c])=>(""===c||null==c||"number"==typeof c&&Number.isNaN(c)||(a[b]=c),a),{}),av={model:ao,[j.bodyKey]:w,...j.extraBody,...au,...u&&aq?{image:aq}:{},...v&&ar?{mask_image:ar}:{}},aw="image"===b&&"binary"===X,ax="image"===b&&"codex"===a&&!aw,ay=`${an}${aw?"?response_format=binary":""}`,az=(0,I.O)(ay),aA=`-H "Content-Type: application/json" \\
44
+ ${"json"===E?"":"--output speech.mp3"}`,as=async()=>{if(!w.trim()||!ap)return;if(Q(!0),S(""),Y.current){try{URL.revokeObjectURL(Y.current)}catch{}Y.current=""}H(""),M(null);let a=Date.now();try{let b=(0,K.O)(`/v1/audio/speech${"json"===E?"?response_format=json":""}`),c=await fetch(b,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...aq,input:w.trim()})});if(U(Date.now()-a),!c.ok){let a=await c.json().catch(()=>({}));S(a?.error?.message||a?.error||`HTTP ${c.status}`);return}if("json"===E){let a=await c.json().catch(()=>null);if(!a||"string"!=typeof a.audio||!a.audio)return void S(a?.error?.message||a?.error||"TTS response did not include audio data");M(a);let b=await fetch(`data:audio/mp3;base64,${a.audio}`).then(a=>a.blob()),d=URL.createObjectURL(b);Y.current=d,H(d)}else{let a=await c.blob(),b=URL.createObjectURL(a);Y.current=b,H(b)}}catch(a){S(a.message||"Network error")}finally{Q(!1)}};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[(0,d.jsx)(O,{label:"Endpoint",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[an,"/v1/audio/speech"]}),C&&(0,d.jsxs)("button",{onClick:()=>z(a=>!a),title:y?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${y?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,d.jsx)(O,{label:"API Key",children:(0,d.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:(0,d.jsx)("span",{className:"text-text-muted italic",children:"Dashboard session (server-side)"})})}),e.hasModelSelector&&(e.modelKey||k.Q2[a]?.ttsConfig?.models?.length)&&(0,d.jsx)(O,{label:"Model",children:(0,d.jsx)("select",{value:u,onChange:a=>v(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:((k.Q2[a]?.ttsConfig?.models?.length?k.Q2[a].ttsConfig.models:(0,l.KC)(e.modelKey))||[]).map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),e.hasLanguageHint&&(0,d.jsx)(O,{label:"Language",children:(0,d.jsxs)("select",{value:aj,onChange:a=>ak(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"Auto-detect"}),J.I.map(a=>(0,d.jsx)("option",{value:a.name,children:a.name},a.id))]})}),e.hasBrowseButton&&(0,d.jsx)(O,{label:"Language",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)("button",{onClick:al,className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm border border-border rounded-lg bg-background font-mono truncate text-left hover:border-primary/40 transition-colors",children:s?(0,d.jsx)("span",{className:"text-text-main",children:_.find(a=>a.code===s)?.name||s}):(0,d.jsx)("span",{className:"text-text-muted",children:"No language selected"})}),(0,d.jsxs)("button",{onClick:al,className:"flex w-full items-center justify-center gap-1 text-xs px-2.5 py-1.5 rounded-lg border border-border text-text-muted hover:text-primary hover:border-primary/40 transition-colors sm:w-auto sm:shrink-0",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"language"}),"Select language"]})]})}),q.length>0&&(0,d.jsx)(O,{label:"Voice",children:(0,d.jsx)("div",{className:"flex flex-wrap gap-1.5",children:q.map(a=>(0,d.jsxs)("button",{onClick:()=>{g(a.id),n(a.name),e.hasVoiceIdInput&&p(a.id)},className:`px-2.5 py-1 rounded-full text-xs border transition-colors ${f===a.id?"bg-primary/15 border-primary/40 text-primary font-medium":"border-border text-text-muted hover:text-primary hover:border-primary/40"}`,children:[a.name,a.gender?` \xb7 ${a.gender[0].toUpperCase()}`:"",!0===a.free_users_allowed&&(0,d.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-green-500/15 text-green-600 border border-green-500/20",children:"Free"}),!1===a.free_users_allowed&&(0,d.jsx)("span",{className:"ml-1.5 px-1 py-0.5 text-[9px] font-semibold rounded bg-amber-500/15 text-amber-600 border border-amber-500/20",children:"Paid"})]},a.id))})}),e.hasVoiceIdInput&&(0,d.jsx)(O,{label:"Voice ID",children:(0,d.jsx)("div",{className:"flex flex-col gap-1",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:o,onChange:a=>{p(a.target.value),g(a.target.value)},placeholder:"e.g. CwhRBWXzGAHq8TQ4Fs17",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"}),o&&(0,d.jsx)("button",{type:"button",onClick:()=>{p(""),g("")},className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})})}),e.hasLanguageDropdown&&(0,d.jsx)(O,{label:"Language",children:(0,d.jsx)("select",{value:f,onChange:b=>{let c=(0,l.KC)(a).filter(a=>"tts"===a.type).find(a=>a.id===b.target.value);g(b.target.value),n(c?.name||b.target.value)},className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:(0,l.KC)(a).filter(a=>"tts"===a.type).map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}),(0,d.jsx)(O,{label:"Input",children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:w,onChange:a=>x(a.target.value),className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),w&&(0,d.jsx)("button",{type:"button",onClick:()=>x(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),(0,d.jsx)(O,{label:"Output Format",children:(0,d.jsxs)("select",{value:E,onChange:a=>F(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"mp3",children:"MP3 (Binary)"}),(0,d.jsx)("option",{value:"json",children:"JSON (Base64)"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>X(ar),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:W?"check":"content_copy"}),W?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:as,disabled:N||!w.trim()||!ap,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:N?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),N?"Generating...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:ar})]}),R&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:R}),G?(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",T&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",T,"ms"]})]}),(0,d.jsxs)("a",{href:G,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})]}),(0,d.jsx)("audio",{controls:!0,src:G,className:"w-full"}),L&&(0,d.jsxs)("div",{className:"mt-3",children:[(0,d.jsx)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"JSON Response"})}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:JSON.stringify({format:L.format,audio:L.audio?`${L.audio.substring(0,100)}...`:""},null,2)})]})]}):(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Response"}),(0,d.jsx)("pre",{className:"mt-1.5 bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-50",children:P})]})]})]}),Z&&(0,d.jsx)("div",{className:"fixed inset-0 z-50 flex items-end justify-center sm:items-center",style:{backgroundColor:"rgba(0,0,0,0.6)",backdropFilter:"blur(2px)"},onClick:()=>$(!1),children:(0,d.jsxs)("div",{className:"border border-border rounded-xl shadow-2xl w-full max-w-md mx-4 flex flex-col max-h-[80vh]",style:{backgroundColor:"var(--color-bg)",isolation:"isolate"},onClick:a=>a.stopPropagation(),children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0 rounded-t-xl",children:[(0,d.jsx)("h3",{className:"text-sm font-semibold",children:"Select Language"}),(0,d.jsx)("button",{onClick:()=>$(!1),className:"text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"close"})})]}),(0,d.jsx)("div",{className:"px-4 py-2.5 border-b border-border shrink-0",children:(0,d.jsx)("input",{autoFocus:!0,value:ad,onChange:a=>ae(a.target.value),placeholder:"Search language...",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),(0,d.jsxs)("div",{className:"overflow-y-auto flex-1 p-2",children:[af&&(0,d.jsx)("p",{className:"text-xs text-red-500 px-2 py-1",children:af}),ab?(0,d.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"Loading..."}):(0,d.jsxs)("div",{className:"flex flex-col gap-0.5",children:[am.map(a=>(0,d.jsxs)("button",{onClick:()=>{let b;return $(!1),t(a.code),void(r(b=ah[a.code]?.voices||[]),b.length&&(g(b[0].id),n(b[0].name),e.hasVoiceIdInput&&p(b[0].id)))},className:`flex items-center justify-between w-full px-3 py-2 rounded-lg text-left hover:bg-sidebar transition-colors ${s===a.code?"bg-primary/10 text-primary":""}`,children:[(0,d.jsx)("span",{className:"text-sm",children:a.name}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[a.voices.length," voices"]}),s===a.code&&(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",children:"check"})]})]},a.code)),0===am.length&&(0,d.jsx)("p",{className:"text-xs text-text-muted px-2 py-3",children:"No languages found."})]})]})]})})]})}function W({providerId:a,kind:b}){var c;let e=(0,k.wG)(a),f=(0,k.rs)(e)===a?e:a,g=k.rj.find(a=>a.id===b),j=T[b],n=j||{},o=(0,l.KC)(a).filter(a=>a.type===b),p=new Set(["image","video","music","imageToText"]).has(b),q=p&&0===o.length,[r,s]=(0,h.useState)(o[0]?.id??""),t=o.find(a=>a.id===r),u=!!t?.capabilities?.includes("edit"),v=!!t?.capabilities?.includes("mask"),[w,x]=(0,h.useState)(n.defaultInput||""),[y,z]=(0,h.useState)(""),[A,B]=(0,h.useState)(""),[C,D]=(0,h.useState)(()=>(n.extraFields||[]).reduce((a,b)=>(a[b.key]=b.default??"",a),{})),[E,F]=(0,h.useState)(!1),[G,H]=(0,h.useState)(""),[I,J]=(0,h.useState)(""),[L,M]=(0,h.useState)(null),[P,Q]=(0,h.useState)(null),[U,V]=(0,h.useState)(null),[X,Y]=(0,h.useState)("json"),[Z,$]=(0,h.useState)(""),[_,aa]=(0,h.useState)(!1),[ab,ac]=(0,h.useState)(""),[ad,ae]=(0,h.useState)([]),[af,ag]=(0,h.useState)(""),{copied:ah,copy:ai}=(0,m.C)(),{copied:aj,copy:ak}=(0,m.C)(),al=(0,h.useRef)(null);if(!g||!j)return null;let am=E?I:G,an=g.endpoint.path,ao=p?r?`${f}/${r}`:q?"":f:f,ap="cloudflare-ai"!==a?{}:"@cf/runwayml/stable-diffusion-v1-5-img2img"===r?{image:R}:"@cf/runwayml/stable-diffusion-v1-5-inpainting"===r?{image:R,mask_image:"https://pub-1fb693cb11cc46b2b2f656f51e015a2c.r2.dev/dog-mask.png"}:{},aq=y.trim()||ap.image||"",ar=A.trim()||ap.mask_image||"",as=S(aq),at=S(ar),au=Object.entries(C).reduce((a,[b,c])=>(""===c||null==c||"number"==typeof c&&Number.isNaN(c)||(a[b]=c),a),{}),av={model:ao,[j.bodyKey]:w,...j.extraBody,...au,...u&&aq?{image:aq}:{},...v&&ar?{mask_image:ar}:{}},aw="image"===b&&"binary"===X,ax="image"===b&&"codex"===a&&!aw,ay=`${an}${aw?"?response_format=binary":""}`,az=(0,K.O)(ay),aA=`-H "Content-Type: application/json" \\
45
45
  -H "Authorization: Bearer YOUR_KEY"${af?` \\
46
46
  -H "x-connection-id: ${af}"`:""}${ax?` \\
47
47
  -H "Accept: text/event-stream"`:""}`,aB=`curl -X ${g.endpoint.method} ${am}${ay} \\
48
48
  ${aA.replace(/\\\n /g,"\\\n ")} \\
49
- -d '${JSON.stringify(av)}'${aw?" \\\n --output image.png":""}`,aC=async()=>{if(!az)return void ac("Not supported by this router build");if(!w.trim()||!ao)return;if(aa(!0),ac(""),O(null),T(null),W(null),Z){try{URL.revokeObjectURL(Z)}catch{}$("")}let a=Date.now();try{let c={"Content-Type":"application/json"};af&&(c["x-connection-id"]=af),ax&&(c.Accept="text/event-stream");let d={...av,model:ao},e=await fetch(az,{method:g.endpoint.method,headers:c,body:JSON.stringify(d)});if(!e.ok){let a=await e.json().catch(()=>({}));ac(a?.error?.message||a?.error||`HTTP ${e.status}`);return}let f=e.headers.get("content-type")||"";if(f.startsWith("image/")){let b=await e.blob(),c=URL.createObjectURL(b);$(c),O({data:{binary:!0,mime:f,size:b.size},latencyMs:Date.now()-a});return}if(f.includes("text/event-stream")&&e.body){let b=new AbortController;al.current=b;let c=e.body.getReader(),d=()=>{c.cancel().catch(()=>{})};b.signal.addEventListener("abort",d,{once:!0});let f=new TextDecoder,g="",h=null,i=null;try{for(;;){let a;if(b.signal.aborted)return;let{done:d,value:e}=await c.read();if(d)break;for(g+=f.decode(e,{stream:!0});-1!==(a=g.indexOf("\n\n"));){let b=g.slice(0,a);g=g.slice(a+2);let c=null,d="";for(let a of b.split("\n"))a.startsWith("event:")?c=a.slice(6).trim():a.startsWith("data:")&&(d+=a.slice(5).trim());if(c)try{let a=d?JSON.parse(d):{};"progress"===c?T(a):"partial_image"===c?W(a):"done"===c?h=a:"error"===c&&(i=a?.message||"Stream error")}catch{}}}}catch(a){if(b.signal.aborted)return;throw a}finally{b.signal.removeEventListener("abort",d),al.current===b&&(al.current=null)}let j=Date.now()-a;if(i)return void ac(i);h&&O({data:h,latencyMs:j})}else{let c=await e.json();if("video"===b&&c?.request_id){let b=new AbortController;al.current=b;let d=e.headers.get("x-zevai-connection-id")||e.headers.get("x-connection-id")||af;try{let e=await L({requestId:String(c.request_id),connectionId:d,signal:b.signal,timeoutMs:18e5,onProgress:({status:a,progress:b})=>{T({stage:a,percent:b})}});O({data:{...c,...e,request_id:c.request_id},latencyMs:Date.now()-a})}finally{al.current===b&&(al.current=null)}return}let d=Date.now()-a;O({data:c,latencyMs:d})}}catch(a){if(a?.name==="AbortError")return;ac(a.message||"Network error")}finally{aa(!1)}},aD=a=>{if(!a||"object"!=typeof a)return a;if(Array.isArray(a))return a.map(aD);let b={};for(let[c,d]of Object.entries(a))b[c]="b64_json"===c&&"string"==typeof d&&d.length>100?`<${d.length} chars base64>`:aD(d);return b},aE=N?JSON.stringify(aD(N.data),null,2):"",aF="video"===b?(c=N?.data,c?.video?.url||c?.video?.file_output?.public_url||c?.data?.[0]?.url||""):"";return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[o.length>0?(0,d.jsx)(M,{label:"Model",children:(0,d.jsx)("select",{value:r,onChange:a=>s(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:o.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):q?(0,d.jsx)(M,{label:"Model",children:(0,d.jsx)("input",{value:r,onChange:a=>s(a.target.value),placeholder:"Enter model id (provider-specific)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}):null,(0,d.jsx)(M,{label:"Endpoint",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[am,an]}),J&&(0,d.jsxs)("button",{onClick:()=>F(a=>!a),title:E?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${E?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,d.jsx)(M,{label:"API Key",children:(0,d.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:(0,d.jsx)("span",{className:"text-text-muted italic",children:"Dashboard session (server-side)"})})}),ad.length>0&&(0,d.jsx)(M,{label:"Connection",children:(0,d.jsxs)("select",{value:af,onChange:a=>ag(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"Auto (by priority)"}),ad.map(a=>{let b=a.providerSpecificData?.chatgptPlanType,c=a.email||a.name||a.id.slice(0,8);return(0,d.jsxs)("option",{value:a.id,children:[c,b?` [${b}]`:""]},a.id)})]})}),(0,d.jsx)(M,{label:j.inputLabel,children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:w,onChange:a=>x(a.target.value),placeholder:j.inputPlaceholder,className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),w&&(0,d.jsx)("button",{type:"button",onClick:()=>x(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),u&&(0,d.jsx)(M,{label:"Ref Image (URL)",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:y,onChange:a=>z(a.target.value),placeholder:ap.image||"https://example.com/source.png",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),y&&(0,d.jsx)("button",{type:"button",onClick:()=>z(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),as&&(0,d.jsx)("img",{src:as,alt:"Reference",className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:a=>{a.currentTarget.style.display="none"},onLoad:a=>{a.currentTarget.style.display="block"}})]})}),v&&(0,d.jsx)(M,{label:"Mask (URL)",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:A,onChange:a=>B(a.target.value),placeholder:ap.mask_image||"https://example.com/mask.png",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),A&&(0,d.jsx)("button",{type:"button",onClick:()=>B(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),at&&(0,d.jsx)("img",{src:at,alt:"Mask",className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:a=>{a.currentTarget.style.display="none"},onLoad:a=>{a.currentTarget.style.display="block"}})]})}),(j.extraFields||[]).filter(a=>0===o.length||Array.isArray(t?.params)&&t.params.includes(a.key)).map(a=>(0,d.jsx)(M,{label:a.label,children:"select"===a.type?(0,d.jsx)("select",{value:C[a.key]??"",onChange:b=>D(c=>({...c,[a.key]:b.target.value})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:(a.options||[]).map(a=>(0,d.jsx)("option",{value:a,children:""===a?"(default)":a},a))}):"text"===a.type?(0,d.jsx)("input",{type:"text",value:C[a.key]??"",placeholder:a.placeholder,onChange:b=>D(c=>({...c,[a.key]:b.target.value})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}):(0,d.jsx)("input",{type:"number",value:C[a.key]??"",min:a.min,max:a.max,onChange:b=>D(c=>({...c,[a.key]:""===b.target.value?"":Number(b.target.value)})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})},a.key)),"image"===b&&(0,d.jsx)(M,{label:"Output Format",children:(0,d.jsxs)("select",{value:X,onChange:a=>Y(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"json",children:"JSON (Base64)"}),(0,d.jsx)("option",{value:"binary",children:"Binary File"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[az&&(0,d.jsxs)("button",{onClick:()=>ai(aB),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:ah?"check":"content_copy"}),ah?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:aC,disabled:!az||_||!w.trim()||!ao,title:az?void 0:"Not supported by this router build",className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:_?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),az?_?"Running...":"Run":"Unavailable"]})]})]}),az?(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:aB}):(0,d.jsx)("div",{className:"rounded-lg border border-border bg-sidebar px-3 py-2.5 text-xs text-text-muted",children:"Not supported by this router build"})]}),(_||S)&&ax&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 px-3 py-2 rounded-lg bg-sidebar border border-border sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",style:_?{animation:"spin 1s linear infinite"}:void 0,children:_?"progress_activity":"check_circle"}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[S?.stage||"starting",!_&&S?.bytesReceived?` \xb7 ${(S.bytesReceived/1024).toFixed(1)} KB`:""]})]}),(_||S)&&"video"===b&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 px-3 py-2 rounded-lg bg-sidebar border border-border sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",style:_?{animation:"spin 1s linear infinite"}:void 0,children:_?"progress_activity":"check_circle"}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[S?.stage||"submitting",Number.isFinite(S?.percent)?` \xb7 ${S.percent}%`:""]})]}),V?.b64_json&&!N&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Partial preview"}),(0,d.jsx)("img",{src:`data:image/png;base64,${V.b64_json}`,alt:"Partial",className:"max-w-full rounded-lg border border-border mt-1.5 opacity-80"})]}),ab&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:ab}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",N&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",N.latencyMs,"ms"]})]}),N&&(0,d.jsxs)("button",{onClick:()=>ak(aE),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aj?"check":"content_copy"}),aj?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:N?aE:j.defaultResponse}),"image"===b&&(Z||N?.data?.data?.[0])&&(0,d.jsxs)("div",{className:"mt-2",children:[(0,d.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,d.jsxs)("a",{href:Z||(N?.data?.data?.[0]?.b64_json?`data:image/png;base64,${N.data.data[0].b64_json}`:N?.data?.data?.[0]?.url||""),download:"image.png",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,d.jsx)("img",{src:Z||(N?.data?.data?.[0]?.b64_json?`data:image/png;base64,${N.data.data[0].b64_json}`:N?.data?.data?.[0]?.url),alt:"Generated",className:"max-w-full rounded-lg border border-border"})]}),aF&&(0,d.jsxs)("div",{className:"mt-2",children:[(0,d.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,d.jsxs)("a",{href:aF,download:"video.mp4",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,d.jsx)("video",{controls:!0,src:aF,className:"max-w-full rounded-lg border border-border bg-black"})]})]})]})]})}function V({providerId:a}){let b=(0,k.wG)(a),c=(0,l.KC)(a).filter(a=>"stt"===a.type),[e,f]=(0,h.useState)([]),g=[...c,...e],[j,n]=(0,h.useState)(c[0]?.id??""),o=g.find(a=>a.id===j),p=Array.isArray(o?.params)?o.params:[],[q,r]=(0,h.useState)(null),[s,t]=(0,h.useState)(""),[u,v]=(0,h.useState)(""),[w,x]=(0,h.useState)("json"),[y,z]=(0,h.useState)(""),[A,B]=(0,h.useState)(!1),[C,D]=(0,h.useState)(""),[E,F]=(0,h.useState)(""),[G,H]=(0,h.useState)(null),[J,K]=(0,h.useState)(null),[L,N]=(0,h.useState)(!1),[O,P]=(0,h.useState)(""),{copied:Q,copy:R}=(0,m.C)(),{copied:S,copy:T}=(0,m.C)(),U=A?E:C,W=j?`${b}/${j}`:"",X=`curl -X POST ${U}/v1/audio/transcriptions \\
49
+ -d '${JSON.stringify(av)}'${aw?" \\\n --output image.png":""}`,aC=async()=>{if(!az)return void ac("Not supported by this router build");if(!w.trim()||!ao)return;if(aa(!0),ac(""),M(null),Q(null),V(null),Z){try{URL.revokeObjectURL(Z)}catch{}$("")}let a=Date.now();try{let c={"Content-Type":"application/json"};af&&(c["x-connection-id"]=af),ax&&(c.Accept="text/event-stream");let d={...av,model:ao},e=await fetch(az,{method:g.endpoint.method,headers:c,body:JSON.stringify(d)});if(!e.ok){let a=await e.json().catch(()=>({}));ac(a?.error?.message||a?.error||`HTTP ${e.status}`);return}let f=e.headers.get("content-type")||"";if(f.startsWith("image/")){let b=await e.blob(),c=URL.createObjectURL(b);$(c),M({data:{binary:!0,mime:f,size:b.size},latencyMs:Date.now()-a});return}if(f.includes("text/event-stream")&&e.body){let b=new AbortController;al.current=b;let c=e.body.getReader(),d=()=>{c.cancel().catch(()=>{})};b.signal.addEventListener("abort",d,{once:!0});let f=new TextDecoder,g="",h=null,i=null;try{for(;;){let a;if(b.signal.aborted)return;let{done:d,value:e}=await c.read();if(d)break;for(g+=f.decode(e,{stream:!0});-1!==(a=g.indexOf("\n\n"));){let b=g.slice(0,a);g=g.slice(a+2);let c=null,d="";for(let a of b.split("\n"))a.startsWith("event:")?c=a.slice(6).trim():a.startsWith("data:")&&(d+=a.slice(5).trim());if(c)try{let a=d?JSON.parse(d):{};"progress"===c?Q(a):"partial_image"===c?V(a):"done"===c?h=a:"error"===c&&(i=a?.message||"Stream error")}catch{}}}}catch(a){if(b.signal.aborted)return;throw a}finally{b.signal.removeEventListener("abort",d),al.current===b&&(al.current=null)}let j=Date.now()-a;if(i)return void ac(i);h&&M({data:h,latencyMs:j})}else{let c=await e.json();if("video"===b&&c?.request_id){let b=new AbortController;al.current=b;let d=e.headers.get("x-zevai-connection-id")||e.headers.get("x-connection-id")||af;try{let e=await N({requestId:String(c.request_id),connectionId:d,signal:b.signal,timeoutMs:18e5,onProgress:({status:a,progress:b})=>{Q({stage:a,percent:b})}});M({data:{...c,...e,request_id:c.request_id},latencyMs:Date.now()-a})}finally{al.current===b&&(al.current=null)}return}let d=Date.now()-a;M({data:c,latencyMs:d})}}catch(a){if(a?.name==="AbortError")return;ac(a.message||"Network error")}finally{aa(!1)}},aD=a=>{if(!a||"object"!=typeof a)return a;if(Array.isArray(a))return a.map(aD);let b={};for(let[c,d]of Object.entries(a))b[c]="b64_json"===c&&"string"==typeof d&&d.length>100?`<${d.length} chars base64>`:aD(d);return b},aE=L?JSON.stringify(aD(L.data),null,2):"",aF="video"===b?(c=L?.data,c?.video?.url||c?.video?.file_output?.public_url||c?.data?.[0]?.url||""):"";return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[o.length>0?(0,d.jsx)(O,{label:"Model",children:(0,d.jsx)("select",{value:r,onChange:a=>s(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:o.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):q?(0,d.jsx)(O,{label:"Model",children:(0,d.jsx)("input",{value:r,onChange:a=>s(a.target.value),placeholder:"Enter model id (provider-specific)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}):null,(0,d.jsx)(O,{label:"Endpoint",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[am,an]}),I&&(0,d.jsxs)("button",{onClick:()=>F(a=>!a),title:E?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${E?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,d.jsx)(O,{label:"API Key",children:(0,d.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:(0,d.jsx)("span",{className:"text-text-muted italic",children:"Dashboard session (server-side)"})})}),ad.length>0&&(0,d.jsx)(O,{label:"Connection",children:(0,d.jsxs)("select",{value:af,onChange:a=>ag(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"",children:"Auto (by priority)"}),ad.map(a=>{let b=a.providerSpecificData?.chatgptPlanType,c=a.email||a.name||a.id.slice(0,8);return(0,d.jsxs)("option",{value:a.id,children:[c,b?` [${b}]`:""]},a.id)})]})}),(0,d.jsx)(O,{label:j.inputLabel,children:(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:w,onChange:a=>x(a.target.value),placeholder:j.inputPlaceholder,className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),w&&(0,d.jsx)("button",{type:"button",onClick:()=>x(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]})}),u&&(0,d.jsx)(O,{label:"Ref Image (URL)",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:y,onChange:a=>z(a.target.value),placeholder:ap.image||"https://example.com/source.png",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),y&&(0,d.jsx)("button",{type:"button",onClick:()=>z(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),as&&(0,d.jsx)("img",{src:as,alt:"Reference",className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:a=>{a.currentTarget.style.display="none"},onLoad:a=>{a.currentTarget.style.display="block"}})]})}),v&&(0,d.jsx)(O,{label:"Mask (URL)",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("input",{value:A,onChange:a=>B(a.target.value),placeholder:ap.mask_image||"https://example.com/mask.png",className:"w-full px-3 py-1.5 pr-7 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}),A&&(0,d.jsx)("button",{type:"button",onClick:()=>B(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-text-muted hover:text-primary transition-colors",children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"close"})})]}),at&&(0,d.jsx)("img",{src:at,alt:"Mask",className:"max-h-40 rounded-lg border border-border object-contain bg-sidebar",onError:a=>{a.currentTarget.style.display="none"},onLoad:a=>{a.currentTarget.style.display="block"}})]})}),(j.extraFields||[]).filter(a=>0===o.length||Array.isArray(t?.params)&&t.params.includes(a.key)).map(a=>(0,d.jsx)(O,{label:a.label,children:"select"===a.type?(0,d.jsx)("select",{value:C[a.key]??"",onChange:b=>D(c=>({...c,[a.key]:b.target.value})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:(a.options||[]).map(a=>(0,d.jsx)("option",{value:a,children:""===a?"(default)":a},a))}):"text"===a.type?(0,d.jsx)("input",{type:"text",value:C[a.key]??"",placeholder:a.placeholder,onChange:b=>D(c=>({...c,[a.key]:b.target.value})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"}):(0,d.jsx)("input",{type:"number",value:C[a.key]??"",min:a.min,max:a.max,onChange:b=>D(c=>({...c,[a.key]:""===b.target.value?"":Number(b.target.value)})),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})},a.key)),"image"===b&&(0,d.jsx)(O,{label:"Output Format",children:(0,d.jsxs)("select",{value:X,onChange:a=>Y(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"json",children:"JSON (Base64)"}),(0,d.jsx)("option",{value:"binary",children:"Binary File"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[az&&(0,d.jsxs)("button",{onClick:()=>ai(aB),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:ah?"check":"content_copy"}),ah?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:aC,disabled:!az||_||!w.trim()||!ao,title:az?void 0:"Not supported by this router build",className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:_?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),az?_?"Running...":"Run":"Unavailable"]})]})]}),az?(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:aB}):(0,d.jsx)("div",{className:"rounded-lg border border-border bg-sidebar px-3 py-2.5 text-xs text-text-muted",children:"Not supported by this router build"})]}),(_||P)&&ax&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 px-3 py-2 rounded-lg bg-sidebar border border-border sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",style:_?{animation:"spin 1s linear infinite"}:void 0,children:_?"progress_activity":"check_circle"}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[P?.stage||"starting",!_&&P?.bytesReceived?` \xb7 ${(P.bytesReceived/1024).toFixed(1)} KB`:""]})]}),(_||P)&&"video"===b&&(0,d.jsxs)("div",{className:"flex flex-col gap-2 px-3 py-2 rounded-lg bg-sidebar border border-border sm:flex-row sm:items-center sm:gap-3",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-primary",style:_?{animation:"spin 1s linear infinite"}:void 0,children:_?"progress_activity":"check_circle"}),(0,d.jsxs)("span",{className:"text-xs text-text-muted",children:[P?.stage||"submitting",Number.isFinite(P?.percent)?` \xb7 ${P.percent}%`:""]})]}),U?.b64_json&&!L&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Partial preview"}),(0,d.jsx)("img",{src:`data:image/png;base64,${U.b64_json}`,alt:"Partial",className:"max-w-full rounded-lg border border-border mt-1.5 opacity-80"})]}),ab&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:ab}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",L&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",L.latencyMs,"ms"]})]}),L&&(0,d.jsxs)("button",{onClick:()=>ak(aE),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aj?"check":"content_copy"}),aj?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:L?aE:j.defaultResponse}),"image"===b&&(Z||L?.data?.data?.[0])&&(0,d.jsxs)("div",{className:"mt-2",children:[(0,d.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,d.jsxs)("a",{href:Z||(L?.data?.data?.[0]?.b64_json?`data:image/png;base64,${L.data.data[0].b64_json}`:L?.data?.data?.[0]?.url||""),download:"image.png",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,d.jsx)("img",{src:Z||(L?.data?.data?.[0]?.b64_json?`data:image/png;base64,${L.data.data[0].b64_json}`:L?.data?.data?.[0]?.url),alt:"Generated",className:"max-w-full rounded-lg border border-border"})]}),aF&&(0,d.jsxs)("div",{className:"mt-2",children:[(0,d.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,d.jsxs)("a",{href:aF,download:"video.mp4",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,d.jsx)("video",{controls:!0,src:aF,className:"max-w-full rounded-lg border border-border bg-black"})]})]})]})]})}function X({providerId:a}){let b=(0,k.wG)(a),c=(0,l.KC)(a).filter(a=>"stt"===a.type),[e,f]=(0,h.useState)([]),g=[...c,...e],[j,n]=(0,h.useState)(c[0]?.id??""),o=g.find(a=>a.id===j),p=Array.isArray(o?.params)?o.params:[],[q,r]=(0,h.useState)(null),[s,t]=(0,h.useState)(""),[u,v]=(0,h.useState)(""),[w,x]=(0,h.useState)("json"),[y,z]=(0,h.useState)(""),[A,B]=(0,h.useState)(!1),[C,D]=(0,h.useState)(""),[E,F]=(0,h.useState)(""),[G,H]=(0,h.useState)(null),[I,J]=(0,h.useState)(null),[L,M]=(0,h.useState)(!1),[N,P]=(0,h.useState)(""),{copied:Q,copy:R}=(0,m.C)(),{copied:S,copy:T}=(0,m.C)(),U=A?E:C,V=j?`${b}/${j}`:"",W=`curl -X POST ${U}/v1/audio/transcriptions \\
50
50
  -H "Authorization: Bearer YOUR_KEY" \\
51
51
  -F "file=@${q?.name||"audio.mp3"}" \\
52
- -F "model=${W}"${p.includes("language")&&s?` \\
52
+ -F "model=${V}"${p.includes("language")&&s?` \\
53
53
  -F "language=${s}"`:""}${p.includes("response_format")?` \\
54
54
  -F "response_format=${w}"`:""}${p.includes("temperature")&&y?` \\
55
55
  -F "temperature=${y}"`:""}${p.includes("prompt")&&u?` \\
56
- -F "prompt=${u}"`:""}`,Y=async()=>{if(!q||!W)return;N(!0),P(""),H(null);let a=Date.now();try{let b=new FormData;b.append("file",q),b.append("model",W),p.includes("language")&&s&&b.append("language",s),p.includes("response_format")&&b.append("response_format",w),p.includes("temperature")&&y&&b.append("temperature",y),p.includes("prompt")&&u&&b.append("prompt",u);let c=await fetch((0,I.O)("/v1/audio/transcriptions"),{method:"POST",body:b});K(Date.now()-a);let d=(c.headers.get("content-type")||"").includes("application/json")?await c.json():await c.text();if(!c.ok)return void P(d?.error?.message||d?.error||d||`HTTP ${c.status}`);H(d)}catch(a){P(a.message||"Network error")}finally{N(!1)}},Z="string"==typeof G?G:G?JSON.stringify(G,null,2):`{
56
+ -F "prompt=${u}"`:""}`,Y=async()=>{if(!q||!V)return;M(!0),P(""),H(null);let a=Date.now();try{let b=new FormData;b.append("file",q),b.append("model",V),p.includes("language")&&s&&b.append("language",s),p.includes("response_format")&&b.append("response_format",w),p.includes("temperature")&&y&&b.append("temperature",y),p.includes("prompt")&&u&&b.append("prompt",u);let c=await fetch((0,K.O)("/v1/audio/transcriptions"),{method:"POST",body:b});J(Date.now()-a);let d=(c.headers.get("content-type")||"").includes("application/json")?await c.json():await c.text();if(!c.ok)return void P(d?.error?.message||d?.error||d||`HTTP ${c.status}`);H(d)}catch(a){P(a.message||"Network error")}finally{M(!1)}},Z="string"==typeof G?G:G?JSON.stringify(G,null,2):`{
57
57
  "text": "Hello world..."
58
- }`;return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[g.length>0?(0,d.jsx)(M,{label:"Model",children:(0,d.jsx)("select",{value:j,onChange:a=>n(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:g.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):(0,d.jsx)(M,{label:"Model",children:(0,d.jsx)("input",{value:j,onChange:a=>n(a.target.value),placeholder:"Enter model id",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),(0,d.jsx)(M,{label:"Endpoint",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[U,"/v1/audio/transcriptions"]}),E&&(0,d.jsxs)("button",{onClick:()=>B(a=>!a),title:A?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${A?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,d.jsx)(M,{label:"API Key",children:(0,d.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:(0,d.jsx)("span",{className:"text-text-muted italic",children:"Dashboard session (server-side)"})})}),(0,d.jsx)(M,{label:"Audio File",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)("input",{type:"file",accept:"audio/*,video/mp4,.m4a,.mp3,.wav,.ogg,.flac,.webm,.opus",onChange:a=>r(a.target.files?.[0]||null),className:"w-full text-xs text-text-muted file:mr-2 file:py-1 file:px-2.5 file:rounded-lg file:border file:border-border file:bg-background file:text-text-main hover:file:bg-sidebar file:cursor-pointer"}),q&&(0,d.jsxs)("span",{className:"text-xs text-text-muted font-mono",children:[q.name," \xb7 ",(q.size/1024).toFixed(1)," KB"]})]})}),p.includes("language")&&(0,d.jsx)(M,{label:"Language",children:(0,d.jsx)("input",{value:s,onChange:a=>t(a.target.value),placeholder:"e.g. en, vi, ja (auto-detect if empty)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),p.includes("prompt")&&(0,d.jsx)(M,{label:"Prompt",children:(0,d.jsx)("input",{value:u,onChange:a=>v(a.target.value),placeholder:"optional context to improve accuracy",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),p.includes("temperature")&&(0,d.jsx)(M,{label:"Temperature",children:(0,d.jsx)("input",{type:"number",step:"0.1",min:"0",max:"1",value:y,onChange:a=>z(a.target.value),placeholder:"0 - 1 (default 0)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),p.includes("response_format")&&(0,d.jsx)(M,{label:"Response Format",children:(0,d.jsxs)("select",{value:w,onChange:a=>x(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"json",children:"json"}),(0,d.jsx)("option",{value:"text",children:"text"}),(0,d.jsx)("option",{value:"srt",children:"srt"}),(0,d.jsx)("option",{value:"verbose_json",children:"verbose_json"}),(0,d.jsx)("option",{value:"vtt",children:"vtt"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>R(X),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:Q?"check":"content_copy"}),Q?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:Y,disabled:L||!q||!W,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:L?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),L?"Transcribing...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:X})]}),O&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:O}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",G&&J&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",J,"ms"]})]}),G&&(0,d.jsxs)("button",{onClick:()=>T(Z),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:S?"check":"content_copy"}),S?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:Z})]})]})]})}function W(){let{kind:a,id:b}=(0,e.useParams)(),c=(0,e.useRouter)(),f=k.rj.find(b=>b.id===a),l=(0,k.gC)(b)&&"embedding"===a,[m,n]=(0,h.useState)(null),[o,p]=(0,h.useState)(l),[q,r]=(0,h.useState)(!1),[s,t]=(0,h.useState)(!1),u=async()=>{if(confirm("Delete this Custom Embedding node?")){t(!0);try{let d=await fetch(`/api/provider-nodes/${b}`,{method:"DELETE"});if(d.ok)return void c.push(`/dashboard/media-providers/${a}`);let e=await d.json().catch(()=>({}));alert(e.error||"Failed to delete custom embedding node")}catch{alert("Failed to delete custom embedding node")}t(!1)}};if(!f)return(0,e.notFound)();let v=k.Q2[b],w=l?m?{id:b,name:m.name||"Custom Embedding",color:"#6366F1",textIcon:"CE"}:null:v;if(!l&&!v||l&&!o&&!m)return(0,e.notFound)();if(l&&o)return(0,d.jsx)("div",{className:"text-text-muted text-sm py-12 text-center",children:"Loading..."});let x=l?["embedding"]:w.serviceKinds??["llm"];return l||x.includes(a)?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)(g(),{href:`/dashboard/media-providers/${a}`,className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),f.label]}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,d.jsx)("div",{className:"size-12 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${w.color}15`},children:(0,d.jsx)(j.A,{src:`/providers/${w.id}.png`,alt:w.name,size:48,className:"object-contain rounded-lg max-w-[48px] max-h-[48px]",fallbackText:w.textIcon||w.id.slice(0,2).toUpperCase(),fallbackColor:w.color})}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[(0,d.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:w.name}),!l&&w.notice?.apiKeyUrl&&(0,d.jsxs)("a",{href:w.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[l&&(0,d.jsxs)(i.Ex,{variant:"default",size:"sm",children:["Custom \xb7 ",m?.prefix]}),x.map(b=>(0,d.jsx)(i.Ex,{variant:b===a?"primary":"default",size:"sm",children:b.toUpperCase()},b))]})]}),l&&(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>r(!0),children:"Edit"}),(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:u,disabled:s,children:s?"Deleting...":"Delete"})]})]})]}),!l&&w.kindNotice?.[a]&&(0,d.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3 rounded-lg bg-amber-500/10 border border-amber-500/30 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px] mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-sm",children:w.kindNotice[a]})]}),!l&&w.notice?.text&&!w.deprecated&&(0,d.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,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,d.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:w.notice.text}),w.notice.apiKeyUrl&&(0,d.jsx)("a",{href:w.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 →"})]}),!l&&w.noAuth?(0,d.jsx)(i.gw,{providerId:b}):(0,d.jsx)(C,{providerId:b,isOAuth:!1}),"tts"!==a&&"webSearch"!==a&&"webFetch"!==a&&(0,d.jsx)(F,{providerId:b,kindFilter:a,providerAliasOverride:l?m?.prefix:void 0}),!l&&(w.searchConfig||w.fetchConfig||w.ttsConfig||w.sttConfig||w.embeddingConfig||w.searchViaChat)&&(0,d.jsx)(i.Wx,{config:"webFetch"===a?w.fetchConfig:"tts"===a?w.ttsConfig:"stt"===a?w.sttConfig:"embedding"===a?w.embeddingConfig:w.searchConfig||{mode:"chat-completions",defaultModel:w.searchViaChat?.defaultModel,pricingUrl:w.searchViaChat?.pricingUrl,freeTier:w.searchViaChat?.freeTier},provider:w,title:`${f.label} Config`}),"embedding"===a&&(0,d.jsx)(S,{providerId:b,customAlias:m?.prefix}),"tts"===a&&(0,d.jsx)(T,{providerId:b}),"stt"===a&&!l&&(0,d.jsx)(V,{providerId:b}),!l&&R[a]&&(0,d.jsx)(U,{providerId:b,kind:a}),l&&(0,d.jsx)(i.x0,{isOpen:q,node:m,onClose:()=>r(!1),onSaved:a=>{n(a),r(!1)}})]}):(0,e.notFound)()}},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,2430,6686,2760,492,3999,5024,3477,5681,1131,412,1756],()=>b(b.s=57457));module.exports=c})();
58
+ }`;return(0,d.jsxs)(i.Zp,{children:[(0,d.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Example"}),(0,d.jsxs)("div",{className:"flex flex-col gap-2.5",children:[g.length>0?(0,d.jsx)(O,{label:"Model",children:(0,d.jsx)("select",{value:j,onChange:a=>n(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:g.map(a=>(0,d.jsx)("option",{value:a.id,children:a.name||a.id},a.id))})}):(0,d.jsx)(O,{label:"Model",children:(0,d.jsx)("input",{value:j,onChange:a=>n(a.target.value),placeholder:"Enter model id",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),(0,d.jsx)(O,{label:"Endpoint",children:(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("span",{className:"w-full min-w-0 flex-1 px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate",children:[U,"/v1/audio/transcriptions"]}),E&&(0,d.jsxs)("button",{onClick:()=>B(a=>!a),title:A?"Using tunnel":"Using local",className:`flex items-center gap-1 text-xs px-2 py-1.5 rounded-lg border shrink-0 transition-colors ${A?"border-primary/40 bg-primary/10 text-primary":"border-border text-text-muted hover:text-primary"}`,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"wifi_tethering"}),"Tunnel"]})]})}),(0,d.jsx)(O,{label:"API Key",children:(0,d.jsx)("span",{className:"px-3 py-1.5 text-sm font-mono text-text-main bg-sidebar rounded-lg truncate block",children:(0,d.jsx)("span",{className:"text-text-muted italic",children:"Dashboard session (server-side)"})})}),(0,d.jsx)(O,{label:"Audio File",children:(0,d.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,d.jsx)("input",{type:"file",accept:"audio/*,video/mp4,.m4a,.mp3,.wav,.ogg,.flac,.webm,.opus",onChange:a=>r(a.target.files?.[0]||null),className:"w-full text-xs text-text-muted file:mr-2 file:py-1 file:px-2.5 file:rounded-lg file:border file:border-border file:bg-background file:text-text-main hover:file:bg-sidebar file:cursor-pointer"}),q&&(0,d.jsxs)("span",{className:"text-xs text-text-muted font-mono",children:[q.name," \xb7 ",(q.size/1024).toFixed(1)," KB"]})]})}),p.includes("language")&&(0,d.jsx)(O,{label:"Language",children:(0,d.jsx)("input",{value:s,onChange:a=>t(a.target.value),placeholder:"e.g. en, vi, ja (auto-detect if empty)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary font-mono"})}),p.includes("prompt")&&(0,d.jsx)(O,{label:"Prompt",children:(0,d.jsx)("input",{value:u,onChange:a=>v(a.target.value),placeholder:"optional context to improve accuracy",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),p.includes("temperature")&&(0,d.jsx)(O,{label:"Temperature",children:(0,d.jsx)("input",{type:"number",step:"0.1",min:"0",max:"1",value:y,onChange:a=>z(a.target.value),placeholder:"0 - 1 (default 0)",className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary"})}),p.includes("response_format")&&(0,d.jsx)(O,{label:"Response Format",children:(0,d.jsxs)("select",{value:w,onChange:a=>x(a.target.value),className:"w-full px-3 py-1.5 text-sm border border-border rounded-lg bg-background focus:outline-none focus:border-primary",children:[(0,d.jsx)("option",{value:"json",children:"json"}),(0,d.jsx)("option",{value:"text",children:"text"}),(0,d.jsx)("option",{value:"srt",children:"srt"}),(0,d.jsx)("option",{value:"verbose_json",children:"verbose_json"}),(0,d.jsx)("option",{value:"vtt",children:"vtt"})]})}),(0,d.jsxs)("div",{className:"mt-1",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsx)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:"Request"}),(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsxs)("button",{onClick:()=>R(W),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:Q?"check":"content_copy"}),Q?"Copied":"Copy"]}),(0,d.jsxs)("button",{onClick:Y,disabled:L||!q||!V,className:"flex w-full sm:w-auto items-center justify-center gap-1.5 px-3 py-1 rounded-lg bg-primary text-white text-xs font-medium hover:bg-primary/90 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",style:L?{animation:"spin 1s linear infinite"}:void 0,children:"play_arrow"}),L?"Transcribing...":"Run"]})]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all",children:W})]}),N&&(0,d.jsx)("p",{className:"text-xs text-red-500 break-words",children:N}),(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between mb-1.5",children:[(0,d.jsxs)("span",{className:"text-xs font-semibold text-text-muted uppercase tracking-wider",children:["Response ",G&&I&&(0,d.jsxs)("span",{className:"font-normal normal-case",children:["⚡ ",I,"ms"]})]}),G&&(0,d.jsxs)("button",{onClick:()=>T(Z),className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:S?"check":"content_copy"}),S?"Copied":"Copy"]})]}),(0,d.jsx)("pre",{className:"bg-sidebar rounded-lg px-3 py-2.5 text-xs font-mono text-text-main overflow-x-auto whitespace-pre-wrap break-all opacity-70",children:Z})]})]})]})}function Y(){let{kind:a,id:b}=(0,e.useParams)(),c=(0,e.useRouter)(),f=k.rj.find(b=>b.id===a),l=(0,k.gC)(b)&&"embedding"===a,[m,n]=(0,h.useState)(null),[o,p]=(0,h.useState)(l),[q,r]=(0,h.useState)(!1),[s,t]=(0,h.useState)(!1),u=async()=>{if(confirm("Delete this Custom Embedding node?")){t(!0);try{let d=await fetch(`/api/provider-nodes/${b}`,{method:"DELETE"});if(d.ok)return void c.push(`/dashboard/media-providers/${a}`);let e=await d.json().catch(()=>({}));alert(e.error||"Failed to delete custom embedding node")}catch{alert("Failed to delete custom embedding node")}t(!1)}};if(!f)return(0,e.notFound)();let v=k.Q2[b],w=l?m?{id:b,name:m.name||"Custom Embedding",color:"#6366F1",textIcon:"CE"}:null:v;if(!l&&!v||l&&!o&&!m)return(0,e.notFound)();if(l&&o)return(0,d.jsx)("div",{className:"text-text-muted text-sm py-12 text-center",children:"Loading..."});let x=l?["embedding"]:w.serviceKinds??["llm"];return l||x.includes(a)?(0,d.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)(g(),{href:`/dashboard/media-providers/${a}`,className:"inline-flex items-center gap-1 text-sm text-text-muted hover:text-primary transition-colors mb-4",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-lg",children:"arrow_back"}),f.label]}),(0,d.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-4",children:[(0,d.jsx)("div",{className:"size-12 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${w.color}15`},children:(0,d.jsx)(j.A,{src:`/providers/${w.id}.png`,alt:w.name,size:48,className:"object-contain rounded-lg max-w-[48px] max-h-[48px]",fallbackText:w.textIcon||w.id.slice(0,2).toUpperCase(),fallbackColor:w.color})}),(0,d.jsxs)("div",{className:"flex-1",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2 sm:gap-3",children:[(0,d.jsx)("h1",{className:"text-3xl font-semibold tracking-tight",children:w.name}),!l&&w.notice?.apiKeyUrl&&(0,d.jsxs)("a",{href:w.notice.apiKeyUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline inline-flex items-center gap-1",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-sm",children:"open_in_new"}),"Get API Key"]})]}),(0,d.jsxs)("div",{className:"flex items-center gap-1.5 mt-1 flex-wrap",children:[l&&(0,d.jsxs)(i.Ex,{variant:"default",size:"sm",children:["Custom \xb7 ",m?.prefix]}),x.map(b=>(0,d.jsx)(i.Ex,{variant:b===a?"primary":"default",size:"sm",children:b.toUpperCase()},b))]})]}),l&&(0,d.jsxs)("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:items-center",children:[(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"edit",onClick:()=>r(!0),children:"Edit"}),(0,d.jsx)(i.$n,{size:"sm",variant:"secondary",icon:"delete",onClick:u,disabled:s,children:s?"Deleting...":"Delete"})]})]})]}),!l&&w.kindNotice?.[a]&&(0,d.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3 rounded-lg bg-amber-500/10 border border-amber-500/30 text-amber-700 dark:text-amber-400",children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[20px] mt-0.5",children:"warning"}),(0,d.jsx)("p",{className:"text-sm",children:w.kindNotice[a]})]}),!l&&w.notice?.text&&!w.deprecated&&(0,d.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,d.jsx)("span",{className:"material-symbols-outlined text-[16px] text-blue-500 shrink-0",children:"info"}),(0,d.jsx)("p",{className:"min-w-0 flex-1 text-xs leading-relaxed text-blue-600 dark:text-blue-400",children:w.notice.text}),w.notice.apiKeyUrl&&(0,d.jsx)("a",{href:w.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 →"})]}),!l&&w.noAuth?(0,d.jsx)(i.gw,{providerId:b}):(0,d.jsx)(E,{providerId:b,isOAuth:!1}),"tts"!==a&&"webSearch"!==a&&"webFetch"!==a&&(0,d.jsx)(H,{providerId:b,kindFilter:a,providerAliasOverride:l?m?.prefix:void 0}),!l&&(w.searchConfig||w.fetchConfig||w.ttsConfig||w.sttConfig||w.embeddingConfig||w.searchViaChat)&&(0,d.jsx)(i.Wx,{config:"webFetch"===a?w.fetchConfig:"tts"===a?w.ttsConfig:"stt"===a?w.sttConfig:"embedding"===a?w.embeddingConfig:w.searchConfig||{mode:"chat-completions",defaultModel:w.searchViaChat?.defaultModel,pricingUrl:w.searchViaChat?.pricingUrl,freeTier:w.searchViaChat?.freeTier},provider:w,title:`${f.label} Config`}),"embedding"===a&&(0,d.jsx)(U,{providerId:b,customAlias:m?.prefix}),"tts"===a&&(0,d.jsx)(V,{providerId:b}),"stt"===a&&!l&&(0,d.jsx)(X,{providerId:b}),!l&&T[a]&&(0,d.jsx)(W,{providerId:b,kind:a}),l&&(0,d.jsx)(i.x0,{isOpen:q,node:m,onClose:()=>r(!1),onSaved:a=>{n(a),r(!1)}})]}):(0,e.notFound)()}},69296:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/zevairouter-build/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/zevairouter-build/src/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js","default")},73024:a=>{"use strict";a.exports=require("node:fs")},73661:(a,b,c)=>{"use strict";c.d(b,{O:()=>e,x:()=>f});let d=Object.freeze({"/v1/embeddings":"embeddings","/v1/images/generations":"images","/v1/audio/speech":"speech","/v1/audio/transcriptions":"transcriptions","/v1/search":"search","/v1/web/fetch":"fetch","/v1/videos/generations":"videos"});function e(a){if("string"!=typeof a)return null;let b=a.indexOf("?"),c=-1===b?a:a.slice(0,b),e=-1===b?"":a.slice(b),f=d[c];return f?`/api/dashboard/media/${f}${e}`:null}function f(a){return"string"==typeof a&&a.trim()?`/api/dashboard/media/videos/${encodeURIComponent(a.trim())}`:null}},74875:(a,b,c)=>{"use strict";c.d(b,{BU:()=>l,G9:()=>h,d4:()=>j,gJ:()=>d,i2:()=>k});let d=[{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"]}],e={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}},f={policy_suspended:"banned",account_validation_required:"auth_error",credential_rejected:"auth_error",reauth_required:"auth_error",authentication:"auth_error",entitlement_or_quota:"quota_exhausted",rate_limited:"rate_limited",permission_denied:"auth_error",upstream_transient:"connection_error"};function g(a){if(!a)return"";if("string"==typeof a)return a.toLowerCase();try{return JSON.stringify(a).toLowerCase()}catch{return String(a).toLowerCase()}}function h(a={},b=Date.now()){let c=Object.entries(a).filter(([a])=>a.startsWith("modelLock_")).map(([,a])=>new Date(a).getTime()).filter(a=>Number.isFinite(a)&&a>b);return c.length>0?new Date(Math.min(...c)).toISOString():null}function i(a,b=""){let c=e[a]||e.unknown;return{key:a,...c,reason:b}}function j(a={}){var b;let c=(b=a).quarantinedAt?i(f[g(b.failureClass)]||"unknown",b.quarantineReason||b.lastError||"Connection is quarantined"):null;if(c)return c;if(!1===a.isActive)return i("disabled","Connection is disabled");if(function(a={}){return null!==h(a)}(a))return i("cooldown","Model cooldown is active");if(function(a){if(!a)return!1;let b=new Date(a).getTime();return Number.isFinite(b)&&b>Date.now()}(a.rateLimitedUntil))return i("rate_limited","Rate limit cooldown is active");let d=g(a.testStatus||a.status),e=g(a.lastErrorType||a.errorType),k=g(a.errorCode||a.statusCode),l=g(a.lastError||a.error),m=`${d} ${e} ${k} ${l}`.trim();return!m||["active","success","ok"].includes(d)?i("active",""):m.includes("ban")||m.includes("suspend")||m.includes("restricted")?i("banned",a.lastError||"Account appears restricted"):m.includes("exhaust")||m.includes("quota exceeded")||m.includes("insufficient_quota")||m.includes("payment required")||"402"===k?i("quota_exhausted",a.lastError||"Quota exhausted"):e.includes("rate_limited")||m.includes("rate limit")||m.includes("too many requests")||"429"===k?i("rate_limited",a.lastError||"Rate limited"):e.includes("auth")||e.includes("token")||m.includes("unauthorized")||m.includes("invalid api key")||m.includes("token invalid")||m.includes("token expired")||m.includes("revoked")||"401"===k||"403"===k?i("auth_error",a.lastError||"Authentication failed"):e.includes("network")||m.includes("network")||m.includes("timeout")||m.includes("fetch failed")||m.includes("econn")||m.includes("dns")||m.includes("proxy")?i("connection_error",a.lastError||"Connection failed"):["error","expired","unavailable","failed"].includes(d)?i("connection_error",a.lastError||a.testStatus||"Connection failed"):i("unknown",a.lastError||a.testStatus||"")}function k(a,b){if(!b||"all"===b)return!0;let c=d.find(a=>a.id===b);return!c||c.keys.includes(j(a).key)}function l(a){return a?.severity==="success"?"success":a?.severity==="error"?"error":"default"}},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},79868:a=>{"use strict";a.exports=require("node:sqlite")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},81899:(a,b,c)=>{Promise.resolve().then(c.bind(c,69296))},87550:a=>{"use strict";a.exports=require("better-sqlite3")},94735:a=>{"use strict";a.exports=require("events")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,2430,6686,2760,492,3999,5024,3477,5681,1131,412,1756],()=>b(b.s=49788));module.exports=c})();