@techysy/10router 1.2.1 → 1.3.1

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 (1140) hide show
  1. package/README.md +240 -240
  2. package/README.zh-CN.md +210 -210
  3. package/app/.next-cli-build/BUILD_ID +1 -1
  4. package/app/.next-cli-build/app-path-routes-manifest.json +16 -8
  5. package/app/.next-cli-build/build-manifest.json +3 -3
  6. package/app/.next-cli-build/prerender-manifest.json +27 -27
  7. package/app/.next-cli-build/react-loadable-manifest.json +29 -0
  8. package/app/.next-cli-build/routes-manifest.json +50 -0
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +15 -9
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  78. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  79. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  81. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  82. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  85. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  89. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  90. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  92. package/app/.next-cli-build/server/app/_not-found.html +9 -1
  93. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  94. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  95. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
  96. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  97. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/auth/status/route.js +2 -2
  118. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +26 -11
  122. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +2 -0
  128. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -0
  129. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route_client-reference-manifest.js +1 -0
  130. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
  131. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +4 -0
  135. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -0
  136. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route_client-reference-manifest.js +1 -0
  137. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
  140. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -2
  146. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  148. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  150. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  152. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +23 -9
  156. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +3 -2
  158. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  160. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  162. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  164. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/keys/rotate/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  206. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/network/egress-region/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/network/egress-region/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js +1 -1
  260. package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +2 -2
  268. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js +2 -0
  270. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -0
  271. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route_client-reference-manifest.js +1 -0
  272. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js +2 -0
  273. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -0
  274. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route_client-reference-manifest.js +1 -0
  275. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +42 -0
  276. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -0
  277. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route_client-reference-manifest.js +1 -0
  278. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -0
  279. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -0
  280. package/app/.next-cli-build/server/app/api/oauth/zed/import/route_client-reference-manifest.js +1 -0
  281. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  286. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  308. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  314. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  316. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  320. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  322. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  324. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  326. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  330. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  332. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  334. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  336. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  342. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  356. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +3 -3
  378. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -0
  380. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -0
  381. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route_client-reference-manifest.js +1 -0
  382. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  383. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  384. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  385. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  386. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  387. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  388. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
  389. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js.nft.json +1 -1
  390. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  391. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  392. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  393. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  394. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  395. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  396. package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -1
  397. package/app/.next-cli-build/server/app/api/usage/quotas/route.js.nft.json +1 -1
  398. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  399. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  400. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  401. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  402. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  403. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  409. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  411. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  412. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  413. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  414. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  415. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  416. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  417. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  418. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  419. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  420. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  421. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  422. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  423. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  424. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  425. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  426. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  427. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  428. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  429. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  430. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  431. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  432. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  433. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  434. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  435. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  436. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  437. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  438. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -0
  439. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -0
  440. package/app/.next-cli-build/server/app/api/v1/systemone/route_client-reference-manifest.js +1 -0
  441. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  442. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  443. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  444. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  445. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  446. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  447. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  448. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  449. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  450. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  451. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  452. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  453. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  454. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  455. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  456. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  457. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  458. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  459. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  460. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  461. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  462. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  463. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  464. package/app/.next-cli-build/server/app/callback.html +9 -1
  465. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  466. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  467. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  468. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
  469. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +9 -1
  470. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +21 -19
  471. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +15 -11
  472. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +21 -19
  473. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  474. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +9 -1
  475. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +22 -20
  476. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +15 -11
  477. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +22 -20
  478. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/combos.html +9 -1
  480. package/app/.next-cli-build/server/app/dashboard/combos.rsc +25 -22
  481. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +15 -11
  482. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +25 -22
  483. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  484. package/app/.next-cli-build/server/app/dashboard/endpoint.html +9 -1
  485. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +22 -20
  486. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +15 -11
  487. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +22 -20
  488. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  489. package/app/.next-cli-build/server/app/dashboard/experimental.html +9 -1
  490. package/app/.next-cli-build/server/app/dashboard/experimental.rsc +21 -19
  491. package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +15 -11
  492. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +21 -19
  493. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
  494. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +9 -1
  495. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +25 -22
  496. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +14 -11
  497. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +25 -22
  498. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/mitm.html +9 -1
  500. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +22 -19
  501. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +15 -11
  502. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +22 -19
  503. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  504. package/app/.next-cli-build/server/app/dashboard/profile.html +9 -1
  505. package/app/.next-cli-build/server/app/dashboard/profile.rsc +25 -22
  506. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +15 -11
  507. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +25 -22
  508. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  509. package/app/.next-cli-build/server/app/dashboard/providers/new.html +9 -1
  510. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +25 -22
  511. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +14 -11
  512. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +25 -22
  513. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  514. package/app/.next-cli-build/server/app/dashboard/providers.html +9 -1
  515. package/app/.next-cli-build/server/app/dashboard/providers.rsc +24 -22
  516. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +15 -11
  517. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +24 -22
  518. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  519. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +9 -1
  520. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +24 -22
  521. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +15 -11
  522. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +24 -22
  523. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  524. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +9 -1
  525. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +22 -19
  526. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +15 -11
  527. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +22 -19
  528. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  529. package/app/.next-cli-build/server/app/dashboard/quota.html +9 -2
  530. package/app/.next-cli-build/server/app/dashboard/quota.rsc +23 -20
  531. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +16 -12
  532. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +23 -20
  533. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  534. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  535. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  536. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  537. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +9 -1
  538. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  539. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  540. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  541. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
  542. package/app/.next-cli-build/server/app/dashboard/skills.html +9 -1
  543. package/app/.next-cli-build/server/app/dashboard/skills.rsc +25 -22
  544. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +15 -11
  545. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +25 -22
  546. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  547. package/app/.next-cli-build/server/app/dashboard/token-saver.html +9 -1
  548. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +21 -19
  549. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +15 -11
  550. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +21 -19
  551. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  552. package/app/.next-cli-build/server/app/dashboard/translator.html +9 -1
  553. package/app/.next-cli-build/server/app/dashboard/translator.rsc +24 -22
  554. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +15 -11
  555. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +24 -22
  556. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  557. package/app/.next-cli-build/server/app/dashboard/usage.html +9 -1
  558. package/app/.next-cli-build/server/app/dashboard/usage.rsc +25 -22
  559. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +15 -11
  560. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +25 -22
  561. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  562. package/app/.next-cli-build/server/app/dashboard.html +9 -1
  563. package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
  564. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +15 -11
  565. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
  566. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  567. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  568. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  569. package/app/.next-cli-build/server/app/index.html +1 -1
  570. package/app/.next-cli-build/server/app/index.rsc +6 -6
  571. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  572. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  573. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  574. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  575. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  576. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  577. package/app/.next-cli-build/server/app/landing.html +9 -1
  578. package/app/.next-cli-build/server/app/landing.rsc +7 -7
  579. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
  580. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  581. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +7 -7
  582. package/app/.next-cli-build/server/app/login/page.js +1 -1
  583. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  584. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  585. package/app/.next-cli-build/server/app/login.html +9 -1
  586. package/app/.next-cli-build/server/app/login.rsc +7 -7
  587. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  588. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  589. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
  590. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  591. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  592. package/app/.next-cli-build/server/app/page.js +1 -1
  593. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  594. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  595. package/app/.next-cli-build/server/app-paths-manifest.json +16 -8
  596. package/app/.next-cli-build/server/chunks/1159.js +5 -3
  597. package/app/.next-cli-build/server/chunks/1219.js +1 -1
  598. package/app/.next-cli-build/server/chunks/1329.js +1 -0
  599. package/app/.next-cli-build/server/chunks/1386.js +9 -0
  600. package/app/.next-cli-build/server/chunks/1710.js +1 -1
  601. package/app/.next-cli-build/server/chunks/2112.js +1 -1
  602. package/app/.next-cli-build/server/chunks/2116.js +1 -0
  603. package/app/.next-cli-build/server/chunks/2120.js +1 -1
  604. package/app/.next-cli-build/server/chunks/2132.js +1 -1
  605. package/app/.next-cli-build/server/chunks/2468.js +1 -0
  606. package/app/.next-cli-build/server/chunks/{9528.js → 2750.js} +2 -3
  607. package/app/.next-cli-build/server/chunks/2926.js +1 -1
  608. package/app/.next-cli-build/server/chunks/3245.js +1 -1
  609. package/app/.next-cli-build/server/chunks/3500.js +4 -4
  610. package/app/.next-cli-build/server/chunks/3535.js +1 -1
  611. package/app/.next-cli-build/server/chunks/3792.js +1 -1
  612. package/app/.next-cli-build/server/chunks/3885.js +1 -1
  613. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  614. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  615. package/app/.next-cli-build/server/chunks/4177.js +1 -1
  616. package/app/.next-cli-build/server/chunks/4190.js +1 -0
  617. package/app/.next-cli-build/server/chunks/4282.js +1 -1
  618. package/app/.next-cli-build/server/chunks/436.js +1 -1
  619. package/app/.next-cli-build/server/chunks/4575.js +1 -1
  620. package/app/.next-cli-build/server/chunks/4689.js +1 -0
  621. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  622. package/app/.next-cli-build/server/chunks/4886.js +1 -0
  623. package/app/.next-cli-build/server/chunks/4927.js +7 -6
  624. package/app/.next-cli-build/server/chunks/5210.js +26 -26
  625. package/app/.next-cli-build/server/chunks/5330.js +8 -8
  626. package/app/.next-cli-build/server/chunks/539.js +1 -1
  627. package/app/.next-cli-build/server/chunks/5485.js +1 -1
  628. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  629. package/app/.next-cli-build/server/chunks/5781.js +1 -1
  630. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  631. package/app/.next-cli-build/server/chunks/6133.js +1 -1
  632. package/app/.next-cli-build/server/chunks/615.js +1 -1
  633. package/app/.next-cli-build/server/chunks/6306.js +1 -1
  634. package/app/.next-cli-build/server/chunks/6326.js +1 -1
  635. package/app/.next-cli-build/server/chunks/6492.js +1 -1
  636. package/app/.next-cli-build/server/chunks/6756.js +1 -1
  637. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  638. package/app/.next-cli-build/server/chunks/6921.js +65 -0
  639. package/app/.next-cli-build/server/chunks/6922.js +1 -1
  640. package/app/.next-cli-build/server/chunks/6956.js +1 -1
  641. package/app/.next-cli-build/server/chunks/6960.js +5 -5
  642. package/app/.next-cli-build/server/chunks/7066.js +1 -0
  643. package/app/.next-cli-build/server/chunks/7067.js +1 -1
  644. package/app/.next-cli-build/server/chunks/7070.js +1 -0
  645. package/app/.next-cli-build/server/chunks/7122.js +1 -1
  646. package/app/.next-cli-build/server/chunks/7239.js +2 -1
  647. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  648. package/app/.next-cli-build/server/chunks/7274.js +3 -3
  649. package/app/.next-cli-build/server/chunks/7322.js +2 -2
  650. package/app/.next-cli-build/server/chunks/7828.js +1 -1
  651. package/app/.next-cli-build/server/chunks/8172.js +9 -1
  652. package/app/.next-cli-build/server/chunks/8370.js +103 -0
  653. package/app/.next-cli-build/server/chunks/8410.js +1 -1
  654. package/app/.next-cli-build/server/chunks/8499.js +13 -13
  655. package/app/.next-cli-build/server/chunks/8595.js +1 -1
  656. package/app/.next-cli-build/server/chunks/8672.js +1 -1
  657. package/app/.next-cli-build/server/chunks/8749.js +1 -1
  658. package/app/.next-cli-build/server/chunks/8895.js +11 -11
  659. package/app/.next-cli-build/server/chunks/890.js +1 -0
  660. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  661. package/app/.next-cli-build/server/chunks/8988.js +1 -1
  662. package/app/.next-cli-build/server/chunks/9046.js +1 -1
  663. package/app/.next-cli-build/server/chunks/9055.js +2 -0
  664. package/app/.next-cli-build/server/chunks/9154.js +1 -1
  665. package/app/.next-cli-build/server/chunks/939.js +1 -1
  666. package/app/.next-cli-build/server/chunks/{4990.js → 9451.js} +1 -1
  667. package/app/.next-cli-build/server/chunks/9489.js +2 -2
  668. package/app/.next-cli-build/server/chunks/9609.js +1 -1
  669. package/app/.next-cli-build/server/chunks/9628.js +1 -1
  670. package/app/.next-cli-build/server/chunks/976.js +9 -0
  671. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  672. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  673. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  674. package/app/.next-cli-build/server/middleware.js +7 -7
  675. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  676. package/app/.next-cli-build/server/pages/404.html +9 -1
  677. package/app/.next-cli-build/server/pages/500.html +1 -1
  678. package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
  679. package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
  680. package/app/.next-cli-build/static/chunks/124.8b2f018d999d9a51.js +1 -0
  681. package/app/.next-cli-build/static/chunks/1243-25be5a7b0193949d.js +3 -0
  682. package/app/.next-cli-build/static/chunks/1321-8478f2be717a38f6.js +1 -0
  683. package/app/.next-cli-build/static/chunks/305-f019439bbcf9152e.js +1 -0
  684. package/app/.next-cli-build/static/chunks/3842-da1878db3339b090.js +1 -0
  685. package/app/.next-cli-build/static/chunks/5497-7d66b43a3bbcf07d.js +7 -0
  686. package/app/.next-cli-build/static/chunks/6808-7c2c0ea1ee14763c.js +1 -0
  687. package/app/.next-cli-build/static/chunks/839-e45391c69a64b949.js +1 -0
  688. package/app/.next-cli-build/static/chunks/9233.4e4be172e7d96210.js +65 -0
  689. package/app/.next-cli-build/static/chunks/{3346-509e8dd58ea4832d.js → 9749-80768075d38162d1.js} +27 -16
  690. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/basic-chat/{page-5d45a84bf4178e23.js → page-e9d0cc59613084a7.js} +1 -1
  691. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-c50454e03482deef.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-a010a9c6a7805814.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-14745e08d1edafb2.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/console-log/{page-30c02c5c5eefddbd.js → page-38d0f0202be6d8bc.js} +1 -1
  695. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-47886089f369810c.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-5ec2e868aa2ff281.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-9ca09f92fcb7be9f.js → page-3b6db6cc6c16b9ad.js} +18 -12
  698. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/{page-9a471accf206ea43.js → page-ee6bbb288b22cf1b.js} +1 -1
  699. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/combo/[id]/{page-244f4c72b60bf0a0.js → page-ef6ad6f6950d28ae.js} +1 -1
  700. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/web/{page-a2510813ebd64f72.js → page-fa1fbe256586f3e4.js} +1 -1
  701. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-17b2097c5effd063.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-188d4a1bfdaa48a9.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-912bf60e8bad7f94.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-39a4fadcce4f3019.js +14 -0
  705. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/new/{page-40e882239717e69f.js → page-071c0cece99e2a14.js} +1 -1
  706. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-9ec9a9251e22a7c8.js → page-e638376663f056c2.js} +1 -1
  707. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/{page-4f50d3385b23743f.js → page-a82cb7be5341c406.js} +1 -1
  708. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/pxpipe/{page-e84b8de5542a9dc9.js → page-07d2009205f82daf.js} +1 -1
  709. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-bc56399135571dd5.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/skills/{page-6a0eb15b8664e682.js → page-c2a93a81da890302.js} +1 -1
  711. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/{page-7833d8a884ba922a.js → page-598b62c6e8742bbc.js} +1 -1
  712. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-ff17dc8ecbe63ec9.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-5e0f32afe647c545.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-528e2bc2a1bb20da.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/_global-error/page-2b9ff155b9d0f304.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-2b9ff155b9d0f304.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-2b9ff155b9d0f304.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-2b9ff155b9d0f304.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-2b9ff155b9d0f304.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-2b9ff155b9d0f304.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-2b9ff155b9d0f304.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-2b9ff155b9d0f304.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-2b9ff155b9d0f304.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-2b9ff155b9d0f304.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-2b9ff155b9d0f304.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-2b9ff155b9d0f304.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-2b9ff155b9d0f304.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-2b9ff155b9d0f304.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-2b9ff155b9d0f304.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-2b9ff155b9d0f304.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-profiles/route-2b9ff155b9d0f304.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-2b9ff155b9d0f304.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-2b9ff155b9d0f304.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-2b9ff155b9d0f304.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-2b9ff155b9d0f304.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-2b9ff155b9d0f304.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-2b9ff155b9d0f304.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-2b9ff155b9d0f304.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-2b9ff155b9d0f304.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-2b9ff155b9d0f304.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-2b9ff155b9d0f304.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-2b9ff155b9d0f304.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-2b9ff155b9d0f304.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-2b9ff155b9d0f304.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-2b9ff155b9d0f304.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-2b9ff155b9d0f304.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-2b9ff155b9d0f304.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-2b9ff155b9d0f304.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-2b9ff155b9d0f304.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/combos/route-2b9ff155b9d0f304.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-2b9ff155b9d0f304.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-2b9ff155b9d0f304.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-2b9ff155b9d0f304.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-2b9ff155b9d0f304.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-2b9ff155b9d0f304.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-2b9ff155b9d0f304.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/health/route-2b9ff155b9d0f304.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/init/route-2b9ff155b9d0f304.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-2b9ff155b9d0f304.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-2b9ff155b9d0f304.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/keys/route-2b9ff155b9d0f304.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/locale/route-2b9ff155b9d0f304.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-2b9ff155b9d0f304.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-2b9ff155b9d0f304.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-2b9ff155b9d0f304.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-2b9ff155b9d0f304.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-2b9ff155b9d0f304.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-2b9ff155b9d0f304.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-2b9ff155b9d0f304.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-2b9ff155b9d0f304.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-2b9ff155b9d0f304.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/models/caps/route-2b9ff155b9d0f304.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-2b9ff155b9d0f304.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-2b9ff155b9d0f304.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-2b9ff155b9d0f304.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/models/route-2b9ff155b9d0f304.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/models/test/route-2b9ff155b9d0f304.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-2b9ff155b9d0f304.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-2b9ff155b9d0f304.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-2b9ff155b9d0f304.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-2b9ff155b9d0f304.js +1 -0
  782. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-2b9ff155b9d0f304.js +1 -0
  783. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-2b9ff155b9d0f304.js +1 -0
  784. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-2b9ff155b9d0f304.js +1 -0
  785. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-2b9ff155b9d0f304.js +1 -0
  786. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-2b9ff155b9d0f304.js +1 -0
  787. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-2b9ff155b9d0f304.js +1 -0
  788. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-2b9ff155b9d0f304.js +1 -0
  789. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-2b9ff155b9d0f304.js +1 -0
  790. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-2b9ff155b9d0f304.js +1 -0
  791. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-2b9ff155b9d0f304.js +1 -0
  792. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-2b9ff155b9d0f304.js +1 -0
  793. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-2b9ff155b9d0f304.js +1 -0
  794. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-2b9ff155b9d0f304.js +1 -0
  795. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-2b9ff155b9d0f304.js +1 -0
  796. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-2b9ff155b9d0f304.js +1 -0
  797. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-2b9ff155b9d0f304.js +1 -0
  798. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-2b9ff155b9d0f304.js +1 -0
  799. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-2b9ff155b9d0f304.js +1 -0
  800. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-2b9ff155b9d0f304.js +1 -0
  801. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-kill/route-2b9ff155b9d0f304.js +1 -0
  802. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/desktop-status/route-2b9ff155b9d0f304.js +1 -0
  803. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-2b9ff155b9d0f304.js +1 -0
  804. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-2b9ff155b9d0f304.js +1 -0
  805. package/app/.next-cli-build/static/chunks/app/api/pricing/route-2b9ff155b9d0f304.js +1 -0
  806. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-2b9ff155b9d0f304.js +1 -0
  807. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-2b9ff155b9d0f304.js +1 -0
  808. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-2b9ff155b9d0f304.js +1 -0
  809. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-2b9ff155b9d0f304.js +1 -0
  810. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-2b9ff155b9d0f304.js +1 -0
  811. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-2b9ff155b9d0f304.js +1 -0
  812. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-2b9ff155b9d0f304.js +1 -0
  813. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-2b9ff155b9d0f304.js +1 -0
  814. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-2b9ff155b9d0f304.js +1 -0
  815. package/app/.next-cli-build/static/chunks/app/api/providers/route-2b9ff155b9d0f304.js +1 -0
  816. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-2b9ff155b9d0f304.js +1 -0
  817. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-2b9ff155b9d0f304.js +1 -0
  818. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-2b9ff155b9d0f304.js +1 -0
  819. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-2b9ff155b9d0f304.js +1 -0
  820. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-2b9ff155b9d0f304.js +1 -0
  821. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-2b9ff155b9d0f304.js +1 -0
  822. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-2b9ff155b9d0f304.js +1 -0
  823. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-2b9ff155b9d0f304.js +1 -0
  824. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-2b9ff155b9d0f304.js +1 -0
  825. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-2b9ff155b9d0f304.js +1 -0
  826. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-2b9ff155b9d0f304.js +1 -0
  827. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-2b9ff155b9d0f304.js +1 -0
  828. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-2b9ff155b9d0f304.js +1 -0
  829. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-2b9ff155b9d0f304.js +1 -0
  830. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-2b9ff155b9d0f304.js +1 -0
  831. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-2b9ff155b9d0f304.js +1 -0
  832. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-2b9ff155b9d0f304.js +1 -0
  833. package/app/.next-cli-build/static/chunks/app/api/security/status/route-2b9ff155b9d0f304.js +1 -0
  834. package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-2b9ff155b9d0f304.js +1 -0
  835. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-2b9ff155b9d0f304.js +1 -0
  836. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-2b9ff155b9d0f304.js +1 -0
  837. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-2b9ff155b9d0f304.js +1 -0
  838. package/app/.next-cli-build/static/chunks/app/api/settings/route-2b9ff155b9d0f304.js +1 -0
  839. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-2b9ff155b9d0f304.js +1 -0
  840. package/app/.next-cli-build/static/chunks/app/api/tags/route-2b9ff155b9d0f304.js +1 -0
  841. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-2b9ff155b9d0f304.js +1 -0
  842. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-2b9ff155b9d0f304.js +1 -0
  843. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-2b9ff155b9d0f304.js +1 -0
  844. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-2b9ff155b9d0f304.js +1 -0
  845. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-2b9ff155b9d0f304.js +1 -0
  846. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-2b9ff155b9d0f304.js +1 -0
  847. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-2b9ff155b9d0f304.js +1 -0
  848. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-2b9ff155b9d0f304.js +1 -0
  849. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-2b9ff155b9d0f304.js +1 -0
  850. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-2b9ff155b9d0f304.js +1 -0
  851. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-2b9ff155b9d0f304.js +1 -0
  852. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-2b9ff155b9d0f304.js +1 -0
  853. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-2b9ff155b9d0f304.js +1 -0
  854. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-2b9ff155b9d0f304.js +1 -0
  855. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-2b9ff155b9d0f304.js +1 -0
  856. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-2b9ff155b9d0f304.js +1 -0
  857. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-2b9ff155b9d0f304.js +1 -0
  858. package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-2b9ff155b9d0f304.js +1 -0
  859. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-2b9ff155b9d0f304.js +1 -0
  860. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-2b9ff155b9d0f304.js +1 -0
  861. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-2b9ff155b9d0f304.js +1 -0
  862. package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-2b9ff155b9d0f304.js +1 -0
  863. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-2b9ff155b9d0f304.js +1 -0
  864. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-2b9ff155b9d0f304.js +1 -0
  865. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-2b9ff155b9d0f304.js +1 -0
  866. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-2b9ff155b9d0f304.js +1 -0
  867. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-2b9ff155b9d0f304.js +1 -0
  868. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-2b9ff155b9d0f304.js +1 -0
  869. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-2b9ff155b9d0f304.js +1 -0
  870. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-2b9ff155b9d0f304.js +1 -0
  871. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-2b9ff155b9d0f304.js +1 -0
  872. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-2b9ff155b9d0f304.js +1 -0
  873. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-2b9ff155b9d0f304.js +1 -0
  874. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-2b9ff155b9d0f304.js +1 -0
  875. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-2b9ff155b9d0f304.js +1 -0
  876. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-2b9ff155b9d0f304.js +1 -0
  877. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-2b9ff155b9d0f304.js +1 -0
  878. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-2b9ff155b9d0f304.js +1 -0
  879. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-2b9ff155b9d0f304.js +1 -0
  880. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-2b9ff155b9d0f304.js +1 -0
  881. package/app/.next-cli-build/static/chunks/app/api/v1/route-2b9ff155b9d0f304.js +1 -0
  882. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-2b9ff155b9d0f304.js +1 -0
  883. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-2b9ff155b9d0f304.js +1 -0
  884. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-2b9ff155b9d0f304.js +1 -0
  885. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-2b9ff155b9d0f304.js +1 -0
  886. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-2b9ff155b9d0f304.js +1 -0
  887. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-2b9ff155b9d0f304.js +1 -0
  888. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-2b9ff155b9d0f304.js +1 -0
  889. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-2b9ff155b9d0f304.js +1 -0
  890. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-2b9ff155b9d0f304.js +1 -0
  891. package/app/.next-cli-build/static/chunks/app/api/version/route-2b9ff155b9d0f304.js +1 -0
  892. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-2b9ff155b9d0f304.js +1 -0
  893. package/app/.next-cli-build/static/chunks/app/api/version/update/route-2b9ff155b9d0f304.js +1 -0
  894. package/app/.next-cli-build/static/chunks/app/landing/page-38924391f8649361.js +1 -0
  895. package/app/.next-cli-build/static/chunks/app/login/page-b5eb40dc7d4e285e.js +1 -0
  896. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-2b9ff155b9d0f304.js +1 -0
  897. package/app/.next-cli-build/static/chunks/app/page-2b9ff155b9d0f304.js +1 -0
  898. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-2b9ff155b9d0f304.js +1 -0
  899. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-2b9ff155b9d0f304.js +1 -0
  900. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-2b9ff155b9d0f304.js +1 -0
  901. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-2b9ff155b9d0f304.js +1 -0
  902. package/app/.next-cli-build/static/chunks/webpack-1adc95943fa90500.js +1 -0
  903. package/app/.next-cli-build/static/css/bdf1d87cd5f4db94.css +1 -0
  904. package/app/.next-cli-build/static/hWZt96TEErc6dGwTZrX7O/_buildManifest.js +1 -0
  905. package/app/custom-server.js +177 -177
  906. package/app/package.json +71 -69
  907. package/app/public/i18n/changelog/en.md +354 -308
  908. package/app/public/i18n/changelog/zh-CN.md +352 -306
  909. package/app/public/i18n/changelog/zh-TW.md +354 -308
  910. package/app/public/i18n/literals/zh-CN.json +1970 -1879
  911. package/app/public/i18n/literals/zh-TW.json +812 -720
  912. package/app/public/providers/drex.png +0 -0
  913. package/app/public/providers/fish-audio.png +0 -0
  914. package/app/public/providers/keenable.png +0 -0
  915. package/app/public/providers/muse.png +0 -0
  916. package/app/public/providers/ollama-search.png +0 -0
  917. package/app/public/providers/tinyfish.png +0 -0
  918. package/app/public/providers/v1m.png +0 -0
  919. package/app/public/providers/xquik.png +0 -0
  920. package/app/public/providers/zcode-free.png +0 -0
  921. package/app/src/lib/consoleArchiveStandalone.mjs +73 -73
  922. package/app/src/lib/oauth/providers/xiaomi-mimo.js +169 -169
  923. package/app/src/sse/services/qoderCheckin.js +437 -437
  924. package/package.json +61 -61
  925. package/src/cli/doctor.js +525 -525
  926. package/src/cli/i18n/locales/en/utils.json +4 -0
  927. package/src/cli/i18n/locales/zh-CN/utils.json +4 -0
  928. package/src/cli/i18n/locales/zh-TW/utils.json +4 -0
  929. package/src/cli/menus/providers.js +3 -2
  930. package/src/cli/staleServer.js +216 -216
  931. package/src/cli/utils/modelSelector.js +77 -11
  932. package/app/.next-cli-build/server/chunks/112.js +0 -1
  933. package/app/.next-cli-build/server/chunks/1330.js +0 -1
  934. package/app/.next-cli-build/server/chunks/2051.js +0 -1
  935. package/app/.next-cli-build/server/chunks/2182.js +0 -9
  936. package/app/.next-cli-build/server/chunks/271.js +0 -1
  937. package/app/.next-cli-build/server/chunks/3651.js +0 -92
  938. package/app/.next-cli-build/server/chunks/869.js +0 -1
  939. package/app/.next-cli-build/server/chunks/877.js +0 -65
  940. package/app/.next-cli-build/server/chunks/9539.js +0 -9
  941. package/app/.next-cli-build/static/Qmgbf1CsCnKFbpB4QvL8M/_buildManifest.js +0 -1
  942. package/app/.next-cli-build/static/chunks/1243-d0e0b9458266e912.js +0 -3
  943. package/app/.next-cli-build/static/chunks/1321-502b5305b875636f.js +0 -1
  944. package/app/.next-cli-build/static/chunks/1728-9783950fd2b6ad81.js +0 -65
  945. package/app/.next-cli-build/static/chunks/5497-10ab12f860a6a157.js +0 -7
  946. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/page-d9b185c845eb0735.js +0 -1
  947. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/page-baf9fb2b236ff509.js +0 -1
  948. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-fa4ba47a6bf0da15.js +0 -1
  949. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/endpoint/page-c748c385fd4207db.js +0 -1
  950. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-4dd5e46a2d6f4486.js +0 -1
  951. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-12cb89849a36b78d.js +0 -1
  952. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/page-6abbed908eb3721a.js +0 -1
  953. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/page-93f4c31ccd56a895.js +0 -1
  954. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-d3edcb35175434d5.js +0 -14
  955. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-f62700ce9aa54572.js +0 -1
  956. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/page-b2a5c4828ff3f6e0.js +0 -1
  957. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-bf55da31ba675aa9.js +0 -1
  958. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-434f2e27f8b21ae1.js +0 -1
  959. package/app/.next-cli-build/static/chunks/app/_global-error/page-72924bfdaa66606d.js +0 -1
  960. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-72924bfdaa66606d.js +0 -1
  961. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-72924bfdaa66606d.js +0 -1
  962. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-72924bfdaa66606d.js +0 -1
  963. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-72924bfdaa66606d.js +0 -1
  964. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-72924bfdaa66606d.js +0 -1
  965. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-72924bfdaa66606d.js +0 -1
  966. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-72924bfdaa66606d.js +0 -1
  967. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-72924bfdaa66606d.js +0 -1
  968. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-72924bfdaa66606d.js +0 -1
  969. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-72924bfdaa66606d.js +0 -1
  970. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-72924bfdaa66606d.js +0 -1
  971. package/app/.next-cli-build/static/chunks/app/api/auth/verify-password/route-72924bfdaa66606d.js +0 -1
  972. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-72924bfdaa66606d.js +0 -1
  973. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-72924bfdaa66606d.js +0 -1
  974. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-72924bfdaa66606d.js +0 -1
  975. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-72924bfdaa66606d.js +0 -1
  976. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-72924bfdaa66606d.js +0 -1
  977. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-72924bfdaa66606d.js +0 -1
  978. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-72924bfdaa66606d.js +0 -1
  979. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-72924bfdaa66606d.js +0 -1
  980. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-72924bfdaa66606d.js +0 -1
  981. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-72924bfdaa66606d.js +0 -1
  982. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-72924bfdaa66606d.js +0 -1
  983. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-72924bfdaa66606d.js +0 -1
  984. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-72924bfdaa66606d.js +0 -1
  985. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-72924bfdaa66606d.js +0 -1
  986. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-72924bfdaa66606d.js +0 -1
  987. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-72924bfdaa66606d.js +0 -1
  988. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-72924bfdaa66606d.js +0 -1
  989. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-72924bfdaa66606d.js +0 -1
  990. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-72924bfdaa66606d.js +0 -1
  991. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-72924bfdaa66606d.js +0 -1
  992. package/app/.next-cli-build/static/chunks/app/api/combos/route-72924bfdaa66606d.js +0 -1
  993. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-72924bfdaa66606d.js +0 -1
  994. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-72924bfdaa66606d.js +0 -1
  995. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-72924bfdaa66606d.js +0 -1
  996. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-72924bfdaa66606d.js +0 -1
  997. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-72924bfdaa66606d.js +0 -1
  998. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-72924bfdaa66606d.js +0 -1
  999. package/app/.next-cli-build/static/chunks/app/api/health/route-72924bfdaa66606d.js +0 -1
  1000. package/app/.next-cli-build/static/chunks/app/api/init/route-72924bfdaa66606d.js +0 -1
  1001. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-72924bfdaa66606d.js +0 -1
  1002. package/app/.next-cli-build/static/chunks/app/api/keys/rotate/route-72924bfdaa66606d.js +0 -1
  1003. package/app/.next-cli-build/static/chunks/app/api/keys/route-72924bfdaa66606d.js +0 -1
  1004. package/app/.next-cli-build/static/chunks/app/api/locale/route-72924bfdaa66606d.js +0 -1
  1005. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-72924bfdaa66606d.js +0 -1
  1006. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-72924bfdaa66606d.js +0 -1
  1007. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-72924bfdaa66606d.js +0 -1
  1008. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-72924bfdaa66606d.js +0 -1
  1009. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-72924bfdaa66606d.js +0 -1
  1010. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-72924bfdaa66606d.js +0 -1
  1011. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-72924bfdaa66606d.js +0 -1
  1012. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-72924bfdaa66606d.js +0 -1
  1013. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-72924bfdaa66606d.js +0 -1
  1014. package/app/.next-cli-build/static/chunks/app/api/models/caps/route-72924bfdaa66606d.js +0 -1
  1015. package/app/.next-cli-build/static/chunks/app/api/models/custom/bulk/route-72924bfdaa66606d.js +0 -1
  1016. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-72924bfdaa66606d.js +0 -1
  1017. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-72924bfdaa66606d.js +0 -1
  1018. package/app/.next-cli-build/static/chunks/app/api/models/route-72924bfdaa66606d.js +0 -1
  1019. package/app/.next-cli-build/static/chunks/app/api/models/test/route-72924bfdaa66606d.js +0 -1
  1020. package/app/.next-cli-build/static/chunks/app/api/network/egress-region/route-72924bfdaa66606d.js +0 -1
  1021. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-72924bfdaa66606d.js +0 -1
  1022. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/bulk-import/route-72924bfdaa66606d.js +0 -1
  1023. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/checkin/route-72924bfdaa66606d.js +0 -1
  1024. package/app/.next-cli-build/static/chunks/app/api/oauth/codebuddy-cn/export/route-72924bfdaa66606d.js +0 -1
  1025. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-72924bfdaa66606d.js +0 -1
  1026. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-72924bfdaa66606d.js +0 -1
  1027. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-72924bfdaa66606d.js +0 -1
  1028. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-72924bfdaa66606d.js +0 -1
  1029. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-72924bfdaa66606d.js +0 -1
  1030. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-72924bfdaa66606d.js +0 -1
  1031. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-72924bfdaa66606d.js +0 -1
  1032. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-72924bfdaa66606d.js +0 -1
  1033. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-72924bfdaa66606d.js +0 -1
  1034. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-72924bfdaa66606d.js +0 -1
  1035. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-72924bfdaa66606d.js +0 -1
  1036. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-72924bfdaa66606d.js +0 -1
  1037. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder/checkin/route-72924bfdaa66606d.js +0 -1
  1038. package/app/.next-cli-build/static/chunks/app/api/oauth/qoder-cn/checkin/route-72924bfdaa66606d.js +0 -1
  1039. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/export/route-72924bfdaa66606d.js +0 -1
  1040. package/app/.next-cli-build/static/chunks/app/api/oauth/transfer/import/route-72924bfdaa66606d.js +0 -1
  1041. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-72924bfdaa66606d.js +0 -1
  1042. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-72924bfdaa66606d.js +0 -1
  1043. package/app/.next-cli-build/static/chunks/app/api/pricing/route-72924bfdaa66606d.js +0 -1
  1044. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-72924bfdaa66606d.js +0 -1
  1045. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-72924bfdaa66606d.js +0 -1
  1046. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-72924bfdaa66606d.js +0 -1
  1047. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-72924bfdaa66606d.js +0 -1
  1048. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-72924bfdaa66606d.js +0 -1
  1049. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-72924bfdaa66606d.js +0 -1
  1050. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-72924bfdaa66606d.js +0 -1
  1051. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-72924bfdaa66606d.js +0 -1
  1052. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-72924bfdaa66606d.js +0 -1
  1053. package/app/.next-cli-build/static/chunks/app/api/providers/route-72924bfdaa66606d.js +0 -1
  1054. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-72924bfdaa66606d.js +0 -1
  1055. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-72924bfdaa66606d.js +0 -1
  1056. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-72924bfdaa66606d.js +0 -1
  1057. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-72924bfdaa66606d.js +0 -1
  1058. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-72924bfdaa66606d.js +0 -1
  1059. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-72924bfdaa66606d.js +0 -1
  1060. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-72924bfdaa66606d.js +0 -1
  1061. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-72924bfdaa66606d.js +0 -1
  1062. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-72924bfdaa66606d.js +0 -1
  1063. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-72924bfdaa66606d.js +0 -1
  1064. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-72924bfdaa66606d.js +0 -1
  1065. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-72924bfdaa66606d.js +0 -1
  1066. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-72924bfdaa66606d.js +0 -1
  1067. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-72924bfdaa66606d.js +0 -1
  1068. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-72924bfdaa66606d.js +0 -1
  1069. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-72924bfdaa66606d.js +0 -1
  1070. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-72924bfdaa66606d.js +0 -1
  1071. package/app/.next-cli-build/static/chunks/app/api/security/status/route-72924bfdaa66606d.js +0 -1
  1072. package/app/.next-cli-build/static/chunks/app/api/settings/database/import-usage/route-72924bfdaa66606d.js +0 -1
  1073. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-72924bfdaa66606d.js +0 -1
  1074. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-72924bfdaa66606d.js +0 -1
  1075. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-72924bfdaa66606d.js +0 -1
  1076. package/app/.next-cli-build/static/chunks/app/api/settings/route-72924bfdaa66606d.js +0 -1
  1077. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-72924bfdaa66606d.js +0 -1
  1078. package/app/.next-cli-build/static/chunks/app/api/tags/route-72924bfdaa66606d.js +0 -1
  1079. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-72924bfdaa66606d.js +0 -1
  1080. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-72924bfdaa66606d.js +0 -1
  1081. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-72924bfdaa66606d.js +0 -1
  1082. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-72924bfdaa66606d.js +0 -1
  1083. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-72924bfdaa66606d.js +0 -1
  1084. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-72924bfdaa66606d.js +0 -1
  1085. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-72924bfdaa66606d.js +0 -1
  1086. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-72924bfdaa66606d.js +0 -1
  1087. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-72924bfdaa66606d.js +0 -1
  1088. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-72924bfdaa66606d.js +0 -1
  1089. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-72924bfdaa66606d.js +0 -1
  1090. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-72924bfdaa66606d.js +0 -1
  1091. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-72924bfdaa66606d.js +0 -1
  1092. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-72924bfdaa66606d.js +0 -1
  1093. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-72924bfdaa66606d.js +0 -1
  1094. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-72924bfdaa66606d.js +0 -1
  1095. package/app/.next-cli-build/static/chunks/app/api/usage/dashboard/route-72924bfdaa66606d.js +0 -1
  1096. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-72924bfdaa66606d.js +0 -1
  1097. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-72924bfdaa66606d.js +0 -1
  1098. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-72924bfdaa66606d.js +0 -1
  1099. package/app/.next-cli-build/static/chunks/app/api/usage/quotas/route-72924bfdaa66606d.js +0 -1
  1100. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-72924bfdaa66606d.js +0 -1
  1101. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-72924bfdaa66606d.js +0 -1
  1102. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-72924bfdaa66606d.js +0 -1
  1103. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-72924bfdaa66606d.js +0 -1
  1104. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-72924bfdaa66606d.js +0 -1
  1105. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-72924bfdaa66606d.js +0 -1
  1106. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-72924bfdaa66606d.js +0 -1
  1107. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-72924bfdaa66606d.js +0 -1
  1108. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-72924bfdaa66606d.js +0 -1
  1109. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-72924bfdaa66606d.js +0 -1
  1110. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-72924bfdaa66606d.js +0 -1
  1111. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-72924bfdaa66606d.js +0 -1
  1112. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-72924bfdaa66606d.js +0 -1
  1113. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-72924bfdaa66606d.js +0 -1
  1114. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-72924bfdaa66606d.js +0 -1
  1115. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-72924bfdaa66606d.js +0 -1
  1116. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-72924bfdaa66606d.js +0 -1
  1117. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-72924bfdaa66606d.js +0 -1
  1118. package/app/.next-cli-build/static/chunks/app/api/v1/route-72924bfdaa66606d.js +0 -1
  1119. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-72924bfdaa66606d.js +0 -1
  1120. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-72924bfdaa66606d.js +0 -1
  1121. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-72924bfdaa66606d.js +0 -1
  1122. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-72924bfdaa66606d.js +0 -1
  1123. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-72924bfdaa66606d.js +0 -1
  1124. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-72924bfdaa66606d.js +0 -1
  1125. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-72924bfdaa66606d.js +0 -1
  1126. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-72924bfdaa66606d.js +0 -1
  1127. package/app/.next-cli-build/static/chunks/app/api/version/route-72924bfdaa66606d.js +0 -1
  1128. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-72924bfdaa66606d.js +0 -1
  1129. package/app/.next-cli-build/static/chunks/app/api/version/update/route-72924bfdaa66606d.js +0 -1
  1130. package/app/.next-cli-build/static/chunks/app/landing/page-acb1434862d18ac7.js +0 -1
  1131. package/app/.next-cli-build/static/chunks/app/login/page-38ed66b1e6930f46.js +0 -1
  1132. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-72924bfdaa66606d.js +0 -1
  1133. package/app/.next-cli-build/static/chunks/app/page-72924bfdaa66606d.js +0 -1
  1134. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-72924bfdaa66606d.js +0 -1
  1135. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-72924bfdaa66606d.js +0 -1
  1136. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-72924bfdaa66606d.js +0 -1
  1137. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-72924bfdaa66606d.js +0 -1
  1138. package/app/.next-cli-build/static/chunks/webpack-b43a2a1c513882e9.js +0 -1
  1139. package/app/.next-cli-build/static/css/ab87cc8491e8d0fb.css +0 -1
  1140. /package/app/.next-cli-build/static/{Qmgbf1CsCnKFbpB4QvL8M → hWZt96TEErc6dGwTZrX7O}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
