@rsalmn/extremerouter 0.6.1 → 0.6.3

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 (940) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +9 -3
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/routes-manifest.json +36 -0
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +2 -2
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +2 -2
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +2 -2
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +2 -2
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +2 -2
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +2 -2
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page.js +2 -0
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page.js.nft.json +1 -0
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/health/page_client-reference-manifest.js +1 -0
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +2 -2
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +2 -2
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +2 -2
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +2 -2
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +2 -2
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +2 -2
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +2 -2
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +2 -2
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +2 -2
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  57. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +2 -2
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +2 -2
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/swarm/page.js +2 -0
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/swarm/page.js.nft.json +1 -0
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/swarm/page_client-reference-manifest.js +1 -0
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +2 -2
  69. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  71. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +2 -2
  72. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  74. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +2 -2
  75. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  77. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  78. package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  85. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  86. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  87. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  88. package/app/.next-cli-build/server/app/_not-found/page.js +2 -2
  89. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  90. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  91. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  92. package/app/.next-cli-build/server/app/_not-found.rsc +5 -5
  93. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
  94. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  95. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +5 -5
  96. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  97. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  98. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  99. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  114. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  116. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
  130. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +2 -2
  134. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  136. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  140. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
  142. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
  144. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  154. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +2 -2
  156. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/health/providers/route.js +1 -0
  158. package/app/.next-cli-build/server/app/api/health/providers/route.js.nft.json +1 -0
  159. package/app/.next-cli-build/server/app/api/health/providers/route_client-reference-manifest.js +1 -0
  160. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  162. package/app/.next-cli-build/server/app/api/health/stream/route.js +5 -0
  163. package/app/.next-cli-build/server/app/api/health/stream/route.js.nft.json +1 -0
  164. package/app/.next-cli-build/server/app/api/health/stream/route_client-reference-manifest.js +1 -0
  165. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  171. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  173. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  174. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  175. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +3 -3
  176. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  177. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  179. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  180. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  181. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  182. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  183. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  184. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  185. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  186. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  197. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  199. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  202. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  203. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  204. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  205. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +2 -2
  206. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  207. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  219. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  221. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  223. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  225. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  229. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  231. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  233. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  235. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  258. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  260. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  261. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  262. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  264. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/swarm/active/route.js +1 -0
  276. package/app/.next-cli-build/server/app/api/swarm/active/route.js.nft.json +1 -0
  277. package/app/.next-cli-build/server/app/api/swarm/active/route_client-reference-manifest.js +1 -0
  278. package/app/.next-cli-build/server/app/api/swarm/stream/route.js +5 -0
  279. package/app/.next-cli-build/server/app/api/swarm/stream/route.js.nft.json +1 -0
  280. package/app/.next-cli-build/server/app/api/swarm/stream/route_client-reference-manifest.js +1 -0
  281. package/app/.next-cli-build/server/app/api/tags/route.js +1 -1
  282. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  286. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  287. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  288. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  296. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  297. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  298. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  299. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  300. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  302. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  303. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  304. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  305. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  306. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
  308. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  309. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  310. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  311. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  312. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  313. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  314. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  315. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  316. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  317. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  318. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  319. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  320. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  321. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  322. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  323. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  324. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  325. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  326. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  327. package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
  328. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  329. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  330. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  331. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  332. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  333. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  334. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  335. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  336. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  337. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  338. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  339. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  340. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  341. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  342. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  343. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  344. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  345. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  346. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  347. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  348. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  349. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  350. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  351. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  352. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  353. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  354. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  355. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  356. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  357. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  358. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  359. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  360. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  361. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  362. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  363. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  364. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  365. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  366. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/callback/page.js +2 -2
  374. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  376. package/app/.next-cli-build/server/app/callback.html +1 -1
  377. package/app/.next-cli-build/server/app/callback.rsc +5 -5
  378. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
  379. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  380. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +5 -5
  381. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  382. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  383. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  384. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  385. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
  386. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  387. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  388. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  389. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  390. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
  391. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  392. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +5 -5
  393. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  394. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  395. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
  396. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  397. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  398. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  399. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  400. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
  401. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  402. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +5 -5
  403. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  404. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  405. package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
  406. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  407. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  408. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  409. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  410. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
  411. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  412. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +5 -5
  413. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  414. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  415. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
  416. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  417. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  418. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  419. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  420. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
  421. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  422. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +5 -5
  423. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  424. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  425. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +7 -7
  426. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  427. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  428. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  429. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  430. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  431. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
  432. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  433. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +5 -5
  434. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  435. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  436. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
  437. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  438. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  439. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  440. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  441. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
  442. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  443. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +5 -5
  444. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  445. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  446. package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
  447. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +2 -2
  448. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  449. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  450. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  451. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
  452. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  453. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +5 -5
  454. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  455. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  456. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
  457. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  458. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  459. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  460. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  461. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  462. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
  463. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  464. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +5 -5
  465. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  466. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  467. package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
  468. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  469. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  470. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  471. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  472. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
  473. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  474. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +5 -5
  475. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  476. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  477. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
  478. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  479. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  480. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  481. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  482. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
  483. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  484. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +5 -5
  485. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  486. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  487. package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
  488. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  489. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  490. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  491. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  492. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
  493. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  494. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +5 -5
  495. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  496. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +2 -2
  497. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  498. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  499. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  500. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  501. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  502. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  503. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +5 -5
  504. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  505. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  506. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  507. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  508. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  509. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  510. package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
  511. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  512. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  513. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  514. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  515. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
  516. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  517. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +5 -5
  518. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  519. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  520. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
  521. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +2 -2
  522. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver.segment.rsc +1 -1
  523. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  524. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  525. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
  526. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_head.segment.rsc +1 -1
  527. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_index.segment.rsc +5 -5
  528. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  529. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  530. package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
  531. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  532. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  533. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  534. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  535. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
  536. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  537. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +5 -5
  538. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  539. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  540. package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
  541. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  542. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  543. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  544. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  545. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
  546. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  547. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +5 -5
  548. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  549. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  550. package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
  551. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  552. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  553. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  554. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
  555. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  556. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +5 -5
  557. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  558. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  559. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  560. package/app/.next-cli-build/server/app/index.html +1 -1
  561. package/app/.next-cli-build/server/app/index.rsc +5 -5
  562. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  563. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
  564. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  565. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +5 -5
  566. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  567. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  568. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  569. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  570. package/app/.next-cli-build/server/app/landing.html +1 -1
  571. package/app/.next-cli-build/server/app/landing.rsc +5 -5
  572. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +5 -5
  573. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  574. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +5 -5
  575. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  576. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  577. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  578. package/app/.next-cli-build/server/app/login/page.js +2 -2
  579. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  580. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  581. package/app/.next-cli-build/server/app/login.html +1 -1
  582. package/app/.next-cli-build/server/app/login.rsc +6 -6
  583. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
  584. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  585. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +5 -5
  586. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  587. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  588. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  589. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  590. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  591. package/app/.next-cli-build/server/app/page.js +2 -2
  592. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  593. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  594. package/app/.next-cli-build/server/app-paths-manifest.json +9 -3
  595. package/app/.next-cli-build/server/chunks/1051.js +1 -1
  596. package/app/.next-cli-build/server/chunks/1216.js +2 -2
  597. package/app/.next-cli-build/server/chunks/1220.js +2 -2
  598. package/app/.next-cli-build/server/chunks/1228.js +1 -1
  599. package/app/.next-cli-build/server/chunks/212.js +1 -1
  600. package/app/.next-cli-build/server/chunks/2231.js +1 -1
  601. package/app/.next-cli-build/server/chunks/2701.js +1 -1
  602. package/app/.next-cli-build/server/chunks/318.js +121 -9
  603. package/app/.next-cli-build/server/chunks/3593.js +1 -1
  604. package/app/.next-cli-build/server/chunks/4040.js +7 -0
  605. package/app/.next-cli-build/server/chunks/4055.js +1 -1
  606. package/app/.next-cli-build/server/chunks/412.js +2 -2
  607. package/app/.next-cli-build/server/chunks/4485.js +1 -0
  608. package/app/.next-cli-build/server/chunks/4739.js +1 -1
  609. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  610. package/app/.next-cli-build/server/chunks/4780.js +1 -1
  611. package/app/.next-cli-build/server/chunks/4827.js +1 -1
  612. package/app/.next-cli-build/server/chunks/4884.js +3 -3
  613. package/app/.next-cli-build/server/chunks/507.js +1 -1
  614. package/app/.next-cli-build/server/chunks/5217.js +1 -1
  615. package/app/.next-cli-build/server/chunks/5258.js +1 -1
  616. package/app/.next-cli-build/server/chunks/5612.js +1 -1
  617. package/app/.next-cli-build/server/chunks/5699.js +1 -1
  618. package/app/.next-cli-build/server/chunks/5961.js +1 -1
  619. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  620. package/app/.next-cli-build/server/chunks/615.js +1 -1
  621. package/app/.next-cli-build/server/chunks/6316.js +1 -1
  622. package/app/.next-cli-build/server/chunks/698.js +1 -1
  623. package/app/.next-cli-build/server/chunks/7965.js +1 -1
  624. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  625. package/app/.next-cli-build/server/chunks/8271.js +1 -1
  626. package/app/.next-cli-build/server/chunks/8520.js +1 -1
  627. package/app/.next-cli-build/server/chunks/8658.js +1 -1
  628. package/app/.next-cli-build/server/chunks/8895.js +1 -1
  629. package/app/.next-cli-build/server/chunks/9630.js +1 -1
  630. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  631. package/app/.next-cli-build/server/middleware.js +2 -2
  632. package/app/.next-cli-build/server/pages/404.html +1 -1
  633. package/app/.next-cli-build/server/pages/500.html +1 -1
  634. package/app/.next-cli-build/static/RPDQBYxJJwcxTCmP2fmVI/_buildManifest.js +1 -0
  635. package/app/.next-cli-build/static/chunks/1321-ff2073ad3d1126ca.js +1 -0
  636. package/app/.next-cli-build/static/chunks/1696-2558002db021b00d.js +3 -0
  637. package/app/.next-cli-build/static/chunks/5497-470badc121d94683.js +7 -0
  638. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-08645a1d2433efa1.js +1 -0
  639. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/health/page-406bf4ebc93eda61.js +1 -0
  640. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-fddc095ae22690a0.js +10 -0
  641. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-9b3ba2db1b90f552.js +1 -0
  642. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/swarm/page-9739651f4f19cec6.js +1 -0
  643. package/app/.next-cli-build/static/chunks/app/(dashboard)/{layout-1e26cb05320e3649.js → layout-1bb0b613c562d507.js} +1 -1
  644. package/app/.next-cli-build/static/chunks/app/_global-error/page-d737e9373491be4a.js +1 -0
  645. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-d737e9373491be4a.js +1 -0
  646. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-d737e9373491be4a.js +1 -0
  647. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-d737e9373491be4a.js +1 -0
  648. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-d737e9373491be4a.js +1 -0
  649. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-d737e9373491be4a.js +1 -0
  650. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-d737e9373491be4a.js +1 -0
  651. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-d737e9373491be4a.js +1 -0
  652. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-d737e9373491be4a.js +1 -0
  653. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-d737e9373491be4a.js +1 -0
  654. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-d737e9373491be4a.js +1 -0
  655. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-d737e9373491be4a.js +1 -0
  656. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-d737e9373491be4a.js +1 -0
  657. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-d737e9373491be4a.js +1 -0
  658. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-d737e9373491be4a.js +1 -0
  659. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-d737e9373491be4a.js +1 -0
  660. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-d737e9373491be4a.js +1 -0
  661. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-d737e9373491be4a.js +1 -0
  662. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-d737e9373491be4a.js +1 -0
  663. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-d737e9373491be4a.js +1 -0
  664. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-d737e9373491be4a.js +1 -0
  665. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-d737e9373491be4a.js +1 -0
  666. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-d737e9373491be4a.js +1 -0
  667. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-d737e9373491be4a.js +1 -0
  668. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-d737e9373491be4a.js +1 -0
  669. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-d737e9373491be4a.js +1 -0
  670. package/app/.next-cli-build/static/chunks/app/api/combos/route-d737e9373491be4a.js +1 -0
  671. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-d737e9373491be4a.js +1 -0
  672. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-d737e9373491be4a.js +1 -0
  673. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-d737e9373491be4a.js +1 -0
  674. package/app/.next-cli-build/static/chunks/app/api/health/providers/route-d737e9373491be4a.js +1 -0
  675. package/app/.next-cli-build/static/chunks/app/api/health/route-d737e9373491be4a.js +1 -0
  676. package/app/.next-cli-build/static/chunks/app/api/health/stream/route-d737e9373491be4a.js +1 -0
  677. package/app/.next-cli-build/static/chunks/app/api/init/route-d737e9373491be4a.js +1 -0
  678. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-d737e9373491be4a.js +1 -0
  679. package/app/.next-cli-build/static/chunks/app/api/keys/route-d737e9373491be4a.js +1 -0
  680. package/app/.next-cli-build/static/chunks/app/api/locale/route-d737e9373491be4a.js +1 -0
  681. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-d737e9373491be4a.js +1 -0
  682. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-d737e9373491be4a.js +1 -0
  683. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-d737e9373491be4a.js +1 -0
  684. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-d737e9373491be4a.js +1 -0
  685. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-d737e9373491be4a.js +1 -0
  686. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-d737e9373491be4a.js +1 -0
  687. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-d737e9373491be4a.js +1 -0
  688. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-d737e9373491be4a.js +1 -0
  689. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-d737e9373491be4a.js +1 -0
  690. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-d737e9373491be4a.js +1 -0
  691. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-d737e9373491be4a.js +1 -0
  692. package/app/.next-cli-build/static/chunks/app/api/models/route-d737e9373491be4a.js +1 -0
  693. package/app/.next-cli-build/static/chunks/app/api/models/test/route-d737e9373491be4a.js +1 -0
  694. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-d737e9373491be4a.js +1 -0
  695. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-d737e9373491be4a.js +1 -0
  696. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-d737e9373491be4a.js +1 -0
  697. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-d737e9373491be4a.js +1 -0
  698. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-d737e9373491be4a.js +1 -0
  699. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-d737e9373491be4a.js +1 -0
  700. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-d737e9373491be4a.js +1 -0
  701. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-d737e9373491be4a.js +1 -0
  702. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-d737e9373491be4a.js +1 -0
  703. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-d737e9373491be4a.js +1 -0
  704. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-d737e9373491be4a.js +1 -0
  705. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-d737e9373491be4a.js +1 -0
  706. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-d737e9373491be4a.js +1 -0
  707. package/app/.next-cli-build/static/chunks/app/api/pricing/route-d737e9373491be4a.js +1 -0
  708. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-d737e9373491be4a.js +1 -0
  709. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-d737e9373491be4a.js +1 -0
  710. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-d737e9373491be4a.js +1 -0
  711. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-d737e9373491be4a.js +1 -0
  712. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-d737e9373491be4a.js +1 -0
  713. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-d737e9373491be4a.js +1 -0
  714. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-d737e9373491be4a.js +1 -0
  715. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-d737e9373491be4a.js +1 -0
  716. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-d737e9373491be4a.js +1 -0
  717. package/app/.next-cli-build/static/chunks/app/api/providers/route-d737e9373491be4a.js +1 -0
  718. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-d737e9373491be4a.js +1 -0
  719. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-d737e9373491be4a.js +1 -0
  720. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-d737e9373491be4a.js +1 -0
  721. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-d737e9373491be4a.js +1 -0
  722. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-d737e9373491be4a.js +1 -0
  723. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-d737e9373491be4a.js +1 -0
  724. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-d737e9373491be4a.js +1 -0
  725. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-d737e9373491be4a.js +1 -0
  726. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-d737e9373491be4a.js +1 -0
  727. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-d737e9373491be4a.js +1 -0
  728. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-d737e9373491be4a.js +1 -0
  729. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-d737e9373491be4a.js +1 -0
  730. package/app/.next-cli-build/static/chunks/app/api/settings/route-d737e9373491be4a.js +1 -0
  731. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-d737e9373491be4a.js +1 -0
  732. package/app/.next-cli-build/static/chunks/app/api/swarm/active/route-d737e9373491be4a.js +1 -0
  733. package/app/.next-cli-build/static/chunks/app/api/swarm/stream/route-d737e9373491be4a.js +1 -0
  734. package/app/.next-cli-build/static/chunks/app/api/tags/route-d737e9373491be4a.js +1 -0
  735. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-d737e9373491be4a.js +1 -0
  736. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-d737e9373491be4a.js +1 -0
  737. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-d737e9373491be4a.js +1 -0
  738. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-d737e9373491be4a.js +1 -0
  739. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-d737e9373491be4a.js +1 -0
  740. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-d737e9373491be4a.js +1 -0
  741. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-d737e9373491be4a.js +1 -0
  742. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-d737e9373491be4a.js +1 -0
  743. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-d737e9373491be4a.js +1 -0
  744. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-d737e9373491be4a.js +1 -0
  745. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-d737e9373491be4a.js +1 -0
  746. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-d737e9373491be4a.js +1 -0
  747. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-d737e9373491be4a.js +1 -0
  748. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-d737e9373491be4a.js +1 -0
  749. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-d737e9373491be4a.js +1 -0
  750. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-d737e9373491be4a.js +1 -0
  751. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-d737e9373491be4a.js +1 -0
  752. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-d737e9373491be4a.js +1 -0
  753. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-d737e9373491be4a.js +1 -0
  754. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-d737e9373491be4a.js +1 -0
  755. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-d737e9373491be4a.js +1 -0
  756. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-d737e9373491be4a.js +1 -0
  757. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-d737e9373491be4a.js +1 -0
  758. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-d737e9373491be4a.js +1 -0
  759. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-d737e9373491be4a.js +1 -0
  760. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-d737e9373491be4a.js +1 -0
  761. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-d737e9373491be4a.js +1 -0
  762. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-d737e9373491be4a.js +1 -0
  763. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-d737e9373491be4a.js +1 -0
  764. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-d737e9373491be4a.js +1 -0
  765. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-d737e9373491be4a.js +1 -0
  766. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-d737e9373491be4a.js +1 -0
  767. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-d737e9373491be4a.js +1 -0
  768. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-d737e9373491be4a.js +1 -0
  769. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-d737e9373491be4a.js +1 -0
  770. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-d737e9373491be4a.js +1 -0
  771. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-d737e9373491be4a.js +1 -0
  772. package/app/.next-cli-build/static/chunks/app/api/v1/route-d737e9373491be4a.js +1 -0
  773. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-d737e9373491be4a.js +1 -0
  774. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-d737e9373491be4a.js +1 -0
  775. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-d737e9373491be4a.js +1 -0
  776. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-d737e9373491be4a.js +1 -0
  777. package/app/.next-cli-build/static/chunks/app/api/version/route-d737e9373491be4a.js +1 -0
  778. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-d737e9373491be4a.js +1 -0
  779. package/app/.next-cli-build/static/chunks/app/api/version/update/route-d737e9373491be4a.js +1 -0
  780. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-d737e9373491be4a.js +1 -0
  781. package/app/.next-cli-build/static/chunks/app/page-d737e9373491be4a.js +1 -0
  782. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-d737e9373491be4a.js +1 -0
  783. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-d737e9373491be4a.js +1 -0
  784. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-d737e9373491be4a.js +1 -0
  785. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-d737e9373491be4a.js +1 -0
  786. package/app/.next-cli-build/static/css/87588eca18fba81a.css +1 -0
  787. package/app/cli/.build-home/AppData/Roaming/extremerouter/db/backups/upgrade-0.6.0-to-0.6.2-0.6.2-20260704-113435/data.sqlite +0 -0
  788. package/app/cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-shm +0 -0
  789. package/app/cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-wal +0 -0
  790. package/app/package.json +79 -79
  791. package/package.json +1 -1
  792. package/app/.next-cli-build/server/chunks/2280.js +0 -1
  793. package/app/.next-cli-build/server/chunks/8910.js +0 -2
  794. package/app/.next-cli-build/static/Qx07JefJAw9sEKlIwSjok/_buildManifest.js +0 -1
  795. package/app/.next-cli-build/static/chunks/1321-3a0b78865b77000f.js +0 -1
  796. package/app/.next-cli-build/static/chunks/1696-d6ff508c7c6dd474.js +0 -3
  797. package/app/.next-cli-build/static/chunks/5497-cd7a5d50454836a8.js +0 -7
  798. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-3de4c1d39c0f0f80.js +0 -1
  799. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-ab479dbd6f4a8008.js +0 -10
  800. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-67f6199fe43cfeca.js +0 -1
  801. package/app/.next-cli-build/static/chunks/app/_global-error/page-82541f42a58850f8.js +0 -1
  802. package/app/.next-cli-build/static/chunks/app/api/auth/login/route-82541f42a58850f8.js +0 -1
  803. package/app/.next-cli-build/static/chunks/app/api/auth/logout/route-82541f42a58850f8.js +0 -1
  804. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/route-82541f42a58850f8.js +0 -1
  805. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-82541f42a58850f8.js +0 -1
  806. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-82541f42a58850f8.js +0 -1
  807. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-82541f42a58850f8.js +0 -1
  808. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-82541f42a58850f8.js +0 -1
  809. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-82541f42a58850f8.js +0 -1
  810. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-82541f42a58850f8.js +0 -1
  811. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-82541f42a58850f8.js +0 -1
  812. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-82541f42a58850f8.js +0 -1
  813. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-82541f42a58850f8.js +0 -1
  814. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-82541f42a58850f8.js +0 -1
  815. package/app/.next-cli-build/static/chunks/app/api/cli-tools/copilot-settings/route-82541f42a58850f8.js +0 -1
  816. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-82541f42a58850f8.js +0 -1
  817. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-82541f42a58850f8.js +0 -1
  818. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-82541f42a58850f8.js +0 -1
  819. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-82541f42a58850f8.js +0 -1
  820. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-82541f42a58850f8.js +0 -1
  821. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-82541f42a58850f8.js +0 -1
  822. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-82541f42a58850f8.js +0 -1
  823. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-82541f42a58850f8.js +0 -1
  824. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-82541f42a58850f8.js +0 -1
  825. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-82541f42a58850f8.js +0 -1
  826. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-82541f42a58850f8.js +0 -1
  827. package/app/.next-cli-build/static/chunks/app/api/combos/route-82541f42a58850f8.js +0 -1
  828. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-82541f42a58850f8.js +0 -1
  829. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-82541f42a58850f8.js +0 -1
  830. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-82541f42a58850f8.js +0 -1
  831. package/app/.next-cli-build/static/chunks/app/api/health/route-82541f42a58850f8.js +0 -1
  832. package/app/.next-cli-build/static/chunks/app/api/init/route-82541f42a58850f8.js +0 -1
  833. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-82541f42a58850f8.js +0 -1
  834. package/app/.next-cli-build/static/chunks/app/api/keys/route-82541f42a58850f8.js +0 -1
  835. package/app/.next-cli-build/static/chunks/app/api/locale/route-82541f42a58850f8.js +0 -1
  836. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-82541f42a58850f8.js +0 -1
  837. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-82541f42a58850f8.js +0 -1
  838. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-82541f42a58850f8.js +0 -1
  839. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-82541f42a58850f8.js +0 -1
  840. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-82541f42a58850f8.js +0 -1
  841. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-82541f42a58850f8.js +0 -1
  842. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-82541f42a58850f8.js +0 -1
  843. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-82541f42a58850f8.js +0 -1
  844. package/app/.next-cli-build/static/chunks/app/api/models/availability/route-82541f42a58850f8.js +0 -1
  845. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-82541f42a58850f8.js +0 -1
  846. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-82541f42a58850f8.js +0 -1
  847. package/app/.next-cli-build/static/chunks/app/api/models/route-82541f42a58850f8.js +0 -1
  848. package/app/.next-cli-build/static/chunks/app/api/models/test/route-82541f42a58850f8.js +0 -1
  849. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-82541f42a58850f8.js +0 -1
  850. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-82541f42a58850f8.js +0 -1
  851. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/import-token/route-82541f42a58850f8.js +0 -1
  852. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-82541f42a58850f8.js +0 -1
  853. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-82541f42a58850f8.js +0 -1
  854. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-82541f42a58850f8.js +0 -1
  855. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-82541f42a58850f8.js +0 -1
  856. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-82541f42a58850f8.js +0 -1
  857. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-82541f42a58850f8.js +0 -1
  858. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-82541f42a58850f8.js +0 -1
  859. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-82541f42a58850f8.js +0 -1
  860. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-82541f42a58850f8.js +0 -1
  861. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-82541f42a58850f8.js +0 -1
  862. package/app/.next-cli-build/static/chunks/app/api/pricing/route-82541f42a58850f8.js +0 -1
  863. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-82541f42a58850f8.js +0 -1
  864. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-82541f42a58850f8.js +0 -1
  865. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-82541f42a58850f8.js +0 -1
  866. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-82541f42a58850f8.js +0 -1
  867. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-82541f42a58850f8.js +0 -1
  868. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-82541f42a58850f8.js +0 -1
  869. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-82541f42a58850f8.js +0 -1
  870. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-82541f42a58850f8.js +0 -1
  871. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-82541f42a58850f8.js +0 -1
  872. package/app/.next-cli-build/static/chunks/app/api/providers/route-82541f42a58850f8.js +0 -1
  873. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-82541f42a58850f8.js +0 -1
  874. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-82541f42a58850f8.js +0 -1
  875. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-82541f42a58850f8.js +0 -1
  876. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-82541f42a58850f8.js +0 -1
  877. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-82541f42a58850f8.js +0 -1
  878. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-82541f42a58850f8.js +0 -1
  879. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-82541f42a58850f8.js +0 -1
  880. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-82541f42a58850f8.js +0 -1
  881. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-82541f42a58850f8.js +0 -1
  882. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-82541f42a58850f8.js +0 -1
  883. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-82541f42a58850f8.js +0 -1
  884. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-82541f42a58850f8.js +0 -1
  885. package/app/.next-cli-build/static/chunks/app/api/settings/route-82541f42a58850f8.js +0 -1
  886. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-82541f42a58850f8.js +0 -1
  887. package/app/.next-cli-build/static/chunks/app/api/tags/route-82541f42a58850f8.js +0 -1
  888. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-82541f42a58850f8.js +0 -1
  889. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-82541f42a58850f8.js +0 -1
  890. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-82541f42a58850f8.js +0 -1
  891. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-82541f42a58850f8.js +0 -1
  892. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-82541f42a58850f8.js +0 -1
  893. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-82541f42a58850f8.js +0 -1
  894. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-82541f42a58850f8.js +0 -1
  895. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-82541f42a58850f8.js +0 -1
  896. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-82541f42a58850f8.js +0 -1
  897. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-82541f42a58850f8.js +0 -1
  898. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-82541f42a58850f8.js +0 -1
  899. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-82541f42a58850f8.js +0 -1
  900. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-82541f42a58850f8.js +0 -1
  901. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-82541f42a58850f8.js +0 -1
  902. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-82541f42a58850f8.js +0 -1
  903. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-82541f42a58850f8.js +0 -1
  904. package/app/.next-cli-build/static/chunks/app/api/usage/history/route-82541f42a58850f8.js +0 -1
  905. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-82541f42a58850f8.js +0 -1
  906. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-82541f42a58850f8.js +0 -1
  907. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-82541f42a58850f8.js +0 -1
  908. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-82541f42a58850f8.js +0 -1
  909. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-82541f42a58850f8.js +0 -1
  910. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-82541f42a58850f8.js +0 -1
  911. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-82541f42a58850f8.js +0 -1
  912. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-82541f42a58850f8.js +0 -1
  913. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-82541f42a58850f8.js +0 -1
  914. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-82541f42a58850f8.js +0 -1
  915. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-82541f42a58850f8.js +0 -1
  916. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-82541f42a58850f8.js +0 -1
  917. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-82541f42a58850f8.js +0 -1
  918. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-82541f42a58850f8.js +0 -1
  919. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-82541f42a58850f8.js +0 -1
  920. package/app/.next-cli-build/static/chunks/app/api/v1/models/[kind]/route-82541f42a58850f8.js +0 -1
  921. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-82541f42a58850f8.js +0 -1
  922. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-82541f42a58850f8.js +0 -1
  923. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-82541f42a58850f8.js +0 -1
  924. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-82541f42a58850f8.js +0 -1
  925. package/app/.next-cli-build/static/chunks/app/api/v1/route-82541f42a58850f8.js +0 -1
  926. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-82541f42a58850f8.js +0 -1
  927. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-82541f42a58850f8.js +0 -1
  928. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-82541f42a58850f8.js +0 -1
  929. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-82541f42a58850f8.js +0 -1
  930. package/app/.next-cli-build/static/chunks/app/api/version/route-82541f42a58850f8.js +0 -1
  931. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-82541f42a58850f8.js +0 -1
  932. package/app/.next-cli-build/static/chunks/app/api/version/update/route-82541f42a58850f8.js +0 -1
  933. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-82541f42a58850f8.js +0 -1
  934. package/app/.next-cli-build/static/chunks/app/page-82541f42a58850f8.js +0 -1
  935. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-82541f42a58850f8.js +0 -1
  936. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-82541f42a58850f8.js +0 -1
  937. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-82541f42a58850f8.js +0 -1
  938. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-82541f42a58850f8.js +0 -1
  939. package/app/.next-cli-build/static/css/af59154aa682ed1a.css +0 -1
  940. /package/app/.next-cli-build/static/{Qx07JefJAw9sEKlIwSjok → RPDQBYxJJwcxTCmP2fmVI}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=3883,a.ids=[3883],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12557:(a,b,c)=>{c.d(b,{Bl:()=>j,Qo:()=>f,S5:()=>l,hk:()=>e,kJ:()=>k});var d=c(3662);function e(a,b,c=0){let f=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"";for(let b of d.t2)if(b.text&&f&&f.includes(b.text)||b.status&&b.status===a){if(b.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:b.cooldownMs}}return{shouldFallback:!0,cooldownMs:d.wf}}function f(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let g="modelLock_",h=`${g}__all`;function i(a){return a?`${g}${a}`:h}function j(a,b){let c=a[i(b)]||a[h];return!!c&&new Date(c).getTime()>Date.now()}function k(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(g)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function l(a,b){return{[i(a)]:new Date(Date.now()+b).toISOString()}}},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},21820:a=>{a.exports=require("os")},26922:(a,b,c)=>{c.d(b,{KZ:()=>k,S6:()=>h,Yr:()=>o,f6:()=>l,fc:()=>g,kU:()=>i,pT:()=>j,w_:()=>m});var d=c(62842),e=c(55673);let f=["minLength","maxLength","exclusiveMinimum","exclusiveMaximum","minItems","maxItems","format","default","examples","$schema","$defs","definitions","const","$ref","$comment","deprecated","readOnly","writeOnly","additionalProperties","propertyNames","patternProperties","enumDescriptions","anyOf","oneOf","allOf","not","dependencies","dependentSchemas","dependentRequired","title","optional","deprecated","if","then","else","contentMediaType","contentEncoding","cornerRadius","fillColor","fontFamily","fontSize","fontWeight","gap","padding","strokeColor","strokeThickness","textColor"],g=[{category:"HARM_CATEGORY_HATE_SPEECH",threshold:"OFF"},{category:"HARM_CATEGORY_DANGEROUS_CONTENT",threshold:"OFF"},{category:"HARM_CATEGORY_SEXUALLY_EXPLICIT",threshold:"OFF"},{category:"HARM_CATEGORY_HARASSMENT",threshold:"OFF"},{category:"HARM_CATEGORY_CIVIC_INTEGRITY",threshold:"OFF"}];function h(a){let b=[];if("string"==typeof a)b.push({text:a});else if(Array.isArray(a)){for(let c of a)if(c.type===e.x4.TEXT)b.push({text:c.text});else if(c.type===e.x4.IMAGE_URL&&c.image_url?.url?.startsWith("data:")){let a=c.image_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}else if(c.type===e.x4.IMAGE_URL&&c.image_url?.url&&(c.image_url.url.startsWith("http://")||c.image_url.url.startsWith("https://")))b.push({fileData:{fileUri:c.image_url.url,mimeType:"image/*"}});else if(c.type===e.x4.INPUT_AUDIO&&c.input_audio?.data){let a=c.input_audio.format||"wav",d="mp3"===a?"audio/mpeg":`audio/${a}`;b.push({inlineData:{mime_type:d,data:c.input_audio.data}})}else if(c.type===e.x4.AUDIO_URL&&c.audio_url?.url?.startsWith("data:")){let a=c.audio_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}else if(c.type===e.x4.FILE&&c.file?.file_data?.startsWith("data:")){let a=c.file.file_data,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d).split(";")[0],e=a.substring(d+1);b.push({inlineData:{mime_type:c,data:e}})}}}return b}function i(a,b=""){return"string"==typeof a?a:Array.isArray(a)?a.filter(a=>a.type===e.x4.TEXT).map(a=>a.text).join(b):""}function j(a){return(0,d.N)(a,null)}function k(){return`agent-${crypto.randomUUID()}`}function l(){return crypto.randomUUID()+Date.now().toString()}function m(){let a=["useful","bright","swift","calm","bold"],b=["fuze","wave","spark","flow","core"],c=a[Math.floor(Math.random()*a.length)],d=b[Math.floor(Math.random()*b.length)];return`${c}-${d}-${crypto.randomUUID().slice(0,5)}`}function n(a){let b=0,c=-1;for(let d=0;d<a.length;d++){let e=a[d],f=0,g=e.type;"object"===g||e.properties?f=3:"array"===g||e.items?f=2:g&&"null"!==g&&(f=1),f>c&&(c=f,b=d)}return b}function o(a){return a&&"object"==typeof a&&(!function a(b){if(b&&"object"==typeof b)for(let c of(void 0===b.const||b.enum||(b.enum=[b.const],delete b.const),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.enum&&Array.isArray(b.enum)&&(b.enum=b.enum.map(a=>String(a)),b.type||(b.type="string")),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b){if(b.allOf&&Array.isArray(b.allOf)){let a={};for(let c of b.allOf)if(c.properties&&(a.properties||(a.properties={}),Object.assign(a.properties,c.properties)),c.required&&Array.isArray(c.required))for(let b of(a.required||(a.required=[]),c.required))a.required.includes(b)||a.required.push(b);delete b.allOf,a.properties&&(b.properties={...b.properties,...a.properties}),a.required&&(b.required=[...b.required||[],...a.required])}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.anyOf&&Array.isArray(b.anyOf)&&b.anyOf.length>0){let a=b.anyOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=n(a),d=a[c];delete b.anyOf,Object.assign(b,d)}}if(b.oneOf&&Array.isArray(b.oneOf)&&b.oneOf.length>0){let a=b.oneOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=n(a),d=a[c];delete b.oneOf,Object.assign(b,d)}}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.type&&Array.isArray(b.type)){let a=b.type.filter(a=>"null"!==a);b.type=a.length>0?a[0]:"string"}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.properties&&!b.type&&(b.type="object"),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b,c){if(b&&"object"==typeof b){if(Array.isArray(b)){for(let d of b)a(d,c);return}for(let d of Object.keys(b)){if(c.includes(d)||d.startsWith("x-")){delete b[d];continue}let e=b[d];e&&"object"==typeof e&&a(e,c)}}}(a,f),!function a(b){if(b&&"object"==typeof b){if(b.required&&Array.isArray(b.required)&&b.properties){let a=b.required.filter(a=>Object.prototype.hasOwnProperty.call(b.properties,a));0===a.length?delete b.required:b.required=a}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b)for(let c of("object"!==b.type||b.properties&&0!==Object.keys(b.properties).length||(b.properties={reason:{type:"string",description:"Brief explanation of why you are calling this tool"}},b.required=["reason"]),Object.values(b)))c&&"object"==typeof c&&a(c)}(a)),a}},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},43659:(a,b,c)=>{c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(3662);function e(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c="";try{c=await a.text()}catch{c=""}if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:e.status||a.status,message:b,resetsAtMs:e.resetsAtMs}}}catch{}let e="";try{let a=JSON.parse(c);e=a.error?.message||a.message||a.error||c}catch{e=c}let g=("string"==typeof e?e:JSON.stringify(e))||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:g}}function g(a,b,c){return{success:!1,status:a,error:b,resetsAtMs:c,response:e(a,b)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},55673:(a,b,c)=>{c.d(b,{R4:()=>g,BY:()=>l,a_:()=>j.a_,RV:()=>e,rP:()=>k,x4:()=>f,bC:()=>j.bC,Du:()=>h,z7:()=>d,m8:()=>i});let d={USER:"user",ASSISTANT:"assistant",TOOL:"tool",SYSTEM:"system",DEVELOPER:"developer"},e={USER:"user",MODEL:"model"},f={TEXT:"text",IMAGE_URL:"image_url",IMAGE:"image",INPUT_AUDIO:"input_audio",AUDIO_URL:"audio_url",FILE:"file",FUNCTION:"function"},g={TEXT:"text",IMAGE:"image",DOCUMENT:"document",TOOL_USE:"tool_use",TOOL_RESULT:"tool_result",THINKING:"thinking",REDACTED_THINKING:"redacted_thinking"},h={MESSAGE:"message",FUNCTION_CALL:"function_call",FUNCTION_CALL_OUTPUT:"function_call_output",REASONING:"reasoning",OUTPUT_TEXT:"output_text",INPUT_TEXT:"input_text",INPUT_IMAGE:"input_image",SUMMARY_TEXT:"summary_text"},i=[f.TEXT,f.IMAGE_URL,f.IMAGE,f.INPUT_AUDIO,f.AUDIO_URL,f.FILE];f.TEXT,f.IMAGE_URL,f.IMAGE,g.TOOL_RESULT;var j=c(69320);let k="unknown",l="image/png"},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},62842:(a,b,c)=>{c.d(b,{N:()=>d});function d(a,b){if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return b}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},69320:(a,b,c)=>{c.d(b,{Ut:()=>e,a_:()=>f,bC:()=>d});let d={STOP:"stop",LENGTH:"length",TOOL_CALLS:"tool_calls",CONTENT_FILTER:"content_filter"},e={END_TURN:"end_turn",MAX_TOKENS:"max_tokens",TOOL_USE:"tool_use",STOP_SEQUENCE:"stop_sequence"},f={STOP:"STOP",MAX_TOKENS:"MAX_TOKENS",SAFETY:"SAFETY",RECITATION:"RECITATION",BLOCKLIST:"BLOCKLIST",PROHIBITED_CONTENT:"PROHIBITED_CONTENT"}},71553:a=>{a.exports=require("node:dns/promises")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75638:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>W,patchFetch:()=>V,routeModule:()=>R,serverHooks:()=>U,workAsyncStorage:()=>S,workUnitAsyncStorage:()=>T});var d={};c.r(d),c.d(d,{OPTIONS:()=>P,POST:()=>Q});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(80238),w=c(89718),x=c(40615);async function y(a,b,c){let d=new AbortController,e=setTimeout(()=>d.abort(),c);try{let c=await fetch(a,{...b,headers:function(a){if(!a)return a;let b={};for(let[c,d]of Object.entries(a))b[c]="string"==typeof d?d.replace(/[^\x00-\xFF]/g,"").trim():d;return b}(b.headers),signal:d.signal});return{ok:!0,res:c}}catch(a){return{ok:!1,timeout:a?.name==="AbortError",error:a?.message||String(a)}}finally{clearTimeout(e)}}function z(a,b){return a&&"string"==typeof a?!b||b<=0?a:a.length>b?a.slice(0,b):a:a||""}function A({provider:a,url:b,title:c,format:d,text:e,costUsd:f,responseMs:g,upstreamMs:h}){return{provider:a,url:b,title:c||null,content:{format:d,text:e||"",length:(e||"").length},metadata:{author:null,published_at:null,language:null},usage:{fetch_cost_usd:f??null},metrics:{response_time_ms:g,upstream_latency_ms:h}}}async function B(a){if((a.headers.get("content-type")||"").includes("application/json"))try{return{json:await a.json()}}catch{return{text:""}}return{text:await a.text()}}async function C({url:a,format:b,maxCharacters:c,provider:d,providerConfig:e,credentials:f,log:g}){if(!a||"string"!=typeof a)return{success:!1,status:400,error:"url is required"};if(!d)return{success:!1,status:400,error:"provider is required"};let h=b||"markdown",i=e?.timeoutMs||15e3,j=f?.apiKey||f?.key||f?.token||"",k=e?.costPerQuery??null,l=Date.now();try{if("firecrawl"===d)return await D({url:a,fmt:h,timeoutMs:i,apiKey:j,maxCharacters:c,costPerQuery:k,startedAt:l});if("jina-reader"===d)return await E({url:a,fmt:h,timeoutMs:i,apiKey:j,maxCharacters:c,costPerQuery:k,startedAt:l});if("tavily"===d)return await F({url:a,fmt:h,timeoutMs:i,apiKey:j,maxCharacters:c,costPerQuery:k,startedAt:l});if("exa"===d)return await G({url:a,fmt:h,timeoutMs:i,apiKey:j,maxCharacters:c,costPerQuery:k,startedAt:l});return{success:!1,status:400,error:`Unsupported provider: ${d}`}}catch(a){return g?.("fetch handler error:",a?.message||a),{success:!1,status:502,error:a?.message||"Internal fetch error"}}}async function D({url:a,fmt:b,timeoutMs:c,apiKey:d,maxCharacters:e,costPerQuery:f,startedAt:g}){let h=Date.now(),i=await y("https://api.firecrawl.dev/v1/scrape",{method:"POST",headers:{"content-type":"application/json",...d?{authorization:`Bearer ${d}`}:{}},body:JSON.stringify({url:a,formats:[b]})},c);if(!i.ok)return{success:!1,status:i.timeout?504:502,error:i.error};let j=Date.now()-h,{json:k}=await B(i.res);if(!i.res.ok)return{success:!1,status:i.res.status,error:k?.error||`Firecrawl error: ${i.res.status}`};let l=k?.data||{},m=z(l.markdown||l.html||l.text||"",e);return{success:!0,data:A({provider:"firecrawl",url:a,title:l.metadata?.title||null,format:b,text:m,costUsd:f,responseMs:Date.now()-g,upstreamMs:j})}}async function E({url:a,fmt:b,timeoutMs:c,apiKey:d,maxCharacters:e,costPerQuery:f,startedAt:g}){let h,i=`https://r.jina.ai/${encodeURIComponent(a)}`,j=Date.now(),k=await y(i,{method:"GET",headers:d?{authorization:`Bearer ${d}`}:{}},c);if(!k.ok)return{success:!1,status:k.timeout?504:502,error:k.error};let l=Date.now()-j,m=await k.res.text();if(!k.res.ok)return{success:!1,status:k.res.status,error:m?.slice(0,500)||`Jina error: ${k.res.status}`};let n=z(m,e);return{success:!0,data:A({provider:"jina-reader",url:a,title:(h=String(m||"").match(/^\s*#\s+(.+)$/m))?h[1].trim():null,format:b,text:n,costUsd:f,responseMs:Date.now()-g,upstreamMs:l})}}async function F({url:a,fmt:b,timeoutMs:c,apiKey:d,maxCharacters:e,costPerQuery:f,startedAt:g}){let h=Date.now(),i=await y("https://api.tavily.com/extract",{method:"POST",headers:{"content-type":"application/json",...d?{authorization:`Bearer ${d}`}:{}},body:JSON.stringify({urls:[a],extract_depth:"basic"})},c);if(!i.ok)return{success:!1,status:i.timeout?504:502,error:i.error};let j=Date.now()-h,{json:k}=await B(i.res);return i.res.ok?{success:!0,data:A({provider:"tavily",url:a,title:null,format:b,text:z((k?.results?.[0]||{}).raw_content||"",e),costUsd:f,responseMs:Date.now()-g,upstreamMs:j})}:{success:!1,status:i.res.status,error:k?.error||`Tavily error: ${i.res.status}`}}async function G({url:a,fmt:b,timeoutMs:c,apiKey:d,maxCharacters:e,costPerQuery:f,startedAt:g}){let h=Date.now(),i=await y("https://api.exa.ai/contents",{method:"POST",headers:{"content-type":"application/json",...d?{"x-api-key":d}:{}},body:JSON.stringify({ids:[a],text:!0})},c);if(!i.ok)return{success:!1,status:i.timeout?504:502,error:i.error};let j=Date.now()-h,{json:k}=await B(i.res);if(!i.res.ok)return{success:!1,status:i.res.status,error:k?.error||`Exa error: ${i.res.status}`};let l=k?.results?.[0]||{},m=z(l.text||"",e);return{success:!0,data:A({provider:"exa",url:a,title:l.title||null,format:b,text:m,costUsd:f,responseMs:Date.now()-g,upstreamMs:j})}}var H=c(43659),I=c(41004),J=c(7803),K=c(67828),L=c(18910),M=c(88556);async function N(a){let b;try{b=await a.json()}catch{return J.warn("FETCH","Invalid JSON body"),(0,H.yj)(I.gx.BAD_REQUEST,"Invalid JSON body")}let c=new URL(a.url),d=b.provider||b.model,e=b.url;b.format,b.max_characters,J.request("POST",`${c.pathname} | ${d}`);let f=(0,v.Tr)(a);f?J.debug("AUTH",`API Key: ${J.maskKey(f)}`):J.debug("AUTH","No API key provided (local mode)");let g=await (0,w.mt)();if(g.requireApiKey){if(!f)return J.warn("AUTH","Missing API key (requireApiKey=true)"),(0,H.yj)(I.gx.UNAUTHORIZED,"Missing API key");if(!await (0,v.kI)(f))return J.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,H.yj)(I.gx.UNAUTHORIZED,"Invalid API key")}if(!d||"string"!=typeof d)return J.warn("FETCH","Missing provider/model"),(0,H.yj)(I.gx.BAD_REQUEST,"Missing required field: provider (or model)");if(!e||"string"!=typeof e)return J.warn("FETCH","Missing url"),(0,H.yj)(I.gx.BAD_REQUEST,"Missing required field: url");try{new URL(e)}catch{return J.warn("FETCH","Invalid URL",{url:e}),(0,H.yj)(I.gx.BAD_REQUEST,"Invalid URL format")}try{(0,M.P)(e)}catch(a){return J.warn("FETCH","Blocked URL",{url:e}),(0,H.yj)(I.gx.BAD_REQUEST,a.message)}let h=await (0,w.Uv)(),i=(0,L.Vu)(d,h);if(i){let c=g.comboStrategies||{},e=c[d]?.fallbackStrategy||g.comboStrategy||"fallback",h=g.comboStickyRoundRobinLimit;return J.info("FETCH",`Combo "${d}" with ${i.length} providers (strategy: ${e}, sticky: ${h})`),(0,L.Pr)({body:b,models:i,handleSingleModel:(b,c)=>O(b,c,a,f,g),log:J,comboName:d,comboStrategy:e,comboStickyLimit:h})}return O(b,d,a,f,g)}async function O(a,b,c,d,e){let f=a.url,g=a.format,h=a.max_characters,i=(0,x.rs)(b),j=x.AI_PROVIDERS[i];if(!j)return J.warn("FETCH","Unknown provider",{provider:b}),(0,H.yj)(I.gx.BAD_REQUEST,`Unknown provider: ${b}`);let k=j.fetchConfig;if(!k)return J.warn("FETCH","Provider does not support web fetch",{provider:i}),(0,H.yj)(I.gx.BAD_REQUEST,`Provider ${i} does not support web fetch`);if(b!==i?J.info("ROUTING",`${b} → ${i}`):J.info("ROUTING",`Provider: ${i}`),j.noAuth){J.info("AUTH",`\x1b[32m${i} no-auth mode\x1b[0m`);let a=await C({url:f,format:g,maxCharacters:h,provider:j.id,providerConfig:k,credentials:null,log:J});return a.success?new Response(JSON.stringify(a.data),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}}):(0,H.yj)(a.status||I.gx.BAD_GATEWAY,a.error||"Fetch failed")}let l=new Set,m=null,n=null;for(;;){let a=await (0,v.c1)(i,l);if(!a||a.allRateLimited){if(a?.allRateLimited){let b=m||a.lastError||"Unavailable",c=n||Number(a.lastErrorCode)||I.gx.SERVICE_UNAVAILABLE;return J.warn("FETCH",`[${i}] ${b} (${a.retryAfterHuman})`),(0,H.wO)(c,`[${i}] ${b}`,a.retryAfter,a.retryAfterHuman)}if(0===l.size)return J.error("AUTH",`No credentials for provider: ${i}`),(0,H.yj)(I.gx.BAD_REQUEST,`No credentials for provider: ${i}`);return J.warn("FETCH","No more accounts available",{provider:i}),(0,H.yj)(n||I.gx.SERVICE_UNAVAILABLE,m||"All accounts unavailable")}J.info("AUTH",`\x1b[32mUsing ${i} account: ${a.connectionName}\x1b[0m`);let b=await (0,K.eU)(i,a),c=await C({url:f,format:g,maxCharacters:h,provider:j.id,providerConfig:k,credentials:b,log:J,onCredentialsRefreshed:async b=>{await (0,K.vN)(a.connectionId,{accessToken:b.accessToken,refreshToken:b.refreshToken,providerSpecificData:b.providerSpecificData,testStatus:"active"})},onRequestSuccess:async()=>{await (0,v.Pt)(a.connectionId,a)}});if(c.success)return new Response(JSON.stringify(c.data),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});let{shouldFallback:d}=await (0,v.vk)(a.connectionId,c.status,c.error,i);if(d){J.warn("AUTH",`Account ${a.connectionName} unavailable (${c.status}), trying fallback`),l.add(a.connectionId),m=c.error,n=c.status;continue}return(0,H.yj)(c.status||I.gx.BAD_GATEWAY,c.error||"Fetch failed")}}async function P(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function Q(a){return await N(a)}let R=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/v1/web/fetch/route",pathname:"/api/v1/web/fetch",filename:"route",bundlePath:"app/api/v1/web/fetch/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"C:\\Users\\Administrator\\Desktop\\Projects\\ExtremeRouter\\src\\app\\api\\v1\\web\\fetch\\route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:S,workUnitAsyncStorage:T,serverHooks:U}=R;function V(){return(0,g.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:T})}async function W(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),R.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/v1/web/fetch/route";"/index"===d&&(d="/");let e=await R.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(I&&!z){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||R.isDev||z||(K="/index"===(K=E)?"/":K);let L=!0===R.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await R.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:L,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>R.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>R.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${N} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!I)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await R.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),b}},k=await R.handleResponse({req:a,nextConfig:x,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!I)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&I||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await R.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79868:a=>{a.exports=require("node:sqlite")},81630:a=>{a.exports=require("http")},81787:a=>{a.exports=require("bun:sqlite")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},88556:(a,b,c)=>{c.d(b,{P:()=>i});let d=new Set(["localhost","ip6-localhost","ip6-loopback"]),e=[".internal",".local",".localhost"];function f(a){let b=a.split(".");if(4!==b.length)return null;let c=0;for(let a of b){if(!/^\d{1,3}$/.test(a))return null;let b=Number(a);if(b>255)return null;c=256*c+b}return c>>>0}let g=[[f("0.0.0.0"),8],[f("10.0.0.0"),8],[f("127.0.0.0"),8],[f("169.254.0.0"),16],[f("172.16.0.0"),12],[f("192.168.0.0"),16]];function h(a){let b=f(a);return null!==b&&g.some(([a,c])=>{let d=0===c?0:0xffffffff<<32-c>>>0;return(b&d)==(a&d)})}function i(a){let b,c,f=new URL(a).hostname.toLowerCase();if(d.has(f)||e.some(a=>f.endsWith(a)))throw Error("Blocked URL: internal host");if(h(f)||f.includes(":")&&((c=(b=f.replace(/^\[|\]$/g,"").toLowerCase()).match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/))?h(c[1]):"::1"===b||"::"===b||b.startsWith("fe80:")||b.startsWith("fc")||b.startsWith("fd")))throw Error("Blocked URL: private IP")}},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,4884,2280,6070,8920,6306,212,9630,8910,1051],()=>b(b.s=75638));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=3883,a.ids=[3883],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12557:(a,b,c)=>{c.d(b,{Bl:()=>j,Qo:()=>f,S5:()=>l,hk:()=>e,kJ:()=>k});var d=c(3662);function e(a,b,c=0){let f=b?("string"==typeof b?b:JSON.stringify(b)).toLowerCase():"";for(let b of d.t2)if(b.text&&f&&f.includes(b.text)||b.status&&b.status===a){if(b.backoff){let a=Math.min(c+1,d.EQ.maxLevel);return{shouldFallback:!0,cooldownMs:function(a=0){let b=Math.max(0,a-1);return Math.min(d.EQ.base*Math.pow(2,b),d.EQ.max)}(a),newBackoffLevel:a}}return{shouldFallback:!0,cooldownMs:b.cooldownMs}}return{shouldFallback:!0,cooldownMs:d.wf}}function f(a){if(!a)return"";let b=new Date(a).getTime()-Date.now();if(b<=0)return"reset after 0s";let c=Math.ceil(b/1e3),d=Math.floor(c/3600),e=Math.floor(c%3600/60),f=c%60,g=[];return d>0&&g.push(`${d}h`),e>0&&g.push(`${e}m`),(f>0||0===g.length)&&g.push(`${f}s`),`reset after ${g.join(" ")}`}let g="modelLock_",h=`${g}__all`;function i(a){return a?`${g}${a}`:h}function j(a,b){let c=a[i(b)]||a[h];return!!c&&new Date(c).getTime()>Date.now()}function k(a){if(!a)return null;let b=null,c=Date.now();for(let[d,e]of Object.entries(a)){if(!d.startsWith(g)||!e)continue;let a=new Date(e).getTime();a<=c||(!b||a<b)&&(b=a)}return b?new Date(b).toISOString():null}function l(a,b){return{[i(a)]:new Date(Date.now()+b).toISOString()}}},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},16828:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>W,patchFetch:()=>V,routeModule:()=>R,serverHooks:()=>U,workAsyncStorage:()=>S,workUnitAsyncStorage:()=>T});var d={};c.r(d),c.d(d,{OPTIONS:()=>P,POST:()=>Q});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(80238),w=c(89718),x=c(40615);async function y(a,b,c){let d=new AbortController,e=setTimeout(()=>d.abort(),c);try{let c=await fetch(a,{...b,headers:function(a){if(!a)return a;let b={};for(let[c,d]of Object.entries(a))b[c]="string"==typeof d?d.replace(/[^\x00-\xFF]/g,"").trim():d;return b}(b.headers),signal:d.signal});return{ok:!0,res:c}}catch(a){return{ok:!1,timeout:a?.name==="AbortError",error:a?.message||String(a)}}finally{clearTimeout(e)}}function z(a,b){return a&&"string"==typeof a?!b||b<=0?a:a.length>b?a.slice(0,b):a:a||""}function A({provider:a,url:b,title:c,format:d,text:e,costUsd:f,responseMs:g,upstreamMs:h}){return{provider:a,url:b,title:c||null,content:{format:d,text:e||"",length:(e||"").length},metadata:{author:null,published_at:null,language:null},usage:{fetch_cost_usd:f??null},metrics:{response_time_ms:g,upstream_latency_ms:h}}}async function B(a){if((a.headers.get("content-type")||"").includes("application/json"))try{return{json:await a.json()}}catch{return{text:""}}return{text:await a.text()}}async function C({url:a,format:b,maxCharacters:c,provider:d,providerConfig:e,credentials:f,log:g}){if(!a||"string"!=typeof a)return{success:!1,status:400,error:"url is required"};if(!d)return{success:!1,status:400,error:"provider is required"};let h=b||"markdown",i=e?.timeoutMs||15e3,j=f?.apiKey||f?.key||f?.token||"",k=e?.costPerQuery??null,l=Date.now();try{if("firecrawl"===d)return await D({url:a,fmt:h,timeoutMs:i,apiKey:j,maxCharacters:c,costPerQuery:k,startedAt:l});if("jina-reader"===d)return await E({url:a,fmt:h,timeoutMs:i,apiKey:j,maxCharacters:c,costPerQuery:k,startedAt:l});if("tavily"===d)return await F({url:a,fmt:h,timeoutMs:i,apiKey:j,maxCharacters:c,costPerQuery:k,startedAt:l});if("exa"===d)return await G({url:a,fmt:h,timeoutMs:i,apiKey:j,maxCharacters:c,costPerQuery:k,startedAt:l});return{success:!1,status:400,error:`Unsupported provider: ${d}`}}catch(a){return g?.("fetch handler error:",a?.message||a),{success:!1,status:502,error:a?.message||"Internal fetch error"}}}async function D({url:a,fmt:b,timeoutMs:c,apiKey:d,maxCharacters:e,costPerQuery:f,startedAt:g}){let h=Date.now(),i=await y("https://api.firecrawl.dev/v1/scrape",{method:"POST",headers:{"content-type":"application/json",...d?{authorization:`Bearer ${d}`}:{}},body:JSON.stringify({url:a,formats:[b]})},c);if(!i.ok)return{success:!1,status:i.timeout?504:502,error:i.error};let j=Date.now()-h,{json:k}=await B(i.res);if(!i.res.ok)return{success:!1,status:i.res.status,error:k?.error||`Firecrawl error: ${i.res.status}`};let l=k?.data||{},m=z(l.markdown||l.html||l.text||"",e);return{success:!0,data:A({provider:"firecrawl",url:a,title:l.metadata?.title||null,format:b,text:m,costUsd:f,responseMs:Date.now()-g,upstreamMs:j})}}async function E({url:a,fmt:b,timeoutMs:c,apiKey:d,maxCharacters:e,costPerQuery:f,startedAt:g}){let h,i=`https://r.jina.ai/${encodeURIComponent(a)}`,j=Date.now(),k=await y(i,{method:"GET",headers:d?{authorization:`Bearer ${d}`}:{}},c);if(!k.ok)return{success:!1,status:k.timeout?504:502,error:k.error};let l=Date.now()-j,m=await k.res.text();if(!k.res.ok)return{success:!1,status:k.res.status,error:m?.slice(0,500)||`Jina error: ${k.res.status}`};let n=z(m,e);return{success:!0,data:A({provider:"jina-reader",url:a,title:(h=String(m||"").match(/^\s*#\s+(.+)$/m))?h[1].trim():null,format:b,text:n,costUsd:f,responseMs:Date.now()-g,upstreamMs:l})}}async function F({url:a,fmt:b,timeoutMs:c,apiKey:d,maxCharacters:e,costPerQuery:f,startedAt:g}){let h=Date.now(),i=await y("https://api.tavily.com/extract",{method:"POST",headers:{"content-type":"application/json",...d?{authorization:`Bearer ${d}`}:{}},body:JSON.stringify({urls:[a],extract_depth:"basic"})},c);if(!i.ok)return{success:!1,status:i.timeout?504:502,error:i.error};let j=Date.now()-h,{json:k}=await B(i.res);return i.res.ok?{success:!0,data:A({provider:"tavily",url:a,title:null,format:b,text:z((k?.results?.[0]||{}).raw_content||"",e),costUsd:f,responseMs:Date.now()-g,upstreamMs:j})}:{success:!1,status:i.res.status,error:k?.error||`Tavily error: ${i.res.status}`}}async function G({url:a,fmt:b,timeoutMs:c,apiKey:d,maxCharacters:e,costPerQuery:f,startedAt:g}){let h=Date.now(),i=await y("https://api.exa.ai/contents",{method:"POST",headers:{"content-type":"application/json",...d?{"x-api-key":d}:{}},body:JSON.stringify({ids:[a],text:!0})},c);if(!i.ok)return{success:!1,status:i.timeout?504:502,error:i.error};let j=Date.now()-h,{json:k}=await B(i.res);if(!i.res.ok)return{success:!1,status:i.res.status,error:k?.error||`Exa error: ${i.res.status}`};let l=k?.results?.[0]||{},m=z(l.text||"",e);return{success:!0,data:A({provider:"exa",url:a,title:l.title||null,format:b,text:m,costUsd:f,responseMs:Date.now()-g,upstreamMs:j})}}var H=c(43659),I=c(41004),J=c(7803),K=c(67828),L=c(34040),M=c(88556);async function N(a){let b;try{b=await a.json()}catch{return J.warn("FETCH","Invalid JSON body"),(0,H.yj)(I.gx.BAD_REQUEST,"Invalid JSON body")}let c=new URL(a.url),d=b.provider||b.model,e=b.url;b.format,b.max_characters,J.request("POST",`${c.pathname} | ${d}`);let f=(0,v.Tr)(a);f?J.debug("AUTH",`API Key: ${J.maskKey(f)}`):J.debug("AUTH","No API key provided (local mode)");let g=await (0,w.mt)();if(g.requireApiKey){if(!f)return J.warn("AUTH","Missing API key (requireApiKey=true)"),(0,H.yj)(I.gx.UNAUTHORIZED,"Missing API key");if(!await (0,v.kI)(f))return J.warn("AUTH","Invalid API key (requireApiKey=true)"),(0,H.yj)(I.gx.UNAUTHORIZED,"Invalid API key")}if(!d||"string"!=typeof d)return J.warn("FETCH","Missing provider/model"),(0,H.yj)(I.gx.BAD_REQUEST,"Missing required field: provider (or model)");if(!e||"string"!=typeof e)return J.warn("FETCH","Missing url"),(0,H.yj)(I.gx.BAD_REQUEST,"Missing required field: url");try{new URL(e)}catch{return J.warn("FETCH","Invalid URL",{url:e}),(0,H.yj)(I.gx.BAD_REQUEST,"Invalid URL format")}try{(0,M.P)(e)}catch(a){return J.warn("FETCH","Blocked URL",{url:e}),(0,H.yj)(I.gx.BAD_REQUEST,a.message)}let h=await (0,w.Uv)(),i=(0,L.Vu)(d,h);if(i){let c=g.comboStrategies||{},e=c[d]?.fallbackStrategy||g.comboStrategy||"fallback",h=g.comboStickyRoundRobinLimit;return J.info("FETCH",`Combo "${d}" with ${i.length} providers (strategy: ${e}, sticky: ${h})`),(0,L.Pr)({body:b,models:i,handleSingleModel:(b,c)=>O(b,c,a,f,g),log:J,comboName:d,comboStrategy:e,comboStickyLimit:h})}return O(b,d,a,f,g)}async function O(a,b,c,d,e){let f=a.url,g=a.format,h=a.max_characters,i=(0,x.rs)(b),j=x.AI_PROVIDERS[i];if(!j)return J.warn("FETCH","Unknown provider",{provider:b}),(0,H.yj)(I.gx.BAD_REQUEST,`Unknown provider: ${b}`);let k=j.fetchConfig;if(!k)return J.warn("FETCH","Provider does not support web fetch",{provider:i}),(0,H.yj)(I.gx.BAD_REQUEST,`Provider ${i} does not support web fetch`);if(b!==i?J.info("ROUTING",`${b} → ${i}`):J.info("ROUTING",`Provider: ${i}`),j.noAuth){J.info("AUTH",`\x1b[32m${i} no-auth mode\x1b[0m`);let a=await C({url:f,format:g,maxCharacters:h,provider:j.id,providerConfig:k,credentials:null,log:J});return a.success?new Response(JSON.stringify(a.data),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}}):(0,H.yj)(a.status||I.gx.BAD_GATEWAY,a.error||"Fetch failed")}let l=new Set,m=null,n=null;for(;;){let a=await (0,v.c1)(i,l);if(!a||a.allRateLimited){if(a?.allRateLimited){let b=m||a.lastError||"Unavailable",c=n||Number(a.lastErrorCode)||I.gx.SERVICE_UNAVAILABLE;return J.warn("FETCH",`[${i}] ${b} (${a.retryAfterHuman})`),(0,H.wO)(c,`[${i}] ${b}`,a.retryAfter,a.retryAfterHuman)}if(0===l.size)return J.error("AUTH",`No credentials for provider: ${i}`),(0,H.yj)(I.gx.BAD_REQUEST,`No credentials for provider: ${i}`);return J.warn("FETCH","No more accounts available",{provider:i}),(0,H.yj)(n||I.gx.SERVICE_UNAVAILABLE,m||"All accounts unavailable")}J.info("AUTH",`\x1b[32mUsing ${i} account: ${a.connectionName}\x1b[0m`);let b=await (0,K.eU)(i,a),c=await C({url:f,format:g,maxCharacters:h,provider:j.id,providerConfig:k,credentials:b,log:J,onCredentialsRefreshed:async b=>{await (0,K.vN)(a.connectionId,{accessToken:b.accessToken,refreshToken:b.refreshToken,providerSpecificData:b.providerSpecificData,testStatus:"active"})},onRequestSuccess:async()=>{await (0,v.Pt)(a.connectionId,a)}});if(c.success)return new Response(JSON.stringify(c.data),{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});let{shouldFallback:d}=await (0,v.vk)(a.connectionId,c.status,c.error,i);if(d){J.warn("AUTH",`Account ${a.connectionName} unavailable (${c.status}), trying fallback`),l.add(a.connectionId),m=c.error,n=c.status;continue}return(0,H.yj)(c.status||I.gx.BAD_GATEWAY,c.error||"Fetch failed")}}async function P(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"POST, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function Q(a){return await N(a)}let R=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/v1/web/fetch/route",pathname:"/api/v1/web/fetch",filename:"route",bundlePath:"app/api/v1/web/fetch/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"C:\\Users\\Administrator\\Desktop\\Projects\\ExtremeRouter\\src\\app\\api\\v1\\web\\fetch\\route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:S,workUnitAsyncStorage:T,serverHooks:U}=R;function V(){return(0,g.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:T})}async function W(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),R.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/v1/web/fetch/route";"/index"===d&&(d="/");let e=await R.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:z,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,y,!1):b.end("This page could not be found"),null);if(I&&!z){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||R.isDev||z||(K="/index"===(K=E)?"/":K);let L=!0===R.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await R.getIncrementalCache(a,x,A,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:L,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>R.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>R.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${N} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!I)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await R.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),b}},k=await R.handleResponse({req:a,nextConfig:x,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!I)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),z&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&I||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await R.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},21820:a=>{a.exports=require("os")},26922:(a,b,c)=>{c.d(b,{KZ:()=>k,S6:()=>h,Yr:()=>o,f6:()=>l,fc:()=>g,kU:()=>i,pT:()=>j,w_:()=>m});var d=c(62842),e=c(55673);let f=["minLength","maxLength","exclusiveMinimum","exclusiveMaximum","minItems","maxItems","format","default","examples","$schema","$defs","definitions","const","$ref","$comment","deprecated","readOnly","writeOnly","additionalProperties","propertyNames","patternProperties","enumDescriptions","anyOf","oneOf","allOf","not","dependencies","dependentSchemas","dependentRequired","title","optional","deprecated","if","then","else","contentMediaType","contentEncoding","cornerRadius","fillColor","fontFamily","fontSize","fontWeight","gap","padding","strokeColor","strokeThickness","textColor"],g=[{category:"HARM_CATEGORY_HATE_SPEECH",threshold:"OFF"},{category:"HARM_CATEGORY_DANGEROUS_CONTENT",threshold:"OFF"},{category:"HARM_CATEGORY_SEXUALLY_EXPLICIT",threshold:"OFF"},{category:"HARM_CATEGORY_HARASSMENT",threshold:"OFF"},{category:"HARM_CATEGORY_CIVIC_INTEGRITY",threshold:"OFF"}];function h(a){let b=[];if("string"==typeof a)b.push({text:a});else if(Array.isArray(a)){for(let c of a)if(c.type===e.x4.TEXT)b.push({text:c.text});else if(c.type===e.x4.IMAGE_URL&&c.image_url?.url?.startsWith("data:")){let a=c.image_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}else if(c.type===e.x4.IMAGE_URL&&c.image_url?.url&&(c.image_url.url.startsWith("http://")||c.image_url.url.startsWith("https://")))b.push({fileData:{fileUri:c.image_url.url,mimeType:"image/*"}});else if(c.type===e.x4.INPUT_AUDIO&&c.input_audio?.data){let a=c.input_audio.format||"wav",d="mp3"===a?"audio/mpeg":`audio/${a}`;b.push({inlineData:{mime_type:d,data:c.input_audio.data}})}else if(c.type===e.x4.AUDIO_URL&&c.audio_url?.url?.startsWith("data:")){let a=c.audio_url.url,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d),e=a.substring(d+1),f=c.split(";")[0];b.push({inlineData:{mime_type:f,data:e}})}}else if(c.type===e.x4.FILE&&c.file?.file_data?.startsWith("data:")){let a=c.file.file_data,d=a.indexOf(",");if(-1!==d){let c=a.substring(5,d).split(";")[0],e=a.substring(d+1);b.push({inlineData:{mime_type:c,data:e}})}}}return b}function i(a,b=""){return"string"==typeof a?a:Array.isArray(a)?a.filter(a=>a.type===e.x4.TEXT).map(a=>a.text).join(b):""}function j(a){return(0,d.N)(a,null)}function k(){return`agent-${crypto.randomUUID()}`}function l(){return crypto.randomUUID()+Date.now().toString()}function m(){let a=["useful","bright","swift","calm","bold"],b=["fuze","wave","spark","flow","core"],c=a[Math.floor(Math.random()*a.length)],d=b[Math.floor(Math.random()*b.length)];return`${c}-${d}-${crypto.randomUUID().slice(0,5)}`}function n(a){let b=0,c=-1;for(let d=0;d<a.length;d++){let e=a[d],f=0,g=e.type;"object"===g||e.properties?f=3:"array"===g||e.items?f=2:g&&"null"!==g&&(f=1),f>c&&(c=f,b=d)}return b}function o(a){return a&&"object"==typeof a&&(!function a(b){if(b&&"object"==typeof b)for(let c of(void 0===b.const||b.enum||(b.enum=[b.const],delete b.const),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.enum&&Array.isArray(b.enum)&&(b.enum=b.enum.map(a=>String(a)),b.type||(b.type="string")),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b){if(b&&"object"==typeof b){if(b.allOf&&Array.isArray(b.allOf)){let a={};for(let c of b.allOf)if(c.properties&&(a.properties||(a.properties={}),Object.assign(a.properties,c.properties)),c.required&&Array.isArray(c.required))for(let b of(a.required||(a.required=[]),c.required))a.required.includes(b)||a.required.push(b);delete b.allOf,a.properties&&(b.properties={...b.properties,...a.properties}),a.required&&(b.required=[...b.required||[],...a.required])}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.anyOf&&Array.isArray(b.anyOf)&&b.anyOf.length>0){let a=b.anyOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=n(a),d=a[c];delete b.anyOf,Object.assign(b,d)}}if(b.oneOf&&Array.isArray(b.oneOf)&&b.oneOf.length>0){let a=b.oneOf.filter(a=>a&&"null"!==a.type);if(a.length>0){let c=n(a),d=a[c];delete b.oneOf,Object.assign(b,d)}}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b){if(b.type&&Array.isArray(b.type)){let a=b.type.filter(a=>"null"!==a);b.type=a.length>0?a[0]:"string"}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b)for(let c of(b.properties&&!b.type&&(b.type="object"),Object.values(b)))c&&"object"==typeof c&&a(c)}(a),!function a(b,c){if(b&&"object"==typeof b){if(Array.isArray(b)){for(let d of b)a(d,c);return}for(let d of Object.keys(b)){if(c.includes(d)||d.startsWith("x-")){delete b[d];continue}let e=b[d];e&&"object"==typeof e&&a(e,c)}}}(a,f),!function a(b){if(b&&"object"==typeof b){if(b.required&&Array.isArray(b.required)&&b.properties){let a=b.required.filter(a=>Object.prototype.hasOwnProperty.call(b.properties,a));0===a.length?delete b.required:b.required=a}for(let c of Object.values(b))c&&"object"==typeof c&&a(c)}}(a),!function a(b){if(b&&"object"==typeof b)for(let c of("object"!==b.type||b.properties&&0!==Object.keys(b.properties).length||(b.properties={reason:{type:"string",description:"Brief explanation of why you are calling this tool"}},b.required=["reason"]),Object.values(b)))c&&"object"==typeof c&&a(c)}(a)),a}},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30714:a=>{a.exports=require("node:vm")},31421:a=>{a.exports=require("node:child_process")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},43659:(a,b,c)=>{c.d(b,{A1:()=>g,lR:()=>i,wO:()=>h,yj:()=>e,zL:()=>f});var d=c(3662);function e(a,b){let c;return new Response(JSON.stringify((c=d.LY[a]||(a>=500?{type:"server_error",code:"internal_server_error"}:{type:"invalid_request_error",code:""}),{error:{message:b||d.O[a]||"An error occurred",type:c.type,code:c.code}})),{status:a,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}async function f(a,b=null){let c="";try{c=await a.text()}catch{c=""}if(b&&"function"==typeof b.parseError)try{let e=b.parseError(a,c);if(e&&"object"==typeof e){let b=e.message||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:e.status||a.status,message:b,resetsAtMs:e.resetsAtMs}}}catch{}let e="";try{let a=JSON.parse(c);e=a.error?.message||a.message||a.error||c}catch{e=c}let g=("string"==typeof e?e:JSON.stringify(e))||d.O[a.status]||`Upstream error: ${a.status}`;return{statusCode:a.status,message:g}}function g(a,b,c){return{success:!1,status:a,error:b,resetsAtMs:c,response:e(a,b)}}function h(a,b,c,d){let e=Math.max(Math.ceil((new Date(c).getTime()-Date.now())/1e3),1);return new Response(JSON.stringify({error:{message:`${b} (${d})`}}),{status:a,headers:{"Content-Type":"application/json","Retry-After":String(e)}})}function i(a,b,c,d){let e=d||a.code||"FETCH_FAILED",f=a.message||"Unknown error",g=a.cause?.code,h=a.cause?.message,i=g||h?` (cause: ${[g,h].filter(Boolean).join(": ")})`:"";return`[${e}]: ${f}${i}`}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},55673:(a,b,c)=>{c.d(b,{R4:()=>g,BY:()=>l,a_:()=>j.a_,RV:()=>e,rP:()=>k,x4:()=>f,bC:()=>j.bC,Du:()=>h,z7:()=>d,m8:()=>i});let d={USER:"user",ASSISTANT:"assistant",TOOL:"tool",SYSTEM:"system",DEVELOPER:"developer"},e={USER:"user",MODEL:"model"},f={TEXT:"text",IMAGE_URL:"image_url",IMAGE:"image",INPUT_AUDIO:"input_audio",AUDIO_URL:"audio_url",FILE:"file",FUNCTION:"function"},g={TEXT:"text",IMAGE:"image",DOCUMENT:"document",TOOL_USE:"tool_use",TOOL_RESULT:"tool_result",THINKING:"thinking",REDACTED_THINKING:"redacted_thinking"},h={MESSAGE:"message",FUNCTION_CALL:"function_call",FUNCTION_CALL_OUTPUT:"function_call_output",REASONING:"reasoning",OUTPUT_TEXT:"output_text",INPUT_TEXT:"input_text",INPUT_IMAGE:"input_image",SUMMARY_TEXT:"summary_text"},i=[f.TEXT,f.IMAGE_URL,f.IMAGE,f.INPUT_AUDIO,f.AUDIO_URL,f.FILE];f.TEXT,f.IMAGE_URL,f.IMAGE,g.TOOL_RESULT;var j=c(69320);let k="unknown",l="image/png"},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},62842:(a,b,c)=>{c.d(b,{N:()=>d});function d(a,b){if("string"!=typeof a)return a;try{return JSON.parse(a)}catch{return b}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},69320:(a,b,c)=>{c.d(b,{Ut:()=>e,a_:()=>f,bC:()=>d});let d={STOP:"stop",LENGTH:"length",TOOL_CALLS:"tool_calls",CONTENT_FILTER:"content_filter"},e={END_TURN:"end_turn",MAX_TOKENS:"max_tokens",TOOL_USE:"tool_use",STOP_SEQUENCE:"stop_sequence"},f={STOP:"STOP",MAX_TOKENS:"MAX_TOKENS",SAFETY:"SAFETY",RECITATION:"RECITATION",BLOCKLIST:"BLOCKLIST",PROHIBITED_CONTENT:"PROHIBITED_CONTENT"}},71553:a=>{a.exports=require("node:dns/promises")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79868:a=>{a.exports=require("node:sqlite")},81630:a=>{a.exports=require("http")},81787:a=>{a.exports=require("bun:sqlite")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},88556:(a,b,c)=>{c.d(b,{P:()=>i});let d=new Set(["localhost","ip6-localhost","ip6-loopback"]),e=[".internal",".local",".localhost"];function f(a){let b=a.split(".");if(4!==b.length)return null;let c=0;for(let a of b){if(!/^\d{1,3}$/.test(a))return null;let b=Number(a);if(b>255)return null;c=256*c+b}return c>>>0}let g=[[f("0.0.0.0"),8],[f("10.0.0.0"),8],[f("127.0.0.0"),8],[f("169.254.0.0"),16],[f("172.16.0.0"),12],[f("192.168.0.0"),16]];function h(a){let b=f(a);return null!==b&&g.some(([a,c])=>{let d=0===c?0:0xffffffff<<32-c>>>0;return(b&d)==(a&d)})}function i(a){let b,c,f=new URL(a).hostname.toLowerCase();if(d.has(f)||e.some(a=>f.endsWith(a)))throw Error("Blocked URL: internal host");if(h(f)||f.includes(":")&&((c=(b=f.replace(/^\[|\]$/g,"").toLowerCase()).match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/))?h(c[1]):"::1"===b||"::"===b||b.startsWith("fe80:")||b.startsWith("fc")||b.startsWith("fd")))throw Error("Blocked URL: private IP")}},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,4884,4485,6070,8920,6306,212,9630,4040,1051],()=>b(b.s=16828));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/.migrated-from","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-shm","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-wal","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/jwt-secret","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/machine-id","../../../../../../../cli/.build-home/AppData/Roaming/nextjs-nodejs/Config/config.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../package.json","../../../../../../../src/lib/db/adapters/betterSqliteAdapter.js","../../../../../../../src/lib/db/adapters/bunSqliteAdapter.js","../../../../../../../src/lib/db/adapters/nodeSqliteAdapter.js","../../../../../../../src/lib/db/adapters/sqljsAdapter.js","../../../../../../../src/lib/db/migrate.js","../../../../../../../src/lib/oauth/services/qoder.js","../../../../../../../src/lib/oauth/services/xai.js","../../../../../../../src/shared/utils/apiKey.js","../../../../../../package.json","../../../../../chunks/1051.js","../../../../../chunks/1216.js","../../../../../chunks/1220.js","../../../../../chunks/1228.js","../../../../../chunks/1241.js","../../../../../chunks/1260.js","../../../../../chunks/1315.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/212.js","../../../../../chunks/2231.js","../../../../../chunks/2280.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2701.js","../../../../../chunks/2722.js","../../../../../chunks/318.js","../../../../../chunks/319.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3593.js","../../../../../chunks/4055.js","../../../../../chunks/412.js","../../../../../chunks/4306.js","../../../../../chunks/4632.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4746.js","../../../../../chunks/4780.js","../../../../../chunks/4827.js","../../../../../chunks/4884.js","../../../../../chunks/507.js","../../../../../chunks/5217.js","../../../../../chunks/5258.js","../../../../../chunks/5573.js","../../../../../chunks/5612.js","../../../../../chunks/5615.js","../../../../../chunks/5699.js","../../../../../chunks/5852.js","../../../../../chunks/595.js","../../../../../chunks/5961.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6182.js","../../../../../chunks/6306.js","../../../../../chunks/6316.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6777.js","../../../../../chunks/6844.js","../../../../../chunks/6935.js","../../../../../chunks/698.js","../../../../../chunks/7152.js","../../../../../chunks/7774.js","../../../../../chunks/7965.js","../../../../../chunks/8238.js","../../../../../chunks/8271.js","../../../../../chunks/8520.js","../../../../../chunks/8658.js","../../../../../chunks/8833.js","../../../../../chunks/8895.js","../../../../../chunks/8910.js","../../../../../chunks/8920.js","../../../../../chunks/8971.js","../../../../../chunks/9528.js","../../../../../chunks/9630.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/.migrated-from","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/backups/upgrade-0.6.0-to-0.6.2-0.6.2-20260704-113435/data.sqlite","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-shm","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-wal","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/jwt-secret","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/machine-id","../../../../../../../cli/.build-home/AppData/Roaming/nextjs-nodejs/Config/config.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../package.json","../../../../../../../src/lib/db/adapters/betterSqliteAdapter.js","../../../../../../../src/lib/db/adapters/bunSqliteAdapter.js","../../../../../../../src/lib/db/adapters/nodeSqliteAdapter.js","../../../../../../../src/lib/db/adapters/sqljsAdapter.js","../../../../../../../src/lib/db/migrate.js","../../../../../../../src/lib/oauth/services/qoder.js","../../../../../../../src/lib/oauth/services/xai.js","../../../../../../../src/shared/utils/apiKey.js","../../../../../../package.json","../../../../../chunks/1051.js","../../../../../chunks/1216.js","../../../../../chunks/1220.js","../../../../../chunks/1228.js","../../../../../chunks/1241.js","../../../../../chunks/1260.js","../../../../../chunks/1315.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/212.js","../../../../../chunks/2231.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2701.js","../../../../../chunks/2722.js","../../../../../chunks/318.js","../../../../../chunks/319.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3593.js","../../../../../chunks/4040.js","../../../../../chunks/4055.js","../../../../../chunks/412.js","../../../../../chunks/4306.js","../../../../../chunks/4485.js","../../../../../chunks/4632.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4746.js","../../../../../chunks/4780.js","../../../../../chunks/4827.js","../../../../../chunks/4884.js","../../../../../chunks/507.js","../../../../../chunks/5217.js","../../../../../chunks/5258.js","../../../../../chunks/5573.js","../../../../../chunks/5612.js","../../../../../chunks/5615.js","../../../../../chunks/5699.js","../../../../../chunks/5852.js","../../../../../chunks/595.js","../../../../../chunks/5961.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6182.js","../../../../../chunks/6306.js","../../../../../chunks/6316.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6777.js","../../../../../chunks/6844.js","../../../../../chunks/6935.js","../../../../../chunks/698.js","../../../../../chunks/7152.js","../../../../../chunks/7774.js","../../../../../chunks/7965.js","../../../../../chunks/8238.js","../../../../../chunks/8271.js","../../../../../chunks/8520.js","../../../../../chunks/8658.js","../../../../../chunks/8833.js","../../../../../chunks/8895.js","../../../../../chunks/8920.js","../../../../../chunks/8971.js","../../../../../chunks/9528.js","../../../../../chunks/9630.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=1566,a.ids=[1566],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},1761:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(75230),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/v1beta/models/[...path]/route",pathname:"/api/v1beta/models/[...path]",filename:"route",bundlePath:"app/api/v1beta/models/[...path]/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"C:\\Users\\Administrator\\Desktop\\Projects\\ExtremeRouter\\src\\app\\api\\v1beta\\models\\[...path]\\route.js",nextConfigOutput:"standalone",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/v1beta/models/[...path]/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{a.exports=require("node:dns/promises")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75230:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{OPTIONS:()=>m,POST:()=>n});var e=c(79489),f=c(80238),g=c(89718),h=c(81329),i=c(41004),j=c(78833),k=a([e]);e=(k.then?(await k)():k)[0];let u=!1,v=/^[a-zA-Z0-9_.:-]+$/;async function l(){u||(await (0,j.Ai)(),u=!0)}async function m(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, POST, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function n(a,{params:b}){await l();try{let f,g,{path:i}=await b;if(i.length>=2){let a=i[0],b=i[1];g=b.includes(":streamGenerateContent")?":streamGenerateContent":":generateContent";let c=b.replace(":streamGenerateContent","").replace(":generateContent","");f=a+"/"+c}else{let a=i[0];g=a.includes(":streamGenerateContent")?":streamGenerateContent":":generateContent",f=a.replace(":streamGenerateContent","").replace(":generateContent","")}let j=await a.json();if(function(a,b){let c,d=String(a||"");if(d.includes("/")&&!d.startsWith("gemini/")&&!d.startsWith("models/"))return!1;let e=o(a);return c=b?.generationConfig?.responseModalities,Array.isArray(c)&&c.some(a=>"AUDIO"===String(a).toUpperCase())||new Set([...(h.vq.gemini||[]).filter(a=>"tts"===(a.kind||a.type)).map(a=>a.id),...(h.vq["gemini-tts-models"]||[]).map(a=>a.id)]).has(e)}(f,j))return await s(a,j,f,g);let k=":streamGenerateContent"===g,l=function(a,b,c){let d=[];if(a.systemInstruction){let b=a.systemInstruction.parts?.map(a=>a.text).join("\n")||"";b&&d.push({role:"system",content:b})}if(a.contents)for(let b of a.contents){let a="model"===b.role?"assistant":"user",c=b.parts?.map(a=>a.text).join("\n")||"";d.push({role:a,content:c})}return{model:b,messages:d,stream:c,max_tokens:a.generationConfig?.maxOutputTokens,temperature:a.generationConfig?.temperature,top_p:a.generationConfig?.topP}}(j,f,k),m=new Request(a.url,{method:"POST",headers:a.headers,body:JSON.stringify(l)}),n=await (0,e.P)(m);if(k){var c=n,d=f;if(!c.ok||!c.body)return c;let a=new TextDecoder,b=new TextEncoder,e=new TransformStream({transform(c,e){for(let f of a.decode(c,{stream:!0}).split("\n")){let a;if(!f.startsWith("data:"))continue;let c=f.slice(5).trim();if(!c||"[DONE]"===c)continue;try{a=JSON.parse(c)}catch{continue}let g=a.choices?.[0];if(!g)continue;let h=g.delta||{},i=[];if(h.reasoning_content&&i.push({text:h.reasoning_content,thought:!0}),h.content&&i.push({text:h.content}),0===i.length&&!g.finish_reason)continue;let j={content:{role:"model",parts:i.length>0?i:[{text:""}]},index:0};g.finish_reason&&(j.finishReason=w[g.finish_reason]||"STOP");let k={candidates:[j]};if(g.finish_reason&&a.usage){k.usageMetadata={promptTokenCount:a.usage.prompt_tokens||0,candidatesTokenCount:a.usage.completion_tokens||0,totalTokenCount:a.usage.total_tokens||0};let b=a.usage.completion_tokens_details?.reasoning_tokens;b&&(k.usageMetadata.thoughtsTokenCount=b),k.modelVersion=a.model||d}e.enqueue(b.encode("data: "+JSON.stringify(k)+"\r\n\r\n"))}}});return new Response(c.body.pipeThrough(e),{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache","Access-Control-Allow-Origin":"*"}})}return await t(n,f)}catch(a){return console.log("Error handling Gemini request:",a),Response.json({error:{message:a.message,code:500}},{status:500})}}function o(a){return String(a||"").replace(/^models\//,"").replace(/^gemini\//,"")}async function p(a){if(!(await (0,g.mt)()).requireApiKey)return null;let b=function(a){let b=a.headers.get("Authorization");if(b?.startsWith("Bearer "))return b.slice(7);let c=a.headers.get("x-goog-api-key");return c||new URL(a.url).searchParams.get("key")}(a);return b?await (0,f.kI)(b)?null:Response.json({error:{message:"Invalid API key"}},{status:401}):Response.json({error:{message:"Missing API key"}},{status:401})}function q(a){let b=new Headers(a.headers);return b.delete("content-encoding"),b.delete("content-length"),b.delete("transfer-encoding"),b.set("Access-Control-Allow-Origin","*"),b}function r(a){return a?.cause?.code||a?.code||a?.cause?.name||a?.name||"UNKNOWN"}async function s(a,b,c,d){let e=await p(a);if(e)return e;let g=o(c);if(!v.test(g))return Response.json({error:{message:"Invalid model"}},{status:400});let h=new Set,j=JSON.stringify(b),k=null,l=null;for(;;){let b,c=await (0,f.c1)("gemini",h,g);if(!c||c.allRateLimited)return console.log(`[GEMINI_NATIVE] exhausted model=${g} status=${l||Number(c?.lastErrorCode)||503} error=${k||c?.lastError||"No active credentials for provider: gemini"}`),Response.json({error:{message:k||c?.lastError||"No active credentials for provider: gemini"}},{status:l||Number(c?.lastErrorCode)||503});let e=c?.apiKey?{"x-goog-api-key":c.apiKey}:c?.accessToken?{Authorization:`Bearer ${c.accessToken}`}:null;if(!e)return Response.json({error:{message:"No Gemini API key configured"}},{status:404});let m=function(a){let b=String(a?.connectionId||"unknown").slice(0,8),c=String(a?.connectionName||"");return!c||c.includes("@")?b:`${c}:${b}`}(c),n=Date.now(),p=function(a,b,c){let d=new URL(a),e=new URL(`https://generativelanguage.googleapis.com/v1beta/models/${o(b)}${c}`);for(let[a,b]of d.searchParams.entries())"key"!==a&&e.searchParams.append(a,b);return e.toString()}(a.url,g,d),s=new AbortController,t=!1,u=setTimeout(()=>{t=!0,s.abort()},i.IK),v=()=>s.abort();if(a.signal?.aborted)return console.log(`[GEMINI_NATIVE] client aborted model=${g} ms=0 conn=${m}`),Response.json({error:{message:"Client closed request"}},{status:499});a.signal?.addEventListener("abort",v,{once:!0}),console.log(`[GEMINI_NATIVE] start model=${g} action=${d} conn=${m} body=${Buffer.byteLength(j)}B timeout=${i.IK}`);try{b=await fetch(p,{method:"POST",headers:{"Content-Type":a.headers.get("Content-Type")||"application/json",...e},body:j,signal:s.signal})}catch(j){let b=Date.now()-n;if(a.signal?.aborted&&!t)return console.log(`[GEMINI_NATIVE] client aborted model=${g} ms=${b} conn=${m}`),Response.json({error:{message:"Client closed request"}},{status:499});let d=!function(a,b){if(b)return!0;let c=r(a);return"UND_ERR_HEADERS_TIMEOUT"===c||"HeadersTimeoutError"===c}(j,t)?502:504,e=function(a){let b=a?.message||String(a),c=r(a);return`${b} (${c})`}(j);console.log(`[GEMINI_NATIVE] fetch failed model=${g} status=${d} ms=${b} conn=${m} error=${e}`);let{shouldFallback:i}=await (0,f.vk)(c.connectionId,d,e,"gemini",g);if(i){h.add(c.connectionId),k=e,l=d,console.log(`[GEMINI_NATIVE] fallback model=${g} status=${d} conn=${m} exclude=${h.size}`);continue}return Response.json({error:{message:e}},{status:d})}finally{clearTimeout(u),a.signal?.removeEventListener("abort",v)}if(console.log(`[GEMINI_NATIVE] upstream model=${g} status=${b.status} ms=${Date.now()-n} conn=${m} ct=${b.headers.get("content-type")||"?"} cl=${b.headers.get("content-length")||"?"}`),b.ok)return await (0,f.Pt)(c.connectionId,c,g),new Response(b.body,{status:b.status,statusText:b.statusText,headers:q(b)});let w=await b.text(),{shouldFallback:x}=await (0,f.vk)(c.connectionId,b.status,w,"gemini",g);if(x){h.add(c.connectionId),k=w,l=b.status;continue}return new Response(w,{status:b.status,statusText:b.statusText,headers:q(b)})}}let w={stop:"STOP",length:"MAX_TOKENS",tool_calls:"STOP",content_filter:"SAFETY"};async function t(a,b){let c;if(!a.ok)return a;try{c=await a.json()}catch{return a}if(c.candidates)return Response.json(c,{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});if(c.error)return Response.json(c,{status:a.status,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});let d=c.choices?.[0];if(!d)return Response.json(c,{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});let{message:e,finish_reason:f}=d,g=[];e.reasoning_content&&g.push({text:e.reasoning_content,thought:!0}),g.push({text:e.content||""});let h=w[f]||"STOP",i={candidates:[{content:{role:"model",parts:g},finishReason:h,index:0}],modelVersion:c.model||b};if(c.usage){i.usageMetadata={promptTokenCount:c.usage.prompt_tokens||0,candidatesTokenCount:c.usage.completion_tokens||0,totalTokenCount:c.usage.total_tokens||0};let a=c.usage.completion_tokens_details?.reasoning_tokens;a&&(i.usageMetadata.thoughtsTokenCount=a)}return Response.json(i,{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}d()}catch(a){d(a)}})},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79646:a=>{a.exports=require("child_process")},79868:a=>{a.exports=require("node:sqlite")},81329:(a,b,c)=>{c.d(b,{CP:()=>f,Xg:()=>d.Xg,eh:()=>e,vq:()=>d.PROVIDER_MODELS});var d=c(45699);Object.entries(c(40615).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.PROVIDER_MODELS).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),f=(a,b=null)=>a?.kind||a?.type||b},81630:a=>{a.exports=require("http")},81787:a=>{a.exports=require("bun:sqlite")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7774,4884,2280,6070,8920,6306,212,2701,8833,318,8895,9630,8910,1051,5961],()=>b(b.s=1761));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=1566,a.ids=[1566],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{a.exports=require("node:perf_hooks")},1708:a=>{a.exports=require("node:process")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},7066:a=>{a.exports=require("node:tty")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{a.exports=require("dns")},16698:a=>{a.exports=require("node:async_hooks")},20495:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(75230),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/v1beta/models/[...path]/route",pathname:"/api/v1beta/models/[...path]",filename:"route",bundlePath:"app/api/v1beta/models/[...path]/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"C:\\Users\\Administrator\\Desktop\\Projects\\ExtremeRouter\\src\\app\\api\\v1beta\\models\\[...path]\\route.js",nextConfigOutput:"standalone",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/v1beta/models/[...path]/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30714:a=>{a.exports=require("node:vm")},31421:a=>{a.exports=require("node:child_process")},32467:a=>{a.exports=require("node:http2")},33873:a=>{a.exports=require("path")},34589:a=>{a.exports=require("node:assert")},37067:a=>{a.exports=require("node:http")},37540:a=>{a.exports=require("node:console")},38522:a=>{a.exports=require("node:zlib")},40610:a=>{a.exports=require("node:dns")},41692:a=>{a.exports=require("node:tls")},41792:a=>{a.exports=require("node:querystring")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},48161:a=>{a.exports=require("node:os")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55591:a=>{a.exports=require("https")},57075:a=>{a.exports=require("node:stream")},57975:a=>{a.exports=require("node:util")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71553:a=>{a.exports=require("node:dns/promises")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73429:a=>{a.exports=require("node:util/types")},73496:a=>{a.exports=require("http2")},74075:a=>{a.exports=require("zlib")},75230:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{OPTIONS:()=>m,POST:()=>n});var e=c(79489),f=c(80238),g=c(89718),h=c(81329),i=c(41004),j=c(78833),k=a([e]);e=(k.then?(await k)():k)[0];let u=!1,v=/^[a-zA-Z0-9_.:-]+$/;async function l(){u||(await (0,j.Ai)(),u=!0)}async function m(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, POST, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function n(a,{params:b}){await l();try{let f,g,{path:i}=await b;if(i.length>=2){let a=i[0],b=i[1];g=b.includes(":streamGenerateContent")?":streamGenerateContent":":generateContent";let c=b.replace(":streamGenerateContent","").replace(":generateContent","");f=a+"/"+c}else{let a=i[0];g=a.includes(":streamGenerateContent")?":streamGenerateContent":":generateContent",f=a.replace(":streamGenerateContent","").replace(":generateContent","")}let j=await a.json();if(function(a,b){let c,d=String(a||"");if(d.includes("/")&&!d.startsWith("gemini/")&&!d.startsWith("models/"))return!1;let e=o(a);return c=b?.generationConfig?.responseModalities,Array.isArray(c)&&c.some(a=>"AUDIO"===String(a).toUpperCase())||new Set([...(h.vq.gemini||[]).filter(a=>"tts"===(a.kind||a.type)).map(a=>a.id),...(h.vq["gemini-tts-models"]||[]).map(a=>a.id)]).has(e)}(f,j))return await s(a,j,f,g);let k=":streamGenerateContent"===g,l=function(a,b,c){let d=[];if(a.systemInstruction){let b=a.systemInstruction.parts?.map(a=>a.text).join("\n")||"";b&&d.push({role:"system",content:b})}if(a.contents)for(let b of a.contents){let a="model"===b.role?"assistant":"user",c=b.parts?.map(a=>a.text).join("\n")||"";d.push({role:a,content:c})}return{model:b,messages:d,stream:c,max_tokens:a.generationConfig?.maxOutputTokens,temperature:a.generationConfig?.temperature,top_p:a.generationConfig?.topP}}(j,f,k),m=new Request(a.url,{method:"POST",headers:a.headers,body:JSON.stringify(l)}),n=await (0,e.P)(m);if(k){var c=n,d=f;if(!c.ok||!c.body)return c;let a=new TextDecoder,b=new TextEncoder,e=new TransformStream({transform(c,e){for(let f of a.decode(c,{stream:!0}).split("\n")){let a;if(!f.startsWith("data:"))continue;let c=f.slice(5).trim();if(!c||"[DONE]"===c)continue;try{a=JSON.parse(c)}catch{continue}let g=a.choices?.[0];if(!g)continue;let h=g.delta||{},i=[];if(h.reasoning_content&&i.push({text:h.reasoning_content,thought:!0}),h.content&&i.push({text:h.content}),0===i.length&&!g.finish_reason)continue;let j={content:{role:"model",parts:i.length>0?i:[{text:""}]},index:0};g.finish_reason&&(j.finishReason=w[g.finish_reason]||"STOP");let k={candidates:[j]};if(g.finish_reason&&a.usage){k.usageMetadata={promptTokenCount:a.usage.prompt_tokens||0,candidatesTokenCount:a.usage.completion_tokens||0,totalTokenCount:a.usage.total_tokens||0};let b=a.usage.completion_tokens_details?.reasoning_tokens;b&&(k.usageMetadata.thoughtsTokenCount=b),k.modelVersion=a.model||d}e.enqueue(b.encode("data: "+JSON.stringify(k)+"\r\n\r\n"))}}});return new Response(c.body.pipeThrough(e),{status:200,headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache","Access-Control-Allow-Origin":"*"}})}return await t(n,f)}catch(a){return console.log("Error handling Gemini request:",a),Response.json({error:{message:a.message,code:500}},{status:500})}}function o(a){return String(a||"").replace(/^models\//,"").replace(/^gemini\//,"")}async function p(a){if(!(await (0,g.mt)()).requireApiKey)return null;let b=function(a){let b=a.headers.get("Authorization");if(b?.startsWith("Bearer "))return b.slice(7);let c=a.headers.get("x-goog-api-key");return c||new URL(a.url).searchParams.get("key")}(a);return b?await (0,f.kI)(b)?null:Response.json({error:{message:"Invalid API key"}},{status:401}):Response.json({error:{message:"Missing API key"}},{status:401})}function q(a){let b=new Headers(a.headers);return b.delete("content-encoding"),b.delete("content-length"),b.delete("transfer-encoding"),b.set("Access-Control-Allow-Origin","*"),b}function r(a){return a?.cause?.code||a?.code||a?.cause?.name||a?.name||"UNKNOWN"}async function s(a,b,c,d){let e=await p(a);if(e)return e;let g=o(c);if(!v.test(g))return Response.json({error:{message:"Invalid model"}},{status:400});let h=new Set,j=JSON.stringify(b),k=null,l=null;for(;;){let b,c=await (0,f.c1)("gemini",h,g);if(!c||c.allRateLimited)return console.log(`[GEMINI_NATIVE] exhausted model=${g} status=${l||Number(c?.lastErrorCode)||503} error=${k||c?.lastError||"No active credentials for provider: gemini"}`),Response.json({error:{message:k||c?.lastError||"No active credentials for provider: gemini"}},{status:l||Number(c?.lastErrorCode)||503});let e=c?.apiKey?{"x-goog-api-key":c.apiKey}:c?.accessToken?{Authorization:`Bearer ${c.accessToken}`}:null;if(!e)return Response.json({error:{message:"No Gemini API key configured"}},{status:404});let m=function(a){let b=String(a?.connectionId||"unknown").slice(0,8),c=String(a?.connectionName||"");return!c||c.includes("@")?b:`${c}:${b}`}(c),n=Date.now(),p=function(a,b,c){let d=new URL(a),e=new URL(`https://generativelanguage.googleapis.com/v1beta/models/${o(b)}${c}`);for(let[a,b]of d.searchParams.entries())"key"!==a&&e.searchParams.append(a,b);return e.toString()}(a.url,g,d),s=new AbortController,t=!1,u=setTimeout(()=>{t=!0,s.abort()},i.IK),v=()=>s.abort();if(a.signal?.aborted)return console.log(`[GEMINI_NATIVE] client aborted model=${g} ms=0 conn=${m}`),Response.json({error:{message:"Client closed request"}},{status:499});a.signal?.addEventListener("abort",v,{once:!0}),console.log(`[GEMINI_NATIVE] start model=${g} action=${d} conn=${m} body=${Buffer.byteLength(j)}B timeout=${i.IK}`);try{b=await fetch(p,{method:"POST",headers:{"Content-Type":a.headers.get("Content-Type")||"application/json",...e},body:j,signal:s.signal})}catch(j){let b=Date.now()-n;if(a.signal?.aborted&&!t)return console.log(`[GEMINI_NATIVE] client aborted model=${g} ms=${b} conn=${m}`),Response.json({error:{message:"Client closed request"}},{status:499});let d=!function(a,b){if(b)return!0;let c=r(a);return"UND_ERR_HEADERS_TIMEOUT"===c||"HeadersTimeoutError"===c}(j,t)?502:504,e=function(a){let b=a?.message||String(a),c=r(a);return`${b} (${c})`}(j);console.log(`[GEMINI_NATIVE] fetch failed model=${g} status=${d} ms=${b} conn=${m} error=${e}`);let{shouldFallback:i}=await (0,f.vk)(c.connectionId,d,e,"gemini",g);if(i){h.add(c.connectionId),k=e,l=d,console.log(`[GEMINI_NATIVE] fallback model=${g} status=${d} conn=${m} exclude=${h.size}`);continue}return Response.json({error:{message:e}},{status:d})}finally{clearTimeout(u),a.signal?.removeEventListener("abort",v)}if(console.log(`[GEMINI_NATIVE] upstream model=${g} status=${b.status} ms=${Date.now()-n} conn=${m} ct=${b.headers.get("content-type")||"?"} cl=${b.headers.get("content-length")||"?"}`),b.ok)return await (0,f.Pt)(c.connectionId,c,g),new Response(b.body,{status:b.status,statusText:b.statusText,headers:q(b)});let w=await b.text(),{shouldFallback:x}=await (0,f.vk)(c.connectionId,b.status,w,"gemini",g);if(x){h.add(c.connectionId),k=w,l=b.status;continue}return new Response(w,{status:b.status,statusText:b.statusText,headers:q(b)})}}let w={stop:"STOP",length:"MAX_TOKENS",tool_calls:"STOP",content_filter:"SAFETY"};async function t(a,b){let c;if(!a.ok)return a;try{c=await a.json()}catch{return a}if(c.candidates)return Response.json(c,{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});if(c.error)return Response.json(c,{status:a.status,headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});let d=c.choices?.[0];if(!d)return Response.json(c,{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}});let{message:e,finish_reason:f}=d,g=[];e.reasoning_content&&g.push({text:e.reasoning_content,thought:!0}),g.push({text:e.content||""});let h=w[f]||"STOP",i={candidates:[{content:{role:"model",parts:g},finishReason:h,index:0}],modelVersion:c.model||b};if(c.usage){i.usageMetadata={promptTokenCount:c.usage.prompt_tokens||0,candidatesTokenCount:c.usage.completion_tokens||0,totalTokenCount:c.usage.total_tokens||0};let a=c.usage.completion_tokens_details?.reasoning_tokens;a&&(i.usageMetadata.thoughtsTokenCount=a)}return Response.json(i,{headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})}d()}catch(a){d(a)}})},75919:a=>{a.exports=require("node:worker_threads")},76760:a=>{a.exports=require("node:path")},77030:a=>{a.exports=require("node:net")},77598:a=>{a.exports=require("node:crypto")},78474:a=>{a.exports=require("node:events")},79646:a=>{a.exports=require("child_process")},79868:a=>{a.exports=require("node:sqlite")},81329:(a,b,c)=>{c.d(b,{CP:()=>f,Xg:()=>d.Xg,eh:()=>e,vq:()=>d.PROVIDER_MODELS});var d=c(45699);Object.entries(c(40615).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.PROVIDER_MODELS).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),f=(a,b=null)=>a?.kind||a?.type||b},81630:a=>{a.exports=require("http")},81787:a=>{a.exports=require("bun:sqlite")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},87997:a=>{a.exports=require("node:timers")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7774,4884,4485,6070,8920,6306,212,2701,8833,318,8895,9630,4040,1051,5961],()=>b(b.s=20495));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/.migrated-from","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-shm","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-wal","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/jwt-secret","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/machine-id","../../../../../../../cli/.build-home/AppData/Roaming/nextjs-nodejs/Config/config.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../package.json","../../../../../../../src/lib/db/adapters/betterSqliteAdapter.js","../../../../../../../src/lib/db/adapters/bunSqliteAdapter.js","../../../../../../../src/lib/db/adapters/nodeSqliteAdapter.js","../../../../../../../src/lib/db/adapters/sqljsAdapter.js","../../../../../../../src/lib/db/migrate.js","../../../../../../../src/lib/oauth/services/qoder.js","../../../../../../../src/lib/oauth/services/xai.js","../../../../../../../src/shared/utils/apiKey.js","../../../../../../package.json","../../../../../chunks/1051.js","../../../../../chunks/1216.js","../../../../../chunks/1220.js","../../../../../chunks/1228.js","../../../../../chunks/1241.js","../../../../../chunks/1260.js","../../../../../chunks/1315.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/212.js","../../../../../chunks/2231.js","../../../../../chunks/2280.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2701.js","../../../../../chunks/2722.js","../../../../../chunks/318.js","../../../../../chunks/319.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3593.js","../../../../../chunks/4055.js","../../../../../chunks/412.js","../../../../../chunks/4306.js","../../../../../chunks/4632.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4746.js","../../../../../chunks/4780.js","../../../../../chunks/4827.js","../../../../../chunks/4884.js","../../../../../chunks/507.js","../../../../../chunks/5217.js","../../../../../chunks/5258.js","../../../../../chunks/5573.js","../../../../../chunks/5612.js","../../../../../chunks/5615.js","../../../../../chunks/5699.js","../../../../../chunks/5852.js","../../../../../chunks/595.js","../../../../../chunks/5961.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6182.js","../../../../../chunks/6306.js","../../../../../chunks/6316.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6777.js","../../../../../chunks/6844.js","../../../../../chunks/6935.js","../../../../../chunks/698.js","../../../../../chunks/7152.js","../../../../../chunks/7774.js","../../../../../chunks/7965.js","../../../../../chunks/8238.js","../../../../../chunks/8271.js","../../../../../chunks/8520.js","../../../../../chunks/8658.js","../../../../../chunks/8833.js","../../../../../chunks/8895.js","../../../../../chunks/8910.js","../../../../../chunks/8920.js","../../../../../chunks/8971.js","../../../../../chunks/9528.js","../../../../../chunks/9630.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/.migrated-from","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/backups/upgrade-0.6.0-to-0.6.2-0.6.2-20260704-113435/data.sqlite","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-shm","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/db/data.sqlite-wal","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/jwt-secret","../../../../../../../cli/.build-home/AppData/Roaming/extremerouter/machine-id","../../../../../../../cli/.build-home/AppData/Roaming/nextjs-nodejs/Config/config.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../node_modules/bindings/bindings.js","../../../../../../../node_modules/bindings/package.json","../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../../node_modules/sql.js/package.json","../../../../../../../package.json","../../../../../../../src/lib/db/adapters/betterSqliteAdapter.js","../../../../../../../src/lib/db/adapters/bunSqliteAdapter.js","../../../../../../../src/lib/db/adapters/nodeSqliteAdapter.js","../../../../../../../src/lib/db/adapters/sqljsAdapter.js","../../../../../../../src/lib/db/migrate.js","../../../../../../../src/lib/oauth/services/qoder.js","../../../../../../../src/lib/oauth/services/xai.js","../../../../../../../src/shared/utils/apiKey.js","../../../../../../package.json","../../../../../chunks/1051.js","../../../../../chunks/1216.js","../../../../../chunks/1220.js","../../../../../chunks/1228.js","../../../../../chunks/1241.js","../../../../../chunks/1260.js","../../../../../chunks/1315.js","../../../../../chunks/1813.js","../../../../../chunks/1998.js","../../../../../chunks/212.js","../../../../../chunks/2231.js","../../../../../chunks/2391.js","../../../../../chunks/241.js","../../../../../chunks/2701.js","../../../../../chunks/2722.js","../../../../../chunks/318.js","../../../../../chunks/319.js","../../../../../chunks/3535.js","../../../../../chunks/3546.js","../../../../../chunks/3593.js","../../../../../chunks/4040.js","../../../../../chunks/4055.js","../../../../../chunks/412.js","../../../../../chunks/4306.js","../../../../../chunks/4485.js","../../../../../chunks/4632.js","../../../../../chunks/4739.js","../../../../../chunks/4741.js","../../../../../chunks/4746.js","../../../../../chunks/4780.js","../../../../../chunks/4827.js","../../../../../chunks/4884.js","../../../../../chunks/507.js","../../../../../chunks/5217.js","../../../../../chunks/5258.js","../../../../../chunks/5573.js","../../../../../chunks/5612.js","../../../../../chunks/5615.js","../../../../../chunks/5699.js","../../../../../chunks/5852.js","../../../../../chunks/595.js","../../../../../chunks/5961.js","../../../../../chunks/6070.js","../../../../../chunks/615.js","../../../../../chunks/6182.js","../../../../../chunks/6306.js","../../../../../chunks/6316.js","../../../../../chunks/6457.js","../../../../../chunks/6763.js","../../../../../chunks/6777.js","../../../../../chunks/6844.js","../../../../../chunks/6935.js","../../../../../chunks/698.js","../../../../../chunks/7152.js","../../../../../chunks/7774.js","../../../../../chunks/7965.js","../../../../../chunks/8238.js","../../../../../chunks/8271.js","../../../../../chunks/8520.js","../../../../../chunks/8658.js","../../../../../chunks/8833.js","../../../../../chunks/8895.js","../../../../../chunks/8920.js","../../../../../chunks/8971.js","../../../../../chunks/9528.js","../../../../../chunks/9630.js","../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
@@ -1 +1 @@
1
- (()=>{var a={};a.id=1860,a.ids=[615,1860,5699],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},21820:a=>{"use strict";a.exports=require("os")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},35024:(a,b,c)=>{"use strict";c.d(b,{Ak:()=>e,Yg:()=>h,sr:()=>d.sr,xq:()=>d.xq});var d=c(26070);function e(a){return(a?.providerSpecificData?.baseUrl?.trim()||"http://localhost:11434").replace(/\/$/,"")}let f=d.xq["xiaomi-tokenplan"]?.regions||{},g=d.xq["xiaomi-tokenplan"]?.defaultRegion;function h(a){return f[a?.providerSpecificData?.region]||f[g]}},37033:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x,OPTIONS:()=>w});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(81329);async function w(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function x(){try{let b=[],c=new Set;function a({name:d,displayName:e,description:f,methods:g=["generateContent"]}){c.has(d)||(c.add(d),b.push({name:d,displayName:e,description:f,supportedGenerationMethods:g,inputTokenLimit:128e3,outputTokenLimit:8192}))}for(let[b,c]of Object.entries(v.vq))for(let d of c)a({name:`models/${b}/${d.id}`,displayName:d.name||d.id,description:`${b} model: ${d.name||d.id}`}),"gemini"===b&&a({name:`models/${d.id}`,displayName:d.name||d.id,description:`Gemini model: ${d.name||d.id}`,methods:["generateContent","streamGenerateContent"]});return Response.json({models:b})}catch(a){return console.log("Error fetching models:",a),Response.json({error:{message:a.message}},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/v1beta/models/route",pathname:"/api/v1beta/models",filename:"route",bundlePath:"app/api/v1beta/models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"C:\\Users\\Administrator\\Desktop\\Projects\\ExtremeRouter\\src\\app\\api\\v1beta\\models\\route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),y.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/v1beta/models/route";"/index"===d&&(d="/");let e=await y.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||y.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===y.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await y.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>y.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>y.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await y.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},40615:(a,b,c)=>{"use strict";c.d(b,{AI_PROVIDERS:()=>s,js:()=>w,DI:()=>n,fg:()=>k,Pd:()=>o,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>m,jO:()=>y,wb:()=>x,br:()=>l,wG:()=>v,zt:()=>t,gb:()=>q,gC:()=>r,mq:()=>p,rs:()=>u});var d=c(52280);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.A.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.A.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.authModes?{authModes:a.authModes}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m="openai-compatible-",n="anthropic-compatible-",o="custom-embedding-";function p(a){return"string"==typeof a&&a.startsWith(m)}function q(a){return"string"==typeof a&&a.startsWith(n)}function r(a){return"string"==typeof a&&a.startsWith(o)}let s={...h,...i,...j,...k,...l};function t(a){for(let b of Object.values(s))if(b.alias===a||b.id===a)return b;return null}function u(a){let b=t(a);return b?.id||a}function v(a){let b=s[a];return b?.alias||a}let w=Object.values(s).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(s).reduce((a,b)=>(a[b.id]=b.alias,a),{});let x=d.A.filter(a=>a.features?.usage).map(a=>a.id),y=d.A.filter(a=>a.features?.usageApikey).map(a=>a.id)},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45699:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>o,PROVIDER_MODELS:()=>f.vq,fZ:()=>j,cY:()=>q,ux:()=>k,OA:()=>l,kt:()=>m,KC:()=>p,SM:()=>i});var d=c(35024),e=c(52280),f=c(26070),g=c(99511);let h="-review";function i(a){return f.vq[a]||[]}function j(a){let b=f.vq[a];return b?.[0]?.id||null}function k(a,b){let c=f.vq[a];return c?(0,g.gr)(c.find(a=>a.id===b)):null}function l(a,b){let c=f.vq[a];if(!c)return null;let d=c.find(a=>a.id===b);return d?.kind||d?.type||null}function m(a,b){let c=f.vq[a],d=c?.find(a=>a.id===b);return d?.upstreamModelId?d.upstreamModelId:"cx"===a&&"string"==typeof b&&b.endsWith(h)?b.slice(0,-h.length):b}let n=Object.fromEntries(e.A.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),o=Object.fromEntries(Object.keys(d.xq).map(a=>[a,n[a]||a]));function p(a){let b=o[a]||a;return f.vq[b]||[]}function q(a,b){return(0,g.g5)(f.vq[a]?.find(a=>a.id===b))}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},81329:(a,b,c)=>{"use strict";c.d(b,{CP:()=>f,Xg:()=>d.Xg,eh:()=>e,vq:()=>d.PROVIDER_MODELS});var d=c(45699);Object.entries(c(40615).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.PROVIDER_MODELS).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),f=(a,b=null)=>a?.kind||a?.type||b},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2280,6070],()=>b(b.s=37033));module.exports=c})();
1
+ (()=>{var a={};a.id=1860,a.ids=[615,1860,5699],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},21820:a=>{"use strict";a.exports=require("os")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},35024:(a,b,c)=>{"use strict";c.d(b,{Ak:()=>e,Yg:()=>h,sr:()=>d.sr,xq:()=>d.xq});var d=c(26070);function e(a){return(a?.providerSpecificData?.baseUrl?.trim()||"http://localhost:11434").replace(/\/$/,"")}let f=d.xq["xiaomi-tokenplan"]?.regions||{},g=d.xq["xiaomi-tokenplan"]?.defaultRegion;function h(a){return f[a?.providerSpecificData?.region]||f[g]}},40615:(a,b,c)=>{"use strict";c.d(b,{AI_PROVIDERS:()=>s,js:()=>w,DI:()=>n,fg:()=>k,Pd:()=>o,IS:()=>h,nJ:()=>i,zN:()=>j,JH:()=>m,jO:()=>y,wb:()=>x,br:()=>l,wG:()=>v,zt:()=>t,gb:()=>q,gC:()=>r,mq:()=>p,rs:()=>u});var d=c(94485);let e="⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";Object.fromEntries(d.A.filter(a=>a.display).map(a=>{let b;return[a.id,"RISK_NOTICE"===(b=a.display).deprecationNotice?{...b,deprecationNotice:e}:b]}));let f=["serviceKinds","ttsConfig","sttConfig","embeddingConfig","imageConfig","imageToTextConfig","videoConfig","musicConfig","searchViaChat","searchConfig","fetchConfig","modelsFetcher","mediaPriority","hiddenKinds"],g=a=>Object.fromEntries(d.A.filter(b=>b.category===a).map(a=>[a.id,function(a){let b={};for(let c of(a.media&&Object.assign(b,a.media),f))void 0!==a[c]&&(b[c]=a[c]);let c={...a.display||{}};return"RISK_NOTICE"===c.deprecationNotice&&(c.deprecationNotice=e),{...c,id:a.id,alias:a.uiAlias||a.alias,...a.hidden?{hidden:!0}:{},...b,...void 0!==a.priority?{priority:a.priority}:{},...a.hasFree?{hasFree:!0}:{},...a.thinkingConfig?{thinkingConfig:a.thinkingConfig}:{},...a.regions?{regions:a.regions,defaultRegion:a.defaultRegion}:{},...a.hasProviderSpecificData?{hasProviderSpecificData:!0}:{},...a.noAuth?{noAuth:!0}:{},...a.passthroughModels?{passthroughModels:!0}:{},...a.hasOAuth?{hasOAuth:!0}:{},...a.authModes?{authModes:a.authModes}:{},...a.authType?{authType:a.authType}:{},...a.authHint?{authHint:a.authHint}:{}}}(a)])),h=g("free"),i=g("freeTier"),j=g("oauth"),k=g("apikey"),l=g("webCookie"),m="openai-compatible-",n="anthropic-compatible-",o="custom-embedding-";function p(a){return"string"==typeof a&&a.startsWith(m)}function q(a){return"string"==typeof a&&a.startsWith(n)}function r(a){return"string"==typeof a&&a.startsWith(o)}let s={...h,...i,...j,...k,...l};function t(a){for(let b of Object.values(s))if(b.alias===a||b.id===a)return b;return null}function u(a){let b=t(a);return b?.id||a}function v(a){let b=s[a];return b?.alias||a}let w=Object.values(s).reduce((a,b)=>(a[b.alias]=b.id,a),{});Object.values(s).reduce((a,b)=>(a[b.id]=b.alias,a),{});let x=d.A.filter(a=>a.features?.usage).map(a=>a.id),y=d.A.filter(a=>a.features?.usageApikey).map(a=>a.id)},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45699:(a,b,c)=>{"use strict";c.d(b,{Xg:()=>o,PROVIDER_MODELS:()=>f.vq,fZ:()=>j,cY:()=>q,ux:()=>k,OA:()=>l,kt:()=>m,KC:()=>p,SM:()=>i});var d=c(35024),e=c(94485),f=c(26070),g=c(99511);let h="-review";function i(a){return f.vq[a]||[]}function j(a){let b=f.vq[a];return b?.[0]?.id||null}function k(a,b){let c=f.vq[a];return c?(0,g.gr)(c.find(a=>a.id===b)):null}function l(a,b){let c=f.vq[a];if(!c)return null;let d=c.find(a=>a.id===b);return d?.kind||d?.type||null}function m(a,b){let c=f.vq[a],d=c?.find(a=>a.id===b);return d?.upstreamModelId?d.upstreamModelId:"cx"===a&&"string"==typeof b&&b.endsWith(h)?b.slice(0,-h.length):b}let n=Object.fromEntries(e.A.filter(a=>a.alias&&a.alias!==a.id).map(a=>[a.id,a.alias])),o=Object.fromEntries(Object.keys(d.xq).map(a=>[a,n[a]||a]));function p(a){let b=o[a]||a;return f.vq[b]||[]}function q(a,b){return(0,g.g5)(f.vq[a]?.find(a=>a.id===b))}},58318:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>D,patchFetch:()=>C,routeModule:()=>y,serverHooks:()=>B,workAsyncStorage:()=>z,workUnitAsyncStorage:()=>A});var d={};c.r(d),c.d(d,{GET:()=>x,OPTIONS:()=>w});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(81329);async function w(){return new Response(null,{headers:{"Access-Control-Allow-Origin":"*","Access-Control-Allow-Methods":"GET, OPTIONS","Access-Control-Allow-Headers":"*"}})}async function x(){try{let b=[],c=new Set;function a({name:d,displayName:e,description:f,methods:g=["generateContent"]}){c.has(d)||(c.add(d),b.push({name:d,displayName:e,description:f,supportedGenerationMethods:g,inputTokenLimit:128e3,outputTokenLimit:8192}))}for(let[b,c]of Object.entries(v.vq))for(let d of c)a({name:`models/${b}/${d.id}`,displayName:d.name||d.id,description:`${b} model: ${d.name||d.id}`}),"gemini"===b&&a({name:`models/${d.id}`,displayName:d.name||d.id,description:`Gemini model: ${d.name||d.id}`,methods:["generateContent","streamGenerateContent"]});return Response.json({models:b})}catch(a){return console.log("Error fetching models:",a),Response.json({error:{message:a.message}},{status:500})}}let y=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/v1beta/models/route",pathname:"/api/v1beta/models",filename:"route",bundlePath:"app/api/v1beta/models/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"C:\\Users\\Administrator\\Desktop\\Projects\\ExtremeRouter\\src\\app\\api\\v1beta\\models\\route.js",nextConfigOutput:"standalone",userland:d,...{}}),{workAsyncStorage:z,workUnitAsyncStorage:A,serverHooks:B}=y;function C(){return(0,g.patchFetch)({workAsyncStorage:z,workUnitAsyncStorage:A})}async function D(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),y.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/v1beta/models/route";"/index"===d&&(d="/");let e=await y.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||y.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===y.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await y.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>y.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>y.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await y.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await y.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await y.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},81329:(a,b,c)=>{"use strict";c.d(b,{CP:()=>f,Xg:()=>d.Xg,eh:()=>e,vq:()=>d.PROVIDER_MODELS});var d=c(45699);Object.entries(c(40615).AI_PROVIDERS).filter(([,a])=>a.passthroughModels).map(([a])=>a);let e=Object.entries(d.PROVIDER_MODELS).flatMap(([a,b])=>b.map(b=>({provider:a,model:b.id,name:b.name}))),f=(a,b=null)=>a?.kind||a?.type||b},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,4485,6070],()=>b(b.s=58318));module.exports=c})();