@techysy/10router 1.3.6 → 1.4.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.
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +5 -5
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/experimental/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +4 -4
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +2 -2
- package/app/.next-cli-build/server/app/_not-found.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +2 -2
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/verify-password/route.js +1 -1
- package/app/.next-cli-build/server/app/api/auth/verify-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/gateway-probe/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/rotate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/rotate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/caps/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/bulk/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/network/egress-region/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codebuddy-cn/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/qoder-cn/checkin/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/export/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/transfer/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-kill/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/desktop-status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/security/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/import-usage/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/dashboard/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/dashboard/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/quotas/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/quotas/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js +2 -2
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +2 -2
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[kind]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +2 -2
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shell-update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +2 -2
- package/app/.next-cli-build/server/app/callback.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +9 -9
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/dashboard.html +2 -2
- package/app/.next-cli-build/server/app/dashboard.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +2 -2
- package/app/.next-cli-build/server/app/landing.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +2 -2
- package/app/.next-cli-build/server/app/login.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +5 -5
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/1345.js +1 -0
- package/app/.next-cli-build/server/chunks/1386.js +2 -2
- package/app/.next-cli-build/server/chunks/1806.js +1 -0
- package/app/.next-cli-build/server/chunks/2112.js +1 -1
- package/app/.next-cli-build/server/chunks/2557.js +9 -0
- package/app/.next-cli-build/server/chunks/2752.js +1 -0
- package/app/.next-cli-build/server/chunks/2926.js +1 -1
- package/app/.next-cli-build/server/chunks/2978.js +1 -0
- package/app/.next-cli-build/server/chunks/3256.js +1 -1
- package/app/.next-cli-build/server/chunks/3593.js +2 -2
- package/app/.next-cli-build/server/chunks/3659.js +1 -0
- package/app/.next-cli-build/server/chunks/3662.js +1 -0
- package/app/.next-cli-build/server/chunks/3792.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/3962.js +1 -0
- package/app/.next-cli-build/server/chunks/4008.js +1 -1
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4293.js +1 -1
- package/app/.next-cli-build/server/chunks/4692.js +6 -0
- package/app/.next-cli-build/server/chunks/4739.js +2 -2
- package/app/.next-cli-build/server/chunks/4780.js +2 -2
- package/app/.next-cli-build/server/chunks/4803.js +2 -2
- package/app/.next-cli-build/server/chunks/4927.js +3 -3
- package/app/.next-cli-build/server/chunks/507.js +2 -2
- package/app/.next-cli-build/server/chunks/5182.js +1 -1
- package/app/.next-cli-build/server/chunks/5210.js +3 -3
- package/app/.next-cli-build/server/chunks/5258.js +2 -2
- package/app/.next-cli-build/server/chunks/5433.js +1 -1
- package/app/.next-cli-build/server/chunks/5527.js +1 -0
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/5781.js +1 -1
- package/app/.next-cli-build/server/chunks/595.js +1 -1
- package/app/.next-cli-build/server/chunks/6252.js +2 -2
- package/app/.next-cli-build/server/chunks/6306.js +1 -1
- package/app/.next-cli-build/server/chunks/6326.js +1 -1
- package/app/.next-cli-build/server/chunks/6457.js +1 -1
- package/app/.next-cli-build/server/chunks/6756.js +1 -1
- package/app/.next-cli-build/server/chunks/682.js +1 -1
- package/app/.next-cli-build/server/chunks/6947.js +1 -1
- package/app/.next-cli-build/server/chunks/6960.js +1 -1
- package/app/.next-cli-build/server/chunks/698.js +2 -2
- package/app/.next-cli-build/server/chunks/7067.js +1 -1
- package/app/.next-cli-build/server/chunks/7122.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7274.js +6 -3
- package/app/.next-cli-build/server/chunks/7322.js +2 -2
- package/app/.next-cli-build/server/chunks/75.js +1 -0
- package/app/.next-cli-build/server/chunks/7568.js +1 -1
- package/app/.next-cli-build/server/chunks/7828.js +1 -1
- package/app/.next-cli-build/server/chunks/7965.js +2 -2
- package/app/.next-cli-build/server/chunks/8062.js +2 -2
- package/app/.next-cli-build/server/chunks/8145.js +1 -0
- package/app/.next-cli-build/server/chunks/8172.js +2 -2
- package/app/.next-cli-build/server/chunks/{7239.js → 8318.js} +2 -2
- package/app/.next-cli-build/server/chunks/8439.js +1 -0
- package/app/.next-cli-build/server/chunks/8469.js +2 -2
- package/app/.next-cli-build/server/chunks/8520.js +2 -2
- package/app/.next-cli-build/server/chunks/8595.js +1 -1
- package/app/.next-cli-build/server/chunks/8672.js +1 -1
- package/app/.next-cli-build/server/chunks/8675.js +1 -0
- package/app/.next-cli-build/server/chunks/8689.js +1 -1
- package/app/.next-cli-build/server/chunks/8838.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +9 -9
- package/app/.next-cli-build/server/chunks/9055.js +1 -1
- package/app/.next-cli-build/server/chunks/939.js +1 -1
- package/app/.next-cli-build/server/chunks/9417.js +6 -0
- package/app/.next-cli-build/server/chunks/9451.js +2 -2
- package/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/app/.next-cli-build/server/chunks/9609.js +1 -1
- package/app/.next-cli-build/server/chunks/9628.js +1 -1
- package/app/.next-cli-build/server/chunks/9713.js +1 -0
- package/app/.next-cli-build/server/chunks/976.js +2 -2
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +4 -4
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +2 -2
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/static/chunks/1243-64d16638d3aac467.js +3 -0
- package/app/.next-cli-build/static/chunks/1321-1ad989ddb9bd4822.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-a519f837339f7d19.js +7 -0
- package/app/.next-cli-build/static/chunks/6109-7d8788b228fed22f.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-2df49dc3be3c6b7d.js +1 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-2a679f53191d77f7.js → page-de760afb83419302.js} +9 -9
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-7a5d36237ec6b40e.js +14 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-e0183e527ccc2c9b.js +1 -0
- package/app/.next-cli-build/static/css/66cb1d1c16ed3a27.css +1 -0
- package/app/package.json +71 -71
- package/app/public/i18n/changelog/en.md +21 -3
- package/app/public/i18n/changelog/zh-CN.md +21 -3
- package/app/public/i18n/changelog/zh-TW.md +21 -3
- package/app/public/i18n/literals/zh-CN.json +22 -0
- package/app/public/i18n/literals/zh-TW.json +21 -0
- package/app/src/lib/db/adapters/sqljsAdapter.js +42 -9
- package/app/src/sse/services/backgroundTokenRefresh.js +7 -0
- package/app/src/sse/services/codebuddyCheckin.js +6 -0
- package/package.json +61 -61
- package/app/.next-cli-build/server/chunks/1159.js +0 -7
- package/app/.next-cli-build/server/chunks/1710.js +0 -6
- package/app/.next-cli-build/server/chunks/3245.js +0 -1
- package/app/.next-cli-build/server/chunks/3885.js +0 -1
- package/app/.next-cli-build/server/chunks/4177.js +0 -1
- package/app/.next-cli-build/server/chunks/4282.js +0 -1
- package/app/.next-cli-build/server/chunks/436.js +0 -1
- package/app/.next-cli-build/server/chunks/4746.js +0 -1
- package/app/.next-cli-build/server/chunks/480.js +0 -6
- package/app/.next-cli-build/server/chunks/5485.js +0 -1
- package/app/.next-cli-build/server/chunks/653.js +0 -1
- package/app/.next-cli-build/server/chunks/6982.js +0 -1
- package/app/.next-cli-build/static/chunks/1243-25be5a7b0193949d.js +0 -3
- package/app/.next-cli-build/static/chunks/1321-7d951e8069135f2f.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-dce0ac54d3e8f165.js +0 -7
- package/app/.next-cli-build/static/chunks/6109-c3fa41c974584a96.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/experimental/page-5ec2e868aa2ff281.js +0 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-21ddfd8a9e7d781f.js +0 -14
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/page-ec96de061407f126.js +0 -1
- package/app/.next-cli-build/static/css/b80ae6e58b63fd53.css +0 -1
- /package/app/.next-cli-build/static/{eqWYkzNeaSBj4mkYsjYbh → MH4bXJmhiPfMG7orS09FV}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{eqWYkzNeaSBj4mkYsjYbh → MH4bXJmhiPfMG7orS09FV}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=3826,a.ids=[3826],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},717:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{default:()=>D});var e=c(48249),f=c(67484),g=c(19099),h=c(72738),i=c(38508),j=c(25386),k=c(70619),l=c(71452),m=c(54008),n=c(99882),o=c(29413),p=c(95514),q=c(32971),r=c(4088),s=c(17660),t=c(99258),u=c(94579),v=c(92592),w=c(50377),x=a([h,j,k,u]);[h,j,k,u]=x.then?(await x)():x;let E={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},F={claude:"claudeAutoPing",codex:"codexAutoPing"},G={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 y(a){let b=(0,r.JJ)(a);if(a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()){let c=a.email.trim();if(c!==b)return c}if(a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()){let c=a.displayName.trim();if(c!==b)return c}return null}function z(a){let b=a.providerSpecificData?.region;if(b)return b;let c=a.providerSpecificData?.profileArn;return("string"==typeof c?c.split(":")[3]:"")||""}let H={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function A(a){let b=[...new Set((a||[]).map(a=>H[a]).filter(Boolean))];return b.length?`${b.join(" + ")} limits`:"limits"}function B(a){if(!a)return"N/A";let b=new Date(a);return Number.isFinite(b.getTime())?b.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function C(a){if(!a)return"N/A";let b=new Date(a).getTime()-Date.now();if(!Number.isFinite(b))return"N/A";if(b<=0)return"Expired";let c=Math.ceil(b/36e5),d=Math.floor(c/24),e=c%24;return d>0?`${d}d ${e}h`:`${e}h`}let I={"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 D(){let{copied:a,copy:b}=(0,w.C)(),[c,d]=(0,f.useState)([]),[x,D]=(0,f.useState)({}),[H,J]=(0,f.useState)({}),[K,L]=(0,f.useState)({}),[M,N]=(0,f.useState)(!0),[O,P]=(0,f.useState)({claude:{},codex:{}}),[Q,R]=(0,f.useState)(null),[S,T]=(0,f.useState)(!1),[U,V]=(0,f.useState)(!1),[W,X]=(0,f.useState)(60),[Y,Z]=(0,f.useState)(!0),[$,_]=(0,f.useState)(null),[aa,ab]=(0,f.useState)(null),[ac,ad]=(0,f.useState)(null),[ae,af]=(0,f.useState)(null),[ag,ah]=(0,f.useState)(null),[ai,aj]=(0,f.useState)(!1),[ak,al]=(0,f.useState)(null),[am,an]=(0,f.useState)([]),ao=(0,g.useSearchParams)(),ap=(0,g.useRouter)(),aq=(0,g.usePathname)(),[ar,as]=(0,f.useState)(()=>(0,r.q$)(ao?.get("provider"),null)),at=(0,f.useCallback)(a=>{as(a),ap.replace((0,r.bf)(aq,ao?.toString()||"",a),{scroll:!1})},[ap,aq,ao]),[au,av]=(0,f.useState)([]),[aw,ax]=(0,f.useState)(()=>"all"),[ay,az]=(0,f.useState)("default"),[aA,aB]=(0,f.useState)("cards"),[aC,aD]=(0,f.useState)(0),[aE,aF]=(0,f.useState)({}),[aG,aH]=(0,f.useState)(!1),[aI]=(0,f.useState)(()=>!1),[aJ]=(0,f.useState)(()=>!1),[aK,aL]=(0,f.useState)(!1),[aM,aN]=(0,f.useState)(()=>new Set),aO=(0,f.useCallback)(a=>{aN(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},[]),[aP,aQ]=(0,f.useState)(1),[aR,aS]=(0,f.useState)(r.Wg),[aT,aU]=(0,f.useState)(String(r.Wg)),[aV,aW]=(0,f.useState)({page:1,pageSize:r.Wg,total:0,totalPages:1}),[aX,aY]=(0,f.useState)({eligibleConnections:0,providerFilteredConnections:0});(0,f.useRef)(null),(0,f.useRef)(null);let aZ=(0,f.useRef)(0),a$=(0,f.useCallback)(async(a=aP)=>{try{let b=new URLSearchParams({page:String(a),pageSize:String(aR),accountStatus:aw,sort:"priority"});"all"!==ar&&b.set("provider",ar);let c=await fetch(`/api/providers/client?${b.toString()}`);if(!c.ok)throw Error("Failed to fetch connections");let e=await c.json(),f=e.connections||[],g=(0,r.wi)(e.pagination,aR),h=(0,r.dE)(e.totals,f.length);return d(f),av((0,r.Uh)(e.providerOptions)),aW(g),aY(h),aQ((0,r.ZS)(e.pagination,a)),(0,n.DF)((0,n.zm)({page:a,pageSize:aR,accountFilter:aw,providerFilter:ar}),{connections:f,pagination:g,totals:h,providerOptions:e.providerOptions}),f}catch(a){return console.error("Error fetching connections:",a),null}},[aw,aG,aP,aR,ar]),a_=(0,f.useCallback)(async(a,b,{force:c=!1}={})=>{J(b=>({...b,[a]:!0})),L(b=>({...b,[a]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${b} (${a})`);let d=`/api/usage/${a}${c?"?force=1":""}`,e=await fetch(d);if(!e.ok){let c=(await e.json().catch(()=>({}))).error||e.statusText;if(404===e.status)return void console.warn(`[ProviderLimits] Connection not found for ${b}, skipping`);if(401===e.status){console.warn(`[ProviderLimits] Auth error for ${b}:`,c);let d={quotas:[],message:c,cachedAt:new Date().toISOString()};D(b=>({...b,[a]:d})),(0,n.uE)(a,d);return}throw Error(`HTTP ${e.status}: ${c}`)}let f=await e.json();console.log(`[ProviderLimits] Got quota for ${b}:`,f);let g={quotas:(0,r.W_)(b,f),plan:f.plan||null,message:f.message||null,raw:f,cachedAt:new Date().toISOString()};D(b=>({...b,[a]:g})),(0,n.uE)(a,g)}catch(c){console.error(`[ProviderLimits] Error fetching quota for ${b} (${a}):`,c),L(b=>({...b,[a]:c.message||"Failed to fetch quota"}))}finally{J(b=>({...b,[a]:!1}))}},[]),[a0]=(0,f.useState)(()=>(0,n.SJ)()),a1=(0,f.useRef)(new Set),a2=(0,f.useRef)(new Map),a3=(0,f.useRef)(null),a4=(0,f.useRef)(a_),a5=(0,f.useCallback)(()=>(a3.current||"u"<typeof IntersectionObserver||(a3.current=new IntersectionObserver(a=>{for(let b of a){let a=b.target.dataset.connId;if(a){if(!b.isIntersecting){a1.current.delete(a);continue}if(a1.current.add(a),a2.current.has(a)){let b=a2.current.get(a);a2.current.delete(a),a0(()=>a4.current(a,b))}}}},{rootMargin:"200px 0px"})),a3.current),[a0]),a6=(0,f.useCallback)(a=>{let b=a5();if(a&&b)return b.observe(a),()=>{b.unobserve(a),a1.current.delete(a.dataset.connId)}},[a5]),a7=(0,f.useCallback)((a,{lazy:b=!0,skipFreshFrom:c=null}={})=>{let d="u">typeof IntersectionObserver,e=[];for(let f of a)if(!(c&&(0,n.pu)(c[f.id]))){if(b&&d&&!a1.current.has(f.id)){a2.current.set(f.id,f.provider);continue}a2.current.delete(f.id),e.push(a0(()=>a4.current(f.id,f.provider)))}return Promise.all(e)},[a0]),a8=(0,f.useCallback)(async(a,b)=>{await a_(a,b,{force:!0}),R(new Date)},[a_]),a9=(0,f.useCallback)(async(a,b)=>{if(("codex"===b||"claude"===b)&&!ac){ad(a),L(b=>({...b,[a]:null}));try{let c="claude"===b?await fetch(`/api/usage/${a}/claude-reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grantId:x[a]?.raw?.resetCredits?.nextGrantId})}):await fetch(`/api/usage/${a}/codex-reset-credits`,{method:"POST"}),d=await c.json().catch(()=>({}));if(!c.ok)throw Error(d.message||d.error||d.code||"Failed to reset limit");await a_(a,b,{force:!0}),R(new Date)}catch(b){L(c=>({...c,[a]:b.message||"Failed to reset limit"}))}finally{ad(null)}}},[a_,ac,x]),ba=(0,f.useCallback)((a,b)=>{ah({connection:a,loading:!1,error:null,data:{kind:"claude",...b}})},[]),bb=(0,f.useCallback)(async a=>{ah({connection:a,loading:!0,error:null,data:null});try{let b=await fetch(`/api/usage/${a.id}/codex-reset-credits`,{cache:"no-store"}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||c.message||"Failed to load Codex reset credits");let d=Array.isArray(c.credits)?[...c.credits]:[];d.sort((a,b)=>{let c=a.expiresAt?new Date(a.expiresAt).getTime():1/0,d=b.expiresAt?new Date(b.expiresAt).getTime():1/0;return c-d}),ah({connection:a,loading:!1,error:null,data:{...c,credits:d}})}catch(b){ah({connection:a,loading:!1,error:b.message||"Failed to load Codex reset credits",data:null})}},[]),bc=(0,f.useCallback)(async a=>{if(confirm("Delete this connection?")){_(a);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&(D(b=>{let c={...b};return delete c[a],c}),J(b=>{let c={...b};return delete c[a],c}),L(b=>{let c={...b};return delete c[a],c}),await (0,r.Jp)(a$,aP))}catch(a){console.error("Error deleting connection:",a)}finally{_(null)}}},[a$,aP]),bd=(0,f.useCallback)(async(a,b)=>{ab(a);try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&(D(a=>({...a})),await (0,r.Jp)(a$,aP))}catch(a){console.error("Error updating connection status:",a)}finally{ab(null)}},[a$,aP]),be=(0,f.useCallback)(async a=>{if(!ak?.id)return;let b=ak.id,c=ak.provider;try{(await fetch(`/api/providers/${b}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await a$(),aj(!1),al(null),v.wb.includes(c)&&await a_(b,c))}catch(a){console.error("Error saving connection:",a)}},[ak,a$,a_]),bf=(0,f.useCallback)(async(a=!1)=>{if(U)return;V(!0),X(60);let b=aZ.current+=1,c=Math.round(r.w2/r.J_);try{let d=await a$(aP);if(!d)return;L(a=>(0,r.ED)(a,d)),D(a=>(0,r.ED)(a,d)),await a7(d.filter(d=>a||"claude"!==d.provider||b%c==0),{lazy:!a}),R(new Date)}catch(a){console.error("Error refreshing all providers:",a)}finally{V(!1)}},[U,a$,a7,aP]),bg=(0,f.useCallback)(async(a,b,c)=>{let d=F[b];if(!d)return;let e={...O[b]||{},[a]:c},f={...O,[b]:e};P(f);try{let a=await fetch("/api/settings",{cache:"no-store"}),b={...(a.ok?await a.json():{})[d]||{},connections:e};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[d]:b})})}catch{P(O)}},[O]);(0,f.useCallback)(async(a,b)=>{aF(a);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(a){console.error("Error updating quota visibility:",a),aF(b)}},[]);let bh=(0,f.useCallback)((a,b)=>{a&&aF(c=>{let d=c[a]||{},e=b(new Set(d.hidden||[])),f={...c,[a]:{...d,hidden:[...e]}};return(async()=>{try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:f})})).ok)throw Error("Failed to update quota visibility")}catch(a){console.error("Error updating quota visibility:",a),aF(c)}})(),f})},[]),bi=(a,b)=>{if("gemini"===b)for(let b of a)b.startsWith("gemini-")&&!b.includes("image")&&a.delete(b);else if("claude"===b)for(let b of a)(b.startsWith("claude-")||b.startsWith("gpt-"))&&a.delete(b)},bj=(0,f.useCallback)((a,b,c)=>{let d=(0,r.Ih)(b);a&&d&&bh(a,a=>(a.add(d),"antigravity"===c&&bi(a,d),a))},[bh]),bk=(0,f.useCallback)(a=>{a&&bh(a,()=>new Set)},[bh]),bl=(0,f.useCallback)((a,b,c)=>{let d=(0,r.Ih)(b);a&&d&&bh(a,a=>(a.delete(d),"antigravity"===c&&bi(a,d),a))},[bh]);(0,f.useCallback)((a,b)=>{a.length&&aF(c=>{let d={...c},e=!1;for(let c of a){let a=d[c]||{},f=b(c,a);if(null===f)continue;let g=a.hidden||[];(f.length!==g.length||f.some((a,b)=>a!==g[b]))&&(d[c]={...a,hidden:f},e=!0)}return e?((async()=>{try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:d})})).ok)throw Error("Failed to update quota visibility")}catch(a){console.error("Error updating quota visibility:",a),aF(c)}})(),d):c})},[]);let bm=(0,f.useMemo)(()=>(0,r.uf)(c,x,aG,ar,ay),[c,x,aG,ar,ay]),bn=(0,f.useMemo)(()=>aI?bm.filter(a=>{if(H[a.id]||K[a.id])return!0;let b=x[a.id];return!b||(b.quotas?.length??0)>0}):bm,[bm,aI,H,K,x]),bo=a=>{let b=x[a.id]?.quotas;if(!b?.length)return!1;let c=b.filter(a=>!0!==a.unlimited);return 0!==c.length&&c.every(a=>{let b=a.total||0;return b<=0||(a.used||0)>=b})},bp=(0,f.useCallback)(async(a,b)=>{if(a.length&&!aK){aL(!0);try{await Promise.all(a.map(a=>fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})}))),await (0,r.Jp)(a$,aP)}catch(a){console.error("Error bulk toggling connections:",a)}finally{aL(!1)}}},[aK,a$,aP]),bq="all"===ar?"All providers":ar,br=aX.eligibleConnections>0,bs=bn.length>0,bt=(0,r.g5)(aX,ar,aw),bu=({start:a,end:b,total:c})=>(0,t.Tl)("Showing {start}-{end} of {total}").replace("{start}",String(a)).replace("{end}",String(b)).replace("{total}",String(c)),bv=(0,r.kx)(aV,bu),bw=bn.length!==bm.length,bx=(0,r.k9)(bn.length,aR,bu),by=!r.pT.includes(aR);(0,r.Xr)(aR,by);let bz=Y||br?Y||bs?null:(0,e.jsx)(s.default,{padding:"lg",children:(0,e.jsxs)("div",{className:"text-center py-12",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:bt.icon}),(0,e.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text",children:bt.title}),(0,e.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:bt.description})]})}):(0,e.jsx)(s.default,{padding:"lg",children:(0,e.jsxs)("div",{className:"text-center py-12",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,e.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text",children:"No Providers Connected"}),(0,e.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,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsx)(j.A,{view:aA,onViewChange:aB,providerFilter:ar,providerOptions:au,providerLabel:"all"===ar?(0,t.Tl)("All providers"):bq,onProviderChange:a=>{(0,r.wU)(ar,a)&&aQ(1),at(a)},accountFilter:aw,onAccountChange:a=>{(0,r.wU)(aw,a)&&aQ(1),ax(a)},showCodexSort:"codex"===ar,quotaSortMode:ay,onQuotaSortChange:az,expiringFirst:aG,onToggleExpiringFirst:()=>aH(a=>!a),onDisableDepleted:()=>{let a=bm.filter(a=>(a.isActive??!0)&&bo(a)).map(a=>a.id);bp(a,!1)},onEnableAvailable:()=>{let a=bm.filter(a=>!(a.isActive??!0)&&!bo(a)).map(a=>a.id);bp(a,!0)},bulkToggling:aK,autoRefresh:M,onToggleAutoRefresh:()=>N(a=>!a),countdown:W,refreshingAll:U,onRefreshAll:()=>"windows"===aA?aD(a=>a+1):bf(!0),accountCount:aV.total}),"windows"===aA?(0,e.jsx)(k.A,{providerFilter:ar,accountFilter:aw,refreshKey:aC,showTrackerLink:!1}):(0,e.jsxs)(e.Fragment,{children:[bz&&(0,e.jsx)("div",{className:"pt-2",children:bz}),!bz&&(0,e.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:bn.map(c=>{let d,f,g,j=x[c.id],k=!!H[c.id],n=K[c.id],u=!j&&!n,v=!1===c.isActive,w=(0,m._)(c).state,C="codex"===c.provider,D="claude"===c.provider?j?.raw?.resetCredits:null,J=C?"Codex reset credit":"Claude limit reset",L=(d=j?.raw?.resetCredits?.availableCount,f="number"==typeof d?d:Number(d),Number.isFinite(f)?Math.max(0,f):0),M=ac===c.id,N=$===c.id||aa===c.id||M,P=j?.quotas||[],Q=(0,r.dR)(c.id,P,aE,c.provider),R=(0,r.sL)(c.id,P,aE,c.provider),S=(0,l.PZ)(Q),T=(0,l.qz)(Q);return(0,e.jsxs)(s.default,{ref:a6,"data-conn-id":c.id,padding:"none",className:`min-w-0 ${v?"opacity-60":""}`,children:[(0,e.jsx)("div",{className:"px-3 py-2 border-b border-black/10 dark:border-white/10",children:(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,e.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,e.jsx)(h.A,{src:`/providers/${c.provider}.png`,alt:c.provider,size:32,className:"object-contain",fallbackText:c.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("h3",{className:"text-sm font-semibold text-text truncate",children:I[c.provider]||(0,e.jsx)("span",{className:"capitalize",children:c.provider})}),(0,r.JJ)(c)?(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:(0,r.JJ)(c)}):null,y(c)?(0,e.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:y(c)}):null,"kiro"===c.provider&&(0,e.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,e.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:(g=c.providerSpecificData?.authMethod)&&E[g]?E[g]:"api_key"===c.authType?"API Key":"OAuth"}),z(c)&&(0,e.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:z(c)}),(0,e.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${v?"bg-surface-2 text-text-muted":"active"===w||"success"===w?"bg-green-500/10 text-green-600 dark:text-green-400":"partial"===w?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"error"===w||"expired"===w||"unavailable"===w?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:v?"disabled":"partial"===w?"partial":w||"unknown"}),c.providerSpecificData?.profileArn&&(0,e.jsxs)("button",{type:"button",onClick:()=>b(c.providerSpecificData.profileArn,c.id),title:c.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,e.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:a===c.id?"check":"content_copy"}),(0,e.jsx)("code",{className:"truncate font-mono",children:c.providerSpecificData.profileArn})]})]})]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(C||D)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(q.default,{text:L>0?D?`Use your reset now (${L} left, use by ${B(D.expiresAt)}) \xb7 refills ${A(D.clears)}`:`Use one ${J}. Available: ${L}`:`No ${J}s available`,children:(0,e.jsxs)("button",{type:"button",onClick:()=>af({connection:c,resetCreditCount:L}),disabled:L<=0||u||k||N,"aria-label":L>0?`Use one ${J}. ${L} available.`:`No ${J}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 ${L>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,e.jsx)("span",{className:`material-symbols-outlined text-[15px] ${M?"animate-spin":""}`,children:M?"progress_activity":"restart_alt"}),(0,e.jsx)("span",{children:L})]})}),(0,e.jsx)(q.default,{text:C?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,e.jsx)("button",{type:"button",onClick:()=>C?bb(c):ba(c,D),disabled:u||N,"aria-label":C?"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,e.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})})]}),F[c.provider]&&"oauth"===c.authType&&(0,e.jsx)(q.default,{text:G[c.provider],children:(0,e.jsx)("button",{type:"button",onClick:()=>bg(c.id,c.provider,O[c.provider]?.[c.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 ${O[c.provider]?.[c.id]===!0?"text-primary":"text-text-muted"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})}),(0,e.jsx)(q.default,{text:"Refresh quota",children:(0,e.jsx)("button",{type:"button",onClick:()=>a8(c.id,c.provider),disabled:k||N,"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,e.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${k||u?"animate-spin":""}`,children:"refresh"})})}),(0,e.jsx)(q.default,{text:"Edit connection",children:(0,e.jsx)("button",{type:"button",onClick:()=>{al(c),aj(!0)},disabled:N,"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,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,e.jsx)(q.default,{text:"Delete connection",children:(0,e.jsx)("button",{type:"button",onClick:()=>bc(c.id),disabled:N,"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,e.jsx)("span",{className:`material-symbols-outlined text-[18px] ${$===c.id?"animate-pulse":""}`,children:"delete"})})}),(0,e.jsx)("div",{className:"inline-flex items-center pl-0.5",title:c.isActive??!0?"Disable connection":"Enable connection",children:(0,e.jsx)(p.default,{size:"sm",checked:c.isActive??!0,disabled:N,onChange:a=>bd(c.id,a)})})]})]})}),j&&Q.length>0&&(0,e.jsx)("div",{className:"px-3 pt-2.5",children:(0,e.jsx)(i.default,{packs:Q,nestedCycle:aJ})}),(0,e.jsxs)("div",{className:"px-2 py-1.5",children:[j?.raw?.webSessionExpired===!0&&(0,e.jsxs)("p",{className:"px-1 pb-1 text-[11px] text-amber-600 dark:text-amber-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined align-[-2px] text-[13px]",children:"warning"})," ",(0,t.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.")]}),n&&j&&(0,e.jsxs)("p",{className:"px-1 pb-1 text-[11px] text-red-500/80",children:[(0,t.Tl)("Update failed, showing last known")," \xb7 ",n]}),u?(0,e.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):n&&!j?(0,e.jsxs)("div",{className:"text-center py-5",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,e.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:n})]}):j?.message?(0,e.jsx)("div",{className:"text-center py-5",children:(0,e.jsx)("p",{className:"text-xs text-text-muted",children:j.message})}):(0,e.jsxs)(e.Fragment,{children:[0===Q.length&&P.length>0&&(0,e.jsxs)("div",{className:"text-center py-5",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[28px] text-text-muted opacity-40",children:"visibility_off"}),(0,e.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:(0,t.Tl)("All quota rows are hidden — use the chips below to show them")})]}),T&&(0,e.jsxs)("button",{type:"button",onClick:()=>aO(c.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":aM.has(c.id),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aM.has(c.id)?"expand_less":"expand_more"}),(0,t.Tl)("Per-pack details"),(0,e.jsxs)("span",{className:"tabular-nums opacity-60",children:["(",S.length,")"]})]}),T&&aM.has(c.id)&&(0,e.jsx)(o.A,{quotas:S,sortMode:"default",showSortLabel:"codex"===c.provider&&"default"!==ay,onHideQuota:a=>bj(c.id,a,c.provider)})]}),R.length>0&&(0,e.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,e.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[14px]",children:"visibility_off"}),(0,e.jsxs)("span",{className:"shrink-0",children:[(0,t.Tl)("Hidden"),(0,e.jsxs)("span",{className:"tabular-nums opacity-60",children:[" (",R.length,")"]})]}),(0,e.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap",children:R.map(a=>(0,e.jsx)("button",{type:"button",onClick:()=>bl(c.id,a,c.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,t.Tl)("Show this quota row"),children:(0,o.M)(a.name)},(0,r.Ih)(a)))}),R.length>1&&(0,e.jsx)("button",{type:"button",onClick:()=>bk(c.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,t.Tl)("Show all")})]})]})]},c.id)})}),(0,e.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,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted",children:bw?bx:bv}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsxs)("select",{value:by?"custom":String(aR),onChange:a=>{let b=a.target.value;if("custom"===b)return;let c=Number.parseInt(b,10);Number.isFinite(c)&&(aQ(1),aS(c),aU(String(c)))},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:[r.pT.map(a=>(0,e.jsx)("option",{value:String(a),children:(0,t.Tl)("{count} / page").replace("{count}",String(a))},a)),(0,e.jsx)("option",{value:"custom",children:"Custom"})]}),(0,e.jsx)("input",{type:"number",min:"1",max:String(r.b8),inputMode:"numeric",value:aT,onChange:a=>aU(a.target.value),onBlur:()=>{let a=Number.parseInt(aT,10);if(!Number.isFinite(a))return void aU(String(aR));let b=Math.min(r.b8,Math.max(1,a));aQ(1),aS(b),aU(String(b))},onKeyDown:a=>{if("Enter"!==a.key)return;let b=Number.parseInt(aT,10);if(!Number.isFinite(b))return void aU(String(aR));let c=Math.min(r.b8,Math.max(1,b));aQ(1),aS(c),aU(String(c))},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,e.jsx)("span",{className:"text-xs text-text-muted",children:(0,t.Tl)("Page {page} / {total}").replace("{page}",String(aV.page)).replace("{total}",String(aV.totalPages))})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:()=>aQ(1),disabled:aV.page<=1||Y||U,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,e.jsx)("button",{type:"button",onClick:()=>aQ(a=>Math.max(1,a-1)),disabled:aV.page<=1||Y||U,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,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,e.jsx)("button",{type:"button",onClick:()=>aQ(a=>Math.min(aV.totalPages,a+1)),disabled:aV.page>=aV.totalPages||Y||U,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,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,e.jsx)("button",{type:"button",onClick:()=>aQ(aV.totalPages),disabled:aV.page>=aV.totalPages||Y||U,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,e.jsx)(u.uo,{isOpen:!!ae,onClose:()=>{ac||af(null)},onConfirm:async()=>{let a=ae?.connection;a&&(await a9(a.id,a.provider),af(null))},title:ae?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:ae?.connection?.provider==="claude"?`Refills your ${A(x[ae.connection.id]?.raw?.resetCredits?.clears)} now for ${(0,r.JJ)(ae.connection)||"this account"} \xb7 your weekly reset day stays ${B(x[ae.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${ae.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${(0,r.JJ)(ae?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${ae?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!ac}),ag&&(0,e.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,e.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,e.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,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("h3",{className:"text-base font-semibold text-text",children:ag.data?.kind==="claude"?"Claude Code Limit Resets":"Codex Reset Credit Expiry"}),(0,e.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:(0,r.JJ)(ag.connection)||(ag.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,e.jsx)("button",{type:"button",onClick:()=>ah(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,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,e.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:ag.loading?(0,e.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):ag.error?(0,e.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:ag.error}):ag.data?.kind==="claude"&&ag.data.grants?.length?(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.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,e.jsxs)("span",{children:[ag.data.availableCount??0," reset",1===ag.data.availableCount?"":"s"," left"]}),(0,e.jsxs)("span",{children:["Weekly reset day: ",B(ag.data.weeklyResetsAt)]})]}),(0,e.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,e.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,e.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Reset"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Left"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Refills"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Use By"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,e.jsx)("tbody",{children:(ag.data.grants||[]).map(a=>(0,e.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,e.jsxs)("td",{className:"px-3 py-2",children:[(0,e.jsx)("div",{className:"text-text",children:a.label||a.id}),(0,e.jsx)("span",{className:"mt-1 inline-block rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:a.resetsLeft<=0?"used":a.paused?"paused":a.endsAt&&new Date(a.endsAt).getTime()<=Date.now()?"expired":a.usableNow?"usable now":a.startsAt&&new Date(a.startsAt).getTime()>Date.now()?"not started":a.useRequiresLimit?"at limit only":"unavailable"})]}),(0,e.jsxs)("td",{className:"whitespace-nowrap px-3 py-2 font-medium tabular-nums text-text",children:[a.resetsLeft," / ",a.resetsTotal]}),(0,e.jsx)("td",{className:"px-3 py-2 text-text-muted",children:A(a.clears)}),(0,e.jsx)("td",{className:"px-3 py-2 text-text",children:B(a.endsAt)}),(0,e.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text",children:C(a.endsAt)})]},a.id))})]})})]}):ag.data?.credits?.length?(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.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,e.jsxs)("span",{children:[ag.data.credits.length," reset credit",1===ag.data.credits.length?"":"s"]}),(0,e.jsxs)("span",{children:[ag.data.availableCount??0," available"]})]}),(0,e.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,e.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,e.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,e.jsx)("tbody",{children:ag.data.credits.map((a,b)=>(0,e.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,e.jsx)("td",{className:"px-3 py-2",children:(0,e.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:a.status||"unknown"})}),(0,e.jsx)("td",{className:"px-3 py-2 text-text-muted",children:B(a.grantedAt)}),(0,e.jsx)("td",{className:"px-3 py-2 text-text",children:B(a.expiresAt)}),(0,e.jsx)("td",{className:"px-3 py-2 font-medium text-text",children:C(a.expiresAt)})]},`${a.status}-${a.expiresAt||b}`))})]})})]}):(0,e.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:ag.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),(0,e.jsx)(u.wI,{isOpen:ai,connection:ak,proxyPools:am,onSave:be,onClose:()=>{aj(!1),al(null)}})]})}d()}catch(a){d(a)}})},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4088:(a,b,c)=>{"use strict";c.d(b,{$L:()=>H,AA:()=>m,AI:()=>f,ED:()=>t,Ih:()=>I,JJ:()=>q,J_:()=>g,Jp:()=>E,Uh:()=>D,WA:()=>i,W_:()=>M,Wg:()=>j,Xr:()=>v,ZS:()=>C,b8:()=>l,bf:()=>p,dE:()=>A,dR:()=>K,g5:()=>u,k9:()=>y,kx:()=>x,mO:()=>F,pT:()=>k,q$:()=>o,sL:()=>L,uf:()=>s,vF:()=>n,w2:()=>h,wU:()=>B,wi:()=>z});var d=c(42889),e=c(71452);let f="quotaCacheData",g=6e4,h=6e5,i="quotaAutoRefresh",j=20,k=[10,20,50,100],l=500,m=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],n=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function o(a,b){return a||b||"all"}function p(a,b,c){let d=new URLSearchParams(b||"");c&&"all"!==c?d.set("provider",c):d.delete("provider");let e=d.toString();return e?`${a}?${e}`:a}function q(a){return"qoder"===a.provider||"qoder-cn"===a.provider?a.displayName?.trim()||a.name?.trim()||a.email?.trim()||null:a.name?.trim()||a.email?.trim()||a.displayName?.trim()||null}function r(a,b){let c=b[a.id]?.quotas?.[0];return c&&"number"==typeof c.remaining?c.remaining:1/0}function s(a,b,c,d,e){if("codex"===d&&"default"!==e)return[...a].sort((a,c)=>{let d=r(a,b),f=r(c,b),g="remaining-asc"===e?d-f:f-d;return 0!==g?g:(q(a)||"").localeCompare(q(c)||"")});if(!c){let b=new Map;for(let c of a){let a=c.provider||"";b.has(a)||b.set(a,[]),b.get(a).push(c)}return Array.from(b.values()).flat()}let f=a=>{let c=(b[a.id]?.quotas||[]).map(a=>a.resetAt?new Date(a.resetAt).getTime():1/0).filter(a=>Number.isFinite(a));return c.length>0?Math.min(...c):1/0};return[...a].sort((a,b)=>{let c=f(a)-f(b);return 0!==c?c:(a.provider||"").localeCompare(b.provider||"")||(q(a)||"").localeCompare(q(b)||"")})}function t(a,b){let c=new Set(b.map(a=>a.id));return Object.fromEntries(Object.entries(a).filter(([a])=>c.has(a)))}function u(a,b,c){return a.eligibleConnections?a.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"===b?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===c?"turned off":"active"===c?"active":"matching"} accounts found for ${b}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."}}function v(a,b){return b?`Custom: ${a} / page`:`${a} / page`}function w({start:a,end:b,total:c}){return c>0?`Showing ${a}-${b} of ${c}`:"Showing 0 of 0"}function x(a,b=w){var c;let{start:d,end:e}=(c=a).total?{start:(c.page-1)*c.pageSize+1,end:Math.min(c.page*c.pageSize,c.total)}:{start:0,end:0};return b({start:d,end:e,total:a.total})}function y(a,b,c=w){let d=Math.max(0,Number(a)||0);if(0===d)return c({start:0,end:0,total:0});let e=Math.max(1,Number(b)||d);return c({start:1,end:Math.min(d,e),total:d})}function z(a,b){return a||{page:1,pageSize:b,total:0,totalPages:1}}function A(a,b=0){return a||{eligibleConnections:b,providerFilteredConnections:b}}function B(a,b){return a!==b}function C(a,b){return a?.page||b}function D(a){return a||[]}async function E(a,b){return await a(b)}function F(a){if(!a)return"-";try{let b="string"==typeof a?new Date(a):a;if(Number.isNaN(b?.getTime?.())||b.getFullYear()>2099||b-new Date<=0)return"-";return(0,e.TV)(b)||"-"}catch(a){return"-"}}function G(a,b){return b&&0!==b?!a||a<0?100:a>=b?0:Math.round((b-a)/b*100):0}function H(a){return a?.remainingPercentage!==void 0?Math.round(a.remainingPercentage):a?.remaining!==void 0&&(a?.total===100||a?.total===void 0)?Math.max(0,Math.round(a.remaining)):G(a?.used,a?.total)}function I(a){return a&&"object"==typeof a?String(a.modelKey||a.name||"").trim():""}function J(a,b,c,d=[]){let e=null,f=b?.[a]?.hidden;if(Array.isArray(f))e=f.map(String);else if(c&&c!==a){let a=b?.[c]?.hidden;Array.isArray(a)&&(e=a.map(String))}return e?new Set(Array.isArray(d)&&d.length>0?function(a=[],b=[]){if(!Array.isArray(a)||0===a.length)return[];let c=new Set(b.map(I).filter(Boolean));return[...new Set(a.map(a=>String(a).trim()).filter(a=>c.has(a)))]}(e,d):e):new Set}function K(a,b=[],c={},d){if(!Array.isArray(b)||0===b.length)return[];let e=J(a,c,d,b);return 0===e.size?b:b.filter(a=>!e.has(I(a)))}function L(a,b=[],c={},d){if(!Array.isArray(b)||0===b.length)return[];let e=J(a,c,d,b);return 0===e.size?[]:b.filter(a=>e.has(I(a)))}function M(a,b){if(!b||"object"!=typeof b)return[];let c=[];try{switch(a.toLowerCase()){case"github":default:b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})});break;case"antigravity":if(b.quotas){let a=Object.entries(b.quotas),d=a.filter(([a])=>a.startsWith("gemini-")&&!a.includes("image")),e=a.filter(([a])=>a.startsWith("claude-")||a.startsWith("gpt-")),f=a.filter(([a])=>a.includes("image")),g=a.filter(([a])=>!a.startsWith("gemini-")&&!a.startsWith("claude-")&&!a.startsWith("gpt-")&&!a.includes("image"));if(d.length>0){let a=d.reduce((a,b)=>(b[1].remainingPercentage??100)<(a[1].remainingPercentage??100)?b:a)[1];c.push({name:"Gemini (Flash / Pro)",modelKey:"gemini",used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage,percentScale:!0})}if(e.length>0){let a=e.reduce((a,b)=>(b[1].remainingPercentage??100)<(a[1].remainingPercentage??100)?b:a)[1];c.push({name:"Claude (Sonnet / Opus / GPT)",modelKey:"claude",used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage,percentScale:!0})}f.forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,percentScale:!0})}),g.forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,percentScale:!0})})}break;case"codex":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:b.remaining,resetAt:b.resetAt||null})});break;case"kiro":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})});break;case"qoder":case"qoder-cn":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{let d=Number(b?.total)||0;if("user"===a||("organization"===a||"addOn"===a)&&0===d)return;let e=b.resetAt&&2099>=new Date(b.resetAt).getFullYear()?b.resetAt:null;c.push({name:"addOn"===a?"Resource Package":"organization"===a?"Organization":a,used:b.used||0,total:d,unit:b.unit,resetAt:"addOn"===a?null:e,unlimited:!0===b.unlimited,aggregate:!0,..."addOn"===a&&Array.isArray(b.packs)&&b.packs.length>0?{summarizesDetail:!0}:{}}),"addOn"===a&&Array.isArray(b.packs)&&b.packs.forEach((a,d)=>{c.push({name:a.name||(a.unitemized?"Bonus Pack (unitemized)":`Bonus Pack ${d+1}`),used:a.used||0,total:a.total||0,unit:b.unit,resetAt:a.expiresAt&&2099>=new Date(a.expiresAt).getFullYear()?a.expiresAt:null,unlimited:!1,recurring:!1,detailOnly:!0})})});break;case"claude":b.message?c.push({name:"error",used:0,total:0,resetAt:null,message:b.message}):b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:void 0!==b.remaining?b.remaining:Math.max(0,(b.total||100)-(b.used||0)),remainingPercentage:void 0!==b.remainingPercentage?b.remainingPercentage:G(b.used,b.total),resetAt:b.resetAt||null})});break;case"vercel-ai-gateway":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"codebuddy-cn":case"codebuddy-intl":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,recurring:!1!==b.recurring,displayRemaining:!0,..."Monthly"===a?{giftPack:!0}:{}})});break;case"grok-cli":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"kimi":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"deepseek":case"stepfun":case"stepfun-cn":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,displayRemaining:b.displayRemaining})});break;case"ollama":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"commandcode":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:void 0!==b.remaining?b.remaining:Math.max(0,(b.total||0)-(b.used||0)),remainingPercentage:void 0!==b.remainingPercentage?b.remainingPercentage:G(b.used,b.total),resetAt:b.resetAt||null,recurring:!0===b.recurring,displayRemaining:!0})})}}catch(b){return console.error(`Error parsing quota data for ${a}:`,b),[]}if(a?.toLowerCase()==="claude"){let a={"session (5h)":0,"weekly (7d)":1,"weekly fable (7d)":2,"weekly opus (7d)":3,"weekly sonnet (7d)":4};return c.sort((b,c)=>(a[b.name]??99)-(a[c.name]??99)),c}if(a?.toLowerCase()==="commandcode"){let a={"session (5h)":0,"weekly (7d)":1,"Monthly Credits":2,"Purchased Credits":3};return c.sort((b,c)=>(a[b.name]??99)-(a[c.name]??99)),c}let e=(0,d.KC)(a);if(e.length>0){let a=new Map(e.map((a,b)=>[a.id,b]));c.sort((b,c)=>{let d=b.modelKey||b.name,e=c.modelKey||c.name;return(a.get(d)??999)-(a.get(e)??999)})}return c}},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16440:(a,b,c)=>{Promise.resolve().then(c.bind(c,717)),Promise.resolve().then(c.bind(c,74812))},16698:a=>{"use strict";a.exports=require("node:async_hooks")},16736:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h});var d=c(5735),e=c(91986),f=c(92082),g=c(57471);function h(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(f.CardSkeleton,{}),children:(0,d.jsx)(g.default,{})})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},23064:(a,b,c)=>{Promise.resolve().then(c.bind(c,57471)),Promise.resolve().then(c.bind(c,92082))},25386:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>q});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(72738),j=c(99258),k=c(71404),l=c(4088),m=a([i]);i=(m.then?(await m)():m)[0];let r="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]",s="border-primary/30 bg-primary/10 text-primary hover:bg-primary/15",t="material-symbols-outlined text-[16px] leading-none",u={all:"apps",active:"check_circle",inactive:"block"};function n({open:a,onClose:b,align:c="left",className:d,children:f}){return a?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{type:"button",className:"fixed inset-0 z-30 cursor-default bg-transparent","aria-label":"Close",onClick:b}),(0,e.jsx)("div",{className:(0,k.cn)("absolute z-40 mt-1.5 overflow-hidden rounded-xl border border-black/10 bg-surface/95 p-1 shadow-xl shadow-black/10 backdrop-blur dark:border-white/10","right"===c?"right-0":"left-0",d),children:f})]}):null}function o({selected:a=!1,onClick:b,icon:c,children:d,hint:f,disabled:g=!1}){return(0,e.jsxs)("button",{type:"button",onClick:b,disabled:g,className:(0,k.cn)("flex w-full items-start gap-2.5 rounded-lg px-2.5 py-2 text-left text-xs transition-colors disabled:opacity-50",a?"bg-primary/10 text-primary":"text-text hover:bg-black/[0.04] dark:hover:bg-white/[0.06]"),children:[c,(0,e.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,e.jsx)("span",{className:"block font-medium",children:d}),f?(0,e.jsx)("span",{className:"mt-0.5 block text-[11px] text-text-muted",children:f}):null]}),a?(0,e.jsx)("span",{className:(0,k.cn)(t,"text-[14px]"),children:"check"}):null]})}function p({provider:a,size:b=16}){return"all"===a?(0,e.jsx)("span",{className:(0,k.cn)(t,"text-text-muted"),children:"apps"}):(0,e.jsx)(i.A,{src:`/providers/${a}.png`,alt:a,size:b,className:"rounded object-contain",fallbackText:a.slice(0,2).toUpperCase()})}function q({view:a="cards",onViewChange:b,providerFilter:c,providerOptions:d,providerLabel:g,onProviderChange:h,accountFilter:i,onAccountChange:m,showCodexSort:v,quotaSortMode:w,onQuotaSortChange:x,expiringFirst:y,onToggleExpiringFirst:z,onDisableDepleted:A,onEnableAvailable:B,bulkToggling:C,autoRefresh:D,onToggleAutoRefresh:E,countdown:F,refreshingAll:G,onRefreshAll:H,accountCount:I}){let[J,K]=(0,f.useState)(!1),[L,M]=(0,f.useState)(!1),N="cards"===a;return(0,e.jsxs)("div",{className:"@container flex flex-wrap items-center gap-2",children:[b&&(0,e.jsx)("div",{role:"tablist","aria-label":(0,j.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,j.Tl)("Cards")},{value:"windows",icon:"date_range",label:(0,j.Tl)("Quota windows")}].map(c=>(0,e.jsxs)("button",{type:"button",role:"tab","aria-selected":a===c.value,"aria-label":c.label,onClick:()=>b(c.value),className:(0,k.cn)("flex h-full items-center gap-1 rounded-md px-2.5 text-xs transition-colors",a===c.value?"bg-primary/10 font-medium text-primary":"text-text-muted hover:text-text"),children:[(0,e.jsx)("span",{className:(0,k.cn)(t,"text-[15px]"),children:c.icon}),(0,e.jsx)("span",{className:"hidden @min-[900px]:inline",children:c.label})]},c.value))}),(0,e.jsxs)("div",{className:"flex min-w-0 items-center gap-2 @max-[640px]:order-last @max-[640px]:w-full",children:[(0,e.jsxs)("div",{className:"relative min-w-0",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>K(a=>!a),className:(0,k.cn)(r,"all"!==c&&s),"aria-haspopup":"menu","aria-expanded":J,title:(0,j.Tl)("Filter quota providers"),children:[(0,e.jsx)(p,{provider:c}),(0,e.jsx)("span",{className:"max-w-[9rem] truncate capitalize @max-[640px]:max-w-[5rem]",children:g}),(0,e.jsx)("span",{className:(0,k.cn)(t,"text-[14px] text-text-muted"),children:"expand_more"})]}),(0,e.jsxs)(n,{open:J,onClose:()=>K(!1),className:"w-64",children:[(0,e.jsx)(o,{selected:"all"===c,icon:(0,e.jsx)(p,{provider:"all",size:18}),onClick:()=>{h("all"),K(!1)},children:(0,j.Tl)("All providers")}),(0,e.jsx)("div",{className:"my-1 h-px bg-black/5 dark:bg-white/10"}),(0,e.jsx)("div",{className:"max-h-72 overflow-y-auto",children:d.map(a=>(0,e.jsx)(o,{selected:c===a,icon:(0,e.jsx)(p,{provider:a,size:18}),onClick:()=>{h(a),K(!1)},children:(0,e.jsx)("span",{className:"capitalize",children:a})},a))})]})]}),(0,e.jsx)("div",{role:"radiogroup","aria-label":(0,j.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:l.AA.map(a=>{let b=i===a.value;return(0,e.jsxs)("button",{type:"button",role:"radio","aria-checked":b,"aria-label":(0,j.Tl)(a.label),onClick:()=>m(a.value),className:(0,k.cn)("flex h-full items-center gap-1 rounded-md px-2.5 text-xs transition-colors @max-[640px]:px-2",b?"bg-primary/10 font-medium text-primary":"text-text-muted hover:text-text"),children:[(0,e.jsx)("span",{className:(0,k.cn)(t,"hidden text-[14px] @max-[640px]:inline"),children:u[a.value]}),(0,e.jsx)("span",{className:"@max-[640px]:hidden",children:(0,j.Tl)(a.label)})]},a.value)})}),N&&(0,e.jsx)("button",{type:"button",onClick:z,"aria-pressed":y,className:(0,k.cn)(r,"w-8 justify-center px-0",y&&s),title:(0,j.Tl)("Sort accounts by earliest reset or expiry time"),"aria-label":(0,j.Tl)("Resets first"),children:(0,e.jsx)("span",{className:t,children:"hourglass_top"})}),N&&v&&(0,e.jsx)("select",{value:w,onChange:a=>x(a.target.value),className:(0,k.cn)(r,"pr-1 outline-none"),"aria-label":(0,j.Tl)("Sort Codex quotas by remaining"),children:l.vF.map(a=>(0,e.jsx)("option",{value:a.value,children:(0,j.Tl)(a.label)},a.value))})]}),(0,e.jsxs)("div",{className:"ml-auto flex items-center gap-2 @max-[640px]:order-2",children:[N&&Number.isFinite(I)&&(0,e.jsx)("span",{className:"hidden text-xs tabular-nums text-text-muted @min-[1130px]:inline",children:(0,j.Tl)("{count} accounts").replace("{count}",String(I))}),N&&(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>M(a=>!a),disabled:C,className:r,"aria-haspopup":"menu","aria-expanded":L,title:(0,j.Tl)("Bulk actions"),"aria-label":(0,j.Tl)("Bulk actions"),children:[(0,e.jsx)("span",{className:t,children:C?"progress_activity":"checklist"}),(0,e.jsx)("span",{className:"hidden @min-[1060px]:inline",children:(0,j.Tl)("Bulk actions")}),(0,e.jsx)("span",{className:(0,k.cn)(t,"text-[14px] text-text-muted"),children:"expand_more"})]}),(0,e.jsxs)(n,{open:L,onClose:()=>M(!1),align:"right",className:"w-72",children:[(0,e.jsx)(o,{disabled:C,icon:(0,e.jsx)("span",{className:(0,k.cn)(t,"mt-px text-red-500"),children:"block"}),hint:(0,j.Tl)("Disable connections with depleted quota on the current page"),onClick:()=>{M(!1),A()},children:(0,j.Tl)("Turn off Empty")}),(0,e.jsx)(o,{disabled:C,icon:(0,e.jsx)("span",{className:(0,k.cn)(t,"mt-px text-emerald-500"),children:"check_circle"}),hint:(0,j.Tl)("Enable connections that still have quota on the current page"),onClick:()=>{M(!1),B()},children:(0,j.Tl)("Turn on Available")})]})]}),N&&(0,e.jsxs)("button",{type:"button",role:"switch","aria-checked":D,onClick:E,className:r,title:(0,j.Tl)(D?"Disable auto-refresh":"Enable auto-refresh"),children:[(0,e.jsx)("span",{"aria-hidden":"true",className:(0,k.cn)("relative h-4 w-7 rounded-full transition-colors",D?"bg-primary":"bg-black/15 dark:bg-white/20"),children:(0,e.jsx)("span",{className:(0,k.cn)("absolute top-0.5 size-3 rounded-full bg-white shadow transition-[left]",D?"left-[14px]":"left-0.5")})}),(0,e.jsx)("span",{className:"hidden @min-[980px]:inline",children:(0,j.Tl)("Auto-refresh")}),D&&(0,e.jsxs)("span",{className:"w-6 text-right text-[11px] tabular-nums text-text-muted",children:[F,"s"]})]}),(0,e.jsx)("button",{type:"button",onClick:H,disabled:G,className:(0,k.cn)(r,"w-8 justify-center px-0"),title:(0,j.Tl)("Refresh all"),"aria-label":(0,j.Tl)("Refresh all"),children:(0,e.jsx)("span",{className:(0,k.cn)(t,G&&"animate-spin"),children:"refresh"})})]})]})}n.propTypes={open:h().bool,onClose:h().func.isRequired,align:h().oneOf(["left","right"]),className:h().string,children:h().node},o.propTypes={selected:h().bool,onClick:h().func,icon:h().node,children:h().node,hint:h().node,disabled:h().bool},p.propTypes={provider:h().string.isRequired,size:h().number},q.propTypes={view:h().oneOf(["cards","windows"]),onViewChange:h().func,providerFilter:h().string.isRequired,providerOptions:h().arrayOf(h().string).isRequired,providerLabel:h().node,onProviderChange:h().func.isRequired,accountFilter:h().string.isRequired,onAccountChange:h().func.isRequired,showCodexSort:h().bool,quotaSortMode:h().string,onQuotaSortChange:h().func,expiringFirst:h().bool,onToggleExpiringFirst:h().func.isRequired,onDisableDepleted:h().func.isRequired,onEnableAvailable:h().func.isRequired,bulkToggling:h().bool,autoRefresh:h().bool,onToggleAutoRefresh:h().func.isRequired,countdown:h().number,refreshingAll:h().bool,onRefreshAll:h().func.isRequired,accountCount:h().number},d()}catch(a){d(a)}})},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29413:(a,b,c)=>{"use strict";c.d(b,{A:()=>q,M:()=>j.M});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(4088),i=c(99258),j=c(9734),k=c(71452),l=c(82563),m=c(71404);function n(a){return Number(Number(a||0).toFixed(2)).toLocaleString("en-US")}function o({quota:a,now:b,onHide:c}){let e=(0,k.Cd)(a,a.pct),f=(0,k.OG)(a),g=(0,k.D2)(a,b),m=!!a.resetAt&&2099>=new Date(a.resetAt).getFullYear(),p=m?(0,h.mO)(a.resetAt):"-",q=m?[function(a){let b=new Date(a);if(Number.isNaN(b.getTime())||b.getFullYear()>2099)return"";let c=a=>String(a).padStart(2,"0");return`${b.getFullYear()}-${c(b.getMonth()+1)}-${c(b.getDate())} ${c(b.getHours())}:${c(b.getMinutes())}`}(a.resetAt),"-"!==p?p:null].filter(Boolean).join(" \xb7 "):void 0,r=a.percentScale?`${a.pct}%`:a.unlimited?"∞":`${n(Math.max(0,a.total-a.used))} / ${n(a.total)}`;return(0,d.jsxs)("div",{className:"group min-w-0 space-y-1 py-1",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-2 text-[11px] tabular-nums",children:[(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,d.jsx)("span",{className:"size-[8px] shrink-0 rounded-[2px]",style:{background:(0,l.dI)(a.pct)},"aria-hidden":"true"}),(0,d.jsx)("span",{className:"truncate text-text",children:(0,j.M)(a.name)})]}),(0,d.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[(0,d.jsx)("span",{className:l.pM[e],title:a.percentScale||a.unlimited?void 0:`${(0,i.Tl)("Used")} ${n(a.used)}`,children:r}),m?(0,d.jsx)("span",{className:"text-text-muted",title:q,children:(0,l.h7)(f,a.resetAt,{expired:g})}):null,c?(0,d.jsx)("button",{type:"button",onClick:()=>c(a),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,i.Tl)("Hide this quota row"),"aria-label":`${(0,i.Tl)("Hide this quota row")}: ${(0,j.M)(a.name)}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"visibility_off"})}):null]})]}),(0,d.jsx)(l.Ay,{pct:a.pct})]})}function p({rows:a,now:b,onHide:c,limit:e,onMore:f}){let g=a.length-e;return(0,d.jsxs)(d.Fragment,{children:[a.slice(0,e).map(a=>(0,d.jsx)(o,{quota:a,now:b,onHide:c},`${a.name}-${a.index}`)),g>0&&(0,d.jsx)("button",{type:"button",onClick:f,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,i.Tl)("Show {count} more").replace("{count}",String(Math.min(10,g)))})]})}function q({quotas:a=[],sortMode:b="default",showSortLabel:c=!1,onHideQuota:f=null}){let[g,j]=(0,e.useState)(10),[l,n]=(0,e.useState)(10),[o,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(()=>Date.now()),{live:u,history:v}=(0,e.useMemo)(()=>{var c;let d=(c=a.map((a,b)=>({...a,index:b,used:Number(a.used||0),total:Number(a.total||0),pct:(0,h.$L)(a)})),"remaining-asc"===b?[...c].sort((a,b)=>a.pct-b.pct||a.name.localeCompare(b.name)):"remaining-desc"===b?[...c].sort((a,b)=>b.pct-a.pct||a.name.localeCompare(b.name)):c);return{live:d.filter(a=>!(0,k.UY)(a,s)),history:d.filter(a=>(0,k.UY)(a,s))}},[a,b,s]);if(!a||0===a.length)return null;let w="function"==typeof f?f:null;return(0,d.jsxs)("div",{className:"space-y-0.5",children:[c&&(0,d.jsx)("div",{className:"pb-1 text-[10px] text-text-muted",children:(0,i.Tl)("Sorted by account remaining")}),(0,d.jsx)(p,{rows:u,now:s,onHide:w,limit:g,onMore:()=>j(a=>a+10)}),v.length>0&&(0,d.jsxs)("div",{className:(0,m.cn)(u.length>0&&"mt-1 border-t border-black/5 pt-1 dark:border-white/5"),children:[(0,d.jsxs)("button",{type:"button",onClick:()=>r(a=>!a),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":o,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:o?"expand_less":"expand_more"}),(0,i.Tl)("Used up / expired"),(0,d.jsxs)("span",{className:"tabular-nums opacity-60",children:["(",v.length,")"]})]}),o&&(0,d.jsx)("div",{className:"opacity-60",children:(0,d.jsx)(p,{rows:v,now:s,onHide:w,limit:l,onMore:()=>n(a=>a+10)})})]})]})}o.propTypes={quota:g().object.isRequired,now:g().number.isRequired,onHide:g().func},p.propTypes={rows:g().array.isRequired,now:g().number.isRequired,onHide:g().func,limit:g().number.isRequired,onMore:g().func.isRequired},q.propTypes={quotas:g().array,sortMode:g().string,showSortLabel:g().bool,onHideQuota:g().func}},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57471:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\usage\\\\components\\\\ProviderLimits\\\\index.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\usage\\components\\ProviderLimits\\index.js","default")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67212:(a,b,c)=>{"use strict";c.d(b,{VC:()=>j,Vw:()=>h,nN:()=>i,sO:()=>e});var d=c(71452);let e=864e5,f=[{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 g(a,b){let c=new Date(a),d=c.getDate();c.setDate(1),c.setMonth(c.getMonth()+b);let e=new Date(c.getFullYear(),c.getMonth()+1,0).getDate();return c.setDate(Math.min(d,e)),c.getTime()}let h={week:{kinds:["day","week","month"],spanMs:12096e5,stepMs:6048e5,tickMs:864e5},hours:{kinds:["5h"],spanMs:864e5,stepMs:864e5,tickMs:36e5}};function i(a,b,c=0){let d,e,f,g=h[a]||h.week,j=("hours"===a?((d=new Date(b-432e5)).setMinutes(0,0,0),d.getTime()):((e=new Date(b)).setHours(0,0,0,0),f=(e.getDay()+6)%7,e.setDate(e.getDate()-f),e.getTime()))+c*g.stepMs;return{start:j,end:j+g.spanMs}}function j(a=[],{view:b="week",rangeStart:c,rangeEnd:e}={}){let i=(h[b]||h.week).kinds,k=[];for(let b of a||[]){let a=(Array.isArray(b?.quotas)?b.quotas:[]).map(a=>({q:a,kind:function(a){if(a?.giftPack===!0||a?.detailOnly===!0||!(0,d.OG)(a)||!a?.resetAt)return null;let b=String(a?.name||""),c=(0,d.TM)(b)?.window||b;for(let a of f)if(a.re.test(c))return a.key;return null}(a)})).filter(a=>a.kind);if(0===a.length)continue;let h=a.map(({q:a,kind:b})=>({name:a.name,kind:b,pct:Math.round((0,d.pR)(a))})),j=a.filter(({kind:a})=>i.includes(a)).map(({q:a,kind:b})=>({name:a.name,kind:b,pct:(0,d.pR)(a),resetAt:a.resetAt,windows:function(a,b,c,d,e=60){let h=[],i=new Date(a?.resetAt).getTime(),j=function(a,b){let c=new Date(b).getTime();if("month"===a)return g(c,-1);let d=f.find(b=>b.key===a);return d?.ms?c-d.ms:NaN}(b,i);if(!Number.isFinite(i)||!Number.isFinite(j))return h;for(let a=0;a<=e&&j<d;a+=1){i>c&&h.push({start:j,end:i,current:0===a});let d=function(a,b){let c=new Date(b).getTime();if("month"===a)return g(c,1);let d=f.find(b=>b.key===a);return d?.ms?c+d.ms:NaN}(b,i);if(!Number.isFinite(d))break;j=i,i=d}return h}(a,b,c,e)})).filter(a=>a.windows.length>0);k.push({id:b.id,provider:b.provider,label:b.name||b.email||b.providerName||b.provider,providerName:b.providerName||b.provider,isActive:!1!==b.isActive,chips:h,lanes:j})}return k}},69915:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>w,handler:()=>y,routeModule:()=>x});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u={children:["",{children:["(dashboard)",{children:["dashboard",{children:["quota",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,16736))),"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\quota\\page.js"]}]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"F:\\Files\\GitHub Files\\10router\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,v=(0,e.H)({tree:u,page:"/(dashboard)/dashboard/quota/page",pathname:"/dashboard/quota",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),w=v.__next_app__,x=v.routeModule,y=v.handler},70619:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>w});var e=c(48249),f=c(67484),g=c(2116),h=c.n(g),i=c(49885),j=c.n(i),k=c(17660),l=c(72738),m=c(82563),n=c(99258),o=c(9734),p=c(71452),q=c(67212),r=c(71404),s=a([l]);l=(s.then?(await s)():s)[0];let x="w-[220px] shrink-0",y=a=>String(a).padStart(2,"0"),z=a=>{let b=new Date(a);return`${y(b.getMonth()+1)}/${y(b.getDate())}`},A=a=>{let b=new Date(a);return`${y(b.getHours())}:${y(b.getMinutes())}`};function t(a){let b=(0,p.TM)(a);return b?(0,n.Tl)(b.family):(0,o.M)(a)}function u({value:a,options:b,onChange:c}){return(0,e.jsx)("div",{className:"flex h-8 items-center rounded-lg border border-black/10 bg-surface p-0.5 dark:border-white/10",children:b.map(b=>(0,e.jsx)("button",{type:"button",onClick:()=>c(b.value),"aria-pressed":a===b.value,className:(0,r.cn)("h-full rounded-md px-2.5 text-xs transition-colors",a===b.value?"bg-primary/10 font-medium text-primary":"text-text-muted hover:text-text"),children:b.label},b.value))})}function v({win:a,lane:b,range:c,showLabel:d,view:f}){let g=a=>"hours"===f?A(a):`${z(a)} ${A(a)}`,h=c.end-c.start,i=100*Math.max(0,(a.start-c.start)/h),j=100*Math.min(1,(a.end-c.start)/h),k=Math.max(.5,j-i),l=a.start<c.start,o=a.end>c.end,p=(0,r.cn)(!l&&"rounded-l-[4px]",!o&&"rounded-r-[4px]"),q={left:`${i}%`,width:`${k}%`};if(!a.current)return(0,e.jsx)("div",{className:(0,r.cn)("absolute inset-y-0 overflow-hidden border border-dashed border-black/15 dark:border-white/15",p),style:q,title:`${t(b.name)} \xb7 ${z(a.start)} ${A(a.start)} – ${z(a.end)} ${A(a.end)}`,children:(0,e.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:g(a.start)})});let s=Math.round(b.pct),u=(0,n.Tl)("resets {date}").replace("{date}",g(a.end)),w=`${d?`${t(b.name)} \xb7 `:""}${s}% \xb7 ${u}`;return(0,e.jsxs)("div",{className:(0,r.cn)("absolute inset-y-0 overflow-hidden bg-black/[0.06] dark:bg-white/[0.08]",p),style:q,title:w,children:[(0,e.jsx)("div",{className:"absolute inset-y-0 left-0",style:{width:`${s}%`,opacity:.85,...(0,m.jE)(s)}}),(0,e.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:w})]})}function w({providerFilter:a="all",accountFilter:b="all",refreshKey:c=0,showTrackerLink:d=!0}){let[g,i]=(0,f.useState)(null),[j,p]=(0,f.useState)(null),[s,t]=(0,f.useState)(!1),[B,C]=(0,f.useState)("week"),[D,E]=(0,f.useState)(0),[F,G]=(0,f.useState)(null),H=(0,f.useMemo)(()=>(g||[]).filter(c=>("all"===a||c.provider===a)&&("active"!==b||!1!==c.isActive)&&("inactive"!==b||!1===c.isActive)),[g,a,b]),I=(0,f.useMemo)(()=>F?(0,q.nN)(B,F,D):null,[B,F,D]),J=(0,f.useMemo)(()=>I&&g?(0,q.VC)(H,{view:B,rangeStart:I.start,rangeEnd:I.end}):[],[g,H,B,I]),K=(0,f.useMemo)(()=>{if(!I)return[];let a=q.Vw[B].tickMs,b=[];for(let c=I.start;c<I.end;c+=a)b.push(c);return b},[I,B]),L=I&&F>=I.start&&F<I.end?(F-I.start)/(I.end-I.start)*100:null,M=F?new Date(new Date(F).setHours(0,0,0,0)).getTime():null,N=I?"hours"===B?`${z(I.start)} ${A(I.start)} – ${z(I.end)} ${A(I.end)}`:`${z(I.start)} – ${z(I.end-q.sO)} \xb7 ${(0,n.Tl)("two weeks")}`:"";return(0,e.jsxs)(k.default,{children:[(0,e.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-3",children:[(0,e.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,e.jsxs)("h2",{className:"flex items-center gap-2 text-lg font-semibold",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[20px] text-primary",children:"date_range"}),(0,n.Tl)("Quota windows"),s&&(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-[14px] text-text-muted","aria-label":(0,n.Tl)("Refreshing"),children:"progress_activity"})]}),(0,e.jsxs)("p",{className:"mt-0.5 text-xs text-text-muted tabular-nums",children:[N,0===D&&N?` \xb7 ${(0,n.Tl)("current")}`:""]})]}),(0,e.jsxs)("div",{className:"flex h-8 items-center rounded-lg border border-black/10 bg-surface dark:border-white/10",children:[(0,e.jsx)("button",{type:"button",onClick:()=>E(a=>a-1),className:"flex h-full w-8 items-center justify-center text-text-muted hover:text-text","aria-label":(0,n.Tl)("Previous"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,e.jsx)("button",{type:"button",onClick:()=>E(0),disabled:0===D,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,n.Tl)("hours"===B?"current":"Today")}),(0,e.jsx)("button",{type:"button",onClick:()=>E(a=>a+1),className:"flex h-full w-8 items-center justify-center text-text-muted hover:text-text","aria-label":(0,n.Tl)("Next"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})})]}),(0,e.jsx)(u,{value:B,onChange:a=>{C(a),E(0)},options:[{value:"week",label:(0,n.Tl)("By week")},{value:"hours",label:(0,n.Tl)("5 hours")}]}),d&&(0,e.jsxs)(h(),{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,n.Tl)("Quota Tracker"),(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"arrow_forward"})]})]}),null===g?(0,e.jsx)("div",{className:"py-10 text-center text-xs text-text-muted",children:(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-[22px]",children:"progress_activity"})}):0===J.length?(0,e.jsx)("div",{className:"py-8 text-center text-xs text-text-muted",children:j?`${(0,n.Tl)("Failed to load quotas")} \xb7 ${j}`:(0,n.Tl)("No accounts with recurring quota windows")}):(0,e.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,e.jsxs)("div",{className:"min-w-[760px]",children:[(0,e.jsxs)("div",{className:"flex border-b border-black/10 bg-black/[0.015] dark:border-white/10 dark:bg-white/[0.02]",children:[(0,e.jsx)("div",{className:(0,r.cn)(x,"flex items-end px-3 pb-1.5 text-[11px] text-text-muted"),children:(0,n.Tl)("Account")}),(0,e.jsx)("div",{className:"relative flex flex-1",children:K.map((a,b)=>{let c="week"===B&&a===M,d="hours"!==B||new Date(a).getHours()%2==0;return(0,e.jsx)("div",{className:(0,r.cn)("flex-1 border-l border-black/5 px-0.5 py-1.5 text-center dark:border-white/5",0===b&&"border-l-0",c&&"bg-primary/[0.06]"),children:"hours"===B?(0,e.jsx)("div",{className:"text-[10px] tabular-nums text-text-muted",children:d?`${y(new Date(a).getHours())}`:""}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:(0,r.cn)("text-[10px]",c?"text-primary":"text-text-muted"),children:function(a){try{return new Date(a).toLocaleDateString((0,n.kk)()||void 0,{weekday:"short"})}catch{return""}}(a)}),(0,e.jsx)("div",{className:(0,r.cn)("text-[11px] font-medium tabular-nums",c?"text-primary":"text-text"),children:z(a)})]})},a)})})]}),J.map(a=>(0,e.jsxs)("div",{className:(0,r.cn)("flex border-b border-black/5 last:border-b-0 dark:border-white/5",!a.isActive&&"opacity-55"),children:[(0,e.jsxs)("div",{className:(0,r.cn)(x,"space-y-1 px-3 py-2.5"),children:[(0,e.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,e.jsx)(l.A,{src:`/providers/${a.provider}.png`,alt:a.provider,size:16,className:"shrink-0 rounded object-contain",fallbackText:String(a.provider||"?").slice(0,2).toUpperCase()}),(0,e.jsx)("span",{className:"truncate text-xs font-medium text-text",title:`${a.providerName} \xb7 ${a.label}`,children:a.label})]}),(0,e.jsx)("div",{className:"flex flex-wrap gap-1",children:a.chips.map(a=>(0,e.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,o.M)(a.name),children:[(0,e.jsx)("span",{className:"size-1.5 shrink-0 rounded-full",style:{background:(0,m.dI)(a.pct)}}),(0,e.jsx)("span",{className:"truncate",children:(0,o.M)(a.name)}),(0,e.jsxs)("b",{className:"font-semibold tabular-nums text-text",children:[a.pct,"%"]})]},a.name))})]}),(0,e.jsxs)("div",{className:"relative flex-1 py-2.5",children:[(0,e.jsx)("div",{className:"pointer-events-none absolute inset-0 flex",children:K.map((a,b)=>(0,e.jsx)("div",{className:(0,r.cn)("flex-1 border-l border-black/[0.04] dark:border-white/[0.05]",0===b&&"border-l-0","week"===B&&a===M&&"bg-primary/[0.04]")},a))}),null!==L&&(0,e.jsx)("div",{className:"pointer-events-none absolute inset-y-0 w-px bg-primary/60",style:{left:`${L}%`}}),(0,e.jsx)("div",{className:"relative space-y-1",children:0===a.lanes.length?(0,e.jsx)("div",{className:"flex h-[18px] items-center px-2 text-[10px] text-text-muted/70",children:(0,n.Tl)("hours"===B?"No 5-hour window":"No daily / weekly / monthly window")}):a.lanes.map(b=>(0,e.jsx)("div",{className:"relative h-[18px]",children:b.windows.map(c=>(0,e.jsx)(v,{win:c,lane:b,range:I,view:B,showLabel:a.lanes.length>1},`${b.name}-${c.start}`))},b.name))})]})]},a.id))]})})]})}u.propTypes={value:j().string.isRequired,options:j().arrayOf(j().shape({value:j().string,label:j().node})).isRequired,onChange:j().func.isRequired},v.propTypes={win:j().object.isRequired,lane:j().object.isRequired,range:j().object.isRequired,showLabel:j().bool,view:j().string},w.propTypes={providerFilter:j().string,accountFilter:j().string,refreshKey:j().number,showTrackerLink:j().bool},d()}catch(a){d(a)}})},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")},98995:a=>{"use strict";a.exports=require("node:module")},99882:(a,b,c)=>{"use strict";c.d(b,{DF:()=>h,SJ:()=>m,bx:()=>k,eG:()=>g,pu:()=>j,uE:()=>l,zm:()=>e});var d=c(4088);function e({page:a,pageSize:b,accountFilter:c,providerFilter:d}){return[a,b,c,d].join("|")}function f(a){if(!a?.providerSpecificData?.connectionProxyUrl)return a;let b={...a.providerSpecificData};return delete b.connectionProxyUrl,{...a,providerSpecificData:b}}function g(a){return null}function h(a,{connections:b,pagination:c,totals:d,providerOptions:e}){(b||[]).map(f),Date.now()}function i(a){let b=a?.cachedAt?new Date(a.cachedAt).getTime():NaN;return Number.isFinite(b)?b:0}function j(a,b=Date.now(),c=6e4){let d=i(a);return d>0&&b-d<c}function k(a){let b=(d.AI,{}),c={};for(let d of a||[])b[d.id]&&(c[d.id]=b[d.id]);return c}function l(a,b,c=Date.now()){let e=(d.AI,{});for(let[d,f]of(e[a]={...function(a){if(!a||"object"!=typeof a)return a;let{raw:b,...c}=a;return b?.resetCredits?{...c,raw:{resetCredits:b.resetCredits}}:c}(b),cachedAt:new Date(c).toISOString()},Object.entries(e)))c-i(f)>6048e5&&delete e[d];d.AI}function m(a=4){let b=0,c=[],d=()=>{if(b>=a||0===c.length)return;b+=1;let{fn:e,resolve:f,reject:g}=c.shift();Promise.resolve().then(e).then(f,g).finally(()=>{b-=1,d()})};return a=>new Promise((b,e)=>{c.push({fn:a,resolve:b,reject:e}),d()})}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2391,7568,2430,4613,8410,2116,682,6070,1329,5781,7274,7239,1219,4123,8172,6960,4886,4008],()=>b(b.s=69915));module.exports=c})();
|
|
1
|
+
(()=>{var a={};a.id=3826,a.ids=[3826],a.modules={643:a=>{"use strict";a.exports=require("node:perf_hooks")},717:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{default:()=>D});var e=c(48249),f=c(67484),g=c(19099),h=c(72738),i=c(38508),j=c(25386),k=c(70619),l=c(71452),m=c(54008),n=c(99882),o=c(29413),p=c(95514),q=c(32971),r=c(4088),s=c(17660),t=c(99258),u=c(94579),v=c(92592),w=c(50377),x=a([h,j,k,u]);[h,j,k,u]=x.then?(await x)():x;let E={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},F={claude:"claudeAutoPing",codex:"codexAutoPing"},G={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 y(a){let b=(0,r.JJ)(a),c=a.name?.trim(),d=a.email?.trim(),e=a.displayName?.trim();if(c&&c!==d&&(!e||c!==e))return null;if(a.name?.trim()&&a.email?.trim()&&a.name.trim()!==a.email.trim()){let c=a.email.trim();if(c!==b)return c}if(a.name?.trim()&&a.displayName?.trim()&&a.name.trim()!==a.displayName.trim()){let c=a.displayName.trim();if(c!==b)return c}return null}function z(a){let b=a.providerSpecificData?.region;if(b)return b;let c=a.providerSpecificData?.profileArn;return("string"==typeof c?c.split(":")[3]:"")||""}let H={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function A(a){let b=[...new Set((a||[]).map(a=>H[a]).filter(Boolean))];return b.length?`${b.join(" + ")} limits`:"limits"}function B(a){if(!a)return"N/A";let b=new Date(a);return Number.isFinite(b.getTime())?b.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):"N/A"}function C(a){if(!a)return"N/A";let b=new Date(a).getTime()-Date.now();if(!Number.isFinite(b))return"N/A";if(b<=0)return"Expired";let c=Math.ceil(b/36e5),d=Math.floor(c/24),e=c%24;return d>0?`${d}d ${e}h`:`${e}h`}let I={"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 D(){let{copied:a,copy:b}=(0,w.C)(),[c,d]=(0,f.useState)([]),[x,D]=(0,f.useState)({}),[H,J]=(0,f.useState)({}),[K,L]=(0,f.useState)({}),[M,N]=(0,f.useState)(!0),[O,P]=(0,f.useState)({claude:{},codex:{}}),[Q,R]=(0,f.useState)(null),[S,T]=(0,f.useState)(!1),[U,V]=(0,f.useState)(!1),[W,X]=(0,f.useState)(60),[Y,Z]=(0,f.useState)(!0),[$,_]=(0,f.useState)(null),[aa,ab]=(0,f.useState)(null),[ac,ad]=(0,f.useState)(null),[ae,af]=(0,f.useState)(null),[ag,ah]=(0,f.useState)(null),[ai,aj]=(0,f.useState)(!1),[ak,al]=(0,f.useState)(null),[am,an]=(0,f.useState)([]),ao=(0,g.useSearchParams)(),ap=(0,g.useRouter)(),aq=(0,g.usePathname)(),[ar,as]=(0,f.useState)(()=>(0,r.q$)(ao?.get("provider"),null)),at=(0,f.useCallback)(a=>{as(a),ap.replace((0,r.bf)(aq,ao?.toString()||"",a),{scroll:!1})},[ap,aq,ao]),[au,av]=(0,f.useState)([]),[aw,ax]=(0,f.useState)(()=>"all"),[ay,az]=(0,f.useState)("default"),[aA,aB]=(0,f.useState)("cards"),[aC,aD]=(0,f.useState)(0),[aE,aF]=(0,f.useState)({}),[aG,aH]=(0,f.useState)(!1),[aI]=(0,f.useState)(()=>!1),[aJ]=(0,f.useState)(()=>!1),[aK]=(0,f.useState)(()=>!1),[aL,aM]=(0,f.useState)(!1),[aN,aO]=(0,f.useState)(()=>new Set),aP=(0,f.useCallback)(a=>{aO(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},[]),[aQ,aR]=(0,f.useState)(1),[aS,aT]=(0,f.useState)(r.Wg),[aU,aV]=(0,f.useState)(String(r.Wg)),[aW,aX]=(0,f.useState)({page:1,pageSize:r.Wg,total:0,totalPages:1}),[aY,aZ]=(0,f.useState)({eligibleConnections:0,providerFilteredConnections:0});(0,f.useRef)(null),(0,f.useRef)(null);let a$=(0,f.useRef)(0),a_=(0,f.useCallback)(async(a=aQ)=>{try{let b=new URLSearchParams({page:String(a),pageSize:String(aS),accountStatus:aw,sort:"priority"});"all"!==ar&&b.set("provider",ar);let c=await fetch(`/api/providers/client?${b.toString()}`);if(!c.ok)throw Error("Failed to fetch connections");let e=await c.json(),f=e.connections||[],g=(0,r.wi)(e.pagination,aS),h=(0,r.dE)(e.totals,f.length);return d(f),av((0,r.Uh)(e.providerOptions)),aX(g),aZ(h),aR((0,r.ZS)(e.pagination,a)),(0,n.DF)((0,n.zm)({page:a,pageSize:aS,accountFilter:aw,providerFilter:ar}),{connections:f,pagination:g,totals:h,providerOptions:e.providerOptions}),f}catch(a){return console.error("Error fetching connections:",a),null}},[aw,aG,aQ,aS,ar]),a0=(0,f.useCallback)(async(a,b,{force:c=!1}={})=>{J(b=>({...b,[a]:!0})),L(b=>({...b,[a]:null}));try{console.log(`[ProviderLimits] Fetching quota for ${b} (${a})`);let d=`/api/usage/${a}${c?"?force=1":""}`,e=await fetch(d);if(!e.ok){let c=(await e.json().catch(()=>({}))).error||e.statusText;if(404===e.status)return void console.warn(`[ProviderLimits] Connection not found for ${b}, skipping`);if(401===e.status){console.warn(`[ProviderLimits] Auth error for ${b}:`,c);let d={quotas:[],message:c,cachedAt:new Date().toISOString()};D(b=>({...b,[a]:d})),(0,n.uE)(a,d);return}throw Error(`HTTP ${e.status}: ${c}`)}let f=await e.json();console.log(`[ProviderLimits] Got quota for ${b}:`,f);let g={quotas:(0,r.W_)(b,f),plan:f.plan||null,message:f.message||null,raw:f,cachedAt:new Date().toISOString()};D(b=>({...b,[a]:g})),(0,n.uE)(a,g)}catch(c){console.error(`[ProviderLimits] Error fetching quota for ${b} (${a}):`,c),L(b=>({...b,[a]:c.message||"Failed to fetch quota"}))}finally{J(b=>({...b,[a]:!1}))}},[]),[a1]=(0,f.useState)(()=>(0,n.SJ)()),a2=(0,f.useRef)(new Set),a3=(0,f.useRef)(new Map),a4=(0,f.useRef)(null),a5=(0,f.useRef)(a0),a6=(0,f.useCallback)(()=>(a4.current||"u"<typeof IntersectionObserver||(a4.current=new IntersectionObserver(a=>{for(let b of a){let a=b.target.dataset.connId;if(a){if(!b.isIntersecting){a2.current.delete(a);continue}if(a2.current.add(a),a3.current.has(a)){let b=a3.current.get(a);a3.current.delete(a),a1(()=>a5.current(a,b))}}}},{rootMargin:"200px 0px"})),a4.current),[a1]),a7=(0,f.useCallback)(a=>{let b=a6();if(a&&b)return b.observe(a),()=>{b.unobserve(a),a2.current.delete(a.dataset.connId)}},[a6]),a8=(0,f.useCallback)((a,{lazy:b=!0,skipFreshFrom:c=null}={})=>{let d="u">typeof IntersectionObserver,e=[];for(let f of a)if(!(c&&(0,n.pu)(c[f.id]))){if(b&&d&&!a2.current.has(f.id)){a3.current.set(f.id,f.provider);continue}a3.current.delete(f.id),e.push(a1(()=>a5.current(f.id,f.provider)))}return Promise.all(e)},[a1]),a9=(0,f.useCallback)(async(a,b)=>{await a0(a,b,{force:!0}),R(new Date)},[a0]),ba=(0,f.useCallback)(async(a,b)=>{if(("codex"===b||"claude"===b)&&!ac){ad(a),L(b=>({...b,[a]:null}));try{let c="claude"===b?await fetch(`/api/usage/${a}/claude-reset`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({grantId:x[a]?.raw?.resetCredits?.nextGrantId})}):await fetch(`/api/usage/${a}/codex-reset-credits`,{method:"POST"}),d=await c.json().catch(()=>({}));if(!c.ok)throw Error(d.message||d.error||d.code||"Failed to reset limit");await a0(a,b,{force:!0}),R(new Date)}catch(b){L(c=>({...c,[a]:b.message||"Failed to reset limit"}))}finally{ad(null)}}},[a0,ac,x]),bb=(0,f.useCallback)((a,b)=>{ah({connection:a,loading:!1,error:null,data:{kind:"claude",...b}})},[]),bc=(0,f.useCallback)(async a=>{ah({connection:a,loading:!0,error:null,data:null});try{let b=await fetch(`/api/usage/${a.id}/codex-reset-credits`,{cache:"no-store"}),c=await b.json().catch(()=>({}));if(!b.ok)throw Error(c.error||c.message||"Failed to load Codex reset credits");let d=Array.isArray(c.credits)?[...c.credits]:[];d.sort((a,b)=>{let c=a.expiresAt?new Date(a.expiresAt).getTime():1/0,d=b.expiresAt?new Date(b.expiresAt).getTime():1/0;return c-d}),ah({connection:a,loading:!1,error:null,data:{...c,credits:d}})}catch(b){ah({connection:a,loading:!1,error:b.message||"Failed to load Codex reset credits",data:null})}},[]),bd=(0,f.useCallback)(async a=>{if(confirm("Delete this connection?")){_(a);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&(D(b=>{let c={...b};return delete c[a],c}),J(b=>{let c={...b};return delete c[a],c}),L(b=>{let c={...b};return delete c[a],c}),await (0,r.Jp)(a_,aQ))}catch(a){console.error("Error deleting connection:",a)}finally{_(null)}}},[a_,aQ]),be=(0,f.useCallback)(async(a,b)=>{ab(a);try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&(D(a=>({...a})),await (0,r.Jp)(a_,aQ))}catch(a){console.error("Error updating connection status:",a)}finally{ab(null)}},[a_,aQ]),bf=(0,f.useCallback)(async a=>{if(!ak?.id)return;let b=ak.id,c=ak.provider;try{(await fetch(`/api/providers/${b}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await a_(),aj(!1),al(null),v.wb.includes(c)&&await a0(b,c))}catch(a){console.error("Error saving connection:",a)}},[ak,a_,a0]),bg=(0,f.useCallback)(async(a=!1)=>{if(U)return;V(!0),X(60);let b=a$.current+=1,c=Math.round(r.w2/r.J_);try{let d=await a_(aQ);if(!d)return;L(a=>(0,r.ED)(a,d)),D(a=>(0,r.ED)(a,d)),await a8(d.filter(d=>a||"claude"!==d.provider||b%c==0),{lazy:!a}),R(new Date)}catch(a){console.error("Error refreshing all providers:",a)}finally{V(!1)}},[U,a_,a8,aQ]),bh=(0,f.useCallback)(async(a,b,c)=>{let d=F[b];if(!d)return;let e={...O[b]||{},[a]:c},f={...O,[b]:e};P(f);try{let a=await fetch("/api/settings",{cache:"no-store"}),b={...(a.ok?await a.json():{})[d]||{},connections:e};await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({[d]:b})})}catch{P(O)}},[O]);(0,f.useCallback)(async(a,b)=>{aF(a);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(a){console.error("Error updating quota visibility:",a),aF(b)}},[]);let bi=(0,f.useCallback)((a,b)=>{a&&aF(c=>{let d=c[a]||{},e=b(new Set(d.hidden||[])),f={...c,[a]:{...d,hidden:[...e]}};return(async()=>{try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:f})})).ok)throw Error("Failed to update quota visibility")}catch(a){console.error("Error updating quota visibility:",a),aF(c)}})(),f})},[]),bj=(a,b)=>{if("gemini"===b)for(let b of a)b.startsWith("gemini-")&&!b.includes("image")&&a.delete(b);else if("claude"===b)for(let b of a)(b.startsWith("claude-")||b.startsWith("gpt-"))&&a.delete(b)},bk=(0,f.useCallback)((a,b,c)=>{let d=(0,r.Ih)(b);a&&d&&bi(a,a=>(a.add(d),"antigravity"===c&&bj(a,d),a))},[bi]),bl=(0,f.useCallback)(a=>{a&&bi(a,()=>new Set)},[bi]),bm=(0,f.useCallback)((a,b,c)=>{let d=(0,r.Ih)(b);a&&d&&bi(a,a=>(a.delete(d),"antigravity"===c&&bj(a,d),a))},[bi]);(0,f.useCallback)((a,b)=>{a.length&&aF(c=>{let d={...c},e=!1;for(let c of a){let a=d[c]||{},f=b(c,a);if(null===f)continue;let g=a.hidden||[];(f.length!==g.length||f.some((a,b)=>a!==g[b]))&&(d[c]={...a,hidden:f},e=!0)}return e?((async()=>{try{if(!(await fetch("/api/settings",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({quotaVisibility:d})})).ok)throw Error("Failed to update quota visibility")}catch(a){console.error("Error updating quota visibility:",a),aF(c)}})(),d):c})},[]);let bn=(0,f.useMemo)(()=>(0,r.uf)(c,x,aG,ar,ay),[c,x,aG,ar,ay]),bo=(0,f.useMemo)(()=>{let a=bn;return aI&&(a=a.filter(a=>{if(H[a.id]||K[a.id])return!0;let b=x[a.id];return!b||(b.quotas?.length??0)>0})),aJ&&(a=a.filter(a=>!!H[a.id]||!!K[a.id]||!x[a.id]||!(0,r.m7)(a,x))),a},[bn,aI,aJ,H,K,x]),bp=(0,f.useCallback)(async(a,b)=>{if(a.length&&!aL){aM(!0);try{await Promise.all(a.map(a=>fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})}))),await (0,r.Jp)(a_,aQ)}catch(a){console.error("Error bulk toggling connections:",a)}finally{aM(!1)}}},[aL,a_,aQ]),bq="all"===ar?"All providers":ar,br=aY.eligibleConnections>0,bs=bo.length>0,bt=(0,r.g5)(aY,ar,aw),bu=({start:a,end:b,total:c})=>(0,t.Tl)("Showing {start}-{end} of {total}").replace("{start}",String(a)).replace("{end}",String(b)).replace("{total}",String(c)),bv=(0,r.kx)(aW,bu),bw=bo.length!==bn.length,bx=(0,r.k9)(bo.length,aS,bu),by=!r.pT.includes(aS);(0,r.Xr)(aS,by);let bz=Y||br?Y||bs?null:(0,e.jsx)(s.default,{padding:"lg",children:(0,e.jsxs)("div",{className:"text-center py-12",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:bt.icon}),(0,e.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text",children:bt.title}),(0,e.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:bt.description})]})}):(0,e.jsx)(s.default,{padding:"lg",children:(0,e.jsxs)("div",{className:"text-center py-12",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[64px] text-text-muted opacity-20",children:"cloud_off"}),(0,e.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text",children:"No Providers Connected"}),(0,e.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,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsx)(j.A,{view:aA,onViewChange:aB,providerFilter:ar,providerOptions:au,providerLabel:"all"===ar?(0,t.Tl)("All providers"):bq,onProviderChange:a=>{(0,r.wU)(ar,a)&&aR(1),at(a)},accountFilter:aw,onAccountChange:a=>{(0,r.wU)(aw,a)&&aR(1),ax(a)},showCodexSort:"codex"===ar,quotaSortMode:ay,onQuotaSortChange:az,expiringFirst:aG,onToggleExpiringFirst:()=>aH(a=>!a),onDisableDepleted:()=>{let a=bn.filter(a=>(a.isActive??!0)&&(0,r.m7)(a,x)).map(a=>a.id);bp(a,!1)},onEnableAvailable:()=>{let a=bn.filter(a=>!(a.isActive??!0)&&!(0,r.m7)(a,x)).map(a=>a.id);bp(a,!0)},bulkToggling:aL,autoRefresh:M,onToggleAutoRefresh:()=>N(a=>!a),countdown:W,refreshingAll:U,onRefreshAll:()=>"windows"===aA?aD(a=>a+1):bg(!0),accountCount:aW.total}),"windows"===aA?(0,e.jsx)(k.A,{providerFilter:ar,accountFilter:aw,refreshKey:aC,showTrackerLink:!1}):(0,e.jsxs)(e.Fragment,{children:[bz&&(0,e.jsx)("div",{className:"pt-2",children:bz}),!bz&&(0,e.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:bo.map(c=>{let d,f,g,j=x[c.id],k=(0,v.$Y)(c.provider),n=!!H[c.id],u=K[c.id],w=!j&&!u,C=!1===c.isActive,D=(0,m._)(c).state,J="codex"===c.provider,L="claude"===c.provider?j?.raw?.resetCredits:null,M=J?"Codex reset credit":"Claude limit reset",N=(d=j?.raw?.resetCredits?.availableCount,f="number"==typeof d?d:Number(d),Number.isFinite(f)?Math.max(0,f):0),P=ac===c.id,Q=$===c.id||aa===c.id||P,R=j?.quotas||[],S=(0,r.dR)(c.id,R,aE,c.provider),T=(0,r.sL)(c.id,R,aE,c.provider),U=(0,l.PZ)(S),V=(0,l.qz)(S);return(0,e.jsxs)(s.default,{ref:a7,"data-conn-id":c.id,padding:"none",className:`min-w-0 ${C?"opacity-60":""}`,children:[(0,e.jsx)("div",{className:"px-3 py-2 border-b border-black/10 dark:border-white/10",children:(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[k?(0,e.jsx)("a",{href:k,target:"_blank",rel:"noopener noreferrer",title:`${(0,t.Tl)("Open provider site")} — ${k.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,e.jsx)(h.A,{src:`/providers/${c.provider}.png`,alt:c.provider,size:32,className:"object-contain",fallbackText:c.provider?.slice(0,2).toUpperCase()||"PR"})}):(0,e.jsx)("div",{className:"w-8 h-8 shrink-0 rounded-md flex items-center justify-center overflow-hidden",children:(0,e.jsx)(h.A,{src:`/providers/${c.provider}.png`,alt:c.provider,size:32,className:"object-contain",fallbackText:c.provider?.slice(0,2).toUpperCase()||"PR"})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("h3",{className:"text-sm font-semibold text-text truncate",children:I[c.provider]||(0,e.jsx)("span",{className:"capitalize",children:c.provider})}),(0,r.JJ)(c)?(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:(0,r.JJ)(c)}):null,y(c)?(0,e.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:y(c)}):null,"kiro"===c.provider&&(0,e.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,e.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:(g=c.providerSpecificData?.authMethod)&&E[g]?E[g]:"api_key"===c.authType?"API Key":"OAuth"}),z(c)&&(0,e.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:z(c)}),(0,e.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${C?"bg-surface-2 text-text-muted":"active"===D||"success"===D?"bg-green-500/10 text-green-600 dark:text-green-400":"partial"===D?"bg-yellow-500/10 text-yellow-600 dark:text-yellow-400":"error"===D||"expired"===D||"unavailable"===D||"needs-reauth"===D?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:C?"disabled":"needs-reauth"===D?(0,t.Tl)("Needs re-auth"):"partial"===D?"partial":D||"unknown"}),c.providerSpecificData?.profileArn&&(0,e.jsxs)("button",{type:"button",onClick:()=>b(c.providerSpecificData.profileArn,c.id),title:c.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,e.jsx)("span",{className:"material-symbols-outlined text-[12px]",children:a===c.id?"check":"content_copy"}),(0,e.jsx)("code",{className:"truncate font-mono",children:c.providerSpecificData.profileArn})]})]})]})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(J||L)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(q.default,{text:N>0?L?`Use your reset now (${N} left, use by ${B(L.expiresAt)}) \xb7 refills ${A(L.clears)}`:`Use one ${M}. Available: ${N}`:`No ${M}s available`,children:(0,e.jsxs)("button",{type:"button",onClick:()=>af({connection:c,resetCreditCount:N}),disabled:N<=0||w||n||Q,"aria-label":N>0?`Use one ${M}. ${N} available.`:`No ${M}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 ${N>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,e.jsx)("span",{className:`material-symbols-outlined text-[15px] ${P?"animate-spin":""}`,children:P?"progress_activity":"restart_alt"}),(0,e.jsx)("span",{children:N})]})}),(0,e.jsx)(q.default,{text:J?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,e.jsx)("button",{type:"button",onClick:()=>J?bc(c):bb(c,L),disabled:w||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,e.jsx)("span",{className:"material-symbols-outlined text-[17px]",children:"schedule"})})})]}),F[c.provider]&&"oauth"===c.authType&&(0,e.jsx)(q.default,{text:G[c.provider],children:(0,e.jsx)("button",{type:"button",onClick:()=>bh(c.id,c.provider,O[c.provider]?.[c.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 ${O[c.provider]?.[c.id]===!0?"text-primary":"text-text-muted"}`,children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"bolt"})})}),(0,e.jsx)(q.default,{text:"Refresh quota",children:(0,e.jsx)("button",{type:"button",onClick:()=>a9(c.id,c.provider),disabled:n||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,e.jsx)("span",{className:`material-symbols-outlined text-[18px] text-text-muted ${n||w?"animate-spin":""}`,children:"refresh"})})}),(0,e.jsx)(q.default,{text:"Edit connection",children:(0,e.jsx)("button",{type:"button",onClick:()=>{al(c),aj(!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,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"edit"})})}),(0,e.jsx)(q.default,{text:"Delete connection",children:(0,e.jsx)("button",{type:"button",onClick:()=>bd(c.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,e.jsx)("span",{className:`material-symbols-outlined text-[18px] ${$===c.id?"animate-pulse":""}`,children:"delete"})})}),(0,e.jsx)("div",{className:"inline-flex items-center pl-0.5",title:c.isActive??!0?"Disable connection":"Enable connection",children:(0,e.jsx)(p.default,{size:"sm",checked:c.isActive??!0,disabled:Q,onChange:a=>be(c.id,a)})})]})]})}),j&&S.length>0&&(0,e.jsx)("div",{className:"px-3 pt-2.5",children:(0,e.jsx)(i.default,{packs:S,nestedCycle:aK})}),(0,e.jsxs)("div",{className:"px-2 py-1.5",children:[j?.raw?.webSessionExpired===!0&&(0,e.jsxs)("p",{className:"px-1 pb-1 text-[11px] text-amber-600 dark:text-amber-400",children:[(0,e.jsx)("span",{className:"material-symbols-outlined align-[-2px] text-[13px]",children:"warning"})," ",(0,t.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.")]}),u&&j&&(0,e.jsxs)("p",{className:"px-1 pb-1 text-[11px] text-red-500/80",children:[(0,t.Tl)("Update failed, showing last known")," \xb7 ",u]}),w?(0,e.jsx)("div",{className:"text-center py-5 text-text-muted",children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[28px] animate-spin",children:"progress_activity"})}):u&&!j?(0,e.jsxs)("div",{className:"text-center py-5",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[28px] text-red-500",children:"error"}),(0,e.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:u})]}):j?.message?(0,e.jsx)("div",{className:"text-center py-5",children:(0,e.jsx)("p",{className:"text-xs text-text-muted",children:j.message})}):(0,e.jsxs)(e.Fragment,{children:[0===S.length&&R.length>0&&(0,e.jsxs)("div",{className:"text-center py-5",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[28px] text-text-muted opacity-40",children:"visibility_off"}),(0,e.jsx)("p",{className:"mt-1.5 text-xs text-text-muted",children:(0,t.Tl)("All quota rows are hidden — use the chips below to show them")})]}),V&&(0,e.jsxs)("button",{type:"button",onClick:()=>aP(c.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":aN.has(c.id),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aN.has(c.id)?"expand_less":"expand_more"}),(0,t.Tl)("Per-pack details"),(0,e.jsxs)("span",{className:"tabular-nums opacity-60",children:["(",U.length,")"]})]}),V&&aN.has(c.id)&&(0,e.jsx)(o.A,{quotas:U,sortMode:"default",showSortLabel:"codex"===c.provider&&"default"!==ay,onHideQuota:a=>bk(c.id,a,c.provider)})]}),T.length>0&&(0,e.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,e.jsx)("span",{className:"material-symbols-outlined shrink-0 text-[14px]",children:"visibility_off"}),(0,e.jsxs)("span",{className:"shrink-0",children:[(0,t.Tl)("Hidden"),(0,e.jsxs)("span",{className:"tabular-nums opacity-60",children:[" (",T.length,")"]})]}),(0,e.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap",children:T.map(a=>(0,e.jsx)("button",{type:"button",onClick:()=>bm(c.id,a,c.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,t.Tl)("Show this quota row"),children:(0,o.M)(a.name)},(0,r.Ih)(a)))}),T.length>1&&(0,e.jsx)("button",{type:"button",onClick:()=>bl(c.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,t.Tl)("Show all")})]})]})]},c.id)})}),(0,e.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,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,e.jsx)("span",{className:"text-xs text-text-muted",children:bw?bx:bv}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsxs)("select",{value:by?"custom":String(aS),onChange:a=>{let b=a.target.value;if("custom"===b)return;let c=Number.parseInt(b,10);Number.isFinite(c)&&(aR(1),aT(c),aV(String(c)))},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:[r.pT.map(a=>(0,e.jsx)("option",{value:String(a),children:(0,t.Tl)("{count} / page").replace("{count}",String(a))},a)),(0,e.jsx)("option",{value:"custom",children:"Custom"})]}),(0,e.jsx)("input",{type:"number",min:"1",max:String(r.b8),inputMode:"numeric",value:aU,onChange:a=>aV(a.target.value),onBlur:()=>{let a=Number.parseInt(aU,10);if(!Number.isFinite(a))return void aV(String(aS));let b=Math.min(r.b8,Math.max(1,a));aR(1),aT(b),aV(String(b))},onKeyDown:a=>{if("Enter"!==a.key)return;let b=Number.parseInt(aU,10);if(!Number.isFinite(b))return void aV(String(aS));let c=Math.min(r.b8,Math.max(1,b));aR(1),aT(c),aV(String(c))},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,e.jsx)("span",{className:"text-xs text-text-muted",children:(0,t.Tl)("Page {page} / {total}").replace("{page}",String(aW.page)).replace("{total}",String(aW.totalPages))})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:()=>aR(1),disabled:aW.page<=1||Y||U,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,e.jsx)("button",{type:"button",onClick:()=>aR(a=>Math.max(1,a-1)),disabled:aW.page<=1||Y||U,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,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,e.jsx)("button",{type:"button",onClick:()=>aR(a=>Math.min(aW.totalPages,a+1)),disabled:aW.page>=aW.totalPages||Y||U,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,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})}),(0,e.jsx)("button",{type:"button",onClick:()=>aR(aW.totalPages),disabled:aW.page>=aW.totalPages||Y||U,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,e.jsx)(u.uo,{isOpen:!!ae,onClose:()=>{ac||af(null)},onConfirm:async()=>{let a=ae?.connection;a&&(await ba(a.id,a.provider),af(null))},title:ae?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:ae?.connection?.provider==="claude"?`Refills your ${A(x[ae.connection.id]?.raw?.resetCredits?.clears)} now for ${(0,r.JJ)(ae.connection)||"this account"} \xb7 your weekly reset day stays ${B(x[ae.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${ae.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${(0,r.JJ)(ae?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${ae?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!ac}),ag&&(0,e.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4 backdrop-blur-sm",children:(0,e.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,e.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,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("h3",{className:"text-base font-semibold text-text",children:ag.data?.kind==="claude"?"Claude Code Limit Resets":"Codex Reset Credit Expiry"}),(0,e.jsx)("p",{className:"mt-0.5 truncate text-xs text-text-muted",children:(0,r.JJ)(ag.connection)||(ag.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,e.jsx)("button",{type:"button",onClick:()=>ah(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,e.jsx)("span",{className:"material-symbols-outlined text-[18px]",children:"close"})})]}),(0,e.jsx)("div",{className:"max-h-[70vh] overflow-auto bg-white p-4 dark:bg-neutral-950",children:ag.loading?(0,e.jsxs)("div",{className:"flex items-center justify-center gap-2 py-10 text-sm text-text-muted",children:[(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-[20px]",children:"progress_activity"}),"Loading reset credits..."]}):ag.error?(0,e.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:ag.error}):ag.data?.kind==="claude"&&ag.data.grants?.length?(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.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,e.jsxs)("span",{children:[ag.data.availableCount??0," reset",1===ag.data.availableCount?"":"s"," left"]}),(0,e.jsxs)("span",{children:["Weekly reset day: ",B(ag.data.weeklyResetsAt)]})]}),(0,e.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,e.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,e.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Reset"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Left"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Refills"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Use By"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,e.jsx)("tbody",{children:(ag.data.grants||[]).map(a=>(0,e.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,e.jsxs)("td",{className:"px-3 py-2",children:[(0,e.jsx)("div",{className:"text-text",children:a.label||a.id}),(0,e.jsx)("span",{className:"mt-1 inline-block rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:a.resetsLeft<=0?"used":a.paused?"paused":a.endsAt&&new Date(a.endsAt).getTime()<=Date.now()?"expired":a.usableNow?"usable now":a.startsAt&&new Date(a.startsAt).getTime()>Date.now()?"not started":a.useRequiresLimit?"at limit only":"unavailable"})]}),(0,e.jsxs)("td",{className:"whitespace-nowrap px-3 py-2 font-medium tabular-nums text-text",children:[a.resetsLeft," / ",a.resetsTotal]}),(0,e.jsx)("td",{className:"px-3 py-2 text-text-muted",children:A(a.clears)}),(0,e.jsx)("td",{className:"px-3 py-2 text-text",children:B(a.endsAt)}),(0,e.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text",children:C(a.endsAt)})]},a.id))})]})})]}):ag.data?.credits?.length?(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.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,e.jsxs)("span",{children:[ag.data.credits.length," reset credit",1===ag.data.credits.length?"":"s"]}),(0,e.jsxs)("span",{children:[ag.data.availableCount??0," available"]})]}),(0,e.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,e.jsxs)("table",{className:"w-full min-w-[560px] text-left text-sm",children:[(0,e.jsx)("thead",{className:"bg-black/[0.03] text-xs uppercase tracking-wide text-text-muted dark:bg-white/[0.04]",children:(0,e.jsxs)("tr",{children:[(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Status"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Granted At"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Expires At"}),(0,e.jsx)("th",{className:"px-3 py-2 font-medium",children:"Remaining"})]})}),(0,e.jsx)("tbody",{children:ag.data.credits.map((a,b)=>(0,e.jsxs)("tr",{className:"border-t border-black/5 dark:border-white/5",children:[(0,e.jsx)("td",{className:"px-3 py-2",children:(0,e.jsx)("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-xs font-medium text-primary",children:a.status||"unknown"})}),(0,e.jsx)("td",{className:"px-3 py-2 text-text-muted",children:B(a.grantedAt)}),(0,e.jsx)("td",{className:"px-3 py-2 text-text",children:B(a.expiresAt)}),(0,e.jsx)("td",{className:"px-3 py-2 font-medium text-text",children:C(a.expiresAt)})]},`${a.status}-${a.expiresAt||b}`))})]})})]}):(0,e.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:ag.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),(0,e.jsx)(u.wI,{isOpen:ai,connection:ak,proxyPools:am,onSave:bf,onClose:()=>{aj(!1),al(null)}})]})}d()}catch(a){d(a)}})},1708:a=>{"use strict";a.exports=require("node:process")},1932:a=>{"use strict";a.exports=require("url")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4088:(a,b,c)=>{"use strict";c.d(b,{$L:()=>I,AA:()=>m,AI:()=>f,ED:()=>u,Ih:()=>J,JJ:()=>q,J_:()=>g,Jp:()=>F,Uh:()=>E,WA:()=>i,W_:()=>N,Wg:()=>j,Xr:()=>w,ZS:()=>D,b8:()=>l,bf:()=>p,dE:()=>B,dR:()=>L,g5:()=>v,k9:()=>z,kx:()=>y,m7:()=>r,mO:()=>G,pT:()=>k,q$:()=>o,sL:()=>M,uf:()=>t,vF:()=>n,w2:()=>h,wU:()=>C,wi:()=>A});var d=c(42889),e=c(71452);let f="quotaCacheData",g=6e4,h=6e5,i="quotaAutoRefresh",j=20,k=[10,20,50,100],l=500,m=[{value:"all",label:"All accounts"},{value:"active",label:"Active"},{value:"inactive",label:"Turned off"}],n=[{value:"default",label:"Default quota order"},{value:"remaining-asc",label:"% quota: low to high"},{value:"remaining-desc",label:"% quota: high to low"}];function o(a,b){return a||b||"all"}function p(a,b,c){let d=new URLSearchParams(b||"");c&&"all"!==c?d.set("provider",c):d.delete("provider");let e=d.toString();return e?`${a}?${e}`:a}function q(a){let b=a.name?.trim(),c=a.email?.trim(),d=a.displayName?.trim();return b&&b!==c?b:"qoder"===a.provider||"qoder-cn"===a.provider?d||b||c||null:b||c||d||null}function r(a,b){let c=b?.[a.id]?.quotas;if(!c?.length)return!1;let d=c.filter(a=>!0!==a.unlimited);return 0!==d.length&&d.every(a=>{let b=a.total||0;return b<=0||(a.used||0)>=b})}function s(a,b){let c=b[a.id]?.quotas?.[0];return c&&"number"==typeof c.remaining?c.remaining:1/0}function t(a,b,c,d,e){if("codex"===d&&"default"!==e)return[...a].sort((a,c)=>{let d=s(a,b),f=s(c,b),g="remaining-asc"===e?d-f:f-d;return 0!==g?g:(q(a)||"").localeCompare(q(c)||"")});if(!c){let b=new Map;for(let c of a){let a=c.provider||"";b.has(a)||b.set(a,[]),b.get(a).push(c)}return Array.from(b.values()).flat()}let f=a=>{let c=(b[a.id]?.quotas||[]).map(a=>a.resetAt?new Date(a.resetAt).getTime():1/0).filter(a=>Number.isFinite(a));return c.length>0?Math.min(...c):1/0};return[...a].sort((a,b)=>{let c=f(a)-f(b);return 0!==c?c:(a.provider||"").localeCompare(b.provider||"")||(q(a)||"").localeCompare(q(b)||"")})}function u(a,b){let c=new Set(b.map(a=>a.id));return Object.fromEntries(Object.entries(a).filter(([a])=>c.has(a)))}function v(a,b,c){return a.eligibleConnections?a.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"===b?"Try changing the account status filter to see more quota trackers.":`No ${"inactive"===c?"turned off":"active"===c?"active":"matching"} accounts found for ${b}.`}:{icon:"cloud_off",title:"No Providers Connected",description:"Connect to providers with OAuth to track your API quota limits and usage."}}function w(a,b){return b?`Custom: ${a} / page`:`${a} / page`}function x({start:a,end:b,total:c}){return c>0?`Showing ${a}-${b} of ${c}`:"Showing 0 of 0"}function y(a,b=x){var c;let{start:d,end:e}=(c=a).total?{start:(c.page-1)*c.pageSize+1,end:Math.min(c.page*c.pageSize,c.total)}:{start:0,end:0};return b({start:d,end:e,total:a.total})}function z(a,b,c=x){let d=Math.max(0,Number(a)||0);if(0===d)return c({start:0,end:0,total:0});let e=Math.max(1,Number(b)||d);return c({start:1,end:Math.min(d,e),total:d})}function A(a,b){return a||{page:1,pageSize:b,total:0,totalPages:1}}function B(a,b=0){return a||{eligibleConnections:b,providerFilteredConnections:b}}function C(a,b){return a!==b}function D(a,b){return a?.page||b}function E(a){return a||[]}async function F(a,b){return await a(b)}function G(a){if(!a)return"-";try{let b="string"==typeof a?new Date(a):a;if(Number.isNaN(b?.getTime?.())||b.getFullYear()>2099||b-new Date<=0)return"-";return(0,e.TV)(b)||"-"}catch(a){return"-"}}function H(a,b){return b&&0!==b?!a||a<0?100:a>=b?0:Math.round((b-a)/b*100):0}function I(a){return a?.remainingPercentage!==void 0?Math.round(a.remainingPercentage):a?.remaining!==void 0&&(a?.total===100||a?.total===void 0)?Math.max(0,Math.round(a.remaining)):H(a?.used,a?.total)}function J(a){return a&&"object"==typeof a?String(a.modelKey||a.name||"").trim():""}function K(a,b,c,d=[]){let e=null,f=b?.[a]?.hidden;if(Array.isArray(f))e=f.map(String);else if(c&&c!==a){let a=b?.[c]?.hidden;Array.isArray(a)&&(e=a.map(String))}return e?new Set(Array.isArray(d)&&d.length>0?function(a=[],b=[]){if(!Array.isArray(a)||0===a.length)return[];let c=new Set(b.map(J).filter(Boolean));return[...new Set(a.map(a=>String(a).trim()).filter(a=>c.has(a)))]}(e,d):e):new Set}function L(a,b=[],c={},d){if(!Array.isArray(b)||0===b.length)return[];let e=K(a,c,d,b);return 0===e.size?b:b.filter(a=>!e.has(J(a)))}function M(a,b=[],c={},d){if(!Array.isArray(b)||0===b.length)return[];let e=K(a,c,d,b);return 0===e.size?[]:b.filter(a=>e.has(J(a)))}function N(a,b){if(!b||"object"!=typeof b)return[];let c=[];try{switch(a.toLowerCase()){case"github":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{(b.unlimited||b.total>0)&&c.push({name:`${a} \xb7 Monthly`,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,recurring:!0})});break;case"antigravity":if(b.quotas){let a=Object.entries(b.quotas),d=a.filter(([a])=>a.startsWith("gemini-")&&!a.includes("image")),e=a.filter(([a])=>a.startsWith("claude-")||a.startsWith("gpt-")),f=a.filter(([a])=>a.includes("image")),g=a.filter(([a])=>!a.startsWith("gemini-")&&!a.startsWith("claude-")&&!a.startsWith("gpt-")&&!a.includes("image"));if(d.length>0){let a=d.reduce((a,b)=>(b[1].remainingPercentage??100)<(a[1].remainingPercentage??100)?b:a)[1];c.push({name:"Gemini (Flash / Pro)",modelKey:"gemini",used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage,percentScale:!0})}if(e.length>0){let a=e.reduce((a,b)=>(b[1].remainingPercentage??100)<(a[1].remainingPercentage??100)?b:a)[1];c.push({name:"Claude (Sonnet / Opus / GPT)",modelKey:"claude",used:a.used||0,total:a.total||0,resetAt:a.resetAt||null,remainingPercentage:a.remainingPercentage,percentScale:!0})}f.forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,percentScale:!0})}),g.forEach(([a,b])=>{c.push({name:b.displayName||a,modelKey:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,percentScale:!0})})}break;case"codex":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:b.remaining,resetAt:b.resetAt||null})});break;case"kiro":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})});break;case"qoder":case"qoder-cn":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{let d=Number(b?.total)||0;if("user"===a||("organization"===a||"addOn"===a)&&0===d)return;let e=b.resetAt&&2099>=new Date(b.resetAt).getFullYear()?b.resetAt:null;c.push({name:"addOn"===a?"Resource Package":"organization"===a?"Organization":a,used:b.used||0,total:d,unit:b.unit,resetAt:"addOn"===a?null:e,unlimited:!0===b.unlimited,aggregate:!0,..."addOn"===a&&Array.isArray(b.packs)&&b.packs.length>0?{summarizesDetail:!0}:{}}),"addOn"===a&&Array.isArray(b.packs)&&b.packs.forEach((a,d)=>{c.push({name:a.name||(a.unitemized?"Bonus Pack (unitemized)":`Bonus Pack ${d+1}`),used:a.used||0,total:a.total||0,unit:b.unit,resetAt:a.expiresAt&&2099>=new Date(a.expiresAt).getFullYear()?a.expiresAt:null,unlimited:!1,recurring:!1,detailOnly:!0})})});break;case"claude":b.message?c.push({name:"error",used:0,total:0,resetAt:null,message:b.message}):b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:void 0!==b.remaining?b.remaining:Math.max(0,(b.total||100)-(b.used||0)),remainingPercentage:void 0!==b.remainingPercentage?b.remainingPercentage:H(b.used,b.total),resetAt:b.resetAt||null})});break;case"vercel-ai-gateway":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"codebuddy-cn":case"codebuddy-intl":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,recurring:!1!==b.recurring,displayRemaining:!0,..."Monthly"===a?{giftPack:!0}:{}})});break;case"grok-cli":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"kimi":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"deepseek":case"stepfun":case"stepfun-cn":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage,displayRemaining:b.displayRemaining})});break;case"ollama":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null,remainingPercentage:b.remainingPercentage})});break;case"commandcode":b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,remaining:void 0!==b.remaining?b.remaining:Math.max(0,(b.total||0)-(b.used||0)),remainingPercentage:void 0!==b.remainingPercentage?b.remainingPercentage:H(b.used,b.total),resetAt:b.resetAt||null,recurring:!0===b.recurring,displayRemaining:!0})});break;default:b.quotas&&Object.entries(b.quotas).forEach(([a,b])=>{c.push({name:a,used:b.used||0,total:b.total||0,resetAt:b.resetAt||null})})}}catch(b){return console.error(`Error parsing quota data for ${a}:`,b),[]}if(a?.toLowerCase()==="claude"){let a={"session (5h)":0,"weekly (7d)":1,"weekly fable (7d)":2,"weekly opus (7d)":3,"weekly sonnet (7d)":4};return c.sort((b,c)=>(a[b.name]??99)-(a[c.name]??99)),c}if(a?.toLowerCase()==="commandcode"){let a={"session (5h)":0,"weekly (7d)":1,"Monthly Credits":2,"Purchased Credits":3};return c.sort((b,c)=>(a[b.name]??99)-(a[c.name]??99)),c}let e=(0,d.KC)(a);if(e.length>0){let a=new Map(e.map((a,b)=>[a.id,b]));c.sort((b,c)=>{let d=b.modelKey||b.name,e=c.modelKey||c.name;return(a.get(d)??999)-(a.get(e)??999)})}return c}},4573:a=>{"use strict";a.exports=require("node:buffer")},7066:a=>{"use strict";a.exports=require("node:tty")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},14985:a=>{"use strict";a.exports=require("dns")},16440:(a,b,c)=>{Promise.resolve().then(c.bind(c,717)),Promise.resolve().then(c.bind(c,74812))},16698:a=>{"use strict";a.exports=require("node:async_hooks")},16736:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>h});var d=c(5735),e=c(91986),f=c(92082),g=c(57471);function h(){return(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(f.CardSkeleton,{}),children:(0,d.jsx)(g.default,{})})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},23064:(a,b,c)=>{Promise.resolve().then(c.bind(c,57471)),Promise.resolve().then(c.bind(c,92082))},25386:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>q});var e=c(48249),f=c(67484),g=c(49885),h=c.n(g),i=c(72738),j=c(99258),k=c(71404),l=c(4088),m=a([i]);i=(m.then?(await m)():m)[0];let r="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]",s="border-primary/30 bg-primary/10 text-primary hover:bg-primary/15",t="material-symbols-outlined text-[16px] leading-none",u={all:"apps",active:"check_circle",inactive:"block"};function n({open:a,onClose:b,align:c="left",className:d,children:f}){return a?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("button",{type:"button",className:"fixed inset-0 z-30 cursor-default bg-transparent","aria-label":"Close",onClick:b}),(0,e.jsx)("div",{className:(0,k.cn)("absolute z-40 mt-1.5 overflow-hidden rounded-xl border border-black/10 bg-surface/95 p-1 shadow-xl shadow-black/10 backdrop-blur dark:border-white/10","right"===c?"right-0":"left-0",d),children:f})]}):null}function o({selected:a=!1,onClick:b,icon:c,children:d,hint:f,disabled:g=!1}){return(0,e.jsxs)("button",{type:"button",onClick:b,disabled:g,className:(0,k.cn)("flex w-full items-start gap-2.5 rounded-lg px-2.5 py-2 text-left text-xs transition-colors disabled:opacity-50",a?"bg-primary/10 text-primary":"text-text hover:bg-black/[0.04] dark:hover:bg-white/[0.06]"),children:[c,(0,e.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,e.jsx)("span",{className:"block font-medium",children:d}),f?(0,e.jsx)("span",{className:"mt-0.5 block text-[11px] text-text-muted",children:f}):null]}),a?(0,e.jsx)("span",{className:(0,k.cn)(t,"text-[14px]"),children:"check"}):null]})}function p({provider:a,size:b=16}){return"all"===a?(0,e.jsx)("span",{className:(0,k.cn)(t,"text-text-muted"),children:"apps"}):(0,e.jsx)(i.A,{src:`/providers/${a}.png`,alt:a,size:b,className:"rounded object-contain",fallbackText:a.slice(0,2).toUpperCase()})}function q({view:a="cards",onViewChange:b,providerFilter:c,providerOptions:d,providerLabel:g,onProviderChange:h,accountFilter:i,onAccountChange:m,showCodexSort:v,quotaSortMode:w,onQuotaSortChange:x,expiringFirst:y,onToggleExpiringFirst:z,onDisableDepleted:A,onEnableAvailable:B,bulkToggling:C,autoRefresh:D,onToggleAutoRefresh:E,countdown:F,refreshingAll:G,onRefreshAll:H,accountCount:I}){let[J,K]=(0,f.useState)(!1),[L,M]=(0,f.useState)(!1),N="cards"===a;return(0,e.jsxs)("div",{className:"@container flex flex-wrap items-center gap-2",children:[b&&(0,e.jsx)("div",{role:"tablist","aria-label":(0,j.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,j.Tl)("Cards")},{value:"windows",icon:"date_range",label:(0,j.Tl)("Quota windows")}].map(c=>(0,e.jsxs)("button",{type:"button",role:"tab","aria-selected":a===c.value,"aria-label":c.label,onClick:()=>b(c.value),className:(0,k.cn)("flex h-full items-center gap-1 rounded-md px-2.5 text-xs transition-colors",a===c.value?"bg-primary/10 font-medium text-primary":"text-text-muted hover:text-text"),children:[(0,e.jsx)("span",{className:(0,k.cn)(t,"text-[15px]"),children:c.icon}),(0,e.jsx)("span",{className:"hidden @min-[900px]:inline",children:c.label})]},c.value))}),(0,e.jsxs)("div",{className:"flex min-w-0 items-center gap-2 @max-[640px]:order-last @max-[640px]:w-full",children:[(0,e.jsxs)("div",{className:"relative min-w-0",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>K(a=>!a),className:(0,k.cn)(r,"all"!==c&&s),"aria-haspopup":"menu","aria-expanded":J,title:(0,j.Tl)("Filter quota providers"),children:[(0,e.jsx)(p,{provider:c}),(0,e.jsx)("span",{className:"max-w-[9rem] truncate capitalize @max-[640px]:max-w-[5rem]",children:g}),(0,e.jsx)("span",{className:(0,k.cn)(t,"text-[14px] text-text-muted"),children:"expand_more"})]}),(0,e.jsxs)(n,{open:J,onClose:()=>K(!1),className:"w-64",children:[(0,e.jsx)(o,{selected:"all"===c,icon:(0,e.jsx)(p,{provider:"all",size:18}),onClick:()=>{h("all"),K(!1)},children:(0,j.Tl)("All providers")}),(0,e.jsx)("div",{className:"my-1 h-px bg-black/5 dark:bg-white/10"}),(0,e.jsx)("div",{className:"max-h-72 overflow-y-auto",children:d.map(a=>(0,e.jsx)(o,{selected:c===a,icon:(0,e.jsx)(p,{provider:a,size:18}),onClick:()=>{h(a),K(!1)},children:(0,e.jsx)("span",{className:"capitalize",children:a})},a))})]})]}),(0,e.jsx)("div",{role:"radiogroup","aria-label":(0,j.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:l.AA.map(a=>{let b=i===a.value;return(0,e.jsxs)("button",{type:"button",role:"radio","aria-checked":b,"aria-label":(0,j.Tl)(a.label),onClick:()=>m(a.value),className:(0,k.cn)("flex h-full items-center gap-1 rounded-md px-2.5 text-xs transition-colors @max-[640px]:px-2",b?"bg-primary/10 font-medium text-primary":"text-text-muted hover:text-text"),children:[(0,e.jsx)("span",{className:(0,k.cn)(t,"hidden text-[14px] @max-[640px]:inline"),children:u[a.value]}),(0,e.jsx)("span",{className:"@max-[640px]:hidden",children:(0,j.Tl)(a.label)})]},a.value)})}),N&&(0,e.jsx)("button",{type:"button",onClick:z,"aria-pressed":y,className:(0,k.cn)(r,"w-8 justify-center px-0",y&&s),title:(0,j.Tl)("Sort accounts by earliest reset or expiry time"),"aria-label":(0,j.Tl)("Resets first"),children:(0,e.jsx)("span",{className:t,children:"hourglass_top"})}),N&&v&&(0,e.jsx)("select",{value:w,onChange:a=>x(a.target.value),className:(0,k.cn)(r,"pr-1 outline-none"),"aria-label":(0,j.Tl)("Sort Codex quotas by remaining"),children:l.vF.map(a=>(0,e.jsx)("option",{value:a.value,children:(0,j.Tl)(a.label)},a.value))})]}),(0,e.jsxs)("div",{className:"ml-auto flex items-center gap-2 @max-[640px]:order-2",children:[N&&Number.isFinite(I)&&(0,e.jsx)("span",{className:"hidden text-xs tabular-nums text-text-muted @min-[1130px]:inline",children:(0,j.Tl)("{count} accounts").replace("{count}",String(I))}),N&&(0,e.jsxs)("div",{className:"relative",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>M(a=>!a),disabled:C,className:r,"aria-haspopup":"menu","aria-expanded":L,title:(0,j.Tl)("Bulk actions"),"aria-label":(0,j.Tl)("Bulk actions"),children:[(0,e.jsx)("span",{className:t,children:C?"progress_activity":"checklist"}),(0,e.jsx)("span",{className:"hidden @min-[1060px]:inline",children:(0,j.Tl)("Bulk actions")}),(0,e.jsx)("span",{className:(0,k.cn)(t,"text-[14px] text-text-muted"),children:"expand_more"})]}),(0,e.jsxs)(n,{open:L,onClose:()=>M(!1),align:"right",className:"w-72",children:[(0,e.jsx)(o,{disabled:C,icon:(0,e.jsx)("span",{className:(0,k.cn)(t,"mt-px text-red-500"),children:"block"}),hint:(0,j.Tl)("Disable connections with depleted quota on the current page"),onClick:()=>{M(!1),A()},children:(0,j.Tl)("Turn off Empty")}),(0,e.jsx)(o,{disabled:C,icon:(0,e.jsx)("span",{className:(0,k.cn)(t,"mt-px text-emerald-500"),children:"check_circle"}),hint:(0,j.Tl)("Enable connections that still have quota on the current page"),onClick:()=>{M(!1),B()},children:(0,j.Tl)("Turn on Available")})]})]}),N&&(0,e.jsxs)("button",{type:"button",role:"switch","aria-checked":D,onClick:E,className:r,title:(0,j.Tl)(D?"Disable auto-refresh":"Enable auto-refresh"),children:[(0,e.jsx)("span",{"aria-hidden":"true",className:(0,k.cn)("relative h-4 w-7 rounded-full transition-colors",D?"bg-primary":"bg-black/15 dark:bg-white/20"),children:(0,e.jsx)("span",{className:(0,k.cn)("absolute top-0.5 size-3 rounded-full bg-white shadow transition-[left]",D?"left-[14px]":"left-0.5")})}),(0,e.jsx)("span",{className:"hidden @min-[980px]:inline",children:(0,j.Tl)("Auto-refresh")}),D&&(0,e.jsxs)("span",{className:"w-6 text-right text-[11px] tabular-nums text-text-muted",children:[F,"s"]})]}),(0,e.jsx)("button",{type:"button",onClick:H,disabled:G,className:(0,k.cn)(r,"w-8 justify-center px-0"),title:(0,j.Tl)("Refresh all"),"aria-label":(0,j.Tl)("Refresh all"),children:(0,e.jsx)("span",{className:(0,k.cn)(t,G&&"animate-spin"),children:"refresh"})})]})]})}n.propTypes={open:h().bool,onClose:h().func.isRequired,align:h().oneOf(["left","right"]),className:h().string,children:h().node},o.propTypes={selected:h().bool,onClick:h().func,icon:h().node,children:h().node,hint:h().node,disabled:h().bool},p.propTypes={provider:h().string.isRequired,size:h().number},q.propTypes={view:h().oneOf(["cards","windows"]),onViewChange:h().func,providerFilter:h().string.isRequired,providerOptions:h().arrayOf(h().string).isRequired,providerLabel:h().node,onProviderChange:h().func.isRequired,accountFilter:h().string.isRequired,onAccountChange:h().func.isRequired,showCodexSort:h().bool,quotaSortMode:h().string,onQuotaSortChange:h().func,expiringFirst:h().bool,onToggleExpiringFirst:h().func.isRequired,onDisableDepleted:h().func.isRequired,onEnableAvailable:h().func.isRequired,bulkToggling:h().bool,autoRefresh:h().bool,onToggleAutoRefresh:h().func.isRequired,countdown:h().number,refreshingAll:h().bool,onRefreshAll:h().func.isRequired,accountCount:h().number},d()}catch(a){d(a)}})},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29413:(a,b,c)=>{"use strict";c.d(b,{A:()=>q,M:()=>j.M});var d=c(48249),e=c(67484),f=c(49885),g=c.n(f),h=c(4088),i=c(99258),j=c(9734),k=c(71452),l=c(82563),m=c(71404);function n(a){return Number(Number(a||0).toFixed(2)).toLocaleString("en-US")}function o({quota:a,now:b,onHide:c}){let e=(0,k.Cd)(a,a.pct),f=(0,k.OG)(a),g=(0,k.D2)(a,b),m=!!a.resetAt&&2099>=new Date(a.resetAt).getFullYear(),p=m?(0,h.mO)(a.resetAt):"-",q=m?[function(a){let b=new Date(a);if(Number.isNaN(b.getTime())||b.getFullYear()>2099)return"";let c=a=>String(a).padStart(2,"0");return`${b.getFullYear()}-${c(b.getMonth()+1)}-${c(b.getDate())} ${c(b.getHours())}:${c(b.getMinutes())}`}(a.resetAt),"-"!==p?p:null].filter(Boolean).join(" \xb7 "):void 0,r=a.percentScale?`${a.pct}%`:a.unlimited?"∞":`${n(Math.max(0,a.total-a.used))} / ${n(a.total)}`;return(0,d.jsxs)("div",{className:"group min-w-0 space-y-1 py-1",children:[(0,d.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-2 text-[11px] tabular-nums",children:[(0,d.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,d.jsx)("span",{className:"size-[8px] shrink-0 rounded-[2px]",style:{background:(0,l.dI)(a.pct)},"aria-hidden":"true"}),(0,d.jsx)("span",{className:"truncate text-text",children:(0,j.M)(a.name)})]}),(0,d.jsxs)("span",{className:"flex shrink-0 items-center gap-2",children:[(0,d.jsx)("span",{className:l.pM[e],title:a.percentScale||a.unlimited?void 0:`${(0,i.Tl)("Used")} ${n(a.used)}`,children:r}),m?(0,d.jsx)("span",{className:"text-text-muted",title:q,children:(0,l.h7)(f,a.resetAt,{expired:g})}):null,c?(0,d.jsx)("button",{type:"button",onClick:()=>c(a),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,i.Tl)("Hide this quota row"),"aria-label":`${(0,i.Tl)("Hide this quota row")}: ${(0,j.M)(a.name)}`,children:(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"visibility_off"})}):null]})]}),(0,d.jsx)(l.Ay,{pct:a.pct})]})}function p({rows:a,now:b,onHide:c,limit:e,onMore:f}){let g=a.length-e;return(0,d.jsxs)(d.Fragment,{children:[a.slice(0,e).map(a=>(0,d.jsx)(o,{quota:a,now:b,onHide:c},`${a.name}-${a.index}`)),g>0&&(0,d.jsx)("button",{type:"button",onClick:f,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,i.Tl)("Show {count} more").replace("{count}",String(Math.min(10,g)))})]})}function q({quotas:a=[],sortMode:b="default",showSortLabel:c=!1,onHideQuota:f=null}){let[g,j]=(0,e.useState)(10),[l,n]=(0,e.useState)(10),[o,r]=(0,e.useState)(!1),[s,t]=(0,e.useState)(()=>Date.now()),{live:u,history:v}=(0,e.useMemo)(()=>{var c;let d=(c=a.map((a,b)=>({...a,index:b,used:Number(a.used||0),total:Number(a.total||0),pct:(0,h.$L)(a)})),"remaining-asc"===b?[...c].sort((a,b)=>a.pct-b.pct||a.name.localeCompare(b.name)):"remaining-desc"===b?[...c].sort((a,b)=>b.pct-a.pct||a.name.localeCompare(b.name)):c);return{live:d.filter(a=>!(0,k.UY)(a,s)),history:d.filter(a=>(0,k.UY)(a,s))}},[a,b,s]);if(!a||0===a.length)return null;let w="function"==typeof f?f:null;return(0,d.jsxs)("div",{className:"space-y-0.5",children:[c&&(0,d.jsx)("div",{className:"pb-1 text-[10px] text-text-muted",children:(0,i.Tl)("Sorted by account remaining")}),(0,d.jsx)(p,{rows:u,now:s,onHide:w,limit:g,onMore:()=>j(a=>a+10)}),v.length>0&&(0,d.jsxs)("div",{className:(0,m.cn)(u.length>0&&"mt-1 border-t border-black/5 pt-1 dark:border-white/5"),children:[(0,d.jsxs)("button",{type:"button",onClick:()=>r(a=>!a),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":o,children:[(0,d.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:o?"expand_less":"expand_more"}),(0,i.Tl)("Used up / expired"),(0,d.jsxs)("span",{className:"tabular-nums opacity-60",children:["(",v.length,")"]})]}),o&&(0,d.jsx)("div",{className:"opacity-60",children:(0,d.jsx)(p,{rows:v,now:s,onHide:w,limit:l,onMore:()=>n(a=>a+10)})})]})]})}o.propTypes={quota:g().object.isRequired,now:g().number.isRequired,onHide:g().func},p.propTypes={rows:g().array.isRequired,now:g().number.isRequired,onHide:g().func,limit:g().number.isRequired,onMore:g().func.isRequired},q.propTypes={quotas:g().array,sortMode:g().string,showSortLabel:g().bool,onHideQuota:g().func}},31421:a=>{"use strict";a.exports=require("node:child_process")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},46293:a=>{"use strict";a.exports=require("sql.js")},48161:a=>{"use strict";a.exports=require("node:os")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},55591:a=>{"use strict";a.exports=require("https")},57075:a=>{"use strict";a.exports=require("node:stream")},57471:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"F:\\\\Files\\\\GitHub Files\\\\10router\\\\src\\\\app\\\\(dashboard)\\\\dashboard\\\\usage\\\\components\\\\ProviderLimits\\\\index.js\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\usage\\components\\ProviderLimits\\index.js","default")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67212:(a,b,c)=>{"use strict";c.d(b,{VC:()=>j,Vw:()=>h,nN:()=>i,sO:()=>e});var d=c(71452);let e=864e5,f=[{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 g(a,b){let c=new Date(a),d=c.getDate();c.setDate(1),c.setMonth(c.getMonth()+b);let e=new Date(c.getFullYear(),c.getMonth()+1,0).getDate();return c.setDate(Math.min(d,e)),c.getTime()}let h={week:{kinds:["day","week","month"],spanMs:12096e5,stepMs:6048e5,tickMs:864e5},hours:{kinds:["5h"],spanMs:864e5,stepMs:864e5,tickMs:36e5}};function i(a,b,c=0){let d,e,f,g=h[a]||h.week,j=("hours"===a?((d=new Date(b-432e5)).setMinutes(0,0,0),d.getTime()):((e=new Date(b)).setHours(0,0,0,0),f=(e.getDay()+6)%7,e.setDate(e.getDate()-f),e.getTime()))+c*g.stepMs;return{start:j,end:j+g.spanMs}}function j(a=[],{view:b="week",rangeStart:c,rangeEnd:e}={}){let i=(h[b]||h.week).kinds,k=[];for(let b of a||[]){let a=(Array.isArray(b?.quotas)?b.quotas:[]).map(a=>({q:a,kind:function(a){if(a?.giftPack===!0||a?.detailOnly===!0||!(0,d.OG)(a)||!a?.resetAt)return null;let b=String(a?.name||""),c=(0,d.TM)(b)?.window||b;for(let a of f)if(a.re.test(c))return a.key;return null}(a)})).filter(a=>a.kind);if(0===a.length)continue;let h=a.map(({q:a,kind:b})=>({name:a.name,kind:b,pct:Math.round((0,d.pR)(a))})),j=a.filter(({kind:a})=>i.includes(a)).map(({q:a,kind:b})=>({name:a.name,kind:b,pct:(0,d.pR)(a),resetAt:a.resetAt,windows:function(a,b,c,d,e=60){let h=[],i=new Date(a?.resetAt).getTime(),j=function(a,b){let c=new Date(b).getTime();if("month"===a)return g(c,-1);let d=f.find(b=>b.key===a);return d?.ms?c-d.ms:NaN}(b,i);if(!Number.isFinite(i)||!Number.isFinite(j))return h;for(let a=0;a<=e&&j<d;a+=1){i>c&&h.push({start:j,end:i,current:0===a});let d=function(a,b){let c=new Date(b).getTime();if("month"===a)return g(c,1);let d=f.find(b=>b.key===a);return d?.ms?c+d.ms:NaN}(b,i);if(!Number.isFinite(d))break;j=i,i=d}return h}(a,b,c,e)})).filter(a=>a.windows.length>0);k.push({id:b.id,provider:b.provider,label:b.name||b.email||b.providerName||b.provider,providerName:b.providerName||b.provider,isActive:!1!==b.isActive,chips:h,lanes:j})}return k}},69915:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>w,handler:()=>y,routeModule:()=>x});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,57529))),j=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,30508))),o=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),p=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),q=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),r=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),s=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),t=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,95547,23))),u={children:["",{children:["(dashboard)",{children:["dashboard",{children:["quota",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,16736))),"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\dashboard\\quota\\page.js"]}]},{"global-error":[t,"next/dist/client/components/builtin/global-error.js"]},[]]},{"global-error":[s,"next/dist/client/components/builtin/global-error.js"]},[]]},{layout:[n,"F:\\Files\\GitHub Files\\10router\\src\\app\\(dashboard)\\layout.js"],"global-error":[o,"next/dist/client/components/builtin/global-error.js"],"not-found":[p,"next/dist/client/components/builtin/not-found.js"],forbidden:[q,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[r,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"F:\\Files\\GitHub Files\\10router\\src\\app\\layout.js"],"global-error":[j,"next/dist/client/components/builtin/global-error.js"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,v=(0,e.H)({tree:u,page:"/(dashboard)/dashboard/quota/page",pathname:"/dashboard/quota",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),w=v.__next_app__,x=v.routeModule,y=v.handler},70619:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{A:()=>w});var e=c(48249),f=c(67484),g=c(2116),h=c.n(g),i=c(49885),j=c.n(i),k=c(17660),l=c(72738),m=c(82563),n=c(99258),o=c(9734),p=c(71452),q=c(67212),r=c(71404),s=a([l]);l=(s.then?(await s)():s)[0];let x="w-[220px] shrink-0",y=a=>String(a).padStart(2,"0"),z=a=>{let b=new Date(a);return`${y(b.getMonth()+1)}/${y(b.getDate())}`},A=a=>{let b=new Date(a);return`${y(b.getHours())}:${y(b.getMinutes())}`};function t(a){let b=(0,p.TM)(a);return b?(0,n.Tl)(b.family):(0,o.M)(a)}function u({value:a,options:b,onChange:c}){return(0,e.jsx)("div",{className:"flex h-8 items-center rounded-lg border border-black/10 bg-surface p-0.5 dark:border-white/10",children:b.map(b=>(0,e.jsx)("button",{type:"button",onClick:()=>c(b.value),"aria-pressed":a===b.value,className:(0,r.cn)("h-full rounded-md px-2.5 text-xs transition-colors",a===b.value?"bg-primary/10 font-medium text-primary":"text-text-muted hover:text-text"),children:b.label},b.value))})}function v({win:a,lane:b,range:c,showLabel:d,view:f}){let g=a=>"hours"===f?A(a):`${z(a)} ${A(a)}`,h=c.end-c.start,i=100*Math.max(0,(a.start-c.start)/h),j=100*Math.min(1,(a.end-c.start)/h),k=Math.max(.5,j-i),l=a.start<c.start,o=a.end>c.end,p=(0,r.cn)(!l&&"rounded-l-[4px]",!o&&"rounded-r-[4px]"),q={left:`${i}%`,width:`${k}%`};if(!a.current)return(0,e.jsx)("div",{className:(0,r.cn)("absolute inset-y-0 overflow-hidden border border-dashed border-black/15 dark:border-white/15",p),style:q,title:`${t(b.name)} \xb7 ${z(a.start)} ${A(a.start)} – ${z(a.end)} ${A(a.end)}`,children:(0,e.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:g(a.start)})});let s=Math.round(b.pct),u=(0,n.Tl)("resets {date}").replace("{date}",g(a.end)),w=`${d?`${t(b.name)} \xb7 `:""}${s}% \xb7 ${u}`;return(0,e.jsxs)("div",{className:(0,r.cn)("absolute inset-y-0 overflow-hidden bg-black/[0.06] dark:bg-white/[0.08]",p),style:q,title:w,children:[(0,e.jsx)("div",{className:"absolute inset-y-0 left-0",style:{width:`${s}%`,opacity:.85,...(0,m.jE)(s)}}),(0,e.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:w})]})}function w({providerFilter:a="all",accountFilter:b="all",refreshKey:c=0,showTrackerLink:d=!0}){let[g,i]=(0,f.useState)(null),[j,p]=(0,f.useState)(null),[s,t]=(0,f.useState)(!1),[B,C]=(0,f.useState)("week"),[D,E]=(0,f.useState)(0),[F,G]=(0,f.useState)(null),H=(0,f.useMemo)(()=>(g||[]).filter(c=>("all"===a||c.provider===a)&&("active"!==b||!1!==c.isActive)&&("inactive"!==b||!1===c.isActive)),[g,a,b]),I=(0,f.useMemo)(()=>F?(0,q.nN)(B,F,D):null,[B,F,D]),J=(0,f.useMemo)(()=>I&&g?(0,q.VC)(H,{view:B,rangeStart:I.start,rangeEnd:I.end}):[],[g,H,B,I]),K=(0,f.useMemo)(()=>{if(!I)return[];let a=q.Vw[B].tickMs,b=[];for(let c=I.start;c<I.end;c+=a)b.push(c);return b},[I,B]),L=I&&F>=I.start&&F<I.end?(F-I.start)/(I.end-I.start)*100:null,M=F?new Date(new Date(F).setHours(0,0,0,0)).getTime():null,N=I?"hours"===B?`${z(I.start)} ${A(I.start)} – ${z(I.end)} ${A(I.end)}`:`${z(I.start)} – ${z(I.end-q.sO)} \xb7 ${(0,n.Tl)("two weeks")}`:"";return(0,e.jsxs)(k.default,{children:[(0,e.jsxs)("div",{className:"mb-4 flex flex-wrap items-center gap-3",children:[(0,e.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,e.jsxs)("h2",{className:"flex items-center gap-2 text-lg font-semibold",children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[20px] text-primary",children:"date_range"}),(0,n.Tl)("Quota windows"),s&&(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-[14px] text-text-muted","aria-label":(0,n.Tl)("Refreshing"),children:"progress_activity"})]}),(0,e.jsxs)("p",{className:"mt-0.5 text-xs text-text-muted tabular-nums",children:[N,0===D&&N?` \xb7 ${(0,n.Tl)("current")}`:""]})]}),(0,e.jsxs)("div",{className:"flex h-8 items-center rounded-lg border border-black/10 bg-surface dark:border-white/10",children:[(0,e.jsx)("button",{type:"button",onClick:()=>E(a=>a-1),className:"flex h-full w-8 items-center justify-center text-text-muted hover:text-text","aria-label":(0,n.Tl)("Previous"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_left"})}),(0,e.jsx)("button",{type:"button",onClick:()=>E(0),disabled:0===D,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,n.Tl)("hours"===B?"current":"Today")}),(0,e.jsx)("button",{type:"button",onClick:()=>E(a=>a+1),className:"flex h-full w-8 items-center justify-center text-text-muted hover:text-text","aria-label":(0,n.Tl)("Next"),children:(0,e.jsx)("span",{className:"material-symbols-outlined text-[16px]",children:"chevron_right"})})]}),(0,e.jsx)(u,{value:B,onChange:a=>{C(a),E(0)},options:[{value:"week",label:(0,n.Tl)("By week")},{value:"hours",label:(0,n.Tl)("5 hours")}]}),d&&(0,e.jsxs)(h(),{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,n.Tl)("Quota Tracker"),(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:"arrow_forward"})]})]}),null===g?(0,e.jsx)("div",{className:"py-10 text-center text-xs text-text-muted",children:(0,e.jsx)("span",{className:"material-symbols-outlined animate-spin text-[22px]",children:"progress_activity"})}):0===J.length?(0,e.jsx)("div",{className:"py-8 text-center text-xs text-text-muted",children:j?`${(0,n.Tl)("Failed to load quotas")} \xb7 ${j}`:(0,n.Tl)("No accounts with recurring quota windows")}):(0,e.jsx)("div",{className:"overflow-x-auto rounded-xl border border-black/10 dark:border-white/10",children:(0,e.jsxs)("div",{className:"min-w-[760px]",children:[(0,e.jsxs)("div",{className:"flex border-b border-black/10 bg-black/[0.015] dark:border-white/10 dark:bg-white/[0.02]",children:[(0,e.jsx)("div",{className:(0,r.cn)(x,"flex items-end px-3 pb-1.5 text-[11px] text-text-muted"),children:(0,n.Tl)("Account")}),(0,e.jsx)("div",{className:"relative flex flex-1",children:K.map((a,b)=>{let c="week"===B&&a===M,d="hours"!==B||new Date(a).getHours()%2==0;return(0,e.jsx)("div",{className:(0,r.cn)("flex-1 border-l border-black/5 px-0.5 py-1.5 text-center dark:border-white/5",0===b&&"border-l-0",c&&"bg-primary/[0.06]"),children:"hours"===B?(0,e.jsx)("div",{className:"text-[10px] tabular-nums text-text-muted",children:d?`${y(new Date(a).getHours())}`:""}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:(0,r.cn)("text-[10px]",c?"text-primary":"text-text-muted"),children:function(a){try{return new Date(a).toLocaleDateString((0,n.kk)()||void 0,{weekday:"short"})}catch{return""}}(a)}),(0,e.jsx)("div",{className:(0,r.cn)("text-[11px] font-medium tabular-nums",c?"text-primary":"text-text"),children:z(a)})]})},a)})})]}),J.map(a=>(0,e.jsxs)("div",{className:(0,r.cn)("flex border-b border-black/5 last:border-b-0 dark:border-white/5",!a.isActive&&"opacity-55"),children:[(0,e.jsxs)("div",{className:(0,r.cn)(x,"space-y-1 px-3 py-2.5"),children:[(0,e.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,e.jsx)(l.A,{src:`/providers/${a.provider}.png`,alt:a.provider,size:16,className:"shrink-0 rounded object-contain",fallbackText:String(a.provider||"?").slice(0,2).toUpperCase()}),(0,e.jsx)("span",{className:"truncate text-xs font-medium text-text",title:`${a.providerName} \xb7 ${a.label}`,children:a.label})]}),(0,e.jsx)("div",{className:"flex flex-wrap gap-1",children:a.chips.map(a=>(0,e.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,o.M)(a.name),children:[(0,e.jsx)("span",{className:"size-1.5 shrink-0 rounded-full",style:{background:(0,m.dI)(a.pct)}}),(0,e.jsx)("span",{className:"truncate",children:(0,o.M)(a.name)}),(0,e.jsxs)("b",{className:"font-semibold tabular-nums text-text",children:[a.pct,"%"]})]},a.name))})]}),(0,e.jsxs)("div",{className:"relative flex-1 py-2.5",children:[(0,e.jsx)("div",{className:"pointer-events-none absolute inset-0 flex",children:K.map((a,b)=>(0,e.jsx)("div",{className:(0,r.cn)("flex-1 border-l border-black/[0.04] dark:border-white/[0.05]",0===b&&"border-l-0","week"===B&&a===M&&"bg-primary/[0.04]")},a))}),null!==L&&(0,e.jsx)("div",{className:"pointer-events-none absolute inset-y-0 w-px bg-primary/60",style:{left:`${L}%`}}),(0,e.jsx)("div",{className:"relative space-y-1",children:0===a.lanes.length?(0,e.jsx)("div",{className:"flex h-[18px] items-center px-2 text-[10px] text-text-muted/70",children:(0,n.Tl)("hours"===B?"No 5-hour window":"No daily / weekly / monthly window")}):a.lanes.map(b=>(0,e.jsx)("div",{className:"relative h-[18px]",children:b.windows.map(c=>(0,e.jsx)(v,{win:c,lane:b,range:I,view:B,showLabel:a.lanes.length>1},`${b.name}-${c.start}`))},b.name))})]})]},a.id))]})})]})}u.propTypes={value:j().string.isRequired,options:j().arrayOf(j().shape({value:j().string,label:j().node})).isRequired,onChange:j().func.isRequired},v.propTypes={win:j().object.isRequired,lane:j().object.isRequired,range:j().object.isRequired,showLabel:j().bool,view:j().string},w.propTypes={providerFilter:j().string,accountFilter:j().string,refreshKey:j().number,showTrackerLink:j().bool},d()}catch(a){d(a)}})},71553:a=>{"use strict";a.exports=require("node:dns/promises")},71622:a=>{"use strict";a.exports=import("open")},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},73496:a=>{"use strict";a.exports=require("http2")},74075:a=>{"use strict";a.exports=require("zlib")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78474:a=>{"use strict";a.exports=require("node:events")},79646:a=>{"use strict";a.exports=require("child_process")},80099:a=>{"use strict";a.exports=require("node:sqlite")},81630:a=>{"use strict";a.exports=require("http")},81787:a=>{"use strict";a.exports=require("bun:sqlite")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},87997:a=>{"use strict";a.exports=require("node:timers")},91645:a=>{"use strict";a.exports=require("net")},94735:a=>{"use strict";a.exports=require("events")},98995:a=>{"use strict";a.exports=require("node:module")},99882:(a,b,c)=>{"use strict";c.d(b,{DF:()=>h,SJ:()=>m,bx:()=>k,eG:()=>g,pu:()=>j,uE:()=>l,zm:()=>e});var d=c(4088);function e({page:a,pageSize:b,accountFilter:c,providerFilter:d}){return[a,b,c,d].join("|")}function f(a){if(!a?.providerSpecificData?.connectionProxyUrl)return a;let b={...a.providerSpecificData};return delete b.connectionProxyUrl,{...a,providerSpecificData:b}}function g(a){return null}function h(a,{connections:b,pagination:c,totals:d,providerOptions:e}){(b||[]).map(f),Date.now()}function i(a){let b=a?.cachedAt?new Date(a.cachedAt).getTime():NaN;return Number.isFinite(b)?b:0}function j(a,b=Date.now(),c=6e4){let d=i(a);return d>0&&b-d<c}function k(a){let b=(d.AI,{}),c={};for(let d of a||[])b[d.id]&&(c[d.id]=b[d.id]);return c}function l(a,b,c=Date.now()){let e=(d.AI,{});for(let[d,f]of(e[a]={...function(a){if(!a||"object"!=typeof a)return a;let{raw:b,...c}=a;return b?.resetCredits?{...c,raw:{resetCredits:b.resetCredits}}:c}(b),cachedAt:new Date(c).toISOString()},Object.entries(e)))c-i(f)>6048e5&&delete e[d];d.AI}function m(a=4){let b=0,c=[],d=()=>{if(b>=a||0===c.length)return;b+=1;let{fn:e,resolve:f,reject:g}=c.shift();Promise.resolve().then(e).then(f,g).finally(()=>{b-=1,d()})};return a=>new Promise((b,e)=>{c.push({fn:a,resolve:b,reject:e}),d()})}}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,2391,7568,2430,4613,8410,2116,682,6070,1329,5781,7274,8318,1219,4123,8172,6960,4886,4008],()=>b(b.s=69915));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/bundle-name/index.js","../../../../../../node_modules/bundle-name/package.json","../../../../../../node_modules/default-browser-id/index.js","../../../../../../node_modules/default-browser-id/package.json","../../../../../../node_modules/default-browser/index.js","../../../../../../node_modules/default-browser/package.json","../../../../../../node_modules/default-browser/windows.js","../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/is-docker/index.js","../../../../../../node_modules/is-docker/package.json","../../../../../../node_modules/is-in-ssh/index.js","../../../../../../node_modules/is-in-ssh/package.json","../../../../../../node_modules/is-inside-container/index.js","../../../../../../node_modules/is-inside-container/package.json","../../../../../../node_modules/is-wsl/index.js","../../../../../../node_modules/is-wsl/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/open/index.js","../../../../../../node_modules/open/package.json","../../../../../../node_modules/open/xdg-open","../../../../../../node_modules/powershell-utils/index.js","../../../../../../node_modules/powershell-utils/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/run-applescript/index.js","../../../../../../node_modules/run-applescript/package.json","../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../node_modules/sql.js/package.json","../../../../../../node_modules/wsl-utils/index.js","../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../node_modules/wsl-utils/package.json","../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1159.js","../../../../chunks/1219.js","../../../../chunks/1220.js","../../../../chunks/1261.js","../../../../chunks/1329.js","../../../../chunks/1386.js","../../../../chunks/1531.js","../../../../chunks/1710.js","../../../../chunks/1813.js","../../../../chunks/1998.js","../../../../chunks/2112.js","../../../../chunks/2116.js","../../../../chunks/2120.js","../../../../chunks/2132.js","../../../../chunks/2391.js","../../../../chunks/241.js","../../../../chunks/2430.js","../../../../chunks/2468.js","../../../../chunks/2732.js","../../../../chunks/2750.js","../../../../chunks/2812.js","../../../../chunks/2926.js","../../../../chunks/3225.js","../../../../chunks/3245.js","../../../../chunks/3256.js","../../../../chunks/3433.js","../../../../chunks/3500.js","../../../../chunks/3535.js","../../../../chunks/3593.js","../../../../chunks/3792.js","../../../../chunks/3885.js","../../../../chunks/3943.js","../../../../chunks/4008.js","../../../../chunks/4123.js","../../../../chunks/4125.js","../../../../chunks/4152.js","../../../../chunks/4177.js","../../../../chunks/4190.js","../../../../chunks/4282.js","../../../../chunks/4293.js","../../../../chunks/436.js","../../../../chunks/4575.js","../../../../chunks/4613.js","../../../../chunks/4689.js","../../../../chunks/4730.js","../../../../chunks/4739.js","../../../../chunks/4741.js","../../../../chunks/4746.js","../../../../chunks/4755.js","../../../../chunks/4780.js","../../../../chunks/480.js","../../../../chunks/4803.js","../../../../chunks/4886.js","../../../../chunks/4927.js","../../../../chunks/507.js","../../../../chunks/5081.js","../../../../chunks/5182.js","../../../../chunks/5210.js","../../../../chunks/5258.js","../../../../chunks/5330.js","../../../../chunks/539.js","../../../../chunks/5433.js","../../../../chunks/5485.js","../../../../chunks/5573.js","../../../../chunks/5615.js","../../../../chunks/5640.js","../../../../chunks/5692.js","../../../../chunks/5781.js","../../../../chunks/595.js","../../../../chunks/6070.js","../../../../chunks/6103.js","../../../../chunks/6133.js","../../../../chunks/615.js","../../../../chunks/6252.js","../../../../chunks/6306.js","../../../../chunks/6326.js","../../../../chunks/6457.js","../../../../chunks/6492.js","../../../../chunks/653.js","../../../../chunks/6756.js","../../../../chunks/6763.js","../../../../chunks/682.js","../../../../chunks/6844.js","../../../../chunks/6875.js","../../../../chunks/6921.js","../../../../chunks/6922.js","../../../../chunks/6947.js","../../../../chunks/6956.js","../../../../chunks/6960.js","../../../../chunks/698.js","../../../../chunks/6982.js","../../../../chunks/7066.js","../../../../chunks/7067.js","../../../../chunks/7070.js","../../../../chunks/7122.js","../../../../chunks/7239.js","../../../../chunks/7247.js","../../../../chunks/7274.js","../../../../chunks/7322.js","../../../../chunks/7568.js","../../../../chunks/7726.js","../../../../chunks/7753.js","../../../../chunks/7774.js","../../../../chunks/7775.js","../../../../chunks/7828.js","../../../../chunks/7965.js","../../../../chunks/8062.js","../../../../chunks/808.js","../../../../chunks/8172.js","../../../../chunks/8292.js","../../../../chunks/8370.js","../../../../chunks/8410.js","../../../../chunks/8469.js","../../../../chunks/8499.js","../../../../chunks/8520.js","../../../../chunks/8595.js","../../../../chunks/8658.js","../../../../chunks/8672.js","../../../../chunks/8689.js","../../../../chunks/8749.js","../../../../chunks/8838.js","../../../../chunks/8895.js","../../../../chunks/8920.js","../../../../chunks/8988.js","../../../../chunks/9046.js","../../../../chunks/9055.js","../../../../chunks/9154.js","../../../../chunks/939.js","../../../../chunks/9451.js","../../../../chunks/9489.js","../../../../chunks/9609.js","../../../../chunks/9628.js","../../../../chunks/976.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/esm/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../node_modules/better-sqlite3/package.json","../../../../../../node_modules/bindings/bindings.js","../../../../../../node_modules/bindings/package.json","../../../../../../node_modules/bundle-name/index.js","../../../../../../node_modules/bundle-name/package.json","../../../../../../node_modules/default-browser-id/index.js","../../../../../../node_modules/default-browser-id/package.json","../../../../../../node_modules/default-browser/index.js","../../../../../../node_modules/default-browser/package.json","../../../../../../node_modules/default-browser/windows.js","../../../../../../node_modules/define-lazy-prop/index.js","../../../../../../node_modules/define-lazy-prop/package.json","../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../node_modules/is-docker/index.js","../../../../../../node_modules/is-docker/package.json","../../../../../../node_modules/is-in-ssh/index.js","../../../../../../node_modules/is-in-ssh/package.json","../../../../../../node_modules/is-inside-container/index.js","../../../../../../node_modules/is-inside-container/package.json","../../../../../../node_modules/is-wsl/index.js","../../../../../../node_modules/is-wsl/package.json","../../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../../node_modules/next/dist/client/lib/console.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../../node_modules/next/dist/server/node-environment.js","../../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../../node_modules/next/dist/server/require-hook.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/open/index.js","../../../../../../node_modules/open/package.json","../../../../../../node_modules/open/xdg-open","../../../../../../node_modules/powershell-utils/index.js","../../../../../../node_modules/powershell-utils/package.json","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/run-applescript/index.js","../../../../../../node_modules/run-applescript/package.json","../../../../../../node_modules/sql.js/dist/sql-wasm.js","../../../../../../node_modules/sql.js/package.json","../../../../../../node_modules/wsl-utils/index.js","../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/index.js","../../../../../../node_modules/wsl-utils/node_modules/powershell-utils/package.json","../../../../../../node_modules/wsl-utils/package.json","../../../../../../node_modules/wsl-utils/utilities.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1219.js","../../../../chunks/1220.js","../../../../chunks/1261.js","../../../../chunks/1329.js","../../../../chunks/1345.js","../../../../chunks/1386.js","../../../../chunks/1531.js","../../../../chunks/1806.js","../../../../chunks/1813.js","../../../../chunks/1998.js","../../../../chunks/2112.js","../../../../chunks/2116.js","../../../../chunks/2120.js","../../../../chunks/2132.js","../../../../chunks/2391.js","../../../../chunks/241.js","../../../../chunks/2430.js","../../../../chunks/2468.js","../../../../chunks/2557.js","../../../../chunks/2732.js","../../../../chunks/2750.js","../../../../chunks/2752.js","../../../../chunks/2812.js","../../../../chunks/2926.js","../../../../chunks/2978.js","../../../../chunks/3225.js","../../../../chunks/3256.js","../../../../chunks/3433.js","../../../../chunks/3500.js","../../../../chunks/3535.js","../../../../chunks/3593.js","../../../../chunks/3659.js","../../../../chunks/3662.js","../../../../chunks/3792.js","../../../../chunks/3943.js","../../../../chunks/3962.js","../../../../chunks/4008.js","../../../../chunks/4123.js","../../../../chunks/4125.js","../../../../chunks/4152.js","../../../../chunks/4190.js","../../../../chunks/4293.js","../../../../chunks/4575.js","../../../../chunks/4613.js","../../../../chunks/4689.js","../../../../chunks/4692.js","../../../../chunks/4730.js","../../../../chunks/4739.js","../../../../chunks/4741.js","../../../../chunks/4755.js","../../../../chunks/4780.js","../../../../chunks/4803.js","../../../../chunks/4886.js","../../../../chunks/4927.js","../../../../chunks/507.js","../../../../chunks/5081.js","../../../../chunks/5182.js","../../../../chunks/5210.js","../../../../chunks/5258.js","../../../../chunks/5330.js","../../../../chunks/539.js","../../../../chunks/5433.js","../../../../chunks/5527.js","../../../../chunks/5573.js","../../../../chunks/5615.js","../../../../chunks/5640.js","../../../../chunks/5692.js","../../../../chunks/5781.js","../../../../chunks/595.js","../../../../chunks/6070.js","../../../../chunks/6103.js","../../../../chunks/6133.js","../../../../chunks/615.js","../../../../chunks/6252.js","../../../../chunks/6306.js","../../../../chunks/6326.js","../../../../chunks/6457.js","../../../../chunks/6492.js","../../../../chunks/6756.js","../../../../chunks/6763.js","../../../../chunks/682.js","../../../../chunks/6844.js","../../../../chunks/6875.js","../../../../chunks/6921.js","../../../../chunks/6922.js","../../../../chunks/6947.js","../../../../chunks/6956.js","../../../../chunks/6960.js","../../../../chunks/698.js","../../../../chunks/7066.js","../../../../chunks/7067.js","../../../../chunks/7070.js","../../../../chunks/7122.js","../../../../chunks/7247.js","../../../../chunks/7274.js","../../../../chunks/7322.js","../../../../chunks/75.js","../../../../chunks/7568.js","../../../../chunks/7726.js","../../../../chunks/7753.js","../../../../chunks/7774.js","../../../../chunks/7775.js","../../../../chunks/7828.js","../../../../chunks/7965.js","../../../../chunks/8062.js","../../../../chunks/808.js","../../../../chunks/8145.js","../../../../chunks/8172.js","../../../../chunks/8292.js","../../../../chunks/8318.js","../../../../chunks/8370.js","../../../../chunks/8410.js","../../../../chunks/8439.js","../../../../chunks/8469.js","../../../../chunks/8499.js","../../../../chunks/8520.js","../../../../chunks/8595.js","../../../../chunks/8658.js","../../../../chunks/8672.js","../../../../chunks/8675.js","../../../../chunks/8689.js","../../../../chunks/8749.js","../../../../chunks/8838.js","../../../../chunks/8895.js","../../../../chunks/8920.js","../../../../chunks/8988.js","../../../../chunks/9046.js","../../../../chunks/9055.js","../../../../chunks/9154.js","../../../../chunks/939.js","../../../../chunks/9417.js","../../../../chunks/9451.js","../../../../chunks/9489.js","../../../../chunks/9609.js","../../../../chunks/9628.js","../../../../chunks/9713.js","../../../../chunks/976.js","../../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|