@techysy/10router 1.3.3 → 1.3.4
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 +4 -4
- 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 +1 -1
- 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 +1 -1
- 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 +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/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.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.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/experimental.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/experimental.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/!KGRhc2hib2FyZCk/dashboard/experimental/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/experimental.segments/_tree.segment.rsc +1 -1
- 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 +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +8 -8
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- 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 +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/skills.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +2 -2
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +2 -2
- package/app/.next-cli-build/server/app/dashboard.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +7 -7
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- 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 +5 -5
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- 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 +1 -1
- 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 +6 -6
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +6 -6
- 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 +4 -4
- package/app/.next-cli-build/server/chunks/1329.js +1 -1
- package/app/.next-cli-build/server/chunks/2112.js +1 -1
- package/app/.next-cli-build/server/chunks/2120.js +1 -1
- package/app/.next-cli-build/server/chunks/4282.js +1 -1
- package/app/.next-cli-build/server/chunks/4746.js +1 -1
- package/app/.next-cli-build/server/chunks/4927.js +2 -2
- package/app/.next-cli-build/server/chunks/5210.js +2 -2
- package/app/.next-cli-build/server/chunks/5781.js +1 -1
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6326.js +1 -1
- package/app/.next-cli-build/server/chunks/682.js +1 -0
- package/app/.next-cli-build/server/chunks/6960.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 +1 -1
- package/app/.next-cli-build/server/chunks/8172.js +2 -2
- package/app/.next-cli-build/server/chunks/8499.js +1 -1
- package/app/.next-cli-build/server/chunks/8595.js +1 -1
- package/app/.next-cli-build/server/chunks/9489.js +1 -1
- package/app/.next-cli-build/server/chunks/9628.js +1 -1
- 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/1321-555b548232df2f80.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-a498f93dd709dccb.js +7 -0
- package/app/.next-cli-build/static/chunks/app/landing/page-241f3474d89f3b8c.js +1 -0
- package/app/package.json +1 -1
- package/app/public/i18n/changelog/en.md +394 -384
- package/app/public/i18n/changelog/zh-CN.md +392 -382
- package/app/public/i18n/changelog/zh-TW.md +394 -384
- package/package.json +1 -1
- package/app/.next-cli-build/server/chunks/2269.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-04a0bd75a8aa1806.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-9afa8ec82cb51857.js +0 -7
- package/app/.next-cli-build/static/chunks/app/landing/page-01cca10383327c01.js +0 -1
- /package/app/.next-cli-build/static/{HXtMOamjH7NR-IuqflR2K → TWKzsrjlsswyo8nggSyiE}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{HXtMOamjH7NR-IuqflR2K → TWKzsrjlsswyo8nggSyiE}/_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:()=>C});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(99882),n=c(29413),o=c(95514),p=c(32971),q=c(4088),r=c(17660),s=c(99258),t=c(94579),u=c(92592),v=c(50377),w=a([h,j,k,t]);[h,j,k,t]=w.then?(await w)():w;let D={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},E={claude:"claudeAutoPing",codex:"codexAutoPing"},F={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 x(a){let b=(0,q.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 y(a){let b=a.providerSpecificData?.region;if(b)return b;let c=a.providerSpecificData?.profileArn;return("string"==typeof c?c.split(":")[3]:"")||""}let G={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function z(a){let b=[...new Set((a||[]).map(a=>G[a]).filter(Boolean))];return b.length?`${b.join(" + ")} limits`:"limits"}function A(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 B(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 H={"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 C(){let{copied:a,copy:b}=(0,v.C)(),[c,d]=(0,f.useState)([]),[w,C]=(0,f.useState)({}),[G,I]=(0,f.useState)({}),[J,K]=(0,f.useState)({}),[L,M]=(0,f.useState)(!0),[N,O]=(0,f.useState)({claude:{},codex:{}}),[P,Q]=(0,f.useState)(null),[R,S]=(0,f.useState)(!1),[T,U]=(0,f.useState)(!1),[V,W]=(0,f.useState)(60),[X,Y]=(0,f.useState)(!0),[Z,$]=(0,f.useState)(null),[_,aa]=(0,f.useState)(null),[ab,ac]=(0,f.useState)(null),[ad,ae]=(0,f.useState)(null),[af,ag]=(0,f.useState)(null),[ah,ai]=(0,f.useState)(!1),[aj,ak]=(0,f.useState)(null),[al,am]=(0,f.useState)([]),an=(0,g.useSearchParams)(),ao=(0,g.useRouter)(),ap=(0,g.usePathname)(),[aq,ar]=(0,f.useState)(()=>(0,q.q$)(an?.get("provider"),null)),as=(0,f.useCallback)(a=>{ar(a),ao.replace((0,q.bf)(ap,an?.toString()||"",a),{scroll:!1})},[ao,ap,an]),[at,au]=(0,f.useState)([]),[av,aw]=(0,f.useState)(()=>"all"),[ax,ay]=(0,f.useState)("default"),[az,aA]=(0,f.useState)("cards"),[aB,aC]=(0,f.useState)(0),[aD,aE]=(0,f.useState)({}),[aF,aG]=(0,f.useState)(!1),[aH]=(0,f.useState)(()=>!1),[aI]=(0,f.useState)(()=>!1),[aJ,aK]=(0,f.useState)(!1),[aL,aM]=(0,f.useState)(()=>new Set),aN=(0,f.useCallback)(a=>{aM(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},[]),[aO,aP]=(0,f.useState)(1),[aQ,aR]=(0,f.useState)(q.Wg),[aS,aT]=(0,f.useState)(String(q.Wg)),[aU,aV]=(0,f.useState)({page:1,pageSize:q.Wg,total:0,totalPages:1}),[aW,aX]=(0,f.useState)({eligibleConnections:0,providerFilteredConnections:0});(0,f.useRef)(null),(0,f.useRef)(null);let aY=(0,f.useRef)(0),aZ=(0,f.useCallback)(async(a=aO)=>{try{let b=new URLSearchParams({page:String(a),pageSize:String(aQ),accountStatus:av,sort:"priority"});"all"!==aq&&b.set("provider",aq);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,q.wi)(e.pagination,aQ),h=(0,q.dE)(e.totals,f.length);return d(f),au((0,q.Uh)(e.providerOptions)),aV(g),aX(h),aP((0,q.ZS)(e.pagination,a)),(0,m.DF)((0,m.zm)({page:a,pageSize:aQ,accountFilter:av,providerFilter:aq}),{connections:f,pagination:g,totals:h,providerOptions:e.providerOptions}),f}catch(a){return console.error("Error fetching connections:",a),null}},[av,aF,aO,aQ,aq]),a$=(0,f.useCallback)(async(a,b,{force:c=!1}={})=>{I(b=>({...b,[a]:!0})),K(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()};C(b=>({...b,[a]:d})),(0,m.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,q.W_)(b,f),plan:f.plan||null,message:f.message||null,raw:f,cachedAt:new Date().toISOString()};C(b=>({...b,[a]:g})),(0,m.uE)(a,g)}catch(c){console.error(`[ProviderLimits] Error fetching quota for ${b} (${a}):`,c),K(b=>({...b,[a]:c.message||"Failed to fetch quota"}))}finally{I(b=>({...b,[a]:!1}))}},[]),[a_]=(0,f.useState)(()=>(0,m.SJ)()),a0=(0,f.useRef)(new Set),a1=(0,f.useRef)(new Map),a2=(0,f.useRef)(null),a3=(0,f.useRef)(a$),a4=(0,f.useCallback)(()=>(a2.current||"u"<typeof IntersectionObserver||(a2.current=new IntersectionObserver(a=>{for(let b of a){let a=b.target.dataset.connId;if(a){if(!b.isIntersecting){a0.current.delete(a);continue}if(a0.current.add(a),a1.current.has(a)){let b=a1.current.get(a);a1.current.delete(a),a_(()=>a3.current(a,b))}}}},{rootMargin:"200px 0px"})),a2.current),[a_]),a5=(0,f.useCallback)(a=>{let b=a4();if(a&&b)return b.observe(a),()=>{b.unobserve(a),a0.current.delete(a.dataset.connId)}},[a4]),a6=(0,f.useCallback)((a,{lazy:b=!0,skipFreshFrom:c=null}={})=>{let d="u">typeof IntersectionObserver,e=[];for(let f of a)if(!(c&&(0,m.pu)(c[f.id]))){if(b&&d&&!a0.current.has(f.id)){a1.current.set(f.id,f.provider);continue}a1.current.delete(f.id),e.push(a_(()=>a3.current(f.id,f.provider)))}return Promise.all(e)},[a_]),a7=(0,f.useCallback)(async(a,b)=>{await a$(a,b,{force:!0}),Q(new Date)},[a$]),a8=(0,f.useCallback)(async(a,b)=>{if(("codex"===b||"claude"===b)&&!ab){ac(a),K(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:w[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}),Q(new Date)}catch(b){K(c=>({...c,[a]:b.message||"Failed to reset limit"}))}finally{ac(null)}}},[a$,ab,w]),a9=(0,f.useCallback)((a,b)=>{ag({connection:a,loading:!1,error:null,data:{kind:"claude",...b}})},[]),ba=(0,f.useCallback)(async a=>{ag({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}),ag({connection:a,loading:!1,error:null,data:{...c,credits:d}})}catch(b){ag({connection:a,loading:!1,error:b.message||"Failed to load Codex reset credits",data:null})}},[]),bb=(0,f.useCallback)(async a=>{if(confirm("Delete this connection?")){$(a);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&(C(b=>{let c={...b};return delete c[a],c}),I(b=>{let c={...b};return delete c[a],c}),K(b=>{let c={...b};return delete c[a],c}),await (0,q.Jp)(aZ,aO))}catch(a){console.error("Error deleting connection:",a)}finally{$(null)}}},[aZ,aO]),bc=(0,f.useCallback)(async(a,b)=>{aa(a);try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&(C(a=>({...a})),await (0,q.Jp)(aZ,aO))}catch(a){console.error("Error updating connection status:",a)}finally{aa(null)}},[aZ,aO]),bd=(0,f.useCallback)(async a=>{if(!aj?.id)return;let b=aj.id,c=aj.provider;try{(await fetch(`/api/providers/${b}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await aZ(),ai(!1),ak(null),u.wb.includes(c)&&await a$(b,c))}catch(a){console.error("Error saving connection:",a)}},[aj,aZ,a$]),be=(0,f.useCallback)(async(a=!1)=>{if(T)return;U(!0),W(60);let b=aY.current+=1,c=Math.round(q.w2/q.J_);try{let d=await aZ(aO);if(!d)return;K(a=>(0,q.ED)(a,d)),C(a=>(0,q.ED)(a,d)),await a6(d.filter(d=>a||"claude"!==d.provider||b%c==0),{lazy:!a}),Q(new Date)}catch(a){console.error("Error refreshing all providers:",a)}finally{U(!1)}},[T,aZ,a6,aO]),bf=(0,f.useCallback)(async(a,b,c)=>{let d=E[b];if(!d)return;let e={...N[b]||{},[a]:c},f={...N,[b]:e};O(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{O(N)}},[N]);(0,f.useCallback)(async(a,b)=>{aE(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),aE(b)}},[]);let bg=(0,f.useCallback)((a,b)=>{a&&aE(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),aE(c)}})(),f})},[]),bh=(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)},bi=(0,f.useCallback)((a,b,c)=>{let d=(0,q.Ih)(b);a&&d&&bg(a,a=>(a.add(d),"antigravity"===c&&bh(a,d),a))},[bg]),bj=(0,f.useCallback)(a=>{a&&bg(a,()=>new Set)},[bg]),bk=(0,f.useCallback)((a,b,c)=>{let d=(0,q.Ih)(b);a&&d&&bg(a,a=>(a.delete(d),"antigravity"===c&&bh(a,d),a))},[bg]);(0,f.useCallback)((a,b)=>{a.length&&aE(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),aE(c)}})(),d):c})},[]);let bl=(0,f.useMemo)(()=>(0,q.uf)(c,w,aF,aq,ax),[c,w,aF,aq,ax]),bm=(0,f.useMemo)(()=>aH?bl.filter(a=>{if(G[a.id]||J[a.id])return!0;let b=w[a.id];return!b||(b.quotas?.length??0)>0}):bl,[bl,aH,G,J,w]),bn=a=>{let b=w[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})},bo=(0,f.useCallback)(async(a,b)=>{if(a.length&&!aJ){aK(!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,q.Jp)(aZ,aO)}catch(a){console.error("Error bulk toggling connections:",a)}finally{aK(!1)}}},[aJ,aZ,aO]),bp="all"===aq?"All providers":aq,bq=aW.eligibleConnections>0,br=bm.length>0,bs=(0,q.g5)(aW,aq,av),bt=({start:a,end:b,total:c})=>(0,s.Tl)("Showing {start}-{end} of {total}").replace("{start}",String(a)).replace("{end}",String(b)).replace("{total}",String(c)),bu=(0,q.kx)(aU,bt),bv=bm.length!==bl.length,bw=(0,q.k9)(bm.length,aQ,bt),bx=!q.pT.includes(aQ);(0,q.Xr)(aQ,bx);let by=X||bq?X||br?null:(0,e.jsx)(r.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:bs.icon}),(0,e.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text",children:bs.title}),(0,e.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:bs.description})]})}):(0,e.jsx)(r.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:az,onViewChange:aA,providerFilter:aq,providerOptions:at,providerLabel:"all"===aq?(0,s.Tl)("All providers"):bp,onProviderChange:a=>{(0,q.wU)(aq,a)&&aP(1),as(a)},accountFilter:av,onAccountChange:a=>{(0,q.wU)(av,a)&&aP(1),aw(a)},showCodexSort:"codex"===aq,quotaSortMode:ax,onQuotaSortChange:ay,expiringFirst:aF,onToggleExpiringFirst:()=>aG(a=>!a),onDisableDepleted:()=>{let a=bl.filter(a=>(a.isActive??!0)&&bn(a)).map(a=>a.id);bo(a,!1)},onEnableAvailable:()=>{let a=bl.filter(a=>!(a.isActive??!0)&&!bn(a)).map(a=>a.id);bo(a,!0)},bulkToggling:aJ,autoRefresh:L,onToggleAutoRefresh:()=>M(a=>!a),countdown:V,refreshingAll:T,onRefreshAll:()=>"windows"===az?aC(a=>a+1):be(!0),accountCount:aU.total}),"windows"===az?(0,e.jsx)(k.A,{providerFilter:aq,accountFilter:av,refreshKey:aB,showTrackerLink:!1}):(0,e.jsxs)(e.Fragment,{children:[by&&(0,e.jsx)("div",{className:"pt-2",children:by}),!by&&(0,e.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:bm.map(c=>{let d,f,g,j=w[c.id],k=!!G[c.id],m=J[c.id],t=!j&&!m,u=!1===c.isActive,v="codex"===c.provider,B="claude"===c.provider?j?.raw?.resetCredits:null,C=v?"Codex reset credit":"Claude limit reset",I=(d=j?.raw?.resetCredits?.availableCount,f="number"==typeof d?d:Number(d),Number.isFinite(f)?Math.max(0,f):0),K=ab===c.id,L=Z===c.id||_===c.id||K,M=j?.quotas||[],O=(0,q.dR)(c.id,M,aD,c.provider),P=(0,q.sL)(c.id,M,aD,c.provider),Q=(0,l.PZ)(O),R=(0,l.qz)(O);return(0,e.jsxs)(r.default,{ref:a5,"data-conn-id":c.id,padding:"none",className:`min-w-0 ${u?"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:H[c.provider]||(0,e.jsx)("span",{className:"capitalize",children:c.provider})}),(0,q.JJ)(c)?(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:(0,q.JJ)(c)}):null,x(c)?(0,e.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:x(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)&&D[g]?D[g]:"api_key"===c.authType?"API Key":"OAuth"}),y(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:y(c)}),(0,e.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${u?"bg-surface-2 text-text-muted":"active"===c.testStatus||"success"===c.testStatus?"bg-green-500/10 text-green-600 dark:text-green-400":"error"===c.testStatus||"expired"===c.testStatus||"unavailable"===c.testStatus?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:u?"disabled":c.testStatus||"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:[(v||B)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p.default,{text:I>0?B?`Use your reset now (${I} left, use by ${A(B.expiresAt)}) \xb7 refills ${z(B.clears)}`:`Use one ${C}. Available: ${I}`:`No ${C}s available`,children:(0,e.jsxs)("button",{type:"button",onClick:()=>ae({connection:c,resetCreditCount:I}),disabled:I<=0||t||k||L,"aria-label":I>0?`Use one ${C}. ${I} available.`:`No ${C}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 ${I>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] ${K?"animate-spin":""}`,children:K?"progress_activity":"restart_alt"}),(0,e.jsx)("span",{children:I})]})}),(0,e.jsx)(p.default,{text:v?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,e.jsx)("button",{type:"button",onClick:()=>v?ba(c):a9(c,B),disabled:t||L,"aria-label":v?"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"})})})]}),E[c.provider]&&"oauth"===c.authType&&(0,e.jsx)(p.default,{text:F[c.provider],children:(0,e.jsx)("button",{type:"button",onClick:()=>bf(c.id,c.provider,N[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 ${N[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)(p.default,{text:"Refresh quota",children:(0,e.jsx)("button",{type:"button",onClick:()=>a7(c.id,c.provider),disabled:k||L,"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||t?"animate-spin":""}`,children:"refresh"})})}),(0,e.jsx)(p.default,{text:"Edit connection",children:(0,e.jsx)("button",{type:"button",onClick:()=>{ak(c),ai(!0)},disabled:L,"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)(p.default,{text:"Delete connection",children:(0,e.jsx)("button",{type:"button",onClick:()=>bb(c.id),disabled:L,"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] ${Z===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)(o.default,{size:"sm",checked:c.isActive??!0,disabled:L,onChange:a=>bc(c.id,a)})})]})]})}),j&&O.length>0&&(0,e.jsx)("div",{className:"px-3 pt-2.5",children:(0,e.jsx)(i.default,{packs:O,nestedCycle:aI})}),(0,e.jsxs)("div",{className:"px-2 py-1.5",children:[m&&j&&(0,e.jsxs)("p",{className:"px-1 pb-1 text-[11px] text-red-500/80",children:[(0,s.Tl)("Update failed, showing last known")," \xb7 ",m]}),t?(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"})}):m&&!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:m})]}):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===O.length&&M.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,s.Tl)("All quota rows are hidden — use the chips below to show them")})]}),R&&(0,e.jsxs)("button",{type:"button",onClick:()=>aN(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":aL.has(c.id),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aL.has(c.id)?"expand_less":"expand_more"}),(0,s.Tl)("Per-pack details"),(0,e.jsxs)("span",{className:"tabular-nums opacity-60",children:["(",Q.length,")"]})]}),R&&aL.has(c.id)&&(0,e.jsx)(n.A,{quotas:Q,sortMode:"default",showSortLabel:"codex"===c.provider&&"default"!==ax,onHideQuota:a=>bi(c.id,a,c.provider)})]}),P.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,s.Tl)("Hidden"),(0,e.jsxs)("span",{className:"tabular-nums opacity-60",children:[" (",P.length,")"]})]}),(0,e.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap",children:P.map(a=>(0,e.jsx)("button",{type:"button",onClick:()=>bk(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,s.Tl)("Show this quota row"),children:(0,n.M)(a.name)},(0,q.Ih)(a)))}),P.length>1&&(0,e.jsx)("button",{type:"button",onClick:()=>bj(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,s.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:bv?bw:bu}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsxs)("select",{value:bx?"custom":String(aQ),onChange:a=>{let b=a.target.value;if("custom"===b)return;let c=Number.parseInt(b,10);Number.isFinite(c)&&(aP(1),aR(c),aT(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:[q.pT.map(a=>(0,e.jsx)("option",{value:String(a),children:(0,s.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(q.b8),inputMode:"numeric",value:aS,onChange:a=>aT(a.target.value),onBlur:()=>{let a=Number.parseInt(aS,10);if(!Number.isFinite(a))return void aT(String(aQ));let b=Math.min(q.b8,Math.max(1,a));aP(1),aR(b),aT(String(b))},onKeyDown:a=>{if("Enter"!==a.key)return;let b=Number.parseInt(aS,10);if(!Number.isFinite(b))return void aT(String(aQ));let c=Math.min(q.b8,Math.max(1,b));aP(1),aR(c),aT(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,s.Tl)("Page {page} / {total}").replace("{page}",String(aU.page)).replace("{total}",String(aU.totalPages))})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:()=>aP(1),disabled:aU.page<=1||X||T,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:()=>aP(a=>Math.max(1,a-1)),disabled:aU.page<=1||X||T,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:()=>aP(a=>Math.min(aU.totalPages,a+1)),disabled:aU.page>=aU.totalPages||X||T,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:()=>aP(aU.totalPages),disabled:aU.page>=aU.totalPages||X||T,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)(t.uo,{isOpen:!!ad,onClose:()=>{ab||ae(null)},onConfirm:async()=>{let a=ad?.connection;a&&(await a8(a.id,a.provider),ae(null))},title:ad?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:ad?.connection?.provider==="claude"?`Refills your ${z(w[ad.connection.id]?.raw?.resetCredits?.clears)} now for ${(0,q.JJ)(ad.connection)||"this account"} \xb7 your weekly reset day stays ${A(w[ad.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${ad.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${(0,q.JJ)(ad?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${ad?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!ab}),af&&(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:af.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,q.JJ)(af.connection)||(af.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,e.jsx)("button",{type:"button",onClick:()=>ag(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:af.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..."]}):af.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:af.error}):af.data?.kind==="claude"&&af.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:[af.data.availableCount??0," reset",1===af.data.availableCount?"":"s"," left"]}),(0,e.jsxs)("span",{children:["Weekly reset day: ",A(af.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:(af.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:z(a.clears)}),(0,e.jsx)("td",{className:"px-3 py-2 text-text",children:A(a.endsAt)}),(0,e.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text",children:B(a.endsAt)})]},a.id))})]})})]}):af.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:[af.data.credits.length," reset credit",1===af.data.credits.length?"":"s"]}),(0,e.jsxs)("span",{children:[af.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:af.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:A(a.grantedAt)}),(0,e.jsx)("td",{className:"px-3 py-2 text-text",children:A(a.expiresAt)}),(0,e.jsx)("td",{className:"px-3 py-2 font-medium text-text",children:B(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:af.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),(0,e.jsx)(t.wI,{isOpen:ah,connection:aj,proxyPools:al,onSave:bd,onClose:()=>{ai(!1),ak(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}},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")},73934:(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},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,2269,6070,1329,5781,7274,7239,1219,4123,8172,6960,4886],()=>b(b.s=73934));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:()=>C});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(99882),n=c(29413),o=c(95514),p=c(32971),q=c(4088),r=c(17660),s=c(99258),t=c(94579),u=c(92592),v=c(50377),w=a([h,j,k,t]);[h,j,k,t]=w.then?(await w)():w;let D={"builder-id":"AWS Builder ID",idc:"IAM Identity Center",google:"Google",github:"GitHub",imported:"Imported Token",api_key:"API Key"},E={claude:"claudeAutoPing",codex:"codexAutoPing"},F={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 x(a){let b=(0,q.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 y(a){let b=a.providerSpecificData?.region;if(b)return b;let c=a.providerSpecificData?.profileArn;return("string"==typeof c?c.split(":")[3]:"")||""}let G={five_hour:"session",seven_day:"weekly",seven_day_overage_included:"weekly",seven_day_opus:"Opus weekly",seven_day_sonnet:"Sonnet weekly"};function z(a){let b=[...new Set((a||[]).map(a=>G[a]).filter(Boolean))];return b.length?`${b.join(" + ")} limits`:"limits"}function A(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 B(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 H={"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 C(){let{copied:a,copy:b}=(0,v.C)(),[c,d]=(0,f.useState)([]),[w,C]=(0,f.useState)({}),[G,I]=(0,f.useState)({}),[J,K]=(0,f.useState)({}),[L,M]=(0,f.useState)(!0),[N,O]=(0,f.useState)({claude:{},codex:{}}),[P,Q]=(0,f.useState)(null),[R,S]=(0,f.useState)(!1),[T,U]=(0,f.useState)(!1),[V,W]=(0,f.useState)(60),[X,Y]=(0,f.useState)(!0),[Z,$]=(0,f.useState)(null),[_,aa]=(0,f.useState)(null),[ab,ac]=(0,f.useState)(null),[ad,ae]=(0,f.useState)(null),[af,ag]=(0,f.useState)(null),[ah,ai]=(0,f.useState)(!1),[aj,ak]=(0,f.useState)(null),[al,am]=(0,f.useState)([]),an=(0,g.useSearchParams)(),ao=(0,g.useRouter)(),ap=(0,g.usePathname)(),[aq,ar]=(0,f.useState)(()=>(0,q.q$)(an?.get("provider"),null)),as=(0,f.useCallback)(a=>{ar(a),ao.replace((0,q.bf)(ap,an?.toString()||"",a),{scroll:!1})},[ao,ap,an]),[at,au]=(0,f.useState)([]),[av,aw]=(0,f.useState)(()=>"all"),[ax,ay]=(0,f.useState)("default"),[az,aA]=(0,f.useState)("cards"),[aB,aC]=(0,f.useState)(0),[aD,aE]=(0,f.useState)({}),[aF,aG]=(0,f.useState)(!1),[aH]=(0,f.useState)(()=>!1),[aI]=(0,f.useState)(()=>!1),[aJ,aK]=(0,f.useState)(!1),[aL,aM]=(0,f.useState)(()=>new Set),aN=(0,f.useCallback)(a=>{aM(b=>{let c=new Set(b);return c.has(a)?c.delete(a):c.add(a),c})},[]),[aO,aP]=(0,f.useState)(1),[aQ,aR]=(0,f.useState)(q.Wg),[aS,aT]=(0,f.useState)(String(q.Wg)),[aU,aV]=(0,f.useState)({page:1,pageSize:q.Wg,total:0,totalPages:1}),[aW,aX]=(0,f.useState)({eligibleConnections:0,providerFilteredConnections:0});(0,f.useRef)(null),(0,f.useRef)(null);let aY=(0,f.useRef)(0),aZ=(0,f.useCallback)(async(a=aO)=>{try{let b=new URLSearchParams({page:String(a),pageSize:String(aQ),accountStatus:av,sort:"priority"});"all"!==aq&&b.set("provider",aq);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,q.wi)(e.pagination,aQ),h=(0,q.dE)(e.totals,f.length);return d(f),au((0,q.Uh)(e.providerOptions)),aV(g),aX(h),aP((0,q.ZS)(e.pagination,a)),(0,m.DF)((0,m.zm)({page:a,pageSize:aQ,accountFilter:av,providerFilter:aq}),{connections:f,pagination:g,totals:h,providerOptions:e.providerOptions}),f}catch(a){return console.error("Error fetching connections:",a),null}},[av,aF,aO,aQ,aq]),a$=(0,f.useCallback)(async(a,b,{force:c=!1}={})=>{I(b=>({...b,[a]:!0})),K(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()};C(b=>({...b,[a]:d})),(0,m.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,q.W_)(b,f),plan:f.plan||null,message:f.message||null,raw:f,cachedAt:new Date().toISOString()};C(b=>({...b,[a]:g})),(0,m.uE)(a,g)}catch(c){console.error(`[ProviderLimits] Error fetching quota for ${b} (${a}):`,c),K(b=>({...b,[a]:c.message||"Failed to fetch quota"}))}finally{I(b=>({...b,[a]:!1}))}},[]),[a_]=(0,f.useState)(()=>(0,m.SJ)()),a0=(0,f.useRef)(new Set),a1=(0,f.useRef)(new Map),a2=(0,f.useRef)(null),a3=(0,f.useRef)(a$),a4=(0,f.useCallback)(()=>(a2.current||"u"<typeof IntersectionObserver||(a2.current=new IntersectionObserver(a=>{for(let b of a){let a=b.target.dataset.connId;if(a){if(!b.isIntersecting){a0.current.delete(a);continue}if(a0.current.add(a),a1.current.has(a)){let b=a1.current.get(a);a1.current.delete(a),a_(()=>a3.current(a,b))}}}},{rootMargin:"200px 0px"})),a2.current),[a_]),a5=(0,f.useCallback)(a=>{let b=a4();if(a&&b)return b.observe(a),()=>{b.unobserve(a),a0.current.delete(a.dataset.connId)}},[a4]),a6=(0,f.useCallback)((a,{lazy:b=!0,skipFreshFrom:c=null}={})=>{let d="u">typeof IntersectionObserver,e=[];for(let f of a)if(!(c&&(0,m.pu)(c[f.id]))){if(b&&d&&!a0.current.has(f.id)){a1.current.set(f.id,f.provider);continue}a1.current.delete(f.id),e.push(a_(()=>a3.current(f.id,f.provider)))}return Promise.all(e)},[a_]),a7=(0,f.useCallback)(async(a,b)=>{await a$(a,b,{force:!0}),Q(new Date)},[a$]),a8=(0,f.useCallback)(async(a,b)=>{if(("codex"===b||"claude"===b)&&!ab){ac(a),K(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:w[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}),Q(new Date)}catch(b){K(c=>({...c,[a]:b.message||"Failed to reset limit"}))}finally{ac(null)}}},[a$,ab,w]),a9=(0,f.useCallback)((a,b)=>{ag({connection:a,loading:!1,error:null,data:{kind:"claude",...b}})},[]),ba=(0,f.useCallback)(async a=>{ag({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}),ag({connection:a,loading:!1,error:null,data:{...c,credits:d}})}catch(b){ag({connection:a,loading:!1,error:b.message||"Failed to load Codex reset credits",data:null})}},[]),bb=(0,f.useCallback)(async a=>{if(confirm("Delete this connection?")){$(a);try{(await fetch(`/api/providers/${a}`,{method:"DELETE"})).ok&&(C(b=>{let c={...b};return delete c[a],c}),I(b=>{let c={...b};return delete c[a],c}),K(b=>{let c={...b};return delete c[a],c}),await (0,q.Jp)(aZ,aO))}catch(a){console.error("Error deleting connection:",a)}finally{$(null)}}},[aZ,aO]),bc=(0,f.useCallback)(async(a,b)=>{aa(a);try{(await fetch(`/api/providers/${a}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({isActive:b})})).ok&&(C(a=>({...a})),await (0,q.Jp)(aZ,aO))}catch(a){console.error("Error updating connection status:",a)}finally{aa(null)}},[aZ,aO]),bd=(0,f.useCallback)(async a=>{if(!aj?.id)return;let b=aj.id,c=aj.provider;try{(await fetch(`/api/providers/${b}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)})).ok&&(await aZ(),ai(!1),ak(null),u.wb.includes(c)&&await a$(b,c))}catch(a){console.error("Error saving connection:",a)}},[aj,aZ,a$]),be=(0,f.useCallback)(async(a=!1)=>{if(T)return;U(!0),W(60);let b=aY.current+=1,c=Math.round(q.w2/q.J_);try{let d=await aZ(aO);if(!d)return;K(a=>(0,q.ED)(a,d)),C(a=>(0,q.ED)(a,d)),await a6(d.filter(d=>a||"claude"!==d.provider||b%c==0),{lazy:!a}),Q(new Date)}catch(a){console.error("Error refreshing all providers:",a)}finally{U(!1)}},[T,aZ,a6,aO]),bf=(0,f.useCallback)(async(a,b,c)=>{let d=E[b];if(!d)return;let e={...N[b]||{},[a]:c},f={...N,[b]:e};O(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{O(N)}},[N]);(0,f.useCallback)(async(a,b)=>{aE(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),aE(b)}},[]);let bg=(0,f.useCallback)((a,b)=>{a&&aE(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),aE(c)}})(),f})},[]),bh=(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)},bi=(0,f.useCallback)((a,b,c)=>{let d=(0,q.Ih)(b);a&&d&&bg(a,a=>(a.add(d),"antigravity"===c&&bh(a,d),a))},[bg]),bj=(0,f.useCallback)(a=>{a&&bg(a,()=>new Set)},[bg]),bk=(0,f.useCallback)((a,b,c)=>{let d=(0,q.Ih)(b);a&&d&&bg(a,a=>(a.delete(d),"antigravity"===c&&bh(a,d),a))},[bg]);(0,f.useCallback)((a,b)=>{a.length&&aE(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),aE(c)}})(),d):c})},[]);let bl=(0,f.useMemo)(()=>(0,q.uf)(c,w,aF,aq,ax),[c,w,aF,aq,ax]),bm=(0,f.useMemo)(()=>aH?bl.filter(a=>{if(G[a.id]||J[a.id])return!0;let b=w[a.id];return!b||(b.quotas?.length??0)>0}):bl,[bl,aH,G,J,w]),bn=a=>{let b=w[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})},bo=(0,f.useCallback)(async(a,b)=>{if(a.length&&!aJ){aK(!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,q.Jp)(aZ,aO)}catch(a){console.error("Error bulk toggling connections:",a)}finally{aK(!1)}}},[aJ,aZ,aO]),bp="all"===aq?"All providers":aq,bq=aW.eligibleConnections>0,br=bm.length>0,bs=(0,q.g5)(aW,aq,av),bt=({start:a,end:b,total:c})=>(0,s.Tl)("Showing {start}-{end} of {total}").replace("{start}",String(a)).replace("{end}",String(b)).replace("{total}",String(c)),bu=(0,q.kx)(aU,bt),bv=bm.length!==bl.length,bw=(0,q.k9)(bm.length,aQ,bt),bx=!q.pT.includes(aQ);(0,q.Xr)(aQ,bx);let by=X||bq?X||br?null:(0,e.jsx)(r.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:bs.icon}),(0,e.jsx)("h3",{className:"mt-4 text-lg font-semibold text-text",children:bs.title}),(0,e.jsx)("p",{className:"mt-2 text-sm text-text-muted max-w-md mx-auto",children:bs.description})]})}):(0,e.jsx)(r.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:az,onViewChange:aA,providerFilter:aq,providerOptions:at,providerLabel:"all"===aq?(0,s.Tl)("All providers"):bp,onProviderChange:a=>{(0,q.wU)(aq,a)&&aP(1),as(a)},accountFilter:av,onAccountChange:a=>{(0,q.wU)(av,a)&&aP(1),aw(a)},showCodexSort:"codex"===aq,quotaSortMode:ax,onQuotaSortChange:ay,expiringFirst:aF,onToggleExpiringFirst:()=>aG(a=>!a),onDisableDepleted:()=>{let a=bl.filter(a=>(a.isActive??!0)&&bn(a)).map(a=>a.id);bo(a,!1)},onEnableAvailable:()=>{let a=bl.filter(a=>!(a.isActive??!0)&&!bn(a)).map(a=>a.id);bo(a,!0)},bulkToggling:aJ,autoRefresh:L,onToggleAutoRefresh:()=>M(a=>!a),countdown:V,refreshingAll:T,onRefreshAll:()=>"windows"===az?aC(a=>a+1):be(!0),accountCount:aU.total}),"windows"===az?(0,e.jsx)(k.A,{providerFilter:aq,accountFilter:av,refreshKey:aB,showTrackerLink:!1}):(0,e.jsxs)(e.Fragment,{children:[by&&(0,e.jsx)("div",{className:"pt-2",children:by}),!by&&(0,e.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:bm.map(c=>{let d,f,g,j=w[c.id],k=!!G[c.id],m=J[c.id],t=!j&&!m,u=!1===c.isActive,v="codex"===c.provider,B="claude"===c.provider?j?.raw?.resetCredits:null,C=v?"Codex reset credit":"Claude limit reset",I=(d=j?.raw?.resetCredits?.availableCount,f="number"==typeof d?d:Number(d),Number.isFinite(f)?Math.max(0,f):0),K=ab===c.id,L=Z===c.id||_===c.id||K,M=j?.quotas||[],O=(0,q.dR)(c.id,M,aD,c.provider),P=(0,q.sL)(c.id,M,aD,c.provider),Q=(0,l.PZ)(O),R=(0,l.qz)(O);return(0,e.jsxs)(r.default,{ref:a5,"data-conn-id":c.id,padding:"none",className:`min-w-0 ${u?"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:H[c.provider]||(0,e.jsx)("span",{className:"capitalize",children:c.provider})}),(0,q.JJ)(c)?(0,e.jsx)("p",{className:"text-xs text-text-muted truncate",children:(0,q.JJ)(c)}):null,x(c)?(0,e.jsx)("p",{className:"text-[11px] text-text-muted/80 truncate",children:x(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)&&D[g]?D[g]:"api_key"===c.authType?"API Key":"OAuth"}),y(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:y(c)}),(0,e.jsx)("span",{className:`rounded-full px-2 py-0.5 text-[10px] font-semibold ${u?"bg-surface-2 text-text-muted":"active"===c.testStatus||"success"===c.testStatus?"bg-green-500/10 text-green-600 dark:text-green-400":"error"===c.testStatus||"expired"===c.testStatus||"unavailable"===c.testStatus?"bg-red-500/10 text-red-600 dark:text-red-400":"bg-surface-2 text-text-muted"}`,children:u?"disabled":c.testStatus||"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:[(v||B)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(p.default,{text:I>0?B?`Use your reset now (${I} left, use by ${A(B.expiresAt)}) \xb7 refills ${z(B.clears)}`:`Use one ${C}. Available: ${I}`:`No ${C}s available`,children:(0,e.jsxs)("button",{type:"button",onClick:()=>ae({connection:c,resetCreditCount:I}),disabled:I<=0||t||k||L,"aria-label":I>0?`Use one ${C}. ${I} available.`:`No ${C}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 ${I>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] ${K?"animate-spin":""}`,children:K?"progress_activity":"restart_alt"}),(0,e.jsx)("span",{children:I})]})}),(0,e.jsx)(p.default,{text:v?"View Codex reset credit expiry":"View Claude Code reset expiry",children:(0,e.jsx)("button",{type:"button",onClick:()=>v?ba(c):a9(c,B),disabled:t||L,"aria-label":v?"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"})})})]}),E[c.provider]&&"oauth"===c.authType&&(0,e.jsx)(p.default,{text:F[c.provider],children:(0,e.jsx)("button",{type:"button",onClick:()=>bf(c.id,c.provider,N[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 ${N[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)(p.default,{text:"Refresh quota",children:(0,e.jsx)("button",{type:"button",onClick:()=>a7(c.id,c.provider),disabled:k||L,"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||t?"animate-spin":""}`,children:"refresh"})})}),(0,e.jsx)(p.default,{text:"Edit connection",children:(0,e.jsx)("button",{type:"button",onClick:()=>{ak(c),ai(!0)},disabled:L,"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)(p.default,{text:"Delete connection",children:(0,e.jsx)("button",{type:"button",onClick:()=>bb(c.id),disabled:L,"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] ${Z===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)(o.default,{size:"sm",checked:c.isActive??!0,disabled:L,onChange:a=>bc(c.id,a)})})]})]})}),j&&O.length>0&&(0,e.jsx)("div",{className:"px-3 pt-2.5",children:(0,e.jsx)(i.default,{packs:O,nestedCycle:aI})}),(0,e.jsxs)("div",{className:"px-2 py-1.5",children:[m&&j&&(0,e.jsxs)("p",{className:"px-1 pb-1 text-[11px] text-red-500/80",children:[(0,s.Tl)("Update failed, showing last known")," \xb7 ",m]}),t?(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"})}):m&&!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:m})]}):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===O.length&&M.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,s.Tl)("All quota rows are hidden — use the chips below to show them")})]}),R&&(0,e.jsxs)("button",{type:"button",onClick:()=>aN(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":aL.has(c.id),children:[(0,e.jsx)("span",{className:"material-symbols-outlined text-[14px]",children:aL.has(c.id)?"expand_less":"expand_more"}),(0,s.Tl)("Per-pack details"),(0,e.jsxs)("span",{className:"tabular-nums opacity-60",children:["(",Q.length,")"]})]}),R&&aL.has(c.id)&&(0,e.jsx)(n.A,{quotas:Q,sortMode:"default",showSortLabel:"codex"===c.provider&&"default"!==ax,onHideQuota:a=>bi(c.id,a,c.provider)})]}),P.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,s.Tl)("Hidden"),(0,e.jsxs)("span",{className:"tabular-nums opacity-60",children:[" (",P.length,")"]})]}),(0,e.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1 overflow-x-auto whitespace-nowrap",children:P.map(a=>(0,e.jsx)("button",{type:"button",onClick:()=>bk(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,s.Tl)("Show this quota row"),children:(0,n.M)(a.name)},(0,q.Ih)(a)))}),P.length>1&&(0,e.jsx)("button",{type:"button",onClick:()=>bj(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,s.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:bv?bw:bu}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsxs)("select",{value:bx?"custom":String(aQ),onChange:a=>{let b=a.target.value;if("custom"===b)return;let c=Number.parseInt(b,10);Number.isFinite(c)&&(aP(1),aR(c),aT(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:[q.pT.map(a=>(0,e.jsx)("option",{value:String(a),children:(0,s.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(q.b8),inputMode:"numeric",value:aS,onChange:a=>aT(a.target.value),onBlur:()=>{let a=Number.parseInt(aS,10);if(!Number.isFinite(a))return void aT(String(aQ));let b=Math.min(q.b8,Math.max(1,a));aP(1),aR(b),aT(String(b))},onKeyDown:a=>{if("Enter"!==a.key)return;let b=Number.parseInt(aS,10);if(!Number.isFinite(b))return void aT(String(aQ));let c=Math.min(q.b8,Math.max(1,b));aP(1),aR(c),aT(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,s.Tl)("Page {page} / {total}").replace("{page}",String(aU.page)).replace("{total}",String(aU.totalPages))})]}),(0,e.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:()=>aP(1),disabled:aU.page<=1||X||T,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:()=>aP(a=>Math.max(1,a-1)),disabled:aU.page<=1||X||T,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:()=>aP(a=>Math.min(aU.totalPages,a+1)),disabled:aU.page>=aU.totalPages||X||T,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:()=>aP(aU.totalPages),disabled:aU.page>=aU.totalPages||X||T,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)(t.uo,{isOpen:!!ad,onClose:()=>{ab||ae(null)},onConfirm:async()=>{let a=ad?.connection;a&&(await a8(a.id,a.provider),ae(null))},title:ad?.connection?.provider==="claude"?"Reset Claude limits?":"Reset Codex limit?",message:ad?.connection?.provider==="claude"?`Refills your ${z(w[ad.connection.id]?.raw?.resetCredits?.clears)} now for ${(0,q.JJ)(ad.connection)||"this account"} \xb7 your weekly reset day stays ${A(w[ad.connection.id]?.raw?.resetCredits?.weeklyResetsAt)}. This cannot be undone. Resets left: ${ad.resetCreditCount??0}.`:`Use 1 Codex reset credit for ${(0,q.JJ)(ad?.connection||{})||"this account"}. This cannot be undone. Remaining credits: ${ad?.resetCreditCount??0}.`,confirmText:"Reset limit",cancelText:"Cancel",variant:"danger",loading:!!ab}),af&&(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:af.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,q.JJ)(af.connection)||(af.data?.kind==="claude"?"Claude account":"Codex account")})]}),(0,e.jsx)("button",{type:"button",onClick:()=>ag(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:af.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..."]}):af.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:af.error}):af.data?.kind==="claude"&&af.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:[af.data.availableCount??0," reset",1===af.data.availableCount?"":"s"," left"]}),(0,e.jsxs)("span",{children:["Weekly reset day: ",A(af.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:(af.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:z(a.clears)}),(0,e.jsx)("td",{className:"px-3 py-2 text-text",children:A(a.endsAt)}),(0,e.jsx)("td",{className:"whitespace-nowrap px-3 py-2 font-medium text-text",children:B(a.endsAt)})]},a.id))})]})})]}):af.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:[af.data.credits.length," reset credit",1===af.data.credits.length?"":"s"]}),(0,e.jsxs)("span",{children:[af.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:af.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:A(a.grantedAt)}),(0,e.jsx)("td",{className:"px-3 py-2 text-text",children:A(a.expiresAt)}),(0,e.jsx)("td",{className:"px-3 py-2 font-medium text-text",children:B(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:af.data?.kind==="claude"?"No limit resets available for this account.":"No reset credit details returned for this account."})})]})}),(0,e.jsx)(t.wI,{isOpen:ah,connection:aj,proxyPools:al,onSave:bd,onClose:()=>{ai(!1),ak(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}},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")},73934:(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},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],()=>b(b.s=73934));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/2269.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/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/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/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/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/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/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"]}
|