1
  (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8334],{22662:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>b});var a=s(95155),l=s(73321),r=s(12115),n=s(98500),i=s.n(n),o=s(35497),c=s(67852),d=s(88105);let m=/^[a-zA-Z0-9_.\-]+$/,x={webSearch:"Web Search",webFetch:"Web Fetch",image:"Text to Image",tts:"Text To Speech"},h={webSearch:"/v1/search",webFetch:"/v1/web/fetch",image:"/v1/images/generations",tts:"/v1/audio/speech"},u={webSearch:e=>({model:e,query:"What is the latest news about AI?",search_type:"web",max_results:5}),webFetch:e=>({model:e,url:"https://example.com",format:"markdown"}),image:e=>({model:e,prompt:"A cute cat playing piano",n:1,size:"1024x1024"}),tts:e=>({model:e,input:"Hello, this is a test.",voice:"alloy"})};function p(e){return"webSearch"===e||"webFetch"===e?"/dashboard/media-providers/web":`/dashboard/media-providers/${e}`}function b(){let{id:e}=(0,l.useParams)(),t=(0,l.useRouter)(),[s,n]=(0,r.useState)(null),[b,f]=(0,r.useState)(!0),[j,g]=(0,r.useState)(""),[w,y]=(0,r.useState)(""),[v,N]=(0,r.useState)([]),[k,S]=(0,r.useState)(!1),[U,$]=(0,r.useState)(!1),[C,O]=(0,r.useState)([]),[_,T]=(0,r.useState)(!1),[R,A]=(0,r.useState)(null),[L,P]=(0,r.useState)(""),[z,E]=(0,r.useState)(""),[D,F]=(0,r.useState)([]),[M,I]=(0,r.useState)({}),J=async()=>{try{let[t,s,a,l,r,i]=await Promise.all([fetch(`/api/combos/${e}`,{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"}),fetch("/api/usage/logs",{cache:"no-store"}),fetch("/api/keys",{cache:"no-store"}),fetch("/api/providers",{cache:"no-store"}),fetch("/api/models/alias",{cache:"no-store"})]);if(i.ok&&I((await i.json()).aliases||{}),l.ok){let e=await l.json();E((e.keys||[]).find(e=>!1!==e.isActive)?.key||"")}if(r.ok&&F((await r.json()).connections||[]),!t.ok){n(null),f(!1);return}let o=await t.json();n(o),g(o.name),N(o.models||[]);let c=s.ok?await s.json():{};S(c.comboStrategies?.[o.name]?.fallbackStrategy==="round-robin");let d=a.ok?await a.json():[];O(d.filter(e=>"string"==typeof e&&e.includes(o.name)).slice(0,50))}catch{}f(!1)};(0,r.useEffect)(()=>{J()},[e]);let W=e=>e.trim()?m.test(e)?(y(""),!0):(y("Only letters, numbers, -, _ and ."),!1):(y("Name is required"),!1),H=async t=>{let s=await fetch(`/api/combos/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});return!!s.ok||(alert((await s.json()).error||"Failed to save"),!1)},Z=async()=>{!W(j)||j===s.name||await H({name:j})&&await J()},q=async e=>{let t=e?.value||e;if(!t||v.includes(t))return;let s=[...v,t];N(s),await H({models:s})},B=async e=>{let t=e?.value||e;if(!t||!v.includes(t))return;let s=v.filter(e=>e!==t);N(s),await H({models:s})},Y=async e=>{let t=v.filter((t,s)=>s!==e);N(t),await H({models:t})},G=async(e,t)=>{let s=[...v],a=e+t;a<0||a>=s.length||([s[e],s[a]]=[s[a],s[e]],N(s),await H({models:s}))},K=async e=>{S(e);let t=await fetch("/api/settings",{cache:"no-store"}),a={...(t.ok?await t.json():{}).comboStrategies||{}};e?a[s.name]={fallbackStrategy:"round-robin"}:delete a[s.name],await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategies:a})})},Q=async()=>{!confirm(`Delete combo "${s.name}"?`)||(await fetch(`/api/combos/${e}`,{method:"DELETE"})).ok&&t.push(p(s.kind))},V=async()=>{if(T(!0),A(null),P(""),R?.audioUrl)try{URL.revokeObjectURL(R.audioUrl)}catch{}if(R?.imageUrl?.startsWith("blob:"))try{URL.revokeObjectURL(R.imageUrl)}catch{}let e=Date.now();try{let t=h[s.kind],a=u[s.kind](s.name),l={"Content-Type":"application/json"};z&&(l.Authorization=`Bearer ${z}`);let r=await fetch(`/api${t}`,{method:"POST",headers:l,body:JSON.stringify(a)}),n=Date.now()-e;if(!r.ok){let e=await r.json().catch(()=>({}));P(e?.error?.message||e?.error||`HTTP ${r.status}`),A({json:JSON.stringify(e,null,2),latencyMs:n});return}let i=r.headers.get("content-type")||"";if(i.startsWith("image/")){let e=await r.blob();A({imageUrl:URL.createObjectURL(e),latencyMs:n});return}if(i.startsWith("audio/")||"application/octet-stream"===i){let e=await r.blob();A({audioUrl:URL.createObjectURL(e),latencyMs:n});return}let o=await r.json(),c=o?.data?.[0],d=c?.b64_json?`data:image/png;base64,${c.b64_json}`:c?.url||"";A({json:JSON.stringify(function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);let s={};for(let[a,l]of Object.entries(t))s[a]="b64_json"===a&&"string"==typeof l&&l.length>100?`<${l.length} chars base64>`:e(l);return s}(o),null,2),imageUrl:d,latencyMs:n})}catch(e){P(e.message||"Network error")}T(!1)};if(b)return(0,a.jsx)("div",{className:"text-text-muted text-sm",children:"Loading..."});if(!s)return(0,l.notFound)();let X=x[s.kind]||d.rj.find(e=>e.id===s.kind)?.label||"Combo",ee=h[s.kind],et=s.kind&&u[s.kind]?u[s.kind](s.name):null,es=ee?`curl -X POST http://localhost:20128${ee} \\
2
2
  -H "Content-Type: application/json" \\
3
3
  -H "Authorization: Bearer ${z||"YOUR_KEY"}" \\
4
- -d '${JSON.stringify(et)}'`:"",ea=p(s.kind);return(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,a.jsx)(i(),{href:ea,className:"text-text-muted hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined",children:"arrow_back"})}),(0,a.jsx)("div",{className:"size-10 rounded-lg bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"layers"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:[X," Combo"]}),(0,a.jsx)("code",{className:"text-lg font-semibold font-mono",children:s.name})]})]}),(0,a.jsx)(o.$n,{variant:"outline",icon:"delete",onClick:Q,className:"text-red-500 border-red-200 hover:bg-red-50",children:"Delete"})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-3",children:"Settings"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(o.pd,{label:"Combo Name",value:j,onChange:e=>{g(e.target.value),W(e.target.value)},onBlur:Z,error:w}),(0,a.jsx)("p",{className:"text-[10px] text-text-muted mt-0.5",children:"Only letters, numbers, -, _ and ."})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Rotate providers across requests instead of strict fallback order."})]}),(0,a.jsx)(o.lM,{checked:k,onChange:K})]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Providers"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Tried in order (top-down) or rotated when round-robin is on."})]}),(0,a.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>$(!0),children:"Add Provider"})]}),0===v.length?(0,a.jsx)("div",{className:"text-center py-6 border border-dashed border-border rounded-lg text-text-muted text-sm",children:"No providers yet."}):(0,a.jsx)("div",{className:"flex flex-col gap-2",children:v.map((e,t)=>{let{providerId:s,model:l}=function(e){if("string"!=typeof e)return{providerId:"",model:""};let t=e.indexOf("/");return t<0?{providerId:e,model:""}:{providerId:e.slice(0,t),model:e.slice(t+1)}}(e),r=d.Q2[s];return(0,a.jsxs)("div",{className:"flex items-center gap-3 p-2 rounded-lg bg-black/[0.02] dark:bg-white/[0.02]",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted w-5 text-center",children:t+1}),(0,a.jsx)(c.A,{src:`/providers/${s}.png`,alt:r?.name||s,size:24,className:"object-contain rounded shrink-0",fallbackText:r?.textIcon||s.slice(0,2).toUpperCase(),fallbackColor:r?.color}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("div",{className:"text-sm font-medium truncate",children:r?.name||s}),l&&(0,a.jsx)("code",{className:"text-[10px] text-text-muted font-mono truncate block",children:l})]}),(0,a.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,a.jsx)("button",{onClick:()=>G(t,-1),disabled:0===t,className:`p-1 rounded ${0===t?"text-text-muted/20":"text-text-muted hover:text-primary hover:bg-black/5"}`,title:"Move up",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"arrow_upward"})}),(0,a.jsx)("button",{onClick:()=>G(t,1),disabled:t===v.length-1,className:`p-1 rounded ${t===v.length-1?"text-text-muted/20":"text-text-muted hover:text-primary hover:bg-black/5"}`,title:"Move down",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"arrow_downward"})}),(0,a.jsx)("button",{onClick:()=>Y(t),className:"p-1 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10",title:"Remove",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})})]})]},`${e}-${t}`)})})]}),s.kind&&ee&&(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Test Example"}),(0,a.jsx)(o.$n,{size:"sm",icon:"play_arrow",onClick:V,disabled:_||0===v.length,children:_?"Running...":"Run"})]}),(0,a.jsx)("pre",{className:"text-xs font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-x-auto whitespace-pre-wrap break-all",children:es}),L&&(0,a.jsx)("p",{className:"mt-3 text-xs text-red-500 break-words",children:L}),R&&(0,a.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[null!=R.latencyMs&&(0,a.jsxs)("span",{className:"text-[11px] text-text-muted",children:["⚡ ",R.latencyMs,"ms"]}),R.imageUrl&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,a.jsxs)("a",{href:R.imageUrl,download:"image.png",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,a.jsx)("img",{src:R.imageUrl,alt:"Generated",className:"max-w-full rounded-lg border border-border",loading:"lazy",decoding:"async"})]}),R.audioUrl&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,a.jsxs)("a",{href:R.audioUrl,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,a.jsx)("audio",{controls:!0,src:R.audioUrl,className:"w-full"})]}),R.json&&(0,a.jsx)("pre",{className:"text-xs font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-auto max-h-[300px] whitespace-pre-wrap break-all",children:R.json})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-3",children:"Usage Logs"}),0===C.length?(0,a.jsx)("p",{className:"text-xs text-text-muted italic",children:"No usage yet."}):(0,a.jsx)("pre",{className:"text-[11px] font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-auto max-h-[400px] whitespace-pre-wrap",children:C.join("\n")})]}),U&&(0,a.jsx)(o.rq,{isOpen:U,onClose:()=>$(!1),onSelect:q,onDeselect:B,activeProviders:D,modelAliases:M,title:`Add ${X} Model`,kindFilter:s.kind,addedModelValues:v,closeOnSelect:!1})]})}},96363:(e,t,s)=>{Promise.resolve().then(s.bind(s,22662))}},e=>{e.O(0,[3170,1728,1321,5497,8441,3794,7358],()=>e(e.s=96363)),_N_E=e.O()}]);
4
+ -d '${JSON.stringify(et)}'`:"",ea=p(s.kind);return(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 min-w-0",children:[(0,a.jsx)(i(),{href:ea,className:"text-text-muted hover:text-primary",children:(0,a.jsx)("span",{className:"material-symbols-outlined",children:"arrow_back"})}),(0,a.jsx)("div",{className:"size-10 rounded-lg bg-primary/10 flex items-center justify-center",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-primary",children:"layers"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:[X," Combo"]}),(0,a.jsx)("code",{className:"text-lg font-semibold font-mono",children:s.name})]})]}),(0,a.jsx)(o.$n,{variant:"outline",icon:"delete",onClick:Q,className:"text-red-500 border-red-200 hover:bg-red-50",children:"Delete"})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-3",children:"Settings"}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(o.pd,{label:"Combo Name",value:j,onChange:e=>{g(e.target.value),W(e.target.value)},onBlur:Z,error:w}),(0,a.jsx)("p",{className:"text-[10px] text-text-muted mt-0.5",children:"Only letters, numbers, -, _ and ."})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Rotate providers across requests instead of strict fallback order."})]}),(0,a.jsx)(o.lM,{checked:k,onChange:K})]})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Providers"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Tried in order (top-down) or rotated when round-robin is on."})]}),(0,a.jsx)(o.$n,{size:"sm",icon:"add",onClick:()=>$(!0),children:"Add Provider"})]}),0===v.length?(0,a.jsx)("div",{className:"text-center py-6 border border-dashed border-border rounded-lg text-text-muted text-sm",children:"No providers yet."}):(0,a.jsx)("div",{className:"flex flex-col gap-2",children:v.map((e,t)=>{let{providerId:s,model:l}=function(e){if("string"!=typeof e)return{providerId:"",model:""};let t=e.indexOf("/");return t<0?{providerId:e,model:""}:{providerId:e.slice(0,t),model:e.slice(t+1)}}(e),r=d.Q2[s];return(0,a.jsxs)("div",{className:"flex items-center gap-3 p-2 rounded-lg bg-black/[0.02] dark:bg-white/[0.02]",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted w-5 text-center",children:t+1}),(0,a.jsx)(c.A,{src:`/providers/${s}.png`,alt:r?.name||s,size:24,className:"object-contain rounded shrink-0",fallbackText:r?.textIcon||s.slice(0,2).toUpperCase(),fallbackColor:r?.color}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("div",{className:"text-sm font-medium truncate",children:r?.name||s}),l&&(0,a.jsx)("code",{className:"text-[10px] text-text-muted font-mono truncate block",children:l})]}),(0,a.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,a.jsx)("button",{onClick:()=>G(t,-1),disabled:0===t,className:`p-1 rounded ${0===t?"text-text-muted/20":"text-text-muted hover:text-primary hover:bg-black/5"}`,title:"Move up",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"arrow_upward"})}),(0,a.jsx)("button",{onClick:()=>G(t,1),disabled:t===v.length-1,className:`p-1 rounded ${t===v.length-1?"text-text-muted/20":"text-text-muted hover:text-primary hover:bg-black/5"}`,title:"Move down",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"arrow_downward"})}),(0,a.jsx)("button",{onClick:()=>Y(t),className:"p-1 rounded text-text-muted hover:text-red-500 hover:bg-red-500/10",title:"Remove",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"close"})})]})]},`${e}-${t}`)})})]}),s.kind&&ee&&(0,a.jsxs)(o.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,a.jsx)("h2",{className:"text-lg font-semibold",children:"Test Example"}),(0,a.jsx)(o.$n,{size:"sm",icon:"play_arrow",onClick:V,disabled:_||0===v.length,children:_?"Running...":"Run"})]}),(0,a.jsx)("pre",{className:"text-xs font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-x-auto whitespace-pre-wrap break-all",children:es}),L&&(0,a.jsx)("p",{className:"mt-3 text-xs text-red-500 break-words",children:L}),R&&(0,a.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[null!=R.latencyMs&&(0,a.jsxs)("span",{className:"text-[11px] text-text-muted",children:["⚡ ",R.latencyMs,"ms"]}),R.imageUrl&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,a.jsxs)("a",{href:R.imageUrl,download:"image.png",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,a.jsx)("img",{src:R.imageUrl,alt:"Generated",className:"max-w-full rounded-lg border border-border",loading:"lazy",decoding:"async"})]}),R.audioUrl&&(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex items-center justify-end mb-1.5",children:(0,a.jsxs)("a",{href:R.audioUrl,download:"speech.mp3",className:"inline-flex items-center gap-1 text-xs text-text-muted hover:text-primary transition-colors",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"download"}),"Download"]})}),(0,a.jsx)("audio",{controls:!0,src:R.audioUrl,className:"w-full"})]}),R.json&&(0,a.jsx)("pre",{className:"text-xs font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-auto max-h-[300px] whitespace-pre-wrap break-all",children:R.json})]})]}),(0,a.jsxs)(o.Zp,{children:[(0,a.jsx)("h2",{className:"text-lg font-semibold mb-3",children:"Usage Logs"}),0===C.length?(0,a.jsx)("p",{className:"text-xs text-text-muted italic",children:"No usage yet."}):(0,a.jsx)("pre",{className:"text-[11px] font-mono bg-black/[0.03] dark:bg-white/[0.03] p-3 rounded-lg overflow-auto max-h-[400px] whitespace-pre-wrap",children:C.join("\n")})]}),U&&(0,a.jsx)(o.rq,{isOpen:U,onClose:()=>$(!1),onSelect:q,onDeselect:B,activeProviders:D,modelAliases:M,title:`Add ${X} Model`,kindFilter:s.kind,addedModelValues:v,closeOnSelect:!1})]})}},96363:(e,t,s)=>{Promise.resolve().then(s.bind(s,22662))}},e=>{e.O(0,[3170,305,1321,5497,8441,3794,7358],()=>e(e.s=96363)),_N_E=e.O()}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9260],{29508:(e,r,t)=>{"use strict";t.d(r,{Dr:()=>c,GU:()=>o,K_:()=>a,Lg:()=>i,pG:()=>n,pj:()=>l});let s=Number.MAX_SAFE_INTEGER;function a(e){let r=Object.entries(e||{}).some(([e,r])=>e.startsWith("modelLock_")&&r&&new Date(r).getTime()>Date.now());return e?.testStatus!=="unavailable"||r?e?.testStatus:"active"}function n(e,r,t=null){let s=(e||[]).filter(e=>e.provider===r&&(!t||t.includes(e.authType))),i=s.filter(e=>{if(!1===e.isActive)return!1;let r=a(e);return"active"===r||"success"===r}).length,o=s.filter(e=>{let r=a(e);return"error"===r||"expired"===r||"unavailable"===r}).length,l=s.length,c=l>0&&s.every(e=>!1===e.isActive);return{connected:i,error:o,total:l,allDisabled:c}}function i(e,{noAuth:r=!1,noAuthEnabled:t=!0}={}){return(e?.connected??0)>0?0:r?+!t:(e?.total??0)===0?3:2}function o({cardOrder:e=[],statsOf:r,infoOf:t,noAuthEnabledOf:a}){let n=function(e=[]){let r=new Map;return(e||[]).forEach((e,t)=>{r.has(e)||r.set(e,t)}),e=>r.has(e)?r.get(e):s}(e),l=e=>!a||!1!==a(e);return(e,s)=>{let a=t(e)||{},o=t(s)||{},c=i(r(e),{noAuth:!!a.noAuth,noAuthEnabled:l(e)}),d=i(r(s),{noAuth:!!o.noAuth,noAuthEnabled:l(s)});if(c!==d)return c-d;let m=n(e),x=n(s);if(m!==x)return m-x;let h=a.priority??999,u=o.priority??999;return h!==u?h-u:String(a.name||e).localeCompare(String(o.name||s))}}function l(e,r,t,s){if(!t||!s||t===s)return e;let a=function(e,r){let t=[...e||[]];for(let e of r||[])t.includes(e)||t.push(e);return t}(e,r),n=a.indexOf(t),i=a.indexOf(s);return -1===n||-1===i?e:(a.splice(n,1),a.splice(i,0,t),a)}function c(e){return fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerCardOrder:e})})}},71088:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>f});var s=t(95155),a=t(98500),n=t.n(a),i=t(12115),o=t(73321),l=t(35497),c=t(67852),d=t(76995),m=t(88105),x=t(29508);function h({provider:e,kind:r,connections:t}){let a=m.Q2[e.id],i=!!a?.noAuth,{connected:o,error:d,total:u,allDisabled:p}=(0,x.pG)(t,e.id);return(0,s.jsx)(n(),{href:`/dashboard/media-providers/${r}/${e.id}`,className:"group",children:(0,s.jsx)(l.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${p?"opacity-50":""}`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${e.color?.length>7?e.color:(e.color??"#888")+"15"}`},children:(0,s.jsx)(c.A,{src:`/providers/${e.id}.png`,alt:e.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:e.textIcon||e.id.slice(0,2).toUpperCase(),fallbackColor:e.color})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold text-sm",children:e.name}),(0,s.jsx)("div",{className:"flex items-center gap-2 mt-0.5 flex-wrap",children:i?(0,s.jsx)(l.Ex,{variant:"success",size:"sm",children:"Ready"}):p?(0,s.jsx)(l.Ex,{variant:"default",size:"sm",children:"Disabled"}):0===u?(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"No connections"}):(0,s.jsxs)(s.Fragment,{children:[o>0&&(0,s.jsxs)(l.Ex,{variant:"success",size:"sm",dot:!0,children:[o," Connected"]}),d>0&&(0,s.jsxs)(l.Ex,{variant:"error",size:"sm",dot:!0,children:[d," Error"]}),0===o&&0===d&&(0,s.jsxs)(l.Ex,{variant:"default",size:"sm",children:[u," Added"]})]})})]})]})})})}function u({combos:e}){return 0===e.length?(0,s.jsx)("p",{className:"text-xs text-text-muted italic",children:"No combos yet."}):(0,s.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,s.jsx)(n(),{href:`/dashboard/media-providers/combo/${e.id}`,children:(0,s.jsx)(l.Zp,{padding:"xs",className:"hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors cursor-pointer",children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"}),(0,s.jsx)("code",{className:"text-sm font-mono font-medium flex-1 truncate",children:e.name}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:shrink-0",children:[e.models.slice(0,6).map((e,r)=>{let t="string"==typeof e?e.split("/")[0]:"",a=m.Q2[t];return(0,s.jsx)("div",{title:a?.name||e,className:"size-5 rounded flex items-center justify-center",style:{backgroundColor:`${a?.color??"#888"}15`},children:(0,s.jsx)(c.A,{src:`/providers/${t}.png`,alt:a?.name||t,size:18,className:"object-contain rounded max-w-[18px] max-h-[18px]",fallbackText:a?.textIcon||t.slice(0,2).toUpperCase(),fallbackColor:a?.color})},`${e}-${r}`)}),e.models.length>6&&(0,s.jsxs)("span",{className:"text-[10px] text-text-muted ml-1",children:["+",e.models.length-6]})]}),(0,s.jsx)("span",{className:"text-[11px] text-text-muted shrink-0",children:e.models.length}),(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[16px]",children:"chevron_right"})]})})},e.id))})}function p({title:e,icon:r,kind:t,providers:a,connections:n,combos:i,onCreateCombo:o,draggingCardId:c,dragOverCardId:m,onDragStart:x,onDragOver:f,onDrop:g,onDragEnd:b}){return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary",children:r}),(0,s.jsx)("h2",{className:"text-base font-semibold",children:e}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["(",a.length," providers \xb7 ",i.length," combos)"]})]}),(0,s.jsx)(l.$n,{size:"sm",icon:"add",onClick:o,children:"Create Combo"})]}),i.length>0&&(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)(u,{combos:i})}),0===a.length?(0,s.jsx)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl text-text-muted text-sm",children:"No providers."}):(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:a.map(e=>(0,s.jsx)(d.A,{cardId:e.id,isDragging:c===e.id,isOver:m===e.id&&c!==e.id,onDragStart:x,onDragOver:f,onDrop:g,onDragEnd:b,children:(0,s.jsx)(h,{provider:e,kind:t,connections:n})},e.id))})]})}function f(){let e=(0,o.useRouter)(),[r,t]=(0,i.useState)([]),[a,n]=(0,i.useState)([]),[l,c]=(0,i.useState)([]),[d,h]=(0,i.useState)(null),[u,f]=(0,i.useState)(null),g=async()=>{try{let[e,r,s]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/combos",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]);if(e.ok&&t((await e.json()).connections||[]),r.ok&&n((await r.json()).combos||[]),s.ok){let e=await s.json();Array.isArray(e.providerCardOrder)&&c(e.providerCardOrder)}}catch{}};(0,i.useEffect)(()=>{g()},[]);let b=(0,x.GU)({cardOrder:l,statsOf:e=>(0,x.pG)(r,e),infoOf:e=>m.Q2[e]}),v=[...(0,m.o5)("webSearch")].sort((e,r)=>b(e.id,r.id)),j=[...(0,m.o5)("webFetch")].sort((e,r)=>b(e.id,r.id)),N=a.filter(e=>"webSearch"===e.kind),w=a.filter(e=>"webFetch"===e.kind),y=()=>{h(null),f(null)},D=e=>r=>{y(),d&&r&&d!==r&&c(t=>{let s=(0,x.pj)(t,e,d,r);return s!==t&&(0,x.Dr)(s).catch(()=>{}),s})},k=async r=>{let t="webSearch"===r?"search-combo":"fetch-combo",s=t,n=1,i=new Set(a.map(e=>e.name));for(;i.has(s);)s=`${t}-${n++}`;let o=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:s,models:[],kind:r})});if(o.ok){let r=await o.json();e.push(`/dashboard/media-providers/combo/${r.id}`)}else alert((await o.json()).error||"Failed to create combo")};return(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(p,{title:"Web Search",icon:"search",kind:"webSearch",providers:v,connections:r,combos:N,onCreateCombo:()=>k("webSearch"),draggingCardId:d,dragOverCardId:u,onDragStart:h,onDragOver:f,onDrop:D(v.map(e=>e.id)),onDragEnd:y}),(0,s.jsx)("div",{className:"border-t border-border"}),(0,s.jsx)(p,{title:"Web Fetch",icon:"travel_explore",kind:"webFetch",providers:j,connections:r,combos:w,onCreateCombo:()=>k("webFetch"),draggingCardId:d,dragOverCardId:u,onDragStart:h,onDragOver:f,onDrop:D(j.map(e=>e.id)),onDragEnd:y})]})}},74778:(e,r,t)=>{Promise.resolve().then(t.bind(t,71088))},76995:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});var s=t(95155),a=t(14051),n=t.n(a);function i({cardId:e,isDragging:r,isOver:t,onDragStart:a,onDragOver:n,onDrop:o,onDragEnd:l,children:c}){return(0,s.jsx)("div",{draggable:!0,onDragStart:r=>{a?.(e),r.dataTransfer.effectAllowed="move";try{r.dataTransfer.setData("text/plain",e)}catch{}},onDragOver:r=>{r.preventDefault(),r.dataTransfer.dropEffect="move",n?.(e)},onDrop:r=>{r.preventDefault(),o?.(e)},onDragEnd:l,className:`min-w-0 transition-all rounded-xl cursor-grab active:cursor-grabbing ${r?"opacity-30 scale-[0.98]":t?"ring-2 ring-primary/60 scale-[1.01]":""}`,children:c})}i.propTypes={cardId:n().string.isRequired,isDragging:n().bool,isOver:n().bool,onDragStart:n().func,onDragOver:n().func,onDrop:n().func,onDragEnd:n().func,children:n().node}}},e=>{e.O(0,[3170,1728,1321,5497,8441,3794,7358],()=>e(e.s=74778)),_N_E=e.O()}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9260],{29508:(e,r,t)=>{"use strict";t.d(r,{Dr:()=>c,GU:()=>o,K_:()=>a,Lg:()=>i,pG:()=>n,pj:()=>l});let s=Number.MAX_SAFE_INTEGER;function a(e){let r=Object.entries(e||{}).some(([e,r])=>e.startsWith("modelLock_")&&r&&new Date(r).getTime()>Date.now());return e?.testStatus!=="unavailable"||r?e?.testStatus:"active"}function n(e,r,t=null){let s=(e||[]).filter(e=>e.provider===r&&(!t||t.includes(e.authType))),i=s.filter(e=>{if(!1===e.isActive)return!1;let r=a(e);return"active"===r||"success"===r}).length,o=s.filter(e=>{let r=a(e);return"error"===r||"expired"===r||"unavailable"===r}).length,l=s.length,c=l>0&&s.every(e=>!1===e.isActive);return{connected:i,error:o,total:l,allDisabled:c}}function i(e,{noAuth:r=!1,noAuthEnabled:t=!0}={}){return(e?.connected??0)>0?0:r?+!t:(e?.total??0)===0?3:2}function o({cardOrder:e=[],statsOf:r,infoOf:t,noAuthEnabledOf:a}){let n=function(e=[]){let r=new Map;return(e||[]).forEach((e,t)=>{r.has(e)||r.set(e,t)}),e=>r.has(e)?r.get(e):s}(e),l=e=>!a||!1!==a(e);return(e,s)=>{let a=t(e)||{},o=t(s)||{},c=i(r(e),{noAuth:!!a.noAuth,noAuthEnabled:l(e)}),d=i(r(s),{noAuth:!!o.noAuth,noAuthEnabled:l(s)});if(c!==d)return c-d;let m=n(e),x=n(s);if(m!==x)return m-x;let h=a.priority??999,u=o.priority??999;return h!==u?h-u:String(a.name||e).localeCompare(String(o.name||s))}}function l(e,r,t,s){if(!t||!s||t===s)return e;let a=function(e,r){let t=[...e||[]];for(let e of r||[])t.includes(e)||t.push(e);return t}(e,r),n=a.indexOf(t),i=a.indexOf(s);return -1===n||-1===i?e:(a.splice(n,1),a.splice(i,0,t),a)}function c(e){return fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({providerCardOrder:e})})}},71088:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>f});var s=t(95155),a=t(98500),n=t.n(a),i=t(12115),o=t(73321),l=t(35497),c=t(67852),d=t(76995),m=t(88105),x=t(29508);function h({provider:e,kind:r,connections:t}){let a=m.Q2[e.id],i=!!a?.noAuth,{connected:o,error:d,total:u,allDisabled:p}=(0,x.pG)(t,e.id);return(0,s.jsx)(n(),{href:`/dashboard/media-providers/${r}/${e.id}`,className:"group",children:(0,s.jsx)(l.Zp,{padding:"xs",className:`h-full hover:bg-black/[0.01] dark:hover:bg-white/[0.01] transition-colors cursor-pointer ${p?"opacity-50":""}`,children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("div",{className:"size-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${e.color?.length>7?e.color:(e.color??"#888")+"15"}`},children:(0,s.jsx)(c.A,{src:`/providers/${e.id}.png`,alt:e.name,size:30,className:"object-contain rounded-lg max-w-[30px] max-h-[30px]",fallbackText:e.textIcon||e.id.slice(0,2).toUpperCase(),fallbackColor:e.color})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold text-sm",children:e.name}),(0,s.jsx)("div",{className:"flex items-center gap-2 mt-0.5 flex-wrap",children:i?(0,s.jsx)(l.Ex,{variant:"success",size:"sm",children:"Ready"}):p?(0,s.jsx)(l.Ex,{variant:"default",size:"sm",children:"Disabled"}):0===u?(0,s.jsx)("span",{className:"text-xs text-text-muted",children:"No connections"}):(0,s.jsxs)(s.Fragment,{children:[o>0&&(0,s.jsxs)(l.Ex,{variant:"success",size:"sm",dot:!0,children:[o," Connected"]}),d>0&&(0,s.jsxs)(l.Ex,{variant:"error",size:"sm",dot:!0,children:[d," Error"]}),0===o&&0===d&&(0,s.jsxs)(l.Ex,{variant:"default",size:"sm",children:[u," Added"]})]})})]})]})})})}function u({combos:e}){return 0===e.length?(0,s.jsx)("p",{className:"text-xs text-text-muted italic",children:"No combos yet."}):(0,s.jsx)("div",{className:"flex flex-col gap-2",children:e.map(e=>(0,s.jsx)(n(),{href:`/dashboard/media-providers/combo/${e.id}`,children:(0,s.jsx)(l.Zp,{padding:"xs",className:"hover:bg-black/[0.02] dark:hover:bg-white/[0.02] transition-colors cursor-pointer",children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary text-[18px]",children:"layers"}),(0,s.jsx)("code",{className:"text-sm font-mono font-medium flex-1 truncate",children:e.name}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-1 sm:shrink-0",children:[e.models.slice(0,6).map((e,r)=>{let t="string"==typeof e?e.split("/")[0]:"",a=m.Q2[t];return(0,s.jsx)("div",{title:a?.name||e,className:"size-5 rounded flex items-center justify-center",style:{backgroundColor:`${a?.color??"#888"}15`},children:(0,s.jsx)(c.A,{src:`/providers/${t}.png`,alt:a?.name||t,size:18,className:"object-contain rounded max-w-[18px] max-h-[18px]",fallbackText:a?.textIcon||t.slice(0,2).toUpperCase(),fallbackColor:a?.color})},`${e}-${r}`)}),e.models.length>6&&(0,s.jsxs)("span",{className:"text-[10px] text-text-muted ml-1",children:["+",e.models.length-6]})]}),(0,s.jsx)("span",{className:"text-[11px] text-text-muted shrink-0",children:e.models.length}),(0,s.jsx)("span",{className:"material-symbols-outlined text-text-muted text-[16px]",children:"chevron_right"})]})})},e.id))})}function p({title:e,icon:r,kind:t,providers:a,connections:n,combos:i,onCreateCombo:o,draggingCardId:c,dragOverCardId:m,onDragStart:x,onDragOver:f,onDrop:g,onDragEnd:b}){return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between mb-3",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-primary",children:r}),(0,s.jsx)("h2",{className:"text-base font-semibold",children:e}),(0,s.jsxs)("span",{className:"text-xs text-text-muted",children:["(",a.length," providers \xb7 ",i.length," combos)"]})]}),(0,s.jsx)(l.$n,{size:"sm",icon:"add",onClick:o,children:"Create Combo"})]}),i.length>0&&(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)(u,{combos:i})}),0===a.length?(0,s.jsx)("div",{className:"text-center py-8 border border-dashed border-border rounded-xl text-text-muted text-sm",children:"No providers."}):(0,s.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:a.map(e=>(0,s.jsx)(d.A,{cardId:e.id,isDragging:c===e.id,isOver:m===e.id&&c!==e.id,onDragStart:x,onDragOver:f,onDrop:g,onDragEnd:b,children:(0,s.jsx)(h,{provider:e,kind:t,connections:n})},e.id))})]})}function f(){let e=(0,o.useRouter)(),[r,t]=(0,i.useState)([]),[a,n]=(0,i.useState)([]),[l,c]=(0,i.useState)([]),[d,h]=(0,i.useState)(null),[u,f]=(0,i.useState)(null),g=async()=>{try{let[e,r,s]=await Promise.all([fetch("/api/providers",{cache:"no-store"}),fetch("/api/combos",{cache:"no-store"}),fetch("/api/settings",{cache:"no-store"})]);if(e.ok&&t((await e.json()).connections||[]),r.ok&&n((await r.json()).combos||[]),s.ok){let e=await s.json();Array.isArray(e.providerCardOrder)&&c(e.providerCardOrder)}}catch{}};(0,i.useEffect)(()=>{g()},[]);let b=(0,x.GU)({cardOrder:l,statsOf:e=>(0,x.pG)(r,e),infoOf:e=>m.Q2[e]}),v=[...(0,m.o5)("webSearch")].sort((e,r)=>b(e.id,r.id)),j=[...(0,m.o5)("webFetch")].sort((e,r)=>b(e.id,r.id)),N=a.filter(e=>"webSearch"===e.kind),w=a.filter(e=>"webFetch"===e.kind),y=()=>{h(null),f(null)},D=e=>r=>{y(),d&&r&&d!==r&&c(t=>{let s=(0,x.pj)(t,e,d,r);return s!==t&&(0,x.Dr)(s).catch(()=>{}),s})},k=async r=>{let t="webSearch"===r?"search-combo":"fetch-combo",s=t,n=1,i=new Set(a.map(e=>e.name));for(;i.has(s);)s=`${t}-${n++}`;let o=await fetch("/api/combos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:s,models:[],kind:r})});if(o.ok){let r=await o.json();e.push(`/dashboard/media-providers/combo/${r.id}`)}else alert((await o.json()).error||"Failed to create combo")};return(0,s.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,s.jsx)(p,{title:"Web Search",icon:"search",kind:"webSearch",providers:v,connections:r,combos:N,onCreateCombo:()=>k("webSearch"),draggingCardId:d,dragOverCardId:u,onDragStart:h,onDragOver:f,onDrop:D(v.map(e=>e.id)),onDragEnd:y}),(0,s.jsx)("div",{className:"border-t border-border"}),(0,s.jsx)(p,{title:"Web Fetch",icon:"travel_explore",kind:"webFetch",providers:j,connections:r,combos:w,onCreateCombo:()=>k("webFetch"),draggingCardId:d,dragOverCardId:u,onDragStart:h,onDragOver:f,onDrop:D(j.map(e=>e.id)),onDragEnd:y})]})}},74778:(e,r,t)=>{Promise.resolve().then(t.bind(t,71088))},76995:(e,r,t)=>{"use strict";t.d(r,{A:()=>i});var s=t(95155),a=t(14051),n=t.n(a);function i({cardId:e,isDragging:r,isOver:t,onDragStart:a,onDragOver:n,onDrop:o,onDragEnd:l,children:c}){return(0,s.jsx)("div",{draggable:!0,onDragStart:r=>{a?.(e),r.dataTransfer.effectAllowed="move";try{r.dataTransfer.setData("text/plain",e)}catch{}},onDragOver:r=>{r.preventDefault(),r.dataTransfer.dropEffect="move",n?.(e)},onDrop:r=>{r.preventDefault(),o?.(e)},onDragEnd:l,className:`min-w-0 transition-all rounded-xl cursor-grab active:cursor-grabbing ${r?"opacity-30 scale-[0.98]":t?"ring-2 ring-primary/60 scale-[1.01]":""}`,children:c})}i.propTypes={cardId:n().string.isRequired,isDragging:n().bool,isOver:n().bool,onDragStart:n().func,onDragOver:n().func,onDrop:n().func,onDragEnd:n().func,children:n().node}}},e=>{e.O(0,[3170,305,1321,5497,8441,3794,7358],()=>e(e.s=74778)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6607],{23879:(e,s,t)=>{"use strict";t.d(s,{default:()=>d});var a=t(95155),i=t(12115),n=t(3534),l=t(28777),o=t(88105),r=t(69749);function d(){let[e,s]=(0,i.useState)([]),[t,d]=(0,i.useState)([]),[c,u]=(0,i.useState)({}),[h,p]=(0,i.useState)(!1),[w,f]=(0,i.useState)(null),[y,x]=(0,i.useState)({running:!1,certExists:!1,dnsStatus:{},hasCachedPassword:!1});(0,i.useEffect)(()=>{g(),v(),m(),S()},[]);let g=async()=>{try{let e=await fetch("/api/providers");if(e.ok){let t=await e.json();s(t.connections||[])}}catch{}},v=async()=>{try{let e=await fetch("/api/keys");if(e.ok){let s=await e.json();d(s.keys||[])}}catch{}},m=async()=>{try{let e=await fetch("/api/models/alias");if(e.ok){let s=await e.json();u(s.aliases||{})}}catch{}},S=async()=>{try{let e=await fetch("/api/settings");if(e.ok){let s=await e.json();p(s.cloudEnabled||!1)}}catch{}},b=()=>e.filter(e=>!1!==e.isActive),k=Object.entries(n.wn);return(0,a.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[(0,a.jsxs)("div",{className:"flex items-start gap-2 px-3 py-2 rounded-lg bg-yellow-500/10 border border-yellow-500/30",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px] text-yellow-500 mt-0.5 shrink-0",children:"warning"}),(0,a.jsx)("p",{className:"text-xs text-red-600 dark:text-yellow-400 leading-relaxed",children:"⚠️ MITM intercepts HTTPS traffic of IDE tools (Antigravity, GitHub Copilot, Kiro) via local CA to redirect requests to your providers. May violate ToS → account ban. Use at your own risk."})]}),(0,a.jsx)(r.tA,{apiKeys:t,cloudEnabled:h,onStatusChange:x}),(0,a.jsx)("div",{className:"grid gap-3 sm:gap-4",children:k.map(([e,s])=>(0,a.jsx)(r.kn,{tool:s,isExpanded:w===e,onToggle:()=>f(w===e?null:e),serverRunning:y.running,dnsActive:y.dnsStatus?.[e]||!1,hasCachedPassword:y.hasCachedPassword||!1,needsSudoPassword:!1!==y.needsSudoPassword,isWin:!0===y.isWin,apiKeys:t,activeProviders:b(),hasActiveProviders:b().some(e=>(0,l.KC)(e.provider).length>0||(0,o.mq)(e.provider)||(0,o.gb)(e.provider)),modelAliases:c,cloudEnabled:h,onDnsChange:e=>x(s=>({...s,dnsStatus:e.dnsStatus??s.dnsStatus}))},e))})]})}},41831:(e,s,t)=>{Promise.resolve().then(t.bind(t,23879))}},e=>{e.O(0,[3170,305,5772,1321,5497,9749,8441,3794,7358],()=>e(e.s=41831)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6337],{},_=>{_.O(0,[3170,305,1321,5497,1243,8441,3794,7358],()=>_(_.s=51243)),_N_E=_.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3471],{13966:(e,t,s)=>{Promise.resolve().then(s.bind(s,64561))},43185:(e,t,s)=>{"use strict";function a(){if("u"<typeof localStorage)return!0;let e=localStorage.getItem("compactUnits");return null===e||"0"!==e}function r(e,t="en",s=!1){let l=e||0;return s||a()?String(t).startsWith("zh")?l>=1e8?`${(l/1e8).toFixed(1)}亿`:l>=1e4?`${(l/1e4).toFixed(1)}万`:l.toLocaleString():l>=1e9?`${(l/1e9).toFixed(1)}B`:l>=1e6?`${(l/1e6).toFixed(1)}M`:l>=1e3?`${(l/1e3).toFixed(1)}K`:l.toLocaleString():l.toLocaleString()}s.d(t,{k:()=>a,y:()=>r})},64561:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>y});var a=s(95155),r=s(12115),l=s(35497),i=s(81127),o=s(32486),n=s(21931),d=s(1620),c=s(31474),m=s(90620),x=s(93308),p=s(38202),u=s(45496),h=s(43185),g=s(65635),b=s(73006);function f(){if("u"<typeof document)return"en";let e=document.cookie.split(";").find(e=>e.trim().startsWith(`${x.CL}=`)),t=e?decodeURIComponent(e.split("=")[1]):"en";return(0,x.QC)(t)}function y(){let{theme:e,setTheme:t,isDark:s}=(0,d.D)(),[x,y]=(0,r.useState)(()=>f()),[j,w]=(0,r.useState)(!0),[N,v]=(0,r.useState)(!0),[S,C]=(0,r.useState)(!1),[k,L]=(0,r.useState)(!1),[T,A]=(0,r.useState)(!1),[I,P]=(0,r.useState)(!1),[O,M]=(0,r.useState)({open:!1,value:"",confirm:"",error:"",loading:!1}),[E,R]=(0,r.useState)({loading:!1,message:"",type:""}),[$,D]=(0,r.useState)(!1),[U,F]=(0,r.useState)({fallbackStrategy:"fill-first"}),[q,J]=(0,r.useState)(!0),[_,H]=(0,r.useState)({current:"",new:"",confirm:""}),[z,B]=(0,r.useState)({type:"",message:""}),[X,K]=(0,r.useState)(!1),[W,Z]=(0,r.useState)(!1),[V,Q]=(0,r.useState)({type:"",message:""}),[Y,G]=(0,r.useState)({open:!1,mode:"",password:""}),ee=(0,r.useRef)(null),[et,es]=(0,r.useState)({authMode:"password",oidcIssuerUrl:"",oidcClientId:"",oidcScopes:"openid profile email",oidcLoginLabel:"Sign in with OIDC"}),[ea,er]=(0,r.useState)(""),[el,ei]=(0,r.useState)({type:"",message:""}),[eo,en]=(0,r.useState)(!1),[ed,ec]=(0,r.useState)(!1),[em,ex]=(0,r.useState)({type:"",message:""}),[ep,eu]=(0,r.useState)(!1),eh=window.location.origin,eg=eh?`${eh}/api/auth/oidc/callback`:"/api/auth/oidc/callback",eb=eh?`${eh}/api/auth/saml/acs`:"/api/auth/saml/acs",ef=eh?`${eh}/api/auth/saml/metadata`:"/api/auth/saml/metadata",[ey,ej]=(0,r.useState)("saml"),[ew,eN]=(0,r.useState)({samlEntryPoint:"",samlIssuer:"urn:10router:sp",samlCert:"",samlLoginLabel:"Sign in with SAML SSO",samlAttributeEmail:"email",samlAttributeName:"name"}),[ev,eS]=(0,r.useState)({type:"",message:""}),[eC,ek]=(0,r.useState)(!1),[eL,eT]=(0,r.useState)(!1),[eA,eI]=(0,r.useState)({type:"",message:""}),[eP,eO]=(0,r.useState)(!1),eM=(0,r.useRef)(null),eE=(0,r.useRef)(null),eR=(0,r.useRef)(null),e$=(0,r.useRef)(null),eD=(0,r.useRef)(null),[eU,eF]=(0,r.useState)({type:"",message:""}),[eq,eJ]=(0,r.useState)(!1),[e_,eH]=(0,r.useState)({outboundProxyEnabled:!1,outboundProxyUrl:"",outboundNoProxy:""}),[ez,eB]=(0,r.useState)({type:"",message:""}),[eX,eK]=(0,r.useState)(!1),[eW,eZ]=(0,r.useState)(!1),[eV,eQ]=(0,r.useState)(!1);(0,r.useEffect)(()=>{eQ(!["localhost","127.0.0.1","::1"].includes(window.location.hostname))},[]),(0,r.useEffect)(()=>{y(f()),w((0,u.i)()),v((0,h.k)())},[S]);let eY=async()=>{let e=!1===U.showCommunityProviders;try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({showCommunityProviders:e})}),s=await t.json();t.ok&&F(e=>({...e,...s}))}catch(e){console.log("Error toggling show-community-providers:",e)}};(0,r.useEffect)(()=>{fetch("/api/settings").then(e=>e.json()).then(e=>{F(e),es({authMode:e?.authMode||"password",oidcIssuerUrl:e?.oidcIssuerUrl||"",oidcClientId:e?.oidcClientId||"",oidcScopes:e?.oidcScopes||"openid profile email",oidcLoginLabel:e?.oidcLoginLabel||"Sign in with OIDC"}),er(""),ej(e?.ssoType||"saml"),eN({samlEntryPoint:e?.samlEntryPoint||"",samlIssuer:e?.samlIssuer||"urn:10router:sp",samlCert:e?.samlCert||"",samlLoginLabel:e?.samlLoginLabel||"Sign in with SAML SSO",samlAttributeEmail:e?.samlAttributeEmail||"email",samlAttributeName:e?.samlAttributeName||"name"}),(e?.authMode==="sso"||e?.authMode==="saml"||e?.authMode==="oidc"||e?.authMode==="both")&&eu(!0),eH({outboundProxyEnabled:e?.outboundProxyEnabled===!0,outboundProxyUrl:e?.outboundProxyUrl||"",outboundNoProxy:e?.outboundNoProxy||""}),J(!1)}).catch(e=>{console.error("Failed to fetch settings:",e),J(!1)})},[]);let eG=async e=>{if(e.preventDefault(),!0===U.outboundProxyEnabled){eK(!0),eB({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyUrl:e_.outboundProxyUrl,outboundNoProxy:e_.outboundNoProxy})}),t=await e.json();e.ok?(F(e=>({...e,...t})),eB({type:"success",message:"Proxy settings applied"})):eB({type:"error",message:t.error||"Failed to update proxy settings"})}catch(e){eB({type:"error",message:"An error occurred"})}finally{eK(!1)}}},e0=async()=>{if(!0!==U.outboundProxyEnabled)return;let e=(e_.outboundProxyUrl||"").trim();if(!e)return void eB({type:"error",message:"Please enter a Proxy URL to test"});eZ(!0),eB({type:"",message:""});try{let t=await fetch("/api/settings/proxy-test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({proxyUrl:e})}),s=await t.json();t.ok&&s?.ok?eB({type:"success",message:`Proxy test OK (${s.status}) in ${s.elapsedMs}ms`}):eB({type:"error",message:s?.error||"Proxy test failed"})}catch(e){eB({type:"error",message:"An error occurred"})}finally{eZ(!1)}},e1=async e=>{eK(!0),eB({type:"",message:""});try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({outboundProxyEnabled:e})}),s=await t.json();t.ok?(F(e=>({...e,...s})),eH(e=>({...e,outboundProxyEnabled:s?.outboundProxyEnabled===!0})),eB({type:"success",message:e?"Proxy enabled":"Proxy disabled"})):eB({type:"error",message:s.error||"Failed to update proxy settings"})}catch(e){eB({type:"error",message:"An error occurred"})}finally{eK(!1)}},e5=async e=>{if(e.preventDefault(),!_.new.trim())return void B({type:"error",message:(0,b.Tl)("Password cannot be empty")});if(_.new!==_.confirm)return void B({type:"error",message:"Passwords do not match"});K(!0),B({type:"",message:""});try{let e=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:_.current,newPassword:_.new})}),t=await e.json();e.ok?(B({type:"success",message:"Password updated successfully"}),H({current:"",new:"",confirm:""})):B({type:"error",message:t.error||"Failed to update password"})}catch(e){B({type:"error",message:"An error occurred"})}finally{K(!1)}},e2=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({fallbackStrategy:e})})).ok&&F(t=>({...t,fallbackStrategy:e}))}catch(e){console.error("Failed to update settings:",e)}},e3=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStrategy:e})})).ok&&F(t=>({...t,comboStrategy:e}))}catch(e){console.error("Failed to update combo strategy:",e)}},e4=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({stickyRoundRobinLimit:t})})).ok&&F(e=>({...e,stickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update sticky limit:",e)}},e6=async e=>{let t=parseInt(e);if(!isNaN(t)&&!(t<1))try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({comboStickyRoundRobinLimit:t})})).ok&&F(e=>({...e,comboStickyRoundRobinLimit:t}))}catch(e){console.error("Failed to update combo sticky limit:",e)}},e9=async e=>{try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({requireLogin:e})});if(!t.ok){let e=await t.json().catch(()=>({}));e?.code==="PASSWORD_REQUIRED"&&M({open:!0,value:"",confirm:"",error:"",loading:!1});return}t.ok&&(F(t=>({...t,requireLogin:e,...e?{hideLoginOffBanner:!1}:{}})),window.dispatchEvent(new Event(o.f)))}catch(e){console.error("Failed to update require login:",e)}},e8=async()=>{let{value:e,confirm:t}=O;if(!e.trim())return void M(e=>({...e,error:(0,b.Tl)("Password cannot be empty")}));if(e!==t)return void M(e=>({...e,error:(0,b.Tl)("Passwords do not match")}));M(e=>({...e,loading:!0,error:""}));try{let t=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({newPassword:e,requireLogin:!0})}),s=await t.json().catch(()=>({}));if(!t.ok)return void M(e=>({...e,loading:!1,error:s?.error||(0,b.Tl)("Failed to update password")}));F(e=>({...e,requireLogin:!0,hasPassword:!0,hideLoginOffBanner:!1})),M({open:!1,value:"",confirm:"",error:"",loading:!1}),window.dispatchEvent(new Event(o.f))}catch{M(e=>({...e,loading:!1,error:(0,b.Tl)("An error occurred")}))}},e7=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({autoUpdateCheck:e})})).ok&&(F(t=>({...t,autoUpdateCheck:e})),R({loading:!1,message:"",type:""}))}catch(e){console.error("Failed to update automatic update check:",e)}},te=async()=>{R({loading:!0,message:"",type:""});try{let e=await fetch("/api/version?check=1",{cache:"no-store"}),t=e.ok?await e.json():null;t?.latestVersion?t.hasUpdate?R({loading:!1,type:"info",message:(0,b.Tl)("New version available: v${latest} (installed v${current})").replace("${latest}",t.latestVersion).replace("${current}",t.currentVersion)}):R({loading:!1,type:"ok",message:(0,b.Tl)("You are on the latest version (v${current}).").replace("${current}",t.currentVersion)}):R({loading:!1,type:"error",message:(0,b.Tl)("Could not reach the update server. Try again later.")})}catch{R({loading:!1,type:"error",message:(0,b.Tl)("Could not reach the update server. Try again later.")})}},tt=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({hideLoginOffBanner:e})})).ok&&(F(t=>({...t,hideLoginOffBanner:e})),window.dispatchEvent(new Event(o.f)))}catch(e){console.error("Failed to update login-off banner:",e)}},ts=(e,t)=>{es(s=>({...s,[e]:t}))},ta=async(e=et.authMode||"password")=>{let t=et.oidcIssuerUrl.trim(),s=et.oidcClientId.trim(),a=et.oidcScopes.trim(),r=et.oidcLoginLabel.trim(),l=ea.trim();if("password"!==e&&(!t||!s||!l)&&!U.oidcConfigured)return void ei({type:"error",message:"Issuer URL, client ID, and client secret are required to enable OIDC."});en(!0),ei({type:"",message:""}),ex({type:"",message:""});try{let i={authMode:e,ssoType:"oidc",oidcIssuerUrl:t,oidcClientId:s,oidcScopes:a||"openid profile email",oidcLoginLabel:r||"Sign in with OIDC"};l&&(i.oidcClientSecret=l);let o=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)}),n=await o.json();o.ok?(F(e=>({...e,...n})),es({authMode:n?.authMode||e,oidcIssuerUrl:n?.oidcIssuerUrl||t,oidcClientId:n?.oidcClientId||s,oidcScopes:n?.oidcScopes||a||"openid profile email",oidcLoginLabel:n?.oidcLoginLabel||r||"Sign in with OIDC"}),er(""),ei({type:"success",message:"oidc"===e?"OIDC login enabled":"both"===e?"Password and OIDC login enabled":"OIDC settings saved"})):ei({type:"error",message:n.error||"Failed to save OIDC settings"})}catch(e){ei({type:"error",message:"An error occurred"})}finally{en(!1)}},tr=async()=>{let e=et.oidcIssuerUrl.trim(),t=et.oidcClientId.trim(),s=et.oidcScopes.trim(),a=ea.trim();if(!e||!t)return void ex({type:"error",message:"Issuer URL and client ID are required to test the connection."});ec(!0),ei({type:"",message:""}),ex({type:"",message:""});try{let r=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({authMode:et.authMode||U.authMode||"password",oidcIssuerUrl:e,oidcClientId:t,oidcScopes:s||"openid profile email",oidcLoginLabel:et.oidcLoginLabel.trim()||"Sign in with OIDC",...a?{oidcClientSecret:a}:{}})}),l=await r.json().catch(()=>({}));if(!r.ok)return void ex({type:"error",message:l.error||"Failed to save OIDC settings before testing"});let i=await fetch("/api/auth/oidc/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({issuerUrl:l.oidcIssuerUrl||e,clientId:l.oidcClientId||t,scopes:l.oidcScopes||s||"openid profile email"})}),o=await i.json().catch(()=>({}));if(i.ok&&o?.ok){let e=o.clientSecretTested?!0===o.clientSecretValid?`Connection OK. Discovery loaded from ${o.issuerUrl}. Client secret validated too.`:`Connection OK. Discovery loaded from ${o.issuerUrl}. Client secret was not checked.`:`Connection OK. Discovery loaded from ${o.issuerUrl}.`;ex({type:"success",message:e})}else ex({type:"error",message:o.error||"OIDC connection test failed"})}catch(e){ex({type:"error",message:"An error occurred"})}finally{ec(!1)}},tl=(e,t)=>{eN(s=>({...s,[e]:t}))},ti=async(e=et.authMode||"password")=>{ek(!0),eS({type:"",message:""}),eI({type:"",message:""});try{let t={authMode:e,ssoType:"saml",samlEntryPoint:ew.samlEntryPoint.trim(),samlIssuer:ew.samlIssuer.trim()||"urn:10router:sp",samlCert:ew.samlCert.trim(),samlLoginLabel:ew.samlLoginLabel.trim()||"Sign in with SAML SSO",samlAttributeEmail:ew.samlAttributeEmail.trim()||"email",samlAttributeName:ew.samlAttributeName.trim()||"name"},s=await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),a=await s.json();s.ok?(F(e=>({...e,...a})),eN({samlEntryPoint:a?.samlEntryPoint||t.samlEntryPoint,samlIssuer:a?.samlIssuer||t.samlIssuer,samlCert:a?.samlCert||t.samlCert,samlLoginLabel:a?.samlLoginLabel||t.samlLoginLabel,samlAttributeEmail:a?.samlAttributeEmail||t.samlAttributeEmail,samlAttributeName:a?.samlAttributeName||t.samlAttributeName}),eS({type:"success",message:"sso"===e||"saml"===e?"SAML SSO login enabled":"both"===e?"Password and SAML SSO login enabled":"SAML 2.0 settings saved"})):eS({type:"error",message:a.error||"Failed to save SAML settings"})}catch{eS({type:"error",message:"An error occurred while saving SAML settings"})}finally{ek(!1)}},to=async()=>{eT(!0),eS({type:"",message:""}),eI({type:"",message:""});try{let e=await fetch("/api/auth/saml/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({samlEntryPoint:ew.samlEntryPoint.trim(),samlIssuer:ew.samlIssuer.trim(),samlCert:ew.samlCert.trim()})}),t=await e.json();e.ok&&t.ok?eI({type:"success",message:t.message||"SAML configuration verified!"}):eI({type:"error",message:t.error||"SAML configuration test failed"})}catch{eI({type:"error",message:"An error occurred while testing SAML configuration"})}finally{eT(!1)}},tn=async e=>{try{(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({enableObservability:e})})).ok&&F(t=>({...t,enableObservability:e}))}catch(e){console.error("Failed to update enableObservability:",e)}},td=async()=>{try{let e=await fetch("/api/settings");if(!e.ok)return;let t=await e.json();F(t)}catch(e){console.error("Failed to reload settings:",e)}},tc=async e=>{Z(!0),Q({type:"",message:""});try{let t=await fetch("/api/settings/database",{headers:{"x-10r-password":e}});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||"Failed to export database")}let s=await t.json(),a=JSON.stringify(s,null,2),r=new Blob([a],{type:"application/json"}),l=URL.createObjectURL(r),i=document.createElement("a"),o=new Date().toISOString().replace(/[.:]/g,"-");i.href=l,i.download=`10router-backup-${o}.json`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(l);let n=Array.isArray(s?.credentialErrors)?s.credentialErrors:[];n.length>0?Q({type:"error",message:(0,b.Tl)("Backup downloaded, but {count} connection(s) could not be decrypted — their credentials are stored as ciphertext and can only be restored with the original key.").replace("{count}",String(n.length))}):Q({type:"success",message:"Database backup downloaded"})}catch(e){Q({type:"error",message:e.message||"Failed to export database"})}finally{Z(!1)}},tm=e=>/\\.(sqlite|sqlite3|db)$/i.test(e.name)||"application/x-sqlite3"===e.type||"application/vnd.sqlite3"===e.type||"application/octet-stream"===e.type,tx=e=>/\\.(json)$/i.test(e.name)||"application/json"===e.type,tp=async(e,t=null)=>{eJ(!0),eF({type:"",message:""});try{let s,a=tx(e)&&!tm(e),r={};if(t&&(r["x-10r-password"]=t),a){let t;try{let s=await e.text();t=JSON.parse(s)}catch{eJ(!1),eF({type:"error",message:(0,b.Tl)("Invalid JSON usage file")});return}s=JSON.stringify(Array.isArray(t)?{usageHistory:t}:t),r["Content-Type"]="application/json"}else{let t=new FormData;t.append("file",e),s=t}let l=await fetch("/api/settings/database/import-usage",{method:"POST",body:s,headers:r}),i=await l.json();if(!l.ok){if(401===l.status&&!t){eD.current=e,G({open:!0,mode:"usage-import",password:""});return}throw Error(i.error||"Failed to import usage")}eF({type:"success",message:`${(0,b.Tl)("Imported")} ${i.imported} ${(0,b.Tl)("usage records")} (${(0,b.Tl)("skipped")} ${i.skipped}, ${(0,b.Tl)("total")} ${i.total})`})}catch(e){eF({type:"error",message:e.message||"Failed to import usage"})}finally{eJ(!1)}},tu=async e=>{let t=ee.current;if(t){Z(!0);try{let s=await t.text(),a=JSON.parse(s),r=await fetch("/api/settings/database",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,password:e})}),l=await r.json().catch(()=>({}));if(!r.ok)throw Error(l.error||"Failed to import database");await td(),Q({type:"success",message:"Database imported successfully"})}catch(e){Q({type:"error",message:e.message||"Invalid backup file"})}finally{ee.current=null,Z(!1)}}},th=async()=>{let{mode:e,password:t}=Y;if(G({open:!1,mode:"",password:""}),"export"===e)await tc(t);else if("import"===e)await tu(t);else if("usage-import"===e){let e=eD.current;eD.current=null,e&&await tp(e,t)}},tg=!0===U.enableObservability,tb=async()=>{D(!0);try{await fetch("/api/version/shutdown",{method:"POST"})}catch(e){}D(!1),L(!1)},tf=async()=>{try{(await fetch("/api/auth/logout",{method:"POST"})).ok&&window.location.assign("/login")}catch(e){console.error("Failed to logout:",e)}};return(0,a.jsxs)("div",{className:"max-w-2xl mx-auto px-4 sm:px-0",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-4",children:[(0,a.jsx)("div",{className:"size-10 sm:size-12 rounded-lg bg-green-500/10 text-green-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-xl sm:text-2xl",children:"computer"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg sm:text-xl font-semibold",children:"Local Mode"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Running on your machine"})]})]}),(0,a.jsx)("div",{className:"inline-flex p-1 rounded-lg bg-black/5 dark:bg-white/5 w-full sm:w-auto",children:["light","dark","system"].map(s=>(0,a.jsxs)("button",{type:"button",onClick:()=>t(s),className:(0,c.cn)("flex items-center justify-center gap-1 sm:gap-1.5 px-2 sm:px-3 py-1.5 rounded-md font-medium transition-all flex-1 sm:flex-initial",e===s?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"light"===s?"light_mode":"dark"===s?"dark_mode":"contrast"}),(0,a.jsx)("span",{className:"capitalize text-xs sm:text-sm",children:s})]},s))})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3 pt-4 border-t border-border",children:[(0,a.jsx)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between p-3 rounded-lg bg-bg border border-border gap-2",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Database Location"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted font-mono break-all",children:"~/.10router/db/data.sqlite"})]})}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(l.$n,{variant:"secondary",icon:"download",onClick:()=>G({open:!0,mode:"export",password:""}),loading:W,className:"w-full sm:w-auto",children:"Download Backup"}),(0,a.jsx)(l.$n,{variant:"outline",icon:"upload",onClick:()=>eR.current?.click(),disabled:W,className:"w-full sm:w-auto",children:"Import Backup"}),(0,a.jsx)(l.$n,{variant:"outline",icon:"history",onClick:()=>e$.current?.click(),loading:eq,className:"w-full sm:w-auto",children:(0,b.Tl)("Import Usage")}),(0,a.jsx)("input",{ref:eR,type:"file",accept:"application/json,.json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];eR.current&&(eR.current.value=""),t&&(ee.current=t,Q({type:"",message:""}),G({open:!0,mode:"import",password:""}))}}),(0,a.jsx)("input",{ref:e$,type:"file",accept:".sqlite,.db,.sqlite3,.json,application/json",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(e$.current&&(e$.current.value=""),t){if(!tm(t)&&!tx(t))return void eF({type:"error",message:(0,b.Tl)("Only SQLite (.sqlite/.db) or JSON (.json) usage files can be imported")});tp(t)}}})]}),(0,a.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-400",children:(0,b.Tl)("The backup file contains provider credentials in readable form — store it like a password.")}),V.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===V.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:V.message}),eU.message&&(0,a.jsx)("p",{className:`text-sm ${"error"===eU.type?"text-red-500":"text-green-600 dark:text-green-400"}`,children:eU.message})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg bg-blue-500/10 text-blue-500 flex items-center justify-center shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"language"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Language")})]}),(0,a.jsxs)("button",{onClick:()=>C(!0),className:"flex items-center justify-between w-full p-3 rounded-lg bg-bg border border-border hover:border-primary/50 transition-colors","data-i18n-skip":"true",children:[(0,a.jsx)("span",{className:"text-sm text-text-muted",children:(0,b.Tl)("Display language")}),(0,a.jsx)("span",{className:"text-2xl",children:p.h[x]||"\uD83C\uDF10"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 mt-3 p-3 rounded-lg bg-bg border border-border",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:(0,b.Tl)("Regional currency")}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Show costs in local currency (\xa5/NT$/₩/₫); off → $"})]}),(0,a.jsx)(l.lM,{checked:j,onChange:()=>{let e=!(0,u.i)();"u">typeof localStorage&&localStorage.setItem("useRegionalCurrency",e?"1":"0"),w(e)}})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 mt-3 p-3 rounded-lg bg-bg border border-border",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:(0,b.Tl)("Unit abbreviation")}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Large numbers as 亿/万 (zh) or M/B (en); off → full numbers"})]}),(0,a.jsx)(l.lM,{checked:N,onChange:()=>{let e=!(0,h.k)();"u">typeof localStorage&&localStorage.setItem("compactUnits",e?"1":"0"),v(e)}})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-primary/10 text-primary shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"shield"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Security")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:(0,b.Tl)("Require login")}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("When ON, dashboard requires password. When OFF, access without login.")})]}),(0,a.jsx)(l.lM,{checked:!1!==U.requireLogin,onChange:()=>{!1===U.requireLogin?e9(!0):A(!0)},disabled:q})]}),!1===U.requireLogin&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pl-3 border-l-2 border-red-500/40",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:(0,b.Tl)("Show the log-in-off warning banner")}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("The red banner at the top of every page while the log-in check is off. Turning log-in back on shows it again next time.")})]}),(0,a.jsx)(l.lM,{checked:!0!==U.hideLoginOffBanner,onChange:()=>{!0===U.hideLoginOffBanner?tt(!1):P(!0)},disabled:q})]}),!1!==U.requireLogin&&(0,a.jsxs)("form",{onSubmit:e5,className:"flex flex-col gap-4 pt-4 border-t border-border/50",children:[U.hasPassword&&(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Current Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Enter current password",value:_.current,onChange:e=>H({..._,current:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"New Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Enter new password",value:_.new,onChange:e=>H({..._,new:e.target.value}),required:!0})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-xs sm:text-sm font-medium",children:"Confirm New Password"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Confirm new password",value:_.confirm,onChange:e=>H({..._,confirm:e.target.value}),required:!0})]})]}),z.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===z.type?"text-red-500":"text-green-500"}`,children:z.message}),(0,a.jsx)("div",{className:"pt-2",children:(0,a.jsx)(l.$n,{type:"submit",variant:"primary",loading:X,className:"w-full sm:w-auto",children:U.hasPassword?"Update Password":"Set Password"})})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:(0,b.Tl)("Check for updates automatically")}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("When OFF, 10Router no longer contacts the update server on its own or shows new-version notices — including security fixes. You can still check by hand.")})]}),(0,a.jsx)(l.lM,{checked:!1!==U.autoUpdateCheck,onChange:()=>e7(!1===U.autoUpdateCheck),disabled:q})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,a.jsx)(l.$n,{type:"button",variant:"secondary",size:"sm",onClick:te,loading:E.loading,children:(0,b.Tl)("Check now")}),E.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===E.type?"text-red-500":"info"===E.type?"text-primary":"text-green-500"}`,children:E.message})]})]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("button",{type:"button",onClick:()=>eu(e=>!e),className:"w-full flex items-center gap-3 text-left",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-indigo-500/10 text-indigo-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"lock_open"})}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Single Sign-On (SSO)")}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"sso"===U.authMode||"oidc"===U.authMode||"saml"===U.authMode?`${"saml"===U.ssoType?"SAML 2.0":"OIDC"} SSO active`:"both"===U.authMode?`Password + ${"saml"===U.ssoType?"SAML 2.0":"OIDC"} active`:"Optional SSO via Okta, Entra ID, Keycloak, or OIDC"})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted shrink-0",children:ep?"expand_less":"expand_more"})]}),ep&&(0,a.jsxs)("div",{className:"flex flex-col gap-4 mt-4",children:[(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("Configure enterprise Single Sign-On (SSO) for dashboard access using SAML 2.0 or OIDC.")}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SSO Protocol"}),(0,a.jsxs)("div",{className:"flex p-1 rounded-lg bg-black/5 dark:bg-white/5 border border-border",children:[(0,a.jsx)("button",{type:"button",onClick:()=>ej("saml"),className:(0,c.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","saml"===ey?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"SAML 2.0"}),(0,a.jsx)("button",{type:"button",onClick:()=>ej("oidc"),className:(0,c.cn)("flex-1 py-1.5 px-3 rounded-md font-medium text-xs sm:text-sm transition-all text-center","oidc"===ey?"bg-white dark:bg-white/10 text-text-main shadow-sm":"text-text-muted hover:text-text-main"),children:"OIDC"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Auth Mode"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[{value:"password",title:"Password only",desc:"Keep legacy password login."},{value:"sso",title:`${"saml"===ey?"SAML":"OIDC"} only`,desc:"Require SSO for dashboard access."},{value:"both",title:"Both",desc:"Allow password or SSO login."}].map(e=>{let t=et.authMode,s="password"===e.value?"password"===t:"sso"===e.value?"sso"===t||"saml"===t||"oidc"===t:"both"===t;return(0,a.jsxs)("button",{type:"button",onClick:()=>ts("authMode",e.value),className:(0,c.cn)("text-left rounded-lg border p-3 transition-colors",s?"border-primary bg-primary/5":"border-border bg-bg hover:bg-black/5 dark:hover:bg-white/5"),disabled:q||eo||eC,children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:e.title}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted mt-1",children:e.desc})]},e.value)})})]}),"saml"===ey?(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg/80 overflow-hidden",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>eO(e=>!e),className:"w-full p-3 flex items-center justify-between gap-2 text-left hover:bg-surface/50 transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-primary text-lg",children:"menu_book"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-semibold text-xs sm:text-sm text-text-main",children:"IdP Setup Guidelines & Provider Configuration Instructions"}),(0,a.jsx)("p",{className:"text-[11px] text-text-muted",children:"Click to view setup steps for AWS IAM Identity Center, Okta, Entra ID, Keycloak, & Authentik"})]})]}),(0,a.jsx)("span",{className:"material-symbols-outlined text-text-muted transition-transform text-lg",style:{transform:eP?"rotate(180deg)":"none"},children:"expand_more"})]}),eP&&(0,a.jsxs)("div",{className:"p-4 border-t border-border bg-surface/30 text-xs text-text-main flex flex-col gap-3",children:[(0,a.jsxs)("div",{className:"p-2.5 rounded border border-primary/20 bg-primary/5 text-primary text-xs",children:[(0,a.jsx)("p",{className:"font-semibold mb-1",children:"\uD83D\uDD11 Required Service Provider (SP) Values for your IdP Setup:"}),(0,a.jsxs)("ul",{className:"list-disc pl-4 space-y-1 font-mono text-[11px]",children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Assertion Consumer Service (ACS) URL:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:eb})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"SP Entity ID / Audience URI:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded break-all",children:ew.samlIssuer||"urn:10router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"NameID Format:"})," ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"EmailAddress"})," or ",(0,a.jsx)("code",{className:"bg-bg px-1 py-0.5 rounded",children:"Unspecified"})]})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 pt-1",children:[(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"☁️"})," AWS IAM Identity Center"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Add application"})," → Select ",(0,a.jsx)("b",{children:"Add custom SAML 2.0 application"}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application ACS URL"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:eb}),"."]}),(0,a.jsxs)("li",{children:["Set ",(0,a.jsx)("b",{children:"Application SAML audience"})," to ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ew.samlIssuer||"urn:10router:sp"}),"."]}),(0,a.jsxs)("li",{children:["Under ",(0,a.jsx)("i",{children:"Attribute mappings"}),", map ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"Subject"})," or ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:"email"})," to ",(0,a.jsxs)("code",{className:"text-text-main font-mono",children:["$","{user:email}"]}),"."]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"IAM Identity Center SAML metadata XML"})," file and use 1-Click Import below!"]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDD37"})," Microsoft Entra ID (Azure AD)"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Enterprise Applications → ",(0,a.jsx)("b",{children:"New application"})," → ",(0,a.jsx)("b",{children:"Create your own application"}),"."]}),(0,a.jsxs)("li",{children:["Select ",(0,a.jsx)("b",{children:"Single sign-on"})," → ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Identifier (Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ew.samlIssuer||"urn:10router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Reply URL (ACS):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:eb})]}),(0,a.jsxs)("li",{children:["Download ",(0,a.jsx)("b",{children:"Federation Metadata XML"})," and import or copy X.509 Certificate."]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDFE2"})," Okta / Auth0"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Applications → ",(0,a.jsx)("b",{children:"Create App Integration"})," → Select ",(0,a.jsx)("b",{children:"SAML 2.0"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Single Sign-On URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:eb})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Audience URI (SP Entity ID):"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ew.samlIssuer||"urn:10router:sp"})]}),(0,a.jsxs)("li",{children:["Name ID format: ",(0,a.jsx)("i",{children:"EmailAddress"}),"."]}),(0,a.jsx)("li",{children:"Download Identity Provider metadata XML or copy the X.509 cert."})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded border border-border bg-bg/50 flex flex-col gap-1.5",children:[(0,a.jsxs)("p",{className:"font-semibold text-text-main flex items-center gap-1.5",children:[(0,a.jsx)("span",{children:"\uD83D\uDEE1️"})," Keycloak / Authentik"]}),(0,a.jsxs)("ol",{className:"list-decimal pl-4 text-text-muted space-y-1",children:[(0,a.jsxs)("li",{children:["Clients → ",(0,a.jsx)("b",{children:"Create client"})," → Select ",(0,a.jsx)("b",{children:"SAML"}),"."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Client ID:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:ew.samlIssuer||"urn:10router:sp"})]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("b",{children:"Master SAML Processing URL:"})," ",(0,a.jsx)("code",{className:"text-text-main font-mono",children:eb})]}),(0,a.jsx)("li",{children:"Export SAML Descriptor XML or copy IDP Certificate PEM."})]})]})]})]})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg border border-dashed border-primary/40 bg-primary/5 flex flex-col sm:flex-row sm:items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-sm text-text-main",children:"1-Click IdP Metadata XML Import"}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Auto-fill SSO URL, Issuer & Cert from XML metadata"})]}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"upload_file",onClick:()=>eM.current?.click(),children:"Upload Metadata XML"}),(0,a.jsx)("input",{ref:eM,type:"file",accept:".xml,application/xml,text/xml",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eM.current&&(eM.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{try{let t=e.target?.result||"",s=new DOMParser().parseFromString(t,"text/xml");if(s.querySelector("parsererror"))return void eS({type:"error",message:"Unable to parse valid SAML IdP metadata from XML file"});let a=s.documentElement.getAttribute("entityID")||"",r=Array.from(s.querySelectorAll("SingleSignOnService, *|SingleSignOnService")),l="";for(let e of r){let t=e.getAttribute("Binding")||"",s=e.getAttribute("Location")||"";if(s&&(l=s,t.includes("HTTP-Redirect")))break}let i=Array.from(s.querySelectorAll("X509Certificate, *|X509Certificate")),o="";i.length>0&&(o=i[0].textContent.trim()),eN(e=>({...e,samlEntryPoint:l||e.samlEntryPoint,samlIssuer:e.samlIssuer||"urn:10router:sp",samlCert:o||e.samlCert})),eS({type:"success",message:`IdP Metadata imported! (SSO URL: ${l?"found":"not found"}, EntityID: ${a?"found":"not found"}, Cert: ${o?"found":"not found"})`})}catch(e){eS({type:"error",message:"Error reading IdP Metadata XML file"})}},s.readAsText(t)}})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Single Sign-On Service URL (samlEntryPoint)"}),(0,a.jsx)(l.pd,{placeholder:"https://idp.example.com/app/saml/sso/...",value:ew.samlEntryPoint,onChange:e=>tl("samlEntryPoint",e.target.value),disabled:q||eC})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"SP Entity ID / Audience (samlIssuer)"}),(0,a.jsx)(l.pd,{placeholder:"urn:10router:sp",value:ew.samlIssuer,onChange:e=>tl("samlIssuer",e.target.value),disabled:q||eC})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"IdP X.509 Certificate (samlCert)"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"file_upload",onClick:()=>eE.current?.click(),children:"Upload Certificate"}),(0,a.jsx)("input",{ref:eE,type:"file",accept:".crt,.pem,.cer,text/plain",className:"hidden",onChange:e=>{let t=e.target.files?.[0];if(eE.current&&(eE.current.value=""),!t)return;let s=new FileReader;s.onload=e=>{let t=e.target?.result||"";eN(e=>({...e,samlCert:t.trim()})),eS({type:"success",message:"Certificate file loaded into configuration."})},s.readAsText(t)}})]}),(0,a.jsx)("textarea",{rows:4,placeholder:"-----BEGIN CERTIFICATE-----\nMIIC...\n-----END CERTIFICATE-----",value:ew.samlCert,onChange:e=>tl("samlCert",e.target.value),className:"w-full p-2.5 rounded-lg border border-border bg-bg text-xs font-mono text-text-main focus:outline-none focus:border-primary",disabled:q||eC}),(0,a.jsx)("p",{className:"text-xs text-text-muted",children:"Paste raw Base64 certificate or PEM block."})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(l.pd,{placeholder:"Sign in with SAML SSO",value:ew.samlLoginLabel,onChange:e=>tl("samlLoginLabel",e.target.value),disabled:q||eC})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Email Claim Attribute"}),(0,a.jsx)(l.pd,{placeholder:"email",value:ew.samlAttributeEmail,onChange:e=>tl("samlAttributeEmail",e.target.value),disabled:q||eC})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Display Name Claim"}),(0,a.jsx)(l.pd,{placeholder:"name",value:ew.samlAttributeName,onChange:e=>tl("samlAttributeName",e.target.value),disabled:q||eC})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 p-3 rounded-lg border border-border bg-bg text-xs sm:text-sm text-text-muted",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"ACS Callback URL"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:eb})]}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",size:"sm",icon:"content_copy",onClick:async()=>{await (0,g.e)(eb),eS({type:"success",message:"ACS URL copied to clipboard!"})},children:"Copy"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium text-text-main",children:"SP XML Metadata"}),(0,a.jsx)("code",{className:"block break-all font-mono text-xs",children:ef})]}),(0,a.jsxs)("a",{href:ef,target:"_blank",rel:"noopener noreferrer",download:"10router-sp-metadata.xml",className:"inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"download"}),"Download XML"]})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(l.$n,{type:"button",variant:"primary",loading:eC,onClick:()=>ti(et.authMode),className:"w-full sm:w-auto",children:"Save SAML settings"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",loading:eL,onClick:to,className:"w-full sm:w-auto",children:"Test SAML settings"})]}),eA.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===eA.type?"text-red-500":"text-green-500"}`,children:eA.message}),ev.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===ev.type?"text-red-500":"text-green-500"}`,children:ev.message})]}):(0,a.jsxs)("div",{className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Issuer URL"}),(0,a.jsx)(l.pd,{placeholder:"https://auth.example.com/application/o/10router/",value:et.oidcIssuerUrl,onChange:e=>ts("oidcIssuerUrl",e.target.value),disabled:q||eo})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client ID"}),(0,a.jsx)(l.pd,{placeholder:"10router-dashboard",value:et.oidcClientId,onChange:e=>ts("oidcClientId",e.target.value),disabled:q||eo})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Client Secret"}),(0,a.jsx)(l.pd,{type:"password",placeholder:"Leave blank to keep existing secret",value:ea,onChange:e=>er(e.target.value),disabled:q||eo}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"This value is write-only after saving."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Scopes"}),(0,a.jsx)(l.pd,{placeholder:"openid profile email",value:et.oidcScopes,onChange:e=>ts("oidcScopes",e.target.value),disabled:q||eo})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Login Button Label"}),(0,a.jsx)(l.pd,{placeholder:"Sign in with OIDC",value:et.oidcLoginLabel,onChange:e=>ts("oidcLoginLabel",e.target.value),disabled:q||eo})]})]}),(0,a.jsxs)("div",{className:"rounded-lg border border-border bg-bg p-3 text-xs sm:text-sm text-text-muted",children:[(0,a.jsx)("p",{className:"font-medium text-text-main mb-1",children:"Redirect URI"}),(0,a.jsx)("code",{className:"block break-all font-mono",children:eg})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)(l.$n,{type:"button",variant:"primary",loading:eo,onClick:()=>ta(),className:"w-full sm:w-auto",children:"Save OIDC settings"}),(0,a.jsx)(l.$n,{type:"button",variant:"outline",loading:ed,onClick:tr,className:"w-full sm:w-auto",children:"Test connection"})]}),em.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===em.type?"text-red-500":"text-green-500"}`,children:em.message}),el.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===el.type?"text-red-500":"text-green-500"}`,children:el.message})]}),"oidc"===U.authMode||"saml"===U.authMode||"sso"===U.authMode?(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["SSO login (","saml"===U.ssoType?"SAML 2.0":"OIDC",") is currently active. Password login is disabled until you switch back."]}):null,"both"===U.authMode&&(0,a.jsxs)("p",{className:"text-xs sm:text-sm text-amber-600 dark:text-amber-400",children:["Password and SSO login (","saml"===U.ssoType?"SAML 2.0":"OIDC",") are both active."]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-blue-500/10 text-blue-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"route"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:"Routing Strategy"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through accounts to distribute load"})]}),(0,a.jsx)(l.lM,{checked:"round-robin"===U.fallbackStrategy,onChange:()=>e2("round-robin"===U.fallbackStrategy?"fill-first":"round-robin"),disabled:q})]}),"round-robin"===U.fallbackStrategy&&(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Sticky Limit"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Calls per account before switching"})]}),(0,a.jsx)(l.pd,{type:"number",min:"1",max:"10",value:U.stickyRoundRobinLimit||3,onChange:e=>e4(e.target.value),disabled:q,className:"w-16 sm:w-20 text-center shrink-0"})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4 pt-4 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Combo Round Robin"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Cycle through providers in combos instead of always starting with first"})]}),(0,a.jsx)(l.lM,{checked:"round-robin"===U.comboStrategy,onChange:()=>e3("round-robin"===U.comboStrategy?"fallback":"round-robin"),disabled:q})]}),"round-robin"===U.comboStrategy&&(0,a.jsxs)("div",{className:"flex items-center justify-between pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"font-medium",children:"Combo Sticky Limit"}),(0,a.jsx)("p",{className:"text-sm text-text-muted",children:"Calls per combo model before switching"})]}),(0,a.jsx)(l.pd,{type:"number",min:"1",max:"100",value:U.comboStickyRoundRobinLimit||1,onChange:e=>e6(e.target.value),disabled:q,className:"w-20 text-center"})]}),(0,a.jsxs)("p",{className:"text-xs text-text-muted italic pt-2 border-t border-border/50",children:["round-robin"===U.fallbackStrategy?`Currently distributing requests across all available accounts with ${U.stickyRoundRobinLimit||3} calls per account.`:"Currently using accounts in priority order (Fill First).","round-robin"===U.comboStrategy?` Combos rotate after ${U.comboStickyRoundRobinLimit||1} call${1===(U.comboStickyRoundRobinLimit||1)?"":"s"} per model.`:" Combos always start with their first model."]})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-cyan-500/10 text-cyan-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"device_hub"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Providers")})]}),(0,a.jsx)("div",{className:"flex flex-col gap-4",children:(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:(0,b.Tl)("Show trial providers")}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:(0,b.Tl)("Show public unauthenticated trial channels (e.g. OpenCode Free)")})]}),(0,a.jsx)(l.lM,{checked:!1!==U.showCommunityProviders,onChange:eY})]})})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-purple-500/10 text-purple-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"wifi"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Network")})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Outbound Proxy"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Enable proxy for OAuth + provider outbound requests."})]}),(0,a.jsx)(l.lM,{checked:!0===U.outboundProxyEnabled,onChange:()=>e1(!0!==U.outboundProxyEnabled),disabled:q||eX})]}),!0===U.outboundProxyEnabled&&(0,a.jsxs)("form",{onSubmit:eG,className:"flex flex-col gap-4 pt-2 border-t border-border/50",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"Proxy URL"}),(0,a.jsx)(l.pd,{placeholder:"http://127.0.0.1:7897",value:e_.outboundProxyUrl,onChange:e=>eH(t=>({...t,outboundProxyUrl:e.target.value})),disabled:q||eX}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Leave empty to inherit existing env proxy (if any)."})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 pt-2 border-t border-border/50",children:[(0,a.jsx)("label",{className:"font-medium text-sm sm:text-base",children:"No Proxy"}),(0,a.jsx)(l.pd,{placeholder:"localhost,127.0.0.1",value:e_.outboundNoProxy,onChange:e=>eH(t=>({...t,outboundNoProxy:e.target.value})),disabled:q||eX}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Comma-separated hostnames/domains to bypass the proxy."})]}),(0,a.jsxs)("div",{className:"pt-2 border-t border-border/50 flex flex-col sm:flex-row items-stretch sm:items-center gap-2",children:[(0,a.jsx)(l.$n,{type:"button",variant:"secondary",loading:eW,disabled:q||eX,onClick:e0,className:"w-full sm:w-auto",children:"Test proxy URL"}),(0,a.jsx)(l.$n,{type:"submit",variant:"primary",loading:eX,className:"w-full sm:w-auto",children:"Apply"})]})]}),ez.message&&(0,a.jsx)("p",{className:`text-xs sm:text-sm ${"error"===ez.type?"text-red-500":"text-green-500"} pt-2 border-t border-border/50`,children:ez.message})]})]}),(0,a.jsxs)(l.Zp,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,a.jsx)("div",{className:"size-10 rounded-lg flex items-center justify-center bg-orange-500/10 text-orange-500 shrink-0",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"monitoring"})}),(0,a.jsx)("h3",{className:"text-base sm:text-lg font-semibold",children:(0,b.Tl)("Observability")})]}),(0,a.jsxs)("div",{className:"flex items-start sm:items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm sm:text-base",children:"Enable Observability"}),(0,a.jsx)("p",{className:"text-xs sm:text-sm text-text-muted",children:"Record request details for inspection in the logs view"})]}),(0,a.jsx)(l.lM,{checked:tg,onChange:tn,disabled:q})]})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2",children:[(0,a.jsx)(l.$n,{variant:"outline",fullWidth:!0,icon:"power_settings_new",onClick:()=>L(!0),className:"text-red-500 border-red-200 hover:bg-red-50 hover:border-red-300",children:"Shutdown"}),(0,a.jsx)(l.$n,{variant:"outline",fullWidth:!0,icon:"logout",onClick:tf,children:"Logout"})]}),(0,a.jsxs)("div",{className:"text-center text-xs sm:text-sm text-text-muted py-4",children:[(0,a.jsxs)("p",{children:[m.vQ.name," v",m.vQ.version]}),(0,a.jsx)("p",{className:"mt-1",children:eV?"Remote Mode":"Local Mode - All data stored on your machine"})]})]}),(0,a.jsx)(n.default,{hideTrigger:!0,isOpen:S,onClose:e=>{C(!1),y(e)}}),(0,a.jsx)(i.ConfirmModal,{isOpen:T,onClose:()=>A(!1),onConfirm:()=>{A(!1),e9(!1)},title:(0,b.Tl)("Turn off the log-in check?"),message:(0,b.Tl)("Anyone who can reach this port will be able to manage every provider, key and credential without a password. The dashboard keeps a warning banner while it is off."),confirmText:(0,b.Tl)("Turn it off"),cancelText:(0,b.Tl)("Cancel"),variant:"danger"}),(0,a.jsx)(i.ConfirmModal,{isOpen:I,onClose:()=>P(!1),onConfirm:()=>{P(!1),tt(!0)},title:(0,b.Tl)("Hide the log-in-off warning?"),message:(0,b.Tl)("The dashboard stays open to anyone who can reach this port — hiding the banner only removes the reminder, not the risk. It comes back automatically if you turn the log-in check on and off again."),confirmText:(0,b.Tl)("Hide it"),cancelText:(0,b.Tl)("Cancel"),variant:"danger"}),(0,a.jsx)(i.ConfirmModal,{isOpen:k,onClose:()=>L(!1),onConfirm:tb,title:"Close Proxy",message:"Are you sure you want to close the proxy server?",confirmText:"Close",cancelText:"Cancel",variant:"danger",loading:$}),(0,a.jsxs)(i.default,{isOpen:O.open,onClose:()=>M({open:!1,value:"",confirm:"",error:"",loading:!1}),title:(0,b.Tl)("Set a password to turn on the log-in check"),size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.$n,{variant:"ghost",onClick:()=>M({open:!1,value:"",confirm:"",error:"",loading:!1}),disabled:O.loading,children:(0,b.Tl)("Cancel")}),(0,a.jsx)(l.$n,{variant:"primary",onClick:e8,loading:O.loading,children:(0,b.Tl)("Set password and turn on")})]}),children:[(0,a.jsx)("p",{className:"text-text-muted mb-3 text-sm",children:(0,b.Tl)("You have not set a dashboard password of your own yet. Choose one now — you will need it to sign in from then on.")}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)(l.pd,{type:"password",value:O.value,onChange:e=>M(t=>({...t,value:e.target.value,error:""})),placeholder:(0,b.Tl)("New password"),autoFocus:!0}),(0,a.jsx)(l.pd,{type:"password",value:O.confirm,onChange:e=>M(t=>({...t,confirm:e.target.value,error:""})),onKeyDown:e=>{"Enter"===e.key&&e8()},placeholder:(0,b.Tl)("Confirm new password")}),O.error&&(0,a.jsx)("p",{className:"text-xs text-red-500",children:O.error})]})]}),(0,a.jsxs)(i.default,{isOpen:Y.open,onClose:()=>G({open:!1,mode:"",password:""}),title:"Confirm Password",size:"sm",footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.$n,{variant:"ghost",onClick:()=>G({open:!1,mode:"",password:""}),disabled:W,children:"Cancel"}),(0,a.jsx)(l.$n,{variant:"primary",onClick:th,loading:W,disabled:!Y.password,children:"Confirm"})]}),children:[(0,a.jsxs)("p",{className:"text-text-muted mb-3 text-sm",children:["Enter your current password to ","export"===Y.mode?"export":"import"," the database."]}),(0,a.jsx)(l.pd,{type:"password",value:Y.password,onChange:e=>G(t=>({...t,password:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&Y.password&&th()},placeholder:"Current password",autoFocus:!0})]})]})}}},e=>{e.O(0,[3170,305,1321,5497,8441,3794,7358],()=>e(e.s=13966)),_N_E=e.O()}]);