@jheavenknows/bluerouter 2.0.9 → 2.0.10

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 (421) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +2 -2
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/server/app/(dashboard)/dashboard/analytics/page_client-reference-manifest.js +1 -1
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page.js +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/api-keys/page_client-reference-manifest.js +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.nft.json +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/prompt-logs/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/provider-health/page_client-reference-manifest.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  36. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  37. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  38. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  39. package/app/.next-cli-build/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  40. package/app/.next-cli-build/server/app/_global-error.segments/_head.segment.rsc +1 -1
  41. package/app/.next-cli-build/server/app/_global-error.segments/_index.segment.rsc +1 -1
  42. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  43. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  44. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  45. package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  46. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  47. package/app/.next-cli-build/server/app/_not-found.segments/_head.segment.rsc +1 -1
  48. package/app/.next-cli-build/server/app/_not-found.segments/_index.segment.rsc +3 -3
  49. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  50. package/app/.next-cli-build/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  51. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  52. package/app/.next-cli-build/server/app/api/auth/ldap/test/route.js.nft.json +1 -1
  53. package/app/.next-cli-build/server/app/api/auth/ldap/users/route.js.nft.json +1 -1
  54. package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
  55. package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
  56. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
  57. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
  58. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
  59. package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
  60. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
  61. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
  62. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/autostart/route.js.nft.json +1 -1
  63. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/prompt-log-db/route.js.nft.json +1 -1
  64. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/root-ca/route.js.nft.json +1 -1
  65. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
  66. package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
  67. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
  68. package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
  69. package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
  70. package/app/.next-cli-build/server/app/api/dashboard/analytics/route.js.nft.json +1 -1
  71. package/app/.next-cli-build/server/app/api/dashboard/combos/route.js.nft.json +1 -1
  72. package/app/.next-cli-build/server/app/api/dashboard/endpoint/route.js.nft.json +1 -1
  73. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/[id]/route.js.nft.json +1 -1
  74. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/options/route.js.nft.json +1 -1
  75. package/app/.next-cli-build/server/app/api/dashboard/prompt-logs/route.js.nft.json +1 -1
  76. package/app/.next-cli-build/server/app/api/keys/[id]/rotate/route.js.nft.json +1 -1
  77. package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
  78. package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
  79. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
  80. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
  81. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
  82. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
  83. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
  84. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
  85. package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
  86. package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
  87. package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
  88. package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
  89. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  90. package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
  91. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  92. package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
  93. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
  94. package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
  95. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
  96. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
  97. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
  98. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
  99. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
  100. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
  101. package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
  102. package/app/.next-cli-build/server/app/api/provider-health/route.js.nft.json +1 -1
  103. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
  104. package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
  105. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
  106. package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
  107. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
  108. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
  110. package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
  111. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
  113. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
  114. package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
  115. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
  116. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
  117. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
  118. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
  119. package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
  120. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
  121. package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
  122. package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
  123. package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
  124. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
  127. package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
  128. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
  129. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
  130. package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
  131. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
  132. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
  133. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
  134. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
  135. package/app/.next-cli-build/server/app/api/tunnel/tailscale-login/route.js.nft.json +1 -1
  136. package/app/.next-cli-build/server/app/api/tunnel/tailscale-start-daemon/route.js.nft.json +1 -1
  137. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
  138. package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
  139. package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
  140. package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
  141. package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
  142. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
  143. package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
  144. package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
  145. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
  146. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
  147. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
  148. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
  149. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
  150. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
  151. package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
  152. package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
  153. package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
  154. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
  155. package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
  156. package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
  157. package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
  158. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
  159. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
  160. package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
  161. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
  164. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
  166. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  167. package/app/.next-cli-build/server/app/callback.html +1 -1
  168. package/app/.next-cli-build/server/app/callback.rsc +3 -3
  169. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  170. package/app/.next-cli-build/server/app/callback.segments/_head.segment.rsc +1 -1
  171. package/app/.next-cli-build/server/app/callback.segments/_index.segment.rsc +3 -3
  172. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
  173. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +1 -1
  174. package/app/.next-cli-build/server/app/callback.segments/callback.segment.rsc +1 -1
  175. package/app/.next-cli-build/server/app/dashboard/analytics.html +1 -1
  176. package/app/.next-cli-build/server/app/dashboard/analytics.rsc +4 -4
  177. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics/__PAGE__.segment.rsc +1 -1
  178. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard/analytics.segment.rsc +1 -1
  179. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  180. package/app/.next-cli-build/server/app/dashboard/analytics.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  181. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_full.segment.rsc +4 -4
  182. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_head.segment.rsc +1 -1
  183. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_index.segment.rsc +3 -3
  184. package/app/.next-cli-build/server/app/dashboard/analytics.segments/_tree.segment.rsc +1 -1
  185. package/app/.next-cli-build/server/app/dashboard/api-keys.html +1 -1
  186. package/app/.next-cli-build/server/app/dashboard/api-keys.rsc +5 -5
  187. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys/__PAGE__.segment.rsc +2 -2
  188. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard/api-keys.segment.rsc +1 -1
  189. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  190. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  191. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_full.segment.rsc +5 -5
  192. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_head.segment.rsc +1 -1
  193. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_index.segment.rsc +3 -3
  194. package/app/.next-cli-build/server/app/dashboard/api-keys.segments/_tree.segment.rsc +1 -1
  195. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  196. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +5 -5
  197. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +2 -2
  198. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat.segment.rsc +1 -1
  199. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  200. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  201. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +5 -5
  202. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_head.segment.rsc +1 -1
  203. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_index.segment.rsc +3 -3
  204. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
  205. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  206. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +5 -5
  207. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +2 -2
  208. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools.segment.rsc +1 -1
  209. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  210. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  211. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +5 -5
  212. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_head.segment.rsc +1 -1
  213. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_index.segment.rsc +3 -3
  214. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
  215. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  216. package/app/.next-cli-build/server/app/dashboard/combos.rsc +5 -5
  217. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +2 -2
  218. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos.segment.rsc +1 -1
  219. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  220. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  221. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +5 -5
  222. package/app/.next-cli-build/server/app/dashboard/combos.segments/_head.segment.rsc +1 -1
  223. package/app/.next-cli-build/server/app/dashboard/combos.segments/_index.segment.rsc +3 -3
  224. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
  225. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  226. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +5 -5
  227. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +2 -2
  228. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint.segment.rsc +1 -1
  229. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  230. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  231. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +5 -5
  232. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_head.segment.rsc +1 -1
  233. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_index.segment.rsc +3 -3
  234. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
  235. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  236. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +5 -5
  237. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +2 -2
  238. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web.segment.rsc +1 -1
  239. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers.segment.rsc +1 -1
  240. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  241. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  242. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +5 -5
  243. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_head.segment.rsc +1 -1
  244. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_index.segment.rsc +3 -3
  245. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
  246. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  247. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +5 -5
  248. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +2 -2
  249. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm.segment.rsc +1 -1
  250. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  251. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  252. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +5 -5
  253. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_head.segment.rsc +1 -1
  254. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_index.segment.rsc +3 -3
  255. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
  256. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  257. package/app/.next-cli-build/server/app/dashboard/profile.rsc +4 -4
  258. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +1 -1
  259. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile.segment.rsc +1 -1
  260. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  261. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  262. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +4 -4
  263. package/app/.next-cli-build/server/app/dashboard/profile.segments/_head.segment.rsc +1 -1
  264. package/app/.next-cli-build/server/app/dashboard/profile.segments/_index.segment.rsc +3 -3
  265. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
  266. package/app/.next-cli-build/server/app/dashboard/prompt-logs.html +1 -1
  267. package/app/.next-cli-build/server/app/dashboard/prompt-logs.rsc +4 -4
  268. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs/__PAGE__.segment.rsc +1 -1
  269. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard/prompt-logs.segment.rsc +1 -1
  270. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  271. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  272. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_full.segment.rsc +4 -4
  273. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_head.segment.rsc +1 -1
  274. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_index.segment.rsc +3 -3
  275. package/app/.next-cli-build/server/app/dashboard/prompt-logs.segments/_tree.segment.rsc +1 -1
  276. package/app/.next-cli-build/server/app/dashboard/provider-health.html +1 -1
  277. package/app/.next-cli-build/server/app/dashboard/provider-health.rsc +4 -4
  278. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health/__PAGE__.segment.rsc +1 -1
  279. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard/provider-health.segment.rsc +1 -1
  280. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  281. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  282. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_full.segment.rsc +4 -4
  283. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_head.segment.rsc +1 -1
  284. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_index.segment.rsc +3 -3
  285. package/app/.next-cli-build/server/app/dashboard/provider-health.segments/_tree.segment.rsc +1 -1
  286. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  287. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +5 -5
  288. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +2 -2
  289. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new.segment.rsc +1 -1
  290. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  291. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  292. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  293. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +5 -5
  294. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_head.segment.rsc +1 -1
  295. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_index.segment.rsc +3 -3
  296. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
  297. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  298. package/app/.next-cli-build/server/app/dashboard/providers.rsc +5 -5
  299. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +2 -2
  300. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers.segment.rsc +1 -1
  301. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  302. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  303. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +5 -5
  304. package/app/.next-cli-build/server/app/dashboard/providers.segments/_head.segment.rsc +1 -1
  305. package/app/.next-cli-build/server/app/dashboard/providers.segments/_index.segment.rsc +3 -3
  306. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
  307. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  308. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
  309. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +2 -2
  310. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools.segment.rsc +1 -1
  311. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  312. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  313. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
  314. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_head.segment.rsc +1 -1
  315. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_index.segment.rsc +3 -3
  316. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
  317. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  318. package/app/.next-cli-build/server/app/dashboard/quota.rsc +6 -6
  319. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  320. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota.segment.rsc +1 -1
  321. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  322. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  323. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +6 -6
  324. package/app/.next-cli-build/server/app/dashboard/quota.segments/_head.segment.rsc +1 -1
  325. package/app/.next-cli-build/server/app/dashboard/quota.segments/_index.segment.rsc +3 -3
  326. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
  327. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  328. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  329. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  330. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  331. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_head.segment.rsc +1 -1
  332. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_index.segment.rsc +3 -3
  333. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
  334. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +1 -1
  335. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing.segment.rsc +1 -1
  336. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings.segment.rsc +1 -1
  337. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard.segment.rsc +1 -1
  338. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  339. package/app/.next-cli-build/server/app/dashboard/skills.rsc +5 -5
  340. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +2 -2
  341. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills.segment.rsc +1 -1
  342. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  343. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  344. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +5 -5
  345. package/app/.next-cli-build/server/app/dashboard/skills.segments/_head.segment.rsc +1 -1
  346. package/app/.next-cli-build/server/app/dashboard/skills.segments/_index.segment.rsc +3 -3
  347. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
  348. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  349. package/app/.next-cli-build/server/app/dashboard/translator.rsc +5 -5
  350. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +2 -2
  351. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator.segment.rsc +1 -1
  352. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  353. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  354. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +5 -5
  355. package/app/.next-cli-build/server/app/dashboard/translator.segments/_head.segment.rsc +1 -1
  356. package/app/.next-cli-build/server/app/dashboard/translator.segments/_index.segment.rsc +3 -3
  357. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
  358. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  359. package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
  360. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +2 -2
  361. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage.segment.rsc +1 -1
  362. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  363. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  364. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
  365. package/app/.next-cli-build/server/app/dashboard/usage.segments/_head.segment.rsc +1 -1
  366. package/app/.next-cli-build/server/app/dashboard/usage.segments/_index.segment.rsc +3 -3
  367. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
  368. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  369. package/app/.next-cli-build/server/app/dashboard.rsc +5 -5
  370. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +2 -2
  371. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard.segment.rsc +1 -1
  372. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
  373. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +5 -5
  374. package/app/.next-cli-build/server/app/dashboard.segments/_head.segment.rsc +1 -1
  375. package/app/.next-cli-build/server/app/dashboard.segments/_index.segment.rsc +3 -3
  376. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
  377. package/app/.next-cli-build/server/app/index.html +1 -1
  378. package/app/.next-cli-build/server/app/index.rsc +3 -3
  379. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  380. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  381. package/app/.next-cli-build/server/app/index.segments/_head.segment.rsc +1 -1
  382. package/app/.next-cli-build/server/app/index.segments/_index.segment.rsc +3 -3
  383. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
  384. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  385. package/app/.next-cli-build/server/app/landing.html +1 -1
  386. package/app/.next-cli-build/server/app/landing.rsc +3 -3
  387. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  388. package/app/.next-cli-build/server/app/landing.segments/_head.segment.rsc +1 -1
  389. package/app/.next-cli-build/server/app/landing.segments/_index.segment.rsc +3 -3
  390. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
  391. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +1 -1
  392. package/app/.next-cli-build/server/app/landing.segments/landing.segment.rsc +1 -1
  393. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  394. package/app/.next-cli-build/server/app/login.html +1 -1
  395. package/app/.next-cli-build/server/app/login.rsc +3 -3
  396. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
  397. package/app/.next-cli-build/server/app/login.segments/_head.segment.rsc +1 -1
  398. package/app/.next-cli-build/server/app/login.segments/_index.segment.rsc +3 -3
  399. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
  400. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
  401. package/app/.next-cli-build/server/app/login.segments/login.segment.rsc +1 -1
  402. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  403. package/app/.next-cli-build/server/app-paths-manifest.json +2 -2
  404. package/app/.next-cli-build/server/chunks/3110.js +1 -1
  405. package/app/.next-cli-build/server/chunks/4746.js +1 -1
  406. package/app/.next-cli-build/server/chunks/5087.js +1 -1
  407. package/app/.next-cli-build/server/chunks/7130.js +1 -1
  408. package/app/.next-cli-build/server/chunks/7153.js +1 -1
  409. package/app/.next-cli-build/server/chunks/7795.js +1 -1
  410. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  411. package/app/.next-cli-build/server/pages/404.html +1 -1
  412. package/app/.next-cli-build/server/pages/500.html +1 -1
  413. package/app/.next-cli-build/static/chunks/{1321-6000d4538e72ae8e.js → 1321-1f4ff214c801cf92.js} +1 -1
  414. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/api-keys/{page-3b9f4de632e942e0.js → page-07cd63714f309a7b.js} +1 -1
  415. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-shm +0 -0
  416. package/app/cli/.build-home/AppData/Roaming/bluerouter/db/data.sqlite-wal +0 -0
  417. package/app/package.json +1 -1
  418. package/package.json +1 -1
  419. /package/app/.next-cli-build/static/{DAl3eQBbDdYB5eMmnEP95 → LET3IDrPitPOeavSGayl2}/_buildManifest.js +0 -0
  420. /package/app/.next-cli-build/static/{DAl3eQBbDdYB5eMmnEP95 → LET3IDrPitPOeavSGayl2}/_ssgManifest.js +0 -0
  421. /package/app/cli/.build-home/AppData/Roaming/bluerouter/db/backups/{upgrade-2.0.4-to-2.0.5-2.0.5-20260610-223032 → upgrade-2.0.9-to-2.0.10-2.0.10-20260611-000353}/data.sqlite +0 -0
