@techysy/10router 1.5.1 → 1.6.0

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 (662) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +6 -6
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +18 -18
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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/experimental/page.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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/pxpipe/page.js +1 -1
  60. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  62. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  63. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  65. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  66. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  68. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  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 +1 -1
  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 +1 -1
  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.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  79. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  80. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  81. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  82. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  83. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  84. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  85. package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  87. package/app/.next-cli-build/server/app/_not-found.html +2 -2
  88. package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
  89. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
  90. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
  91. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  92. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  93. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  96. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  98. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  100. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  102. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  104. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  106. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  108. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
  109. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/auth/saml/test/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/auth/verify-password/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
  125. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
  126. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +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 +1 -1
  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.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/external-quota/[source]/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/external-quota/[source]/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/gateway-probe/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  163. package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/keys/rotate/route.js.nft.json +1 -1
  165. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  167. package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
  168. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  169. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  170. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  172. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  174. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  176. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  178. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
  180. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  181. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  182. package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  184. package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
  185. package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
  186. package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
  187. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  188. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  189. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  190. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  191. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  192. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  193. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  195. package/app/.next-cli-build/server/app/api/network/egress-region/route.js.nft.json +1 -1
  196. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  198. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
  200. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
  201. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/claim-compensation/route.js.nft.json +1 -1
  202. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
  203. package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -1
  204. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
  206. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  208. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  209. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  211. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  213. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  215. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
  217. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
  218. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  220. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
  222. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
  224. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  226. package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js.nft.json +1 -1
  227. package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
  228. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
  230. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js.nft.json +1 -1
  232. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
  234. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
  236. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -1
  237. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -1
  238. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
  239. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
  241. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  243. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  245. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  247. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
  249. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  251. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  253. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  255. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  257. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  258. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  259. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
  260. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  261. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  262. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
  263. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  264. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  265. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  266. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  267. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  268. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  269. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  270. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  271. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
  272. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  273. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +1 -1
  274. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  275. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  276. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  277. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +1 -1
  278. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  279. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
  280. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
  281. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
  282. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
  283. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +1 -1
  284. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
  285. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
  286. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +1 -1
  287. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
  288. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
  289. package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
  290. package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
  291. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
  292. package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
  293. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  294. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  295. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
  296. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  297. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  298. package/app/.next-cli-build/server/app/api/settings/route.js +2 -2
  299. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  300. package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
  301. package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
  302. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  303. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
  304. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  305. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
  306. package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
  307. package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
  308. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  309. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  310. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  311. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  312. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  313. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  314. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  315. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  316. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  317. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  318. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  319. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  320. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  321. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  322. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  323. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  324. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  325. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  326. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  327. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
  328. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  329. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
  330. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  331. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  332. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  333. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  334. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
  335. package/app/.next-cli-build/server/app/api/usage/dashboard/route.js.nft.json +1 -1
  336. package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
  337. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  338. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  339. package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
  340. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  341. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  342. package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -1
  343. package/app/.next-cli-build/server/app/api/usage/quotas/route.js.nft.json +1 -1
  344. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  345. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  346. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  347. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  348. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  349. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  350. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  351. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  352. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  353. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  354. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  355. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  356. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  357. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  358. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  359. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
  360. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  361. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  362. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  363. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  364. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
  365. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  366. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
  367. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  368. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  369. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
  370. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  371. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  372. package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
  373. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  374. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  375. package/app/.next-cli-build/server/app/api/v1/rerank/route.js +1 -1
  376. package/app/.next-cli-build/server/app/api/v1/rerank/route.js.nft.json +1 -1
  377. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  378. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  379. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  380. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  381. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  382. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  383. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  384. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  385. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  386. package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
  387. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  388. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
  389. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  390. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
  391. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  392. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
  393. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  394. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
  395. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  396. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  397. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  398. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  399. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  400. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  401. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  402. package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
  403. package/app/.next-cli-build/server/app/api/version/shell-update/route.js.nft.json +1 -1
  404. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  405. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  406. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  407. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  408. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  409. package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
  410. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  411. package/app/.next-cli-build/server/app/callback.html +2 -2
  412. package/app/.next-cli-build/server/app/callback.rsc +6 -6
  413. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
  414. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  415. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
  416. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
  417. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
  418. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
  419. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
  420. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  421. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
  422. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
  423. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
  424. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
  425. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  426. package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
  427. package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
  428. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
  429. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
  430. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  431. package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
  432. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
  433. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
  434. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
  435. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  436. package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
  437. package/app/.next-cli-build/server/app/dashboard/experimental.rsc +8 -8
  438. package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +8 -8
  439. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +8 -8
  440. package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
  441. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
  442. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
  443. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
  444. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
  445. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  446. package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
  447. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
  448. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
  449. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
  450. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  451. package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
  452. package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
  453. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
  454. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
  455. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  456. package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
  457. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
  458. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
  459. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
  460. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  461. package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
  462. package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
  463. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
  464. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
  465. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  466. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
  467. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
  468. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
  469. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
  470. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  471. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
  472. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
  473. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +8 -8
  474. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
  475. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  476. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  477. package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
  478. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
  479. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
  480. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  481. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  482. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
  483. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  484. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +2 -2
  485. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
  486. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
  487. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  488. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
  489. package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
  490. package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
  491. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
  492. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
  493. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  494. package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
  495. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
  496. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +8 -8
  497. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
  498. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  499. package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
  500. package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
  501. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
  502. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
  503. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  504. package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
  505. package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
  506. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
  507. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
  508. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  509. package/app/.next-cli-build/server/app/dashboard.html +2 -2
  510. package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
  511. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
  512. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
  513. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  514. package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
  515. package/app/.next-cli-build/server/app/index.html +1 -1
  516. package/app/.next-cli-build/server/app/index.rsc +6 -6
  517. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
  518. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
  519. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  520. package/app/.next-cli-build/server/app/landing/page.js +1 -1
  521. package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
  522. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  523. package/app/.next-cli-build/server/app/landing.html +2 -2
  524. package/app/.next-cli-build/server/app/landing.rsc +7 -7
  525. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +7 -7
  526. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  527. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +7 -7
  528. package/app/.next-cli-build/server/app/login/page.js +1 -1
  529. package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
  530. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  531. package/app/.next-cli-build/server/app/login.html +2 -2
  532. package/app/.next-cli-build/server/app/login.rsc +7 -7
  533. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
  534. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  535. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
  536. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  537. package/app/.next-cli-build/server/app/page.js +1 -1
  538. package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
  539. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  540. package/app/.next-cli-build/server/app-paths-manifest.json +6 -6
  541. package/app/.next-cli-build/server/chunks/1329.js +1 -1
  542. package/app/.next-cli-build/server/chunks/1806.js +1 -1
  543. package/app/.next-cli-build/server/chunks/{9417.js → 1819.js} +2 -2
  544. package/app/.next-cli-build/server/chunks/1884.js +1 -1
  545. package/app/.next-cli-build/server/chunks/2132.js +1 -1
  546. package/app/.next-cli-build/server/chunks/2154.js +1 -0
  547. package/app/.next-cli-build/server/chunks/2557.js +4 -4
  548. package/app/.next-cli-build/server/chunks/2812.js +1 -1
  549. package/app/.next-cli-build/server/chunks/318.js +10 -8
  550. package/app/.next-cli-build/server/chunks/3217.js +1 -0
  551. package/app/.next-cli-build/server/chunks/3267.js +1 -0
  552. package/app/.next-cli-build/server/chunks/3500.js +2 -2
  553. package/app/.next-cli-build/server/chunks/3535.js +1 -1
  554. package/app/.next-cli-build/server/chunks/3792.js +1 -1
  555. package/app/.next-cli-build/server/chunks/3943.js +1 -1
  556. package/app/.next-cli-build/server/chunks/3962.js +1 -1
  557. package/app/.next-cli-build/server/chunks/4123.js +1 -1
  558. package/app/.next-cli-build/server/chunks/4386.js +1 -0
  559. package/app/.next-cli-build/server/chunks/447.js +1 -0
  560. package/app/.next-cli-build/server/chunks/4575.js +1 -1
  561. package/app/.next-cli-build/server/chunks/4692.js +1 -1
  562. package/app/.next-cli-build/server/chunks/4775.js +1 -1
  563. package/app/.next-cli-build/server/chunks/{2112.js → 4906.js} +1 -1
  564. package/app/.next-cli-build/server/chunks/4927.js +4 -4
  565. package/app/.next-cli-build/server/chunks/5210.js +15 -13
  566. package/app/.next-cli-build/server/chunks/539.js +1 -1
  567. package/app/.next-cli-build/server/chunks/5598.js +1 -0
  568. package/app/.next-cli-build/server/chunks/5615.js +1 -1
  569. package/app/.next-cli-build/server/chunks/5625.js +1 -0
  570. package/app/.next-cli-build/server/chunks/5663.js +1 -0
  571. package/app/.next-cli-build/server/chunks/5757.js +1 -1
  572. package/app/.next-cli-build/server/chunks/5781.js +1 -1
  573. package/app/.next-cli-build/server/chunks/6070.js +1 -1
  574. package/app/.next-cli-build/server/chunks/615.js +1 -1
  575. package/app/.next-cli-build/server/chunks/6306.js +1 -1
  576. package/app/.next-cli-build/server/chunks/6326.js +1 -1
  577. package/app/.next-cli-build/server/chunks/6492.js +1 -1
  578. package/app/.next-cli-build/server/chunks/6763.js +1 -1
  579. package/app/.next-cli-build/server/chunks/6790.js +1 -1
  580. package/app/.next-cli-build/server/chunks/6877.js +1 -1
  581. package/app/.next-cli-build/server/chunks/6922.js +1 -1
  582. package/app/.next-cli-build/server/chunks/6956.js +1 -1
  583. package/app/.next-cli-build/server/chunks/6960.js +2 -2
  584. package/app/.next-cli-build/server/chunks/7067.js +1 -1
  585. package/app/.next-cli-build/server/chunks/7122.js +1 -1
  586. package/app/.next-cli-build/server/chunks/7247.js +1 -1
  587. package/app/.next-cli-build/server/chunks/7274.js +4 -4
  588. package/app/.next-cli-build/server/chunks/7322.js +2 -2
  589. package/app/.next-cli-build/server/chunks/7729.js +1 -0
  590. package/app/.next-cli-build/server/chunks/8145.js +1 -1
  591. package/app/.next-cli-build/server/chunks/8172.js +2 -2
  592. package/app/.next-cli-build/server/chunks/8318.js +1 -1
  593. package/app/.next-cli-build/server/chunks/8370.js +2 -2
  594. package/app/.next-cli-build/server/chunks/8499.js +3 -3
  595. package/app/.next-cli-build/server/chunks/8595.js +1 -1
  596. package/app/.next-cli-build/server/chunks/8689.js +1 -1
  597. package/app/.next-cli-build/server/chunks/8749.js +1 -1
  598. package/app/.next-cli-build/server/chunks/8775.js +1 -1
  599. package/app/.next-cli-build/server/chunks/8895.js +8 -8
  600. package/app/.next-cli-build/server/chunks/8920.js +1 -1
  601. package/app/.next-cli-build/server/chunks/9046.js +1 -1
  602. package/app/.next-cli-build/server/chunks/9154.js +1 -1
  603. package/app/.next-cli-build/server/chunks/9489.js +3 -2
  604. package/app/.next-cli-build/server/chunks/9601.js +1 -1
  605. package/app/.next-cli-build/server/chunks/9609.js +1 -1
  606. package/app/.next-cli-build/server/chunks/9628.js +1 -1
  607. package/app/.next-cli-build/server/chunks/976.js +1 -1
  608. package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
  609. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  610. package/app/.next-cli-build/server/middleware.js +5 -5
  611. package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
  612. package/app/.next-cli-build/server/pages/404.html +2 -2
  613. package/app/.next-cli-build/server/pages/500.html +1 -1
  614. package/app/.next-cli-build/static/chunks/1243-72ef45af27dc7a4a.js +3 -0
  615. package/app/.next-cli-build/static/chunks/1321-77ba328dd4d69fdb.js +1 -0
  616. package/app/.next-cli-build/static/chunks/5497-ec8a6308121a2b70.js +7 -0
  617. package/app/.next-cli-build/static/chunks/{9749-80768075d38162d1.js → 9749-1f31c98804847f2a.js} +8 -8
  618. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-8f6aadfc8bf2eb7b.js +1 -0
  619. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/{page-7ee730e7a1ddb6e5.js → page-01bf0e3f4117f6c1.js} +1 -1
  620. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-bce04d7851a6bf65.js → page-6db03f8140121a40.js} +10 -10
  621. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/profile/{page-7c9d46f8c09d480e.js → page-73d4979c8eec774c.js} +1 -1
  622. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-a6b07fa9d0712cee.js +14 -0
  623. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/{page-ceb259d31ded818a.js → page-1e4e3f6f20152da1.js} +1 -1
  624. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c77260f73f62aa0e.js +1 -0
  625. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-db46cbc3bf22d61a.js +1 -0
  626. package/app/.next-cli-build/static/chunks/app/landing/page-c6c3a32dd06bc907.js +1 -0
  627. package/app/.next-cli-build/static/css/17275fac82e1641e.css +1 -0
  628. package/app/package.json +71 -71
  629. package/app/public/donate/alipay.svg +1 -0
  630. package/app/public/donate/ifdian.svg +1 -0
  631. package/app/public/donate/wechat.svg +1 -0
  632. package/app/public/i18n/changelog/en.md +513 -477
  633. package/app/public/i18n/changelog/zh-CN.md +511 -475
  634. package/app/public/i18n/changelog/zh-TW.md +513 -477
  635. package/app/public/i18n/literals/zh-CN.json +2107 -2063
  636. package/app/public/i18n/literals/zh-TW.json +951 -907
  637. package/app/public/providers/alitp-intl.png +0 -0
  638. package/app/public/providers/alitp.png +0 -0
  639. package/app/public/providers/inception.png +0 -0
  640. package/app/src/mitm/server.js +12 -12
  641. package/app/src/shared/services/quotaAutoPing.js +345 -313
  642. package/app/src/sse/services/codebuddyCheckin.js +687 -890
  643. package/app/src/sse/services/minimaxCheckin.js +340 -0
  644. package/package.json +61 -61
  645. package/app/.next-cli-build/server/chunks/3599.js +0 -1
  646. package/app/.next-cli-build/server/chunks/6593.js +0 -1
  647. package/app/.next-cli-build/server/chunks/7070.js +0 -1
  648. package/app/.next-cli-build/server/chunks/7252.js +0 -1
  649. package/app/.next-cli-build/server/chunks/8672.js +0 -1
  650. package/app/.next-cli-build/server/chunks/8972.js +0 -1
  651. package/app/.next-cli-build/server/chunks/939.js +0 -1
  652. package/app/.next-cli-build/static/chunks/1243-acdc1dcbfcd9336d.js +0 -3
  653. package/app/.next-cli-build/static/chunks/1321-f4736e33b06bb9d6.js +0 -1
  654. package/app/.next-cli-build/static/chunks/5497-f54b1274c2141bf0.js +0 -7
  655. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/combos/page-14745e08d1edafb2.js +0 -1
  656. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-244e20b305c911c6.js +0 -14
  657. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-c70550b49f94cbc4.js +0 -1
  658. package/app/.next-cli-build/static/chunks/app/(dashboard)/layout-cefb3cbfe469dd51.js +0 -1
  659. package/app/.next-cli-build/static/chunks/app/landing/page-38924391f8649361.js +0 -1
  660. package/app/.next-cli-build/static/css/cd8cdc4426ba0a3b.css +0 -1
  661. /package/app/.next-cli-build/static/{4BxfiRlz5UJXZcUl6uinS → 1q0xTGDYtD52dGw4uiY4-}/_buildManifest.js +0 -0
  662. /package/app/.next-cli-build/static/{4BxfiRlz5UJXZcUl6uinS → 1q0xTGDYtD52dGw4uiY4-}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3826],{26048:(e,t,r)=>{Promise.resolve().then(r.bind(r,33769)),Promise.resolve().then(r.bind(r,25086))},33769:(e,t,r)=>{"use strict";r.d(t,{default:()=>eS});var a=r(95155),n=r(12115),i=r(73321),s=r(67852),l=r(66996),o=r(14051),c=r.n(o),d=r(75480),u=r(73006),m=r(31474),x=r(45564),p=r(67352);let h="quotaCacheData",b="quotaAutoRefresh",g=[10,20,50,100],f=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],y=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function w(e){let t=e.name?.trim(),r=e.email?.trim(),a=e.displayName?.trim();return t&&t!==r?t:"qoder"===e.provider||"qoder-cn"===e.provider?a||t||r||null:t||r||a||null}function v(e,t){let r=t?.[e.id]?.quotas;if(!r?.length)return!1;let a=r.filter(e=>!0!==e.unlimited);return 0!==a.length&&a.every(e=>{if(!0===e.recurring&&e.resetAt&&Date.parse(e.resetAt)>Date.now())return!1;let t=e.total||0;return t<=0||(e.used||0)>=t})}function j(e,t){let r=t[e.id]?.quotas?.[0];return r&&"number"==typeof r.remaining?r.remaining:1/0}function k(e,t){let r=new Set(t.map(e=>e.id));return Object.fromEntries(Object.entries(e).filter(([e])=>r.has(e)))}function N({start:e,end:t,total:r}){return r>0?`Showing ${e}-${t} of ${r}`:"Showing 0 of 0"}async function C(e,t){return await e(t)}function S(e,t){return t&&0!==t?!e||e<0?100:e>=t?0:Math.round((t-e)/t*100):0}function A(e){return e&&"object"==typeof e?String(e.modelKey||e.name||"").trim():""}function T(e,t,r,a=[]){let n=null,i=t?.[e]?.hidden;if(Array.isArray(i))n=i.map(String);else if(r&&r!==e){let e=t?.[r]?.hidden;Array.isArray(e)&&(n=e.map(String))}return n?new Set(Array.isArray(a)&&a.length>0?function(e=[],t=[]){if(!Array.isArray(e)||0===e.length)return[];let r=new Set(t.map(A).filter(Boolean));return[...new Set(e.map(e=>String(e).trim()).filter(e=>r.has(e)))]}(n,a):n):new Set}let q="flex h-8 shrink-0 items-center gap-1.5 rounded-lg border border-black/10 bg-surface px-2.5 text-xs text-text transition-colors hover:bg-black/[0.04] disabled:opacity-50 dark:border-white/10 dark:hover:bg-white/[0.06]",$="border-primary/30 bg-primary/10 text-primary hover:bg-primary/15",P="material-symbols-outlined text-[16px] leading-none",D={all:"apps",active:"check_circle",inactive:"block"};function M({provider:e,size:t=16}){return"all"===e?(0,a.jsx)("span",{className:(0,m.cn)(P,"text-text-muted"),children:"apps"}):(0,a.jsx)(s.A,{src:`/providers/${e}.png`,alt:e,size:t,className:"rounded object-contain",fallbackText:e.slice(0,2).toUpperCase()})}function E({view:e="cards",onViewChange:t,providerFilter:r,providerOptions:i,providerLabel:s,onProviderChange:l,accountFilter:o,onAccountChange:c,showCodexSort:x,quotaSortMode:p,onQuotaSortChange:h,expiringFirst:b,onToggleExpiringFirst:g,onDisableDepleted:w,onEnableAvailable:v,bulkToggling:j,autoRefresh:k,onToggleAutoRefresh:N,countdown:C,refreshingAll:S,onRefreshAll:A,accountCount:T,onOpenPreferences:O}){let[R,F]=(0,n.useState)(!1),[I,_]=(0,n.useState)(!1),z="cards"===e;return(0,a.jsxs)("div",{className:"@container flex flex-wrap items-center gap-2",children:[t&&(0,a.jsx)("div",{role:"tablist","aria-label":(0,u.Tl)("View"),className:"flex h-8 items-center rounded-lg border border-black/10 bg-surface p-0.5 dark:border-white/10",children:[{value:"cards",icon:"grid_view",label:(0,u.Tl)("Cards")},{value:"windows",icon:"date_range",label:(0,u.Tl)("Quota windows")}].map(r=>(0,a.jsxs)("button",{type:"button",role:"tab","aria-selected":e===r.value,"aria-label":r.label,onClick:()=>t(r.value),className:(0,m.cn)("flex h-full items-center gap-1 rounded-md px-2.5 text-xs transition-colors",e===r.value?"bg-primary/10 font-medium text-primary":"text-text-muted hover:text-text"),children:[(0,a.jsx)("span",{className:(0,m.cn)(P,"text-[15px]"),children:r.icon}),(0,a.jsx)("span",{className:"hidden @min-[900px]:inline",children:r.label})]},r.value))}),(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-2 @max-[640px]:order-last @max-[640px]:w-full",children:[(0,a.jsxs)("div",{className:"relative min-w-0",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>F(e=>!e),className:(0,m.cn)(q,"all"!==r&&$),"aria-haspopup":"menu","aria-expanded":R,title:(0,u.Tl)("Filter quota providers"),children:[(0,a.jsx)(M,{provider:r}),(0,a.jsx)("span",{className:"max-w-[9rem] truncate capitalize @max-[640px]:max-w-[5rem]",children:s}),(0,a.jsx)("span",{className:(0,m.cn)(P,"text-[14px] text-text-muted"),children:"expand_more"})]}),(0,a.jsxs)(d.Popover,{open:R,onClose:()=>F(!1),className:"w-64",children:[(0,a.jsx)(d.MenuItem,{selected:"all"===r,icon:(0,a.jsx)(M,{provider:"all",size:18}),onClick:()=>{l("all"),F(!1)},children:(0,u.Tl)("All providers")}),(0,a.jsx)("div",{className:"my-1 h-px bg-black/5 dark:bg-white/10"}),(0,a.jsx)("div",{className:"max-h-72 overflow-y-auto",children:i.map(e=>(0,a.jsx)(d.MenuItem,{selected:r===e,icon:(0,a.jsx)(M,{provider:e,size:18}),onClick:()=>{l(e),F(!1)},children:(0,a.jsx)("span",{className:"capitalize",children:e})},e))})]})]}),(0,a.jsx)("div",{role:"radiogroup","aria-label":(0,u.Tl)("Filter accounts by status"),className:"flex h-8 shrink-0 items-center rounded-lg border border-black/10 bg-surface p-0.5 dark:border-white/10",children:f.map(e=>{let t=o===e.value;return(0,a.jsxs)("button",{type:"button",role:"radio","aria-checked":t,"aria-label":(0,u.Tl)(e.label),onClick:()=>c(e.value),className:(0,m.cn)("flex h-full items-center gap-1 rounded-md px-2.5 text-xs transition-colors @max-[640px]:px-2",t?"bg-primary/10 font-medium text-primary":"text-text-muted hover:text-text"),children:[(0,a.jsx)("span",{className:(0,m.cn)(P,"hidden text-[14px] @max-[640px]:inline"),children:D[e.value]}),(0,a.jsx)("span",{className:"@max-[640px]:hidden",children:(0,u.Tl)(e.label)})]},e.value)})}),z&&(0,a.jsx)("button",{type:"button",onClick:g,"aria-pressed":b,className:(0,m.cn)(q,"w-8 justify-center px-0",b&&$),title:(0,u.Tl)("Sort accounts by earliest reset or expiry time"),"aria-label":(0,u.Tl)("Resets first"),children:(0,a.jsx)("span",{className:P,children:"hourglass_top"})}),z&&x&&(0,a.jsx)("select",{value:p,onChange:e=>h(e.target.value),className:(0,m.cn)(q,"pr-1 outline-none"),"aria-label":(0,u.Tl)("Sort Codex quotas by remaining"),children:y.map(e=>(0,a.jsx)("option",{value:e.value,children:(0,u.Tl)(e.label)},e.value))})]}),(0,a.jsxs)("div",{className:"ml-auto flex items-center gap-2 @max-[640px]:order-2",children:[z&&Number.isFinite(T)&&(0,a.jsx)("span",{className:"hidden text-xs tabular-nums text-text-muted @min-[1130px]:inline",children:(0,u.Tl)("{count} accounts").replace("{count}",String(T))}),z&&(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>_(e=>!e),disabled:j,className:q,"aria-haspopup":"menu","aria-expanded":I,title:(0,u.Tl)("Bulk actions"),"aria-label":(0,u.Tl)("Bulk actions"),children:[(0,a.jsx)("span",{className:P,children:j?"progress_activity":"checklist"}),(0,a.jsx)("span",{className:"hidden @min-[1060px]:inline",children:(0,u.Tl)("Bulk actions")}),(0,a.jsx)("span",{className:(0,m.cn)(P,"text-[14px] text-text-muted"),children:"expand_more"})]}),(0,a.jsxs)(d.Popover,{open:I,onClose:()=>_(!1),align:"right",className:"w-72",children:[(0,a.jsx)(d.MenuItem,{disabled:j,icon:(0,a.jsx)("span",{className:(0,m.cn)(P,"mt-px text-red-500"),children:"block"}),hint:(0,u.Tl)("Disable connections with depleted quota on the current page"),onClick:()=>{_(!1),w()},children:(0,u.Tl)("Turn off Empty")}),(0,a.jsx)(d.MenuItem,{disabled:j,icon:(0,a.jsx)("span",{className:(0,m.cn)(P,"mt-px text-emerald-500"),children:"check_circle"}),hint:(0,u.Tl)("Enable connections that still have quota on the current page"),onClick:()=>{_(!1),v()},children:(0,u.Tl)("Turn on Available")})]})]}),z&&(0,a.jsxs)("button",{type:"button",role:"switch","aria-checked":k,onClick:N,className:q,title:(0,u.Tl)(k?"Disable auto-refresh":"Enable auto-refresh"),children:[(0,a.jsx)("span",{"aria-hidden":"true",className:(0,m.cn)("relative h-4 w-7 rounded-full transition-colors",k?"bg-primary":"bg-black/15 dark:bg-white/20"),children:(0,a.jsx)("span",{className:(0,m.cn)("absolute top-0.5 size-3 rounded-full bg-white shadow transition-[left]",k?"left-[14px]":"left-0.5")})}),(0,a.jsx)("span",{className:"hidden @min-[980px]:inline",children:(0,u.Tl)("Auto-refresh")}),k&&(0,a.jsxs)("span",{className:"w-6 text-right text-[11px] tabular-nums text-text-muted",children:[C,"s"]})]}),(0,a.jsx)("button",{type:"button",onClick:A,disabled:S,className:(0,m.cn)(q,"w-8 justify-center px-0"),title:(0,u.Tl)("Refresh all"),"aria-label":(0,u.Tl)("Refresh all"),children:(0,a.jsx)("span",{className:(0,m.cn)(P,S&&"animate-spin"),children:"refresh"})}),O&&(0,a.jsx)("button",{type:"button",onClick:O,className:(0,m.cn)(q,"w-8 justify-center px-0"),title:(0,u.Tl)("Card display preferences"),"aria-label":(0,u.Tl)("Card display preferences"),children:(0,a.jsx)("span",{className:P,children:"tune"})})]})]})}M.propTypes={provider:c().string.isRequired,size:c().number},E.propTypes={view:c().oneOf(["cards","windows"]),onViewChange:c().func,providerFilter:c().string.isRequired,providerOptions:c().arrayOf(c().string).isRequired,providerLabel:c().node,onProviderChange:c().func.isRequired,accountFilter:c().string.isRequired,onAccountChange:c().func.isRequired,showCodexSort:c().bool,quotaSortMode:c().string,onQuotaSortChange:c().func,expiringFirst:c().bool,onToggleExpiringFirst:c().func.isRequired,onDisableDepleted:c().func.isRequired,onEnableAvailable:c().func.isRequired,bulkToggling:c().bool,autoRefresh:c().bool,onToggleAutoRefresh:c().func.isRequired,countdown:c().number,refreshingAll:c().bool,onRefreshAll:c().func.isRequired,accountCount:c().number,onOpenPreferences:c().func};var O=r(98500),R=r.n(O),F=r(84588),I=r(35655),_=r(75958);let z=[{re:/5h|five[\s_-]?hour|session|rolling|滚动|5\s*小时/i,ms:18e6,key:"5h"},{re:/daily|\bday\b|24h|每日|每天/i,ms:864e5,key:"day"},{re:/week|7d|周/i,ms:6048e5,key:"week"},{re:/month|月/i,ms:null,key:"month"}];function L(e,t){let r=new Date(e),a=r.getDate();r.setDate(1),r.setMonth(r.getMonth()+t);let n=new Date(r.getFullYear(),r.getMonth()+1,0).getDate();return r.setDate(Math.min(a,n)),r.getTime()}let H={week:{kinds:["day","week","month"],spanMs:12096e5,stepMs:6048e5,tickMs:864e5},hours:{kinds:["5h"],spanMs:864e5,stepMs:864e5,tickMs:36e5}},U="quotaWindowsCache",B="w-[220px] shrink-0",J=e=>String(e).padStart(2,"0"),W=e=>{let t=new Date(e);return`${J(t.getMonth()+1)}/${J(t.getDate())}`},Q=e=>{let t=new Date(e);return`${J(t.getHours())}:${J(t.getMinutes())}`};function K(e){let t=(0,p.TM)(e);return t?(0,u.Tl)(t.family):(0,_.M)(e)}function V({value:e,options:t,onChange:r}){return(0,a.jsx)("div",{className:"flex h-8 items-center rounded-lg border border-black/10 bg-surface p-0.5 dark:border-white/10",children:t.map(t=>(0,a.jsx)("button",{type:"button",onClick:()=>r(t.value),"aria-pressed":e===t.value,className:(0,m.cn)("h-full rounded-md px-2.5 text-xs transition-colors",e===t.value?"bg-primary/10 font-medium text-primary":"text-text-muted hover:text-text"),children:t.label},t.value))})}function G({win:e,lane:t,range:r,showLabel:n,view:i}){let s=e=>"hours"===i?Q(e):`${W(e)} ${Q(e)}`,l=r.end-r.start,o=100*Math.max(0,(e.start-r.start)/l),c=Math.max(.5,100*Math.min(1,(e.end-r.start)/l)-o),d=e.start<r.start,x=e.end>r.end,p=(0,m.cn)(!d&&"rounded-l-[4px]",!x&&"rounded-r-[4px]"),h={left:`${o}%`,width:`${c}%`};if(!e.current)return(0,a.jsx)("div",{className:(0,m.cn)("absolute inset-y-0 overflow-hidden border border-dashed border-black/15 dark:border-white/15",p),style:h,title:`${K(t.name)} \xb7 ${W(e.start)} ${Q(e.start)} – ${W(e.end)} ${Q(e.end)}`,children:(0,a.jsx)("span",{className:"absolute inset-y-0 left-1.5 right-1.5 flex items-center truncate text-[10px] tabular-nums text-text-muted/70",children:s(e.start)})});let b=Math.round(t.pct),g=(0,u.Tl)("resets {date}").replace("{date}",s(e.end)),f=`${n?`${K(t.name)} \xb7 `:""}${b}% \xb7 ${g}`;return(0,a.jsxs)("div",{className:(0,m.cn)("absolute inset-y-0 overflow-hidden bg-black/[0.06] dark:bg-white/[0.08]",p),style:h,title:f,children:[(0,a.jsx)("div",{className:"absolute inset-y-0 left-0",style:{width:`${b}%`,opacity:.85,...(0,I.jE)(b)}}),(0,a.jsx)("span",{className:"absolute inset-y-0 left-1.5 right-1.5 flex items-center truncate text-[10px] font-medium tabular-nums text-text",children:f})]})}function Y({providerFilter:e="all",accountFilter:t="all",refreshKey:r=0,showTrackerLink:i=!0}){let[l,o]=(0,n.useState)(null),[c,d]=(0,n.useState)(null),[x,h]=(0,n.useState)(!1),[b,g]=(0,n.useState)("week"),[f,y]=(0,n.useState)(0),[w,v]=(0,n.useState)(null);(0,n.useEffect)(()=>{let e=!1,t=0===r?function(){try{let e=window.localStorage.getItem(U);return e?JSON.parse(e):null}catch{return null}}():null;(async()=>{t?.connections&&o(t.connections),v(Date.now()),h(!0);try{let t=await fetch(`/api/usage/quotas${r>0?"?force=1":""}`,{cache:"no-store"}),n=await t.json();if(!t.ok)throw Error(n?.error||`HTTP ${t.status}`);if(e)return;o(n.connections||[]),d(null);var a=n.connections||[];try{window.localStorage.setItem(U,JSON.stringify({connections:a,at:Date.now()}))}catch{}}catch(t){e||d(t.message||"Failed to load quotas")}finally{e||h(!1)}})();let a=setInterval(()=>v(Date.now()),6e4);return()=>{e=!0,clearInterval(a)}},[r]);let j=(0,n.useMemo)(()=>(l||[]).filter(r=>("all"===e||r.provider===e)&&("active"!==t||!1!==r.isActive)&&("inactive"!==t||!1===r.isActive)),[l,e,t]),k=(0,n.useMemo)(()=>w?function(e,t,r=0){let a,n,i,s=H[e]||H.week,l=("hours"===e?((a=new Date(t-432e5)).setMinutes(0,0,0),a.getTime()):((n=new Date(t)).setHours(0,0,0,0),i=(n.getDay()+6)%7,n.setDate(n.getDate()-i),n.getTime()))+r*s.stepMs;return{start:l,end:l+s.spanMs}}(b,w,f):null,[b,w,f]),N=(0,n.useMemo)(()=>k&&l?function(e=[],{view:t="week",rangeStart:r,rangeEnd:a}={}){let n=(H[t]||H.week).kinds,i=[];for(let t of e||[]){let e=(Array.isArray(t?.quotas)?t.quotas:[]).map(e=>({q:e,kind:function(e){if(e?.giftPack===!0||e?.detailOnly===!0||!(0,p.OG)(e)||!e?.resetAt)return null;let t=String(e?.name||""),r=(0,p.TM)(t)?.window||t;for(let e of z)if(e.re.test(r))return e.key;return null}(e)})).filter(e=>e.kind);if(0===e.length)continue;let s=e.map(({q:e,kind:t})=>({name:e.name,kind:t,pct:Math.round((0,p.pR)(e))})),l=e.filter(({kind:e})=>n.includes(e)).map(({q:e,kind:t})=>({name:e.name,kind:t,pct:(0,p.pR)(e),resetAt:e.resetAt,windows:function(e,t,r,a,n=60){let i=[],s=new Date(e?.resetAt).getTime(),l=function(e,t){let r=new Date(t).getTime();if("month"===e)return L(r,-1);let a=z.find(t=>t.key===e);return a?.ms?r-a.ms:NaN}(t,s);if(!Number.isFinite(s)||!Number.isFinite(l))return i;for(let e=0;e<=n&&l<a;e+=1){s>r&&i.push({start:l,end:s,current:0===e});let a=function(e,t){let r=new Date(t).getTime();if("month"===e)return L(r,1);let a=z.find(t=>t.key===e);return a?.ms?r+a.ms:NaN}(t,s);if(!Number.isFinite(a))break;l=s,s=a}return i}(e,t,r,a)})).filter(e=>e.windows.length>0);i.push({id:t.id,provider:t.provider,label:t.name||t.email||t.providerName||t.provider,providerName:t.providerName||t.provider,isActive:!1!==t.isActive,chips:s,lanes:l})}return i}(j,{view:b,rangeStart:k.start,rangeEnd:k.end}):[],[l,j,b,k]),C=(0,n.useMemo)(()=>{if(!k)return[];let e=H[b].tickMs,t=[];for(let r=k.start;r<k.end;r+=e)t.push(r);return t},[k,b]),S=k&&w>=k.start&&w<k.end?(w-k.start)/(k.end-k.start)*100:null,A=w?new Date(new Date(w).setHours(0,0,0,0)).getTime():null,T=k?"hours"===b?`${W(k.start)} ${Q(k.start)} – ${W(k.end)} ${Q(k.end)}`:`${W(k.start)} – ${W(k.end-864e5)} \xb7 ${(0,u.Tl)("two weeks")}`:"";return(0,a.jsxs)(F.default,{children:[(0,a.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-3",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("h2",{className:"flex items-center gap-2 text-lg font-semibold",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[20px] text-primary",children:"date_range"}),(0,u.Tl)("Quota windows"),x&&(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[14px] text-text-muted","aria-label":(0,u.Tl)("Refreshing"),children:"progress_activity"})]}),(0,a.jsxs)("p",{className:"mt-0.5 text-xs text-text-muted tabular-nums",children:[T,0===f&&T?` \xb7 ${(0,u.Tl)("current")}`:""]})]}),(0,a.jsxs)("div",{className:"flex h-8 items-center rounded-lg border border-black/10 bg-surface dark:border-white/10",children:[(0,a.jsx)("button",{type:"button",onClick:()=>y(e=>e-1),className:"flex h-full w-8 items-center justify-center text-text-muted hover:text-text","aria-label":(0,u.Tl)("Previous"),children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,a.jsx)("button",{type:"button",onClick:()=>y(0),disabled:0===f,className:"h-full border-x border-black/10 px-2.5 text-xs text-text disabled:text-text-muted dark:border-white/10",children:(0,u.Tl)("hours"===b?"current":"Today")}),(0,a.jsx)("button",{type:"button",onClick:()=>y(e=>e+1),className:"flex h-full w-8 items-center justify-center text-text-muted hover:text-text","aria-label":(0,u.Tl)("Next"),children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})})]}),(0,a.jsx)(V,{value:b,onChange:e=>{g(e),y(0)},options:[{value:"week",label:(0,u.Tl)("By week")},{value:"hours",label:(0,u.Tl)("5 hours")}]}),i&&(0,a.jsxs)(R(),{href:"/dashboard/quota",className:"flex h-8 items-center gap-1 rounded-lg px-2 text-xs text-text-muted hover:bg-black/[0.04] hover:text-text dark:hover:bg-white/[0.06]",children:[(0,u.Tl)("Quota Tracker"),(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"arrow_forward"})]})]}),null===l?(0,a.jsx)("div",{className:"py-10 text-center text-xs text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[22px]",children:"progress_activity"})}):0===N.length?(0,a.jsx)("div",{className:"py-8 text-center text-xs text-text-muted",children:c?`${(0,u.Tl)("Failed to load quotas")} \xb7 ${c}`:(0,u.Tl)("No accounts with recurring quota windows")}):(0,a.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,a.jsxs)("div",{className:"min-w-[760px]",children:[(0,a.jsxs)("div",{className:"flex border-b border-black/10 bg-black/[0.015] dark:border-white/10 dark:bg-white/[0.02]",children:[(0,a.jsx)("div",{className:(0,m.cn)(B,"flex items-end px-3 pb-1.5 text-[11px] text-text-muted"),children:(0,u.Tl)("Account")}),(0,a.jsx)("div",{className:"relative flex flex-1",children:C.map((e,t)=>{let r="week"===b&&e===A,n="hours"!==b||new Date(e).getHours()%2==0;return(0,a.jsx)("div",{className:(0,m.cn)("flex-1 border-l border-black/5 px-0.5 py-1.5 text-center dark:border-white/5",0===t&&"border-l-0",r&&"bg-primary/[0.06]"),children:"hours"===b?(0,a.jsx)("div",{className:"text-[10px] tabular-nums text-text-muted",children:n?`${J(new Date(e).getHours())}`:""}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:(0,m.cn)("text-[10px]",r?"text-primary":"text-text-muted"),children:function(e){try{return new Date(e).toLocaleDateString((0,u.kk)()||void 0,{weekday:"short"})}catch{return""}}(e)}),(0,a.jsx)("div",{className:(0,m.cn)("text-[11px] font-medium tabular-nums",r?"text-primary":"text-text"),children:W(e)})]})},e)})})]}),N.map(e=>(0,a.jsxs)("div",{className:(0,m.cn)("flex border-b border-black/5 last:border-b-0 dark:border-white/5",!e.isActive&&"opacity-55"),children:[(0,a.jsxs)("div",{className:(0,m.cn)(B,"space-y-1 px-3 py-2.5"),children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,a.jsx)(s.A,{src:`/providers/${e.provider}.png`,alt:e.provider,size:16,className:"shrink-0 rounded object-contain",fallbackText:String(e.provider||"?").slice(0,2).toUpperCase()}),(0,a.jsx)("span",{className:"truncate text-xs font-medium text-text",title:`${e.providerName} \xb7 ${e.label}`,children:e.label})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1",children:e.chips.map(e=>(0,a.jsxs)("span",{className:"inline-flex max-w-full items-center gap-1 rounded-[3px] bg-black/[0.04] px-1.5 py-px text-[10px] text-text-muted dark:bg-white/[0.06]",title:(0,_.M)(e.name),children:[(0,a.jsx)("span",{className:"size-1.5 shrink-0 rounded-full",style:{background:(0,I.dI)(e.pct)}}),(0,a.jsx)("span",{className:"truncate",children:(0,_.M)(e.name)}),(0,a.jsxs)("b",{className:"font-semibold tabular-nums text-text",children:[e.pct,"%"]})]},e.name))})]}),(0,a.jsxs)("div",{className:"relative flex-1 py-2.5",children:[(0,a.jsx)("div",{className:"pointer-events-none absolute inset-0 flex",children:C.map((e,t)=>(0,a.jsx)("div",{className:(0,m.cn)("flex-1 border-l border-black/[0.04] dark:border-white/[0.05]",0===t&&"border-l-0","week"===b&&e===A&&"bg-primary/[0.04]")},e))}),null!==S&&(0,a.jsx)("div",{className:"pointer-events-none absolute inset-y-0 w-px bg-primary/60",style:{left:`${S}%`}}),(0,a.jsx)("div",{className:"relative space-y-1",children:0===e.lanes.length?(0,a.jsx)("div",{className:"flex h-[18px] items-center px-2 text-[10px] text-text-muted/70",children:(0,u.Tl)("hours"===b?"No 5-hour window":"No daily / weekly / monthly window")}):e.lanes.map(t=>(0,a.jsx)("div",{className:"relative h-[18px]",children:t.windows.map(r=>(0,a.jsx)(G,{win:r,lane:t,range:k,view:b,showLabel:e.lanes.length>1},`${t.name}-${r.start}`))},t.name))})]})]},e.id))]})})]})}V.propTypes={value:c().string.isRequired,options:c().arrayOf(c().shape({value:c().string,label:c().node})).isRequired,onChange:c().func.isRequired},G.propTypes={win:c().object.isRequired,lane:c().object.isRequired,range:c().object.isRequired,showLabel:c().bool,view:c().string},Y.propTypes={providerFilter:c().string,accountFilter:c().string,refreshKey:c().number,showTrackerLink:c().bool};var Z=r(36109);let X="quotaConnectionsCache";function ee(e){try{let t=window.localStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function et(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch{}}function er({page:e,pageSize:t,accountFilter:r,providerFilter:a}){return[e,t,r,a].join("|")}function ea(e){if(!e?.providerSpecificData?.connectionProxyUrl)return e;let t={...e.providerSpecificData};return delete t.connectionProxyUrl,{...e,providerSpecificData:t}}function en(e){let t=e?.cachedAt?new Date(e.cachedAt).getTime():NaN;return Number.isFinite(t)?t:0}function ei(e){let t=ee(h)||{},r={};for(let a of e||[])t[a.id]&&(r[a.id]=t[a.id]);return r}function es(e,t,r=Date.now()){let a=ee(h)||{};for(let[n,i]of(a[e]={...function(e){if(!e||"object"!=typeof e)return e;let{raw:t,...r}=e;return t?.resetCredits?{...r,raw:{resetCredits:t.resetCredits}}:r}(t),cachedAt:new Date(r).toISOString()},Object.entries(a)))r-en(i)>6048e5&&delete a[n];et(h,a)}function el(e){return Number(Number(e||0).toFixed(2)).toLocaleString("en-US")}function eo({quota:e,now:t,onHide:r}){let n=(0,p.Cd)(e,e.pct),i=(0,p.OG)(e),s=(0,p.D2)(e,t),l=!!e.resetAt&&2099>=new Date(e.resetAt).getFullYear(),o=l?function(e){if(!e)return"-";try{let t="string"==typeof e?new Date(e):e;if(Number.isNaN(t?.getTime?.())||t.getFullYear()>2099||t-new Date<=0)return"-";return(0,p.TV)(t)||"-"}catch(e){return"-"}}(e.resetAt):"-",c=l?[function(e){let t=new Date(e);if(Number.isNaN(t.getTime())||t.getFullYear()>2099)return"";let r=e=>String(e).padStart(2,"0");return`${t.getFullYear()}-${r(t.getMonth()+1)}-${r(t.getDate())} ${r(t.getHours())}:${r(t.getMinutes())}`}(e.resetAt),"-"!==o?o:null].filter(Boolean).join(" \xb7 "):void 0,d=e.percentScale?`${e.pct}%`:e.unlimited?"∞":`${el(Math.max(0,e.total-e.used))} / ${el(e.total)}`;return(0,a.jsxs)("div",{className:"group min-w-0 space-y-1 py-1",children:[(0,a.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-2 text-[11px] tabular-nums",children:[(0,a.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,a.jsx)("span",{className:"size-[8px] shrink-0 rounded-[2px]",style:{background:(0,I.dI)(e.pct)},"aria-hidden":"true"}),(0,a.jsx)("span",{className:"truncate text-text",children:(0,_.M)(e.name)})]}),(0,a.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[(0,a.jsx)("span",{className:I.pM[n],title:e.percentScale||e.unlimited?void 0:`${(0,u.Tl)("Used")} ${el(e.used)}`,children:d}),l?(0,a.jsx)("span",{className:"text-text-muted",title:c,children:(0,I.h7)(i,e.resetAt,{expired:s})}):null,r?(0,a.jsx)("button",{type:"button",onClick:()=>r(e),className:"-my-1 inline-flex size-5 items-center justify-center rounded text-text-muted opacity-30 transition hover:bg-black/5 hover:text-text group-hover:opacity-100 focus-visible:opacity-100 dark:hover:bg-white/5",title:(0,u.Tl)("Hide this quota row"),"aria-label":`${(0,u.Tl)("Hide this quota row")}: ${(0,_.M)(e.name)}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"visibility_off"})}):null]})]}),(0,a.jsx)(I.Ay,{pct:e.pct})]})}function ec({rows:e,now:t,onHide:r,limit:n,onMore:i}){let s=e.length-n;return(0,a.jsxs)(a.Fragment,{children:[e.slice(0,n).map(e=>(0,a.jsx)(eo,{quota:e,now:t,onHide:r},`${e.name}-${e.index}`)),s>0&&(0,a.jsx)("button",{type:"button",onClick:i,className:"w-full rounded-md py-1 text-[11px] text-text-muted transition-colors hover:bg-black/5 hover:text-text dark:hover:bg-white/5",children:(0,u.Tl)("Show {count} more").replace("{count}",String(Math.min(10,s)))})]})}function ed({quotas:e=[],sortMode:t="default",showSortLabel:r=!1,onHideQuota:i=null}){let[s,l]=(0,n.useState)(10),[o,c]=(0,n.useState)(10),[d,x]=(0,n.useState)(!1),[h,b]=(0,n.useState)(()=>Date.now());(0,n.useEffect)(()=>{b(Date.now())},[e]);let{live:g,history:f}=(0,n.useMemo)(()=>{var r;let a=(r=e.map((e,t)=>({...e,index:t,used:Number(e.used||0),total:Number(e.total||0),pct:e?.remainingPercentage!==void 0?Math.round(e.remainingPercentage):e?.remaining!==void 0&&(e?.total===100||e?.total===void 0)?Math.max(0,Math.round(e.remaining)):S(e?.used,e?.total)})),"remaining-asc"===t?[...r].sort((e,t)=>e.pct-t.pct||e.name.localeCompare(t.name)):"remaining-desc"===t?[...r].sort((e,t)=>t.pct-e.pct||e.name.localeCompare(t.name)):r);return{live:a.filter(e=>!(0,p.UY)(e,h)),history:a.filter(e=>(0,p.UY)(e,h))}},[e,t,h]);if(!e||0===e.length)return null;let y="function"==typeof i?i:null;return(0,a.jsxs)("div",{className:"space-y-0.5",children:[r&&(0,a.jsx)("div",{className:"pb-1 text-[10px] text-text-muted",children:(0,u.Tl)("Sorted by account remaining")}),(0,a.jsx)(ec,{rows:g,now:h,onHide:y,limit:s,onMore:()=>l(e=>e+10)}),f.length>0&&(0,a.jsxs)("div",{className:(0,m.cn)(g.length>0&&"mt-1 border-t border-black/5 pt-1 dark:border-white/5"),children:[(0,a.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),className:"flex w-full items-center gap-1 rounded-md py-1 text-[11px] text-text-muted transition-colors hover:bg-black/5 hover:text-text dark:hover:bg-white/5","aria-expanded":d,children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:d?"expand_less":"expand_more"}),(0,u.Tl)("Used up / expired"),(0,a.jsxs)("span",{className:"tabular-nums opacity-60",children:["(",f.length,")"]})]}),d&&(0,a.jsx)("div",{className:"opacity-60",children:(0,a.jsx)(ec,{rows:f,now:h,onHide:y,limit:o,onMore:()=>c(e=>e+10)})})]})]})}eo.propTypes={quota:c().object.isRequired,now:c().number.isRequired,onHide:c().func},ec.propTypes={rows:c().array.isRequired,now:c().number.isRequired,onHide:c().func,limit:c().number.isRequired,onMore:c().func.isRequired},ed.propTypes={quotas:c().array,sortMode:c().string,showSortLabel:c().bool,onHideQuota:c().func};var eu=r(98542),em=r(97677),ex=r(35497),ep=r(88105),eh=r(11059);let eb={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},eg={claude:"claudeAutoPing",codex:"codexAutoPing"},ef={claude:"When your 5h quota runs out, auto-sends a request the moment it resets so a new window starts right away.",codex:"Auto-starts the next 5h Codex window after reset by sending a tiny gpt-5.5 request. Consumes a small amount of quota."};function ey(e){let t=w(e),r=e.name?.trim(),a=e.email?.trim(),n=e.displayName?.trim();if(r&&r!==a&&(!n||r!==n))return null;if(e.name?.trim()&&e.email?.trim()&&e.name.trim()!==e.email.trim()){let r=e.email.trim();if(r!==t)return r}if(e.name?.trim()&&e.displayName?.trim()&&e.name.trim()!==e.displayName.trim()){let r=e.displayName.trim();if(r!==t)return r}return null}function ew(e){let t=e.providerSpecificData?.region;if(t)return t;let r=e.providerSpecificData?.profileArn;return("string"==typeof r?r.split(":")[3]:"")||""}let ev={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function ej(e){let t=[...new Set((e||[]).map(e=>ev[e]).filter(Boolean))];return t.length?`${t.join(" + ")} limits`:"limits"}function ek(e){if(!e)return"N/A";let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function eN(e){if(!e)return"N/A";let t=new Date(e).getTime()-Date.now();if(!Number.isFinite(t))return"N/A";if(t<=0)return"Expired";let r=Math.ceil(t/36e5),a=Math.floor(r/24),n=r%24;return a>0?`${a}d ${n}h`:`${n}h`}let eC={"qoder-cn":"Qoder CN",qoder:"Qoder","codebuddy-cn":"CodeBuddy CN","codebuddy-intl":"CodeBuddy Intl","minimax-cn":"MiniMax CN","glm-cn":"GLM CN","kimi-cn":"Kimi CN"};function eS(){let{copied:e,copy:t}=(0,eh.C)(),[r,o]=(0,n.useState)([]),[c,d]=(0,n.useState)({}),[m,f]=(0,n.useState)({}),[y,q]=(0,n.useState)({}),[$,P]=(0,n.useState)(!0),[D,M]=(0,n.useState)({claude:{},codex:{}}),[O,R]=(0,n.useState)(null),[I,z]=(0,n.useState)(!1),[L,H]=(0,n.useState)(!1),[U,B]=(0,n.useState)(60),[J,W]=(0,n.useState)(!0),[Q,K]=(0,n.useState)(null),[V,G]=(0,n.useState)(null),[el,eo]=(0,n.useState)(null),[ec,ev]=(0,n.useState)(null),[eS,eA]=(0,n.useState)(null),[eT,eq]=(0,n.useState)(!1),[e$,eP]=(0,n.useState)(null),[eD,eM]=(0,n.useState)([]),eE=(0,i.useSearchParams)(),eO=(0,i.useRouter)(),eR=(0,i.usePathname)(),[eF,eI]=(0,n.useState)(()=>{var e;let t=window.localStorage.getItem("quotaProviderFilter");return e=eE?.get("provider"),e||t||"all"}),e_=(0,n.useCallback)(e=>{var t;let r,a;eI(e),eO.replace((t=eE?.toString()||"",r=new URLSearchParams(t||""),e&&"all"!==e?r.set("provider",e):r.delete("provider"),(a=r.toString())?`${eR}?${a}`:eR),{scroll:!1})},[eO,eR,eE]),[ez,eL]=(0,n.useState)([]),[eH,eU]=(0,n.useState)(()=>window.localStorage.getItem("quotaAccountFilter")||"all");(0,n.useEffect)(()=>{window.localStorage.setItem("quotaProviderFilter",eF)},[eF]),(0,n.useEffect)(()=>{window.localStorage.setItem("quotaAccountFilter",eH)},[eH]);let[eB,eJ]=(0,n.useState)("default"),[eW,eQ]=(0,n.useState)("cards"),[eK,eV]=(0,n.useState)(0),[eG,eY]=(0,n.useState)({}),[eZ,eX]=(0,n.useState)(!1),[e0,e1]=(0,n.useState)(()=>"1"===window.localStorage.getItem("quotaHideNoQuota")),[e5,e2]=(0,n.useState)(()=>"1"===window.localStorage.getItem("quotaHideZeroBalance")),[e4,e3]=(0,n.useState)(()=>"0"!==window.localStorage.getItem("quotaShowExternalCards")),[e6,e8]=(0,n.useState)(()=>"1"===window.localStorage.getItem("quotaNestedCycle")),[e9,e7]=(0,n.useState)(!1),te=(0,n.useCallback)((e,t,r)=>{r(t),window.localStorage.setItem(e,t?"1":"0")},[]),[tt,tr]=(0,n.useState)(!1),[ta,tn]=(0,n.useState)(()=>new Set),ti=(0,n.useCallback)(e=>{tn(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]),[ts,tl]=(0,n.useState)(1),[to,tc]=(0,n.useState)(20),[td,tu]=(0,n.useState)(String(20)),[tm,tx]=(0,n.useState)({page:1,pageSize:20,total:0,totalPages:1}),[tp,th]=(0,n.useState)({eligibleConnections:0,providerFilteredConnections:0}),tb=(0,n.useRef)(null),tg=(0,n.useRef)(null),tf=(0,n.useRef)(0),ty=(0,n.useCallback)(async(e=ts)=>{try{var t,r;let a=new URLSearchParams({page:String(e),pageSize:String(to),accountStatus:eH,sort:"priority"});"all"!==eF&&a.set("provider",eF);let n=await fetch(`/api/providers/client?${a.toString()}`);if(!n.ok)throw Error("Failed to fetch connections");let i=await n.json(),s=i.connections||[],l=(t=i.pagination,t||{page:1,pageSize:to,total:0,totalPages:1}),c=function(e,t=0){return e||{eligibleConnections:t,providerFilteredConnections:t}}(i.totals,s.length);o(s),eL(i.providerOptions||[]),tx(l),th(c),tl((r=i.pagination,r?.page||e));let u=s.filter(e=>e.external&&e.quota);if(u.length>0)for(let e of(d(e=>{let t={...e};for(let e of u)t[e.id]=e.quota;return t}),u))es(e.id,e.quota);return!function(e,{connections:t,pagination:r,totals:a,providerOptions:n}){et(X,{key:e,connections:(t||[]).map(ea),pagination:r,totals:a,providerOptions:n,cachedAt:Date.now()})}(er({page:e,pageSize:to,accountFilter:eH,providerFilter:eF}),{connections:s,pagination:l,totals:c,providerOptions:i.providerOptions}),s}catch(e){return console.error("Error fetching connections:",e),null}},[eH,eZ,ts,to,eF]),tw=(0,n.useCallback)(async(e,t,{force:r=!1}={})=>{f(t=>({...t,[e]:!0})),q(t=>({...t,[e]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${t} (${e})`);let a=`/api/usage/${e}${r?"?force=1":""}`,n=await fetch(a);if(!n.ok){let r=(await n.json().catch(()=>({}))).error||n.statusText;if(404===n.status)return void console.warn(`[ProviderLimits] Connection not found for ${t}, skipping`);if(401===n.status){console.warn(`[ProviderLimits] Auth error for ${t}:`,r);let a={quotas:[],message:r,cachedAt:new Date().toISOString()};d(t=>({...t,[e]:a})),es(e,a);return}throw Error(`HTTP ${n.status}: ${r}`)}let i=await n.json();console.log(`[ProviderLimits] Got quota for ${t}:`,i);let s={quotas:function(e,t){if(!t||"object"!=typeof t)return[];let r=[];try{switch(e.toLowerCase()){case"github":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{(t.unlimited||t.total>0)&&r.push({name:`${e} \xb7 Monthly`,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!0})});break;case"antigravity":if(t.quotas){let e=Object.entries(t.quotas);if(e.some(([e])=>/_(5h|weekly)$/i.test(e)))e.forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||100,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage,recurring:!1!==t.recurring,percentScale:!1!==t.percentScale})});else{let t=e.filter(([e])=>e.startsWith("gemini-")&&!e.includes("image")),a=e.filter(([e])=>e.startsWith("claude-")||e.startsWith("gpt-")),n=e.filter(([e])=>e.includes("image")),i=e.filter(([e])=>!e.startsWith("gemini-")&&!e.startsWith("claude-")&&!e.startsWith("gpt-")&&!e.includes("image"));if(t.length>0){let e=t.reduce((e,t)=>(t[1].remainingPercentage??100)<(e[1].remainingPercentage??100)?t:e)[1];r.push({name:"Gemini (Flash / Pro)",modelKey:"gemini",used:e.used||0,total:e.total||0,resetAt:e.resetAt||null,remainingPercentage:e.remainingPercentage,recurring:!0,percentScale:!0})}if(a.length>0){let e=a.reduce((e,t)=>(t[1].remainingPercentage??100)<(e[1].remainingPercentage??100)?t:e)[1];r.push({name:"Claude (Sonnet / Opus / GPT)",modelKey:"claude",used:e.used||0,total:e.total||0,resetAt:e.resetAt||null,remainingPercentage:e.remainingPercentage,recurring:!0,percentScale:!0})}n.forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage,recurring:!0===t.recurring,percentScale:!0})}),i.forEach(([e,t])=>{r.push({name:t.displayName||e,modelKey:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage,recurring:!0===t.recurring,percentScale:!0})})}}break;case"codex":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,remaining:t.remaining,resetAt:t.resetAt||null})});break;case"kiro":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null})});break;case"qoder":case"qoder-cn":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{let a=Number(t?.total)||0;if("user"===e||("organization"===e||"addOn"===e)&&0===a)return;let n=t.resetAt&&2099>=new Date(t.resetAt).getFullYear()?t.resetAt:null;r.push({name:"addOn"===e?"Resource Package":"organization"===e?"Organization":e,used:t.used||0,total:a,unit:t.unit,resetAt:"addOn"===e?null:n,unlimited:!0===t.unlimited,aggregate:!0,..."addOn"===e&&Array.isArray(t.packs)&&t.packs.length>0?{summarizesDetail:!0}:{}}),"addOn"===e&&Array.isArray(t.packs)&&t.packs.forEach((e,a)=>{r.push({name:e.name||(e.unitemized?"Bonus Pack (unitemized)":`Bonus Pack ${a+1}`),used:e.used||0,total:e.total||0,unit:t.unit,resetAt:e.expiresAt&&2099>=new Date(e.expiresAt).getFullYear()?e.expiresAt:null,unlimited:!1,recurring:!1,detailOnly:!0})})});break;case"claude":t.message?r.push({name:"error",used:0,total:0,resetAt:null,message:t.message}):t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,remaining:void 0!==t.remaining?t.remaining:Math.max(0,(t.total||100)-(t.used||0)),remainingPercentage:void 0!==t.remainingPercentage?t.remainingPercentage:S(t.used,t.total),resetAt:t.resetAt||null})});break;case"vercel-ai-gateway":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"codebuddy-cn":case"codebuddy-intl":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,recurring:!1!==t.recurring,displayRemaining:!0,..."Monthly"===e?{giftPack:!0}:{}})});break;case"grok-cli":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"kimi":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"deepseek":case"stepfun":case"stepfun-cn":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage,displayRemaining:t.displayRemaining})});break;case"ollama":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,remainingPercentage:t.remainingPercentage})});break;case"commandcode":t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,remaining:void 0!==t.remaining?t.remaining:Math.max(0,(t.total||0)-(t.used||0)),remainingPercentage:void 0!==t.remainingPercentage?t.remainingPercentage:S(t.used,t.total),resetAt:t.resetAt||null,recurring:!0===t.recurring,displayRemaining:!0})});break;default:t.quotas&&Object.entries(t.quotas).forEach(([e,t])=>{r.push({name:e,used:t.used||0,total:t.total||0,resetAt:t.resetAt||null,...void 0!==t.unlimited?{unlimited:!0===t.unlimited}:{},...void 0!==t.recurring?{recurring:!0===t.recurring}:{},...void 0!==t.displayRemaining?{displayRemaining:!0===t.displayRemaining}:{},...void 0!==t.giftPack?{giftPack:!0===t.giftPack}:{},...void 0!==t.isCreditBalance?{isCreditBalance:!0===t.isCreditBalance}:{},...void 0!==t.detailOnly?{detailOnly:!0===t.detailOnly}:{},...void 0!==t.summarizesDetail?{summarizesDetail:!0===t.summarizesDetail}:{},...Number.isFinite(t.remainingPercentage)?{remainingPercentage:t.remainingPercentage}:{},...Number.isFinite(t.percentScale)&&t.percentScale>0?{percentScale:t.percentScale}:{}})})}}catch(t){return console.error(`Error parsing quota data for ${e}:`,t),[]}if(e?.toLowerCase()==="claude"){let e={"session (5h)":0,"weekly (7d)":1,"weekly fable (7d)":2,"weekly opus (7d)":3,"weekly sonnet (7d)":4};return r.sort((t,r)=>(e[t.name]??99)-(e[r.name]??99)),r}if(e?.toLowerCase()==="commandcode"){let e={"session (5h)":0,"weekly (7d)":1,"Monthly Credits":2,"Purchased Credits":3};return r.sort((t,r)=>(e[t.name]??99)-(e[r.name]??99)),r}let a=(0,x.KC)(e);if(a.length>0){let e=new Map(a.map((e,t)=>[e.id,t]));r.sort((t,r)=>{let a=t.modelKey||t.name,n=r.modelKey||r.name;return(e.get(a)??999)-(e.get(n)??999)})}return r}(t,i),plan:i.plan||null,message:i.message||null,raw:i,cachedAt:new Date().toISOString()};d(t=>({...t,[e]:s})),es(e,s)}catch(r){console.error(`[ProviderLimits] Error fetching quota for ${t} (${e}):`,r),q(t=>({...t,[e]:r.message||"Failed to fetch quota"}))}finally{f(t=>({...t,[e]:!1}))}},[]),[tv]=(0,n.useState)(()=>(function(e=4){let t=0,r=[],a=()=>{if(t>=e||0===r.length)return;t+=1;let{fn:n,resolve:i,reject:s}=r.shift();Promise.resolve().then(n).then(i,s).finally(()=>{t-=1,a()})};return e=>new Promise((t,n)=>{r.push({fn:e,resolve:t,reject:n}),a()})})()),tj=(0,n.useRef)(new Set),tk=(0,n.useRef)(new Map),tN=(0,n.useRef)(null),tC=(0,n.useRef)(tw);(0,n.useEffect)(()=>{tC.current=tw},[tw]);let tS=(0,n.useCallback)(()=>(tN.current||"u"<typeof IntersectionObserver||(tN.current=new IntersectionObserver(e=>{for(let t of e){let e=t.target.dataset.connId;if(e){if(!t.isIntersecting){tj.current.delete(e);continue}if(tj.current.add(e),tk.current.has(e)){let t=tk.current.get(e);tk.current.delete(e),tv(()=>tC.current(e,t))}}}},{rootMargin:"200px 0px"})),tN.current),[tv]);(0,n.useEffect)(()=>()=>tN.current?.disconnect(),[]);let tA=(0,n.useCallback)(e=>{let t=tS();if(e&&t)return t.observe(e),()=>{t.unobserve(e),tj.current.delete(e.dataset.connId)}},[tS]),tT=(0,n.useCallback)((e,{lazy:t=!0,skipFreshFrom:r=null}={})=>{let a="u">typeof IntersectionObserver,n=[];for(let i of e)if(!i.external&&!(r&&function(e,t=Date.now(),r=6e4){let a=en(e);return a>0&&t-a<r}(r[i.id]))){if(t&&a&&!tj.current.has(i.id)){tk.current.set(i.id,i.provider);continue}tk.current.delete(i.id),n.push(tv(()=>tC.current(i.id,i.provider)))}return Promise.all(n)},[tv]),tq=(0,n.useCallback)(async(e,t,r)=>{if(r){f(t=>({...t,[e]:!0}));try{await fetch(r,{method:"POST",mode:"cors"})}catch{}}await tw(e,t,{force:!0}),R(new Date)},[tw]),t$=(0,n.useCallback)(async e=>{f(t=>({...t,[e.id]:!0}));try{e.refreshUrl&&await fetch(e.refreshUrl,{method:"POST",mode:"cors"})}catch{}finally{f(t=>({...t,[e.id]:!1}))}await ty(ts),R(new Date)},[ty,ts]),tP=(0,n.useCallback)(async(e,t)=>{if(("codex"===t||"claude"===t)&&!el){eo(e),q(t=>({...t,[e]:null}));try{let r="claude"===t?await fetch(`/api/usage/${e}/claude-reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grantId:c[e]?.raw?.resetCredits?.nextGrantId})}):await fetch(`/api/usage/${e}/codex-reset-credits`,{method:"POST"}),a=await r.json().catch(()=>({}));if(!r.ok)throw Error(a.message||a.error||a.code||"Failed to reset limit");await tw(e,t,{force:!0}),R(new Date)}catch(t){q(r=>({...r,[e]:t.message||"Failed to reset limit"}))}finally{eo(null)}}},[tw,el,c]),tD=(0,n.useCallback)((e,t)=>{eA({connection:e,loading:!1,error:null,data:{kind:"claude",...t}})},[]),tM=(0,n.useCallback)(async e=>{eA({connection:e,loading:!0,error:null,data:null});try{let t=await fetch(`/api/usage/${e.id}/codex-reset-credits`,{cache:"no-store"}),r=await t.json().catch(()=>({}));if(!t.ok)throw Error(r.error||r.message||"Failed to load Codex reset credits");let a=Array.isArray(r.credits)?[...r.credits]:[];a.sort((e,t)=>{let r=e.expiresAt?new Date(e.expiresAt).getTime():1/0,a=t.expiresAt?new Date(t.expiresAt).getTime():1/0;return r-a}),eA({connection:e,loading:!1,error:null,data:{...r,credits:a}})}catch(t){eA({connection:e,loading:!1,error:t.message||"Failed to load Codex reset credits",data:null})}},[]),tE=(0,n.useCallback)(async e=>{let t="string"==typeof e&&e.startsWith("ext:");if(t){if(!confirm((0,u.Tl)("Remove this pushed quota card? The pushing app can re-add it with its next update.")))return}else if(!confirm("Delete this connection?"))return;K(e);try{let r=t?`/api/external-quota/${encodeURIComponent(e.slice(4))}`:`/api/providers/${e}`;if((await fetch(r,{method:"DELETE"})).ok){d(t=>{let r={...t};return delete r[e],r}),f(t=>{let r={...t};return delete r[e],r}),q(t=>{let r={...t};return delete r[e],r});try{let t=function(){try{let e=window.localStorage.getItem(h);return e?JSON.parse(e):{}}catch(e){return console.error("Error reading quota cache:",e),{}}}();t[e]&&(delete t[e],window.localStorage.setItem(h,JSON.stringify(t)))}catch(e){console.error("Error deleting cache entry:",e)}await C(ty,ts)}}catch(e){console.error("Error deleting connection:",e)}finally{K(null)}},[ty,ts]),tO=(0,n.useCallback)(async(e,t)=>{G(e);try{(await fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})})).ok&&(d(e=>({...e})),await C(ty,ts))}catch(e){console.error("Error updating connection status:",e)}finally{G(null)}},[ty,ts]),tR=(0,n.useCallback)(async e=>{if(!e$?.id)return;let t=e$.id,r=e$.provider;try{(await fetch(`/api/providers/${t}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok&&(await ty(),eq(!1),eP(null),ep.wb.includes(r)&&await tw(t,r))}catch(e){console.error("Error saving connection:",e)}},[e$,ty,tw]);(0,n.useEffect)(()=>{let e=!1;return fetch("/api/proxy-pools?isActive=true",{cache:"no-store"}).then(e=>e.json()).then(t=>{!e&&t?.proxyPools&&eM(t.proxyPools)}).catch(()=>{}),()=>{e=!0}},[]);let tF=(0,n.useCallback)(async(e=!1)=>{if(L)return;H(!0),B(60);let t=tf.current+=1,r=Math.round(10);try{let a=await ty(ts);if(!a)return;q(e=>k(e,a)),d(e=>k(e,a)),await tT(a.filter(a=>e||"claude"!==a.provider||t%r==0),{lazy:!e}),R(new Date)}catch(e){console.error("Error refreshing all providers:",e)}finally{H(!1)}},[L,ty,tT,ts]);(0,n.useEffect)(()=>{var e;let t,r=!1,a=(e=er({page:ts,pageSize:to,accountFilter:eH,providerFilter:eF}),(t=ee(X))&&t.key===e&&Array.isArray(t.connections)?t:null);return a?(o(a.connections),eL(a.providerOptions||[]),a.pagination&&tx(a.pagination),a.totals&&th(a.totals),d(e=>({...ei(a.connections),...e})),W(!1)):W(!0),(async()=>{let e=await ty(ts);if(r||(W(!1),!e))return;let t=ei(e);q(t=>k(t,e)),d(r=>({...t,...k(r,e)})),await tT(e,{skipFreshFrom:t}),r||R(new Date)})(),()=>{r=!0}},[ty,tT,ts,to,eH,eF]),(0,n.useEffect)(()=>{let e=window.localStorage.getItem(b);P(null===e||"true"===e),z(!0)},[]),(0,n.useEffect)(()=>{I&&window.localStorage.setItem(b,String($))},[$,I]),(0,n.useEffect)(()=>{fetch("/api/settings",{cache:"no-store"}).then(e=>e.ok?e.json():{}).then(e=>{M({claude:e?.claudeAutoPing?.connections||{},codex:e?.codexAutoPing?.connections||{}}),eY(e?.quotaVisibility||{})}).catch(()=>{})},[]);let tI=(0,n.useCallback)(async(e,t,r)=>{let a=eg[t];if(!a)return;let n={...D[t]||{},[e]:r};M({...D,[t]:n});try{let e=await fetch("/api/settings",{cache:"no-store"}),t={...(e.ok?await e.json():{})[a]||{},connections:n};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[a]:t})})}catch{M(D)}},[D]);(0,n.useCallback)(async(e,t)=>{eY(e);try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:e})})).ok)throw Error("Failed to update quota visibility")}catch(e){console.error("Error updating quota visibility:",e),eY(t)}},[]);let t_=(0,n.useCallback)((e,t)=>{e&&eY(r=>{let a=r[e]||{},n=t(new Set(a.hidden||[])),i={...r,[e]:{...a,hidden:[...n]}};return(async()=>{try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:i})})).ok)throw Error("Failed to update quota visibility")}catch(e){console.error("Error updating quota visibility:",e),eY(r)}})(),i})},[]),tz=(e,t)=>{if("gemini"===t)for(let t of e)t.startsWith("gemini-")&&!t.includes("image")&&e.delete(t);else if("claude"===t)for(let t of e)(t.startsWith("claude-")||t.startsWith("gpt-"))&&e.delete(t)},tL=(0,n.useCallback)((e,t,r)=>{let a=A(t);e&&a&&t_(e,e=>(e.add(a),"antigravity"===r&&tz(e,a),e))},[t_]),tH=(0,n.useCallback)(e=>{e&&t_(e,()=>new Set)},[t_]),tU=(0,n.useCallback)((e,t,r)=>{let a=A(t);e&&a&&t_(e,e=>(e.delete(a),"antigravity"===r&&tz(e,a),e))},[t_]);(0,n.useCallback)((e,t)=>{e.length&&eY(r=>{let a={...r},n=!1;for(let r of e){let e=a[r]||{},i=t(r,e);if(null===i)continue;let s=e.hidden||[];(i.length!==s.length||i.some((e,t)=>e!==s[t]))&&(a[r]={...e,hidden:i},n=!0)}return n?((async()=>{try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:a})})).ok)throw Error("Failed to update quota visibility")}catch(e){console.error("Error updating quota visibility:",e),eY(r)}})(),a):r})},[]),(0,n.useEffect)(()=>{if(!I||!$){tb.current&&(clearInterval(tb.current),tb.current=null),tg.current&&(clearInterval(tg.current),tg.current=null);return}return tb.current=setInterval(()=>{tF()},6e4),tg.current=setInterval(()=>{B(e=>e<=1?60:e-1)},1e3),()=>{tb.current&&clearInterval(tb.current),tg.current&&clearInterval(tg.current)}},[$,tF,I]),(0,n.useEffect)(()=>{let e=()=>{document.hidden?(tb.current&&(clearInterval(tb.current),tb.current=null),tg.current&&(clearInterval(tg.current),tg.current=null)):$&&I&&(tb.current=setInterval(()=>tF(),6e4),tg.current=setInterval(()=>{B(e=>e<=1?60:e-1)},1e3))};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[$,tF,I]);let tB=(0,n.useMemo)(()=>(function(e,t,r,a,n){if("codex"===a&&"default"!==n)return[...e].sort((e,r)=>{let a=j(e,t),i=j(r,t),s="remaining-asc"===n?a-i:i-a;return 0!==s?s:(w(e)||"").localeCompare(w(r)||"")});if(!r){let t=new Map;for(let r of e){let e=r.provider||"";t.has(e)||t.set(e,[]),t.get(e).push(r)}return Array.from(t.values()).flat()}let i=e=>{let r=(t[e.id]?.quotas||[]).map(e=>e.resetAt?new Date(e.resetAt).getTime():1/0).filter(e=>Number.isFinite(e));return r.length>0?Math.min(...r):1/0};return[...e].sort((e,t)=>{let r=i(e)-i(t);return 0!==r?r:(e.provider||"").localeCompare(t.provider||"")||(w(e)||"").localeCompare(w(t)||"")})})(r,c,eZ,eF,eB),[r,c,eZ,eF,eB]),tJ=(0,n.useMemo)(()=>{let e=tB;return e4||(e=e.filter(e=>!e.external)),e0&&(e=e.filter(e=>{if(m[e.id]||y[e.id]||e.external)return!0;let t=c[e.id];return!t||(t.quotas?.length??0)>0})),e5&&(e=e.filter(e=>!!m[e.id]||!!y[e.id]||!!e.external||!c[e.id]||!v(e,c))),e},[tB,e4,e0,e5,m,y,c]),tW=(0,n.useCallback)(async(e,t)=>{if(e.length&&!tt){tr(!0);try{await Promise.all(e.map(e=>fetch(`/api/providers/${e}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:t})}))),await C(ty,ts)}catch(e){console.error("Error bulk toggling connections:",e)}finally{tr(!1)}}},[tt,ty,ts]),tQ="all"===eF?"All providers":eF,tK=tp.eligibleConnections>0,tV=tJ.length>0,tG=tp.eligibleConnections?tp.providerFilteredConnections?{icon:"filter_alt_off",title:"No Accounts On This Page",description:"Try moving to another page or refreshing the current filters."}:{icon:"filter_alt_off",title:"No Accounts Match Current Filters",description:"all"===eF?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===eH?"turned off":"active"===eH?"active":"matching"} accounts found for ${eF}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."},tY=({start:e,end:t,total:r})=>(0,u.Tl)("Showing {start}-{end} of {total}").replace("{start}",String(e)).replace("{end}",String(t)).replace("{total}",String(r)),tZ=function(e,t=N){var r;let{start:a,end:n}=(r=e).total?{start:(r.page-1)*r.pageSize+1,end:Math.min(r.page*r.pageSize,r.total)}:{start:0,end:0};return t({start:a,end:n,total:e.total})}(tm,tY),tX=tJ.length!==tB.length,t0=function(e,t,r=N){let a=Math.max(0,Number(e)||0);if(0===a)return r({start:0,end:0,total:0});let n=Math.max(1,Number(t)||a);return r({start:1,end:Math.min(a,n),total:a})}(tJ.length,to,tY),t1=!g.includes(to),t5=J||tK?J||tV?null:(0,a.jsx)(F.default,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:tG.icon}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text",children:tG.title}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:tG.description})]})}):(0,a.jsx)(F.default,{padding:"lg",children:(0,a.jsxs)("div",{className:"text-center py-12",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,a.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text",children:"No Providers Connected"}),(0,a.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:"Connect to providers with OAuth to track your API quota limits and usage."})]})});return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)(E,{view:eW,onViewChange:eQ,providerFilter:eF,providerOptions:ez,providerLabel:"all"===eF?(0,u.Tl)("All providers"):tQ,onProviderChange:e=>{eF!==e&&tl(1),e_(e)},accountFilter:eH,onAccountChange:e=>{eH!==e&&tl(1),eU(e)},showCodexSort:"codex"===eF,quotaSortMode:eB,onQuotaSortChange:eJ,expiringFirst:eZ,onToggleExpiringFirst:()=>eX(e=>!e),onDisableDepleted:()=>{tW(tB.filter(e=>!e.external&&(e.isActive??!0)&&v(e,c)).map(e=>e.id),!1)},onEnableAvailable:()=>{tW(tB.filter(e=>!e.external&&!(e.isActive??!0)&&!v(e,c)).map(e=>e.id),!0)},bulkToggling:tt,autoRefresh:$,onToggleAutoRefresh:()=>P(e=>!e),countdown:U,refreshingAll:L,onRefreshAll:()=>"windows"===eW?eV(e=>e+1):tF(!0),accountCount:tm.total,onOpenPreferences:()=>e7(!0)}),"windows"===eW?(0,a.jsx)(Y,{providerFilter:eF,accountFilter:eH,refreshKey:eK,showTrackerLink:!1}):(0,a.jsxs)(a.Fragment,{children:[t5&&(0,a.jsx)("div",{className:"pt-2",children:t5}),!t5&&(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:tJ.map(r=>{let n,i,o,d=c[r.id],x=(0,ep.$Y)(r.provider),h=!!m[r.id],b=y[r.id],g=!d&&!b,f=!1===r.isActive,v=(0,Z._)(r).state,j="codex"===r.provider,k="claude"===r.provider?d?.raw?.resetCredits:null,N=j?"Codex reset credit":"Claude limit reset",C=Number.isFinite(i="number"==typeof(n=d?.raw?.resetCredits?.availableCount)?n:Number(n))?Math.max(0,i):0,S=el===r.id,q=Q===r.id||V===r.id||S,$=d?.quotas||[],P=function(e,t=[],r={},a){if(!Array.isArray(t)||0===t.length)return[];let n=T(e,r,a,t);return 0===n.size?t:t.filter(e=>!n.has(A(e)))}(r.id,$,eG,r.provider),M=function(e,t=[],r={},a){if(!Array.isArray(t)||0===t.length)return[];let n=T(e,r,a,t);return 0===n.size?[]:t.filter(e=>n.has(A(e)))}(r.id,$,eG,r.provider),E=(0,p.PZ)(P),O=(0,p.qz)(P);return(0,a.jsxs)(F.default,{ref:tA,"data-conn-id":r.id,padding:"none",className:`min-w-0 ${f?"opacity-60":""}`,children:[(0,a.jsx)("div",{className:"px-3 py-2 border-b border-black/10 dark:border-white/10",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[x?(0,a.jsx)("a",{href:x,target:"_blank",rel:"noopener noreferrer",title:`${(0,u.Tl)("Open provider site")} — ${x.replace(/^https?:\/\//,"")}`,className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden hover:ring-2 hover:ring-brand-500/40 hover:bg-black/5 dark:hover:bg-white/5 transition-all",children:(0,a.jsx)(s.A,{src:`/providers/${r.provider}.png`,alt:r.provider,size:32,className:"object-contain",fallbackText:r.provider?.slice(0,2).toUpperCase()||"PR"})}):(0,a.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,a.jsx)(s.A,{src:`/providers/${r.provider}.png`,alt:r.provider,size:32,className:"object-contain",fallbackText:r.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-text truncate",children:eC[r.provider]||(0,a.jsx)("span",{className:"capitalize",children:r.provider})}),w(r)?(0,a.jsx)("p",{className:"text-xs text-text-muted truncate",children:w(r)}):null,ey(r)?(0,a.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:ey(r)}):null,"kiro"===r.provider&&(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,a.jsx)("span",{className:"rounded-full bg-brand-500/10 px-2 py-0.5 text-[10px] font-semibold text-brand-600 dark:text-brand-300",children:(o=r.providerSpecificData?.authMethod)&&eb[o]?eb[o]:"api_key"===r.authType?"API Key":"OAuth"}),ew(r)&&(0,a.jsx)("span",{className:"rounded-full bg-blue-500/10 px-2 py-0.5 text-[10px] font-semibold text-blue-600 dark:text-blue-400",children:ew(r)}),(0,a.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${f?"bg-surface-2 text-text-muted":"active"===v||"success"===v?"bg-green-500/10 text-green-600 dark:text-green-400":"partial"===v?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"error"===v||"expired"===v||"unavailable"===v||"needs-reauth"===v?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:f?"disabled":"needs-reauth"===v?(0,u.Tl)("Needs re-auth"):"partial"===v?"partial":v||"unknown"}),r.providerSpecificData?.profileArn&&(0,a.jsxs)("button",{type:"button",onClick:()=>t(r.providerSpecificData.profileArn,r.id),title:r.providerSpecificData.profileArn,className:"inline-flex max-w-full items-center gap-1 rounded-full border border-border-subtle px-2 py-0.5 text-[10px] text-text-muted transition-colors hover:text-primary",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:e===r.id?"check":"content_copy"}),(0,a.jsx)("code",{className:"truncate font-mono",children:r.providerSpecificData.profileArn})]})]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(j||k)&&!r.external&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(em.default,{text:C>0?k?`Use your reset now (${C} left, use by ${ek(k.expiresAt)}) \xb7 refills ${ej(k.clears)}`:`Use one ${N}. Available: ${C}`:`No ${N}s available`,children:(0,a.jsxs)("button",{type:"button",onClick:()=>ev({connection:r,resetCreditCount:C}),disabled:C<=0||g||h||q,"aria-label":C>0?`Use one ${N}. ${C} available.`:`No ${N}s available`,className:`flex h-8 min-w-10 items-center justify-center gap-1 rounded-lg border px-2 text-[11px] font-medium tabular-nums transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary/60 disabled:cursor-not-allowed disabled:opacity-60 ${C>0?"border-primary/30 bg-primary/5 text-primary hover:bg-primary/10":"border-black/10 bg-black/[0.02] text-text-muted dark:border-white/10 dark:bg-white/[0.03]"}`,children:[(0,a.jsx)("span",{className:`material-symbols-outlined text-[15px] ${S?"animate-spin":""}`,children:S?"progress_activity":"restart_alt"}),(0,a.jsx)("span",{children:C})]})}),(0,a.jsx)(em.default,{text:j?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,a.jsx)("button",{type:"button",onClick:()=>j?tM(r):tD(r,k),disabled:g||q,"aria-label":j?"View Codex reset credit expiry":"View Claude Code reset expiry",className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text-muted transition-colors hover:bg-black/5 hover:text-primary disabled:cursor-not-allowed disabled:opacity-50 dark:border-white/10 dark:hover:bg-white/5",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})})]}),eg[r.provider]&&"oauth"===r.authType&&(0,a.jsx)(em.default,{text:ef[r.provider],children:(0,a.jsx)("button",{type:"button",onClick:()=>tI(r.id,r.provider,D[r.provider]?.[r.id]!==!0),"aria-label":"Toggle auto-ping",className:`flex h-8 w-8 items-center justify-center rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5 ${D[r.provider]?.[r.id]===!0?"text-primary":"text-text-muted"}`,children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})}),(0,a.jsx)(em.default,{text:"Refresh quota",children:(0,a.jsx)("button",{type:"button",onClick:()=>r.external?t$(r):tq(r.id,r.provider,r.refreshUrl),disabled:h||q,"aria-label":"Refresh quota",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${h||g?"animate-spin":""}`,children:"refresh"})})}),!r.external&&(0,a.jsx)(em.default,{text:"Edit connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>{eP(r),eq(!0)},disabled:q,"aria-label":"Edit connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-black/5 dark:hover:bg-white/5 text-text-muted hover:text-primary transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,a.jsx)(em.default,{text:"Delete connection",children:(0,a.jsx)("button",{type:"button",onClick:()=>tE(r.id),disabled:q,"aria-label":"Delete connection",className:"flex h-8 w-8 items-center justify-center rounded-lg hover:bg-red-500/10 text-red-500 transition-colors disabled:opacity-50",children:(0,a.jsx)("span",{className:`material-symbols-outlined text-[18px] ${Q===r.id?"animate-pulse":""}`,children:"delete"})})}),!r.external&&(0,a.jsx)("div",{className:"inline-flex items-center pl-0.5",title:r.isActive??!0?"Disable connection":"Enable connection",children:(0,a.jsx)(eu.default,{size:"sm",checked:r.isActive??!0,disabled:q,onChange:e=>tO(r.id,e)})})]})]})}),d&&P.length>0&&(0,a.jsx)("div",{className:"px-3 pt-2.5",children:(0,a.jsx)(l.default,{packs:P,nestedCycle:e6})}),(0,a.jsxs)("div",{className:"px-2 py-1.5",children:[d?.raw?.webSessionExpired===!0&&(0,a.jsxs)("p",{className:"flex items-center gap-1 px-1 pb-1 text-[11px] text-text-muted",title:(0,u.Tl)("Synced CreditDaddy web session expired — plan credits may read low or missing. Re-export the account from CreditDaddy after logging in to Qoder web again."),children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[11px]",children:"schedule"}),(0,a.jsx)("span",{className:"truncate",children:(0,u.Tl)("Synced CreditDaddy web session expired — plan credits may read low or missing. Re-export the account from CreditDaddy after logging in to Qoder web again.")})]}),b&&d&&(0,a.jsxs)("p",{className:"px-1 pb-1 text-[11px] text-red-500/80",children:[(0,u.Tl)("Update failed, showing last known")," \xb7 ",b]}),g?(0,a.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):b&&!d?(0,a.jsxs)("div",{className:"text-center py-5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,a.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:b})]}):d?.message?(0,a.jsx)("div",{className:"text-center py-5",children:(0,a.jsx)("p",{className:"text-xs text-text-muted",children:d.message})}):(0,a.jsxs)(a.Fragment,{children:[0===P.length&&$.length>0&&(0,a.jsxs)("div",{className:"text-center py-5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[28px] text-text-muted opacity-40",children:"visibility_off"}),(0,a.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:(0,u.Tl)("All quota rows are hidden — use the chips below to show them")})]}),O&&(0,a.jsxs)("button",{type:"button",onClick:()=>ti(r.id),className:"flex w-full items-center gap-1 rounded-lg py-1.5 text-[11px] text-text-muted transition-colors hover:bg-black/5 hover:text-text dark:hover:bg-white/5","aria-expanded":ta.has(r.id),children:[(0,a.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:ta.has(r.id)?"expand_less":"expand_more"}),(0,u.Tl)("Per-pack details"),(0,a.jsxs)("span",{className:"tabular-nums opacity-60",children:["(",E.length,")"]})]}),O&&ta.has(r.id)&&(0,a.jsx)(ed,{quotas:E,sortMode:"default",showSortLabel:"codex"===r.provider&&"default"!==eB,onHideQuota:e=>tL(r.id,e,r.provider)})]}),M.length>0&&(0,a.jsxs)("div",{className:"mt-1 flex min-w-0 items-center gap-1.5 border-t border-black/5 pt-1.5 text-[11px] text-text-muted dark:border-white/5",children:[(0,a.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[14px]",children:"visibility_off"}),(0,a.jsxs)("span",{className:"shrink-0",children:[(0,u.Tl)("Hidden"),(0,a.jsxs)("span",{className:"tabular-nums opacity-60",children:[" (",M.length,")"]})]}),(0,a.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap",children:M.map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>tU(r.id,e,r.provider),className:"shrink-0 rounded-[3px] bg-black/5 px-1.5 py-px transition-colors hover:bg-black/10 hover:text-text dark:bg-white/5 dark:hover:bg-white/10",title:(0,u.Tl)("Show this quota row"),children:(0,_.M)(e.name)},A(e)))}),M.length>1&&(0,a.jsx)("button",{type:"button",onClick:()=>tH(r.id),className:"shrink-0 rounded-md px-1.5 py-px transition-colors hover:bg-black/5 hover:text-text dark:hover:bg-white/5",children:(0,u.Tl)("Show all")})]})]})]},r.id)})}),(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 dark:border-white/10 dark:bg-white/[0.03]",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,a.jsx)("span",{className:"text-xs text-text-muted",children:tX?t0:tZ}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("select",{value:t1?"custom":String(to),onChange:e=>{let t=e.target.value;if("custom"===t)return;let r=Number.parseInt(t,10);Number.isFinite(r)&&(tl(1),tc(r),tu(String(r)))},className:"h-8 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Accounts per page",children:[g.map(e=>(0,a.jsx)("option",{value:String(e),children:(0,u.Tl)("{count} / page").replace("{count}",String(e))},e)),(0,a.jsx)("option",{value:"custom",children:"Custom"})]}),(0,a.jsx)("input",{type:"number",min:"1",max:String(500),inputMode:"numeric",value:td,onChange:e=>tu(e.target.value),onBlur:()=>{let e=Number.parseInt(td,10);if(!Number.isFinite(e))return void tu(String(to));let t=Math.min(500,Math.max(1,e));tl(1),tc(t),tu(String(t))},onKeyDown:e=>{if("Enter"!==e.key)return;let t=Number.parseInt(td,10);if(!Number.isFinite(t))return void tu(String(to));let r=Math.min(500,Math.max(1,t));tl(1),tc(r),tu(String(r))},className:"h-8 w-20 rounded-lg border border-black/10 bg-black/[0.02] px-2 text-xs text-text outline-none transition-colors hover:bg-black/5 dark:border-white/10 dark:bg-white/[0.03] dark:hover:bg-white/10","aria-label":"Custom accounts per page",placeholder:"Custom"}),(0,a.jsx)("span",{className:"text-xs text-text-muted",children:(0,u.Tl)("Page {page} / {total}").replace("{page}",String(tm.page)).replace("{total}",String(tm.totalPages))})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("button",{type:"button",onClick:()=>tl(1),disabled:tm.page<=1||J||L,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"First Page"}),(0,a.jsx)("button",{type:"button",onClick:()=>tl(e=>Math.max(1,e-1)),disabled:tm.page<=1||J||L,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Previous accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,a.jsx)("button",{type:"button",onClick:()=>tl(e=>Math.min(tm.totalPages,e+1)),disabled:tm.page>=tm.totalPages||J||L,className:"flex h-8 w-8 items-center justify-center rounded-lg border border-black/10 text-text transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5","aria-label":"Next accounts page",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,a.jsx)("button",{type:"button",onClick:()=>tl(tm.totalPages),disabled:tm.page>=tm.totalPages||J||L,className:"flex h-8 items-center rounded-lg border border-black/10 px-3 text-xs text-text transition-colors hover:bg-black/5 disabled:cursor-not-allowed disabled:opacity-40 dark:border-white/10 dark:hover:bg-white/5",children:"Last Page"})]})]})})]}),(0,a.jsx)(ex.uo,{isOpen:!!ec,onClose:()=>{el||ev(null)},onConfirm:async()=>{let e=ec?.connection;e&&(await tP(e.id,e.provider),ev(null))},title:ec?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:ec?.connection?.provider==="claude"?`Refills your ${ej(c[ec.connection.id]?.raw?.resetCredits?.clears)} now for ${w(ec.connection)||"this account"} \xb7 your weekly reset day stays ${ek(c[ec.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${ec.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${w(ec?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${ec?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!el}),eS&&(0,a.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,a.jsxs)("div",{className:"w-full max-w-2xl overflow-hidden rounded-2xl border border-black/15 bg-white shadow-2xl ring-1 ring-black/10 dark:border-white/15 dark:bg-neutral-950 dark:ring-white/10",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3 border-b border-black/10 bg-black/[0.03] px-4 py-3 dark:border-white/10 dark:bg-white/[0.04]",children:[(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("h3",{className:"text-base font-semibold text-text",children:eS.data?.kind==="claude"?"Claude Code Limit Resets":"Codex Reset Credit Expiry"}),(0,a.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:w(eS.connection)||(eS.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,a.jsx)("button",{type:"button",onClick:()=>eA(null),className:"flex h-8 w-8 items-center justify-center rounded-lg text-text-muted transition-colors hover:bg-black/5 hover:text-text dark:hover:bg-white/5","aria-label":"Close reset credit expiry modal",children:(0,a.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,a.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:eS.loading?(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,a.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):eS.error?(0,a.jsx)("div",{className:"rounded-xl border border-red-500/20 bg-red-500/10 px-3 py-2 text-sm text-red-600 dark:text-red-300",children:eS.error}):eS.data?.kind==="claude"&&eS.data.grants?.length?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("span",{children:[eS.data.availableCount??0," reset",1===eS.data.availableCount?"":"s"," left"]}),(0,a.jsxs)("span",{children:["Weekly reset day: ",ek(eS.data.weeklyResetsAt)]})]}),(0,a.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,a.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,a.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Reset"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Left"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Refills"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Use By"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,a.jsx)("tbody",{children:(eS.data.grants||[]).map(e=>(0,a.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,a.jsxs)("td",{className:"px-3 py-2",children:[(0,a.jsx)("div",{className:"text-text",children:e.label||e.id}),(0,a.jsx)("span",{className:"mt-1 inline-block rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.resetsLeft<=0?"used":e.paused?"paused":e.endsAt&&new Date(e.endsAt).getTime()<=Date.now()?"expired":e.usableNow?"usable now":e.startsAt&&new Date(e.startsAt).getTime()>Date.now()?"not started":e.useRequiresLimit?"at limit only":"unavailable"})]}),(0,a.jsxs)("td",{className:"whitespace-nowrap px-3 py-2 font-medium tabular-nums text-text",children:[e.resetsLeft," / ",e.resetsTotal]}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-muted",children:ej(e.clears)}),(0,a.jsx)("td",{className:"px-3 py-2 text-text",children:ek(e.endsAt)}),(0,a.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text",children:eN(e.endsAt)})]},e.id))})]})})]}):eS.data?.credits?.length?(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-black/10 bg-black/[0.02] px-3 py-2 text-xs text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:[(0,a.jsxs)("span",{children:[eS.data.credits.length," reset credit",1===eS.data.credits.length?"":"s"]}),(0,a.jsxs)("span",{children:[eS.data.availableCount??0," available"]})]}),(0,a.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,a.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,a.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,a.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,a.jsx)("tbody",{children:eS.data.credits.map((e,t)=>(0,a.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,a.jsx)("td",{className:"px-3 py-2",children:(0,a.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:e.status||"unknown"})}),(0,a.jsx)("td",{className:"px-3 py-2 text-text-muted",children:ek(e.grantedAt)}),(0,a.jsx)("td",{className:"px-3 py-2 text-text",children:ek(e.expiresAt)}),(0,a.jsx)("td",{className:"px-3 py-2 font-medium text-text",children:eN(e.expiresAt)})]},`${e.status}-${e.expiresAt||t}`))})]})})]}):(0,a.jsx)("div",{className:"rounded-xl border border-black/10 bg-black/[0.02] px-3 py-8 text-center text-sm text-text-muted dark:border-white/10 dark:bg-white/[0.03]",children:eS.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),(0,a.jsx)(ex.wI,{isOpen:eT,connection:e$,proxyPools:eD,onSave:tR,onClose:()=>{eq(!1),eP(null)}}),(0,a.jsx)(ex.aF,{isOpen:e9,title:(0,u.Tl)("Card display preferences"),onClose:()=>e7(!1),children:(0,a.jsxs)("div",{className:"flex flex-col gap-4 text-xs",children:[(0,a.jsx)("p",{className:"text-text-muted",children:(0,u.Tl)("Customize which quota cards are displayed and their layout style.")}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 py-2 border-b border-border",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm text-text",children:(0,u.Tl)("Show external pushed cards")}),(0,a.jsx)("p",{className:"text-text-muted",children:(0,u.Tl)("Display companion cards (CreditDaddy free quotas & status notes)")})]}),(0,a.jsx)(eu.default,{checked:e4,onChange:e=>te("quotaShowExternalCards",e,e3)})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 py-2 border-b border-border",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm text-text",children:(0,u.Tl)("Hide no-quota provider cards")}),(0,a.jsx)("p",{className:"text-text-muted",children:(0,u.Tl)("Hide standard connection cards that have no quota to display")})]}),(0,a.jsx)(eu.default,{checked:e0,onChange:e=>te("quotaHideNoQuota",e,e1)})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 py-2 border-b border-border",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm text-text",children:(0,u.Tl)("Hide zero-balance provider cards")}),(0,a.jsx)("p",{className:"text-text-muted",children:(0,u.Tl)("Hide connection cards whose quota is fully depleted (0 balance / 0 credits)")})]}),(0,a.jsx)(eu.default,{checked:e5,onChange:e=>te("quotaHideZeroBalance",e,e2)})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 py-2",children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("p",{className:"font-medium text-sm text-text",children:(0,u.Tl)("Nested cycle quota bars")}),(0,a.jsx)("p",{className:"text-text-muted",children:(0,u.Tl)("Draw contained subscription windows as nested concentric tracks instead of flat rows")})]}),(0,a.jsx)(eu.default,{checked:e6,onChange:e=>te("quotaNestedCycle",e,e8)})]})]})})]})}}},e=>{e.O(0,[3170,305,1321,5497,6109,8441,3794,7358],()=>e(e.s=26048)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9305],{41913:(e,s,n)=>{Promise.resolve().then(n.bind(n,96748)),Promise.resolve().then(n.bind(n,56319)),Promise.resolve().then(n.bind(n,56061)),Promise.resolve().then(n.bind(n,92542)),Promise.resolve().then(n.bind(n,29366)),Promise.resolve().then(n.bind(n,84588)),Promise.resolve().then(n.bind(n,80229)),Promise.resolve().then(n.bind(n,45455)),Promise.resolve().then(n.bind(n,30815)),Promise.resolve().then(n.bind(n,73579)),Promise.resolve().then(n.bind(n,92173)),Promise.resolve().then(n.bind(n,95088)),Promise.resolve().then(n.bind(n,24747)),Promise.resolve().then(n.bind(n,80752)),Promise.resolve().then(n.bind(n,23936)),Promise.resolve().then(n.bind(n,11910)),Promise.resolve().then(n.bind(n,76432)),Promise.resolve().then(n.bind(n,61500)),Promise.resolve().then(n.bind(n,62899)),Promise.resolve().then(n.bind(n,94230)),Promise.resolve().then(n.bind(n,21931)),Promise.resolve().then(n.bind(n,91450)),Promise.resolve().then(n.bind(n,7648)),Promise.resolve().then(n.bind(n,25086)),Promise.resolve().then(n.bind(n,28815)),Promise.resolve().then(n.bind(n,28058)),Promise.resolve().then(n.bind(n,81127)),Promise.resolve().then(n.bind(n,72908)),Promise.resolve().then(n.bind(n,4823)),Promise.resolve().then(n.bind(n,90882)),Promise.resolve().then(n.bind(n,75480)),Promise.resolve().then(n.bind(n,51825)),Promise.resolve().then(n.bind(n,66996)),Promise.resolve().then(n.bind(n,23615)),Promise.resolve().then(n.bind(n,32486)),Promise.resolve().then(n.bind(n,28067)),Promise.resolve().then(n.bind(n,98)),Promise.resolve().then(n.bind(n,92622)),Promise.resolve().then(n.bind(n,21110)),Promise.resolve().then(n.bind(n,38587)),Promise.resolve().then(n.bind(n,98542)),Promise.resolve().then(n.bind(n,97677)),Promise.resolve().then(n.bind(n,49770)),Promise.resolve().then(n.bind(n,30312))}},e=>{e.O(0,[3170,305,1321,5497,8441,3794,7358],()=>e(e.s=41913)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7018],{8247:(e,t,s)=>{"use strict";s.d(t,{HY:()=>o,Kw:()=>l});let r={"perplexity-agent":"perplexity","gitlab-duo":"gitlab","vercel-ai-gateway":"vercel","b.ai":"bai","b-ai":"bai","siliconflow-cn":"siliconflow","longcat-intl":"longcat","stepfun-cn":"stepfun","stepfun-plan":"stepfun","stepfun-plan-cn":"stepfun","step-cn":"stepfun","stepp-cn":"stepfun",stepp:"stepfun",step:"stepfun","sfp-cn":"stepfun",sfp:"stepfun",sfpcn:"stepfun","sf-cn":"stepfun",sfcn:"stepfun",sf:"stepfun","step-plan-cn":"stepfun","step-plan":"stepfun"},a={bai:".svg"},n=new Set;function i(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function o(e){let t=function(e){let t=i(e);if(!t||n.has(t))return"";let s=r[t]||t;return n.has(s)?"":s}(e);return t?`/providers/${t}${a[t]||".png"}`:null}function l(e){let t=i(e);t&&n.add(t);let s=r[t];s&&n.add(s)}},11059:(e,t,s)=>{"use strict";s.d(t,{C:()=>n});var r=s(12115),a=s(65635);function n(e=2e3){let[t,s]=(0,r.useState)(null),i=(0,r.useRef)(null);return{copied:t,copy:(0,r.useCallback)((t,r="default")=>{(0,a.e)(t),s(r),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{s(null)},e)},[e])}}},23333:()=>{},27565:(e,t,s)=>{Promise.resolve().then(s.bind(s,85941))},39092:(e,t,s)=>{"use strict";e.exports=s(73279).style},65635:(e,t,s)=>{"use strict";async function r(e){let t=String(e??"");try{if(navigator?.clipboard?.writeText)return await navigator.clipboard.writeText(t),!0}catch{}try{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select();let s=document.execCommand("copy");return document.body.removeChild(e),s}catch{return!1}}s.d(t,{e:()=>r})},67852:(e,t,s)=>{"use strict";s.d(t,{A:()=>em});var r=s(95155),a=s(12115),n=s(14051),i=s.n(n),o=s(8247),l=s(35650),c=s(41658),d=s(74519),h=s(69036),x=s(50247),u=s(77622),m=s(89403),f=s(29892),p=s(70224),g=s(84670),b=s(68031),v=s(54173),y=s(49651),j=s(87111),w=s(41909),N=s(50159),_=s(80323),S=s(54689),A=s(41185),k=s(53006),C=s(36900),R=s(71657),z=s(40942),I=s(62391),F=s(42887),T=s(25097),O=s(82640),H=s(10572),D=s(91685),E=s(73119),P=s(50661),L=s(86619),M=s(89717),W=s(50658),$=s(59435),G=s(4722),q=s(85836),B=s(76189),K=s(12068),U=s(76147),Y=s(37058),J=s(46201),V=s(83482),Q=s(72057),X=s(72638),Z=s(16743),ee=s(35811),et=s(28296),es=s(52302),er=s(72769),ea=s(85979),en=s(13448),ei=s(37841),eo=s(9897),el=s(94938),ec=s(56513),ed=s(86097),eh=s(8297);let ex={openai:l.A,anthropic:c.A,claude:d.A,gemini:h.A,deepseek:x.A,minimax:u.A,"minimax-cn":u.A,groq:m.A,nvidia:f.A,xai:p.A,openrouter:g.A,mistral:b.A,cohere:v.A,perplexity:y.A,together:j.A,fireworks:w.A,siliconflow:N.A,"siliconflow-cn":N.A,kimi:_.A,glm:S.A,"glm-cn":S.A,"aws-polly":A.A,azure:k.A,"cloudflare-ai":C.A,huggingface:R.A,ollama:z.A,sambanova:I.A,cerebras:F.A,venice:T.A,nebius:O.A,hyperbolic:H.A,featherless:D.A,baidu:E.A,tencent:P.A,"volcengine-ark":L.A,github:M.A,cursor:W.A,cline:$.A,windsurf:G.A,kiro:q.A,trae:B.A,"jina-ai":K.A,exa:U.A,tavily:Y.A,"brave-search":J.A,searchapi:V.A,searxng:Q.A,"fish-audio":X.A,assemblyai:Z.A,elevenlabs:ee.A,"voyage-ai":et.A,"fal-ai":es.A,recraft:er.A,"stability-ai":ea.A,runwayml:en.A,morph:ei.A,comfyui:eo.A,sensenova:el.A,longcat:ec.A,vertex:ed.A,"vercel-ai-gateway":eh.A};function eu({providerId:e,size:t=32,className:s=""}){let a=ex[e];if(!a)return null;let n=a.Color||a;return(0,r.jsx)(n,{size:t,className:s})}function em({src:e,providerId:t,alt:s,size:n=32,className:i="",fallbackText:l="?",fallbackColor:c}){let d=function(e,t){if(t)return(0,o.HY)(t);if(!e)return null;let s=String(e).match(/^\/providers\/([^/]+)\.png$/i);return s?(0,o.HY)(s[1]):e}(e,t),[h,x]=(0,a.useState)(!1);return t&&ex[t]?(0,r.jsx)(eu,{providerId:t,size:n,className:i}):!d||h?(0,r.jsx)("span",{className:`inline-flex items-center justify-center font-bold rounded-lg ${i}`.trim(),style:{width:n,height:n,color:c,fontSize:Math.max(10,Math.floor(.38*n))},children:l}):(0,r.jsx)("img",{src:d,alt:s,width:n,height:n,className:i,loading:"lazy",decoding:"async",onError:()=>{let e=d.match(/^\/providers\/([^/]+)\.png$/i);e&&(0,o.Kw)(e[1]),t&&(0,o.Kw)(t),x(!0)}})}em.propTypes={src:i().string,providerId:i().string,alt:i().string,size:i().number,className:i().string,fallbackText:i().string,fallbackColor:i().string}},73279:(e,t,s)=>{"use strict";var r=s(41463);s(23333);var a=s(12115),n=a&&"object"==typeof a&&"default"in a?a:{default:a},i=void 0!==r&&r.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,s=t.name,r=void 0===s?"stylesheet":s,a=t.optimizeForSpeed,n=void 0===a?i:a;c(o(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",c("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,s=e.prototype;return s.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},s.isOptimizeForSpeed=function(){return this._optimizeForSpeed},s.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(i||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,s){return"number"==typeof s?e._serverSheet.cssRules[s]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),s},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},s.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},s.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},s.insertRule=function(e,t){if(c(o(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var s=this.getSheet();"number"!=typeof t&&(t=s.cssRules.length);try{s.insertRule(e,t)}catch(t){return i||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},s.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var s="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!s.cssRules[e])return e;s.deleteRule(e);try{s.insertRule(t,e)}catch(r){i||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),s.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];c(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},s.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},s.flush=function(){this._injected=!1,this._rulesCount=0,"u">typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},s.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,s){return s?t=t.concat(Array.prototype.map.call(e.getSheetForTag(s).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},s.makeStyleTag=function(e,t,s){t&&c(o(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var a=document.head||document.getElementsByTagName("head")[0];return s?a.insertBefore(r,s):a.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,s=e.length;s;)t=33*t^e.charCodeAt(--s);return t>>>0},h={};function x(e,t){if(!t)return"jsx-"+e;var s=String(t),r=e+s;return h[r]||(h[r]="jsx-"+d(e+"-"+s)),h[r]}function u(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var s=e+t;return h[s]||(h[s]=t.replace(/__jsx-style-dynamic-selector/g,e)),h[s]}var m=function(){function e(e){var t=void 0===e?{}:e,s=t.styleSheet,r=void 0===s?null:s,a=t.optimizeForSpeed,n=void 0!==a&&a;this._sheet=r||new l({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),r&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var s=this.getIdAndRules(e),r=s.styleId,a=s.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var n=a.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=n,this._instancesCounts[r]=1},t.remove=function(e){var t=this,s=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(s in this._instancesCounts,"styleId: `"+s+"` not found"),this._instancesCounts[s]-=1,this._instancesCounts[s]<1){var r=this._fromServer&&this._fromServer[s];r?(r.parentNode.removeChild(r),delete this._fromServer[s]):(this._indices[s].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[s]),delete this._instancesCounts[s]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],s=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return s[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,s;return t=this.cssRules(),void 0===(s=e)&&(s={}),t.map(function(e){var t=e[0],r=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:s.nonce?s.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,s=e.dynamic,r=e.id;if(s){var a=x(r,s);return{styleId:a,rules:Array.isArray(t)?t.map(function(e){return u(a,e)}):[u(a,t)]}}return{styleId:x(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=a.createContext(null);f.displayName="StyleSheetContext";var p=n.default.useInsertionEffect||n.default.useLayoutEffect,g="u">typeof window?new m:void 0;function b(e){var t=g||a.useContext(f);return t&&("u"<typeof window?t.add(e):p(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}b.dynamic=function(e){return e.map(function(e){return x(e[0],e[1])}).join(" ")},t.style=b},85941:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>y});var r=s(95155),a=s(39092),n=s.n(a),i=s(73321),o=s(12115);function l(){let[e,t]=(0,o.useState)(!1),s=(0,i.useRouter)();return(0,r.jsxs)("nav",{className:"fixed top-0 z-50 w-full bg-[#181411]/80 backdrop-blur-md border-b border-[#3a2f27]",children:[(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[(0,r.jsxs)("button",{type:"button",className:"flex items-center gap-3 cursor-pointer bg-transparent border-none p-0",onClick:()=>s.push("/"),"aria-label":"Navigate to home",children:[(0,r.jsx)("div",{className:"size-8 rounded bg-linear-to-br from-[#f97815] to-orange-700 flex items-center justify-center text-white",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:"hub"})}),(0,r.jsx)("h2",{className:"text-white text-xl font-bold tracking-tight",children:"10Router"})]}),(0,r.jsxs)("div",{className:"hidden md:flex items-center gap-8",children:[(0,r.jsx)("a",{className:"text-gray-300 hover:text-white text-sm font-medium transition-colors",href:"#features",children:"Features"}),(0,r.jsx)("a",{className:"text-gray-300 hover:text-white text-sm font-medium transition-colors",href:"#how-it-works",children:"How it Works"}),(0,r.jsx)("a",{className:"text-gray-300 hover:text-white text-sm font-medium transition-colors",href:"https://github.com/techysy/10router#readme",target:"_blank",rel:"noopener noreferrer",children:"Docs"}),(0,r.jsxs)("a",{className:"text-gray-300 hover:text-white text-sm font-medium transition-colors flex items-center gap-1",href:"https://github.com/techysy/10router",target:"_blank",rel:"noopener noreferrer",children:["GitHub ",(0,r.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"open_in_new"})]})]}),(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)("button",{onClick:()=>s.push("/dashboard"),className:"hidden sm:flex h-9 items-center justify-center rounded-lg px-4 bg-[#f97815] hover:bg-[#e0650a] transition-all text-[#181411] text-sm font-bold shadow-[0_0_15px_rgba(249,120,21,0.4)] hover:shadow-[0_0_20px_rgba(249,120,21,0.6)]",children:"Get Started"}),(0,r.jsx)("button",{className:"md:hidden text-white",onClick:()=>t(!e),children:(0,r.jsx)("span",{className:"material-symbols-outlined",children:e?"close":"menu"})})]})]}),e&&(0,r.jsx)("div",{className:"md:hidden border-t border-[#3a2f27] bg-[#181411]/95 backdrop-blur-md",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 p-6",children:[(0,r.jsx)("a",{className:"text-gray-300 hover:text-white text-sm font-medium transition-colors",href:"#features",onClick:()=>t(!1),children:"Features"}),(0,r.jsx)("a",{className:"text-gray-300 hover:text-white text-sm font-medium transition-colors",href:"#how-it-works",onClick:()=>t(!1),children:"How it Works"}),(0,r.jsx)("a",{className:"text-gray-300 hover:text-white text-sm font-medium transition-colors",href:"https://github.com/techysy/10router#readme",target:"_blank",rel:"noopener noreferrer",children:"Docs"}),(0,r.jsx)("a",{className:"text-gray-300 hover:text-white text-sm font-medium transition-colors",href:"https://github.com/techysy/10router",target:"_blank",rel:"noopener noreferrer",children:"GitHub"}),(0,r.jsx)("button",{onClick:()=>s.push("/dashboard"),className:"h-9 rounded-lg bg-[#f97815] hover:bg-[#e0650a] text-[#181411] text-sm font-bold",children:"Get Started"})]})})]})}function c(){return(0,r.jsxs)("section",{className:"relative pt-32 pb-20 px-6 min-h-[90vh] flex flex-col items-center justify-center overflow-hidden",children:[(0,r.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] bg-[#f97815]/10 rounded-full blur-[120px] pointer-events-none"}),(0,r.jsxs)("div",{className:"relative z-10 max-w-4xl w-full text-center flex flex-col items-center gap-8",children:[(0,r.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-[#3a2f27] bg-[#23180f]/50 px-3 py-1 text-xs font-medium text-[#f97815]",children:[(0,r.jsx)("span",{className:"flex h-2 w-2 rounded-full bg-[#f97815] animate-pulse"}),"v1.0 is now live"]}),(0,r.jsxs)("h1",{className:"text-5xl md:text-7xl font-black leading-[1.1] tracking-tight",children:["One Endpoint for ",(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-[#f97815]",children:"All AI Providers"})]}),(0,r.jsx)("p",{className:"text-lg md:text-xl text-gray-400 max-w-2xl mx-auto font-light",children:"AI endpoint proxy with web dashboard - A JavaScript port of CLIProxyAPI. Works seamlessly with Claude Code, OpenAI Codex, Cline, RooCode, and other CLI tools."}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-4 w-full",children:[(0,r.jsxs)("button",{className:"h-12 px-8 rounded-lg bg-[#f97815] hover:bg-[#e0650a] text-[#181411] text-base font-bold transition-all shadow-[0_0_15px_rgba(249,120,21,0.4)] flex items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined",children:"rocket_launch"}),"Get Started"]}),(0,r.jsxs)("a",{href:"https://github.com/techysy/10router",target:"_blank",rel:"noopener noreferrer",className:"h-12 px-8 rounded-lg border border-[#3a2f27] bg-[#23180f] hover:bg-[#3a2f27] text-white text-base font-bold transition-all flex items-center gap-2",children:[(0,r.jsx)("span",{className:"material-symbols-outlined",children:"code"}),"View on GitHub"]})]})]})]})}var d=s(67852);let h=[{id:"claude",name:"Claude Code",image:"/providers/claude.png"},{id:"codex",name:"OpenAI Codex",image:"/providers/codex.png"},{id:"cline",name:"Cline",image:"/providers/cline.png"},{id:"cursor",name:"Cursor",image:"/providers/cursor.png"}],x=[{id:"openai",name:"OpenAI",color:"bg-emerald-500",textColor:"text-white"},{id:"anthropic",name:"Anthropic",color:"bg-orange-400",textColor:"text-white"},{id:"gemini",name:"Gemini",color:"bg-blue-500",textColor:"text-white"},{id:"github",name:"GitHub Copilot",color:"bg-gray-700",textColor:"text-white"}];function u(){let[e,t]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let e=setInterval(()=>{t(e=>(e+1)%x.length)},2e3);return()=>clearInterval(e)},[]),(0,r.jsxs)("div",{className:"mt-16 w-full max-w-4xl relative h-[360px] hidden md:flex items-center justify-center animate-[float_6s_ease-in-out_infinite]",children:[(0,r.jsxs)("div",{className:"relative z-20 w-32 h-32 rounded-full bg-[#23180f] border-2 border-[#f97815] shadow-[0_0_40px_rgba(249,120,21,0.3)] flex flex-col items-center justify-center gap-1 group cursor-pointer hover:scale-105 transition-transform duration-500",children:[(0,r.jsx)("span",{className:"material-symbols-outlined text-4xl text-[#f97815]",children:"hub"}),(0,r.jsx)("span",{className:"text-xs font-bold text-white tracking-widest uppercase",children:"10Router"}),(0,r.jsx)("div",{className:"absolute inset-0 rounded-full border border-[#f97815]/30 animate-ping opacity-20"})]}),(0,r.jsx)("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 flex flex-col gap-7",children:h.map(e=>(0,r.jsx)("div",{className:"flex items-center gap-3 opacity-70 hover:opacity-100 transition-opacity group",children:(0,r.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-[#23180f] border border-[#3a2f27] flex items-center justify-center overflow-hidden p-2 hover:border-[#f97815]/50 transition-all hover:scale-105",children:(0,r.jsx)(d.A,{src:e.image,alt:e.name,size:48,className:"object-contain rounded-xl max-w-[48px] max-h-[48px]",fallbackText:e.name.slice(0,2).toUpperCase()})})},e.id))}),(0,r.jsxs)("svg",{className:"absolute inset-0 w-full h-full z-10 pointer-events-none stroke-yellow-700",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{className:"animate-[dash_2s_linear_infinite]",d:"M 60 50 C 250 70, 250 180, 360 180",fill:"none",strokeDasharray:"5,5",strokeWidth:"2"}),(0,r.jsx)("path",{className:"animate-[dash_2s_linear_infinite]",d:"M 60 140 C 250 140, 250 180, 360 180",fill:"none",strokeDasharray:"5,5",strokeWidth:"2"}),(0,r.jsx)("path",{className:"animate-[dash_2s_linear_infinite]",d:"M 60 210 C 250 210, 250 180, 360 180",fill:"none",strokeDasharray:"5,5",strokeWidth:"2"}),(0,r.jsx)("path",{className:"animate-[dash_2s_linear_infinite]",d:"M 60 300 C 250 280, 250 180, 360 180",fill:"none",strokeDasharray:"5,5",strokeWidth:"2"})]}),(0,r.jsxs)("svg",{className:"absolute inset-0 w-full h-full z-10 pointer-events-none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M 440 180 C 550 180, 550 50, 740 50",fill:"none",stroke:0===e?"#f97815":"rgb(75, 85, 99)",strokeWidth:0===e?"3":"2",className:0===e?"animate-pulse":""}),(0,r.jsx)("path",{d:"M 440 180 C 550 180, 550 130, 740 130",fill:"none",stroke:1===e?"#f97815":"rgb(75, 85, 99)",strokeWidth:1===e?"3":"2",className:1===e?"animate-pulse":""}),(0,r.jsx)("path",{d:"M 440 180 C 550 180, 550 230, 740 230",fill:"none",stroke:2===e?"#f97815":"rgb(75, 85, 99)",strokeWidth:2===e?"3":"2",className:2===e?"animate-pulse":""}),(0,r.jsx)("path",{d:"M 440 180 C 550 180, 550 310, 740 310",fill:"none",stroke:3===e?"#f97815":"rgb(75, 85, 99)",strokeWidth:3===e?"3":"2",className:3===e?"animate-pulse":""})]}),(0,r.jsx)("div",{className:"absolute right-0 top-0 bottom-0 flex flex-col justify-between py-6",children:x.map((t,s)=>(0,r.jsx)("div",{className:`px-4 py-2 rounded-lg ${t.color} ${t.textColor} flex items-center justify-center font-bold text-xs shadow-lg hover:scale-110 transition-all cursor-help min-w-[140px] ${e===s?"ring-4 ring-[#f97815]/50 scale-110":""}`,title:t.name,children:t.name},t.id))}),(0,r.jsx)("div",{className:"md:hidden mt-8 w-full p-4 rounded-lg bg-[#23180f] border border-[#3a2f27]",children:(0,r.jsx)("p",{className:"text-sm text-center text-gray-400",children:"Interactive diagram visible on desktop"})})]})}function m(){return(0,r.jsx)("section",{className:"py-24 border-y border-[#3a2f27] bg-[#23180f]/30",id:"how-it-works",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto px-6",children:[(0,r.jsxs)("div",{className:"mb-16",children:[(0,r.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"How 10Router Works"}),(0,r.jsx)("p",{className:"text-gray-400 max-w-xl text-lg",children:"Data flows seamlessly from your application through our intelligent routing layer to the best provider for the job."})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 relative",children:[(0,r.jsx)("div",{className:"hidden md:block absolute top-12 left-[16%] right-[16%] h-[2px] bg-linear-to-r from-gray-700 via-[#f97815] to-gray-700 -z-10"}),(0,r.jsxs)("div",{className:"flex flex-col gap-6 relative group",children:[(0,r.jsx)("div",{className:"w-24 h-24 rounded-2xl bg-[#181411] border border-[#3a2f27] flex items-center justify-center shadow-xl group-hover:border-gray-500 transition-colors z-10 mx-auto md:mx-0",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-4xl text-gray-300",children:"terminal"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-xl font-bold mb-2",children:"1. CLI & SDKs"}),(0,r.jsx)("p",{className:"text-sm text-gray-400",children:"Your requests start from your favorite tools or our unified SDK. Just change the base URL."})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-6 relative group md:items-center md:text-center",children:[(0,r.jsx)("div",{className:"w-24 h-24 rounded-2xl bg-[#181411] border-2 border-[#f97815] flex items-center justify-center shadow-[0_0_30px_rgba(249,120,21,0.2)] z-10 mx-auto",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-4xl text-[#f97815] animate-pulse",children:"hub"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-xl font-bold mb-2 text-[#f97815]",children:"2. 10Router Hub"}),(0,r.jsx)("p",{className:"text-sm text-gray-400",children:"Our engine analyzes the prompt, checks provider health, and routes for lowest latency or cost."})]})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-6 relative group md:items-end md:text-right",children:[(0,r.jsx)("div",{className:"w-24 h-24 rounded-2xl bg-[#181411] border border-[#3a2f27] flex items-center justify-center shadow-xl group-hover:border-gray-500 transition-colors z-10 mx-auto md:mx-0",children:(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,r.jsx)("div",{className:"w-6 h-6 rounded bg-white/10"}),(0,r.jsx)("div",{className:"w-6 h-6 rounded bg-white/10"}),(0,r.jsx)("div",{className:"w-6 h-6 rounded bg-white/10"}),(0,r.jsx)("div",{className:"w-6 h-6 rounded bg-white/10"})]})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-xl font-bold mb-2",children:"3. AI Providers"}),(0,r.jsx)("p",{className:"text-sm text-gray-400",children:"The request is fulfilled by OpenAI, Anthropic, Gemini, or others instantly."})]})]})]})]})})}let f=[{icon:"link",title:"Unified Endpoint",desc:"Access all providers via a single standard API URL.",colors:{border:"hover:border-blue-500/50",bg:"hover:bg-blue-500/5",iconBg:"bg-blue-500/10",iconText:"text-blue-500",titleHover:"group-hover:text-blue-400"}},{icon:"bolt",title:"Easy Setup",desc:"Get up and running in minutes with npx command.",colors:{border:"hover:border-orange-500/50",bg:"hover:bg-orange-500/5",iconBg:"bg-orange-500/10",iconText:"text-orange-500",titleHover:"group-hover:text-orange-400"}},{icon:"shield_with_heart",title:"Model Fallback",desc:"Automatically switch providers on failure or high latency.",colors:{border:"hover:border-rose-500/50",bg:"hover:bg-rose-500/5",iconBg:"bg-rose-500/10",iconText:"text-rose-500",titleHover:"group-hover:text-rose-400"}},{icon:"monitoring",title:"Usage Tracking",desc:"Detailed analytics and cost monitoring across all models.",colors:{border:"hover:border-purple-500/50",bg:"hover:bg-purple-500/5",iconBg:"bg-purple-500/10",iconText:"text-purple-500",titleHover:"group-hover:text-purple-400"}},{icon:"key",title:"OAuth & API Keys",desc:"Securely manage credentials in one vault.",colors:{border:"hover:border-amber-500/50",bg:"hover:bg-amber-500/5",iconBg:"bg-amber-500/10",iconText:"text-amber-500",titleHover:"group-hover:text-amber-400"}},{icon:"cloud_sync",title:"Cloud Sync",desc:"Sync your configurations across devices instantly.",colors:{border:"hover:border-sky-500/50",bg:"hover:bg-sky-500/5",iconBg:"bg-sky-500/10",iconText:"text-sky-500",titleHover:"group-hover:text-sky-400"}},{icon:"terminal",title:"CLI Support",desc:"Works with Claude Code, Codex, Cline, Cursor, and more.",colors:{border:"hover:border-emerald-500/50",bg:"hover:bg-emerald-500/5",iconBg:"bg-emerald-500/10",iconText:"text-emerald-500",titleHover:"group-hover:text-emerald-400"}},{icon:"dashboard",title:"Dashboard",desc:"Visual dashboard for real-time traffic analysis.",colors:{border:"hover:border-fuchsia-500/50",bg:"hover:bg-fuchsia-500/5",iconBg:"bg-fuchsia-500/10",iconText:"text-fuchsia-500",titleHover:"group-hover:text-fuchsia-400"}}];function p(){return(0,r.jsx)("section",{className:"py-24 px-6",id:"features",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsxs)("div",{className:"mb-16",children:[(0,r.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Powerful Features"}),(0,r.jsx)("p",{className:"text-gray-400 max-w-xl text-lg",children:"Everything you need to manage your AI infrastructure in one place, built for scale."})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:f.map(e=>(0,r.jsxs)("div",{className:`p-6 rounded-xl bg-[#23180f] border border-[#3a2f27] ${e.colors.border} ${e.colors.bg} transition-all duration-300 group`,children:[(0,r.jsx)("div",{className:`w-10 h-10 rounded-lg ${e.colors.iconBg} flex items-center justify-center mb-4 ${e.colors.iconText} group-hover:scale-110 transition-transform duration-300`,children:(0,r.jsx)("span",{className:"material-symbols-outlined",children:e.icon})}),(0,r.jsx)("h3",{className:`text-lg font-bold mb-2 ${e.colors.titleHover} transition-colors`,children:e.title}),(0,r.jsx)("p",{className:"text-sm text-gray-400 leading-relaxed",children:e.desc})]},e.title))})]})})}var g=s(11059);function b(){let{copied:e,copy:t}=(0,g.C)();return(0,r.jsx)("section",{className:"py-24 px-6 bg-[#120f0d]",children:(0,r.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row gap-16 items-start",children:[(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsx)("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:"Get Started in 30 Seconds"}),(0,r.jsx)("p",{className:"text-gray-400 text-lg mb-8",children:"Install 10Router, configure your providers via web dashboard, and start routing AI requests."}),(0,r.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)("div",{className:"flex-none w-8 h-8 rounded-full bg-[#f97815]/20 text-[#f97815] flex items-center justify-center font-bold",children:"1"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-bold text-lg",children:"Install 10Router"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Run npx command to start the server instantly"})]})]}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)("div",{className:"flex-none w-8 h-8 rounded-full bg-[#f97815]/20 text-[#f97815] flex items-center justify-center font-bold",children:"2"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-bold text-lg",children:"Open Dashboard"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Configure providers and API keys via web interface"})]})]}),(0,r.jsxs)("div",{className:"flex gap-4",children:[(0,r.jsx)("div",{className:"flex-none w-8 h-8 rounded-full bg-[#f97815]/20 text-[#f97815] flex items-center justify-center font-bold",children:"3"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-bold text-lg",children:"Route Requests"}),(0,r.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Point your CLI tools to http://localhost:20128"})]})]})]})]}),(0,r.jsx)("div",{className:"flex-1 w-full",children:(0,r.jsxs)("div",{className:"rounded-xl overflow-hidden bg-[#1e1e1e] border border-[#3a2f27] shadow-2xl",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3 bg-[#252526] border-b border-gray-700",children:[(0,r.jsx)("div",{className:"w-3 h-3 rounded-full bg-red-500"}),(0,r.jsx)("div",{className:"w-3 h-3 rounded-full bg-yellow-500"}),(0,r.jsx)("div",{className:"w-3 h-3 rounded-full bg-green-500"}),(0,r.jsx)("div",{className:"ml-2 text-xs text-gray-500 font-mono",children:"terminal"})]}),(0,r.jsxs)("div",{className:"p-6 font-mono text-sm leading-relaxed overflow-x-auto",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-4 group cursor-pointer",onClick:()=>{t("npx @techysy/10router","landing")},children:[(0,r.jsx)("span",{className:"text-green-400",children:"$"}),(0,r.jsx)("span",{className:"text-white",children:"npx @techysy/10router"}),(0,r.jsx)("span",{className:"ml-auto text-gray-500 text-xs opacity-0 group-hover:opacity-100",children:"landing"===e?"✓ Copied":"Copy"})]}),(0,r.jsxs)("div",{className:"text-gray-400 mb-6",children:[(0,r.jsx)("span",{className:"text-[#f97815]",children:">"})," Starting 10Router...",(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-[#f97815]",children:">"})," Server running on ",(0,r.jsx)("span",{className:"text-blue-400",children:"http://localhost:20128"}),(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-[#f97815]",children:">"})," Dashboard: ",(0,r.jsx)("span",{className:"text-blue-400",children:"http://localhost:20128/dashboard"}),(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-green-400",children:">"})," Ready to route! ✓"]}),(0,r.jsx)("div",{className:"text-xs text-gray-500 mb-2 border-t border-gray-700 pt-4",children:"\uD83D\uDCDD Configure providers in dashboard or use environment variables"}),(0,r.jsxs)("div",{className:"text-gray-400 text-xs",children:[(0,r.jsx)("span",{className:"text-purple-400",children:"Data Location:"}),(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-gray-500",children:" macOS/Linux:"})," ~/.10router/db/data.sqlite",(0,r.jsx)("br",{}),(0,r.jsx)("span",{className:"text-gray-500",children:" Windows:"})," %APPDATA%/10router/db/data.sqlite"]})]})]})})]})})})}function v(){return(0,r.jsx)("footer",{className:"border-t border-[#3a2f27] bg-[#120f0d] pt-16 pb-8 px-6",children:(0,r.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8 mb-16",children:[(0,r.jsxs)("div",{className:"col-span-2 lg:col-span-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,r.jsx)("div",{className:"size-6 rounded bg-[#f97815] flex items-center justify-center text-white",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"hub"})}),(0,r.jsx)("h3",{className:"text-white text-lg font-bold",children:"10Router"})]}),(0,r.jsx)("p",{className:"text-gray-500 text-sm max-w-xs mb-6",children:"The unified endpoint for AI generation. Connect, route, and manage your AI providers with ease."}),(0,r.jsx)("div",{className:"flex gap-4",children:(0,r.jsx)("a",{className:"text-gray-400 hover:text-white transition-colors",href:"https://github.com/techysy/10router",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("span",{className:"material-symbols-outlined",children:"code"})})})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("h4",{className:"font-bold text-white",children:"Product"}),(0,r.jsx)("a",{className:"text-gray-400 hover:text-[#f97815] text-sm transition-colors",href:"#features",children:"Features"}),(0,r.jsx)("a",{className:"text-gray-400 hover:text-[#f97815] text-sm transition-colors",href:"/dashboard",children:"Dashboard"}),(0,r.jsx)("a",{className:"text-gray-400 hover:text-[#f97815] text-sm transition-colors",href:"https://github.com/techysy/10router",target:"_blank",rel:"noopener noreferrer",children:"Changelog"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("h4",{className:"font-bold text-white",children:"Resources"}),(0,r.jsx)("a",{className:"text-gray-400 hover:text-[#f97815] text-sm transition-colors",href:"https://github.com/techysy/10router#readme",target:"_blank",rel:"noopener noreferrer",children:"Documentation"}),(0,r.jsx)("a",{className:"text-gray-400 hover:text-[#f97815] text-sm transition-colors",href:"https://github.com/techysy/10router",target:"_blank",rel:"noopener noreferrer",children:"GitHub"}),(0,r.jsx)("a",{className:"text-gray-400 hover:text-[#f97815] text-sm transition-colors",href:"https://www.npmjs.com/package/10router",target:"_blank",rel:"noopener noreferrer",children:"NPM"})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("h4",{className:"font-bold text-white",children:"Legal"}),(0,r.jsx)("a",{className:"text-gray-400 hover:text-[#f97815] text-sm transition-colors",href:"https://github.com/techysy/10router/blob/main/LICENSE",target:"_blank",rel:"noopener noreferrer",children:"MIT License"})]})]}),(0,r.jsxs)("div",{className:"border-t border-[#3a2f27] pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[(0,r.jsx)("p",{className:"text-gray-600 text-sm",children:"\xa9 2025 10Router. All rights reserved."}),(0,r.jsxs)("div",{className:"flex gap-6",children:[(0,r.jsx)("a",{className:"text-gray-600 hover:text-white text-sm transition-colors",href:"https://github.com/techysy/10router",target:"_blank",rel:"noopener noreferrer",children:"GitHub"}),(0,r.jsx)("a",{className:"text-gray-600 hover:text-white text-sm transition-colors",href:"https://www.npmjs.com/package/10router",target:"_blank",rel:"noopener noreferrer",children:"NPM"})]})]})]})})}function y(){let e=(0,i.useRouter)();return(0,r.jsxs)("div",{className:"jsx-d14ef8389c385e6a relative text-white font-sans overflow-x-hidden antialiased selection:bg-[#f97815] selection:text-white",children:[(0,r.jsxs)("div",{className:"jsx-d14ef8389c385e6a fixed inset-0 z-0 overflow-hidden pointer-events-none bg-[#181411]",children:[(0,r.jsx)("div",{style:{backgroundImage:"linear-gradient(to right, #f97815 1px, transparent 1px), linear-gradient(to bottom, #f97815 1px, transparent 1px)",backgroundSize:"50px 50px"},className:"jsx-d14ef8389c385e6a absolute inset-0 opacity-[0.06]"}),(0,r.jsx)("div",{className:"jsx-d14ef8389c385e6a absolute top-0 left-1/4 w-[700px] h-[700px] bg-[#f97815]/12 rounded-full blur-[130px] animate-blob"}),(0,r.jsx)("div",{style:{animationDelay:"2s",animationDuration:"22s"},className:"jsx-d14ef8389c385e6a absolute top-1/3 right-1/4 w-[600px] h-[600px] bg-purple-500/10 rounded-full blur-[130px] animate-blob"}),(0,r.jsx)("div",{style:{animationDelay:"4s",animationDuration:"25s"},className:"jsx-d14ef8389c385e6a absolute bottom-0 left-1/2 w-[650px] h-[650px] bg-blue-500/8 rounded-full blur-[130px] animate-blob"}),(0,r.jsx)("div",{style:{background:"radial-gradient(circle at center, transparent 0%, rgba(24, 20, 17, 0.4) 100%)"},className:"jsx-d14ef8389c385e6a absolute inset-0"})]}),(0,r.jsxs)("div",{className:"jsx-d14ef8389c385e6a relative z-10",children:[(0,r.jsx)(l,{}),(0,r.jsxs)("main",{className:"jsx-d14ef8389c385e6a",children:[(0,r.jsxs)("div",{className:"jsx-d14ef8389c385e6a relative",children:[(0,r.jsx)(c,{}),(0,r.jsx)("div",{className:"jsx-d14ef8389c385e6a flex justify-center pb-20",children:(0,r.jsx)(u,{})})]}),(0,r.jsx)(b,{}),(0,r.jsx)(m,{}),(0,r.jsx)(p,{}),(0,r.jsxs)("section",{className:"jsx-d14ef8389c385e6a py-32 px-6 relative overflow-hidden",children:[(0,r.jsx)("div",{className:"jsx-d14ef8389c385e6a absolute inset-0 bg-linear-to-t from-[#f97815]/5 to-transparent pointer-events-none"}),(0,r.jsxs)("div",{className:"jsx-d14ef8389c385e6a max-w-4xl mx-auto text-center relative z-10",children:[(0,r.jsx)("h2",{className:"jsx-d14ef8389c385e6a text-4xl md:text-5xl font-black mb-6",children:"Ready to Simplify Your AI Infrastructure?"}),(0,r.jsx)("p",{className:"jsx-d14ef8389c385e6a text-xl text-gray-400 mb-10 max-w-2xl mx-auto",children:"Join developers who are streamlining their AI integrations with 10Router. Open source and free to start."}),(0,r.jsxs)("div",{className:"jsx-d14ef8389c385e6a flex flex-col sm:flex-row items-center justify-center gap-4",children:[(0,r.jsx)("button",{onClick:()=>e.push("/dashboard"),className:"jsx-d14ef8389c385e6a w-full sm:w-auto h-14 px-10 rounded-lg bg-[#f97815] hover:bg-[#e0650a] text-[#181411] text-lg font-bold transition-all shadow-[0_0_20px_rgba(249,120,21,0.5)]",children:"Start Free"}),(0,r.jsx)("button",{onClick:()=>window.open("https://github.com/techysy/10router#readme","_blank"),className:"jsx-d14ef8389c385e6a w-full sm:w-auto h-14 px-10 rounded-lg border border-[#3a2f27] hover:bg-[#23180f] text-white text-lg font-bold transition-all",children:"Read Documentation"})]})]})]})]}),(0,r.jsx)(v,{})]}),(0,r.jsx)(n(),{id:"d14ef8389c385e6a",children:"@keyframes float{0%,100%{transform:translatey(0)}50%{transform:translatey(-10px)}}@keyframes dash{to{stroke-dashoffset:-20}}@keyframes blob{0%,100%{transform:translate(0,0)scale(1)}33%{transform:translate(30px,-50px)scale(1.1)}66%{transform:translate(-20px,20px)scale(.9)}}.animate-blob{animation:blob 20s ease-in-out infinite}"})]})}}},e=>{e.O(0,[3170,8441,3794,7358],()=>e(e.s=27565)),_N_E=e.O()}]);