@@ -1,4 +1,4 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7593],{56484:(e,t,s)=>{"use strict";s.d(t,{default:()=>w});var n=s(95155),r=s(12115),a=s(35497),l=s(94027),i=s(11059);let d=Object.freeze({enabled:!0,requestsPerMinute:20,promptCharsMax:12e4,forceThinkingOff:!0,allowedIpCidrs:[],expiresAt:""});function o(e){return String(e||"").trim().toLowerCase()}function c(e){return Array.isArray(e)?[...new Set(e.map(e=>String(e||"").trim()).filter(Boolean))]:[]}function x(e,t=0){let s=Number(e);return Number.isFinite(s)?Math.max(0,Math.floor(s)):t}function m(e,t=!0){return null==e||""===e?t:!0===e||"true"===e||1===e||"1"===e}function h(e){return Array.isArray(e)?[...new Set(e.map(e=>String(e||"").trim()).filter(Boolean))]:[]}function u(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Object.keys(e).length>0}function p(e={},t={}){let s={...t},n=e&&"object"==typeof e&&!Array.isArray(e)?e:{};return{enabled:m(n.enabled??s.enabled,!0),requestsPerMinute:x(n.requestsPerMinute??s.requestsPerMinute,0),promptCharsMax:x(n.promptCharsMax??s.promptCharsMax,0),forceThinkingOff:m(n.forceThinkingOff??s.forceThinkingOff,!0),allowedIpCidrs:h(n.allowedIpCidrs??s.allowedIpCidrs),expiresAt:String(n.expiresAt??s.expiresAt??"").trim()}}function b({limits:e}){if(!u(e))return(0,n.jsx)("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-text-muted",children:(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"policy: chưa set, kh\xf4ng giới hạn"})});let t=p(e);return(0,n.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-text-muted",children:[(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:["policy: ",t.enabled?"bật":"tắt"]}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[t.requestsPerMinute||"∞"," req/ph\xfat"]}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[t.promptCharsMax||"∞"," chars prompt"]}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:["thinking: ",t.forceThinkingOff?"force off":"client tự quyết"]}),t.allowedIpCidrs.length>0?(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"IP locked"}):null]})}function g({label:e,value:t,onChange:s,hint:r}){return(0,n.jsxs)("label",{className:"block",children:[(0,n.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:e}),(0,n.jsx)("input",{type:"number",min:"0",value:t,onChange:e=>s(x(e.target.value,0)),className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary"}),r?(0,n.jsx)("span",{className:"mt-1 block text-xs text-text-muted",children:r}):null]})}function f({isOpen:e,keyName:t,policy:s,setPolicy:r,onClose:l,onSave:i,onClear:o,saving:c,clearLabel:x="X\xf3a policy / kh\xf4ng limit"}){let m=p(s,d),u=(e,t)=>r(s=>p({...s,[e]:t},d));return(0,n.jsx)(a.aF,{isOpen:e,onClose:l,title:`Policy API key: ${t||"API Key"}`,size:"xl",children:(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-surface/60 p-3 text-sm text-text-muted",children:["Key mới tự c\xf3 ",(0,n.jsx)("b",{children:"default policy"}),". Chỉ admin được sửa policy. Request/ph\xfat = 0 nghĩa l\xe0 kh\xf4ng giới hạn tần suất. Policy n\xe0y kh\xf4ng \xe9p max_tokens/output tokens."]}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-3 text-sm",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("b",{children:"Bật policy"}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"text-xs text-text-muted",children:"Tắt mục n\xe0y th\xec policy được lưu nhưng kh\xf4ng \xe1p limit."})]}),(0,n.jsx)("input",{type:"checkbox",checked:m.enabled,onChange:e=>u("enabled",e.target.checked)})]}),(0,n.jsx)("div",{className:"grid gap-3 md:grid-cols-2",children:(0,n.jsx)(g,{label:"Request / ph\xfat",value:m.requestsPerMinute,onChange:e=>u("requestsPerMinute",e),hint:"0 = kh\xf4ng giới hạn tần suất. Khuyến nghị user thường: 10–20 req/ph\xfat."})}),(0,n.jsx)(g,{label:"Prompt chars tối đa",value:m.promptCharsMax,onChange:e=>u("promptCharsMax",e),hint:"0 = kh\xf4ng giới hạn. Policy kh\xf4ng can thiệp max_tokens/output tokens của client."}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-3 text-sm",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("b",{children:"Force Thinking Off"}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"text-xs text-text-muted",children:"Khi bật, gateway \xe9p request c\xf3 chat_template_kwargs.enable_thinking=false v\xe0 reasoning_budget=0."})]}),(0,n.jsx)("input",{type:"checkbox",checked:m.forceThinkingOff,onChange:e=>u("forceThinkingOff",e.target.checked)})]}),(0,n.jsxs)("label",{className:"block",children:[(0,n.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"IP/CIDR được ph\xe9p"}),(0,n.jsx)("textarea",{value:h(m.allowedIpCidrs).join("\n"),onChange:e=>u("allowedIpCidrs",[...new Set(String(e.target.value||"").split(/[\n,]+/).map(e=>e.trim()).filter(Boolean))]),rows:3,className:"w-full rounded-xl border border-border bg-background px-3 py-2 font-mono text-sm text-text-main outline-none focus:border-primary",placeholder:"10.0.0.0/8\n192.168.0.0/16"}),(0,n.jsx)("span",{className:"mt-1 block text-xs text-text-muted",children:"Để trống = mọi IP. Hỗ trợ IPv4 exact hoặc CIDR."})]}),(0,n.jsxs)("label",{className:"block",children:[(0,n.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Hết hạn l\xfac"}),(0,n.jsx)("input",{value:m.expiresAt,onChange:e=>u("expiresAt",e.target.value),className:"w-full rounded-xl border border-border bg-background px-3 py-2 font-mono text-sm text-text-main outline-none focus:border-primary",placeholder:"2026-12-31T23:59:59+07:00 hoặc để trống"})]}),(0,n.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,n.jsx)(a.$n,{variant:"ghost",onClick:l,children:"Hủy"}),o?(0,n.jsx)(a.$n,{variant:"outline",onClick:o,disabled:c,children:x}):null,(0,n.jsx)(a.$n,{onClick:()=>i(m),disabled:c,children:c?"Đang lưu...":"Lưu policy"})]})]})})}function y({open:e,keyName:t,models:s,setModels:l,activeProviders:i,modelAliases:d,onClose:o,onSave:x,saving:m}){let[h,u]=(0,r.useState)(!1),p=c(s),b=e=>{let t=e?.value||e?.name||e;l(e=>c(e).filter(e=>e!==t))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.aF,{isOpen:e,onClose:o,title:`Model access: ${t||"API Key"}`,size:"xl",children:(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Chọn một hoặc nhiều model m\xe0 API key n\xe0y được ph\xe9p sử dụng. Trang n\xe0y kh\xf4ng cho lưu danh s\xe1ch model rỗng."}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,n.jsx)("span",{className:"text-sm font-medium",children:"Model được ph\xe9p d\xf9ng"}),(0,n.jsx)(a.$n,{size:"sm",variant:"outline",onClick:()=>u(!0),children:"Th\xeam model"})]}),0===p.length?(0,n.jsx)("div",{className:"rounded-xl border border-dashed border-border p-4 text-sm text-text-muted",children:"Chưa chọn model n\xe0o. H\xe3y th\xeam \xedt nhất một model trước khi lưu."}):(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:p.map(e=>(0,n.jsxs)("button",{type:"button",onClick:()=>b(e),className:"rounded-full border border-primary/30 bg-primary/10 px-2 py-1 font-mono text-xs text-primary transition hover:bg-red-500/10 hover:text-red-600",title:"Bấm để gỡ model n\xe0y",children:[e," \xd7"]},e))}),(0,n.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,n.jsx)(a.$n,{variant:"ghost",onClick:o,children:"Hủy"}),(0,n.jsx)(a.$n,{onClick:x,disabled:m||0===p.length,children:m?"Đang lưu...":"Lưu danh s\xe1ch model"})]})]})}),(0,n.jsx)(a.rq,{isOpen:h,onClose:()=>u(!1),onSelect:e=>{let t=e?.value||e?.name||e;t&&l(e=>c([...e,t]))},onDeselect:b,activeProviders:i,modelAliases:d,title:"Chọn model được ph\xe9p d\xf9ng",addedModelValues:p,closeOnSelect:!1})]})}function j({active:e}){return e?(0,n.jsx)("span",{className:"inline-flex items-center rounded-full border border-emerald-500/30 bg-emerald-500/10 px-2 py-1 text-xs font-medium text-emerald-700 dark:text-emerald-300",children:"Đang bật"}):(0,n.jsx)("span",{className:"inline-flex items-center rounded-full border border-red-500/30 bg-red-500/10 px-2 py-1 text-xs font-medium text-red-700 dark:text-red-300",children:"Đ\xe3 tắt"})}function k({label:e,value:t,hint:s}){return(0,n.jsxs)("div",{className:"rounded-2xl border border-border bg-surface/70 p-4",children:[(0,n.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:e}),(0,n.jsx)("div",{className:"mt-2 text-2xl font-semibold text-text-main",children:t}),s?(0,n.jsx)("div",{className:"mt-1 text-xs text-text-muted",children:s}):null]})}function v({pagination:e,pageSize:t,onPageChange:s,onPageSizeChange:r,loading:l}){let i=Number(e?.page||1),d=Number(e?.totalPages||1),o=Number(e?.total||0),c=0===o?0:(i-1)*t+1,x=Math.min(o,i*t);return(0,n.jsxs)("div",{className:"flex flex-col gap-3 border-t border-border px-4 py-3 md:flex-row md:items-center md:justify-between",children:[(0,n.jsxs)("div",{className:"text-sm text-text-muted",children:["Hiển thị ",(0,n.jsx)("b",{children:c}),"–",(0,n.jsx)("b",{children:x})," / ",(0,n.jsx)("b",{children:o})," API keys"]}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsxs)("select",{value:t,onChange:e=>r(Number(e.target.value)),className:"rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",disabled:l,children:[(0,n.jsx)("option",{value:25,children:"25 / trang"}),(0,n.jsx)("option",{value:50,children:"50 / trang"}),(0,n.jsx)("option",{value:100,children:"100 / trang"})]}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>s(1),disabled:l||i<=1,children:"Đầu"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>s(Math.max(1,i-1)),disabled:l||i<=1,children:"Trước"}),(0,n.jsxs)("span",{className:"rounded-xl border border-border bg-surface px-3 py-2 text-sm",children:["Trang ",i,"/",d]}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>s(Math.min(d,i+1)),disabled:l||i>=d,children:"Sau"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>s(d),disabled:l||i>=d,children:"Cuối"})]})]})}function N({keys:e,visibleKeys:t,copied:s,copy:r,isAdmin:l,onToggleVisible:i,onToggleActive:d,onApiTest:o,onRename:x,onRotate:m,onEditModels:h,onEditPolicy:b,onAssignOwner:g,onDelete:f}){return(0,n.jsx)("div",{className:"overflow-hidden rounded-2xl border border-border",children:(0,n.jsx)("div",{className:"overflow-x-auto",children:(0,n.jsxs)("table",{className:"min-w-full divide-y divide-border text-sm",children:[(0,n.jsx)("thead",{className:"bg-surface/80 text-left text-xs uppercase tracking-wide text-text-muted",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"T\xean / Key"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Trạng th\xe1i"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Owner"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Model"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Policy"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Ng\xe0y tạo"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 text-right font-medium",children:"Thao t\xe1c"})]})}),(0,n.jsx)("tbody",{className:"divide-y divide-border bg-background",children:e.map(e=>{var y;let k=t.has(e.id),v=e.ownerUser||e.createdByUser||"chưa g\xe1n",N=c(e.allowedModels),w=u(e.limits),C=p(e.limits||{});return(0,n.jsxs)("tr",{className:"align-top transition hover:bg-surface/50",children:[(0,n.jsxs)("td",{className:"min-w-[280px] px-4 py-4",children:[(0,n.jsx)("div",{className:"font-medium text-text-main",children:e.name||"API Key"}),(0,n.jsxs)("div",{className:"mt-2 flex max-w-[380px] items-center gap-2 rounded-xl border border-border bg-surface px-3 py-2 font-mono text-xs text-text-main",children:[(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:k?e.key:(y=e.key)?y.length>12?`${y.slice(0,8)}...${y.slice(-4)}`:y:""}),(0,n.jsx)("button",{type:"button",className:"text-primary hover:underline",onClick:()=>i(e.id),children:k?"Ẩn":"Hiện"})]}),e.createdByUser?(0,n.jsxs)("div",{className:"mt-2 text-xs text-text-muted",children:["Tạo bởi: ",e.createdByUser]}):null]}),(0,n.jsx)("td",{className:"whitespace-nowrap px-4 py-4",children:(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(j,{active:!!e.isActive}),(0,n.jsx)(a.lM,{checked:!!e.isActive,onChange:t=>d(e.id,t)})]})}),(0,n.jsx)("td",{className:"min-w-[160px] px-4 py-4",children:(0,n.jsx)("div",{className:"break-all text-sm text-text-main",children:v})}),(0,n.jsx)("td",{className:"min-w-[220px] px-4 py-4",children:N.length>0?(0,n.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[N.slice(0,3).map(e=>(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 font-mono text-xs",children:e},e)),N.length>3?(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 text-xs",children:["+",N.length-3]}):null]}):(0,n.jsx)("span",{className:"rounded-full border border-amber-500/30 bg-amber-500/10 px-2 py-1 text-xs text-amber-700 dark:text-amber-300",children:"Legacy full access"})}),(0,n.jsx)("td",{className:"min-w-[220px] px-4 py-4",children:w?(0,n.jsxs)("div",{className:"flex flex-wrap gap-1.5 text-xs",children:[(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:C.enabled?"bật":"tắt"}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[C.requestsPerMinute||"∞","/ph\xfat"]}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[C.promptCharsMax||"∞"," chars"]}),C.forceThinkingOff?(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"thinking off"}):null,C.allowedIpCidrs.length>0?(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"IP locked"}):null]}):(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 text-xs text-text-muted",children:"chưa set"})}),(0,n.jsx)("td",{className:"min-w-[150px] px-4 py-4 text-xs text-text-muted",children:function(e){if(!e)return"kh\xf4ng r\xf5";try{return new Date(e).toLocaleString()}catch{return String(e)}}(e.createdAt)}),(0,n.jsx)("td",{className:"min-w-[260px] px-4 py-4",children:(0,n.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>r(e.key,e.id),children:s===e.id?"Đ\xe3 copy":"Copy"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>o(e),children:"Test"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>x(e.id,e.name),children:"Đổi t\xean"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>m(e),children:"Đổi key"}),l?(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>h(e),children:"Models"}):null,l?(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>b(e),children:"Policy"}):null,l?(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>g(e.id,v),children:"Owner"}):null,(0,n.jsx)(a.$n,{variant:"danger",size:"sm",onClick:()=>f(e.id),children:"X\xf3a"})]})})]},e.id)})})]})})})}function w(){let e,t,[s,x]=(0,r.useState)([]),[m,h]=(0,r.useState)(!0),[g,j]=(0,r.useState)(""),[w,C]=(0,r.useState)(!1),[P,A]=(0,r.useState)(""),[S,I]=(0,r.useState)(""),[T,$]=(0,r.useState)(""),[M,K]=(0,r.useState)(""),[O,z]=(0,r.useState)(new Set),[D,q]=(0,r.useState)(null),[E,L]=(0,r.useState)([]),[B,H]=(0,r.useState)(""),[R,U]=(0,r.useState)(!1),[_,F]=(0,r.useState)(!1),[X,Z]=(0,r.useState)(""),[J,V]=(0,r.useState)(""),[Y,G]=(0,r.useState)(!1),[W,Q]=(0,r.useState)(d),[ee,et]=(0,r.useState)(d),[es,en]=(0,r.useState)(!1),[er,ea]=(0,r.useState)(!1),[el,ei]=(0,r.useState)(!1),[ed,eo]=(0,r.useState)([]),[ec,ex]=(0,r.useState)({}),[em,eh]=(0,r.useState)(!1),[eu,ep]=(0,r.useState)(!1),[eb,eg]=(0,r.useState)(null),[ef,ey]=(0,r.useState)([]),[ej,ek]=(0,r.useState)(!1),[ev,eN]=(0,r.useState)(null),[ew,eC]=(0,r.useState)(d),[eP,eA]=(0,r.useState)(!1),[eS,eI]=(0,r.useState)(2),[eT,e$]=(0,r.useState)(0),[eM,eK]=(0,r.useState)(0),[eO,ez]=(0,r.useState)(""),[eD,eq]=(0,r.useState)(null),[eE,eL]=(0,r.useState)(""),[eB,eH]=(0,r.useState)(""),[eR,eU]=(0,r.useState)("all"),[e_,eF]=(0,r.useState)(1),[eX,eZ]=(0,r.useState)(25),[eJ,eV]=(0,r.useState)({page:1,pageSize:25,total:0,totalAll:0,totalPages:1,status:"all",search:""}),{copied:eY,copy:eG}=(0,i.C)(),{isAdmin:eW,userId:eQ}=(0,l.s)(),e0=Number.isFinite(Number(eS))?Number(eS):2,e1=Number.isFinite(Number(eT))?Number(eT):s.length,e2=Number.isFinite(Number(eM))?Number(eM):Number(eJ.totalAll||eJ.total||0),e3=Number(eJ.total||0),e4=!eW&&e1>=e0,e5=eO?`${eO}/v1`:"/v1",e8=eO?`${eO}/v1/chat/completions`:"/v1/chat/completions",e6=(e=c(eD?.allowedModels)[0],t=String(X||"").trim(),e||t||"YOUR_MODEL"),e7=eD?function({endpoint:e,apiKey:t,model:s}){let n=String(e||"/v1/chat/completions").replace(/"/g,""),r=String(t||"YOUR_API_KEY").replace(/"/g,""),a=JSON.stringify({model:String(s||"YOUR_MODEL"),messages:[{role:"user",content:"Say hi.\nReply in one short sentence."}],temperature:.2,stream:!1}).replace(/"/g,'\\"');return`curl.exe -X POST "${n}" ^
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7593],{56484:(e,t,s)=>{"use strict";s.d(t,{default:()=>w});var n=s(95155),r=s(12115),a=s(35497),l=s(94027),i=s(11059);let d=Object.freeze({enabled:!0,requestsPerMinute:20,promptCharsMax:12e4,forceThinkingOff:!0,allowedIpCidrs:[],expiresAt:""});function o(e){return String(e||"").trim().toLowerCase()}function c(e){return Array.isArray(e)?[...new Set(e.map(e=>String(e||"").trim()).filter(Boolean))]:[]}function x(e,t=0){let s=Number(e);return Number.isFinite(s)?Math.max(0,Math.floor(s)):t}function m(e,t=!0){return null==e||""===e?t:!0===e||"true"===e||1===e||"1"===e}function h(e){return Array.isArray(e)?[...new Set(e.map(e=>String(e||"").trim()).filter(Boolean))]:[]}function u(e){return e&&"object"==typeof e&&!Array.isArray(e)&&Object.keys(e).length>0}function p(e={},t={}){let s={...t},n=e&&"object"==typeof e&&!Array.isArray(e)?e:{};return{enabled:m(n.enabled??s.enabled,!0),requestsPerMinute:x(n.requestsPerMinute??s.requestsPerMinute,0),promptCharsMax:x(n.promptCharsMax??s.promptCharsMax,0),forceThinkingOff:m(n.forceThinkingOff??s.forceThinkingOff,!0),allowedIpCidrs:h(n.allowedIpCidrs??s.allowedIpCidrs),expiresAt:String(n.expiresAt??s.expiresAt??"").trim()}}function b({limits:e}){if(!u(e))return(0,n.jsx)("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-text-muted",children:(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"policy: chưa set, kh\xf4ng giới hạn"})});let t=p(e);return(0,n.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2 text-xs text-text-muted",children:[(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:["policy: ",t.enabled?"bật":"tắt"]}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[t.requestsPerMinute||"∞"," req/ph\xfat"]}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[t.promptCharsMax||"∞"," chars prompt"]}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:["thinking: ",t.forceThinkingOff?"force off":"client tự quyết"]}),t.allowedIpCidrs.length>0?(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"IP locked"}):null]})}function g({label:e,value:t,onChange:s,hint:r}){return(0,n.jsxs)("label",{className:"block",children:[(0,n.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:e}),(0,n.jsx)("input",{type:"number",min:"0",value:t,onChange:e=>s(x(e.target.value,0)),className:"w-full rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary"}),r?(0,n.jsx)("span",{className:"mt-1 block text-xs text-text-muted",children:r}):null]})}function f({isOpen:e,keyName:t,policy:s,setPolicy:r,onClose:l,onSave:i,onClear:o,saving:c,clearLabel:x="X\xf3a policy / kh\xf4ng limit"}){let m=p(s,d),u=(e,t)=>r(s=>p({...s,[e]:t},d));return(0,n.jsx)(a.aF,{isOpen:e,onClose:l,title:`Policy API key: ${t||"API Key"}`,size:"xl",children:(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"rounded-xl border border-border bg-surface/60 p-3 text-sm text-text-muted",children:["Key mới tự c\xf3 ",(0,n.jsx)("b",{children:"default policy"}),". Chỉ admin được sửa policy. Request/ph\xfat = 0 nghĩa l\xe0 kh\xf4ng giới hạn tần suất. Policy n\xe0y kh\xf4ng \xe9p max_tokens/output tokens."]}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-3 text-sm",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("b",{children:"Bật policy"}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"text-xs text-text-muted",children:"Tắt mục n\xe0y th\xec policy được lưu nhưng kh\xf4ng \xe1p limit."})]}),(0,n.jsx)("input",{type:"checkbox",checked:m.enabled,onChange:e=>u("enabled",e.target.checked)})]}),(0,n.jsx)("div",{className:"grid gap-3 md:grid-cols-2",children:(0,n.jsx)(g,{label:"Request / ph\xfat",value:m.requestsPerMinute,onChange:e=>u("requestsPerMinute",e),hint:"0 = kh\xf4ng giới hạn tần suất. Khuyến nghị user thường: 10–20 req/ph\xfat."})}),(0,n.jsx)(g,{label:"Prompt chars tối đa",value:m.promptCharsMax,onChange:e=>u("promptCharsMax",e),hint:"0 = kh\xf4ng giới hạn. Policy kh\xf4ng can thiệp max_tokens/output tokens của client."}),(0,n.jsxs)("label",{className:"flex items-center justify-between gap-3 rounded-xl border border-border p-3 text-sm",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("b",{children:"Force Thinking Off"}),(0,n.jsx)("br",{}),(0,n.jsx)("span",{className:"text-xs text-text-muted",children:"Khi bật, gateway \xe9p request c\xf3 chat_template_kwargs.enable_thinking=false theo chuẩn llama.cpp."})]}),(0,n.jsx)("input",{type:"checkbox",checked:m.forceThinkingOff,onChange:e=>u("forceThinkingOff",e.target.checked)})]}),(0,n.jsxs)("label",{className:"block",children:[(0,n.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"IP/CIDR được ph\xe9p"}),(0,n.jsx)("textarea",{value:h(m.allowedIpCidrs).join("\n"),onChange:e=>u("allowedIpCidrs",[...new Set(String(e.target.value||"").split(/[\n,]+/).map(e=>e.trim()).filter(Boolean))]),rows:3,className:"w-full rounded-xl border border-border bg-background px-3 py-2 font-mono text-sm text-text-main outline-none focus:border-primary",placeholder:"10.0.0.0/8\n192.168.0.0/16"}),(0,n.jsx)("span",{className:"mt-1 block text-xs text-text-muted",children:"Để trống = mọi IP. Hỗ trợ IPv4 exact hoặc CIDR."})]}),(0,n.jsxs)("label",{className:"block",children:[(0,n.jsx)("span",{className:"mb-1 block text-xs font-medium text-text-muted",children:"Hết hạn l\xfac"}),(0,n.jsx)("input",{value:m.expiresAt,onChange:e=>u("expiresAt",e.target.value),className:"w-full rounded-xl border border-border bg-background px-3 py-2 font-mono text-sm text-text-main outline-none focus:border-primary",placeholder:"2026-12-31T23:59:59+07:00 hoặc để trống"})]}),(0,n.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,n.jsx)(a.$n,{variant:"ghost",onClick:l,children:"Hủy"}),o?(0,n.jsx)(a.$n,{variant:"outline",onClick:o,disabled:c,children:x}):null,(0,n.jsx)(a.$n,{onClick:()=>i(m),disabled:c,children:c?"Đang lưu...":"Lưu policy"})]})]})})}function y({open:e,keyName:t,models:s,setModels:l,activeProviders:i,modelAliases:d,onClose:o,onSave:x,saving:m}){let[h,u]=(0,r.useState)(!1),p=c(s),b=e=>{let t=e?.value||e?.name||e;l(e=>c(e).filter(e=>e!==t))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.aF,{isOpen:e,onClose:o,title:`Model access: ${t||"API Key"}`,size:"xl",children:(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)("p",{className:"text-sm text-text-muted",children:"Chọn một hoặc nhiều model m\xe0 API key n\xe0y được ph\xe9p sử dụng. Trang n\xe0y kh\xf4ng cho lưu danh s\xe1ch model rỗng."}),(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,n.jsx)("span",{className:"text-sm font-medium",children:"Model được ph\xe9p d\xf9ng"}),(0,n.jsx)(a.$n,{size:"sm",variant:"outline",onClick:()=>u(!0),children:"Th\xeam model"})]}),0===p.length?(0,n.jsx)("div",{className:"rounded-xl border border-dashed border-border p-4 text-sm text-text-muted",children:"Chưa chọn model n\xe0o. H\xe3y th\xeam \xedt nhất một model trước khi lưu."}):(0,n.jsx)("div",{className:"flex flex-wrap gap-2",children:p.map(e=>(0,n.jsxs)("button",{type:"button",onClick:()=>b(e),className:"rounded-full border border-primary/30 bg-primary/10 px-2 py-1 font-mono text-xs text-primary transition hover:bg-red-500/10 hover:text-red-600",title:"Bấm để gỡ model n\xe0y",children:[e," \xd7"]},e))}),(0,n.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,n.jsx)(a.$n,{variant:"ghost",onClick:o,children:"Hủy"}),(0,n.jsx)(a.$n,{onClick:x,disabled:m||0===p.length,children:m?"Đang lưu...":"Lưu danh s\xe1ch model"})]})]})}),(0,n.jsx)(a.rq,{isOpen:h,onClose:()=>u(!1),onSelect:e=>{let t=e?.value||e?.name||e;t&&l(e=>c([...e,t]))},onDeselect:b,activeProviders:i,modelAliases:d,title:"Chọn model được ph\xe9p d\xf9ng",addedModelValues:p,closeOnSelect:!1})]})}function j({active:e}){return e?(0,n.jsx)("span",{className:"inline-flex items-center rounded-full border border-emerald-500/30 bg-emerald-500/10 px-2 py-1 text-xs font-medium text-emerald-700 dark:text-emerald-300",children:"Đang bật"}):(0,n.jsx)("span",{className:"inline-flex items-center rounded-full border border-red-500/30 bg-red-500/10 px-2 py-1 text-xs font-medium text-red-700 dark:text-red-300",children:"Đ\xe3 tắt"})}function k({label:e,value:t,hint:s}){return(0,n.jsxs)("div",{className:"rounded-2xl border border-border bg-surface/70 p-4",children:[(0,n.jsx)("div",{className:"text-xs font-medium uppercase tracking-wide text-text-muted",children:e}),(0,n.jsx)("div",{className:"mt-2 text-2xl font-semibold text-text-main",children:t}),s?(0,n.jsx)("div",{className:"mt-1 text-xs text-text-muted",children:s}):null]})}function v({pagination:e,pageSize:t,onPageChange:s,onPageSizeChange:r,loading:l}){let i=Number(e?.page||1),d=Number(e?.totalPages||1),o=Number(e?.total||0),c=0===o?0:(i-1)*t+1,x=Math.min(o,i*t);return(0,n.jsxs)("div",{className:"flex flex-col gap-3 border-t border-border px-4 py-3 md:flex-row md:items-center md:justify-between",children:[(0,n.jsxs)("div",{className:"text-sm text-text-muted",children:["Hiển thị ",(0,n.jsx)("b",{children:c}),"–",(0,n.jsx)("b",{children:x})," / ",(0,n.jsx)("b",{children:o})," API keys"]}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,n.jsxs)("select",{value:t,onChange:e=>r(Number(e.target.value)),className:"rounded-xl border border-border bg-background px-3 py-2 text-sm text-text-main outline-none focus:border-primary",disabled:l,children:[(0,n.jsx)("option",{value:25,children:"25 / trang"}),(0,n.jsx)("option",{value:50,children:"50 / trang"}),(0,n.jsx)("option",{value:100,children:"100 / trang"})]}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>s(1),disabled:l||i<=1,children:"Đầu"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>s(Math.max(1,i-1)),disabled:l||i<=1,children:"Trước"}),(0,n.jsxs)("span",{className:"rounded-xl border border-border bg-surface px-3 py-2 text-sm",children:["Trang ",i,"/",d]}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>s(Math.min(d,i+1)),disabled:l||i>=d,children:"Sau"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>s(d),disabled:l||i>=d,children:"Cuối"})]})]})}function N({keys:e,visibleKeys:t,copied:s,copy:r,isAdmin:l,onToggleVisible:i,onToggleActive:d,onApiTest:o,onRename:x,onRotate:m,onEditModels:h,onEditPolicy:b,onAssignOwner:g,onDelete:f}){return(0,n.jsx)("div",{className:"overflow-hidden rounded-2xl border border-border",children:(0,n.jsx)("div",{className:"overflow-x-auto",children:(0,n.jsxs)("table",{className:"min-w-full divide-y divide-border text-sm",children:[(0,n.jsx)("thead",{className:"bg-surface/80 text-left text-xs uppercase tracking-wide text-text-muted",children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"T\xean / Key"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Trạng th\xe1i"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Owner"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Model"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Policy"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 font-medium",children:"Ng\xe0y tạo"}),(0,n.jsx)("th",{className:"whitespace-nowrap px-4 py-3 text-right font-medium",children:"Thao t\xe1c"})]})}),(0,n.jsx)("tbody",{className:"divide-y divide-border bg-background",children:e.map(e=>{var y;let k=t.has(e.id),v=e.ownerUser||e.createdByUser||"chưa g\xe1n",N=c(e.allowedModels),w=u(e.limits),C=p(e.limits||{});return(0,n.jsxs)("tr",{className:"align-top transition hover:bg-surface/50",children:[(0,n.jsxs)("td",{className:"min-w-[280px] px-4 py-4",children:[(0,n.jsx)("div",{className:"font-medium text-text-main",children:e.name||"API Key"}),(0,n.jsxs)("div",{className:"mt-2 flex max-w-[380px] items-center gap-2 rounded-xl border border-border bg-surface px-3 py-2 font-mono text-xs text-text-main",children:[(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:k?e.key:(y=e.key)?y.length>12?`${y.slice(0,8)}...${y.slice(-4)}`:y:""}),(0,n.jsx)("button",{type:"button",className:"text-primary hover:underline",onClick:()=>i(e.id),children:k?"Ẩn":"Hiện"})]}),e.createdByUser?(0,n.jsxs)("div",{className:"mt-2 text-xs text-text-muted",children:["Tạo bởi: ",e.createdByUser]}):null]}),(0,n.jsx)("td",{className:"whitespace-nowrap px-4 py-4",children:(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)(j,{active:!!e.isActive}),(0,n.jsx)(a.lM,{checked:!!e.isActive,onChange:t=>d(e.id,t)})]})}),(0,n.jsx)("td",{className:"min-w-[160px] px-4 py-4",children:(0,n.jsx)("div",{className:"break-all text-sm text-text-main",children:v})}),(0,n.jsx)("td",{className:"min-w-[220px] px-4 py-4",children:N.length>0?(0,n.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[N.slice(0,3).map(e=>(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 font-mono text-xs",children:e},e)),N.length>3?(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 text-xs",children:["+",N.length-3]}):null]}):(0,n.jsx)("span",{className:"rounded-full border border-amber-500/30 bg-amber-500/10 px-2 py-1 text-xs text-amber-700 dark:text-amber-300",children:"Legacy full access"})}),(0,n.jsx)("td",{className:"min-w-[220px] px-4 py-4",children:w?(0,n.jsxs)("div",{className:"flex flex-wrap gap-1.5 text-xs",children:[(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:C.enabled?"bật":"tắt"}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[C.requestsPerMinute||"∞","/ph\xfat"]}),(0,n.jsxs)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:[C.promptCharsMax||"∞"," chars"]}),C.forceThinkingOff?(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"thinking off"}):null,C.allowedIpCidrs.length>0?(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1",children:"IP locked"}):null]}):(0,n.jsx)("span",{className:"rounded-full border border-border bg-surface px-2 py-1 text-xs text-text-muted",children:"chưa set"})}),(0,n.jsx)("td",{className:"min-w-[150px] px-4 py-4 text-xs text-text-muted",children:function(e){if(!e)return"kh\xf4ng r\xf5";try{return new Date(e).toLocaleString()}catch{return String(e)}}(e.createdAt)}),(0,n.jsx)("td",{className:"min-w-[260px] px-4 py-4",children:(0,n.jsxs)("div",{className:"flex flex-wrap justify-end gap-2",children:[(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>r(e.key,e.id),children:s===e.id?"Đ\xe3 copy":"Copy"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>o(e),children:"Test"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>x(e.id,e.name),children:"Đổi t\xean"}),(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>m(e),children:"Đổi key"}),l?(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>h(e),children:"Models"}):null,l?(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>b(e),children:"Policy"}):null,l?(0,n.jsx)(a.$n,{variant:"outline",size:"sm",onClick:()=>g(e.id,v),children:"Owner"}):null,(0,n.jsx)(a.$n,{variant:"danger",size:"sm",onClick:()=>f(e.id),children:"X\xf3a"})]})})]},e.id)})})]})})})}function w(){let e,t,[s,x]=(0,r.useState)([]),[m,h]=(0,r.useState)(!0),[g,j]=(0,r.useState)(""),[w,C]=(0,r.useState)(!1),[P,A]=(0,r.useState)(""),[S,I]=(0,r.useState)(""),[T,$]=(0,r.useState)(""),[M,K]=(0,r.useState)(""),[O,z]=(0,r.useState)(new Set),[D,q]=(0,r.useState)(null),[E,L]=(0,r.useState)([]),[B,H]=(0,r.useState)(""),[R,U]=(0,r.useState)(!1),[_,F]=(0,r.useState)(!1),[X,Z]=(0,r.useState)(""),[J,V]=(0,r.useState)(""),[Y,G]=(0,r.useState)(!1),[W,Q]=(0,r.useState)(d),[ee,et]=(0,r.useState)(d),[es,en]=(0,r.useState)(!1),[er,ea]=(0,r.useState)(!1),[el,ei]=(0,r.useState)(!1),[ed,eo]=(0,r.useState)([]),[ec,ex]=(0,r.useState)({}),[em,eh]=(0,r.useState)(!1),[eu,ep]=(0,r.useState)(!1),[eb,eg]=(0,r.useState)(null),[ef,ey]=(0,r.useState)([]),[ej,ek]=(0,r.useState)(!1),[ev,eN]=(0,r.useState)(null),[ew,eC]=(0,r.useState)(d),[eP,eA]=(0,r.useState)(!1),[eS,eI]=(0,r.useState)(2),[eT,e$]=(0,r.useState)(0),[eM,eK]=(0,r.useState)(0),[eO,ez]=(0,r.useState)(""),[eD,eq]=(0,r.useState)(null),[eE,eL]=(0,r.useState)(""),[eB,eH]=(0,r.useState)(""),[eR,eU]=(0,r.useState)("all"),[e_,eF]=(0,r.useState)(1),[eX,eZ]=(0,r.useState)(25),[eJ,eV]=(0,r.useState)({page:1,pageSize:25,total:0,totalAll:0,totalPages:1,status:"all",search:""}),{copied:eY,copy:eG}=(0,i.C)(),{isAdmin:eW,userId:eQ}=(0,l.s)(),e0=Number.isFinite(Number(eS))?Number(eS):2,e1=Number.isFinite(Number(eT))?Number(eT):s.length,e2=Number.isFinite(Number(eM))?Number(eM):Number(eJ.totalAll||eJ.total||0),e3=Number(eJ.total||0),e4=!eW&&e1>=e0,e5=eO?`${eO}/v1`:"/v1",e8=eO?`${eO}/v1/chat/completions`:"/v1/chat/completions",e6=(e=c(eD?.allowedModels)[0],t=String(X||"").trim(),e||t||"YOUR_MODEL"),e7=eD?function({endpoint:e,apiKey:t,model:s}){let n=String(e||"/v1/chat/completions").replace(/"/g,""),r=String(t||"YOUR_API_KEY").replace(/"/g,""),a=JSON.stringify({model:String(s||"YOUR_MODEL"),messages:[{role:"user",content:"Say hi.\nReply in one short sentence."}],temperature:.2,stream:!1}).replace(/"/g,'\\"');return`curl.exe -X POST "${n}" ^
2
2
  -H "Authorization: Bearer ${r}" ^
3
3
  -H "Content-Type: application/json" ^
4
4
  -d "${a}"`}({endpoint:e8,apiKey:eD.key,model:e6}):"",e9=(0,r.useMemo)(()=>{let e=new Map;for(let t of E){let s=o(t.username||t.email||t.userPrincipalName||t.sAMAccountName);s&&e.set(s,{id:s,label:`${t.displayName||t.username||s}${t.email?` \xb7 ${t.email}`:""}`})}for(let t of s){let s=o(t.ownerUser||t.createdByUser);s&&!e.has(s)&&e.set(s,{id:s,label:s})}return eQ&&!e.has(eQ)&&e.set(eQ,{id:eQ,label:`${eQ} (t\xf4i)`}),[...e.values()].sort((e,t)=>e.label.localeCompare(t.label))},[E,s,eQ]),te=J!==X,tt=_||!P.trim()||!X.trim()||e4,ts=!!eB||"all"!==eR,tn=async()=>{h(!0),j("");try{let e=new URLSearchParams;e.set("page",String(e_)),e.set("pageSize",String(eX)),eB&&e.set("q",eB),"all"!==eR&&e.set("status",eR);let t=await fetch(`/api/keys?${e.toString()}`,{cache:"no-store"}),s=await t.json().catch(()=>({}));if(!t.ok)throw Error(s.error||"Kh\xf4ng tải được danh s\xe1ch API keys");let n=s.keys||[],r=s.pagination||{page:e_,pageSize:eX,total:n.length,totalAll:n.length,totalPages:1,search:eB,status:eR};if(0===n.length&&Number(r.total||0)>0&&e_>1)return void eF(Math.max(1,Number(r.totalPages||1)));let a=String(s.apiKeyDefaultModel||"").trim();x(n),eV(r),eK(s.apiKeyTotal??r.totalAll??r.total??n.length);let l=p(s.apiKeyDefaultPolicy||d,d);Z(a),V(a),Q(l),et(l),eI(s.apiKeyLimit??2),e$(s.apiKeyCount??r.totalAll??n.length)}catch(e){j(e.message||"Kh\xf4ng tải được danh s\xe1ch API keys")}finally{h(!1)}};(0,r.useEffect)(()=>{ez(window.location.origin)},[]),(0,r.useEffect)(()=>{let e=setTimeout(()=>{eF(1),eH(eE.trim())},350);return()=>clearTimeout(e)},[eE]),(0,r.useEffect)(()=>{tn()},[e_,eX,eB,eR]),(0,r.useEffect)(()=>{!S&&eQ&&I(eQ)},[eQ,S]);let tr=async()=>{if(!em&&!eu){ep(!0);try{let[e,t]=await Promise.allSettled([fetch("/api/providers",{cache:"no-store"}),fetch("/api/models/alias",{cache:"no-store"})]);if("fulfilled"===e.status&&e.value.ok){let t=await e.value.json().catch(()=>({}));eo(t.connections||[])}if("fulfilled"===t.status&&t.value.ok){let e=await t.value.json().catch(()=>({}));ex(e.aliases||{})}eh(!0)}catch{}finally{ep(!1)}}},ta=async(e=B)=>{if(eW){U(!0);try{let t=await fetch(`/api/auth/ldap/users?q=${encodeURIComponent(e||"")}`,{cache:"no-store"}),s=await t.json().catch(()=>({}));t.ok&&L(s.users||[])}catch{}finally{U(!1)}}},tl=async()=>{if(eW&&J.trim()){G(!0),j("");try{let e=await fetch("/api/keys",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKeyDefaultModel:J.trim()})}),t=await e.json().catch(()=>({}));if(!e.ok)throw Error(t.error||"Kh\xf4ng lưu được default model");let s=String(t.apiKeyDefaultModel||"").trim(),n=p(t.apiKeyDefaultPolicy||d,d);Z(s),V(s),Q(n),et(n)}catch(e){j(e.message||"Kh\xf4ng lưu được default model")}finally{G(!1)}}},ti=async e=>{if(!eW)return;let t=p(e,d);en(!0),j("");try{let e=await fetch("/api/keys",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKeyDefaultPolicy:t})}),s=await e.json().catch(()=>({}));if(!e.ok)throw Error(s.error||"Kh\xf4ng lưu được default policy");let n=p(s.apiKeyDefaultPolicy||t,d);Q(n),et(n),ea(!1)}catch(e){j(e.message||"Kh\xf4ng lưu được default policy")}finally{en(!1)}},td=async()=>{if(P.trim()){if(!X.trim())return void j("Admin cần cấu h\xecnh default model trước khi tạo API key.");if(e4)return void j(`Mỗi user chỉ được tạo tối đa ${e0} API keys.
package/app/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bluerouter-app",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "Router web dashboard",
5
5
  "private": false,
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jheavenknows/bluerouter",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "Bluerouter CLI - Start and manage Bluerouter server",
5
5
  "bin": {
6
6
  "bluerouter": "./cli.js"